@redocly/replay 0.17.0-next.12 → 0.17.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-index-xdhAALIZ.js → replay-index-BW60wwnK.js} +1 -1
- package/dist/{replay-index-DyF5ZM8E.js → replay-index-BgvyKCxA.js} +8 -8
- package/dist/{replay-index-BP_pD4DD.js → replay-index-CDsLc8PM.js} +1 -1
- package/dist/{replay-index-CjU0cLwk.js → replay-index-ChTq7Ytp.js} +1 -1
- package/dist/{replay-index-DwCFW889.js → replay-index-DQitCpDA.js} +15 -8
- package/dist/{replay-index-DmZvH1eu.js → replay-index-D_7TTBbv.js} +1 -1
- package/dist/{replay-tauri-path-CiyrZx9h.js → replay-tauri-path-DEMrUuIL.js} +2 -2
- package/dist/{replay-tauri-path-BQKxzVpe.js → replay-tauri-path-NRd-ghfB.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +1 -0
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -241,7 +241,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Oge(t){return t.
|
|
|
241
241
|
`+t.slice(i,o),i=o+1),s=a;return l+=`
|
|
242
242
|
`,t.length-i>e&&s>i?l+=t.slice(i,s)+`
|
|
243
243
|
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}function ove(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=lh(t,i),n=xn[r],!n&&pp(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||Yye(r);return e}function sve(t,e,r){var n="",i=t.tag,o,s,a;for(o=0,s=r.length;o<s;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(Hs(t,e,a,!1,!1)||typeof a>"u"&&Hs(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function VM(t,e,r,n){var i="",o=t.tag,s,a,l;for(s=0,a=r.length;s<a;s+=1)l=r[s],t.replacer&&(l=t.replacer.call(r,String(s),l)),(Hs(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&Hs(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=w$(t,e)),t.dump&&fp===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function ave(t,e,r){var n="",i=t.tag,o=Object.keys(r),s,a,l,c,u;for(s=0,a=o.length;s<a;s+=1)u="",n!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=o[s],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Hs(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Hs(t,e,c,!1,!1)&&(u+=t.dump,n+=u));t.tag=i,t.dump="{"+n+"}"}function lve(t,e,r,n){var i="",o=t.tag,s=Object.keys(r),a,l,c,u,d,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Tn("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)f="",(!n||i!=="")&&(f+=w$(t,e)),c=s[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Hs(t,e+1,c,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&fp===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=w$(t,e)),Hs(t,e+1,u,!0,d)&&(t.dump&&fp===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=o,t.dump=i||"{}"}function zM(t,e,r){var n,i,o,s,a,l;for(i=r?t.explicitTypes:t.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,jZ.call(a.represent)==="[object Function]")n=a.represent(e,l);else if(DZ.call(a.represent,l))n=a.represent[l](e,l);else throw new Tn("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}function Hs(t,e,r,n,i,o,s){t.tag=null,t.dump=r,zM(t,r,!1)||zM(t,r,!0);var a=jZ.call(t.dump),l=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",d,f;if(u&&(d=t.duplicates.indexOf(r),f=d!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(u&&f&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(lve(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(ave(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?VM(t,e-1,t.dump,i):VM(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(sve(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&nve(t,t.dump,e,o,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Tn("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function cve(t,e){var r=[],n=[],i,o;for(P$(t,r,n),i=0,o=n.length;i<o;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(o)}function P$(t,e,r){var n,i,o;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)P$(t[i],e,r);else for(n=Object.keys(t),i=0,o=n.length;i<o;i+=1)P$(t[n[i]],e,r)}function uve(t,e){e=e||{};var r=new Jye(e);r.noRefs||cve(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Hs(r,0,n,!0,!0)?r.dump+`
|
|
244
|
-
`:""}var dve=uve,fve={dump:dve};function fI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var hve=nn,pve=sZ,gve=uZ,WZ=gZ,mve=mZ,yve=lI,UZ=RZ.load,vve=RZ.loadAll,XZ=fve.dump,bve=Tn,cu={binary:xZ,float:pZ,map:cZ,null:dZ,pairs:wZ,set:CZ,timestamp:bZ,bool:fZ,int:hZ,merge:OZ,omap:SZ,seq:lZ,str:aZ},Ove=fI("safeLoad","load"),xve=fI("safeLoadAll","loadAll"),Sve=fI("safeDump","dump"),el={Type:hve,Schema:pve,FAILSAFE_SCHEMA:gve,JSON_SCHEMA:WZ,CORE_SCHEMA:mve,DEFAULT_SCHEMA:yve,load:UZ,loadAll:vve,dump:XZ,YAMLException:bve,types:cu,safeLoad:Ove,safeLoadAll:xve,safeDump:Sve};class BM{constructor(e){this.baseDir=e}async ls(e=""){const r=this.makeKey(e);return Object.keys(localStorage).filter(n=>n.startsWith(r)).map(n=>n.replace(r,""))}async get(e){const r=this.makeKey(e);return localStorage.getItem(r)??null}async set(e,r){const n=this.makeKey(e);localStorage.setItem(n,r)}async remove(e){const r=this.makeKey(e);localStorage.removeItem(r)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}async function oi(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var VO;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(VO||(VO={}));async function wve(){return oi("plugin:path|resolve_directory",{directory:VO.AppData})}async function Cve(){return oi("plugin:path|resolve_directory",{directory:VO.Desktop})}function ZZ(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function Pve(...t){return oi("plugin:path|resolve",{paths:t})}async function Ih(...t){return oi("plugin:path|join",{paths:t})}async function GZ(t,e){return oi("plugin:path|basename",{path:t,ext:e})}async function kve(t){return oi("plugin:path|is_absolute",{path:t})}var qM;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(qM||(qM={}));async function FM(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function YZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function $ve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await oi("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return r instanceof ArrayBuffer?new Uint8Array(r):Uint8Array.from(r)}async function hI(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Eve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Ave(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function HZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function Qd(){return!!(window!=null&&window.__TAURI__)}const Vo=class Vo{static async getUtils(){return Vo.utils||(Vo.utils=Qd()?await Promise.resolve().then(()=>require("./replay-tauri-path-
|
|
244
|
+
`:""}var dve=uve,fve={dump:dve};function fI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var hve=nn,pve=sZ,gve=uZ,WZ=gZ,mve=mZ,yve=lI,UZ=RZ.load,vve=RZ.loadAll,XZ=fve.dump,bve=Tn,cu={binary:xZ,float:pZ,map:cZ,null:dZ,pairs:wZ,set:CZ,timestamp:bZ,bool:fZ,int:hZ,merge:OZ,omap:SZ,seq:lZ,str:aZ},Ove=fI("safeLoad","load"),xve=fI("safeLoadAll","loadAll"),Sve=fI("safeDump","dump"),el={Type:hve,Schema:pve,FAILSAFE_SCHEMA:gve,JSON_SCHEMA:WZ,CORE_SCHEMA:mve,DEFAULT_SCHEMA:yve,load:UZ,loadAll:vve,dump:XZ,YAMLException:bve,types:cu,safeLoad:Ove,safeLoadAll:xve,safeDump:Sve};class BM{constructor(e){this.baseDir=e}async ls(e=""){const r=this.makeKey(e);return Object.keys(localStorage).filter(n=>n.startsWith(r)).map(n=>n.replace(r,""))}async get(e){const r=this.makeKey(e);return localStorage.getItem(r)??null}async set(e,r){const n=this.makeKey(e);localStorage.setItem(n,r)}async remove(e){const r=this.makeKey(e);localStorage.removeItem(r)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}async function oi(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var VO;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(VO||(VO={}));async function wve(){return oi("plugin:path|resolve_directory",{directory:VO.AppData})}async function Cve(){return oi("plugin:path|resolve_directory",{directory:VO.Desktop})}function ZZ(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function Pve(...t){return oi("plugin:path|resolve",{paths:t})}async function Ih(...t){return oi("plugin:path|join",{paths:t})}async function GZ(t,e){return oi("plugin:path|basename",{path:t,ext:e})}async function kve(t){return oi("plugin:path|is_absolute",{path:t})}var qM;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(qM||(qM={}));async function FM(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function YZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function $ve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await oi("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return r instanceof ArrayBuffer?new Uint8Array(r):Uint8Array.from(r)}async function hI(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Eve(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Ave(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await oi("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function HZ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await oi("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function Qd(){return!!(window!=null&&window.__TAURI__)}const Vo=class Vo{static async getUtils(){return Vo.utils||(Vo.utils=Qd()?await Promise.resolve().then(()=>require("./replay-tauri-path-NRd-ghfB.js")):await Promise.resolve().then(()=>NNe)),Vo.utils}static async join(...e){return(await Vo.getUtils()).join(...e)}static async resolve(e){return(await Vo.getUtils()).resolve(e)}static async isAbsolute(e){return(await Vo.getUtils()).isAbsolute(e)}static async relative(e,r){return(await Vo.getUtils()).relative(e,r)}};xe(Vo,"utils",null);let Oi=Vo;class WM{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await FM(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await YZ(e);for(const i of n)if(i.isDirectory){const o=await Ih(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await Ih(e,i.name),s=await Oi.relative(this.baseDir,o);r.push(s)}return r}catch(r){return r.includes("forbidden path")||console.error(r),[]}}async get(e){const r=await this.getFullPath(e);try{return await hI(r)}catch(n){return!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n),null}}async set(e,r){const n=await this.getFullPath(e),i=ZZ(),o=n.split(i).slice(0,-1).join(i);await FM(o,{recursive:!0}),await Ave(n,r)}async remove(e){const r=await this.getFullPath(e);try{await Eve(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await Ih(this.baseDir,e??"")}}class Ive{constructor(){xe(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class Tve{constructor(e,r){xe(this,"default",[]);this.storage=e,this.localStorageSecretsProvider=r}async read(){const e=await this.storage.get("replay-environments.yaml"),r=await this.localStorageSecretsProvider.get();let n=null,i=null;if(!e)return this.default;try{n=el.load(e),i=r?JSON.parse(r):null}catch(a){return console.error("Failed to parse environments file",a),this.default}return n?Object.keys(n).filter(a=>a!=="version").map(a=>({name:a,inputs:Object.entries(n[a].inputs).map(([l,c])=>{var d;if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=((d=i==null?void 0:i[a])==null?void 0:d[l])??"";return{name:l,value:u,isSecret:!0}}),servers:Object.entries(n[a].servers).map(([l,c])=>({apiId:l,value:c.value,variables:Object.entries(c.variables||{}).map(([u,d])=>({name:u,value:d}))})),state:xt.Normal})):this.default}async write(e){const r=await this.localStorageSecretsProvider.get(),n=r?JSON.parse(r):{},i=e.reduce((o,s)=>(s.name&&(o[s.name]={inputs:s.inputs.reduce((a,l)=>(l.isSecret&&n?(n[s.name]||(n[s.name]={}),n[s.name][l.name]=l.value,a[l.name]={provider:"local"}):a[l.name]=l.value,a),{}),servers:s.servers.reduce((a,l)=>(a[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},a),{})}),o),{});this.localStorageSecretsProvider.set(JSON.stringify(n)),i&&this.storage.set("replay-environments.yaml",el.dump(i))}}var c1,UM;function _ve(){if(UM)return c1;UM=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return c1=function(n,i,o){if(e.call(i)!=="[object Function]")throw new TypeError("iterator must be a function");var s=n.length;if(s===+s)for(var a=0;a<s;a++)i.call(o,n[a],a,n);else for(var l in n)t.call(n,l)&&i.call(o,n[l],l,n)},c1}var u1,XM;function Rve(){if(XM)return u1;XM=1;var t=_ve();u1=e;function e(r,n,i){if(arguments.length===3)return e.set(r,n,i);if(arguments.length===2)return e.get(r,n);var o=e.bind(e,r);for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s].bind(o,r));return o}return e.get=function(n,i){for(var o=Array.isArray(i)?i:e.parse(i),s=0;s<o.length;++s){var a=o[s];if(!(typeof n=="object"&&a in n))throw new Error("Invalid reference token: "+a);n=n[a]}return n},e.set=function(n,i,o){var s=Array.isArray(i)?i:e.parse(i),a=s[0];if(s.length===0)throw Error("Can not set the root object");for(var l=0;l<s.length-1;++l){var c=s[l];typeof c!="string"&&typeof c!="number"&&(c=String(c)),!(c==="__proto__"||c==="constructor"||c==="prototype")&&(c==="-"&&Array.isArray(n)&&(c=n.length),a=s[l+1],c in n||(a.match(/^(\d+|-)$/)?n[c]=[]:n[c]={}),n=n[c])}return a==="-"&&Array.isArray(n)&&(a=n.length),n[a]=o,this},e.remove=function(r,n){var i=Array.isArray(n)?n:e.parse(n),o=i[i.length-1];if(o===void 0)throw new Error('Invalid JSON pointer for remove: "'+n+'"');var s=e.get(r,i.slice(0,-1));if(Array.isArray(s)){var a=+o;if(o===""&&isNaN(a))throw new Error('Invalid array index: "'+o+'"');Array.prototype.splice.call(s,a,1)}else delete s[o]},e.dict=function(n,i){var o={};return e.walk(n,function(s,a){o[a]=s},i),o},e.walk=function(n,i,o){var s=[];o=o||function(a){var l=Object.prototype.toString.call(a);return l==="[object Object]"||l==="[object Array]"},(function a(l){t(l,function(c,u){s.push(String(u)),o(c)?a(c):i(c,e.compile(s)),s.pop()})})(n)},e.has=function(n,i){try{e.get(n,i)}catch{return!1}return!0},e.escape=function(n){return n.toString().replace(/~/g,"~0").replace(/\//g,"~1")},e.unescape=function(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")},e.parse=function(n){if(n==="")return[];if(n.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+n);return n.substring(1).split(/\//).map(e.unescape)},e.compile=function(n){return n.length===0?"":"/"+n.map(e.escape).join("/")},u1}var jve=Rve();const pI=ii(jve);async function Up(t){try{const e=await $ve(t),r=await GZ(t);return{absolutePath:t,file:new File([e],r)}}catch(e){return console.error("Failed to init replay file",e),null}}async function JZ(t){return(await Promise.allSettled(t.map(r=>Up(r)))).map(r=>r.status==="fulfilled"?r.value:null).filter(r=>r!==null)}function KZ(t,e,r){for(const n of r){const i=ZM(t,n),o=ZM(e,n);if(typeof i=="object"&&typeof o=="object"){if(!KZ(i,o,r))return!1}else if(i!==o)return!1}return!0}function ZM(t,e){const r=e.split("/");let n=t;for(const i of r)if(n&&typeof n=="object"&&i in n)n=n[i];else return;return n}var d1={exports:{}};/*!
|
|
245
245
|
Copyright (c) 2018 Jed Watson.
|
|
246
246
|
Licensed under the MIT License (MIT), see
|
|
247
247
|
http://jedwatson.github.io/classnames
|
|
@@ -344,7 +344,7 @@ html body {
|
|
|
344
344
|
align-self: flex-end;
|
|
345
345
|
padding-top: var(--spacing-xxs);
|
|
346
346
|
gap: var(--spacing-xs);
|
|
347
|
-
`;function Zp({input:t,onSave:e,onCancel:r,...n}){const[i,o]=N.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return m.jsx(L9,{variable:t,onSave:s,onCancel:r,...n,children:m.jsx(vp,{children:m.jsx(kOe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function ub(t){var e=new Error(t);return e.source="ulid",e}var wI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Th=wI.length,wN=Math.pow(2,48)-1,ROe=10,jOe=16;function DOe(t){var e=Math.floor(t()*Th);return e===Th&&(e=Th-1),wI.charAt(e)}function MOe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>wN)throw ub("cannot encode time greater than "+wN);if(t<0)throw ub("time must be positive");if(Number.isInteger(t)===!1)throw ub("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Th,n=wI.charAt(r)+n,t=(t-r)/Th;return n}function NOe(t,e){for(var r="";t>0;t--)r=DOe(e)+r;return r}function LOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var r=e&&(e.crypto||e.msCrypto);if(r)return function(){var i=new Uint8Array(1);return r.getRandomValues(i),i[0]/255};try{var n=require("crypto");return function(){return n.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw ub("secure crypto unusable, insecure Math.random not allowed")}function QOe(t){return t||(t=LOe()),function(r){return isNaN(r)&&(r=Date.now()),MOe(r,ROe)+NOe(jOe,t)}}var XO=QOe(),VOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},zl="1.9.0",CN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function zOe(t){var e=new Set([t]),r=new Set,n=t.match(CN);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(r.has(l))return!1;var c=l.match(CN);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var BOe=zOe(zl),qOe=zl.split(".")[0],bp=Symbol.for("opentelemetry.js.api."+qOe),Op=VOe;function Gp(t,e,r,n){var i;n===void 0&&(n=!1);var o=Op[bp]=(i=Op[bp])!==null&&i!==void 0?i:{version:zl};if(!n&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(o.version!==zl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+zl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+zl+"."),!0}function lc(t){var e,r,n=(e=Op[bp])===null||e===void 0?void 0:e.version;if(!(!n||!BOe(n)))return(r=Op[bp])===null||r===void 0?void 0:r[t]}function Yp(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+zl+".");var r=Op[bp];r&&delete r[t]}var FOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},WOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},UOe=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("verbose",this._namespace,e)},t})();function Of(t,e,r){var n=lc("diag");if(n)return r.unshift(e),n[t].apply(n,WOe([],FOe(r),!1))}var fi;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(fi||(fi={}));function XOe(t,e){t<fi.NONE?t=fi.NONE:t>fi.ALL&&(t=fi.ALL),e=e||{};function r(n,i){var o=e[n];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:r("error",fi.ERROR),warn:r("warn",fi.WARN),info:r("info",fi.INFO),debug:r("debug",fi.DEBUG),verbose:r("verbose",fi.VERBOSE)}}var ZOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},GOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},YOe="diag",cs=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=lc("diag");if(a)return a[i].apply(a,GOe([],ZOe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:fi.INFO}),i===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=lc("diag"),d=XOe((a=o.logLevel)!==null&&a!==void 0?a:fi.INFO,i);if(u&&!o.suppressOverrideMessage){var f=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+f),d.warn("Current logger will overwrite one already registered from "+f)}return Gp("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Yp(YOe,r)},r.createComponentLogger=function(i){return new UOe(i)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})(),HOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},JOe=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},KOe=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=HOe(e,2),n=r[0],i=r[1];return[n,i]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new t(this._entries);try{for(var s=JOe(n),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t})(),e0e=Symbol("BaggageEntryMetadata"),t0e=cs.instance();function r0e(t){return t===void 0&&(t={}),new KOe(new Map(Object.entries(t)))}function n0e(t){return typeof t!="string"&&(t0e.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:e0e,toString:function(){return t}}}function CI(t){return Symbol.for(t)}var i0e=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var o=new t(r._currentContext);return o._currentContext.set(n,i),o},r.deleteValue=function(n){var i=new t(r._currentContext);return i._currentContext.delete(n),i}}return t})(),uu=new i0e,wc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),o0e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return g0e},t.prototype.createHistogram=function(e,r){return m0e},t.prototype.createCounter=function(e,r){return p0e},t.prototype.createUpDownCounter=function(e,r){return y0e},t.prototype.createObservableGauge=function(e,r){return b0e},t.prototype.createObservableCounter=function(e,r){return v0e},t.prototype.createObservableUpDownCounter=function(e,r){return O0e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),Lx=(function(){function t(){}return t})(),s0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),a0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),l0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),c0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),PI=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),u0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),d0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),f0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),h0e=new o0e,p0e=new s0e,g0e=new l0e,m0e=new c0e,y0e=new a0e,v0e=new u0e,b0e=new d0e,O0e=new f0e,x0e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},S0e={set:function(t,e,r){t!=null&&(t[e]=r)}},w0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},C0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},P0e=(function(){function t(){}return t.prototype.active=function(){return uu},t.prototype.with=function(e,r,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return r.call.apply(r,C0e([n],w0e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),k0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},$0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},p1="context",E0e=new P0e,Qx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Gp(p1,e,cs.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,$0e([e,r,n],k0e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return lc(p1)||E0e},t.prototype.disable=function(){this._getContextManager().disable(),Yp(p1,cs.instance())},t})(),Js;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Js||(Js={}));var Q9="0000000000000000",V9="00000000000000000000000000000000",z9={traceId:V9,spanId:Q9,traceFlags:Js.NONE},_h=(function(){function t(e){e===void 0&&(e=z9),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})(),kI=CI("OpenTelemetry Context Key SPAN");function $I(t){return t.getValue(kI)||void 0}function A0e(){return $I(Qx.getInstance().active())}function EI(t,e){return t.setValue(kI,e)}function I0e(t){return t.deleteValue(kI)}function T0e(t,e){return EI(t,new _h(e))}function B9(t){var e;return(e=$I(t))===null||e===void 0?void 0:e.spanContext()}var _0e=/^([0-9a-f]{32})$/i,R0e=/^[0-9a-f]{16}$/i;function q9(t){return _0e.test(t)&&t!==V9}function j0e(t){return R0e.test(t)&&t!==Q9}function Vx(t){return q9(t.traceId)&&j0e(t.spanId)}function D0e(t){return new _h(t)}var g1=Qx.getInstance(),F9=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=g1.active());var i=!!(r!=null&&r.root);if(i)return new _h;var o=n&&B9(n);return M0e(o)&&Vx(o)?new _h(o):new _h},t.prototype.startActiveSpan=function(e,r,n,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);var l=s??g1.active(),c=this.startSpan(e,o,l),u=EI(l,c);return g1.with(u,a,void 0,c)}},t})();function M0e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var N0e=new F9,L0e=(function(){function t(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):N0e},t})(),Q0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new F9},t})(),V0e=new Q0e,PN=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){var i;return(i=this.getDelegateTracer(e,r,n))!==null&&i!==void 0?i:new L0e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:V0e},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,r,n)},t})(),ZO;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ZO||(ZO={}));var V$;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(V$||(V$={}));var xp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(xp||(xp={}));var ao=Qx.getInstance(),jt=cs.instance(),z0e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return h0e},t})(),B0e=new z0e,m1="metrics",q0e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Gp(m1,e,cs.instance())},t.prototype.getMeterProvider=function(){return lc(m1)||B0e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Yp(m1,cs.instance())},t})(),F0e=q0e.getInstance(),W0e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),AI=CI("OpenTelemetry Baggage Key");function W9(t){return t.getValue(AI)||void 0}function U0e(){return W9(Qx.getInstance().active())}function X0e(t,e){return t.setValue(AI,e)}function Z0e(t){return t.deleteValue(AI)}var y1="propagation",G0e=new W0e,Y0e=(function(){function t(){this.createBaggage=r0e,this.getBaggage=W9,this.getActiveBaggage=U0e,this.setBaggage=X0e,this.deleteBaggage=Z0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Gp(y1,e,cs.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=S0e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=x0e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Yp(y1,cs.instance())},t.prototype._getGlobalPropagator=function(){return lc(y1)||G0e},t})(),Rh=Y0e.getInstance(),v1="trace",H0e=(function(){function t(){this._proxyTracerProvider=new PN,this.wrapSpanContext=D0e,this.isSpanContextValid=Vx,this.deleteSpan=I0e,this.getSpan=$I,this.getActiveSpan=A0e,this.getSpanContext=B9,this.setSpan=EI,this.setSpanContext=T0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Gp(v1,this._proxyTracerProvider,cs.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return lc(v1)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Yp(v1,cs.instance()),this._proxyTracerProvider=new PN},t})(),mi=H0e.getInstance();const U9=CI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function J0e(t){return t.setValue(U9,!0)}function II(t){return t.getValue(U9)===!0}const K0e="=",z$=";",B$=",",b1="baggage",exe=180,txe=4096,rxe=8192;function nxe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?B$:""}${r}`;return n.length>rxe?e:n},"")}function ixe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=z$+r.metadata.toString()),n})}function oxe(t){const e=t.split(z$);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(K0e);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),o=decodeURIComponent(r.substring(n+1).trim());let s;return e.length>0&&(s=n0e(e.join(z$))),{key:i,value:o,metadata:s}}class sxe{inject(e,r,n){const i=Rh.getBaggage(e);if(!i||II(e))return;const o=ixe(i).filter(a=>a.length<=txe).slice(0,exe),s=nxe(o);s.length>0&&n.set(r,b1,s)}extract(e,r,n){const i=n.get(r,b1),o=Array.isArray(i)?i.join(B$):i;if(!o)return e;const s={};return o.length===0||(o.split(B$).forEach(l=>{const c=oxe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Rh.setBaggage(e,Rh.createBaggage(s))}fields(){return[b1]}}function db(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!axe(r)){jt.warn(`Invalid attribute key: ${r}`);continue}if(!X9(n)){jt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function axe(t){return typeof t=="string"&&t.length>0}function X9(t){return t==null?!0:Array.isArray(t)?lxe(t):Z9(t)}function lxe(t){let e;for(const r of t)if(r!=null){if(!e){if(Z9(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function Z9(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function cxe(){return t=>{jt.error(uxe(t))}}function uxe(t){return typeof t=="string"?t:JSON.stringify(dxe(t))}function dxe(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}let fxe=cxe();function vd(t){try{fxe(t)}catch{}}const Nu=performance,hxe="2.0.1",O1="exception.message",pxe="exception.stacktrace",x1="exception.type",G9="service.name",gxe="service.version",q$="telemetry.sdk.language",mxe="webjs",F$="telemetry.sdk.name",W$="telemetry.sdk.version",yxe="process.runtime.name",S1={[F$]:"opentelemetry",[yxe]:"browser",[q$]:mxe,[W$]:hxe};const vxe=9,bxe=6,Oxe=Math.pow(10,bxe),GO=Math.pow(10,vxe);function Cu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*Oxe);return[r,n]}function Y9(){let t=Nu.timeOrigin;if(typeof t!="number"){const e=Nu;t=e.timing&&e.timing.fetchStart}return t}function xxe(t){const e=Cu(Y9()),r=Cu(typeof t=="number"?t:Nu.now());return J9(e,r)}function Sxe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=GO),[r,n]}function wxe(t){return t[0]*GO+t[1]}function H9(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function kN(t){return H9(t)||typeof t=="number"||t instanceof Date}function J9(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=GO&&(r[1]-=GO,r[0]+=1),r}var zo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(zo||(zo={}));class Cxe{constructor(e={}){xe(this,"_propagators");xe(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(e,r,n){for(const i of this._propagators)try{i.inject(e,r,n)}catch(o){jt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,r,n){return this._propagators.reduce((i,o)=>{try{return o.extract(i,r,n)}catch(s){jt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const U$="[_0-9a-z-*/]",Pxe=`[a-z]${U$}{0,255}`,kxe=`[a-z0-9]${U$}{0,240}@[a-z]${U$}{0,13}`,$xe=new RegExp(`^(?:${Pxe}|${kxe})$`),Exe=/^[ -~]{0,255}[!-~]$/,Axe=/,|=/;function Ixe(t){return $xe.test(t)}function Txe(t){return Exe.test(t)&&!Axe.test(t)}const $N=32,_xe=512,EN=",",AN="=";class TI{constructor(e){xe(this,"_internalState",new Map);e&&this._parse(e)}set(e,r){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){const r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+AN+this.get(r)),e),[]).join(EN)}_parse(e){e.length>_xe||(this._internalState=e.split(EN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(AN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Ixe(s)&&Txe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>$N&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,$N))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new TI;return e._internalState=new Map(this._internalState),e}}const w1="traceparent",C1="tracestate",Rxe="00",jxe="(?!ff)[\\da-f]{2}",Dxe="(?![0]{32})[\\da-f]{32}",Mxe="(?![0]{16})[\\da-f]{16}",Nxe="[\\da-f]{2}",Lxe=new RegExp(`^\\s?(${jxe})-(${Dxe})-(${Mxe})-(${Nxe})(-.*)?\\s?$`);function Qxe(t){const e=Lxe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Vxe{inject(e,r,n){const i=mi.getSpanContext(e);if(!i||II(e)||!Vx(i))return;const o=`${Rxe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Js.NONE).toString(16)}`;n.set(r,w1,o),i.traceState&&n.set(r,C1,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,w1);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Qxe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,C1);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new TI(typeof l=="string"?l:void 0)}return mi.setSpanContext(e,s)}fields(){return[w1,C1]}}const zxe="[object Object]",Bxe="[object Null]",qxe="[object Undefined]",Fxe=Function.prototype,K9=Fxe.toString,Wxe=K9.call(Object),Uxe=Object.getPrototypeOf,eG=Object.prototype,tG=eG.hasOwnProperty,Rl=Symbol?Symbol.toStringTag:void 0,rG=eG.toString;function IN(t){if(!Xxe(t)||Zxe(t)!==zxe)return!1;const e=Uxe(t);if(e===null)return!0;const r=tG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&K9.call(r)===Wxe}function Xxe(t){return t!=null&&typeof t=="object"}function Zxe(t){return t==null?t===void 0?qxe:Bxe:Rl&&Rl in Object(t)?Gxe(t):Yxe(t)}function Gxe(t){const e=tG.call(t,Rl),r=t[Rl];let n=!1;try{t[Rl]=void 0,n=!0}catch{}const i=rG.call(t);return n&&(e?t[Rl]=r:delete t[Rl]),i}function Yxe(t){return rG.call(t)}const Hxe=20;function Jxe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=nG(e,t.shift(),0,r);return e}function P1(t){return YO(t)?t.slice():t}function nG(t,e,r=0,n){let i;if(!(r>Hxe)){if(r++,fb(t)||fb(e)||iG(e))i=P1(e);else if(YO(t)){if(i=t.slice(),YO(e))for(let o=0,s=e.length;o<s;o++)i.push(P1(e[o]));else if(xf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=P1(e[l])}}}else if(xf(t))if(xf(e)){if(!Kxe(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(fb(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(TN(t,l,n)||TN(e,l,n))delete i[l];else{if(xf(u)&&xf(d)){const f=n.get(u)||[],h=n.get(d)||[];f.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,f),n.set(d,h)}i[l]=nG(i[l],c,r,n)}}}}else i=e;return i}}function TN(t,e,r){const n=r.get(t[e])||[];for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.key===e&&s.obj===t)return!0}return!1}function YO(t){return Array.isArray(t)}function iG(t){return typeof t=="function"}function xf(t){return!fb(t)&&!YO(t)&&!iG(t)&&typeof t=="object"}function fb(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Kxe(t,e){return!(!IN(t)||!IN(e))}class eSe{constructor(){xe(this,"_promise");xe(this,"_resolve");xe(this,"_reject");this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class tSe{constructor(e,r){xe(this,"_callback");xe(this,"_that");xe(this,"_isCalled",!1);xe(this,"_deferred",new eSe);this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function rSe(){return"unknown_service"}const ch=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class HO{constructor(e){xe(this,"_rawAttributes");xe(this,"_asyncAttributesPending",!1);xe(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(ch(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=_N(this._rawAttributes)}static FromAttributeList(e){const r=new HO({});return r._rawAttributes=_N(e),r._asyncAttributesPending=e.filter(([n,i])=>ch(i)).length>0,r}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,ch(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&jt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(ch(n)){jt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??(e[r]=n))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:HO.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function oG(t){return HO.FromAttributeList(Object.entries(t))}function nSe(){return oG({[G9]:rSe(),[q$]:S1[q$],[F$]:S1[F$],[W$]:S1[W$]})}function _N(t){return t.map(([e,r])=>ch(r)?[e,r.catch(n=>{jt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const iSe="exception";class oSe{constructor(e){xe(this,"_spanContext");xe(this,"kind");xe(this,"parentSpanContext");xe(this,"attributes",{});xe(this,"links",[]);xe(this,"events",[]);xe(this,"startTime");xe(this,"resource");xe(this,"instrumentationScope");xe(this,"_droppedAttributesCount",0);xe(this,"_droppedEventsCount",0);xe(this,"_droppedLinksCount",0);xe(this,"name");xe(this,"status",{code:xp.UNSET});xe(this,"endTime",[0,0]);xe(this,"_ended",!1);xe(this,"_duration",[-1,-1]);xe(this,"_spanProcessor");xe(this,"_spanLimits");xe(this,"_attributeValueLengthLimit");xe(this,"_performanceStartTime");xe(this,"_performanceOffset");xe(this,"_startTimeProvided");const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=Nu.now(),this._performanceOffset=r-(this._performanceStartTime+Y9()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??r),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,r){if(r==null||this._isSpanEnded())return this;if(e.length===0)return jt.warn(`Invalid attribute key: ${e}`),this;if(!X9(r))return jt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this)}setAttributes(e){for(const[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return jt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&jt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),kN(r)&&(kN(n)||(n=r),r=void 0);const o=db(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(jt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){jt.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(e),this._duration=Sxe(this.startTime,this.endTime),this._duration[0]<0&&(jt.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&&jt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Nu.now())return xxe(e+this._performanceOffset);if(typeof e=="number")return Cu(e);if(e instanceof Date)return Cu(e.getTime());if(H9(e))return e;if(this._startTimeProvided)return Cu(Date.now());const r=Nu.now()-this._performanceStartTime;return J9(this.startTime,Cu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[O1]=e:e&&(e.code?n[x1]=e.code.toString():e.name&&(n[x1]=e.name),e.message&&(n[O1]=e.message),e.stack&&(n[pxe]=e.stack)),n[x1]||n[O1]?this.addEvent(iSe,n,r):jt.warn(`Failed to record an exception ${e}`)}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 e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);jt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substring(0,r)}_truncateToSize(e){const r=this._attributeValueLengthLimit;return r<=0?(jt.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}}var bd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(bd||(bd={}));class JO{shouldSample(){return{decision:bd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Lu{shouldSample(){return{decision:bd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Cm{constructor(e){xe(this,"_root");xe(this,"_remoteParentSampled");xe(this,"_remoteParentNotSampled");xe(this,"_localParentSampled");xe(this,"_localParentNotSampled");this._root=e.root,this._root||(vd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Lu),this._remoteParentSampled=e.remoteParentSampled??new Lu,this._remoteParentNotSampled=e.remoteParentNotSampled??new JO,this._localParentSampled=e.localParentSampled??new Lu,this._localParentNotSampled=e.localParentNotSampled??new JO}shouldSample(e,r,n,i,o,s){const a=mi.getSpanContext(e);return!a||!Vx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Js.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Js.SAMPLED?this._localParentSampled.shouldSample(e,r,n,i,o,s):this._localParentNotSampled.shouldSample(e,r,n,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class RN{constructor(e=0){xe(this,"_ratio");xe(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:q9(r)&&this._accumulate(r)<this._upperBound?bd.RECORD_AND_SAMPLED:bd.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){const i=n*8,o=parseInt(e.slice(i,i+8),16);r=(r^o)>>>0}return r}}const jN=1;function sG(){return{sampler:aG(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function aG(){const t="parentbased_always_on";switch(t){case"always_on":return new Lu;case"always_off":return new JO;case"parentbased_always_on":return new Cm({root:new Lu});case"parentbased_always_off":return new Cm({root:new JO});case"traceidratio":return new RN(DN());case"parentbased_traceidratio":return new Cm({root:new RN(DN())});default:return jt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Cm({root:new Lu})}}function DN(){return jt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${jN}.`),jN}const sSe=128,aSe=1/0;function lSe(t){const e={sampler:aG()},r=sG(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}function cSe(t){var r,n,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((r=t.spanLimits)==null?void 0:r.attributeCountLimit)??((n=t.generalLimits)==null?void 0:n.attributeCountLimit)??void 0??void 0??sSe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??aSe,Object.assign({},t,{spanLimits:e})}class uSe{constructor(e,r){xe(this,"_exporter");xe(this,"_maxExportBatchSize");xe(this,"_maxQueueSize");xe(this,"_scheduledDelayMillis");xe(this,"_exportTimeoutMillis");xe(this,"_isExporting",!1);xe(this,"_finishedSpans",[]);xe(this,"_timer");xe(this,"_shutdownOnce");xe(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(r==null?void 0:r.maxExportBatchSize)=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof(r==null?void 0:r.maxQueueSize)=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof(r==null?void 0:r.scheduledDelayMillis)=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(r==null?void 0:r.exportTimeoutMillis)=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new tSe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(jt.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(e,r){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&Js.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&jt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(jt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{const n=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);ao.with(J0e(ao.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(n),a.code===zo.SUCCESS?e():r(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{vd(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,vd(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class dSe extends uSe{constructor(r,n){super(r,n);xe(this,"_visibilityChangeListener");xe(this,"_pageHideListener");this.onInit(n)}onInit(r){(r==null?void 0:r.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(n=>{vd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{vd(n)})},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 fSe=8,hSe=16;class pSe{constructor(){xe(this,"generateTraceId",MN(hSe));xe(this,"generateSpanId",MN(fSe))}}const Pm=Array(32);function MN(t){return function(){for(let r=0;r<t*2;r++)Pm[r]=Math.floor(Math.random()*16)+48,Pm[r]>=58&&(Pm[r]+=39);return String.fromCharCode.apply(null,Pm.slice(0,t*2))}}class gSe{constructor(e,r,n,i){xe(this,"_sampler");xe(this,"_generalLimits");xe(this,"_spanLimits");xe(this,"_idGenerator");xe(this,"instrumentationScope");xe(this,"_resource");xe(this,"_spanProcessor");const o=lSe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new pSe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=ao.active()){r.root&&(n=mi.deleteSpan(n));const i=mi.getSpan(n);if(II(n))return jt.debug("Instrumentation suppressed, returning Noop Span"),mi.wrapSpanContext(z9);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!mi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??V$.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:db(b.attributes)})),f=db(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const g=h.decision===ZO.RECORD_AND_SAMPLED?Js.SAMPLED:Js.NONE,p={traceId:l,spanId:s,traceFlags:g,traceState:c};if(h.decision===ZO.NOT_RECORD)return jt.debug("Recording is off, propagating context in a non-recording span"),mi.wrapSpanContext(p);const y=db(Object.assign(f,h.attributes));return new oSe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:p,name:e,kind:u,links:d,parentSpanContext:a,attributes:y,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,r,n,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);const l=s??ao.active(),c=this.startSpan(e,o,l),u=mi.setSpan(l,c);return ao.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class mSe{constructor(e){xe(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{vd(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(const n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(const r of this._spanProcessors)r.onEnd(e)}shutdown(){const e=[];for(const r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}}var jl;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(jl||(jl={}));class ySe{constructor(e={}){xe(this,"_config");xe(this,"_tracers",new Map);xe(this,"_resource");xe(this,"_activeSpanProcessor");var i;const r=Jxe({},sG(),cSe(e));this._resource=r.resource??nSe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new mSe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${(n==null?void 0:n.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new gSe({name:e,version:r,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=jl.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==jl.timeout&&(o=jl.resolved,i(o))}).catch(a=>{clearTimeout(s),o=jl.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==jl.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class vSe{constructor(){xe(this,"_enabled",!1);xe(this,"_currentContext",uu)}_bindFunction(e=uu,r){const n=this,i=function(...o){return n.with(e,()=>r.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(e,r){return e===void 0&&(e=this.active()),typeof r=="function"?this._bindFunction(e,r):r}disable(){return this._currentContext=uu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=uu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||uu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function bSe(t){if(t!==null){if(t===void 0){const e=new vSe;e.enable(),ao.setGlobalContextManager(e);return}t.enable(),ao.setGlobalContextManager(t)}}function OSe(t){if(t!==null){if(t===void 0){Rh.setGlobalPropagator(new Cxe({propagators:[new Vxe,new sxe]}));return}Rh.setGlobalPropagator(t)}}class xSe extends ySe{constructor(e={}){super(e)}register(e={}){mi.setGlobalTracerProvider(this),OSe(e.propagator),bSe(e.contextManager)}}class SSe{constructor(e){xe(this,"_delegate");this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class NN extends Error{constructor(r,n,i){super(r);xe(this,"code");xe(this,"name","OTLPExporterError");xe(this,"data");this.data=i,this.code=n}}function wSe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function CSe(t){if(t!=null)return()=>t}function PSe(t,e,r){return{timeoutMillis:wSe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function kSe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class $Se{constructor(e){xe(this,"_concurrencyLimit");xe(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const r=()=>{const n=this._sendingPromises.indexOf(e);this._sendingPromises.splice(n,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function ESe(t){return new $Se(t.concurrencyLimit)}function ASe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function ISe(){return{handleResponse(t){t==null||!ASe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||jt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class TSe{constructor(e,r,n,i,o){xe(this,"_transport");xe(this,"_serializer");xe(this,"_responseHandler");xe(this,"_promiseQueue");xe(this,"_timeout");xe(this,"_diagLogger");this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=jt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:zo.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:zo.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}r({code:zo.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:zo.FAILED,error:i.error});return}else i.status==="retryable"?r({code:zo.FAILED,error:new NN("Export failed with retryable status")}):r({code:zo.FAILED,error:new NN("Export failed with unknown error")})},i=>r({code:zo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function _Se(t,e){return new TSe(t.transport,t.serializer,ISe(),t.promiseHandler,e.timeout)}function lG(t,e,r){return _Se({transport:r,serializer:e,promiseHandler:ESe(t)},{timeout:t.timeoutMillis})}function LN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function cG(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=LN(t.charCodeAt(n)),o=LN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function uG(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function RSe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function jSe(t){const e=uG(t);return RSe(e)}function DSe(t){return uG(t).toString()}const MSe=typeof BigInt<"u"?DSe:wxe;function QN(t){return t}function NSe(t){if(t!==void 0)return cG(t)}const LSe={encodeHrTime:jSe,encodeSpanContext:cG,encodeOptionalSpanContext:NSe};function QSe(t){return t===void 0?LSe:{encodeHrTime:MSe,encodeSpanContext:QN,encodeOptionalSpanContext:QN}}function VSe(t){return{attributes:zx(t.attributes),droppedAttributesCount:0}}function zSe(t){return{name:t.name,version:t.version}}function zx(t){return Object.keys(t).map(e=>dG(e,t[e]))}function dG(t,e){return{key:t,value:fG(e)}}function fG(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(fG)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>dG(r,n))}}:{}}function BSe(t,e){var o,s,a;const r=t.spanContext(),n=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:(a=r.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:zx(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>FSe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>qSe(l,e)),droppedLinksCount:t.droppedLinksCount}}function qSe(t,e){var r;return{attributes:t.attributes?zx(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(r=t.context.traceState)==null?void 0:r.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function FSe(t,e){return{attributes:t.attributes?zx(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function WSe(t,e){const r=QSe(e);return{resourceSpans:XSe(t,r)}}function USe(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(r)}return e}function XSe(t,e){const r=USe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const f=u.value;if(f.length>0){const h=f.map(g=>BSe(g,e));l.push({scope:zSe(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:VSe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const ZSe={serializeRequest:t=>{const e=WSe(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},GSe=5,YSe=1e3,HSe=5e3,JSe=1.5,VN=.2;function KSe(){return Math.random()*(2*VN)-VN}class ewe{constructor(e){xe(this,"_transport");this._transport=e}retry(e,r,n){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,r).then(i,o)},n)})}async send(e,r){const n=Date.now()+r;let i=await this._transport.send(e,r),o=GSe,s=YSe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,HSe)+KSe(),0);s=s*JSe;const l=i.retryInMillis??a,c=n-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function hG(t){return new ewe(t.transport)}function twe(t){return[429,502,503,504].includes(t)}function rwe(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const r=new Date(t).getTime()-Date.now();return r>=0?r:0}class nwe{constructor(e){xe(this,"_parameters");this._parameters=e}send(e,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(jt.debug("XHR success"),n({status:"success"})):i.status&&twe(i.status)?n({status:"retryable",retryInMillis:rwe(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function iwe(t){return new nwe(t)}class owe{constructor(e){xe(this,"_params");this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(jt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function swe(t){return new owe(t)}function awe(t,e){return lG(t,e,hG({transport:iwe(t)}))}function lwe(t,e){return lG(t,e,hG({transport:swe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function cwe(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):jt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function uwe(t,e,r){const n={...r()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,n))}function dwe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function fwe(t,e,r){return{...PSe(t,e,r),headers:uwe(cwe(t.headers),e.headers,r.headers),url:dwe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function hwe(t,e){return{...kSe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function pwe(t,e,r){return fwe({url:t.url,timeoutMillis:t.timeoutMillis,headers:CSe(t.headers),concurrencyLimit:t.concurrencyLimit},{},hwe(r,e))}function gwe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=pwe(t,r,n);return i?awe(o,e):lwe(o,e)}class mwe extends SSe{constructor(e={}){super(gwe(e,ZSe,"v1/traces",{"Content-Type":"application/json"}))}}class pG{emit(e){}}const ywe=new pG;class vwe{getLogger(e,r,n){return new pG}}const gG=new vwe;class bwe{constructor(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ywe}}class zN{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new bwe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:gG}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,r,n)}}const Owe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},km=Symbol.for("io.opentelemetry.js.api.logs"),Sf=Owe;function xwe(t,e,r){return n=>n===t?e:r}const BN=1;class _I{constructor(){this._proxyLoggerProvider=new zN}static getInstance(){return this._instance||(this._instance=new _I),this._instance}setGlobalLoggerProvider(e){return Sf[km]?this.getLoggerProvider():(Sf[km]=xwe(BN,e,gG),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Sf[km])===null||e===void 0?void 0:e.call(Sf,BN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Sf[km],this._proxyLoggerProvider=new zN}}const Swe=_I.getInstance();function wwe(t,e,r,n){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}function Cwe(t){t.forEach(e=>e.disable())}function Pwe(t){var o;const e=t.tracerProvider||mi.getTracerProvider(),r=t.meterProvider||F0e.getMeterProvider(),n=t.loggerProvider||Swe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return wwe(i,e,r,n),()=>{Cwe(i)}}class qN{constructor(e){xe(this,"span");this.span=e}error(e){this.span&&(this.span.setStatus(xp.ERROR,e.message),this.span.recordException(e),this.span.end())}setAttribute(e,r){this.span&&this.span.setAttribute(e,r)}end(){this.span&&(this.span.setStatus(xp.OK),this.span.end())}}class kwe{constructor(){xe(this,"config",null);xe(this,"tracer",null);xe(this,"tracerProvider",null);xe(this,"initialized",!1);xe(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase())}initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){var r;try{if(!this.tracer||!this.config)return;const n=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),startTime:n}).end(n)}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}processAttributes(e,r){var o,s,a,l,c;const i={"cloudevents.event_id":XO(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":r.toISOString(),"cloudevents.event_subject":e.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":(o=this.config)==null?void 0:o.version,"cloudevents.event_origin":(s=this.config)==null?void 0:s.serviceName,"cloudevents.event_source_details.id":((a=e.sourceDetails)==null?void 0:a.id)??"anonymous","cloudevents.event_source_details.object":((l=e.sourceDetails)==null?void 0:l.object)??"anonymous","cloudevents.event_source_details.uri":(c=e.sourceDetails)==null?void 0:c.uri};if(e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([u,d])=>{const f=u.replace(/([A-Z])/g,"_$1").toLowerCase();d!==void 0&&(i[`cloudevents.event_data.${f}`]=d)}),"subjects"in e&&Array.isArray(e.subjects)){const u=e.subjects.reduce((d,f)=>{if(!f||typeof f!="object")return d;const h=f.object;if(!h||typeof h!="string")return d;const g=d.notUpdated.find(({object:p})=>p===h);return g?(d.updated=[g,f],d.notUpdated=d.notUpdated.filter(({object:p})=>p!==h)):d.updated.some(({object:p})=>p===h)||d.notUpdated.push(f),d},{updated:[],notUpdated:[]});u.updated.forEach((d,f)=>{const h=f===0?"after.":"before.",g=`${d.object}.`;Object.entries(d).forEach(([p,y])=>{y!==void 0&&(i[`cloudevents.subjects.${h}${g}${p}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([h,g])=>{g!==void 0&&(i[`cloudevents.subjects.${f}${h}`]=g)})})}return Object.entries(e).forEach(([u,d])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(u)||d!==void 0&&(d instanceof Object?Object.entries(d).forEach(([f,h])=>{h!==void 0&&(i[`cloudevents.${u}.${f}`]=h)}):i[`cloudevents.${u}`]=d)}),i}startSpan(e,r){var n;try{if(!this.tracer)return;let i;const o=e.time?new Date(e.time):new Date,s=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,o),root:!r},r);return r||(i=mi.setSpan(ao.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:i}}catch(i){(n=this.config)!=null&&n.isProd||console.error("Event reporting failed:",i)}}startStepSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),root:!1},ao.active());return{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),recordException:o=>i.recordException(o)}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startRootSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},ao.active()),o=mi.setSpan(ao.active(),i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startTrace(e){const r=this.startStepSpan(e);if(r)return new qN(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new qN(r),context:r.context}}async forceFlush(){var e;return(e=this.tracerProvider)==null?void 0:e.forceFlush()}}class $we extends kwe{constructor(){super();xe(this,"tracerProvider",null);xe(this,"tracer",null);xe(this,"initialized",!1)}initTracer(r){if(!r.collectorUrl&&!r.collectorTraceUrl)return;const n=`ses_${XO()}`,i=oG({[G9]:r.serviceName,[gxe]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new xSe({resource:i,spanProcessors:[new dSe(new mwe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),Pwe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class Ewe{constructor(){xe(this,"config",null);xe(this,"initialized",!1);xe(this,"useCloudEventData");xe(this,"otelClient");xe(this,"traceApi");xe(this,"updateCloudEventData",e=>{var r;(r=this.config)!=null&&r.disabled||(this.useCloudEventData=e)});this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new $we,this.traceApi={startStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startTrace(n)},startRoot:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startRootTrace(n)}}}send(e,r){var n,i;try{if(!((n=this.config)!=null&&n.otel.isProd))return;const o=this.constructCloudEvent(e,r);this.sendToOtelService(o)}catch(o){(i=this.config)!=null&&i.otel.isProd||console.error("Event reporting failed:",o)}}init(e){e.disabled||this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,collectorTraceUrl:e.otel.collectorTraceUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName,instrumentations:[...e.otel.instrumentations||[]]}))}startSpan(e,r,n){var o;if((o=this.config)!=null&&o.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}startStepSpan(e,r){const n=this.constructCloudEvent(e,r);return this.otelClient.startStepSpan(n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${XO()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${XO()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){var r;(r=this.config)!=null&&r.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){var e;return(e=this.config)!=null&&e.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendServerManagementMessage(e){this.send("server.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(e){this.send("workflow.run.result",e)}}function Awe(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Iwe=Awe(),Twe=N.createContext(Iwe);function gs(){const t=N.useContext(Twe);return V5(t)}function _we(t,e){const{apps:{apiId:r}}=Et(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=gs();n.set((t==null?void 0:t.corsProxyUrl)??Jre),o.set(t==null?void 0:t.mockServer),r.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),N.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const Bx=N.createContext({});function RI(){return N.useContext(Bx)||{}}const Rwe="0.17.0-next.12",jwe={version:Rwe};class Dwe{constructor(){xe(this,"client");xe(this,"_isInitialized",!1);this.client=new Ewe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:jwe.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({otel:{...n,...e}}),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,r)}catch(n){console.error("Failed to send telemetry event:",n)}}}const k1=new Dwe;function bt(){const{telemetry:t}=RI();return k1.isInitialized||k1.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{k1.sendEvent(e,r)}}}const Mn=800;var Mwe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nwe(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,i=n===void 0?!1:n,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,g=Ci(t,Mwe),p=N.useState(a!==void 0?a:r),y=it(p,2),v=y[0],b=y[1],O=N.useState(l!==void 0?l:i),S=it(O,2),x=S[0],w=S[1],P=N.useState(h!==void 0?h:s),I=it(P,2),E=I[0],M=I[1],V=N.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),M(ie)},[c]),U=N.useCallback(function(ie,he){var L;typeof u=="function"&&(L=u(ie,he)),b(L!==void 0?L:ie)},[u]),X=N.useCallback(function(){typeof f=="function"&&f(),w(!0)},[f]),J=N.useCallback(function(){typeof d=="function"&&d(),w(!1)},[d]),te=a!==void 0?a:v,oe=l!==void 0?l:x,ae=h!==void 0?h:E;return $e($e({},g),{},{inputValue:te,menuIsOpen:oe,onChange:V,onInputChange:U,onMenuClose:J,onMenuOpen:X,value:ae})}function Lwe(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Qwe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Vwe=(function(){function t(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qwe(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
347
|
+
`;function Zp({input:t,onSave:e,onCancel:r,...n}){const[i,o]=N.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return m.jsx(L9,{variable:t,onSave:s,onCancel:r,...n,children:m.jsx(vp,{children:m.jsx(kOe,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function ub(t){var e=new Error(t);return e.source="ulid",e}var wI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Th=wI.length,wN=Math.pow(2,48)-1,ROe=10,jOe=16;function DOe(t){var e=Math.floor(t()*Th);return e===Th&&(e=Th-1),wI.charAt(e)}function MOe(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>wN)throw ub("cannot encode time greater than "+wN);if(t<0)throw ub("time must be positive");if(Number.isInteger(t)===!1)throw ub("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Th,n=wI.charAt(r)+n,t=(t-r)/Th;return n}function NOe(t,e){for(var r="";t>0;t--)r=DOe(e)+r;return r}function LOe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var r=e&&(e.crypto||e.msCrypto);if(r)return function(){var i=new Uint8Array(1);return r.getRandomValues(i),i[0]/255};try{var n=require("crypto");return function(){return n.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw ub("secure crypto unusable, insecure Math.random not allowed")}function QOe(t){return t||(t=LOe()),function(r){return isNaN(r)&&(r=Date.now()),MOe(r,ROe)+NOe(jOe,t)}}var XO=QOe(),VOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},zl="1.9.0",CN=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function zOe(t){var e=new Set([t]),r=new Set,n=t.match(CN);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(r.has(l))return!1;var c=l.match(CN);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var BOe=zOe(zl),qOe=zl.split(".")[0],bp=Symbol.for("opentelemetry.js.api."+qOe),Op=VOe;function Gp(t,e,r,n){var i;n===void 0&&(n=!1);var o=Op[bp]=(i=Op[bp])!==null&&i!==void 0?i:{version:zl};if(!n&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(o.version!==zl){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+zl);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+zl+"."),!0}function lc(t){var e,r,n=(e=Op[bp])===null||e===void 0?void 0:e.version;if(!(!n||!BOe(n)))return(r=Op[bp])===null||r===void 0?void 0:r[t]}function Yp(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+zl+".");var r=Op[bp];r&&delete r[t]}var FOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},WOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},UOe=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Of("verbose",this._namespace,e)},t})();function Of(t,e,r){var n=lc("diag");if(n)return r.unshift(e),n[t].apply(n,WOe([],FOe(r),!1))}var fi;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(fi||(fi={}));function XOe(t,e){t<fi.NONE?t=fi.NONE:t>fi.ALL&&(t=fi.ALL),e=e||{};function r(n,i){var o=e[n];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:r("error",fi.ERROR),warn:r("warn",fi.WARN),info:r("info",fi.INFO),debug:r("debug",fi.DEBUG),verbose:r("verbose",fi.VERBOSE)}}var ZOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},GOe=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},YOe="diag",cs=(function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=lc("diag");if(a)return a[i].apply(a,GOe([],ZOe(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:fi.INFO}),i===r){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=lc("diag"),d=XOe((a=o.logLevel)!==null&&a!==void 0?a:fi.INFO,i);if(u&&!o.suppressOverrideMessage){var f=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+f),d.warn("Current logger will overwrite one already registered from "+f)}return Gp("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Yp(YOe,r)},r.createComponentLogger=function(i){return new UOe(i)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})(),HOe=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},JOe=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},KOe=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=HOe(e,2),n=r[0],i=r[1];return[n,i]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new t(this._entries);try{for(var s=JOe(n),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t})(),e0e=Symbol("BaggageEntryMetadata"),t0e=cs.instance();function r0e(t){return t===void 0&&(t={}),new KOe(new Map(Object.entries(t)))}function n0e(t){return typeof t!="string"&&(t0e.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:e0e,toString:function(){return t}}}function CI(t){return Symbol.for(t)}var i0e=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var o=new t(r._currentContext);return o._currentContext.set(n,i),o},r.deleteValue=function(n){var i=new t(r._currentContext);return i._currentContext.delete(n),i}}return t})(),uu=new i0e,wc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),o0e=(function(){function t(){}return t.prototype.createGauge=function(e,r){return g0e},t.prototype.createHistogram=function(e,r){return m0e},t.prototype.createCounter=function(e,r){return p0e},t.prototype.createUpDownCounter=function(e,r){return y0e},t.prototype.createObservableGauge=function(e,r){return b0e},t.prototype.createObservableCounter=function(e,r){return v0e},t.prototype.createObservableUpDownCounter=function(e,r){return O0e},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),Lx=(function(){function t(){}return t})(),s0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),a0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e})(Lx),l0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),c0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e})(Lx),PI=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),u0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),d0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),f0e=(function(t){wc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(PI),h0e=new o0e,p0e=new s0e,g0e=new l0e,m0e=new c0e,y0e=new a0e,v0e=new u0e,b0e=new d0e,O0e=new f0e,x0e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},S0e={set:function(t,e,r){t!=null&&(t[e]=r)}},w0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},C0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},P0e=(function(){function t(){}return t.prototype.active=function(){return uu},t.prototype.with=function(e,r,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return r.call.apply(r,C0e([n],w0e(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})(),k0e=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},$0e=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},p1="context",E0e=new P0e,Qx=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Gp(p1,e,cs.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,$0e([e,r,n],k0e(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return lc(p1)||E0e},t.prototype.disable=function(){this._getContextManager().disable(),Yp(p1,cs.instance())},t})(),Js;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Js||(Js={}));var Q9="0000000000000000",V9="00000000000000000000000000000000",z9={traceId:V9,spanId:Q9,traceFlags:Js.NONE},_h=(function(){function t(e){e===void 0&&(e=z9),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})(),kI=CI("OpenTelemetry Context Key SPAN");function $I(t){return t.getValue(kI)||void 0}function A0e(){return $I(Qx.getInstance().active())}function EI(t,e){return t.setValue(kI,e)}function I0e(t){return t.deleteValue(kI)}function T0e(t,e){return EI(t,new _h(e))}function B9(t){var e;return(e=$I(t))===null||e===void 0?void 0:e.spanContext()}var _0e=/^([0-9a-f]{32})$/i,R0e=/^[0-9a-f]{16}$/i;function q9(t){return _0e.test(t)&&t!==V9}function j0e(t){return R0e.test(t)&&t!==Q9}function Vx(t){return q9(t.traceId)&&j0e(t.spanId)}function D0e(t){return new _h(t)}var g1=Qx.getInstance(),F9=(function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=g1.active());var i=!!(r!=null&&r.root);if(i)return new _h;var o=n&&B9(n);return M0e(o)&&Vx(o)?new _h(o):new _h},t.prototype.startActiveSpan=function(e,r,n,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);var l=s??g1.active(),c=this.startSpan(e,o,l),u=EI(l,c);return g1.with(u,a,void 0,c)}},t})();function M0e(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var N0e=new F9,L0e=(function(){function t(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):N0e},t})(),Q0e=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new F9},t})(),V0e=new Q0e,PN=(function(){function t(){}return t.prototype.getTracer=function(e,r,n){var i;return(i=this.getDelegateTracer(e,r,n))!==null&&i!==void 0?i:new L0e(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:V0e},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,r,n)},t})(),ZO;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ZO||(ZO={}));var V$;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(V$||(V$={}));var xp;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(xp||(xp={}));var ao=Qx.getInstance(),jt=cs.instance(),z0e=(function(){function t(){}return t.prototype.getMeter=function(e,r,n){return h0e},t})(),B0e=new z0e,m1="metrics",q0e=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return Gp(m1,e,cs.instance())},t.prototype.getMeterProvider=function(){return lc(m1)||B0e},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Yp(m1,cs.instance())},t})(),F0e=q0e.getInstance(),W0e=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})(),AI=CI("OpenTelemetry Baggage Key");function W9(t){return t.getValue(AI)||void 0}function U0e(){return W9(Qx.getInstance().active())}function X0e(t,e){return t.setValue(AI,e)}function Z0e(t){return t.deleteValue(AI)}var y1="propagation",G0e=new W0e,Y0e=(function(){function t(){this.createBaggage=r0e,this.getBaggage=W9,this.getActiveBaggage=U0e,this.setBaggage=X0e,this.deleteBaggage=Z0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Gp(y1,e,cs.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=S0e),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=x0e),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Yp(y1,cs.instance())},t.prototype._getGlobalPropagator=function(){return lc(y1)||G0e},t})(),Rh=Y0e.getInstance(),v1="trace",H0e=(function(){function t(){this._proxyTracerProvider=new PN,this.wrapSpanContext=D0e,this.isSpanContextValid=Vx,this.deleteSpan=I0e,this.getSpan=$I,this.getActiveSpan=A0e,this.getSpanContext=B9,this.setSpan=EI,this.setSpanContext=T0e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=Gp(v1,this._proxyTracerProvider,cs.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return lc(v1)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Yp(v1,cs.instance()),this._proxyTracerProvider=new PN},t})(),mi=H0e.getInstance();const U9=CI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function J0e(t){return t.setValue(U9,!0)}function II(t){return t.getValue(U9)===!0}const K0e="=",z$=";",B$=",",b1="baggage",exe=180,txe=4096,rxe=8192;function nxe(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?B$:""}${r}`;return n.length>rxe?e:n},"")}function ixe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=z$+r.metadata.toString()),n})}function oxe(t){const e=t.split(z$);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(K0e);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),o=decodeURIComponent(r.substring(n+1).trim());let s;return e.length>0&&(s=n0e(e.join(z$))),{key:i,value:o,metadata:s}}class sxe{inject(e,r,n){const i=Rh.getBaggage(e);if(!i||II(e))return;const o=ixe(i).filter(a=>a.length<=txe).slice(0,exe),s=nxe(o);s.length>0&&n.set(r,b1,s)}extract(e,r,n){const i=n.get(r,b1),o=Array.isArray(i)?i.join(B$):i;if(!o)return e;const s={};return o.length===0||(o.split(B$).forEach(l=>{const c=oxe(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Rh.setBaggage(e,Rh.createBaggage(s))}fields(){return[b1]}}function db(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!axe(r)){jt.warn(`Invalid attribute key: ${r}`);continue}if(!X9(n)){jt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function axe(t){return typeof t=="string"&&t.length>0}function X9(t){return t==null?!0:Array.isArray(t)?lxe(t):Z9(t)}function lxe(t){let e;for(const r of t)if(r!=null){if(!e){if(Z9(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function Z9(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function cxe(){return t=>{jt.error(uxe(t))}}function uxe(t){return typeof t=="string"?t:JSON.stringify(dxe(t))}function dxe(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}let fxe=cxe();function vd(t){try{fxe(t)}catch{}}const Nu=performance,hxe="2.0.1",O1="exception.message",pxe="exception.stacktrace",x1="exception.type",G9="service.name",gxe="service.version",q$="telemetry.sdk.language",mxe="webjs",F$="telemetry.sdk.name",W$="telemetry.sdk.version",yxe="process.runtime.name",S1={[F$]:"opentelemetry",[yxe]:"browser",[q$]:mxe,[W$]:hxe};const vxe=9,bxe=6,Oxe=Math.pow(10,bxe),GO=Math.pow(10,vxe);function Cu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*Oxe);return[r,n]}function Y9(){let t=Nu.timeOrigin;if(typeof t!="number"){const e=Nu;t=e.timing&&e.timing.fetchStart}return t}function xxe(t){const e=Cu(Y9()),r=Cu(typeof t=="number"?t:Nu.now());return J9(e,r)}function Sxe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=GO),[r,n]}function wxe(t){return t[0]*GO+t[1]}function H9(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function kN(t){return H9(t)||typeof t=="number"||t instanceof Date}function J9(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=GO&&(r[1]-=GO,r[0]+=1),r}var zo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(zo||(zo={}));class Cxe{constructor(e={}){xe(this,"_propagators");xe(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(e,r,n){for(const i of this._propagators)try{i.inject(e,r,n)}catch(o){jt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,r,n){return this._propagators.reduce((i,o)=>{try{return o.extract(i,r,n)}catch(s){jt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const U$="[_0-9a-z-*/]",Pxe=`[a-z]${U$}{0,255}`,kxe=`[a-z0-9]${U$}{0,240}@[a-z]${U$}{0,13}`,$xe=new RegExp(`^(?:${Pxe}|${kxe})$`),Exe=/^[ -~]{0,255}[!-~]$/,Axe=/,|=/;function Ixe(t){return $xe.test(t)}function Txe(t){return Exe.test(t)&&!Axe.test(t)}const $N=32,_xe=512,EN=",",AN="=";class TI{constructor(e){xe(this,"_internalState",new Map);e&&this._parse(e)}set(e,r){const n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){const r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+AN+this.get(r)),e),[]).join(EN)}_parse(e){e.length>_xe||(this._internalState=e.split(EN).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(AN);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);Ixe(s)&&Txe(a)&&r.set(s,a)}return r},new Map),this._internalState.size>$N&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,$N))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new TI;return e._internalState=new Map(this._internalState),e}}const w1="traceparent",C1="tracestate",Rxe="00",jxe="(?!ff)[\\da-f]{2}",Dxe="(?![0]{32})[\\da-f]{32}",Mxe="(?![0]{16})[\\da-f]{16}",Nxe="[\\da-f]{2}",Lxe=new RegExp(`^\\s?(${jxe})-(${Dxe})-(${Mxe})-(${Nxe})(-.*)?\\s?$`);function Qxe(t){const e=Lxe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Vxe{inject(e,r,n){const i=mi.getSpanContext(e);if(!i||II(e)||!Vx(i))return;const o=`${Rxe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Js.NONE).toString(16)}`;n.set(r,w1,o),i.traceState&&n.set(r,C1,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,w1);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Qxe(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,C1);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new TI(typeof l=="string"?l:void 0)}return mi.setSpanContext(e,s)}fields(){return[w1,C1]}}const zxe="[object Object]",Bxe="[object Null]",qxe="[object Undefined]",Fxe=Function.prototype,K9=Fxe.toString,Wxe=K9.call(Object),Uxe=Object.getPrototypeOf,eG=Object.prototype,tG=eG.hasOwnProperty,Rl=Symbol?Symbol.toStringTag:void 0,rG=eG.toString;function IN(t){if(!Xxe(t)||Zxe(t)!==zxe)return!1;const e=Uxe(t);if(e===null)return!0;const r=tG.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&K9.call(r)===Wxe}function Xxe(t){return t!=null&&typeof t=="object"}function Zxe(t){return t==null?t===void 0?qxe:Bxe:Rl&&Rl in Object(t)?Gxe(t):Yxe(t)}function Gxe(t){const e=tG.call(t,Rl),r=t[Rl];let n=!1;try{t[Rl]=void 0,n=!0}catch{}const i=rG.call(t);return n&&(e?t[Rl]=r:delete t[Rl]),i}function Yxe(t){return rG.call(t)}const Hxe=20;function Jxe(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=nG(e,t.shift(),0,r);return e}function P1(t){return YO(t)?t.slice():t}function nG(t,e,r=0,n){let i;if(!(r>Hxe)){if(r++,fb(t)||fb(e)||iG(e))i=P1(e);else if(YO(t)){if(i=t.slice(),YO(e))for(let o=0,s=e.length;o<s;o++)i.push(P1(e[o]));else if(xf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=P1(e[l])}}}else if(xf(t))if(xf(e)){if(!Kxe(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(fb(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(TN(t,l,n)||TN(e,l,n))delete i[l];else{if(xf(u)&&xf(d)){const f=n.get(u)||[],h=n.get(d)||[];f.push({obj:t,key:l}),h.push({obj:e,key:l}),n.set(u,f),n.set(d,h)}i[l]=nG(i[l],c,r,n)}}}}else i=e;return i}}function TN(t,e,r){const n=r.get(t[e])||[];for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.key===e&&s.obj===t)return!0}return!1}function YO(t){return Array.isArray(t)}function iG(t){return typeof t=="function"}function xf(t){return!fb(t)&&!YO(t)&&!iG(t)&&typeof t=="object"}function fb(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Kxe(t,e){return!(!IN(t)||!IN(e))}class eSe{constructor(){xe(this,"_promise");xe(this,"_resolve");xe(this,"_reject");this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class tSe{constructor(e,r){xe(this,"_callback");xe(this,"_that");xe(this,"_isCalled",!1);xe(this,"_deferred",new eSe);this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function rSe(){return"unknown_service"}const ch=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class HO{constructor(e){xe(this,"_rawAttributes");xe(this,"_asyncAttributesPending",!1);xe(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(ch(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=_N(this._rawAttributes)}static FromAttributeList(e){const r=new HO({});return r._rawAttributes=_N(e),r._asyncAttributesPending=e.filter(([n,i])=>ch(i)).length>0,r}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,ch(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&jt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(ch(n)){jt.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??(e[r]=n))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:HO.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function oG(t){return HO.FromAttributeList(Object.entries(t))}function nSe(){return oG({[G9]:rSe(),[q$]:S1[q$],[F$]:S1[F$],[W$]:S1[W$]})}function _N(t){return t.map(([e,r])=>ch(r)?[e,r.catch(n=>{jt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const iSe="exception";class oSe{constructor(e){xe(this,"_spanContext");xe(this,"kind");xe(this,"parentSpanContext");xe(this,"attributes",{});xe(this,"links",[]);xe(this,"events",[]);xe(this,"startTime");xe(this,"resource");xe(this,"instrumentationScope");xe(this,"_droppedAttributesCount",0);xe(this,"_droppedEventsCount",0);xe(this,"_droppedLinksCount",0);xe(this,"name");xe(this,"status",{code:xp.UNSET});xe(this,"endTime",[0,0]);xe(this,"_ended",!1);xe(this,"_duration",[-1,-1]);xe(this,"_spanProcessor");xe(this,"_spanLimits");xe(this,"_attributeValueLengthLimit");xe(this,"_performanceStartTime");xe(this,"_performanceOffset");xe(this,"_startTimeProvided");const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=Nu.now(),this._performanceOffset=r-(this._performanceStartTime+Y9()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??r),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,r){if(r==null||this._isSpanEnded())return this;if(e.length===0)return jt.warn(`Invalid attribute key: ${e}`),this;if(!X9(r))return jt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this)}setAttributes(e){for(const[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return jt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&jt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),kN(r)&&(kN(n)||(n=r),r=void 0);const o=db(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(jt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){jt.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(e),this._duration=Sxe(this.startTime,this.endTime),this._duration[0]<0&&(jt.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&&jt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=Nu.now())return xxe(e+this._performanceOffset);if(typeof e=="number")return Cu(e);if(e instanceof Date)return Cu(e.getTime());if(H9(e))return e;if(this._startTimeProvided)return Cu(Date.now());const r=Nu.now()-this._performanceStartTime;return J9(this.startTime,Cu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[O1]=e:e&&(e.code?n[x1]=e.code.toString():e.name&&(n[x1]=e.name),e.message&&(n[O1]=e.message),e.stack&&(n[pxe]=e.stack)),n[x1]||n[O1]?this.addEvent(iSe,n,r):jt.warn(`Failed to record an exception ${e}`)}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 e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);jt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substring(0,r)}_truncateToSize(e){const r=this._attributeValueLengthLimit;return r<=0?(jt.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}}var bd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(bd||(bd={}));class JO{shouldSample(){return{decision:bd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Lu{shouldSample(){return{decision:bd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Cm{constructor(e){xe(this,"_root");xe(this,"_remoteParentSampled");xe(this,"_remoteParentNotSampled");xe(this,"_localParentSampled");xe(this,"_localParentNotSampled");this._root=e.root,this._root||(vd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Lu),this._remoteParentSampled=e.remoteParentSampled??new Lu,this._remoteParentNotSampled=e.remoteParentNotSampled??new JO,this._localParentSampled=e.localParentSampled??new Lu,this._localParentNotSampled=e.localParentNotSampled??new JO}shouldSample(e,r,n,i,o,s){const a=mi.getSpanContext(e);return!a||!Vx(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&Js.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&Js.SAMPLED?this._localParentSampled.shouldSample(e,r,n,i,o,s):this._localParentNotSampled.shouldSample(e,r,n,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class RN{constructor(e=0){xe(this,"_ratio");xe(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:q9(r)&&this._accumulate(r)<this._upperBound?bd.RECORD_AND_SAMPLED:bd.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){const i=n*8,o=parseInt(e.slice(i,i+8),16);r=(r^o)>>>0}return r}}const jN=1;function sG(){return{sampler:aG(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function aG(){const t="parentbased_always_on";switch(t){case"always_on":return new Lu;case"always_off":return new JO;case"parentbased_always_on":return new Cm({root:new Lu});case"parentbased_always_off":return new Cm({root:new JO});case"traceidratio":return new RN(DN());case"parentbased_traceidratio":return new Cm({root:new RN(DN())});default:return jt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Cm({root:new Lu})}}function DN(){return jt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${jN}.`),jN}const sSe=128,aSe=1/0;function lSe(t){const e={sampler:aG()},r=sG(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}function cSe(t){var r,n,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((r=t.spanLimits)==null?void 0:r.attributeCountLimit)??((n=t.generalLimits)==null?void 0:n.attributeCountLimit)??void 0??void 0??sSe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??aSe,Object.assign({},t,{spanLimits:e})}class uSe{constructor(e,r){xe(this,"_exporter");xe(this,"_maxExportBatchSize");xe(this,"_maxQueueSize");xe(this,"_scheduledDelayMillis");xe(this,"_exportTimeoutMillis");xe(this,"_isExporting",!1);xe(this,"_finishedSpans",[]);xe(this,"_timer");xe(this,"_shutdownOnce");xe(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(r==null?void 0:r.maxExportBatchSize)=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof(r==null?void 0:r.maxQueueSize)=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof(r==null?void 0:r.scheduledDelayMillis)=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(r==null?void 0:r.exportTimeoutMillis)=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new tSe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(jt.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(e,r){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&Js.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&jt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(jt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{const n=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);ao.with(J0e(ao.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(n),a.code===zo.SUCCESS?e():r(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{vd(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,vd(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class dSe extends uSe{constructor(r,n){super(r,n);xe(this,"_visibilityChangeListener");xe(this,"_pageHideListener");this.onInit(n)}onInit(r){(r==null?void 0:r.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(n=>{vd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{vd(n)})},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 fSe=8,hSe=16;class pSe{constructor(){xe(this,"generateTraceId",MN(hSe));xe(this,"generateSpanId",MN(fSe))}}const Pm=Array(32);function MN(t){return function(){for(let r=0;r<t*2;r++)Pm[r]=Math.floor(Math.random()*16)+48,Pm[r]>=58&&(Pm[r]+=39);return String.fromCharCode.apply(null,Pm.slice(0,t*2))}}class gSe{constructor(e,r,n,i){xe(this,"_sampler");xe(this,"_generalLimits");xe(this,"_spanLimits");xe(this,"_idGenerator");xe(this,"instrumentationScope");xe(this,"_resource");xe(this,"_spanProcessor");const o=lSe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new pSe,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=ao.active()){r.root&&(n=mi.deleteSpan(n));const i=mi.getSpan(n);if(II(n))return jt.debug("Instrumentation suppressed, returning Noop Span"),mi.wrapSpanContext(z9);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!mi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??V$.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:db(b.attributes)})),f=db(r.attributes),h=this._sampler.shouldSample(n,l,e,u,f,d);c=h.traceState??c;const g=h.decision===ZO.RECORD_AND_SAMPLED?Js.SAMPLED:Js.NONE,p={traceId:l,spanId:s,traceFlags:g,traceState:c};if(h.decision===ZO.NOT_RECORD)return jt.debug("Recording is off, propagating context in a non-recording span"),mi.wrapSpanContext(p);const y=db(Object.assign(f,h.attributes));return new oSe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:p,name:e,kind:u,links:d,parentSpanContext:a,attributes:y,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,r,n,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(o=r,a=n):(o=r,s=n,a=i);const l=s??ao.active(),c=this.startSpan(e,o,l),u=mi.setSpan(l,c);return ao.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class mSe{constructor(e){xe(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{vd(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(const n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(const r of this._spanProcessors)r.onEnd(e)}shutdown(){const e=[];for(const r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}}var jl;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(jl||(jl={}));class ySe{constructor(e={}){xe(this,"_config");xe(this,"_tracers",new Map);xe(this,"_resource");xe(this,"_activeSpanProcessor");var i;const r=Jxe({},sG(),cSe(e));this._resource=r.resource??nSe(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new mSe(n)}getTracer(e,r,n){const i=`${e}@${r||""}:${(n==null?void 0:n.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new gSe({name:e,version:r,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=jl.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==jl.timeout&&(o=jl.resolved,i(o))}).catch(a=>{clearTimeout(s),o=jl.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==jl.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class vSe{constructor(){xe(this,"_enabled",!1);xe(this,"_currentContext",uu)}_bindFunction(e=uu,r){const n=this,i=function(...o){return n.with(e,()=>r.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(e,r){return e===void 0&&(e=this.active()),typeof r=="function"?this._bindFunction(e,r):r}disable(){return this._currentContext=uu,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=uu,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||uu;try{return r.call(n,...i)}finally{this._currentContext=o}}}function bSe(t){if(t!==null){if(t===void 0){const e=new vSe;e.enable(),ao.setGlobalContextManager(e);return}t.enable(),ao.setGlobalContextManager(t)}}function OSe(t){if(t!==null){if(t===void 0){Rh.setGlobalPropagator(new Cxe({propagators:[new Vxe,new sxe]}));return}Rh.setGlobalPropagator(t)}}class xSe extends ySe{constructor(e={}){super(e)}register(e={}){mi.setGlobalTracerProvider(this),OSe(e.propagator),bSe(e.contextManager)}}class SSe{constructor(e){xe(this,"_delegate");this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class NN extends Error{constructor(r,n,i){super(r);xe(this,"code");xe(this,"name","OTLPExporterError");xe(this,"data");this.data=i,this.code=n}}function wSe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function CSe(t){if(t!=null)return()=>t}function PSe(t,e,r){return{timeoutMillis:wSe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function kSe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class $Se{constructor(e){xe(this,"_concurrencyLimit");xe(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const r=()=>{const n=this._sendingPromises.indexOf(e);this._sendingPromises.splice(n,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function ESe(t){return new $Se(t.concurrencyLimit)}function ASe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function ISe(){return{handleResponse(t){t==null||!ASe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||jt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class TSe{constructor(e,r,n,i,o){xe(this,"_transport");xe(this,"_serializer");xe(this,"_responseHandler");xe(this,"_promiseQueue");xe(this,"_timeout");xe(this,"_diagLogger");this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=jt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:zo.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:zo.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}r({code:zo.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:zo.FAILED,error:i.error});return}else i.status==="retryable"?r({code:zo.FAILED,error:new NN("Export failed with retryable status")}):r({code:zo.FAILED,error:new NN("Export failed with unknown error")})},i=>r({code:zo.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function _Se(t,e){return new TSe(t.transport,t.serializer,ISe(),t.promiseHandler,e.timeout)}function lG(t,e,r){return _Se({transport:r,serializer:e,promiseHandler:ESe(t)},{timeout:t.timeoutMillis})}function LN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function cG(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=LN(t.charCodeAt(n)),o=LN(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function uG(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function RSe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function jSe(t){const e=uG(t);return RSe(e)}function DSe(t){return uG(t).toString()}const MSe=typeof BigInt<"u"?DSe:wxe;function QN(t){return t}function NSe(t){if(t!==void 0)return cG(t)}const LSe={encodeHrTime:jSe,encodeSpanContext:cG,encodeOptionalSpanContext:NSe};function QSe(t){return t===void 0?LSe:{encodeHrTime:MSe,encodeSpanContext:QN,encodeOptionalSpanContext:QN}}function VSe(t){return{attributes:zx(t.attributes),droppedAttributesCount:0}}function zSe(t){return{name:t.name,version:t.version}}function zx(t){return Object.keys(t).map(e=>dG(e,t[e]))}function dG(t,e){return{key:t,value:fG(e)}}function fG(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(fG)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>dG(r,n))}}:{}}function BSe(t,e){var o,s,a;const r=t.spanContext(),n=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:(a=r.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:zx(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>FSe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>qSe(l,e)),droppedLinksCount:t.droppedLinksCount}}function qSe(t,e){var r;return{attributes:t.attributes?zx(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(r=t.context.traceState)==null?void 0:r.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function FSe(t,e){return{attributes:t.attributes?zx(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function WSe(t,e){const r=QSe(e);return{resourceSpans:XSe(t,r)}}function USe(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(r)}return e}function XSe(t,e){const r=USe(t),n=[],i=r.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const f=u.value;if(f.length>0){const h=f.map(g=>BSe(g,e));l.push({scope:zSe(f[0].instrumentationScope),spans:h,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:VSe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const ZSe={serializeRequest:t=>{const e=WSe(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},GSe=5,YSe=1e3,HSe=5e3,JSe=1.5,VN=.2;function KSe(){return Math.random()*(2*VN)-VN}class ewe{constructor(e){xe(this,"_transport");this._transport=e}retry(e,r,n){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,r).then(i,o)},n)})}async send(e,r){const n=Date.now()+r;let i=await this._transport.send(e,r),o=GSe,s=YSe;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,HSe)+KSe(),0);s=s*JSe;const l=i.retryInMillis??a,c=n-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function hG(t){return new ewe(t.transport)}function twe(t){return[429,502,503,504].includes(t)}function rwe(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const r=new Date(t).getTime()-Date.now();return r>=0?r:0}class nwe{constructor(e){xe(this,"_parameters");this._parameters=e}send(e,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(jt.debug("XHR success"),n({status:"success"})):i.status&&twe(i.status)?n({status:"retryable",retryInMillis:rwe(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function iwe(t){return new nwe(t)}class owe{constructor(e){xe(this,"_params");this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(jt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function swe(t){return new owe(t)}function awe(t,e){return lG(t,e,hG({transport:iwe(t)}))}function lwe(t,e){return lG(t,e,hG({transport:swe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function cwe(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):jt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function uwe(t,e,r){const n={...r()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,n))}function dwe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function fwe(t,e,r){return{...PSe(t,e,r),headers:uwe(cwe(t.headers),e.headers,r.headers),url:dwe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function hwe(t,e){return{...kSe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function pwe(t,e,r){return fwe({url:t.url,timeoutMillis:t.timeoutMillis,headers:CSe(t.headers),concurrencyLimit:t.concurrencyLimit},{},hwe(r,e))}function gwe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=pwe(t,r,n);return i?awe(o,e):lwe(o,e)}class mwe extends SSe{constructor(e={}){super(gwe(e,ZSe,"v1/traces",{"Content-Type":"application/json"}))}}class pG{emit(e){}}const ywe=new pG;class vwe{getLogger(e,r,n){return new pG}}const gG=new vwe;class bwe{constructor(e,r,n,i){this._provider=e,this.name=r,this.version=n,this.options=i}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ywe}}class zN{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new bwe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:gG}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(e,r,n)}}const Owe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},km=Symbol.for("io.opentelemetry.js.api.logs"),Sf=Owe;function xwe(t,e,r){return n=>n===t?e:r}const BN=1;class _I{constructor(){this._proxyLoggerProvider=new zN}static getInstance(){return this._instance||(this._instance=new _I),this._instance}setGlobalLoggerProvider(e){return Sf[km]?this.getLoggerProvider():(Sf[km]=xwe(BN,e,gG),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Sf[km])===null||e===void 0?void 0:e.call(Sf,BN))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Sf[km],this._proxyLoggerProvider=new zN}}const Swe=_I.getInstance();function wwe(t,e,r,n){for(let i=0,o=t.length;i<o;i++){const s=t[i];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}function Cwe(t){t.forEach(e=>e.disable())}function Pwe(t){var o;const e=t.tracerProvider||mi.getTracerProvider(),r=t.meterProvider||F0e.getMeterProvider(),n=t.loggerProvider||Swe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return wwe(i,e,r,n),()=>{Cwe(i)}}class qN{constructor(e){xe(this,"span");this.span=e}error(e){this.span&&(this.span.setStatus(xp.ERROR,e.message),this.span.recordException(e),this.span.end())}setAttribute(e,r){this.span&&this.span.setAttribute(e,r)}end(){this.span&&(this.span.setStatus(xp.OK),this.span.end())}}class kwe{constructor(){xe(this,"config",null);xe(this,"tracer",null);xe(this,"tracerProvider",null);xe(this,"initialized",!1);xe(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase())}initTracer(e){throw new Error("initTracer must be implemented by the environment-specific client")}init(e){this.config=e,this.initTracer(e)}send(e){var r;try{if(!this.tracer||!this.config)return;const n=e.time?new Date(e.time):new Date;this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),startTime:n}).end(n)}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}processAttributes(e,r){var o,s,a,l,c;const i={"cloudevents.event_id":XO(),"cloudevents.event_type":e.type,"cloudevents.event_source":e.source,"cloudevents.event_spec_version":e.specversion,"cloudevents.event_data_content_type":e.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":r.toISOString(),"cloudevents.event_subject":e.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":(o=this.config)==null?void 0:o.version,"cloudevents.event_origin":(s=this.config)==null?void 0:s.serviceName,"cloudevents.event_source_details.id":((a=e.sourceDetails)==null?void 0:a.id)??"anonymous","cloudevents.event_source_details.object":((l=e.sourceDetails)==null?void 0:l.object)??"anonymous","cloudevents.event_source_details.uri":(c=e.sourceDetails)==null?void 0:c.uri};if(e.data&&typeof e.data=="object"&&Object.entries(e.data).forEach(([u,d])=>{const f=u.replace(/([A-Z])/g,"_$1").toLowerCase();d!==void 0&&(i[`cloudevents.event_data.${f}`]=d)}),"subjects"in e&&Array.isArray(e.subjects)){const u=e.subjects.reduce((d,f)=>{if(!f||typeof f!="object")return d;const h=f.object;if(!h||typeof h!="string")return d;const g=d.notUpdated.find(({object:p})=>p===h);return g?(d.updated=[g,f],d.notUpdated=d.notUpdated.filter(({object:p})=>p!==h)):d.updated.some(({object:p})=>p===h)||d.notUpdated.push(f),d},{updated:[],notUpdated:[]});u.updated.forEach((d,f)=>{const h=f===0?"after.":"before.",g=`${d.object}.`;Object.entries(d).forEach(([p,y])=>{y!==void 0&&(i[`cloudevents.subjects.${h}${g}${p}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([h,g])=>{g!==void 0&&(i[`cloudevents.subjects.${f}${h}`]=g)})})}return Object.entries(e).forEach(([u,d])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(u)||d!==void 0&&(d instanceof Object?Object.entries(d).forEach(([f,h])=>{h!==void 0&&(i[`cloudevents.${u}.${f}`]=h)}):i[`cloudevents.${u}`]=d)}),i}startSpan(e,r){var n;try{if(!this.tracer)return;let i;const o=e.time?new Date(e.time):new Date,s=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,o),root:!r},r);return r||(i=mi.setSpan(ao.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:i}}catch(i){(n=this.config)!=null&&n.isProd||console.error("Event reporting failed:",i)}}startStepSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n),root:!1},ao.active());return{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),recordException:o=>i.recordException(o)}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startRootSpan(e){var r;try{if(!this.tracer)return;const n=e.time?new Date(e.time):new Date,i=this.tracer.startSpan(`event.${e.type}`,{attributes:this.processAttributes(e,n)},ao.active()),o=mi.setSpan(ao.active(),i);return{end:()=>i.end(),setAttribute:(s,a)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(s)}`,a)},setStatus:(s,a)=>i.setStatus({code:s,message:a}),recordException:s=>i.recordException(s),context:o}}catch(n){(r=this.config)!=null&&r.isProd||console.error("Event reporting failed:",n)}}startTrace(e){const r=this.startStepSpan(e);if(r)return new qN(r)}startRootTrace(e){const r=this.startRootSpan(e);if(r)return{traceApi:new qN(r),context:r.context}}async forceFlush(){var e;return(e=this.tracerProvider)==null?void 0:e.forceFlush()}}class $we extends kwe{constructor(){super();xe(this,"tracerProvider",null);xe(this,"tracer",null);xe(this,"initialized",!1)}initTracer(r){if(!r.collectorUrl&&!r.collectorTraceUrl)return;const n=`ses_${XO()}`,i=oG({[G9]:r.serviceName,[gxe]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new xSe({resource:i,spanProcessors:[new dSe(new mwe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),Pwe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class Ewe{constructor(){xe(this,"config",null);xe(this,"initialized",!1);xe(this,"useCloudEventData");xe(this,"otelClient");xe(this,"traceApi");xe(this,"updateCloudEventData",e=>{var r;(r=this.config)!=null&&r.disabled||(this.useCloudEventData=e)});this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new $we,this.traceApi={startStep:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startTrace(n)},startRoot:(e,r)=>{const n=this.constructCloudEvent(e,r);return this.otelClient.startRootTrace(n)}}}send(e,r){var n,i;try{if(!((n=this.config)!=null&&n.otel.isProd))return;const o=this.constructCloudEvent(e,r);this.sendToOtelService(o)}catch(o){(i=this.config)!=null&&i.otel.isProd||console.error("Event reporting failed:",o)}}init(e){e.disabled||this.initialized||(this.config=e,this.initialized=!0,this.otelClient.init({serviceVersion:e.otel.serviceVersion,version:e.otel.version,isProd:e.otel.isProd,collectorUrl:e.otel.collectorUrl,collectorTraceUrl:e.otel.collectorTraceUrl,serviceName:e.otel.serviceName,tracerName:e.otel.tracerName,instrumentations:[...e.otel.instrumentations||[]]}))}startSpan(e,r,n){var o;if((o=this.config)!=null&&o.disabled)return;const i=this.constructCloudEvent(e,r);return this.otelClient.startSpan(i,n)}startStepSpan(e,r){const n=this.constructCloudEvent(e,r);return this.otelClient.startStepSpan(n)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${XO()}`,type:e,source:n.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:r,origin:"ui",sourceDetails:{id:n.sourceDetails.user||`usr_${XO()}`,object:n.sourceDetails.object||"user",uri:n.sourceDetails.uri||""},organization:n.organization,project:n.project,productType:n.productType}}sendToOtelService(e){var r;(r=this.config)!=null&&r.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",e),this.otelClient.send(e)}forceFlush(){var e;return(e=this.config)!=null&&e.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendServerManagementMessage(e){this.send("server.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}sendWorkflowRunClickMessage(e){this.send("workflow.run.click",e)}sendWorkflowRunResultMessage(e){this.send("workflow.run.result",e)}}function Awe(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Iwe=Awe(),Twe=N.createContext(Iwe);function gs(){const t=N.useContext(Twe);return V5(t)}function _we(t,e){const{apps:{apiId:r}}=Et(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=gs();n.set((t==null?void 0:t.corsProxyUrl)??Jre),o.set(t==null?void 0:t.mockServer),r.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),N.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const Bx=N.createContext({});function RI(){return N.useContext(Bx)||{}}const Rwe="0.17.0-next.13",jwe={version:Rwe};class Dwe{constructor(){xe(this,"client");xe(this,"_isInitialized",!1);this.client=new Ewe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:jwe.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({otel:{...n,...e}}),this._isInitialized=!0}sendEvent(e,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,r)}catch(n){console.error("Failed to send telemetry event:",n)}}}const k1=new Dwe;function bt(){const{telemetry:t}=RI();return k1.isInitialized||k1.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{k1.sendEvent(e,r)}}}const Mn=800;var Mwe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nwe(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,i=n===void 0?!1:n,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,g=Ci(t,Mwe),p=N.useState(a!==void 0?a:r),y=it(p,2),v=y[0],b=y[1],O=N.useState(l!==void 0?l:i),S=it(O,2),x=S[0],w=S[1],P=N.useState(h!==void 0?h:s),I=it(P,2),E=I[0],M=I[1],V=N.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),M(ie)},[c]),U=N.useCallback(function(ie,he){var L;typeof u=="function"&&(L=u(ie,he)),b(L!==void 0?L:ie)},[u]),X=N.useCallback(function(){typeof f=="function"&&f(),w(!0)},[f]),J=N.useCallback(function(){typeof d=="function"&&d(),w(!1)},[d]),te=a!==void 0?a:v,oe=l!==void 0?l:x,ae=h!==void 0?h:E;return $e($e({},g),{},{inputValue:te,menuIsOpen:oe,onChange:V,onInputChange:U,onMenuClose:J,onMenuOpen:X,value:ae})}function Lwe(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Qwe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Vwe=(function(){function t(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qwe(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
348
348
|
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=Lwe(i);try{s.insertRule(n,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else i.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t})(),un="-ms-",KO="-moz-",Rt="-webkit-",jI="comm",DI="rule",MI="decl",zwe="@import",mG="@keyframes",Bwe=Math.abs,qx=String.fromCharCode,qwe=Object.assign;function Fwe(t,e){return tn(t,0)^45?(((e<<2^tn(t,0))<<2^tn(t,1))<<2^tn(t,2))<<2^tn(t,3):0}function yG(t){return t.trim()}function Wwe(t,e){return(t=e.exec(t))?t[0]:t}function zt(t,e,r){return t.replace(e,r)}function X$(t,e){return t.indexOf(e)}function tn(t,e){return t.charCodeAt(e)|0}function Sp(t,e,r){return t.slice(e,r)}function Fo(t){return t.length}function NI(t){return t.length}function $m(t,e){return e.push(t),t}function Uwe(t,e){return t.map(e).join("")}var Fx=1,Od=1,vG=0,ni=0,Ar=0,Vd="";function Wx(t,e,r,n,i,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:Fx,column:Od,length:s,return:""}}function wf(t,e){return qwe(Wx("",null,null,"",null,null,0),t,{length:-t.length},e)}function Xwe(){return Ar}function Zwe(){return Ar=ni>0?tn(Vd,--ni):0,Od--,Ar===10&&(Od=1,Fx--),Ar}function wi(){return Ar=ni<vG?tn(Vd,ni++):0,Od++,Ar===10&&(Od=1,Fx++),Ar}function os(){return tn(Vd,ni)}function hb(){return ni}function Hp(t,e){return Sp(Vd,t,e)}function wp(t){switch(t){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 bG(t){return Fx=Od=1,vG=Fo(Vd=t),ni=0,[]}function OG(t){return Vd="",t}function pb(t){return yG(Hp(ni-1,Z$(t===91?t+2:t===40?t+1:t)))}function Gwe(t){for(;(Ar=os())&&Ar<33;)wi();return wp(t)>2||wp(Ar)>3?"":" "}function Ywe(t,e){for(;--e&&wi()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return Hp(t,hb()+(e<6&&os()==32&&wi()==32))}function Z$(t){for(;wi();)switch(Ar){case t:return ni;case 34:case 39:t!==34&&t!==39&&Z$(Ar);break;case 40:t===41&&Z$(t);break;case 92:wi();break}return ni}function Hwe(t,e){for(;wi()&&t+Ar!==57;)if(t+Ar===84&&os()===47)break;return"/*"+Hp(e,ni-1)+"*"+qx(t===47?t:wi())}function Jwe(t){for(;!wp(os());)wi();return Hp(t,ni)}function Kwe(t){return OG(gb("",null,null,null,[""],t=bG(t),0,[0],t))}function gb(t,e,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,g=0,p=1,y=1,v=1,b=0,O="",S=i,x=o,w=n,P=O;y;)switch(g=b,b=wi()){case 40:if(g!=108&&tn(P,d-1)==58){X$(P+=zt(pb(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=pb(b);break;case 9:case 10:case 13:case 32:P+=Gwe(g);break;case 92:P+=Ywe(hb()-1,7);continue;case 47:switch(os()){case 42:case 47:$m(e1e(Hwe(wi(),hb()),e,r),l);break;default:P+="/"}break;case 123*p:a[c++]=Fo(P)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:h>0&&Fo(P)-d&&$m(h>32?WN(P+";",n,r,d-1):WN(zt(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if($m(w=FN(P,e,r,c,u,i,a,O,S=[],x=[],d),o),b===123)if(u===0)gb(P,e,w,w,S,o,d,a,x);else switch(f===99&&tn(P,3)===110?100:f){case 100:case 109:case 115:gb(t,w,w,n&&$m(FN(t,w,w,0,0,i,a,O,i,S=[],d),x),i,x,d,a,n?S:x);break;default:gb(P,w,w,w,[""],x,0,a,x)}}c=u=h=0,p=v=1,O=P="",d=s;break;case 58:d=1+Fo(P),h=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&Zwe()==125)continue}switch(P+=qx(b),b*p){case 38:v=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(Fo(P)-1)*v,v=1;break;case 64:os()===45&&(P+=pb(wi())),f=os(),u=d=Fo(O=P+=Jwe(hb())),b++;break;case 45:g===45&&Fo(P)==2&&(p=0)}}return o}function FN(t,e,r,n,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],h=NI(f),g=0,p=0,y=0;g<n;++g)for(var v=0,b=Sp(t,d+1,d=Bwe(p=s[g])),O=t;v<h;++v)(O=yG(p>0?f[v]+" "+b:zt(b,/&\f/g,f[v])))&&(l[y++]=O);return Wx(t,e,r,i===0?DI:a,l,c,u)}function e1e(t,e,r){return Wx(t,e,r,jI,qx(Xwe()),Sp(t,2,-2),0)}function WN(t,e,r,n){return Wx(t,e,r,MI,Sp(t,0,n),Sp(t,n+1,-1),n)}function Qu(t,e){for(var r="",n=NI(t),i=0;i<n;i++)r+=e(t[i],i,t,e)||"";return r}function t1e(t,e,r,n){switch(t.type){case zwe:case MI:return t.return=t.return||t.value;case jI:return"";case mG:return t.return=t.value+"{"+Qu(t.children,n)+"}";case DI:t.value=t.props.join(",")}return Fo(r=Qu(t.children,n))?t.return=t.value+"{"+r+"}":""}function r1e(t){var e=NI(t);return function(r,n,i,o){for(var s="",a=0;a<e;a++)s+=t[a](r,n,i,o)||"";return s}}function n1e(t){return function(e){e.root||(e=e.return)&&t(e)}}function i1e(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var o1e=function(e,r,n){for(var i=0,o=0;i=o,o=os(),i===38&&o===12&&(r[n]=1),!wp(o);)wi();return Hp(e,ni)},s1e=function(e,r){var n=-1,i=44;do switch(wp(i)){case 0:i===38&&os()===12&&(r[n]=1),e[n]+=o1e(ni-1,r,n);break;case 2:e[n]+=pb(i);break;case 4:if(i===44){e[++n]=os()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=qx(i)}while(i=wi());return e},a1e=function(e,r){return OG(s1e(bG(e),r))},UN=new WeakMap,l1e=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!UN.get(n))&&!i){UN.set(e,!0);for(var o=[],s=a1e(r,o),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},c1e=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},u1e="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",d1e=function(e){return e.type==="comm"&&e.children.indexOf(u1e)>-1},f1e=function(e){return function(r,n,i){if(!(r.type!=="rule"||e.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=r.parent===i[0],a=s?i[0].children:i,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<r.line)break;if(c.column<r.column){if(d1e(c))return;break}}o.forEach(function(u){console.error('The pseudo class "'+u+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+u.split("-child")[0]+'-of-type".')})}}}},xG=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},h1e=function(e,r){for(var n=e-1;n>=0;n--)if(!xG(r[n]))return!0;return!1},XN=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},p1e=function(e,r,n){xG(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),XN(e)):h1e(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),XN(e)))};function SG(t,e){switch(Fwe(t,e)){case 5103:return Rt+"print-"+t+t;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 Rt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Rt+t+KO+t+un+t+t;case 6828:case 4268:return Rt+t+un+t+t;case 6165:return Rt+t+un+"flex-"+t+t;case 5187:return Rt+t+zt(t,/(\w+).+(:[^]+)/,Rt+"box-$1$2"+un+"flex-$1$2")+t;case 5443:return Rt+t+un+"flex-item-"+zt(t,/flex-|-self/,"")+t;case 4675:return Rt+t+un+"flex-line-pack"+zt(t,/align-content|flex-|-self/,"")+t;case 5548:return Rt+t+un+zt(t,"shrink","negative")+t;case 5292:return Rt+t+un+zt(t,"basis","preferred-size")+t;case 6060:return Rt+"box-"+zt(t,"-grow","")+Rt+t+un+zt(t,"grow","positive")+t;case 4554:return Rt+zt(t,/([^-])(transform)/g,"$1"+Rt+"$2")+t;case 6187:return zt(zt(zt(t,/(zoom-|grab)/,Rt+"$1"),/(image-set)/,Rt+"$1"),t,"")+t;case 5495:case 3959:return zt(t,/(image-set\([^]*)/,Rt+"$1$`$1");case 4968:return zt(zt(t,/(.+:)(flex-)?(.*)/,Rt+"box-pack:$3"+un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rt+t+t;case 4095:case 3583:case 4068:case 2532:return zt(t,/(.+)-inline(.+)/,Rt+"$1$2")+t;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(Fo(t)-1-e>6)switch(tn(t,e+1)){case 109:if(tn(t,e+4)!==45)break;case 102:return zt(t,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+KO+(tn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~X$(t,"stretch")?SG(zt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(tn(t,e+1)!==115)break;case 6444:switch(tn(t,Fo(t)-3-(~X$(t,"!important")&&10))){case 107:return zt(t,":",":"+Rt)+t;case 101:return zt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(tn(t,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+un+"$2box$3")+t}break;case 5936:switch(tn(t,e+11)){case 114:return Rt+t+un+zt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Rt+t+un+zt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Rt+t+un+zt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Rt+t+un+t+t}return t}var g1e=function(e,r,n,i){if(e.length>-1&&!e.return)switch(e.type){case MI:e.return=SG(e.value,e.length);break;case mG:return Qu([wf(e,{value:zt(e.value,"@","@"+Rt)})],i);case DI:if(e.length)return Uwe(e.props,function(o){switch(Wwe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qu([wf(e,{props:[zt(o,/:(read-\w+)/,":"+KO+"$1")]})],i);case"::placeholder":return Qu([wf(e,{props:[zt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),wf(e,{props:[zt(o,/:(plac\w+)/,":"+KO+"$1")]}),wf(e,{props:[zt(o,/:(plac\w+)/,un+"input-$1")]})],i)}return""})}},m1e=[g1e],y1e=function(e){var r=e.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
349
349
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=e.stylisPlugins||m1e;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)o[y[v]]=!0;a.push(p)});var l,c=[l1e,c1e];process.env.NODE_ENV!=="production"&&c.push(f1e({get compat(){return g.compat}}),p1e);{var u,d=[t1e,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?u.insert(p.return):p.value&&p.type!==jI&&u.insert(p.value+"{}"))}:n1e(function(p){u.insert(p)})],f=r1e(c.concat(i,d)),h=function(y){return Qu(Kwe(y),f)};l=function(y,v,b,O){u=b,process.env.NODE_ENV!=="production"&&v.map!==void 0&&(u={insert:function(x){b.insert(x+v.map)}}),h(y?y+"{"+v.styles+"}":v.styles),O&&(g.inserted[v.name]=!0)}}var g={key:r,sheet:new Vwe({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},v1e=!0;function wG(t,e,r){var n="";return r.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):n+=i+" "}),n}var LI=function(e,r,n){var i=e.key+"-"+r.name;(n===!1||v1e===!1)&&e.registered[i]===void 0&&(e.registered[i]=r.styles)},QI=function(e,r,n){LI(e,r,n);var i=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var o=r;do e.insert(r===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function b1e(t){for(var e=0,r,n=0,i=t.length;i>=4;++n,i-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var O1e={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},ZN=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
350
350
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
@@ -510,7 +510,7 @@ You should wrap it with \`css\` like this:
|
|
|
510
510
|
color: var(--loading-spinner-color);
|
|
511
511
|
`,oY=R(q.Admonition)`
|
|
512
512
|
margin: 0;
|
|
513
|
-
`;var j1,CL;function _ke(){return CL||(CL=1,j1=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(i){t.addRange(i)}),e&&e.focus()}}),j1}var D1,PL;function Rke(){if(PL)return D1;PL=1;var t=_ke(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var a,l,c,u,d,f,h=!1;s||(s={}),a=s.debug||!1;try{c=t(),u=document.createRange(),d=document.getSelection(),f=document.createElement("span"),f.textContent=o,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(p){if(p.stopPropagation(),s.format)if(p.preventDefault(),typeof p.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[s.format]||e.default;window.clipboardData.setData(y,o)}else p.clipboardData.clearData(),p.clipboardData.setData(s.format,o);s.onCopy&&(p.preventDefault(),s.onCopy(p.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");h=!0}catch(p){a&&console.error("unable to copy using execCommand: ",p),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),h=!0}catch(y){a&&console.error("unable to copy using clipboardData: ",y),a&&console.error("falling back to prompt"),l=n("message"in s?s.message:r),window.prompt(l,o)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return h}return D1=i,D1}var jke=Rke();const Dke=ii(jke);class sY{static copyCustom(e){return Dke(e)}static selectElement(e){if(!e)return;let r,n;document.body.createTextRange?(r=document.body.createTextRange(),r.moveToElementText(e),r.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),r=document.createRange(),r.selectNodeContents(e),n==null||n.removeAllRanges(),n==null||n.addRange(r))}}const JI=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,aY={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pf={type:"object",properties:aY,additionalProperties:!1},Mke={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Zx={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},aY),{like:Pf,dislike:Pf,satisfied:Pf,neutral:Pf,dissatisfied:Pf}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Mke},additionalProperties:!1}},additionalProperties:!1},Nke={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},lY={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},kL={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Zx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:lY,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Nke,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Wc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Lke={type:"object",properties:{name:{type:"string"},items:Wc,queries:Wc,mutations:Wc,subscriptions:Wc,types:Wc,directives:Wc},required:["name"],additionalProperties:!1},Qke={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Lke},otherItemsGroupName:{type:"string"}}},a0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Qke.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:lY,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Zx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1},Vke={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},zke={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},$L={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Bke={type:"object",properties:{beforeInfo:{type:"array",items:$L},end:{type:"array",items:$L}}},Dl={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qke={type:"object",properties:Gx(Dl.properties,["light","dark"])},Fke={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Wke={type:"object",properties:{error:_m,info:_m,redirect:_m,success:_m}},Uke={type:"object",properties:zd(Dl.properties,["dark"])},Xke={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Zke={type:"object",properties:{accent:Dl,border:qke,error:Dl,http:Fke,primary:Dl,responses:Wke,secondary:Uke,success:Dl,text:Xke,tonalOffset:{type:"number"},warning:Dl}},Rm={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Gke={type:"object",properties:{small:Rm,medium:Rm,large:Rm,xlarge:Rm}},us={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Yke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Gke})},EL={type:"object",properties:Gx(us.properties,["fontSize","lineHeight"])},Hke={type:"object",properties:{medium:EL,small:EL}},Jke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Hke})},Kke={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},e$e={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},AL={type:"object",properties:{fullWidth:{type:"boolean"}}},t$e={type:"object",properties:{buttons:Yke,httpBadges:Jke,layoutControls:Kke,panels:e$e,tryItButton:AL,tryItSendButton:AL}},l0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},r$e={type:"object",properties:{maxWidth:l0}},n$e={type:"object",properties:{maxWidth:l0,middlePanelMaxWidth:l0}},i$e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:r$e,"three-panel":n$e}},IL={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},o$e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:IL,defaultDetailsWidth:{type:"string"},examples:IL,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},cY={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},s$e={type:"object",properties:Gx(cY.properties,["textTransform"])},a$e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},l$e={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:cY,level1items:s$e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:a$e,textColor:{type:"string"},width:{type:"string"}})},jm={type:"object",properties:Object.assign(Object.assign({},us.properties),{color:{type:"string"},transform:{type:"string"}})},c$e={type:"object",properties:Object.assign(Object.assign({},us.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},u$e={type:"object",properties:zd(us.properties,["fontSize"])},d$e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},f$e={type:"object",properties:Object.assign(Object.assign({code:c$e,fieldName:us},Gx(us.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:jm,heading2:jm,heading3:jm,headings:u$e,lineHeight:{type:"string"},links:d$e,optimizeSpeed:{type:"boolean"},rightPanelHeading:jm,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},h$e={type:"object",properties:Object.assign({color:{type:"string"}},zd(us.properties,["fontWeight"]))},p$e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:h$e}},g$e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},m$e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},TL={type:"object",properties:{custom:{type:"string"}}},y$e={type:"object",properties:{DownloadButton:TL,NextSectionButton:TL}},v$e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},b$e={type:"object",properties:{borderRadius:{type:"string"}}},O$e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},x$e={type:"object",properties:{breakpoints:l0,codeBlock:p$e,colors:Zke,components:t$e,layout:i$e,logo:g$e,fab:m$e,overrides:y$e,rightPanel:v$e,schema:o$e,shape:b$e,sidebar:l$e,spacing:O$e,typography:f$e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},S$e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Vke}},required:["languages"]},w$e={properties:{theme:x$e,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:S$e,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:zke,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Bke,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function Gx(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function zd(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const ga={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},KI={rules:ga,oas2Rules:ga,oas3_0Rules:ga,oas3_1Rules:ga,async2Rules:ga,async3Rules:ga,arazzo1Rules:ga,overlay1Rules:ga},eT={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},tT={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}},Xr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_L={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},M1={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},rT={type:"array",items:Object.assign(Object.assign({},M1),{properties:Object.assign(Object.assign({},M1.properties),{items:{type:"array",items:M1}})})},C$e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},P$e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},k$e={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},$$e={type:"object",properties:Object.assign({facets:k$e},Xr.properties),additionalProperties:!1},E$e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},uY={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},dY={type:"object",properties:Object.assign({items:rT},Xr.properties),additionalProperties:!1},fY={type:"object",additionalProperties:C$e},hY={type:"object",properties:Object.assign({items:rT,copyrightText:{type:"string"},logo:Xr},Xr.properties),additionalProperties:!1},pY={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Xr.properties),additionalProperties:!1},gY={type:"object",properties:{head:{type:"array",items:_L},body:{type:"array",items:_L}},additionalProperties:!1},mY={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},yY={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:P$e,filters:$$e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:E$e}},Xr.properties),additionalProperties:!1},vY={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Xr.properties),additionalProperties:!1},A$e={type:"object",properties:Object.assign(Object.assign({},Xr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},bY={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},actions:A$e},additionalProperties:!1},OY={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Xr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},xY={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Xr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},c0=Object.assign(Object.assign({},kL),{properties:Object.assign(Object.assign({},kL.properties),w$e.properties)}),I$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},T$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},_$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},R$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},j$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},D$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},M$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},SY={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},N$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:SY}},additionalProperties:!1,required:["trackingId"]},wY={type:"object",properties:{adobe:I$e,amplitude:T$e,fullstory:_$e,heap:R$e,rudderstack:j$e,segment:D$e,gtm:M$e,ga:N$e}},CY={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Xr.properties),additionalProperties:!1},PY={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},kY={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},L$e={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},Q$e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:L$e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:rT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},u0={type:"object",patternProperties:{".*":Q$e}},$Y={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},KI),eT),tT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},V$e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},z$e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},B$e={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},bs={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:z$e},excludes:{type:"array",items:V$e},filters:{type:"array",items:B$e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},q$e={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},F$e={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:q$e},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},W$e={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:F$e,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},U$e={type:"object",additionalProperties:W$e},EY={type:"object",properties:{entityTypes:U$e,catalogs:{type:"object",properties:{all:bs,services:bs,domains:bs,teams:bs,users:bs,apiDescriptions:bs,dataSchemas:bs,apiOperations:bs},additionalProperties:bs}},additionalProperties:!1},Do={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y},additionalProperties:!0},X$e="https://redocly.com/sso/teams";var d0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(d0||(d0={}));var f0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(f0||(f0={}));var RL;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(RL||(RL={}));const Z$e=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy"];function K$(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?K$(i,e):i)]:[r,K$(n,e)]}).filter(Boolean))}const G$e={type:"object",additionalProperties:{type:"string"}},Y$e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Dm={type:"string",enum:["error","warn","off"]},H$e={type:"object",additionalProperties:!1,properties:{schemaCheck:Dm,statusCodeCheck:Dm,contentTypeCheck:Dm,successCriteriaCheck:Dm}},J$e={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},K$e={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},eEe={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[J$e,K$e]},inputs:G$e,servers:Y$e,severity:H$e},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},tEe={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},rEe={type:"object",properties:{type:{type:"string",const:d0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:tEe,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},nEe={type:"object",properties:{type:{type:"string",const:d0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:X$e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},iEe={oneOf:[rEe,nEe],discriminator:{propertyName:"type"}},oEe={type:"object",additionalProperties:iEe},sEe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},aEe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},lEe={type:"object",additionalProperties:aEe,default:{}},AY={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:c0,graphql:a0,theme:{type:"object",properties:{openapi:c0,graphql:a0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},KI),eT),tT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},cEe={type:"object",additionalProperties:!0},uEe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},jL={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},DL={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:jL},default:{llmstxt:jL.default},additionalProperties:!1},dEe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},vl={type:"object",additionalProperties:{type:"string"}},fEe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:vl,cms:vl,reunite:vl,features:{type:"object",properties:{aiSearch:vl},additionalProperties:!1},content:{type:"object",properties:{"**":vl},additionalProperties:vl}},additionalProperties:vl},hEe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},pEe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},gEe={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[hEe,pEe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},mEe={type:"object",properties:{type:{type:"string",const:f0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},yEe={type:"object",properties:{type:{type:"string",const:f0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},eE={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[mEe,yEe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},vEe=Object.assign(Object.assign({},eE),{properties:Object.assign(Object.assign({},eE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),bEe={type:"object",oneOf:[eE,vEe,gEe],discriminator:{propertyName:"type"}},OEe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:bEe}}},ML={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},xEe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},SEe={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},tE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:lEe,seo:DL,rbac:fEe,apiFunctions:dEe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:xEe}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:AY},extends:{type:"array",items:{type:"string"}}},KI),tT),eT),{ssoDirect:oEe,sso:sEe,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:OEe,removeAttribution:{type:"boolean"},i18n:ML,l10n:ML,metadata:cEe,metadataGlobs:uEe,ignore:{type:"array",items:{type:"string"}},theme:Do,reunite:eEe,logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y,mcp:SEe}),default:{redirects:{},seo:DL.default},additionalProperties:!0},wEe=Object.assign(Object.assign({},K$(tE,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},tE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},tE.properties),{env:{type:"object",additionalProperties:wEe}}),default:{},additionalProperties:!1});const NL={type:"object",properties:{logo:Do.properties.logo,navbar:Do.properties.navbar,footer:Do.properties.footer,sidebar:Do.properties.sidebar,search:Do.properties.search,codeSnippet:Do.properties.codeSnippet,breadcrumbs:Do.properties.breadcrumbs,openapi:Do.properties.openapi,feedback:Do.properties.feedback,analytics:{type:"object",properties:{ga:SY}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},NL.properties),{apis:{type:"object",additionalProperties:AY},theme:NL});const CEe={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},PEe={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},kEe={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},$Ee={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"}},required:["specType","schema"],additionalProperties:!0},EEe={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},AEe={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},IEe={type:"object",properties:{type:{type:"string",enum:Z$e},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},kf={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},EEe]},links:{anyOf:[{type:"null"},{type:"array",items:AEe}]},relations:{anyOf:[{type:"null"},{type:"array",items:IEe}]}};Object.assign(Object.assign({},kf),{type:{const:"user"},metadata:CEe}),Object.assign(Object.assign({},kf),{type:{const:"api-operation"},metadata:kEe}),Object.assign(Object.assign({},kf),{type:{const:"data-schema"},metadata:$Ee}),Object.assign(Object.assign({},kf),{type:{const:"api-description"},metadata:PEe}),Object.assign(Object.assign({},kf),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}});const TEe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var vb={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
513
|
+
`;var j1,CL;function _ke(){return CL||(CL=1,j1=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(i){t.addRange(i)}),e&&e.focus()}}),j1}var D1,PL;function Rke(){if(PL)return D1;PL=1;var t=_ke(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(o){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,s)}function i(o,s){var a,l,c,u,d,f,h=!1;s||(s={}),a=s.debug||!1;try{c=t(),u=document.createRange(),d=document.getSelection(),f=document.createElement("span"),f.textContent=o,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(p){if(p.stopPropagation(),s.format)if(p.preventDefault(),typeof p.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=e[s.format]||e.default;window.clipboardData.setData(y,o)}else p.clipboardData.clearData(),p.clipboardData.setData(s.format,o);s.onCopy&&(p.preventDefault(),s.onCopy(p.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");h=!0}catch(p){a&&console.error("unable to copy using execCommand: ",p),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),h=!0}catch(y){a&&console.error("unable to copy using clipboardData: ",y),a&&console.error("falling back to prompt"),l=n("message"in s?s.message:r),window.prompt(l,o)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return h}return D1=i,D1}var jke=Rke();const Dke=ii(jke);class sY{static copyCustom(e){return Dke(e)}static selectElement(e){if(!e)return;let r,n;document.body.createTextRange?(r=document.body.createTextRange(),r.moveToElementText(e),r.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),r=document.createRange(),r.selectNodeContents(e),n==null||n.removeAllRanges(),n==null||n.addRange(r))}}const JI=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,aY={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pf={type:"object",properties:aY,additionalProperties:!1},Mke={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Zx={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},aY),{like:Pf,dislike:Pf,satisfied:Pf,neutral:Pf,dissatisfied:Pf}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Mke},additionalProperties:!1}},additionalProperties:!1},Nke={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},lY={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},kL={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Zx,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:lY,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Nke,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Wc={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Lke={type:"object",properties:{name:{type:"string"},items:Wc,queries:Wc,mutations:Wc,subscriptions:Wc,types:Wc,directives:Wc},required:["name"],additionalProperties:!1},Qke={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Lke},otherItemsGroupName:{type:"string"}}},a0={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Qke.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:lY,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Zx,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1},Vke={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},zke={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},$L={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Bke={type:"object",properties:{beforeInfo:{type:"array",items:$L},end:{type:"array",items:$L}}},Dl={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qke={type:"object",properties:Gx(Dl.properties,["light","dark"])},Fke={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Wke={type:"object",properties:{error:_m,info:_m,redirect:_m,success:_m}},Uke={type:"object",properties:zd(Dl.properties,["dark"])},Xke={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Zke={type:"object",properties:{accent:Dl,border:qke,error:Dl,http:Fke,primary:Dl,responses:Wke,secondary:Uke,success:Dl,text:Xke,tonalOffset:{type:"number"},warning:Dl}},Rm={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Gke={type:"object",properties:{small:Rm,medium:Rm,large:Rm,xlarge:Rm}},us={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Yke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Gke})},EL={type:"object",properties:Gx(us.properties,["fontSize","lineHeight"])},Hke={type:"object",properties:{medium:EL,small:EL}},Jke={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Hke})},Kke={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},e$e={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},AL={type:"object",properties:{fullWidth:{type:"boolean"}}},t$e={type:"object",properties:{buttons:Yke,httpBadges:Jke,layoutControls:Kke,panels:e$e,tryItButton:AL,tryItSendButton:AL}},l0={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},r$e={type:"object",properties:{maxWidth:l0}},n$e={type:"object",properties:{maxWidth:l0,middlePanelMaxWidth:l0}},i$e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:r$e,"three-panel":n$e}},IL={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},o$e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:IL,defaultDetailsWidth:{type:"string"},examples:IL,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},cY={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},s$e={type:"object",properties:Gx(cY.properties,["textTransform"])},a$e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},l$e={type:"object",properties:Object.assign(Object.assign({},zd(us.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:cY,level1items:s$e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:a$e,textColor:{type:"string"},width:{type:"string"}})},jm={type:"object",properties:Object.assign(Object.assign({},us.properties),{color:{type:"string"},transform:{type:"string"}})},c$e={type:"object",properties:Object.assign(Object.assign({},us.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},u$e={type:"object",properties:zd(us.properties,["fontSize"])},d$e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},f$e={type:"object",properties:Object.assign(Object.assign({code:c$e,fieldName:us},Gx(us.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:jm,heading2:jm,heading3:jm,headings:u$e,lineHeight:{type:"string"},links:d$e,optimizeSpeed:{type:"boolean"},rightPanelHeading:jm,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},h$e={type:"object",properties:Object.assign({color:{type:"string"}},zd(us.properties,["fontWeight"]))},p$e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:h$e}},g$e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},m$e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},TL={type:"object",properties:{custom:{type:"string"}}},y$e={type:"object",properties:{DownloadButton:TL,NextSectionButton:TL}},v$e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},b$e={type:"object",properties:{borderRadius:{type:"string"}}},O$e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},x$e={type:"object",properties:{breakpoints:l0,codeBlock:p$e,colors:Zke,components:t$e,layout:i$e,logo:g$e,fab:m$e,overrides:y$e,rightPanel:v$e,schema:o$e,shape:b$e,sidebar:l$e,spacing:O$e,typography:f$e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},S$e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Vke}},required:["languages"]},w$e={properties:{theme:x$e,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:S$e,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:zke,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Bke,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function Gx(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function zd(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const ga={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},KI={rules:ga,oas2Rules:ga,oas3_0Rules:ga,oas3_1Rules:ga,async2Rules:ga,async3Rules:ga,arazzo1Rules:ga,overlay1Rules:ga},eT={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},tT={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}},Xr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},_L={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},M1={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},rT={type:"array",items:Object.assign(Object.assign({},M1),{properties:Object.assign(Object.assign({},M1.properties),{items:{type:"array",items:M1}})})},C$e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},P$e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},k$e={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},$$e={type:"object",properties:Object.assign({facets:k$e},Xr.properties),additionalProperties:!1},E$e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},uY={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},dY={type:"object",properties:Object.assign({items:rT},Xr.properties),additionalProperties:!1},fY={type:"object",additionalProperties:C$e},hY={type:"object",properties:Object.assign({items:rT,copyrightText:{type:"string"},logo:Xr},Xr.properties),additionalProperties:!1},pY={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Xr.properties),additionalProperties:!1},gY={type:"object",properties:{head:{type:"array",items:_L},body:{type:"array",items:_L}},additionalProperties:!1},mY={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},yY={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:P$e,filters:$$e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:E$e}},Xr.properties),additionalProperties:!1},vY={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Xr.properties),additionalProperties:!1},A$e={type:"object",properties:Object.assign(Object.assign({},Xr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},bY={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},actions:A$e},additionalProperties:!1},OY={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Xr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Xr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},xY={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Xr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Xr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},c0=Object.assign(Object.assign({},kL),{properties:Object.assign(Object.assign({},kL.properties),w$e.properties)}),I$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},T$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},_$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},R$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},j$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},D$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},M$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},SY={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},N$e={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:SY}},additionalProperties:!1,required:["trackingId"]},wY={type:"object",properties:{adobe:I$e,amplitude:T$e,fullstory:_$e,heap:R$e,rudderstack:j$e,segment:D$e,gtm:M$e,ga:N$e}},CY={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Xr.properties),additionalProperties:!1},PY={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},kY={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},L$e={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},Q$e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:L$e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:rT,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},u0={type:"object",patternProperties:{".*":Q$e}},$Y={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},KI),eT),tT),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},V$e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},z$e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},B$e={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},bs={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:z$e},excludes:{type:"array",items:V$e},filters:{type:"array",items:B$e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},q$e={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},F$e={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:q$e},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},W$e={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:F$e,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},U$e={type:"object",additionalProperties:W$e},EY={type:"object",properties:{entityTypes:U$e,catalogs:{type:"object",properties:{all:bs,services:bs,domains:bs,teams:bs,users:bs,apiDescriptions:bs,dataSchemas:bs,apiOperations:bs},additionalProperties:bs}},additionalProperties:!1},Do={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y},additionalProperties:!0},X$e="https://redocly.com/sso/teams";var d0;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(d0||(d0={}));var f0;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(f0||(f0={}));var RL;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(RL||(RL={}));const Z$e=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"];function K$(t,e){return Object.fromEntries(Object.entries(t).map(([r,n])=>{if(r!==e)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?K$(i,e):i)]:[r,K$(n,e)]}).filter(Boolean))}const G$e={type:"object",additionalProperties:{type:"string"}},Y$e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Dm={type:"string",enum:["error","warn","off"]},H$e={type:"object",additionalProperties:!1,properties:{schemaCheck:Dm,statusCodeCheck:Dm,contentTypeCheck:Dm,successCriteriaCheck:Dm}},J$e={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},K$e={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},eEe={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[J$e,K$e]},inputs:G$e,servers:Y$e,severity:H$e},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},tEe={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},rEe={type:"object",properties:{type:{type:"string",const:d0.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:tEe,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},nEe={type:"object",properties:{type:{type:"string",const:d0.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:X$e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},iEe={oneOf:[rEe,nEe],discriminator:{propertyName:"type"}},oEe={type:"object",additionalProperties:iEe},sEe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},aEe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},lEe={type:"object",additionalProperties:aEe,default:{}},AY={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:c0,graphql:a0,theme:{type:"object",properties:{openapi:c0,graphql:a0},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},KI),eT),tT),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},cEe={type:"object",additionalProperties:!0},uEe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},jL={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},DL={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:jL},default:{llmstxt:jL.default},additionalProperties:!1},dEe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},vl={type:"object",additionalProperties:{type:"string"}},fEe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:vl,cms:vl,reunite:vl,features:{type:"object",properties:{aiSearch:vl},additionalProperties:!1},content:{type:"object",properties:{"**":vl},additionalProperties:vl}},additionalProperties:vl},hEe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},pEe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},gEe={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[hEe,pEe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},mEe={type:"object",properties:{type:{type:"string",const:f0.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},yEe={type:"object",properties:{type:{type:"string",const:f0.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},eE={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[mEe,yEe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},vEe=Object.assign(Object.assign({},eE),{properties:Object.assign(Object.assign({},eE.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),bEe={type:"object",oneOf:[eE,vEe,gEe],discriminator:{propertyName:"type"}},OEe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:bEe}}},ML={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},xEe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},SEe={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},tE={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:lEe,seo:DL,rbac:fEe,apiFunctions:dEe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:xEe}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:AY},extends:{type:"array",items:{type:"string"}}},KI),tT),eT),{ssoDirect:oEe,sso:sEe,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:OEe,removeAttribution:{type:"boolean"},i18n:ML,l10n:ML,metadata:cEe,metadataGlobs:uEe,ignore:{type:"array",items:{type:"string"}},theme:Do,reunite:eEe,logo:uY,navbar:dY,products:fY,footer:hY,sidebar:pY,scripts:gY,links:mY,feedback:Zx,search:yY,colorMode:vY,navigation:bY,codeSnippet:OY,markdown:xY,openapi:c0,graphql:a0,analytics:wY,userMenu:CY,versionPicker:PY,breadcrumbs:kY,catalog:u0,entitiesCatalog:EY,catalogClassic:u0,scorecard:$Y,mcp:SEe}),default:{redirects:{},seo:DL.default},additionalProperties:!0},wEe=Object.assign(Object.assign({},K$(tE,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},tE),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},tE.properties),{env:{type:"object",additionalProperties:wEe}}),default:{},additionalProperties:!1});const NL={type:"object",properties:{logo:Do.properties.logo,navbar:Do.properties.navbar,footer:Do.properties.footer,sidebar:Do.properties.sidebar,search:Do.properties.search,codeSnippet:Do.properties.codeSnippet,breadcrumbs:Do.properties.breadcrumbs,openapi:Do.properties.openapi,feedback:Do.properties.feedback,analytics:{type:"object",properties:{ga:SY}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},NL.properties),{apis:{type:"object",additionalProperties:AY},theme:NL});const CEe={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},PEe={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},kEe={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},$Ee={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},anyOf:[{required:["schema"]},{required:["sdl"]}],required:["specType"],additionalProperties:!0},EEe={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},AEe={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},IEe={type:"object",properties:{type:{type:"string",enum:Z$e},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},kf={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},EEe]},links:{anyOf:[{type:"null"},{type:"array",items:AEe}]},relations:{anyOf:[{type:"null"},{type:"array",items:IEe}]}};Object.assign(Object.assign({},kf),{type:{const:"user"},metadata:CEe}),Object.assign(Object.assign({},kf),{type:{const:"api-operation"},metadata:kEe}),Object.assign(Object.assign({},kf),{type:{const:"data-schema"},metadata:$Ee}),Object.assign(Object.assign({},kf),{type:{const:"api-description"},metadata:PEe}),Object.assign(Object.assign({},kf),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}});const TEe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var vb={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
514
514
|
* @license MIT */var _Ee=vb.exports,LL;function REe(){return LL||(LL=1,(function(t,e){(function(r,n){t.exports=n()})(_Ee,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(g){var p,y;for(p in g)y=g[p],y!==void 0&&g.hasOwnProperty(p)&&(n[p]=y);return this},r.status=null,r.set=function(g){var p=r.isStarted();g=i(g,n.minimum,1),r.status=g===1?null:g;var y=r.render(!p),v=y.querySelector(n.barSelector),b=n.speed,O=n.easing;return y.offsetWidth,a(function(S){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),l(v,s(g,b,O)),g===1?(l(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){l(y,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){r.remove(),S()},b)},b)):setTimeout(S,b)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var g=function(){setTimeout(function(){r.status&&(r.trickle(),g())},n.trickleSpeed)};return n.trickle&&g(),this},r.done=function(g){return!g&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(g){var p=r.status;return p?(typeof g!="number"&&(g=(1-p)*i(Math.random()*p,.1,.95)),p=i(p+g,0,.994),r.set(p)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},(function(){var g=0,p=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(p===0&&r.start(),g++,p++,y.always(function(){p--,p===0?(g=0,r.done()):r.set((g-p)/g)}),this)}})(),r.render=function(g){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=n.template;var y=p.querySelector(n.barSelector),v=g?"-100":o(r.status||0),b=document.querySelector(n.parent),O;return l(y,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),n.showSpinner||(O=p.querySelector(n.spinnerSelector),O&&h(O)),b!=document.body&&u(b,"nprogress-custom-parent"),b.appendChild(p),p},r.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(n.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&h(g)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var g=document.body.style,p="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return p+"Perspective"in g?"translate3d":p+"Transform"in g?"translate":"margin"};function i(g,p,y){return g<p?p:g>y?y:g}function o(g){return(-1+g)*100}function s(g,p,y){var v;return n.positionUsing==="translate3d"?v={transform:"translate3d("+o(g)+"%,0,0)"}:n.positionUsing==="translate"?v={transform:"translate("+o(g)+"%,0)"}:v={"margin-left":o(g)+"%"},v.transition="all "+p+"ms "+y,v}var a=(function(){var g=[];function p(){var y=g.shift();y&&y(p)}return function(y){g.push(y),g.length==1&&p()}})(),l=(function(){var g=["Webkit","O","Moz","ms"],p={};function y(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,w){return w.toUpperCase()})}function v(S){var x=document.body.style;if(S in x)return S;for(var w=g.length,P=S.charAt(0).toUpperCase()+S.slice(1),I;w--;)if(I=g[w]+P,I in x)return I;return S}function b(S){return S=y(S),p[S]||(p[S]=v(S))}function O(S,x,w){x=b(x),S.style[x]=w}return function(S,x){var w=arguments,P,I;if(w.length==2)for(P in x)I=x[P],I!==void 0&&x.hasOwnProperty(P)&&O(S,P,I);else O(S,w[1],w[2])}})();function c(g,p){var y=typeof g=="string"?g:f(g);return y.indexOf(" "+p+" ")>=0}function u(g,p){var y=f(g),v=y+p;c(y,p)||(g.className=v.substring(1))}function d(g,p){var y=f(g),v;c(g,p)&&(v=y.replace(" "+p+" "," "),g.className=v.substring(1,v.length-1))}function f(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function h(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return r})})(vb)),vb.exports}var jEe=REe();const DEe=ii(jEe);DEe.configure({trickleSpeed:100,template:'<div class="bar" role="bar"><div class="peg"></div></div>'});var bb={exports:{}},MEe=bb.exports,QL;function NEe(){return QL||(QL=1,(function(t,e){(function(r,n){n()})(MEe,function(){function r(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function n(c,u,d){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,d)},f.onerror=function(){console.error("could not download file")},f.send()}function i(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ta=="object"&&Ta.global===Ta?Ta:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(c,u,d){var f=s.URL||s.webkitURL,h=document.createElement("a");u=u||c.name||"download",h.download=u,h.rel="noopener",typeof c=="string"?(h.href=c,h.origin===location.origin?o(h):i(h.href)?n(c,u,d):o(h,h.target="_blank")):(h.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(h.href)},4e4),setTimeout(function(){o(h)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,d){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,d),u);else if(i(c))n(c,u,d);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){o(f)})}}:function(c,u,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return n(c,u,d);var h=c.type==="application/octet-stream",g=/constructor/i.test(s.HTMLElement)||s.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||h&&g||a)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var O=y.result;O=p?O:O.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=O:location=O,f=null},y.readAsDataURL(c)}else{var v=s.URL||s.webkitURL,b=v.createObjectURL(c);f?f.location=b:location.href=b,f=null,setTimeout(function(){v.revokeObjectURL(b)},4e4)}});s.saveAs=l.saveAs=l,t.exports=l})})(bb)),bb.exports}NEe();const LEe=t=>{const{name:e,type:r,pack:n,mode:i,color:o,...s}=t,a=TEe[n||"font-awesome"],l=n==="code"?"":r?r+"/":"regular/",c=i==="background"?{backgroundImage:`url(${a}/${l}${e}.svg)`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain"}:{backgroundColor:o?JI(o):"currentColor",maskImage:`url(${a}/${l}${e}.svg)`,maskRepeat:"no-repeat",maskPosition:"center",maskSize:"contain"};return m.jsx("svg",{...s,style:{...c,display:"inline-block",verticalAlign:"middle"}})};R(LEe).attrs(()=>({"data-component-name":"icons/CDNIcon/CDNIcon"}))`
|
|
515
515
|
height: ${({size:t})=>t||"var(--icon-height, 1em)"};
|
|
516
516
|
width: ${({size:t})=>t||"var(--icon-width, 1em)"};
|
|
@@ -1461,7 +1461,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1461
1461
|
&:hover {
|
|
1462
1462
|
background-color: var(--bg-color-hover);
|
|
1463
1463
|
}
|
|
1464
|
-
`;function nje({step:t}){function e(r){t.description.set(r.target.value)}return m.jsx(m.Fragment,{children:m.jsxs(f7,{children:[m.jsxs(Na,{children:[m.jsx(fE,{name:m.jsxs(m.Fragment,{children:["Step ID",m.jsx(Jo,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),m.jsx(GRe,{step:t})]}),m.jsxs(Na,{children:[m.jsxs(Sd,{children:["Description",m.jsx(Jo,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),m.jsx(h7,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),m.jsx(Na,{children:m.jsx(p7,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),m.jsx(Na,{children:m.jsx(LRe,{successCriteria:t.successCriteria})})]})})}function ije({onParameterChange:t,files:e}){const r=N.useRef(null),n=a=>{var l;(l=a.target.files)!=null&&l.length&&t(Array.from(a.target.files).map(c=>({absolutePath:null,file:c})))},i=async()=>{var a;if(Qd())try{const{open:l}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1464
|
+
`;function nje({step:t}){function e(r){t.description.set(r.target.value)}return m.jsx(m.Fragment,{children:m.jsxs(f7,{children:[m.jsxs(Na,{children:[m.jsx(fE,{name:m.jsxs(m.Fragment,{children:["Step ID",m.jsx(Jo,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),m.jsx(GRe,{step:t})]}),m.jsxs(Na,{children:[m.jsxs(Sd,{children:["Description",m.jsx(Jo,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),m.jsx(h7,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),m.jsx(Na,{children:m.jsx(p7,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),m.jsx(Na,{children:m.jsx(LRe,{successCriteria:t.successCriteria})})]})})}function ije({onParameterChange:t,files:e}){const r=N.useRef(null),n=a=>{var l;(l=a.target.files)!=null&&l.length&&t(Array.from(a.target.files).map(c=>({absolutePath:null,file:c})))},i=async()=>{var a;if(Qd())try{const{open:l}=await Promise.resolve().then(()=>require("./replay-index-D_7TTBbv.js")),c=await l({multiple:!0});if(!c)return;const d=(Array.isArray(c)?c:[c]).map(Up),h=(await Promise.all(d)).filter(g=>g!==null);t(h)}catch(l){console.error("Failed to open file dialog or read file:",l)}else(a=r.current)==null||a.click()},o=N.useCallback(()=>{t(null)},[t]),s=N.useMemo(()=>{if(!e)return null;if(e.length===1)return m.jsx(jQ,{icon:m.jsx(q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:m.jsx(DQ,{children:e[0].file.name})});if(e.length>1)return m.jsx(jQ,{icon:m.jsx(q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:m.jsxs(DQ,{children:[e.length," files"]})})},[e,o]);return m.jsx(oje,{children:m.jsxs(sje,{children:[m.jsx(aje,{children:s||m.jsx(cje,{children:"Add files here"})}),m.jsxs(lje,{children:[m.jsx($ke,{onClick:i,variant:"text","data-testid":"add-button",icon:m.jsx(q.AddIcon,{color:"--text-color-secondary"})}),m.jsx("input",{"data-testid":"file-input",hidden:!0,ref:r,type:"file",multiple:!0,accept:"files/*",onChange:n})]})]})})}const oje=R.div`
|
|
1465
1465
|
position: relative;
|
|
1466
1466
|
display: flex;
|
|
1467
1467
|
flex-grow: 1;
|
|
@@ -1586,7 +1586,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1586
1586
|
`,wje=R.div`
|
|
1587
1587
|
display: flex;
|
|
1588
1588
|
justify-content: center;
|
|
1589
|
-
`;function Cje({data:t,type:e,editable:r}){const n=tr(),i=t[e];function o(a,l){l&&i.merge([Ul()])}function s(a){i[a].set(ot)}return m.jsx(dje,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==vn["application/x-www-form-urlencoded"],editable:r,actions:a=>m.jsx(on,{onClick:()=>s(a),variant:"text",icon:m.jsx(q.TrashCanIcon,{})})})}const Pje=({data:t})=>{var c,u;const e=t.get(),[r,n]=N.useState(!1),i=N.useRef(null),o=d=>{var h;const f=(h=d.target.files)==null?void 0:h[0];if(f){n(!0);const g=new FileReader;g.onload=()=>{n(!1),t.set({absolutePath:null,file:f})},g.readAsDataURL(f)}},s=async d=>{var f;if(d==null||d.preventDefault(),Qd())try{const{open:h}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1589
|
+
`;function Cje({data:t,type:e,editable:r}){const n=tr(),i=t[e];function o(a,l){l&&i.merge([Ul()])}function s(a){i[a].set(ot)}return m.jsx(dje,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==vn["application/x-www-form-urlencoded"],editable:r,actions:a=>m.jsx(on,{onClick:()=>s(a),variant:"text",icon:m.jsx(q.TrashCanIcon,{})})})}const Pje=({data:t})=>{var c,u;const e=t.get(),[r,n]=N.useState(!1),i=N.useRef(null),o=d=>{var h;const f=(h=d.target.files)==null?void 0:h[0];if(f){n(!0);const g=new FileReader;g.onload=()=>{n(!1),t.set({absolutePath:null,file:f})},g.readAsDataURL(f)}},s=async d=>{var f;if(d==null||d.preventDefault(),Qd())try{const{open:h}=await Promise.resolve().then(()=>require("./replay-index-D_7TTBbv.js")),g=await h();if(!g)return;const p=await Up(g);t.set(p)}catch(h){console.error("Failed to open file dialog or read file:",h)}else(f=i.current)==null||f.click()},a=d=>{d.key==="Enter"&&(d.preventDefault(),s())},l=()=>{t.set(null)};return r?m.jsxs(kje,{children:[m.jsx(q.SpinnerIcon,{}),"Loading..."]}):e&&((c=e.file)!=null&&c.name)?m.jsxs($je,{children:[m.jsxs(Eje,{children:[m.jsx(q.DocumentBlankIcon,{size:"16px"}),m.jsx(Aje,{children:(u=e.file)==null?void 0:u.name})]}),m.jsx(on,{onClick:l,icon:m.jsx(q.TrashCanIcon,{})})]}):m.jsx(y7,{children:!e&&m.jsxs(Ije,{tabIndex:0,role:"button",onKeyDown:a,onClick:s,children:[m.jsx("input",{type:"file",onChange:o,ref:i}),m.jsx(q.CloudUploadIcon,{}),"Upload file"]})})},y7=R.div`
|
|
1590
1590
|
display: flex;
|
|
1591
1591
|
align-items: center;
|
|
1592
1592
|
justify-content: flex-start;
|
|
@@ -2475,7 +2475,7 @@ ${o.message}`})}}}}),hK=({filePath:t})=>({Info:{leave(e,{report:r,location:n,con
|
|
|
2475
2475
|
${o.message}`,location:n.child("description")})}}}}),pK=t=>({Info:{leave(e){if(typeof t!="object"||Array.isArray(t)||t===null)throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=t;Object.assign(e,n)}}}),u4e="x-internal",gK=({internalFlagProperty:t=u4e})=>{function e(n,i,o){var c,u,d,f,h;const{parent:s,key:a}=i;let l=!1;if(Array.isArray(n))for(let g=0;g<n.length;g++){if(Tr(n[g])&&(c=i.resolve(n[g]).node)!=null&&c[t]){if(ht((u=s.discriminator)==null?void 0:u.mapping))for(const y in s.discriminator.mapping)(o==null?void 0:o[y])===n[g].$ref&&delete s.discriminator.mapping[y];n.splice(g,1),l=!0,g--}(d=n[g])!=null&&d[t]&&(n.splice(g,1),l=!0,g--)}else if(ht(n))for(const g of Object.keys(n)){if(Tr(n[g])){const p=i.resolve(n[g]);ht(p.node)&&((f=p.node)!=null&&f[t])&&(delete n[g],l=!0)}ht(n[g])&&((h=n[g])!=null&&h[t])&&(delete n[g],l=!0)}l&&(Ip(n)||u8(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{e(n,i,r)}}}};function mK(t,e,r){const{parent:n,key:i}=e;let o=!1;if(Array.isArray(t))for(let s=0;s<t.length;s++){if(Tr(t[s])){const a=e.resolve(t[s]);r(a.node)&&(t.splice(s,1),o=!0,s--)}r(t[s])&&(t.splice(s,1),o=!0,s--)}else if(ht(t))for(const s of Object.keys(t)){if(t=t,Tr(t[s])){const a=e.resolve(t[s]);r(a.node)&&(delete t[s],o=!0)}r(t[s])&&(delete t[s],o=!0)}o&&(Ip(t)||u8(t))&&delete n[i]}function yK(t,e,r){return t===void 0||e===void 0?!1:!Array.isArray(e)&&!Array.isArray(t)?t===e:(e=xq(e),t=xq(t),r==="any"?e.some(n=>t.includes(n)):r==="all"?e.every(n=>t.includes(n)):!1)}function xq(t){return Array.isArray(t)?t:[t]}const d4e="any",vK=({property:t,value:e,matchStrategy:r})=>{const n=r||d4e,i=o=>(o==null?void 0:o[t])&&!yK(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{mK(o,s,i)}}}},f4e="any",bK=({property:t,value:e,matchStrategy:r})=>{const n=r||f4e,i=o=>yK(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{mK(o,s,i)}}}},h4e=({operationIds:t})=>({Operation:{enter(e,r){const n=e.operationId;if(!n)return;const i=t[n];if(i){if(i.responses&&e.responses)for(const o of Object.keys(i.responses)){const s=Sq(e.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{var c;const l=i.responses[o][a];s.content[a]={...s.content[a],examples:fV(Tp(l,(c=r.config)==null?void 0:c.configPath))}}),e.responses[o]=s)}if(i.request&&e.requestBody){const o=Sq(e.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{var l;const a=i.request[s];o.content[s]={...o.content[s],examples:fV(Tp(a,(l=r.config)==null?void 0:l.configPath))}}),e.requestBody=o}}}}});function Sq(t,e){if(!Tr(t))return t;const r=e(t);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const OK=()=>{const t=new Map;function e(n,i,o){var s;t.set(n.absolutePointer,{usedIn:((s=t.get(n.absolutePointer))==null?void 0:s.usedIn)??[],componentType:i,name:o})}function r(n,i){const o=i.length;for(const[s,{usedIn:a,name:l,componentType:c}]of t)if(!a.some(d=>!i.some(f=>d.absolutePointer.startsWith(f)&&(d.absolutePointer.length===f.length||d.absolutePointer[f.length]==="/")))&&c&&n.components){i.push(s);const d=n.components[c];delete d[l],t.delete(s),Ip(d)&&delete n.components[c]}return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,4).join("/"),f=`${c}#${d}`,h=t.get(f);h?h.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[]),Ip(n.components)&&delete n.components}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||e(i,"schemas",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){e(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){e(i,"responses",o.toString())}},NamedExamples:{Example(n,{location:i,key:o}){e(i,"examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{location:i,key:o}){e(i,"requestBodies",o.toString())}},NamedHeaders:{Header(n,{location:i,key:o}){e(i,"headers",o.toString())}}}},p4e={"operation-description-override":dK,"tag-description-override":fK,"info-description-override":hK,"info-override":pK,"remove-x-internal":gK,"remove-unused-components":OK,"filter-in":vK,"filter-out":bK,"media-type-examples-override":h4e},xK=()=>{const t=new Map;function e(n,i,o){var s;t.set(n.absolutePointer,{usedIn:((s=t.get(n.absolutePointer))==null?void 0:s.usedIn)??[],componentType:i,name:o})}function r(n,i){const o=i.length;for(const[s,{usedIn:a,name:l,componentType:c}]of t)!a.some(d=>!i.some(f=>d.absolutePointer.startsWith(f)&&(d.absolutePointer.length===f.length||d.absolutePointer[f.length]==="/")))&&c&&(i.push(s),delete n[c][l],t.delete(s),Ip(n[c])&&delete n[c]);return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(o.name)){const l=s(n);if(!l.location)return;const[c,u]=l.location.absolutePointer.split("#",2);if(!u)return;const d=u.split("/").slice(0,3).join("/"),f=`${c}#${d}`,h=t.get(f);h?h.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[])}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||e(i,"definitions",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){e(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){e(i,"responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{location:i,key:o}){e(i,"securityDefinitions",o.toString())}}}},g4e={"operation-description-override":dK,"tag-description-override":fK,"info-description-override":hK,"info-override":pK,"remove-x-internal":gK,"remove-unused-components":xK,"filter-in":vK,"filter-out":bK},m4e={},y4e={},v4e={},b4e={},O4e={recommended:xWe,"recommended-strict":SWe,minimal:CWe,all:wWe,spec:PWe},wq={id:"",rules:{oas3:$Ue,oas2:RUe,async2:NUe,async3:zUe,arazzo1:s4e,overlay1:l4e},preprocessors:{oas3:EUe,oas2:jUe,async2:LUe,async3:BUe,arazzo1:a4e,overlay1:c4e},decorators:{oas3:p4e,oas2:g4e,async2:m4e,async3:y4e,arazzo1:v4e,overlay1:b4e},configs:O4e},x4e={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function kd(t,e){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(e))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:a,message:l,visitor:c}of t)o({ruleId:s,severity:a,message:l},c,null);for(const s of Object.keys(r))r[s].enter.sort((a,l)=>l.depth-a.depth),r[s].leave.sort((a,l)=>a.depth-l.depth);return r;function n(s,a,l,c,u=[]){if(u.includes(a))return;u=[...u,a];const d=new Set;for(const h of Object.values(a.properties)){if(h===l){f(s,u);continue}typeof h=="object"&&h!==null&&h.name&&d.add(h)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===l?f(s,u):a.additionalProperties.name!==void 0&&d.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===l?f(s,u):a.items.name!==void 0&&d.add(a.items)),a.extensionsPrefix&&d.add(Hl);for(const h of Array.from(d.values()))n(s,h,l,c,u);function f(h,g){for(const p of g.slice(1))r[p.name]=r[p.name]||{enter:[],leave:[]},r[p.name].enter.push({...h,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:c}})}}function i(s,a){if(Array.isArray(a)){const l=a.find(c=>s[c])||void 0;return l&&s[l]}return s[a]}function o(s,a,l,c=0){const u=Object.keys(e);if(c===0)u.push("any"),u.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(const d of u){const f=a[d]||i(a,x4e[d]),h=r[d];if(!f)continue;let g,p,y;const v=ht(f);if(d==="ref"&&v&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?g=f:v&&(g=f.enter,p=f.leave,y=f.skip);const b=(g?1:0)+(p?1:0)+(y?1:0),O=v&&Object.keys(f).length>b,S={activatedOn:null,type:e[d],parent:l,isSkippedLevel:!1};if(O&&o(s,f,S,c+1),l&&n(s,l.type,e[d],l),g||v){if(g&&typeof g!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:g||(()=>{}),skip:y,depth:c,context:S})}if(p){if(typeof p!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:p,depth:c,context:S})}}}}function S4e(t){var r;const e={};for(;t.parent;)e[t.parent.type.name]=(r=t.parent.activatedOn)==null?void 0:r.value.node,t=t.parent;return e}function w4e(t){var r,n;const e={};for(;t.parent;)(r=t.parent.activatedOn)!=null&&r.value.location&&(e[t.parent.type.name]=(n=t.parent.activatedOn)==null?void 0:n.value.location),t=t.parent;return e}function $d(t){const{document:e,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=t,s={},a=new Set;l(e.parsed,r,new qu(e.source,"#/"),void 0,"");function l(c,u,d,f,h){var I,E,M,V,U,X,J,te,oe,ae;const g=(ie,he=y.source.absoluteRef)=>{if(!Tr(ie))return{location:d,node:ie};const L=Qh(he,ie.$ref),D=i.get(L);if(!D)return{location:void 0,node:void 0};const{resolved:Q,node:_,document:k,nodePointer:T,error:j}=D;return{location:Q?new qu(k.source,T):j instanceof Zd?new qu(j.source,""):void 0,node:_,error:j}},p=d;let y=d;const{node:v,location:b,error:O}=g(c),S=new Set;if(Tr(c)){const ie=n.ref.enter;for(const{visit:he,ruleId:L,severity:D,message:Q,context:_}of ie){S.add(_);const k=w.bind(void 0,L,D,Q);he(c,{report:k,resolve:g,rawNode:c,rawLocation:p,location:d,type:u,parent:f,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,L)},{node:v,location:b,error:O}),b!=null&&b.source.absoluteRef&&o.refTypes&&o.refTypes.set(b==null?void 0:b.source.absoluteRef,u)}}if(v!==void 0&&b&&u.name!=="scalar"){y=b;const ie=(E=(I=s[u.name])==null?void 0:I.has)==null?void 0:E.call(I,v);let he=!1;const D=n.any.enter.concat(((M=n[u.name])==null?void 0:M.enter)||[]),Q=[];for(const{context:T,visit:j,skip:Z,ruleId:Y,severity:ue,message:G}of D){if(a.has(`${y.absolutePointer}${y.pointer}`))break;if(T.isSkippedLevel)T.parent.activatedOn&&!T.parent.activatedOn.value.nextLevelTypeActivated&&!T.seen.has(c)&&(T.seen.add(c),he=!0,Q.push(T));else if(T.parent&&T.parent.activatedOn&&((V=T.activatedOn)==null?void 0:V.value.withParentNode)!==T.parent.activatedOn.value.node&&((U=T.parent.activatedOn.value.nextLevelTypeActivated)==null?void 0:U.value)!==u||!T.parent&&!ie){Q.push(T);const B={node:v,location:b,nextLevelTypeActivated:null,withParentNode:(J=(X=T.parent)==null?void 0:X.activatedOn)==null?void 0:J.value.node,skipped:(((oe=(te=T.parent)==null?void 0:te.activatedOn)==null?void 0:oe.value.skipped)||(Z==null?void 0:Z(v,h,{location:d,rawLocation:p,resolve:g,rawNode:c})))??!1};T.activatedOn=uV(T.activatedOn,B);let z=T.parent;for(;z;)z.activatedOn.value.nextLevelTypeActivated=uV(z.activatedOn.value.nextLevelTypeActivated,u),z=z.parent;B.skipped||(he=!0,S.add(T),x(j,v,c,T,Y,ue,G))}}if(he||!ie){if(s[u.name]=s[u.name]||new Set,s[u.name].add(v),Array.isArray(v)){const T=u.items;if(T!==void 0){const j=typeof T=="function";for(let Z=0;Z<v.length;Z++){let Y=j?T(v[Z],b.child([Z]).absolutePointer):T,ue=v[Z];Y!=null&&Y.directResolveAs&&(Y=Y.directResolveAs,ue={$ref:ue}),Jl(Y)&&l(ue,Y,b.child([Z]),v,Z)}}}else if(typeof v=="object"&&v!==null){const T=Object.keys(u.properties);u.additionalProperties?T.push(...Object.keys(v).filter(j=>!T.includes(j))):u.extensionsPrefix&&T.push(...Object.keys(v).filter(j=>j.startsWith(u.extensionsPrefix))),Tr(c)&&T.push(...Object.keys(c).filter(j=>j!=="$ref"&&!T.includes(j)));for(const j of T){let Z=v[j],Y=b;Z===void 0&&(Z=c[j],Y=d);let ue=ig(u.properties,j);ue===void 0&&(ue=u.additionalProperties),typeof ue=="function"&&(ue=ue(Z,j)),ue===void 0&&u.extensionsPrefix&&j.startsWith(u.extensionsPrefix)&&(ue=Hl),!Jl(ue)&&(ue!=null&&ue.directResolveAs)&&(ue=ue.directResolveAs,Z={$ref:Z}),ue&&ue.name===void 0&&ue.resolvable!==!1&&(ue={name:"scalar",properties:{}}),!(!Jl(ue)||ue.name==="scalar"&&!Tr(Z))&&l(Z,ue,Y.child([j]),v,j)}}}const _=n.any.leave,k=(((ae=n[u.name])==null?void 0:ae.leave)||[]).concat(_);for(const T of Q.reverse())if(T.isSkippedLevel)T.seen.delete(v);else if(T.activatedOn=dV(T.activatedOn),T.parent){let j=T.parent;for(;j;)j.activatedOn.value.nextLevelTypeActivated=dV(j.activatedOn.value.nextLevelTypeActivated),j=j.parent}for(const{context:T,visit:j,ruleId:Z,severity:Y,message:ue}of k)!T.isSkippedLevel&&S.has(T)&&x(j,v,c,T,Z,Y,ue)}if(y=d,Tr(c)){const ie=n.ref.leave;for(const{visit:he,ruleId:L,severity:D,context:Q,message:_}of ie)if(S.has(Q)){const k=w.bind(void 0,L,D,_);he(c,{report:k,resolve:g,rawNode:c,rawLocation:p,location:d,type:u,parent:f,key:h,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,L)},{node:v,location:b,error:O})}}function x(ie,he,L,D,Q,_,k){const T=w.bind(void 0,Q,_,k);ie(he,{report:T,resolve:g,rawNode:L,location:y,rawLocation:p,type:u,parent:f,key:h,parentLocations:w4e(D),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${y.absolutePointer}${y.pointer}`)},getVisitorData:P.bind(void 0,Q)},S4e(D),D)}function w(ie,he,L,D){const _=(D.location?Array.isArray(D.location)?D.location:[D.location]:[{...y,reportOnKey:!1}]).map(T=>({...y,reportOnKey:!1,...T})),k=D.forceSeverity||he;k!=="off"&&o.problems.push({ruleId:D.ruleId||ie,severity:k,...D,message:L?L.replace("{{message}}",D.message):D.message,suggest:D.suggest||[],location:_})}function P(ie){return o.visitorsData[ie]=o.visitorsData[ie]||{},o.visitorsData[ie]}}}function q0(t,e,r,n){return t.flatMap(i=>Object.keys(i).map(o=>{const s=i[o],a=r==="rules"?e.getRuleSettings(o,n):r==="preprocessors"?e.getPreprocessorSettings(o,n):e.getDecoratorSettings(o,n);if(a.severity==="off")return;const l=a.severity,c=a.message,u=s(a);return Array.isArray(u)?u.map(d=>({severity:l,ruleId:o,message:c,visitor:d})):{severity:l,message:c,ruleId:o,visitor:u}})).flatMap(i=>i).filter(k0)}function SK({node:t,ctx:e,plugins:r}){if(!t.extends)return t;const n=(t.extends||[]).map(i=>{if(!Fr(i)&&!hc.extname(i))return L4e(i,r);const o=e.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(Di);return kJ([...n.map(i=>SK({node:i,ctx:e,plugins:r})),{...t,extends:void 0}])}const C4e="redocly.yaml",P4e={extends:["recommended"]},Eb=".redocly.lint-ignore.yaml",k4e=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
2476
2476
|
# See https://redocly.com/docs/cli/ for more information.
|
|
2477
2477
|
`,wK="configBundler",CK="pluginsCollector",$4e=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function kv(t,e){if(ht(t)&&Array.isArray(t.plugins)){const{plugins:r,rootConfigDir:n}=e.getVisitorData();r.push(...t.plugins.map(i=>PK(i,e.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const E4e=kd([{severity:"error",ruleId:CK,visitor:{ref:{},ConfigGovernance:{leave(t,e){kv(t,e)}},ConfigApisProperties:{leave(t,e){kv(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){kv(t,e)}},ConfigRoot:{leave(t,e){kv(t,e)}}}}],og);function $v(t,e){if(ht(t)&&t.extends){const{plugins:r}=e.getVisitorData(),n=SK({node:t,ctx:e,plugins:r});Object.assign(t,n),delete t.extends}}const A4e=kd([{severity:"error",ruleId:wK,visitor:{ref:{leave(t,e,r){xE(t,r,e)}},ConfigGovernance:{leave(t,e){$v(t,e)}},ConfigApisProperties:{leave(t,e){$v(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){$v(t,e)}},ConfigRoot:{leave(t,e){$v(t,e)}}}}],og);function I4e(t,e,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[CK]:n}};return $d({document:t,rootType:og.ConfigRoot,normalizedVisitors:E4e,resolvedRefMap:e,ctx:i}),n.plugins}function T4e(t,e,r){const n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[wK]:n}};return $d({document:t,rootType:og.ConfigRoot,normalizedVisitors:A4e,resolvedRefMap:e,ctx:i}),t.parsed??{}}async function _4e(t){var s;const{ref:e,doc:r,externalRefResolver:n=new bS(t.config.resolve),base:i=null}=t;if(!(e||r))throw new Error(`Document or reference is required.
|
|
2478
|
-
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return(s=t.collectSpecData)==null||s.call(t,o.parsed),R4e({document:o,...t,externalRefResolver:n})}async function R4e(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=JT(e.parsed),c=pJ(l),u=r.getRulesForSpecVersion(c),d=UT(r.extendTypes(n??KT(l),l),r),f=q0(u,r,"preprocessors",l),h=q0(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!h.some(v=>v.ruleId==="remove-unused-components")&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?xK():OK()});let p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&($d({document:e,rootType:d.Root,normalizedVisitors:kd(f,d),resolvedRefMap:p,ctx:g}),p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=kd([{severity:"error",ruleId:"bundler",visitor:j4e(c,o,e,p,a)},...h],d);return $d({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:p,ctx:g}),{bundle:e,problems:g.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:g.refTypes,visitorsData:g.visitorsData}}function Cq(t,e){switch(e){case"oas3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case"oas2":switch(t){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(t){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null}}function j4e(t,e,r,n,i){let o,s;const a={ref:{leave(f,h,g){if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(g.location.source===r.source&&g.location.source===h.location.source&&h.type.name!=="scalar"&&!e||i&&Fr(f.$ref))return;const p=Cq(h.type.name,t);p?e?(c(p,g,h),xE(f,g,h)):(f.$ref=c(p,g,h),l(f,g,h)):xE(f,g,h)}},Example:{leave(f,h){if(a8(f)&&f.value===void 0){const g=h.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(i&&Fr(f.externalValue))return;f.value=h.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,h){s=h.location,t==="oas3"?o=f.components=f.components||{}:t==="oas2"?o=f:t==="async2"?o=f.components=f.components||{}:t==="async3"?o=f.components=f.components||{}:t==="arazzo1"&&(o=f.components=f.components||{})}}};t==="oas3"&&(a.DiscriminatorMapping={leave(f,h){for(const g of Object.keys(f)){const p=f[g],y=h.resolve({$ref:p});if(!y.location||y.node===void 0){Vh(y,h.report,h.location.child(g));return}const v=Cq("Schema",t);f[g]=c(v,y,h)}}});function l(f,h,g){const p=Qh(g.location.source.absoluteRef,f.$ref);n.set(p,{document:r,isRemote:!1,node:h.node,nodePointer:f.$ref,resolved:!0})}function c(f,h,g){o[f]=o[f]||{};const p=d(h,f,g);return o[f][p]=h.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${p}`:`#/${f}/${p}`}function u(f,h,g){var p;return Tr(f)&&((p=g.resolve(f,s.absolutePointer).location)==null?void 0:p.absolutePointer)===h.location.absolutePointer?!0:SE(f,h.node)}function d(f,h,g){const[p,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[h];let b="";const O=y.slice(2).split("/").filter(Di);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=GLe(p)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const S=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${S}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${S} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const uC=new Map;async function D4e({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?P4e:t.parsed;if(n!==void 0&&ht(i)&&(i.extends=n),ht(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(tQe)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Pd(e??"",JSON.stringify(i)),parsed:i},s=await Rp({rootDocument:o,rootType:og.ConfigRoot,externalRefResolver:r??new bS($J(i==null?void 0:i.resolve))});let a=[],l,c="";Zn?l=[...((i==null?void 0:i.plugins)||[]).filter(g=>!yi(g)),wq]:(c=It.dirname(e??""),a=I4e(o,s,c),l=[...await N4e(a.map(g=>Pq(g)?g.absolutePath:g),c),wq]);const u=T4e(o,gWe(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([h,g])=>{const p=kJ([u,g]);return[h,{...g,...p}]})));const d=a.length?a.map(h=>Pq(h)&&h.isModule?h.rawPath:h.absolutePath&&It.relative(c,h.absolutePath)).filter(k0):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function M4e(t){for(const e of $4e)(void 0)(It.resolve(t,e))}function Pq(t){return"isModule"in t}const PK=(t,e,r)=>{if(!yi(t))return t;const n=It.resolve(It.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:U7.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-
|
|
2478
|
+
`);const o=r===void 0?await n.resolveDocument(i,e,!0):r;if(o instanceof Error)throw o;return(s=t.collectSpecData)==null||s.call(t,o.parsed),R4e({document:o,...t,externalRefResolver:n})}async function R4e(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=JT(e.parsed),c=pJ(l),u=r.getRulesForSpecVersion(c),d=UT(r.extendTypes(n??KT(l),l),r),f=q0(u,r,"preprocessors",l),h=q0(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&!h.some(v=>v.ruleId==="remove-unused-components")&&h.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?xK():OK()});let p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&($d({document:e,rootType:d.Root,normalizedVisitors:kd(f,d),resolvedRefMap:p,ctx:g}),p=await Rp({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=kd([{severity:"error",ruleId:"bundler",visitor:j4e(c,o,e,p,a)},...h],d);return $d({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:p,ctx:g}),{bundle:e,problems:g.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:d.Root,refTypes:g.refTypes,visitorsData:g.visitorsData}}function Cq(t,e){switch(e){case"oas3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case"oas2":switch(t){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(t){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(t){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null}}function j4e(t,e,r,n,i){let o,s;const a={ref:{leave(f,h,g){if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(g.location.source===r.source&&g.location.source===h.location.source&&h.type.name!=="scalar"&&!e||i&&Fr(f.$ref))return;const p=Cq(h.type.name,t);p?e?(c(p,g,h),xE(f,g,h)):(f.$ref=c(p,g,h),l(f,g,h)):xE(f,g,h)}},Example:{leave(f,h){if(a8(f)&&f.value===void 0){const g=h.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){Vh(g,h.report,h.location);return}if(i&&Fr(f.externalValue))return;f.value=h.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,h){s=h.location,t==="oas3"?o=f.components=f.components||{}:t==="oas2"?o=f:t==="async2"?o=f.components=f.components||{}:t==="async3"?o=f.components=f.components||{}:t==="arazzo1"&&(o=f.components=f.components||{})}}};t==="oas3"&&(a.DiscriminatorMapping={leave(f,h){for(const g of Object.keys(f)){const p=f[g],y=h.resolve({$ref:p});if(!y.location||y.node===void 0){Vh(y,h.report,h.location.child(g));return}const v=Cq("Schema",t);f[g]=c(v,y,h)}}});function l(f,h,g){const p=Qh(g.location.source.absoluteRef,f.$ref);n.set(p,{document:r,isRemote:!1,node:h.node,nodePointer:f.$ref,resolved:!0})}function c(f,h,g){o[f]=o[f]||{};const p=d(h,f,g);return o[f][p]=h.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${p}`:`#/${f}/${p}`}function u(f,h,g){var p;return Tr(f)&&((p=g.resolve(f,s.absolutePointer).location)==null?void 0:p.absolutePointer)===h.location.absolutePointer?!0:SE(f,h.node)}function d(f,h,g){const[p,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[h];let b="";const O=y.slice(2).split("/").filter(Di);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=GLe(p)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const S=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${S}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${S} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const uC=new Map;async function D4e({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?P4e:t.parsed;if(n!==void 0&&ht(i)&&(i.extends=n),ht(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(tQe)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Pd(e??"",JSON.stringify(i)),parsed:i},s=await Rp({rootDocument:o,rootType:og.ConfigRoot,externalRefResolver:r??new bS($J(i==null?void 0:i.resolve))});let a=[],l,c="";Zn?l=[...((i==null?void 0:i.plugins)||[]).filter(g=>!yi(g)),wq]:(c=It.dirname(e??""),a=I4e(o,s,c),l=[...await N4e(a.map(g=>Pq(g)?g.absolutePath:g),c),wq]);const u=T4e(o,gWe(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([h,g])=>{const p=kJ([u,g]);return[h,{...g,...p}]})));const d=a.length?a.map(h=>Pq(h)&&h.isModule?h.rawPath:h.absolutePath&&It.relative(c,h.absolutePath)).filter(k0):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function M4e(t){for(const e of $4e)(void 0)(It.resolve(t,e))}function Pq(t){return"isModule"in t}const PK=(t,e,r)=>{if(!yi(t))return t;const n=It.resolve(It.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:U7.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-BgvyKCxA.js",document.baseURI).href)??__dirname).resolve(t,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-BgvyKCxA.js",document.baseURI).href)?It.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:vs&&vs.tagName.toUpperCase()==="SCRIPT"&&vs.src||new URL("replay-index-BgvyKCxA.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:t}};async function N4e(t,e){if(!t)return[];const r=async a=>{var l;if(!yi(a))return a;try{const c=It.isAbsolute(a)?a:PK(a,It.join(e,C4e),e).absolutePath;if(!uC.has(c)){let u;if(typeof __webpack_require__=="function")u=__non_webpack_require__(c);else{const p=await import((void 0)(c).pathname);u=p.default||p}const d={contentDir:e},f=Array.isArray(u)?u:[u];for(const p of f)p!=null&&p.id&&eB(p)&&Ut.info(`Deprecated plugin format detected: ${p.id}
|
|
2479
2479
|
`);const h=eB(u)?u:mWe(u)?await u(d):await((l=u==null?void 0:u.default)==null?void 0:l.call(u,d)),g=Array.isArray(h)?h:[h];h&&uC.set(c,g.map(p=>({...p,path:a,absolutePath:c})))}return uC.get(c)}catch(c){throw new Error(`Failed to load plugin "${a}": ${c.message}
|
|
2480
2480
|
|
|
2481
2481
|
${c.stack}`)}},n=new Map,i=M4e(e);i&&t.push(i);const o=new Set;return(await Promise.all(t.map(async a=>{if(yi(a)){if(Fr(a))throw new Error(St.red("We don't support remote plugins yet."));if(o.has(a))return;o.add(a)}const l=await r(a);if(!l)return;const c=Array.isArray(l)?l:[l];return(await Promise.all(c.map(async u=>{if(!u)return;const d=u.id;if(typeof d!="string")throw new Error(St.red(`Plugin must define \`id\` property in ${St.blue(a.toString())}.`));const f=u.absolutePath??a.toString(),h=n.get(d);if(h){if(f!==h)throw new Error(St.red(`Plugin "id" must be unique. Plugin ${St.blue(f)} uses id "${St.blue(d)}" already seen in ${St.blue(f)}`));return}n.set(d,f);const g={id:d,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, or \`overlay1\` rules "${a}.`);g.rules={},u.rules.oas3&&(g.rules.oas3=Br(u.rules.oas3,d)),u.rules.oas2&&(g.rules.oas2=Br(u.rules.oas2,d)),u.rules.async2&&(g.rules.async2=Br(u.rules.async2,d)),u.rules.async3&&(g.rules.async3=Br(u.rules.async3,d)),u.rules.arazzo1&&(g.rules.arazzo1=Br(u.rules.arazzo1,d)),u.rules.overlay1&&(g.rules.overlay1=Br(u.rules.overlay1,d))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, or \`overlay1\` preprocessors "${a}.`);g.preprocessors={},u.preprocessors.oas3&&(g.preprocessors.oas3=Br(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(g.preprocessors.oas2=Br(u.preprocessors.oas2,d)),u.preprocessors.async2&&(g.preprocessors.async2=Br(u.preprocessors.async2,d)),u.preprocessors.async3&&(g.preprocessors.async3=Br(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(g.preprocessors.arazzo1=Br(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(g.preprocessors.overlay1=Br(u.preprocessors.overlay1,d))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, or \`overlay1\` decorators "${a}.`);g.decorators={},u.decorators.oas3&&(g.decorators.oas3=Br(u.decorators.oas3,d)),u.decorators.oas2&&(g.decorators.oas2=Br(u.decorators.oas2,d)),u.decorators.async2&&(g.decorators.async2=Br(u.decorators.async2,d)),u.decorators.async3&&(g.decorators.async3=Br(u.decorators.async3,d)),u.decorators.arazzo1&&(g.decorators.arazzo1=Br(u.decorators.arazzo1,d)),u.decorators.overlay1&&(g.decorators.overlay1=Br(u.decorators.overlay1,d))}return u.assertions&&(g.assertions=u.assertions),{...u,...g}}))).filter(k0)}))).filter(k0).flat()}function L4e(t,e){var s;const{pluginId:r,configName:n}=pWe(t),i=e.find(a=>a.id===r);if(!i)throw new Error(`Invalid config ${St.red(t)}: plugin ${r} is not included.`);const o=(s=i.configs)==null?void 0:s[n];if(!o)throw new Error(r?`Invalid config ${St.red(t)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${St.red(t)}: there is no such built-in config.`);return o}function Q4e(t,e){if(!t.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(t.rules))if(i.startsWith("rule/")&&typeof o=="object"&&o!==null){const s=o;if(e){kq(e,s);for(const a of s.where||[])kq(e,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function kq(t,e){for(const r of p8(e.assertions)){const[n,i]=r.split("/");if(!n||!i)continue;const o=t.find(s=>s.id===n);if(!o)throw Error(St.red(`Plugin ${St.blue(n)} isn't found.`));if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${St.red(n)} doesn't export assertions function with name ${St.red(i)}.`);z0[r]=F3e(o.assertions[i])}}function V4e(t){return t?h8(t)?It.join(It.dirname(t),Eb):It.join(t,Eb):Zn?void 0:It.join(process.cwd(),Eb)}class d_{constructor(e,r={}){var i;this.ignore={},this._usedRules=new Set,this._usedVersions=new Set,this.resolvedConfig=e,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=$J(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!((i=e.resolve)!=null&&i.doNotResolveExamples);const n=o=>Q4e({rules:o},this.plugins);this.rules={oas2:n({...e.rules,...e.oas2Rules}),oas3_0:n({...e.rules,...e.oas3_0Rules}),oas3_1:n({...e.rules,...e.oas3_1Rules}),async2:n({...e.rules,...e.async2Rules}),async3:n({...e.rules,...e.async3Rules}),arazzo1:n({...e.rules,...e.arazzo1Rules}),overlay1:n({...e.rules,...e.overlay1Rules})},this.preprocessors={oas2:{...e.preprocessors,...e.oas2Preprocessors},oas3_0:{...e.preprocessors,...e.oas3_0Preprocessors},oas3_1:{...e.preprocessors,...e.oas3_1Preprocessors},async2:{...e.preprocessors,...e.async2Preprocessors},async3:{...e.preprocessors,...e.async3Preprocessors},arazzo1:{...e.arazzo1Preprocessors},overlay1:{...e.preprocessors,...e.overlay1Preprocessors}},this.decorators={oas2:{...e.decorators,...e.oas2Decorators},oas3_0:{...e.decorators,...e.oas3_0Decorators},oas3_1:{...e.decorators,...e.oas3_1Decorators},async2:{...e.decorators,...e.async2Decorators},async3:{...e.decorators,...e.async3Decorators},arazzo1:{...e.arazzo1Decorators},overlay1:{...e.decorators,...e.overlay1Decorators}},this.resolveIgnore(V4e(r.configPath))}forAlias(e){var a,l;if(e===void 0||!ht((l=(a=this.resolvedConfig)==null?void 0:a.apis)==null?void 0:l[e]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[e];return new d_({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:e,plugins:this.plugins})}resolveIgnore(e){!e||h8(e)}saveIgnore(){const e=this.configPath?It.dirname(this.configPath):process.cwd(),r=It.join(e,Eb),n={};for(const i of Object.keys(this.ignore)){const o=Fr(i)?i:eQe(It.relative(e,i)),s=n[o]=this.ignore[i];for(const a of Object.keys(s))s[a]=Array.from(s[a])}(void 0)(r,k4e+ULe(n))}addIgnore(e){const r=this.ignore,n=e.location[0];if(n.pointer===void 0)return;const i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[e.ruleId]=i[e.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(e){const r=e.location[0];if(r.pointer===void 0)return e;const i=(this.ignore[r.source.absoluteRef]||{})[e.ruleId],o=i&&i.has(r.pointer);return o?{...e,ignored:o}:e}extendTypes(e,r){let n=e;for(const i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;default:throw new Error("Not implemented")}return n}getRuleSettings(e,r){this._usedRules.add(e),this._usedVersions.add(r);const n=this.rules[r][e]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(e,r){this._usedRules.add(e),this._usedVersions.add(r);const n=this.preprocessors[r][e]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(e,r){this._usedRules.add(e),this._usedVersions.add(r);const n=this.decorators[r][e]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){const e=[],r=[],n=[];for(const i of Array.from(this._usedVersions))e.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:e,preprocessors:n,decorators:r}}getRulesForSpecVersion(e){switch(e){case"oas3":const r=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.oas3)&&r.push(l.preprocessors.oas3)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.oas3)&&r.push(l.rules.oas3)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.oas3)&&r.push(l.decorators.oas3)}),r;case"oas2":const n=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.oas2)&&n.push(l.preprocessors.oas2)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.oas2)&&n.push(l.rules.oas2)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.oas2)&&n.push(l.decorators.oas2)}),n;case"async2":const i=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.async2)&&i.push(l.preprocessors.async2)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.async2)&&i.push(l.rules.async2)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.async2)&&i.push(l.decorators.async2)}),i;case"async3":const o=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.async3)&&o.push(l.preprocessors.async3)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.async3)&&o.push(l.rules.async3)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.async3)&&o.push(l.decorators.async3)}),o;case"arazzo1":const s=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.arazzo1)&&s.push(l.preprocessors.arazzo1)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.arazzo1)&&s.push(l.rules.arazzo1)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.arazzo1)&&s.push(l.decorators.arazzo1)}),s;case"overlay1":const a=[];return this.plugins.forEach(l=>{var c;return((c=l.preprocessors)==null?void 0:c.overlay1)&&a.push(l.preprocessors.overlay1)}),this.plugins.forEach(l=>{var c;return((c=l.rules)==null?void 0:c.overlay1)&&a.push(l.rules.overlay1)}),this.plugins.forEach(l=>{var c;return((c=l.decorators)==null?void 0:c.overlay1)&&a.push(l.decorators.overlay1)}),a}}skipRules(e){for(const r of e||[])for(const n of Pb)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(const i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(e){for(const r of e||[])for(const n of Pb)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(e){for(const r of e||[])for(const n of Pb)this.decorators[n][r]&&(this.decorators[n][r]="off")}}async function kK(t,{configPath:e,externalRefResolver:r}={}){const i=vWe(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await D4e({rawConfigDocument:z4e(i),configPath:e,externalRefResolver:r});return new d_(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function z4e(t){if(!t.parsed)return t;const{plugins:e,resolve:r,...n}=t.parsed,i={...structuredClone(n),plugins:e==null?void 0:e.slice(),...r&&{resolve:{...r}}};return{...t,parsed:i}}var dC={},Hi={},fC={},$q;function ES(){return $q||($q=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e;(function(l){l[l.SCALAR=0]="SCALAR",l[l.MAPPING=1]="MAPPING",l[l.MAP=2]="MAP",l[l.SEQ=3]="SEQ",l[l.ANCHOR_REF=4]="ANCHOR_REF",l[l.INCLUDE_REF=5]="INCLUDE_REF"})(e=t.Kind||(t.Kind={}));function r(l,c){var u=c?c.endPosition:l.endPosition+1,d={key:l,value:c,startPosition:l.startPosition,endPosition:u,kind:e.MAPPING,parent:null,errors:[]};return d}t.newMapping=r;function n(l,c,u,d){return{errors:[],referencesAnchor:l,value:d,startPosition:c,endPosition:u,kind:e.ANCHOR_REF,parent:null}}t.newAnchorRef=n;function i(l){l===void 0&&(l="");var c={errors:[],startPosition:-1,endPosition:-1,value:""+l,kind:e.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+l};return typeof l!="string"&&(c.valueObject=l),c}t.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:e.SEQ,parent:null}}t.newItems=o;function s(){return o()}t.newSeq=s;function a(l){return{errors:[],startPosition:-1,endPosition:-1,mappings:l||[],kind:e.MAP,parent:null}}t.newMap=a})(fC)),fC}var ks={},Eq;function Jd(){if(Eq)return ks;Eq=1,Object.defineProperty(ks,"__esModule",{value:!0});function t(s){return typeof s>"u"||s===null}ks.isNothing=t;function e(s){return typeof s=="object"&&s!==null}ks.isObject=e;function r(s){return Array.isArray(s)?s:t(s)?[]:[s]}ks.toArray=r;function n(s,a){var l,c,u,d;if(a)for(d=Object.keys(a),l=0,c=d.length;l<c;l+=1)u=d[l],s[u]=a[u];return s}ks.extend=n;function i(s,a){var l="",c;for(c=0;c<a;c+=1)l+=s;return l}ks.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return ks.isNegativeZero=o,ks}var hC,Aq;function ug(){if(Aq)return hC;Aq=1;var t=(function(){function e(r,n,i){n===void 0&&(n=null),i===void 0&&(i=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=i}return e.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,i=r.getClassIdentifier();n<i.length;n++){var o=i[n];if(o==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var r=[];return r.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(r){r===void 0&&(r=!1);var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!r&&this.mark&&(n+=" "+this.mark.toString()),n},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();return hC=t,hC}var pC,Iq;function B4e(){if(Iq)return pC;Iq=1;var t=Jd(),e=(function(){function r(n,i,o,s,a){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=a}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,a,l,c;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
@@ -2563,7 +2563,7 @@ ${v.message}
|
|
|
2563
2563
|
|
|
2564
2564
|
`+d:l.message,h={title:l.ruleId,file:Fr(c.source.absoluteRef)?c.source.absoluteRef:It.relative(e,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:(s=c.end)==null?void 0:s.line,endColumn:(a=c.end)==null?void 0:a.col};Ut.output(`::${u} ${r(h)}::${i(f)}
|
|
2565
2565
|
`)}function r(l){return Object.entries(l).filter(([,c])=>c!=null).map(([c,u])=>`${c}=${o(u)}`).join(",")}function n(l){return l==null?"":typeof l=="string"||l instanceof String?l:JSON.stringify(l)}function i(l){return n(l).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(l){return n(l).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}delete HT.properties.theme;async function AXe(t){var i;const{ref:e,externalRefResolver:r=new bS(t.config.resolve)}=t,n=await r.resolveDocument(null,e,!0);return(i=t.collectSpecData)==null||i.call(t,n.parsed),IXe({document:n,...t,externalRefResolver:r})}async function IXe(t){M3e();const{document:e,customTypes:r,externalRefResolver:n,config:i}=t,o=JT(e.parsed),s=pJ(o),a=i.getRulesForSpecVersion(s),l=UT(i.extendTypes(r??KT(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},u=q0(a,i,"preprocessors",o),d=q0(a,i,"rules",o);let f=await Rp({rootDocument:e,rootType:l.Root,externalRefResolver:n});u.length>0&&($d({document:e,rootType:l.Root,normalizedVisitors:kd(u,l),resolvedRefMap:f,ctx:c}),f=await Rp({rootDocument:e,rootType:l.Root,externalRefResolver:n}));const h=kd(d,l);return $d({document:e,rootType:l.Root,normalizedVisitors:h,resolvedRefMap:f,ctx:c}),c.problems.map(g=>i.addProblemToIgnore(g))}const TXe={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t};class _Xe extends bS{constructor(){super()}resolveExternalRef(e,r){return Ob(r)?r:e&&Ob(e)?new URL(r,e).href:e?hc.resolve(hc.dirname(e),r):r}async loadExternalRef(e){if(Ob(e)){const{body:r,mimeType:n}=await d8(e,{...this.config.http,customFetch:zs});return new Pd(e,r,n)}else{if(!await HZ(e))throw new Error(`File not found at ${e}.`);try{throw await YZ(e),new Error(`Expected a file but received a folder at ${e}.`)}catch(i){if(i instanceof Error&&i.message.includes("Expected a file but received a folder"))throw i}const n=await hI(e);return new Pd(e,n.replace(/\r\n/g,`
|
|
2566
|
-
`))}}}async function RXe({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new _Xe,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=jXe(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2566
|
+
`))}}}async function RXe({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new _Xe,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=jXe(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-CDsLc8PM.js"));return await d({files:[a],workflow:e?[e]:[],fetch:zs,logger:TXe,maxSteps:500,maxFetchTimeout:4e4,requestFileLoader:{getFileBody:async f=>{if(!await HZ(f))throw new Error(`File ${f} doesn't exist or isn't readable.`);try{const g=await hI(f),p=new TextEncoder().encode(g);return new File([p],await GZ(f))}catch(g){throw new Error(`Failed to read file ${f}: ${g}`)}}},envVariables:{},config:await kK({}),externalRefResolver:l,input:c,server:u,severity:JSON.stringify(s),skipLint:!0})}function jXe(t,e){return e.map(r=>{const n=t.find(o=>o.apiId===r.apiId);if(!n)return null;let i=n.value;if(n.variables)for(const o of n.variables){const s=new RegExp(`\\{${o.name}\\}`,"g");i=i.replace(s,o.value)}return`${r.name}=${i}`}).filter(r=>r!==null)}function p_(t){return t==null?"N/A":t<1e3?`${t} ms`:t<1e4?`${(t/1e3).toFixed(1)} s`:`${Math.round(t/1e3)} s`}function TK({checks:t}){const e=t.filter(h=>h.severity!=="off"),r=e.filter(h=>h.passed).length,n=e.filter(h=>h.severity==="warn"&&!h.passed).length,i=e.length,o=i-r-n,s=r===i,a=r===0,[l,c]=ce.default.useState(o>0||n>0),u=()=>s?"All checks passed":a?"All checks failed":`Some ${i>1?"checks were":"check was"} not successful`,d=()=>s?m.jsx(q.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):o>0?m.jsx(q.ErrorFilledIcon,{color:"var(--color-error-base)"}):m.jsx(q.WarningFilledIcon,{color:"var(--color-warning-base)"}),f=h=>{h.stopPropagation(),c(!l)};return!e||e.length===0?null:m.jsxs(DXe,{children:[m.jsxs(MXe,{onClick:f,children:[m.jsxs(NXe,{children:[m.jsx(LXe,{children:m.jsx(QXe,{children:d()})}),m.jsxs(VXe,{children:[m.jsx(zXe,{children:u()}),m.jsxs(BXe,{children:[r," successful",n>0&&m.jsxs(m.Fragment,{children:[", ",n," ",n===1?"warning":"warnings"]}),o>0&&m.jsxs(m.Fragment,{children:[", ",o," failed"]})]})]})]}),m.jsx(qXe,{isExpanded:l,children:l?m.jsx(q.ChevronDownIcon,{}):m.jsx(q.ChevronRightIcon,{})})]}),m.jsx(FXe,{isExpanded:l,children:e.map((h,g)=>m.jsxs(WXe,{children:[m.jsx(UXe,{children:h.passed?m.jsx(q.CheckmarkIcon,{color:"var(--color-success-base)",size:"14px"}):!h.passed&&["warn"].includes(h.severity)?m.jsx(q.WarningFilledIcon,{color:"var(--color-warning-base)",size:"14px"}):m.jsx(q.CloseOutlineIcon,{color:"var(--color-error-base)",size:"14px"})}),m.jsxs(XXe,{children:[m.jsx(ZXe,{children:h.name}),h.message&&m.jsx(GXe,{children:h.message})]})]},g))})]})}const DXe=R.div`
|
|
2567
2567
|
margin-bottom: 0;
|
|
2568
2568
|
margin-top: var(--spacing-xxs);
|
|
2569
2569
|
`,MXe=R.div`
|
|
@@ -3270,7 +3270,7 @@ ${v.message}
|
|
|
3270
3270
|
display: inline-block;
|
|
3271
3271
|
color: var(--text-color-secondary);
|
|
3272
3272
|
margin-left: var(--spacing-xs);
|
|
3273
|
-
`,l9e=process.env.NODE_ENV==="development";function c9e(t){const e=t||"default";return{id:Fh(ox(e)),systemFilesDir:hc.join("/replay",e),userFilesDir:hc.join("/projects",e)}}async function u9e(t){if(!t)throw new Error("Tauri project: userFilesDir is required");const e=Fh(ox(t)),r=l9e?await Cve():await wve(),n=await Ih(r,"replay",e);return{id:e,systemFilesDir:n,userFilesDir:t}}function jE(t,e){const r=`apis/${t.info.title}`.replace(/\s+/g,"-").toLowerCase();let n;if(!e.some(i=>i.id===`${r}.yaml`))n=r;else{let i=1,o=`${r}-${i}`;for(;e.some(s=>s.id===o);)i++,o=`${r}-${i}`;n=o}return`${n}.yaml`}function d9e(t,e){return t.find(r=>r.name===e)}function f9e(t,e,r,n,i){const{servers:o,parameters:s}=e,a=s.filter(g=>g.in==="path"),l=h9e(e),c=i;let u=[...o];(i==null?void 0:i.position)==="first"?u.unshift(c):(i==null?void 0:i.position)==="last"?u.push(c):(i==null?void 0:i.position)==="replace"&&(u=[c]);const d=new Set,f=a.map(g=>{const p=g.example?String(g.example):"";return d.add(g.name),{name:g.name,value:p,isSecret:!1}}),h=g=>l.map(p=>{var b,O;const y=(b=e.security)==null?void 0:b.flat().find(S=>{const x=S.id;return p.name.startsWith(x)});let v="";if(y){const S=(O=y.serverValues)==null?void 0:O[g];S&&(S["x-defaultUsername"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Username)?v=S["x-defaultUsername"]:S["x-defaultPassword"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Password)?v=S["x-defaultPassword"]:S["x-defaultClientId"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientId)?v=S["x-defaultClientId"]:S["x-defaultClientSecret"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientSecret)?v=S["x-defaultClientSecret"]:S["x-defaultAccessToken"]&&(v=S["x-defaultAccessToken"])),v||(y["x-defaultUsername"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Username)?v=y["x-defaultUsername"]:y["x-defaultPassword"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Password)?v=y["x-defaultPassword"]:y["x-defaultClientId"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientId)?v=y["x-defaultClientId"]:y["x-defaultClientSecret"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientSecret)?v=y["x-defaultClientSecret"]:y["x-defaultAccessToken"]&&(v=y["x-defaultAccessToken"]))}return d.add(p.name),{name:p.name,value:p.value||v||"",isSecret:p.isSecret}});return{generatedInputs:d,environments:m9e(u).map(g=>{const p=g.description||g.url,y=Object.entries(g.variables||{}).map(([x,w])=>({name:x,value:w.default||""})),v=d9e(r,p),b=(v==null?void 0:v.inputs.filter(x=>x.value))||[],O=h(g.url),S=g9e(p9e(b,f,O),n==null?void 0:n[p]);return{name:p,inputs:S,servers:[{apiId:t,value:g.url,variables:y}],state:xt.Normal}})}}function h9e(t){var i;const e=[],r=((i=t.security)==null?void 0:i.flat())||[],n=new Set;return r.forEach(o=>{const s=Hx(o);if(n.has(s))return;const a=o.id;n.add(s),(s===ge.BasicAuth||s===ge.DigestAuth)&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Username,!1)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.Password))),s===ge.JWT&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.JWTToken)),s===ge.APIKey&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.APIKey)),s===ge.OAuth2&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Token)),uT(o).forEach(c=>{e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientId)),[me.Implicit,me.ClientCredentialsWithJwtAssertion].includes(c)||e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientSecret)),c===me.ClientCredentialsWithJwtAssertion&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientAssertion))})),s===ge.OpenIDConnect&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Token)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientId)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientSecret)))}),e}function Ji(t,e=!0){return{name:t,value:"",isSecret:e}}function p9e(...t){const e=new Map;for(const r of t)for(const n of r){const i=e.get(n.name);e.set(n.name,{name:n.name,value:n.value||(i==null?void 0:i.value)||"",isSecret:n.isSecret||(i==null?void 0:i.isSecret)||!1})}return Array.from(e.values())}function g9e(t,e){return e?t.map(r=>{const n=e[r.name];return n!==void 0?{...r,value:n}:r}):t}function m9e(t){const r=fIe(q.IS_BROWSER?window.location.href:globalThis.SSR_HOSTNAME||"");t.length===0&&(t=[{url:"/"}]);function n(i){return hIe(r,i)}return t.map(i=>({...i,url:n(i.url),description:i.description||""}))}function dF(t,e,r){if(!t||!t.paths||Object.keys(t.paths).length===0)return{operations:null,error:0};const{operations:n}=y9e(t,e,r);return{operations:n}}function y9e(t,e,r){const n=[];for(const[i,o]of Object.entries(t.paths))for(const[s,a]of Object.entries(o))s!=="parameters"&&s!=="servers"&&s!=="description"&&s!=="summary"&&(a.tags&&a.tags.length>0?a.tags:["Untagged"]).forEach(c=>{const{operation:u}=v9e(i,s,t,c,e,r);u&&n.push(u)});return{operations:n}}function v9e(t,e,r,n,i,o){if(!o)return{operation:null};const s=o(t,e,r);if(!s)return{operation:null};const a=`${r.info.title}/${n}/${s.name}`;return{operation:sIe(s,i,a)}}const fF=(t,e,r)=>t.find(n=>{if(e&&n.operationId===e)return!0;if(r&&n.apiPath){const{path:i,method:o}=LY(r);return n.apiPath.path===i&&n.apiPath.method===o}return!1}),v_=({children:t,settings:e,api:r,activeOperationId:n,activeOperationPointer:i})=>{const o=N.useContext(aT),s=N.useMemo(async()=>{var y,v,b;const a=Qd()?await u9e(e.storageKey):c9e(e.storageKey),{isInitialized:l}=await o.init(a,e.convertOperationToReplayValue);if(!l)return;if(!r){o.environments.length===0&&o.environments.set(nZ);return}const c=jE(r,[]),{operations:u}=dF(r,c,e.convertOperationToReplayValue);if(!(u!=null&&u.length)||!((v=(y=u[0].collectionPath)==null?void 0:y.split("/"))==null?void 0:v[0])||(o.apis.set([{id:c,...r}]),o.predefinedApiId.set(c),!n&&!i))return;const f=fF(u,n,i),{path:h,method:g}=(f==null?void 0:f.apiPath)||{};if(!f||!h||!g)return;const p=(b=e.convertOperationToReplayValue)==null?void 0:b.call(e,h,g,r);p&&hF(o,c,p,e),O9e(o,{apiId:c,path:h,method:g,operationId:f.operationId},p)},[e.storageKey]);return N.useEffect(()=>{if(!r||!e.convertOperationToReplayValue)return;const a=jE(r,[]),{operations:l}=dF(r,a,e.convertOperationToReplayValue);if(!(l!=null&&l.length))return;const c=fF(l,n,i),{path:u,method:d}=(c==null?void 0:c.apiPath)||{};if(!c||!u||!d)return;const f=e.convertOperationToReplayValue(u,d,r);f&&hF(o,a,f,e)},[e.convertOperationToReplayValue,r,n,i,o,e]),m.jsx(N.Suspense,{fallback:m.jsx(o9e,{projectPath:e.storageKey}),children:m.jsx(b9e,{initStore:s,settings:e,api:r,children:t})})};function b9e({initStore:t,children:e,settings:r,api:n}){return N.use(t),_we(r,n),m.jsx(ce.default.Fragment,{children:e},r.storageKey)}const hF=(t,e,r,n)=>{var u,d,f,h,g,p;const i=t.environments.get({noproxy:!0}),{environments:o,generatedInputs:s}=f9e(e,r,i,n.predefinedEnvValues,n.mockServer);t.predefinedInputNames.set(s);let a,l,c;if((u=n.allowedEnvironments)!=null&&u.length){const y=o.filter(v=>{var b;return(b=n.allowedEnvironments)==null?void 0:b.includes(v.name)});a=new Set(y.map(v=>v.name)),l=y,c=((d=l.find(v=>v.name===n.selectedEnvironment))==null?void 0:d.name)||((f=l[0])==null?void 0:f.name)||""}else{a=new Set(o.map(v=>v.name)),l=[...o,...i.filter(v=>!a.has(v.name))];const y=t.activeEnvironmentId.get();c=((h=l.find(v=>v.name===y))==null?void 0:h.name)||((g=l.find(v=>v.name===n.selectedEnvironment))==null?void 0:g.name)||((p=l[0])==null?void 0:p.name)||""}t.predefinedEnvironmentNames.set(a),t.environments.set(l),t.activeEnvironmentId.set(c)},O9e=(t,e,r)=>{const n=t.tabsState.tabs.get().findIndex(({data:i})=>{var o,s,a;return yn(i,Ue.Step)&&((o=i.step.operation)==null?void 0:o.apiId)===e.apiId&&((s=i.step.operation)==null?void 0:s.path)===e.path&&((a=i.step.operation)==null?void 0:a.method)===e.method});if(n!==-1)t.tabsState.activeTabIdx.set(n);else{const i=LH(e,r);t.tabsState.tabs.merge([i]),t.tabsState.activeTabIdx.set(t.tabsState.tabs.length-1)}};function x9e(t){const e=N.useMemo(()=>YE(XY({defaultEnvironments:[]}),Q5(UY(!0))),[]);return m.jsx(m.Fragment,{children:m.jsx(XAe,{value:e,children:m.jsx(Bx.Provider,{value:t.settings,children:m.jsx(v_,{...t,children:m.jsx(tee,{onError:r=>console.error(r),children:m.jsx(S9e,{...t})})})})})})}function S9e(t){return t.settings.disableDraft=!0,m.jsx(N.StrictMode,{children:m.jsxs(w9e,{children:[m.jsx(C9e,{children:m.jsx(ree,{})}),m.jsx(y_,{})]})})}const w9e=R.div`
|
|
3273
|
+
`,l9e=process.env.NODE_ENV==="development";function c9e(t){const e=t||"default";return{id:Fh(ox(e)),systemFilesDir:hc.join("/replay",e),userFilesDir:hc.join("/projects",e)}}async function u9e(t){if(!t)throw new Error("Tauri project: userFilesDir is required");const e=Fh(ox(t)),r=l9e?await Cve():await wve(),n=await Ih(r,"replay",e);return{id:e,systemFilesDir:n,userFilesDir:t}}function jE(t,e){const r=`apis/${t.info.title}`.replace(/\s+/g,"-").toLowerCase();let n;if(!e.some(i=>i.id===`${r}.yaml`))n=r;else{let i=1,o=`${r}-${i}`;for(;e.some(s=>s.id===o);)i++,o=`${r}-${i}`;n=o}return`${n}.yaml`}function d9e(t,e){return t.find(r=>r.name===e)}function f9e(t,e,r,n,i){const{servers:o,parameters:s}=e,a=s.filter(g=>g.in==="path"),l=h9e(e),c=i;let u=[...o];(i==null?void 0:i.position)==="first"?u.unshift(c):(i==null?void 0:i.position)==="last"?u.push(c):(i==null?void 0:i.position)==="replace"&&(u=[c]);const d=new Set,f=a.map(g=>{const p=g.example?String(g.example):"";return d.add(g.name),{name:g.name,value:p,isSecret:!1}}),h=g=>l.map(p=>{var b,O;const y=(b=e.security)==null?void 0:b.flat().find(S=>{const x=S.id;return p.name.startsWith(x)});let v="";if(y){const S=(O=y.serverValues)==null?void 0:O[g];S&&(S["x-defaultUsername"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Username)?v=S["x-defaultUsername"]:S["x-defaultPassword"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Password)?v=S["x-defaultPassword"]:S["x-defaultClientId"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientId)?v=S["x-defaultClientId"]:S["x-defaultClientSecret"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientSecret)?v=S["x-defaultClientSecret"]:S["x-defaultAccessToken"]&&(v=S["x-defaultAccessToken"])),v||(y["x-defaultUsername"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Username)?v=y["x-defaultUsername"]:y["x-defaultPassword"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.Password)?v=y["x-defaultPassword"]:y["x-defaultClientId"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientId)?v=y["x-defaultClientId"]:y["x-defaultClientSecret"]&&p.name.endsWith(q.SecurityVariablesEnvSuffix.ClientSecret)?v=y["x-defaultClientSecret"]:y["x-defaultAccessToken"]&&(v=y["x-defaultAccessToken"]))}return d.add(p.name),{name:p.name,value:p.value||v||"",isSecret:p.isSecret}});return{generatedInputs:d,environments:m9e(u).map(g=>{const p=g.name||g.description||g.url,y=Object.entries(g.variables||{}).map(([x,w])=>({name:x,value:w.default||""})),v=d9e(r,p),b=(v==null?void 0:v.inputs.filter(x=>x.value))||[],O=h(g.url),S=g9e(p9e(b,f,O),n==null?void 0:n[p]);return{name:p,inputs:S,servers:[{apiId:t,value:g.url,variables:y}],state:xt.Normal}})}}function h9e(t){var i;const e=[],r=((i=t.security)==null?void 0:i.flat())||[],n=new Set;return r.forEach(o=>{const s=Hx(o);if(n.has(s))return;const a=o.id;n.add(s),(s===ge.BasicAuth||s===ge.DigestAuth)&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Username,!1)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.Password))),s===ge.JWT&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.JWTToken)),s===ge.APIKey&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.APIKey)),s===ge.OAuth2&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Token)),uT(o).forEach(c=>{e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientId)),[me.Implicit,me.ClientCredentialsWithJwtAssertion].includes(c)||e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientSecret)),c===me.ClientCredentialsWithJwtAssertion&&e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientAssertion))})),s===ge.OpenIDConnect&&(e.push(Ji(a+q.SecurityVariablesEnvSuffix.Token)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientId)),e.push(Ji(a+q.SecurityVariablesEnvSuffix.ClientSecret)))}),e}function Ji(t,e=!0){return{name:t,value:"",isSecret:e}}function p9e(...t){const e=new Map;for(const r of t)for(const n of r){const i=e.get(n.name);e.set(n.name,{name:n.name,value:n.value||(i==null?void 0:i.value)||"",isSecret:n.isSecret||(i==null?void 0:i.isSecret)||!1})}return Array.from(e.values())}function g9e(t,e){return e?t.map(r=>{const n=e[r.name];return n!==void 0?{...r,value:n}:r}):t}function m9e(t){const r=fIe(q.IS_BROWSER?window.location.href:globalThis.SSR_HOSTNAME||"");t.length===0&&(t=[{url:"/"}]);function n(i){return hIe(r,i)}return t.map(i=>({...i,url:n(i.url),description:i.description||""}))}function dF(t,e,r){if(!t||!t.paths||Object.keys(t.paths).length===0)return{operations:null,error:0};const{operations:n}=y9e(t,e,r);return{operations:n}}function y9e(t,e,r){const n=[];for(const[i,o]of Object.entries(t.paths))for(const[s,a]of Object.entries(o))s!=="parameters"&&s!=="servers"&&s!=="description"&&s!=="summary"&&(a.tags&&a.tags.length>0?a.tags:["Untagged"]).forEach(c=>{const{operation:u}=v9e(i,s,t,c,e,r);u&&n.push(u)});return{operations:n}}function v9e(t,e,r,n,i,o){if(!o)return{operation:null};const s=o(t,e,r);if(!s)return{operation:null};const a=`${r.info.title}/${n}/${s.name}`;return{operation:sIe(s,i,a)}}const fF=(t,e,r)=>t.find(n=>{if(e&&n.operationId===e)return!0;if(r&&n.apiPath){const{path:i,method:o}=LY(r);return n.apiPath.path===i&&n.apiPath.method===o}return!1}),v_=({children:t,settings:e,api:r,activeOperationId:n,activeOperationPointer:i})=>{const o=N.useContext(aT),s=N.useMemo(async()=>{var y,v,b;const a=Qd()?await u9e(e.storageKey):c9e(e.storageKey),{isInitialized:l}=await o.init(a,e.convertOperationToReplayValue);if(!l)return;if(!r){o.environments.length===0&&o.environments.set(nZ);return}const c=jE(r,[]),{operations:u}=dF(r,c,e.convertOperationToReplayValue);if(!(u!=null&&u.length)||!((v=(y=u[0].collectionPath)==null?void 0:y.split("/"))==null?void 0:v[0])||(o.apis.set([{id:c,...r}]),o.predefinedApiId.set(c),!n&&!i))return;const f=fF(u,n,i),{path:h,method:g}=(f==null?void 0:f.apiPath)||{};if(!f||!h||!g)return;const p=(b=e.convertOperationToReplayValue)==null?void 0:b.call(e,h,g,r);p&&hF(o,c,p,e),O9e(o,{apiId:c,path:h,method:g,operationId:f.operationId},p)},[e.storageKey]);return N.useEffect(()=>{if(!r||!e.convertOperationToReplayValue)return;const a=jE(r,[]),{operations:l}=dF(r,a,e.convertOperationToReplayValue);if(!(l!=null&&l.length))return;const c=fF(l,n,i),{path:u,method:d}=(c==null?void 0:c.apiPath)||{};if(!c||!u||!d)return;const f=e.convertOperationToReplayValue(u,d,r);f&&hF(o,a,f,e)},[e.convertOperationToReplayValue,r,n,i,o,e]),m.jsx(N.Suspense,{fallback:m.jsx(o9e,{projectPath:e.storageKey}),children:m.jsx(b9e,{initStore:s,settings:e,api:r,children:t})})};function b9e({initStore:t,children:e,settings:r,api:n}){return N.use(t),_we(r,n),m.jsx(ce.default.Fragment,{children:e},r.storageKey)}const hF=(t,e,r,n)=>{var u,d,f,h,g,p;const i=t.environments.get({noproxy:!0}),{environments:o,generatedInputs:s}=f9e(e,r,i,n.predefinedEnvValues,n.mockServer);t.predefinedInputNames.set(s);let a,l,c;if((u=n.allowedEnvironments)!=null&&u.length){const y=o.filter(v=>{var b;return(b=n.allowedEnvironments)==null?void 0:b.includes(v.name)});a=new Set(y.map(v=>v.name)),l=y,c=((d=l.find(v=>v.name===n.selectedEnvironment))==null?void 0:d.name)||((f=l[0])==null?void 0:f.name)||""}else{a=new Set(o.map(v=>v.name)),l=[...o,...i.filter(v=>!a.has(v.name))];const y=t.activeEnvironmentId.get();c=((h=l.find(v=>v.name===y))==null?void 0:h.name)||((g=l.find(v=>v.name===n.selectedEnvironment))==null?void 0:g.name)||((p=l[0])==null?void 0:p.name)||""}t.predefinedEnvironmentNames.set(a),t.environments.set(l),t.activeEnvironmentId.set(c)},O9e=(t,e,r)=>{const n=t.tabsState.tabs.get().findIndex(({data:i})=>{var o,s,a;return yn(i,Ue.Step)&&((o=i.step.operation)==null?void 0:o.apiId)===e.apiId&&((s=i.step.operation)==null?void 0:s.path)===e.path&&((a=i.step.operation)==null?void 0:a.method)===e.method});if(n!==-1)t.tabsState.activeTabIdx.set(n);else{const i=LH(e,r);t.tabsState.tabs.merge([i]),t.tabsState.activeTabIdx.set(t.tabsState.tabs.length-1)}};function x9e(t){const e=N.useMemo(()=>YE(XY({defaultEnvironments:[]}),Q5(UY(!0))),[]);return m.jsx(m.Fragment,{children:m.jsx(XAe,{value:e,children:m.jsx(Bx.Provider,{value:t.settings,children:m.jsx(v_,{...t,children:m.jsx(tee,{onError:r=>console.error(r),children:m.jsx(S9e,{...t})})})})})})}function S9e(t){return t.settings.disableDraft=!0,m.jsx(N.StrictMode,{children:m.jsxs(w9e,{children:[m.jsx(C9e,{children:m.jsx(ree,{})}),m.jsx(y_,{})]})})}const w9e=R.div`
|
|
3274
3274
|
display: flex;
|
|
3275
3275
|
flex-direction: column;
|
|
3276
3276
|
max-height: 80vh;
|