@redocly/replay 0.16.0-next.6 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-index-BkBk1W1e.js → replay-index-BTG8A1Aq.js} +1 -1
- package/dist/{replay-index-BM7tDmsY.js → replay-index-BkGfQlWG.js} +7 -7
- package/dist/{replay-index-CcCJxm7u.js → replay-index-CLfj3LPT.js} +1 -1
- package/dist/{replay-index-CD2VCmQa.js → replay-index-CsnNupCj.js} +1 -1
- package/dist/{replay-index-C6mF8hgF.js → replay-index-CyX-acdG.js} +1 -1
- package/dist/{replay-index-Dny6j88X.js → replay-index-KOqTMJzv.js} +5 -6
- package/dist/{replay-tauri-path-DAvP8U7z.js → replay-tauri-path-B2rb8dEf.js} +2 -2
- package/dist/{replay-tauri-path-D7VqtRs7.js → replay-tauri-path-Tg3w8yAB.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-BkGfQlWG.js");async function n(e={}){return typeof e=="object"&&Object.freeze(e),await t.invoke("plugin:dialog|open",{options:e})}exports.open=n;
|
|
@@ -238,7 +238,7 @@ $3`);return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function gde(t){return t.
|
|
|
238
238
|
`+t.slice(i,o),i=o+1),s=a;return l+=`
|
|
239
239
|
`,t.length-i>e&&s>i?l+=t.slice(i,s)+`
|
|
240
240
|
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}function the(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Pp(t,i),n=_n[r],!n&&zh(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||Upe(r);return e}function rhe(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)),(ca(t,e,a,!1,!1)||typeof a>"u"&&ca(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function aD(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)),(ca(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&ca(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=hP(t,e)),t.dump&&Lh===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=o,t.dump=i||"[]"}function nhe(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)),ca(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ca(t,e,c,!1,!1)&&(u+=t.dump,n+=u));t.tag=i,t.dump="{"+n+"}"}function ihe(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 zn("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)f="",(!n||i!=="")&&(f+=hP(t,e)),c=s[a],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),ca(t,e+1,c,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&Lh===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=hP(t,e)),ca(t,e+1,u,!0,d)&&(t.dump&&Lh===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=o,t.dump=i||"{}"}function lD(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,Cq.call(a.represent)==="[object Function]")n=a.represent(e,l);else if(Pq.call(a.represent,l))n=a.represent[l](e,l);else throw new zn("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}function ca(t,e,r,n,i,o,s){t.tag=null,t.dump=r,lD(t,r,!1)||lD(t,r,!0);var a=Cq.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?(ihe(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(nhe(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?aD(t,e-1,t.dump,i):aD(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(rhe(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Kpe(t,t.dump,e,o,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new zn("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 ohe(t,e){var r=[],n=[],i,o;for(gP(t,r,n),i=0,o=n.length;i<o;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(o)}function gP(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)gP(t[i],e,r);else for(n=Object.keys(t),i=0,o=n.length;i<o;i+=1)gP(t[n[i]],e,r)}function she(t,e){e=e||{};var r=new Zpe(e);r.noRefs||ohe(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),ca(r,0,n,!0,!0)?r.dump+`
|
|
241
|
-
`:""}var ahe=she,lhe={dump:ahe};function PE(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 che=mn,uhe=YW,dhe=eq,Nq=oq,fhe=sq,phe=xE,Dq=Sq.load,hhe=Sq.loadAll,Mq=lhe.dump,mhe=zn,Iu={binary:dq,float:iq,map:KW,null:tq,pairs:pq,set:hq,timestamp:cq,bool:rq,int:nq,merge:uq,omap:fq,seq:JW,str:HW},ghe=PE("safeLoad","load"),yhe=PE("safeLoadAll","loadAll"),vhe=PE("safeDump","dump"),yl={Type:che,Schema:uhe,FAILSAFE_SCHEMA:dhe,JSON_SCHEMA:Nq,CORE_SCHEMA:fhe,DEFAULT_SCHEMA:phe,load:Dq,loadAll:hhe,dump:Mq,YAMLException:mhe,types:Iu,safeLoad:ghe,safeLoadAll:yhe,safeDump:vhe};class cD{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 hi(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var Ab;(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"})(Ab||(Ab={}));async function bhe(){return hi("plugin:path|resolve_directory",{directory:Ab.AppData})}async function Ohe(){return hi("plugin:path|resolve_directory",{directory:Ab.Desktop})}function Lq(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function xhe(...t){return hi("plugin:path|resolve",{paths:t})}async function Up(...t){return hi("plugin:path|join",{paths:t})}async function Qq(t,e){return hi("plugin:path|basename",{path:t,ext:e})}async function whe(t){return hi("plugin:path|is_absolute",{path:t})}var uD;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(uD||(uD={}));async function dD(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await hi("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function zq(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await hi("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function She(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await hi("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 $E(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await hi("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Che(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await hi("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Phe(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await hi("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function Vq(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await hi("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function mf(){return!!(window!=null&&window.__TAURI__)}const Ko=class Ko{static async getUtils(){return Ko.utils||(Ko.utils=mf()?await Promise.resolve().then(()=>require("./replay-tauri-path-
|
|
241
|
+
`:""}var ahe=she,lhe={dump:ahe};function PE(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 che=mn,uhe=YW,dhe=eq,Nq=oq,fhe=sq,phe=xE,Dq=Sq.load,hhe=Sq.loadAll,Mq=lhe.dump,mhe=zn,Iu={binary:dq,float:iq,map:KW,null:tq,pairs:pq,set:hq,timestamp:cq,bool:rq,int:nq,merge:uq,omap:fq,seq:JW,str:HW},ghe=PE("safeLoad","load"),yhe=PE("safeLoadAll","loadAll"),vhe=PE("safeDump","dump"),yl={Type:che,Schema:uhe,FAILSAFE_SCHEMA:dhe,JSON_SCHEMA:Nq,CORE_SCHEMA:fhe,DEFAULT_SCHEMA:phe,load:Dq,loadAll:hhe,dump:Mq,YAMLException:mhe,types:Iu,safeLoad:ghe,safeLoadAll:yhe,safeDump:vhe};class cD{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 hi(t,e={},r){return window.__TAURI_INTERNALS__.invoke(t,e,r)}var Ab;(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"})(Ab||(Ab={}));async function bhe(){return hi("plugin:path|resolve_directory",{directory:Ab.AppData})}async function Ohe(){return hi("plugin:path|resolve_directory",{directory:Ab.Desktop})}function Lq(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function xhe(...t){return hi("plugin:path|resolve",{paths:t})}async function Up(...t){return hi("plugin:path|join",{paths:t})}async function Qq(t,e){return hi("plugin:path|basename",{path:t,ext:e})}async function whe(t){return hi("plugin:path|is_absolute",{path:t})}var uD;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(uD||(uD={}));async function dD(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await hi("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function zq(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await hi("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function She(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=await hi("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 $E(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await hi("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function Che(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await hi("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Phe(t,e,r){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await hi("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:r})}async function Vq(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await hi("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}function mf(){return!!(window!=null&&window.__TAURI__)}const Ko=class Ko{static async getUtils(){return Ko.utils||(Ko.utils=mf()?await Promise.resolve().then(()=>require("./replay-tauri-path-Tg3w8yAB.js")):await Promise.resolve().then(()=>vRe)),Ko.utils}static async join(...e){return(await Ko.getUtils()).join(...e)}static async resolve(e){return(await Ko.getUtils()).resolve(e)}static async isAbsolute(e){return(await Ko.getUtils()).isAbsolute(e)}static async relative(e,r){return(await Ko.getUtils()).relative(e,r)}};ue(Ko,"utils",null);let $i=Ko;class fD{constructor(e){this.baseDir=e,this.initializeDirectory(e)}async initializeDirectory(e){await dD(e,{recursive:!0})}async ls(e){const r=await this.getFullPath(e);return this.getDirEntryFilesRecursively(r)}async getDirEntryFilesRecursively(e){try{const r=[],n=await zq(e);for(const i of n)if(i.isDirectory){const o=await Up(e,i.name),s=await this.getDirEntryFilesRecursively(o);r.push(...s)}else{const o=await Up(e,i.name),s=await $i.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 $E(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=Lq(),o=n.split(i).slice(0,-1).join(i);await dD(o,{recursive:!0}),await Phe(n,r)}async remove(e){const r=await this.getFullPath(e);try{await Che(r)}catch(n){!n.includes("No such file or directory")&&!n.includes("forbidden path")&&console.error(n)}}async getFullPath(e){return await Up(this.baseDir,e??"")}}class $he{constructor(){ue(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,r){}async remove(e){}}class khe{constructor(e,r){ue(this,"default",XW);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=yl.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:Ot.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",yl.dump(i))}}var Ehe=Object.prototype.hasOwnProperty,Ihe=Object.prototype.toString,Ahe=function(e,r,n){if(Ihe.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o<i;o++)r.call(n,e[o],o,e);else for(var s in e)Ehe.call(e,s)&&r.call(n,e[s],s,e)},The=Ahe,_he=Ht;function Ht(t,e,r){if(arguments.length===3)return Ht.set(t,e,r);if(arguments.length===2)return Ht.get(t,e);var n=Ht.bind(Ht,t);for(var i in Ht)Ht.hasOwnProperty(i)&&(n[i]=Ht[i].bind(n,t));return n}Ht.get=function(e,r){for(var n=Array.isArray(r)?r:Ht.parse(r),i=0;i<n.length;++i){var o=n[i];if(!(typeof e=="object"&&o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e};Ht.set=function(e,r,n){var i=Array.isArray(r)?r:Ht.parse(r),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var s=0;s<i.length-1;++s){var a=i[s];typeof a!="string"&&typeof a!="number"&&(a=String(a)),!(a==="__proto__"||a==="constructor"||a==="prototype")&&(a==="-"&&Array.isArray(e)&&(a=e.length),o=i[s+1],a in e||(o.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return o==="-"&&Array.isArray(e)&&(o=e.length),e[o]=n,this};Ht.remove=function(t,e){var r=Array.isArray(e)?e:Ht.parse(e),n=r[r.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var i=Ht.get(t,r.slice(0,-1));if(Array.isArray(i)){var o=+n;if(n===""&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(i,o,1)}else delete i[n]};Ht.dict=function(e,r){var n={};return Ht.walk(e,function(i,o){n[o]=i},r),n};Ht.walk=function(e,r,n){var i=[];n=n||function(o){var s=Object.prototype.toString.call(o);return s==="[object Object]"||s==="[object Array]"},function o(s){The(s,function(a,l){i.push(String(l)),n(a)?o(a):r(a,Ht.compile(i)),i.pop()})}(e)};Ht.has=function(e,r){try{Ht.get(e,r)}catch{return!1}return!0};Ht.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Ht.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};Ht.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(Ht.unescape)};Ht.compile=function(e){return e.length===0?"":"/"+e.map(Ht.escape).join("/")};const kE=pi(_he);async function bm(t){try{const e=await She(t),r=await Qq(t);return{absolutePath:t,file:new File([e],r)}}catch(e){return console.error("Failed to init replay file",e),null}}async function Bq(t){return(await Promise.allSettled(t.map(r=>bm(r)))).map(r=>r.status==="fulfilled"?r.value:null).filter(r=>r!==null)}function Fq(t,e,r){for(const n of r){const i=pD(t,n),o=pD(e,n);if(typeof i=="object"&&typeof o=="object"){if(!Fq(i,o,r))return!1}else if(i!==o)return!1}return!0}function pD(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 Wq={exports:{}};/*!
|
|
242
242
|
Copyright (c) 2018 Jed Watson.
|
|
243
243
|
Licensed under the MIT License (MIT), see
|
|
244
244
|
http://jedwatson.github.io/classnames
|
|
@@ -341,7 +341,7 @@ html body {
|
|
|
341
341
|
align-self: flex-end;
|
|
342
342
|
padding-top: var(--spacing-xxs);
|
|
343
343
|
gap: var(--spacing-xs);
|
|
344
|
-
`;function xm({input:t,onSave:e,onCancel:r,...n}){const[i,o]=R.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return h.jsx(EU,{variable:t,onSave:s,onCancel:r,...n,children:h.jsx(Wh,{children:h.jsx(wge,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function iv(t){var e=new Error(t);return e.source="ulid",e}var DE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Xp=DE.length,zD=Math.pow(2,48)-1,Ige=10,Age=16;function Tge(t){var e=Math.floor(t()*Xp);return e===Xp&&(e=Xp-1),DE.charAt(e)}function _ge(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>zD)throw iv("cannot encode time greater than "+zD);if(t<0)throw iv("time must be positive");if(Number.isInteger(t)===!1)throw iv("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Xp,n=DE.charAt(r)+n,t=(t-r)/Xp;return n}function jge(t,e){for(var r="";t>0;t--)r=Tge(e)+r;return r}function Rge(){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 iv("secure crypto unusable, insecure Math.random not allowed")}function Nge(t){return t||(t=Rge()),function(r){return isNaN(r)&&(r=Date.now()),_ge(r,Ige)+jge(Age,t)}}var Mb=Nge(),Dge=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},nc="1.9.0",VD=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Mge(t){var e=new Set([t]),r=new Set,n=t.match(VD);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(VD);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 Lge=Mge(nc),Qge=nc.split(".")[0],qh=Symbol.for("opentelemetry.js.api."+Qge),Uh=Dge;function wm(t,e,r,n){var i;n===void 0&&(n=!1);var o=Uh[qh]=(i=Uh[qh])!==null&&i!==void 0?i:{version:nc};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!==nc){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+nc);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+nc+"."),!0}function Cc(t){var e,r,n=(e=Uh[qh])===null||e===void 0?void 0:e.version;if(!(!n||!Lge(n)))return(r=Uh[qh])===null||r===void 0?void 0:r[t]}function Sm(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+nc+".");var r=Uh[qh];r&&delete r[t]}var zge=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},Vge=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))},Bge=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 Jf("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("verbose",this._namespace,e)},t}();function Jf(t,e,r){var n=Cc("diag");if(n)return r.unshift(e),n[t].apply(n,Vge([],zge(r),!1))}var wi;(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"})(wi||(wi={}));function Fge(t,e){t<wi.NONE?t=wi.NONE:t>wi.ALL&&(t=wi.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",wi.ERROR),warn:r("warn",wi.WARN),info:r("info",wi.INFO),debug:r("debug",wi.DEBUG),verbose:r("verbose",wi.VERBOSE)}}var Wge=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},qge=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))},Uge="diag",Ps=function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Cc("diag");if(a)return a[i].apply(a,qge([],Wge(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:wi.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=Cc("diag"),d=Fge((a=o.logLevel)!==null&&a!==void 0?a:wi.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 wm("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Sm(Uge,r)},r.createComponentLogger=function(i){return new Bge(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}(),Xge=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},Zge=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.")},Gge=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=Xge(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=Zge(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}(),Yge=Symbol("BaggageEntryMetadata"),Hge=Ps.instance();function Jge(t){return t===void 0&&(t={}),new Gge(new Map(Object.entries(t)))}function Kge(t){return typeof t!="string"&&(Hge.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Yge,toString:function(){return t}}}function ME(t){return Symbol.for(t)}var eye=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}(),Au=new eye,Bc=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)}}(),tye=function(){function t(){}return t.prototype.createGauge=function(e,r){return dye},t.prototype.createHistogram=function(e,r){return fye},t.prototype.createCounter=function(e,r){return uye},t.prototype.createUpDownCounter=function(e,r){return pye},t.prototype.createObservableGauge=function(e,r){return mye},t.prototype.createObservableCounter=function(e,r){return hye},t.prototype.createObservableUpDownCounter=function(e,r){return gye},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t}(),j0=function(){function t(){}return t}(),rye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(j0),nye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(j0),iye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(j0),oye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(j0),LE=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),sye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(LE),aye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(LE),lye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(LE),cye=new tye,uye=new rye,dye=new iye,fye=new oye,pye=new nye,hye=new sye,mye=new aye,gye=new lye,yye={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},vye={set:function(t,e,r){t!=null&&(t[e]=r)}},bye=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},Oye=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))},xye=function(){function t(){}return t.prototype.active=function(){return Au},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,Oye([n],bye(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),wye=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},Sye=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))},cS="context",Cye=new xye,R0=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return wm(cS,e,Ps.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,Sye([e,r,n],wye(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return Cc(cS)||Cye},t.prototype.disable=function(){this._getContextManager().disable(),Sm(cS,Ps.instance())},t}(),ua;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(ua||(ua={}));var IU="0000000000000000",AU="00000000000000000000000000000000",TU={traceId:AU,spanId:IU,traceFlags:ua.NONE},Zp=function(){function t(e){e===void 0&&(e=TU),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}(),QE=ME("OpenTelemetry Context Key SPAN");function zE(t){return t.getValue(QE)||void 0}function Pye(){return zE(R0.getInstance().active())}function VE(t,e){return t.setValue(QE,e)}function $ye(t){return t.deleteValue(QE)}function kye(t,e){return VE(t,new Zp(e))}function _U(t){var e;return(e=zE(t))===null||e===void 0?void 0:e.spanContext()}var Eye=/^([0-9a-f]{32})$/i,Iye=/^[0-9a-f]{16}$/i;function jU(t){return Eye.test(t)&&t!==AU}function Aye(t){return Iye.test(t)&&t!==IU}function N0(t){return jU(t.traceId)&&Aye(t.spanId)}function Tye(t){return new Zp(t)}var uS=R0.getInstance(),RU=function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=uS.active());var i=!!(r!=null&&r.root);if(i)return new Zp;var o=n&&_U(n);return _ye(o)&&N0(o)?new Zp(o):new Zp},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??uS.active(),c=this.startSpan(e,o,l),u=VE(l,c);return uS.with(u,a,void 0,c)}},t}();function _ye(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var jye=new RU,Rye=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):jye},t}(),Nye=function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new RU},t}(),Dye=new Nye,BD=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 Rye(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Dye},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}(),Lb;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Lb||(Lb={}));var _P;(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"})(_P||(_P={}));var jP;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(jP||(jP={}));var sl=R0.getInstance(),Nt=Ps.instance(),Mye=function(){function t(){}return t.prototype.getMeter=function(e,r,n){return cye},t}(),Lye=new Mye,dS="metrics",Qye=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return wm(dS,e,Ps.instance())},t.prototype.getMeterProvider=function(){return Cc(dS)||Lye},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Sm(dS,Ps.instance())},t}(),zye=Qye.getInstance(),Vye=function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t}(),BE=ME("OpenTelemetry Baggage Key");function NU(t){return t.getValue(BE)||void 0}function Bye(){return NU(R0.getInstance().active())}function Fye(t,e){return t.setValue(BE,e)}function Wye(t){return t.deleteValue(BE)}var fS="propagation",qye=new Vye,Uye=function(){function t(){this.createBaggage=Jge,this.getBaggage=NU,this.getActiveBaggage=Bye,this.setBaggage=Fye,this.deleteBaggage=Wye}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return wm(fS,e,Ps.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=vye),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=yye),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Sm(fS,Ps.instance())},t.prototype._getGlobalPropagator=function(){return Cc(fS)||qye},t}(),Gp=Uye.getInstance(),pS="trace",Xye=function(){function t(){this._proxyTracerProvider=new BD,this.wrapSpanContext=Tye,this.isSpanContextValid=N0,this.deleteSpan=$ye,this.getSpan=zE,this.getActiveSpan=Pye,this.getSpanContext=_U,this.setSpan=VE,this.setSpanContext=kye}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=wm(pS,this._proxyTracerProvider,Ps.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return Cc(pS)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Sm(pS,Ps.instance()),this._proxyTracerProvider=new BD},t}(),Yi=Xye.getInstance();const DU=ME("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Zye(t){return t.setValue(DU,!0)}function FE(t){return t.getValue(DU)===!0}const Gye="=",RP=";",NP=",",hS="baggage",Yye=180,Hye=4096,Jye=8192;function Kye(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?NP:""}${r}`;return n.length>Jye?e:n},"")}function eve(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=RP+r.metadata.toString()),n})}function tve(t){const e=t.split(RP);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(Gye);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=Kge(e.join(RP))),{key:i,value:o,metadata:s}}class rve{inject(e,r,n){const i=Gp.getBaggage(e);if(!i||FE(e))return;const o=eve(i).filter(a=>a.length<=Hye).slice(0,Yye),s=Kye(o);s.length>0&&n.set(r,hS,s)}extract(e,r,n){const i=n.get(r,hS),o=Array.isArray(i)?i.join(NP):i;if(!o)return e;const s={};return o.length===0||(o.split(NP).forEach(l=>{const c=tve(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Gp.setBaggage(e,Gp.createBaggage(s))}fields(){return[hS]}}function ov(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!nve(r)){Nt.warn(`Invalid attribute key: ${r}`);continue}if(!MU(n)){Nt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function nve(t){return typeof t=="string"&&t.length>0}function MU(t){return t==null?!0:Array.isArray(t)?ive(t):LU(t)}function ive(t){let e;for(const r of t)if(r!=null){if(!e){if(LU(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function LU(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function ove(){return t=>{Nt.error(sve(t))}}function sve(t){return typeof t=="string"?t:JSON.stringify(ave(t))}function ave(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 lve=ove();function zd(t){try{lve(t)}catch{}}const sd=performance,cve="2.0.1",mS="exception.message",uve="exception.stacktrace",gS="exception.type",QU="service.name",dve="service.version",DP="telemetry.sdk.language",fve="webjs",MP="telemetry.sdk.name",LP="telemetry.sdk.version",pve="process.runtime.name",yS={[MP]:"opentelemetry",[pve]:"browser",[DP]:fve,[LP]:cve};const hve=9,mve=6,gve=Math.pow(10,mve),Qb=Math.pow(10,hve);function qu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*gve);return[r,n]}function zU(){let t=sd.timeOrigin;if(typeof t!="number"){const e=sd;t=e.timing&&e.timing.fetchStart}return t}function yve(t){const e=qu(zU()),r=qu(typeof t=="number"?t:sd.now());return BU(e,r)}function vve(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=Qb),[r,n]}function bve(t){return t[0]*Qb+t[1]}function VU(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function FD(t){return VU(t)||typeof t=="number"||t instanceof Date}function BU(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=Qb&&(r[1]-=Qb,r[0]+=1),r}var es;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(es||(es={}));class Ove{constructor(e={}){ue(this,"_propagators");ue(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){Nt.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){Nt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const QP="[_0-9a-z-*/]",xve=`[a-z]${QP}{0,255}`,wve=`[a-z0-9]${QP}{0,240}@[a-z]${QP}{0,13}`,Sve=new RegExp(`^(?:${xve}|${wve})$`),Cve=/^[ -~]{0,255}[!-~]$/,Pve=/,|=/;function $ve(t){return Sve.test(t)}function kve(t){return Cve.test(t)&&!Pve.test(t)}const WD=32,Eve=512,qD=",",UD="=";class WE{constructor(e){ue(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+UD+this.get(r)),e),[]).join(qD)}_parse(e){e.length>Eve||(this._internalState=e.split(qD).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(UD);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);$ve(s)&&kve(a)&&r.set(s,a)}return r},new Map),this._internalState.size>WD&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,WD))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new WE;return e._internalState=new Map(this._internalState),e}}const vS="traceparent",bS="tracestate",Ive="00",Ave="(?!ff)[\\da-f]{2}",Tve="(?![0]{32})[\\da-f]{32}",_ve="(?![0]{16})[\\da-f]{16}",jve="[\\da-f]{2}",Rve=new RegExp(`^\\s?(${Ave})-(${Tve})-(${_ve})-(${jve})(-.*)?\\s?$`);function Nve(t){const e=Rve.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Dve{inject(e,r,n){const i=Yi.getSpanContext(e);if(!i||FE(e)||!N0(i))return;const o=`${Ive}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||ua.NONE).toString(16)}`;n.set(r,vS,o),i.traceState&&n.set(r,bS,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,vS);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Nve(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,bS);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new WE(typeof l=="string"?l:void 0)}return Yi.setSpanContext(e,s)}fields(){return[vS,bS]}}const Mve="[object Object]",Lve="[object Null]",Qve="[object Undefined]",zve=Function.prototype,FU=zve.toString,Vve=FU.call(Object),Bve=Object.getPrototypeOf,WU=Object.prototype,qU=WU.hasOwnProperty,Fl=Symbol?Symbol.toStringTag:void 0,UU=WU.toString;function XD(t){if(!Fve(t)||Wve(t)!==Mve)return!1;const e=Bve(t);if(e===null)return!0;const r=qU.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&FU.call(r)===Vve}function Fve(t){return t!=null&&typeof t=="object"}function Wve(t){return t==null?t===void 0?Qve:Lve:Fl&&Fl in Object(t)?qve(t):Uve(t)}function qve(t){const e=qU.call(t,Fl),r=t[Fl];let n=!1;try{t[Fl]=void 0,n=!0}catch{}const i=UU.call(t);return n&&(e?t[Fl]=r:delete t[Fl]),i}function Uve(t){return UU.call(t)}const Xve=20;function Zve(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=XU(e,t.shift(),0,r);return e}function OS(t){return zb(t)?t.slice():t}function XU(t,e,r=0,n){let i;if(!(r>Xve)){if(r++,sv(t)||sv(e)||ZU(e))i=OS(e);else if(zb(t)){if(i=t.slice(),zb(e))for(let o=0,s=e.length;o<s;o++)i.push(OS(e[o]));else if(Kf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=OS(e[l])}}}else if(Kf(t))if(Kf(e)){if(!Gve(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(sv(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(ZD(t,l,n)||ZD(e,l,n))delete i[l];else{if(Kf(u)&&Kf(d)){const f=n.get(u)||[],p=n.get(d)||[];f.push({obj:t,key:l}),p.push({obj:e,key:l}),n.set(u,f),n.set(d,p)}i[l]=XU(i[l],c,r,n)}}}}else i=e;return i}}function ZD(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 zb(t){return Array.isArray(t)}function ZU(t){return typeof t=="function"}function Kf(t){return!sv(t)&&!zb(t)&&!ZU(t)&&typeof t=="object"}function sv(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Gve(t,e){return!(!XD(t)||!XD(e))}class Yve{constructor(){ue(this,"_promise");ue(this,"_resolve");ue(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 Hve{constructor(e,r){ue(this,"_callback");ue(this,"_that");ue(this,"_isCalled",!1);ue(this,"_deferred",new Yve);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 Jve(){return"unknown_service"}const $p=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class Vb{constructor(e){ue(this,"_rawAttributes");ue(this,"_asyncAttributesPending",!1);ue(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>($p(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=GD(this._rawAttributes)}static FromAttributeList(e){const r=new Vb({});return r._rawAttributes=GD(e),r._asyncAttributesPending=e.filter(([n,i])=>$p(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,$p(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Nt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if($p(n)){Nt.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:Vb.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function GU(t){return Vb.FromAttributeList(Object.entries(t))}function Kve(){return GU({[QU]:Jve(),[DP]:yS[DP],[MP]:yS[MP],[LP]:yS[LP]})}function GD(t){return t.map(([e,r])=>$p(r)?[e,r.catch(n=>{Nt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const ebe="exception";class tbe{constructor(e){ue(this,"_spanContext");ue(this,"kind");ue(this,"parentSpanContext");ue(this,"attributes",{});ue(this,"links",[]);ue(this,"events",[]);ue(this,"startTime");ue(this,"resource");ue(this,"instrumentationScope");ue(this,"_droppedAttributesCount",0);ue(this,"_droppedEventsCount",0);ue(this,"_droppedLinksCount",0);ue(this,"name");ue(this,"status",{code:jP.UNSET});ue(this,"endTime",[0,0]);ue(this,"_ended",!1);ue(this,"_duration",[-1,-1]);ue(this,"_spanProcessor");ue(this,"_spanLimits");ue(this,"_attributeValueLengthLimit");ue(this,"_performanceStartTime");ue(this,"_performanceOffset");ue(this,"_startTimeProvided");const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=sd.now(),this._performanceOffset=r-(this._performanceStartTime+zU()),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 Nt.warn(`Invalid attribute key: ${e}`),this;if(!MU(r))return Nt.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 Nt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Nt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),FD(r)&&(FD(n)||(n=r),r=void 0);const o=ov(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"&&(Nt.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()){Nt.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=vve(this.startTime,this.endTime),this._duration[0]<0&&(Nt.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&&Nt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=sd.now())return yve(e+this._performanceOffset);if(typeof e=="number")return qu(e);if(e instanceof Date)return qu(e.getTime());if(VU(e))return e;if(this._startTimeProvided)return qu(Date.now());const r=sd.now()-this._performanceStartTime;return BU(this.startTime,qu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[mS]=e:e&&(e.code?n[gS]=e.code.toString():e.name&&(n[gS]=e.name),e.message&&(n[mS]=e.message),e.stack&&(n[uve]=e.stack)),n[gS]||n[mS]?this.addEvent(ebe,n,r):Nt.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}}`);Nt.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?(Nt.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 Vd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Vd||(Vd={}));class Bb{shouldSample(){return{decision:Vd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class ad{shouldSample(){return{decision:Vd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Jg{constructor(e){ue(this,"_root");ue(this,"_remoteParentSampled");ue(this,"_remoteParentNotSampled");ue(this,"_localParentSampled");ue(this,"_localParentNotSampled");this._root=e.root,this._root||(zd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ad),this._remoteParentSampled=e.remoteParentSampled??new ad,this._remoteParentNotSampled=e.remoteParentNotSampled??new Bb,this._localParentSampled=e.localParentSampled??new ad,this._localParentNotSampled=e.localParentNotSampled??new Bb}shouldSample(e,r,n,i,o,s){const a=Yi.getSpanContext(e);return!a||!N0(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&ua.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&ua.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 YD{constructor(e=0){ue(this,"_ratio");ue(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:jU(r)&&this._accumulate(r)<this._upperBound?Vd.RECORD_AND_SAMPLED:Vd.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 HD=1;function YU(){return{sampler:HU(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function HU(){const t="parentbased_always_on";switch(t){case"always_on":return new ad;case"always_off":return new Bb;case"parentbased_always_on":return new Jg({root:new ad});case"parentbased_always_off":return new Jg({root:new Bb});case"traceidratio":return new YD(JD());case"parentbased_traceidratio":return new Jg({root:new YD(JD())});default:return Nt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Jg({root:new ad})}}function JD(){return Nt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${HD}.`),HD}const rbe=128,nbe=1/0;function ibe(t){const e={sampler:HU()},r=YU(),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 obe(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??rbe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??nbe,Object.assign({},t,{spanLimits:e})}class sbe{constructor(e,r){ue(this,"_exporter");ue(this,"_maxExportBatchSize");ue(this,"_maxQueueSize");ue(this,"_scheduledDelayMillis");ue(this,"_exportTimeoutMillis");ue(this,"_isExporting",!1);ue(this,"_finishedSpans",[]);ue(this,"_timer");ue(this,"_shutdownOnce");ue(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 Hve(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Nt.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&ua.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&&Nt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Nt.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);sl.with(Zye(sl.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===es.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=>{zd(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,zd(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 abe extends sbe{constructor(r,n){super(r,n);ue(this,"_visibilityChangeListener");ue(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=>{zd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{zd(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 lbe=8,cbe=16;class ube{constructor(){ue(this,"generateTraceId",KD(cbe));ue(this,"generateSpanId",KD(lbe))}}const Kg=Array(32);function KD(t){return function(){for(let r=0;r<t*2;r++)Kg[r]=Math.floor(Math.random()*16)+48,Kg[r]>=58&&(Kg[r]+=39);return String.fromCharCode.apply(null,Kg.slice(0,t*2))}}class dbe{constructor(e,r,n,i){ue(this,"_sampler");ue(this,"_generalLimits");ue(this,"_spanLimits");ue(this,"_idGenerator");ue(this,"instrumentationScope");ue(this,"_resource");ue(this,"_spanProcessor");const o=ibe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new ube,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=sl.active()){r.root&&(n=Yi.deleteSpan(n));const i=Yi.getSpan(n);if(FE(n))return Nt.debug("Instrumentation suppressed, returning Noop Span"),Yi.wrapSpanContext(TU);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!Yi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??_P.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:ov(b.attributes)})),f=ov(r.attributes),p=this._sampler.shouldSample(n,l,e,u,f,d);c=p.traceState??c;const g=p.decision===Lb.RECORD_AND_SAMPLED?ua.SAMPLED:ua.NONE,m={traceId:l,spanId:s,traceFlags:g,traceState:c};if(p.decision===Lb.NOT_RECORD)return Nt.debug("Recording is off, propagating context in a non-recording span"),Yi.wrapSpanContext(m);const y=ov(Object.assign(f,p.attributes));return new tbe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:m,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??sl.active(),c=this.startSpan(e,o,l),u=Yi.setSpan(l,c);return sl.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class fbe{constructor(e){ue(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=>{zd(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 Wl;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Wl||(Wl={}));class pbe{constructor(e={}){ue(this,"_config");ue(this,"_tracers",new Map);ue(this,"_resource");ue(this,"_activeSpanProcessor");var i;const r=Zve({},YU(),obe(e));this._resource=r.resource??Kve(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new fbe(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 dbe({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=Wl.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==Wl.timeout&&(o=Wl.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Wl.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==Wl.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class hbe{constructor(){ue(this,"_enabled",!1);ue(this,"_currentContext",Au)}_bindFunction(e=Au,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=Au,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Au,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||Au;try{return r.call(n,...i)}finally{this._currentContext=o}}}function mbe(t){if(t!==null){if(t===void 0){const e=new hbe;e.enable(),sl.setGlobalContextManager(e);return}t.enable(),sl.setGlobalContextManager(t)}}function gbe(t){if(t!==null){if(t===void 0){Gp.setGlobalPropagator(new Ove({propagators:[new Dve,new rve]}));return}Gp.setGlobalPropagator(t)}}class ybe extends pbe{constructor(e={}){super(e)}register(e={}){Yi.setGlobalTracerProvider(this),gbe(e.propagator),mbe(e.contextManager)}}class vbe{constructor(e){ue(this,"_delegate");this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class eM extends Error{constructor(r,n,i){super(r);ue(this,"code");ue(this,"name","OTLPExporterError");ue(this,"data");this.data=i,this.code=n}}function bbe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Obe(t){if(t!=null)return()=>t}function xbe(t,e,r){return{timeoutMillis:bbe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function wbe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Sbe{constructor(e){ue(this,"_concurrencyLimit");ue(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 Cbe(t){return new Sbe(t.concurrencyLimit)}function Pbe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function $be(){return{handleResponse(t){t==null||!Pbe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Nt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class kbe{constructor(e,r,n,i,o){ue(this,"_transport");ue(this,"_serializer");ue(this,"_responseHandler");ue(this,"_promiseQueue");ue(this,"_timeout");ue(this,"_diagLogger");this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=Nt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:es.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:es.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:es.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:es.FAILED,error:i.error});return}else i.status==="retryable"?r({code:es.FAILED,error:new eM("Export failed with retryable status")}):r({code:es.FAILED,error:new eM("Export failed with unknown error")})},i=>r({code:es.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Ebe(t,e){return new kbe(t.transport,t.serializer,$be(),t.promiseHandler,e.timeout)}function JU(t,e,r){return Ebe({transport:r,serializer:e,promiseHandler:Cbe(t)},{timeout:t.timeoutMillis})}function tM(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function KU(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=tM(t.charCodeAt(n)),o=tM(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function e4(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Ibe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Abe(t){const e=e4(t);return Ibe(e)}function Tbe(t){return e4(t).toString()}const _be=typeof BigInt<"u"?Tbe:bve;function rM(t){return t}function jbe(t){if(t!==void 0)return KU(t)}const Rbe={encodeHrTime:Abe,encodeSpanContext:KU,encodeOptionalSpanContext:jbe};function Nbe(t){return t===void 0?Rbe:{encodeHrTime:_be,encodeSpanContext:rM,encodeOptionalSpanContext:rM}}function Dbe(t){return{attributes:D0(t.attributes),droppedAttributesCount:0}}function Mbe(t){return{name:t.name,version:t.version}}function D0(t){return Object.keys(t).map(e=>t4(e,t[e]))}function t4(t,e){return{key:t,value:r4(e)}}function r4(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(r4)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>t4(r,n))}}:{}}function Lbe(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:D0(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>zbe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>Qbe(l,e)),droppedLinksCount:t.droppedLinksCount}}function Qbe(t,e){var r;return{attributes:t.attributes?D0(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 zbe(t,e){return{attributes:t.attributes?D0(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Vbe(t,e){const r=Nbe(e);return{resourceSpans:Fbe(t,r)}}function Bbe(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 Fbe(t,e){const r=Bbe(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 p=f.map(g=>Lbe(g,e));l.push({scope:Mbe(f[0].instrumentationScope),spans:p,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Dbe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const Wbe={serializeRequest:t=>{const e=Vbe(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))}},qbe=5,Ube=1e3,Xbe=5e3,Zbe=1.5,nM=.2;function Gbe(){return Math.random()*(2*nM)-nM}class Ybe{constructor(e){ue(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=qbe,s=Ube;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,Xbe)+Gbe(),0);s=s*Zbe;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 n4(t){return new Ybe(t.transport)}function Hbe(t){return[429,502,503,504].includes(t)}function Jbe(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 Kbe{constructor(e){ue(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?(Nt.debug("XHR success"),n({status:"success"})):i.status&&Hbe(i.status)?n({status:"retryable",retryInMillis:Jbe(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 eOe(t){return new Kbe(t)}class tOe{constructor(e){ue(this,"_params");this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Nt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function rOe(t){return new tOe(t)}function nOe(t,e){return JU(t,e,n4({transport:eOe(t)}))}function iOe(t,e){return JU(t,e,n4({transport:rOe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function oOe(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Nt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function sOe(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 aOe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function lOe(t,e,r){return{...xbe(t,e,r),headers:sOe(oOe(t.headers),e.headers,r.headers),url:aOe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function cOe(t,e){return{...wbe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function uOe(t,e,r){return lOe({url:t.url,timeoutMillis:t.timeoutMillis,headers:Obe(t.headers),concurrencyLimit:t.concurrencyLimit},{},cOe(r,e))}function dOe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=uOe(t,r,n);return i?nOe(o,e):iOe(o,e)}class fOe extends vbe{constructor(e={}){super(dOe(e,Wbe,"v1/traces",{"Content-Type":"application/json"}))}}class i4{emit(e){}}const pOe=new i4;class hOe{getLogger(e,r,n){return new i4}}const o4=new hOe;class mOe{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):pOe}}class iM{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new mOe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:o4}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 gOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},ey=Symbol.for("io.opentelemetry.js.api.logs"),ep=gOe;function yOe(t,e,r){return n=>n===t?e:r}const oM=1;class qE{constructor(){this._proxyLoggerProvider=new iM}static getInstance(){return this._instance||(this._instance=new qE),this._instance}setGlobalLoggerProvider(e){return ep[ey]?this.getLoggerProvider():(ep[ey]=yOe(oM,e,o4),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=ep[ey])===null||e===void 0?void 0:e.call(ep,oM))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete ep[ey],this._proxyLoggerProvider=new iM}}const vOe=qE.getInstance();function bOe(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 OOe(t){t.forEach(e=>e.disable())}function xOe(t){var o;const e=t.tracerProvider||Yi.getTracerProvider(),r=t.meterProvider||zye.getMeterProvider(),n=t.loggerProvider||vOe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return bOe(i,e,r,n),()=>{OOe(i)}}class wOe{constructor(){ue(this,"config",null);ue(this,"tracer",null);ue(this,"tracerProvider",null);ue(this,"initialized",!1);ue(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":Mb(),"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 p=f.object;if(!p||typeof p!="string")return d;const g=d.notUpdated.find(({object:m})=>m===p);return g?(d.updated=[g,f],d.notUpdated=d.notUpdated.filter(({object:m})=>m!==p)):d.updated.some(({object:m})=>m===p)||d.notUpdated.push(f),d},{updated:[],notUpdated:[]});u.updated.forEach((d,f)=>{const p=f===0?"after.":"before.",g=`${d.object}.`;Object.entries(d).forEach(([m,y])=>{y!==void 0&&(i[`cloudevents.subjects.${p}${g}${m}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([p,g])=>{g!==void 0&&(i[`cloudevents.subjects.${f}${p}`]=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,p])=>{p!==void 0&&(i[`cloudevents.${u}.${f}`]=p)}):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=Yi.setSpan(sl.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)}}forceFlush(){var e;(e=this.tracerProvider)==null||e.forceFlush()}}class SOe extends wOe{constructor(){super();ue(this,"tracerProvider",null);ue(this,"tracer",null);ue(this,"initialized",!1)}initTracer(r){if(!r.collectorUrl&&!r.collectorTraceUrl)return;const n=`ses_${Mb()}`,i=GU({[QU]:r.serviceName,[dve]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new ybe({resource:i,spanProcessors:[new abe(new fOe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),xOe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class COe{constructor(){ue(this,"config",null);ue(this,"initialized",!1);ue(this,"useCloudEventData");ue(this,"otelClient");ue(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 SOe}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,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)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${Mb()}`,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_${Mb()}`,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;(e=this.config)!=null&&e.disabled||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 POe(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const $Oe=POe(),kOe=R.createContext($Oe);function jo(){const t=R.useContext(kOe);return DB(t)}function EOe(t,e){const{apps:{apiId:r}}=_t(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=jo();n.set((t==null?void 0:t.corsProxyUrl)??jee),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),R.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const M0=R.createContext({});function UE(){return R.useContext(M0)||{}}const IOe="0.16.0-next.6",AOe={version:IOe};class TOe{constructor(){ue(this,"client");ue(this,"_isInitialized",!1);this.client=new COe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:AOe.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 xS=new TOe;function ht(){const{telemetry:t}=UE();return xS.isInitialized||xS.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{xS.sendEvent(e,r)}}}const Wn=800;var _Oe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function jOe(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,p=t.value,g=Ai(t,_Oe),m=R.useState(a!==void 0?a:r),y=rt(m,2),v=y[0],b=y[1],O=R.useState(l!==void 0?l:i),w=rt(O,2),x=w[0],C=w[1],P=R.useState(p!==void 0?p:s),N=rt(P,2),A=N[0],z=N[1],B=R.useCallback(function(J,ae){typeof c=="function"&&c(J,ae),z(J)},[c]),F=R.useCallback(function(J,ae){var M;typeof u=="function"&&(M=u(J,ae)),b(M!==void 0?M:J)},[u]),G=R.useCallback(function(){typeof f=="function"&&f(),C(!0)},[f]),Z=R.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),X=a!==void 0?a:v,Y=l!==void 0?l:x,te=p!==void 0?p:A;return ye(ye({},g),{},{inputValue:X,menuIsOpen:Y,onChange:B,onInputChange:F,onMenuClose:Z,onMenuOpen:G,value:te})}function ROe(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 NOe(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 DOe=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(NOe(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:
|
|
344
|
+
`;function xm({input:t,onSave:e,onCancel:r,...n}){const[i,o]=R.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return h.jsx(EU,{variable:t,onSave:s,onCancel:r,...n,children:h.jsx(Wh,{children:h.jsx(wge,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}function iv(t){var e=new Error(t);return e.source="ulid",e}var DE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Xp=DE.length,zD=Math.pow(2,48)-1,Ige=10,Age=16;function Tge(t){var e=Math.floor(t()*Xp);return e===Xp&&(e=Xp-1),DE.charAt(e)}function _ge(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>zD)throw iv("cannot encode time greater than "+zD);if(t<0)throw iv("time must be positive");if(Number.isInteger(t)===!1)throw iv("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%Xp,n=DE.charAt(r)+n,t=(t-r)/Xp;return n}function jge(t,e){for(var r="";t>0;t--)r=Tge(e)+r;return r}function Rge(){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 iv("secure crypto unusable, insecure Math.random not allowed")}function Nge(t){return t||(t=Rge()),function(r){return isNaN(r)&&(r=Date.now()),_ge(r,Ige)+jge(Age,t)}}var Mb=Nge(),Dge=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},nc="1.9.0",VD=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Mge(t){var e=new Set([t]),r=new Set,n=t.match(VD);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(VD);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 Lge=Mge(nc),Qge=nc.split(".")[0],qh=Symbol.for("opentelemetry.js.api."+Qge),Uh=Dge;function wm(t,e,r,n){var i;n===void 0&&(n=!1);var o=Uh[qh]=(i=Uh[qh])!==null&&i!==void 0?i:{version:nc};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!==nc){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+nc);return r.error(s.stack||s.message),!1}return o[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+nc+"."),!0}function Cc(t){var e,r,n=(e=Uh[qh])===null||e===void 0?void 0:e.version;if(!(!n||!Lge(n)))return(r=Uh[qh])===null||r===void 0?void 0:r[t]}function Sm(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+nc+".");var r=Uh[qh];r&&delete r[t]}var zge=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},Vge=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))},Bge=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 Jf("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jf("verbose",this._namespace,e)},t}();function Jf(t,e,r){var n=Cc("diag");if(n)return r.unshift(e),n[t].apply(n,Vge([],zge(r),!1))}var wi;(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"})(wi||(wi={}));function Fge(t,e){t<wi.NONE?t=wi.NONE:t>wi.ALL&&(t=wi.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",wi.ERROR),warn:r("warn",wi.WARN),info:r("info",wi.INFO),debug:r("debug",wi.DEBUG),verbose:r("verbose",wi.VERBOSE)}}var Wge=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},qge=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))},Uge="diag",Ps=function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Cc("diag");if(a)return a[i].apply(a,qge([],Wge(o),!1))}}var r=this,n=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:wi.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=Cc("diag"),d=Fge((a=o.logLevel)!==null&&a!==void 0?a:wi.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 wm("diag",d,r,!0)};r.setLogger=n,r.disable=function(){Sm(Uge,r)},r.createComponentLogger=function(i){return new Bge(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}(),Xge=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},Zge=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.")},Gge=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=Xge(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=Zge(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}(),Yge=Symbol("BaggageEntryMetadata"),Hge=Ps.instance();function Jge(t){return t===void 0&&(t={}),new Gge(new Map(Object.entries(t)))}function Kge(t){return typeof t!="string"&&(Hge.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Yge,toString:function(){return t}}}function ME(t){return Symbol.for(t)}var eye=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}(),Au=new eye,Bc=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)}}(),tye=function(){function t(){}return t.prototype.createGauge=function(e,r){return dye},t.prototype.createHistogram=function(e,r){return fye},t.prototype.createCounter=function(e,r){return uye},t.prototype.createUpDownCounter=function(e,r){return pye},t.prototype.createObservableGauge=function(e,r){return mye},t.prototype.createObservableCounter=function(e,r){return hye},t.prototype.createObservableUpDownCounter=function(e,r){return gye},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t}(),j0=function(){function t(){}return t}(),rye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(j0),nye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(j0),iye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(j0),oye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(j0),LE=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),sye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(LE),aye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(LE),lye=function(t){Bc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(LE),cye=new tye,uye=new rye,dye=new iye,fye=new oye,pye=new nye,hye=new sye,mye=new aye,gye=new lye,yye={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},vye={set:function(t,e,r){t!=null&&(t[e]=r)}},bye=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},Oye=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))},xye=function(){function t(){}return t.prototype.active=function(){return Au},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,Oye([n],bye(i),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),wye=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},Sye=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))},cS="context",Cye=new xye,R0=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return wm(cS,e,Ps.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,Sye([e,r,n],wye(o),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return Cc(cS)||Cye},t.prototype.disable=function(){this._getContextManager().disable(),Sm(cS,Ps.instance())},t}(),ua;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(ua||(ua={}));var IU="0000000000000000",AU="00000000000000000000000000000000",TU={traceId:AU,spanId:IU,traceFlags:ua.NONE},Zp=function(){function t(e){e===void 0&&(e=TU),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}(),QE=ME("OpenTelemetry Context Key SPAN");function zE(t){return t.getValue(QE)||void 0}function Pye(){return zE(R0.getInstance().active())}function VE(t,e){return t.setValue(QE,e)}function $ye(t){return t.deleteValue(QE)}function kye(t,e){return VE(t,new Zp(e))}function _U(t){var e;return(e=zE(t))===null||e===void 0?void 0:e.spanContext()}var Eye=/^([0-9a-f]{32})$/i,Iye=/^[0-9a-f]{16}$/i;function jU(t){return Eye.test(t)&&t!==AU}function Aye(t){return Iye.test(t)&&t!==IU}function N0(t){return jU(t.traceId)&&Aye(t.spanId)}function Tye(t){return new Zp(t)}var uS=R0.getInstance(),RU=function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=uS.active());var i=!!(r!=null&&r.root);if(i)return new Zp;var o=n&&_U(n);return _ye(o)&&N0(o)?new Zp(o):new Zp},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??uS.active(),c=this.startSpan(e,o,l),u=VE(l,c);return uS.with(u,a,void 0,c)}},t}();function _ye(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var jye=new RU,Rye=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):jye},t}(),Nye=function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new RU},t}(),Dye=new Nye,BD=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 Rye(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Dye},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}(),Lb;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Lb||(Lb={}));var _P;(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"})(_P||(_P={}));var jP;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(jP||(jP={}));var sl=R0.getInstance(),Nt=Ps.instance(),Mye=function(){function t(){}return t.prototype.getMeter=function(e,r,n){return cye},t}(),Lye=new Mye,dS="metrics",Qye=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return wm(dS,e,Ps.instance())},t.prototype.getMeterProvider=function(){return Cc(dS)||Lye},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){Sm(dS,Ps.instance())},t}(),zye=Qye.getInstance(),Vye=function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t}(),BE=ME("OpenTelemetry Baggage Key");function NU(t){return t.getValue(BE)||void 0}function Bye(){return NU(R0.getInstance().active())}function Fye(t,e){return t.setValue(BE,e)}function Wye(t){return t.deleteValue(BE)}var fS="propagation",qye=new Vye,Uye=function(){function t(){this.createBaggage=Jge,this.getBaggage=NU,this.getActiveBaggage=Bye,this.setBaggage=Fye,this.deleteBaggage=Wye}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return wm(fS,e,Ps.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=vye),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=yye),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Sm(fS,Ps.instance())},t.prototype._getGlobalPropagator=function(){return Cc(fS)||qye},t}(),Gp=Uye.getInstance(),pS="trace",Xye=function(){function t(){this._proxyTracerProvider=new BD,this.wrapSpanContext=Tye,this.isSpanContextValid=N0,this.deleteSpan=$ye,this.getSpan=zE,this.getActiveSpan=Pye,this.getSpanContext=_U,this.setSpan=VE,this.setSpanContext=kye}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=wm(pS,this._proxyTracerProvider,Ps.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return Cc(pS)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){Sm(pS,Ps.instance()),this._proxyTracerProvider=new BD},t}(),Yi=Xye.getInstance();const DU=ME("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Zye(t){return t.setValue(DU,!0)}function FE(t){return t.getValue(DU)===!0}const Gye="=",RP=";",NP=",",hS="baggage",Yye=180,Hye=4096,Jye=8192;function Kye(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?NP:""}${r}`;return n.length>Jye?e:n},"")}function eve(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=RP+r.metadata.toString()),n})}function tve(t){const e=t.split(RP);if(e.length<=0)return;const r=e.shift();if(!r)return;const n=r.indexOf(Gye);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=Kge(e.join(RP))),{key:i,value:o,metadata:s}}class rve{inject(e,r,n){const i=Gp.getBaggage(e);if(!i||FE(e))return;const o=eve(i).filter(a=>a.length<=Hye).slice(0,Yye),s=Kye(o);s.length>0&&n.set(r,hS,s)}extract(e,r,n){const i=n.get(r,hS),o=Array.isArray(i)?i.join(NP):i;if(!o)return e;const s={};return o.length===0||(o.split(NP).forEach(l=>{const c=tve(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:Gp.setBaggage(e,Gp.createBaggage(s))}fields(){return[hS]}}function ov(t){const e={};if(typeof t!="object"||t==null)return e;for(const[r,n]of Object.entries(t)){if(!nve(r)){Nt.warn(`Invalid attribute key: ${r}`);continue}if(!MU(n)){Nt.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}function nve(t){return typeof t=="string"&&t.length>0}function MU(t){return t==null?!0:Array.isArray(t)?ive(t):LU(t)}function ive(t){let e;for(const r of t)if(r!=null){if(!e){if(LU(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function LU(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function ove(){return t=>{Nt.error(sve(t))}}function sve(t){return typeof t=="string"?t:JSON.stringify(ave(t))}function ave(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 lve=ove();function zd(t){try{lve(t)}catch{}}const sd=performance,cve="2.0.1",mS="exception.message",uve="exception.stacktrace",gS="exception.type",QU="service.name",dve="service.version",DP="telemetry.sdk.language",fve="webjs",MP="telemetry.sdk.name",LP="telemetry.sdk.version",pve="process.runtime.name",yS={[MP]:"opentelemetry",[pve]:"browser",[DP]:fve,[LP]:cve};const hve=9,mve=6,gve=Math.pow(10,mve),Qb=Math.pow(10,hve);function qu(t){const e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*gve);return[r,n]}function zU(){let t=sd.timeOrigin;if(typeof t!="number"){const e=sd;t=e.timing&&e.timing.fetchStart}return t}function yve(t){const e=qu(zU()),r=qu(typeof t=="number"?t:sd.now());return BU(e,r)}function vve(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=Qb),[r,n]}function bve(t){return t[0]*Qb+t[1]}function VU(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function FD(t){return VU(t)||typeof t=="number"||t instanceof Date}function BU(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=Qb&&(r[1]-=Qb,r[0]+=1),r}var es;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(es||(es={}));class Ove{constructor(e={}){ue(this,"_propagators");ue(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){Nt.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){Nt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const QP="[_0-9a-z-*/]",xve=`[a-z]${QP}{0,255}`,wve=`[a-z0-9]${QP}{0,240}@[a-z]${QP}{0,13}`,Sve=new RegExp(`^(?:${xve}|${wve})$`),Cve=/^[ -~]{0,255}[!-~]$/,Pve=/,|=/;function $ve(t){return Sve.test(t)}function kve(t){return Cve.test(t)&&!Pve.test(t)}const WD=32,Eve=512,qD=",",UD="=";class WE{constructor(e){ue(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+UD+this.get(r)),e),[]).join(qD)}_parse(e){e.length>Eve||(this._internalState=e.split(qD).reverse().reduce((r,n)=>{const i=n.trim(),o=i.indexOf(UD);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,n.length);$ve(s)&&kve(a)&&r.set(s,a)}return r},new Map),this._internalState.size>WD&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,WD))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new WE;return e._internalState=new Map(this._internalState),e}}const vS="traceparent",bS="tracestate",Ive="00",Ave="(?!ff)[\\da-f]{2}",Tve="(?![0]{32})[\\da-f]{32}",_ve="(?![0]{16})[\\da-f]{16}",jve="[\\da-f]{2}",Rve=new RegExp(`^\\s?(${Ave})-(${Tve})-(${_ve})-(${jve})(-.*)?\\s?$`);function Nve(t){const e=Rve.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Dve{inject(e,r,n){const i=Yi.getSpanContext(e);if(!i||FE(e)||!N0(i))return;const o=`${Ive}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||ua.NONE).toString(16)}`;n.set(r,vS,o),i.traceState&&n.set(r,bS,i.traceState.serialize())}extract(e,r,n){const i=n.get(r,vS);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Nve(o);if(!s)return e;s.isRemote=!0;const a=n.get(r,bS);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new WE(typeof l=="string"?l:void 0)}return Yi.setSpanContext(e,s)}fields(){return[vS,bS]}}const Mve="[object Object]",Lve="[object Null]",Qve="[object Undefined]",zve=Function.prototype,FU=zve.toString,Vve=FU.call(Object),Bve=Object.getPrototypeOf,WU=Object.prototype,qU=WU.hasOwnProperty,Fl=Symbol?Symbol.toStringTag:void 0,UU=WU.toString;function XD(t){if(!Fve(t)||Wve(t)!==Mve)return!1;const e=Bve(t);if(e===null)return!0;const r=qU.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&FU.call(r)===Vve}function Fve(t){return t!=null&&typeof t=="object"}function Wve(t){return t==null?t===void 0?Qve:Lve:Fl&&Fl in Object(t)?qve(t):Uve(t)}function qve(t){const e=qU.call(t,Fl),r=t[Fl];let n=!1;try{t[Fl]=void 0,n=!0}catch{}const i=UU.call(t);return n&&(e?t[Fl]=r:delete t[Fl]),i}function Uve(t){return UU.call(t)}const Xve=20;function Zve(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=XU(e,t.shift(),0,r);return e}function OS(t){return zb(t)?t.slice():t}function XU(t,e,r=0,n){let i;if(!(r>Xve)){if(r++,sv(t)||sv(e)||ZU(e))i=OS(e);else if(zb(t)){if(i=t.slice(),zb(e))for(let o=0,s=e.length;o<s;o++)i.push(OS(e[o]));else if(Kf(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=OS(e[l])}}}else if(Kf(t))if(Kf(e)){if(!Gve(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(sv(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],d=c;if(ZD(t,l,n)||ZD(e,l,n))delete i[l];else{if(Kf(u)&&Kf(d)){const f=n.get(u)||[],p=n.get(d)||[];f.push({obj:t,key:l}),p.push({obj:e,key:l}),n.set(u,f),n.set(d,p)}i[l]=XU(i[l],c,r,n)}}}}else i=e;return i}}function ZD(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 zb(t){return Array.isArray(t)}function ZU(t){return typeof t=="function"}function Kf(t){return!sv(t)&&!zb(t)&&!ZU(t)&&typeof t=="object"}function sv(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Gve(t,e){return!(!XD(t)||!XD(e))}class Yve{constructor(){ue(this,"_promise");ue(this,"_resolve");ue(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 Hve{constructor(e,r){ue(this,"_callback");ue(this,"_that");ue(this,"_isCalled",!1);ue(this,"_deferred",new Yve);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 Jve(){return"unknown_service"}const $p=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class Vb{constructor(e){ue(this,"_rawAttributes");ue(this,"_asyncAttributesPending",!1);ue(this,"_memoizedAttributes");const r=e.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>($p(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=GD(this._rawAttributes)}static FromAttributeList(e){const r=new Vb({});return r._rawAttributes=GD(e),r._asyncAttributesPending=e.filter(([n,i])=>$p(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,$p(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Nt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if($p(n)){Nt.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:Vb.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function GU(t){return Vb.FromAttributeList(Object.entries(t))}function Kve(){return GU({[QU]:Jve(),[DP]:yS[DP],[MP]:yS[MP],[LP]:yS[LP]})}function GD(t){return t.map(([e,r])=>$p(r)?[e,r.catch(n=>{Nt.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}const ebe="exception";class tbe{constructor(e){ue(this,"_spanContext");ue(this,"kind");ue(this,"parentSpanContext");ue(this,"attributes",{});ue(this,"links",[]);ue(this,"events",[]);ue(this,"startTime");ue(this,"resource");ue(this,"instrumentationScope");ue(this,"_droppedAttributesCount",0);ue(this,"_droppedEventsCount",0);ue(this,"_droppedLinksCount",0);ue(this,"name");ue(this,"status",{code:jP.UNSET});ue(this,"endTime",[0,0]);ue(this,"_ended",!1);ue(this,"_duration",[-1,-1]);ue(this,"_spanProcessor");ue(this,"_spanLimits");ue(this,"_attributeValueLengthLimit");ue(this,"_performanceStartTime");ue(this,"_performanceOffset");ue(this,"_startTimeProvided");const r=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=sd.now(),this._performanceOffset=r-(this._performanceStartTime+zU()),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 Nt.warn(`Invalid attribute key: ${e}`),this;if(!MU(r))return Nt.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 Nt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Nt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),FD(r)&&(FD(n)||(n=r),r=void 0);const o=ov(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"&&(Nt.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()){Nt.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=vve(this.startTime,this.endTime),this._duration[0]<0&&(Nt.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&&Nt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=sd.now())return yve(e+this._performanceOffset);if(typeof e=="number")return qu(e);if(e instanceof Date)return qu(e.getTime());if(VU(e))return e;if(this._startTimeProvided)return qu(Date.now());const r=sd.now()-this._performanceStartTime;return BU(this.startTime,qu(r))}isRecording(){return this._ended===!1}recordException(e,r){const n={};typeof e=="string"?n[mS]=e:e&&(e.code?n[gS]=e.code.toString():e.name&&(n[gS]=e.name),e.message&&(n[mS]=e.message),e.stack&&(n[uve]=e.stack)),n[gS]||n[mS]?this.addEvent(ebe,n,r):Nt.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}}`);Nt.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?(Nt.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 Vd;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Vd||(Vd={}));class Bb{shouldSample(){return{decision:Vd.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class ad{shouldSample(){return{decision:Vd.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Jg{constructor(e){ue(this,"_root");ue(this,"_remoteParentSampled");ue(this,"_remoteParentNotSampled");ue(this,"_localParentSampled");ue(this,"_localParentNotSampled");this._root=e.root,this._root||(zd(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ad),this._remoteParentSampled=e.remoteParentSampled??new ad,this._remoteParentNotSampled=e.remoteParentNotSampled??new Bb,this._localParentSampled=e.localParentSampled??new ad,this._localParentNotSampled=e.localParentNotSampled??new Bb}shouldSample(e,r,n,i,o,s){const a=Yi.getSpanContext(e);return!a||!N0(a)?this._root.shouldSample(e,r,n,i,o,s):a.isRemote?a.traceFlags&ua.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,i,o,s):this._remoteParentNotSampled.shouldSample(e,r,n,i,o,s):a.traceFlags&ua.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 YD{constructor(e=0){ue(this,"_ratio");ue(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:jU(r)&&this._accumulate(r)<this._upperBound?Vd.RECORD_AND_SAMPLED:Vd.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 HD=1;function YU(){return{sampler:HU(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function HU(){const t="parentbased_always_on";switch(t){case"always_on":return new ad;case"always_off":return new Bb;case"parentbased_always_on":return new Jg({root:new ad});case"parentbased_always_off":return new Jg({root:new Bb});case"traceidratio":return new YD(JD());case"parentbased_traceidratio":return new Jg({root:new YD(JD())});default:return Nt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new Jg({root:new ad})}}function JD(){return Nt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${HD}.`),HD}const rbe=128,nbe=1/0;function ibe(t){const e={sampler:HU()},r=YU(),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 obe(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??rbe,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??nbe,Object.assign({},t,{spanLimits:e})}class sbe{constructor(e,r){ue(this,"_exporter");ue(this,"_maxExportBatchSize");ue(this,"_maxQueueSize");ue(this,"_scheduledDelayMillis");ue(this,"_exportTimeoutMillis");ue(this,"_isExporting",!1);ue(this,"_finishedSpans",[]);ue(this,"_timer");ue(this,"_shutdownOnce");ue(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 Hve(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Nt.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&ua.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&&Nt.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Nt.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);sl.with(Zye(sl.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===es.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=>{zd(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,zd(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 abe extends sbe{constructor(r,n){super(r,n);ue(this,"_visibilityChangeListener");ue(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=>{zd(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{zd(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 lbe=8,cbe=16;class ube{constructor(){ue(this,"generateTraceId",KD(cbe));ue(this,"generateSpanId",KD(lbe))}}const Kg=Array(32);function KD(t){return function(){for(let r=0;r<t*2;r++)Kg[r]=Math.floor(Math.random()*16)+48,Kg[r]>=58&&(Kg[r]+=39);return String.fromCharCode.apply(null,Kg.slice(0,t*2))}}class dbe{constructor(e,r,n,i){ue(this,"_sampler");ue(this,"_generalLimits");ue(this,"_spanLimits");ue(this,"_idGenerator");ue(this,"instrumentationScope");ue(this,"_resource");ue(this,"_spanProcessor");const o=ibe(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new ube,this._resource=n,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,r={},n=sl.active()){r.root&&(n=Yi.deleteSpan(n));const i=Yi.getSpan(n);if(FE(n))return Nt.debug("Instrumentation suppressed, returning Noop Span"),Yi.wrapSpanContext(TU);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!Yi.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=r.kind??_P.INTERNAL,d=(r.links??[]).map(b=>({context:b.context,attributes:ov(b.attributes)})),f=ov(r.attributes),p=this._sampler.shouldSample(n,l,e,u,f,d);c=p.traceState??c;const g=p.decision===Lb.RECORD_AND_SAMPLED?ua.SAMPLED:ua.NONE,m={traceId:l,spanId:s,traceFlags:g,traceState:c};if(p.decision===Lb.NOT_RECORD)return Nt.debug("Recording is off, propagating context in a non-recording span"),Yi.wrapSpanContext(m);const y=ov(Object.assign(f,p.attributes));return new tbe({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:m,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??sl.active(),c=this.startSpan(e,o,l),u=Yi.setSpan(l,c);return sl.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class fbe{constructor(e){ue(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=>{zd(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 Wl;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Wl||(Wl={}));class pbe{constructor(e={}){ue(this,"_config");ue(this,"_tracers",new Map);ue(this,"_resource");ue(this,"_activeSpanProcessor");var i;const r=Zve({},YU(),obe(e));this._resource=r.resource??Kve(),this._config=Object.assign({},r,{resource:this._resource});const n=[];(i=e.spanProcessors)!=null&&i.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new fbe(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 dbe({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=Wl.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),o!==Wl.timeout&&(o=Wl.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Wl.error,i(a)})}));return new Promise((n,i)=>{Promise.all(r).then(o=>{const s=o.filter(a=>a!==Wl.resolved);s.length>0?i(s):n()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class hbe{constructor(){ue(this,"_enabled",!1);ue(this,"_currentContext",Au)}_bindFunction(e=Au,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=Au,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Au,this)}with(e,r,n,...i){const o=this._currentContext;this._currentContext=e||Au;try{return r.call(n,...i)}finally{this._currentContext=o}}}function mbe(t){if(t!==null){if(t===void 0){const e=new hbe;e.enable(),sl.setGlobalContextManager(e);return}t.enable(),sl.setGlobalContextManager(t)}}function gbe(t){if(t!==null){if(t===void 0){Gp.setGlobalPropagator(new Ove({propagators:[new Dve,new rve]}));return}Gp.setGlobalPropagator(t)}}class ybe extends pbe{constructor(e={}){super(e)}register(e={}){Yi.setGlobalTracerProvider(this),gbe(e.propagator),mbe(e.contextManager)}}class vbe{constructor(e){ue(this,"_delegate");this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class eM extends Error{constructor(r,n,i){super(r);ue(this,"code");ue(this,"name","OTLPExporterError");ue(this,"data");this.data=i,this.code=n}}function bbe(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Obe(t){if(t!=null)return()=>t}function xbe(t,e,r){return{timeoutMillis:bbe(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function wbe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Sbe{constructor(e){ue(this,"_concurrencyLimit");ue(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 Cbe(t){return new Sbe(t.concurrencyLimit)}function Pbe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function $be(){return{handleResponse(t){t==null||!Pbe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Nt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class kbe{constructor(e,r,n,i,o){ue(this,"_transport");ue(this,"_serializer");ue(this,"_responseHandler");ue(this,"_promiseQueue");ue(this,"_timeout");ue(this,"_diagLogger");this._transport=e,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=o,this._diagLogger=Nt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:es.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(e);if(n==null){r({code:es.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:es.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:es.FAILED,error:i.error});return}else i.status==="retryable"?r({code:es.FAILED,error:new eM("Export failed with retryable status")}):r({code:es.FAILED,error:new eM("Export failed with unknown error")})},i=>r({code:es.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Ebe(t,e){return new kbe(t.transport,t.serializer,$be(),t.promiseHandler,e.timeout)}function JU(t,e,r){return Ebe({transport:r,serializer:e,promiseHandler:Cbe(t)},{timeout:t.timeoutMillis})}function tM(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function KU(t){const e=new Uint8Array(t.length/2);let r=0;for(let n=0;n<t.length;n+=2){const i=tM(t.charCodeAt(n)),o=tM(t.charCodeAt(n+1));e[r++]=i<<4|o}return e}function e4(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function Ibe(t){const e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}function Abe(t){const e=e4(t);return Ibe(e)}function Tbe(t){return e4(t).toString()}const _be=typeof BigInt<"u"?Tbe:bve;function rM(t){return t}function jbe(t){if(t!==void 0)return KU(t)}const Rbe={encodeHrTime:Abe,encodeSpanContext:KU,encodeOptionalSpanContext:jbe};function Nbe(t){return t===void 0?Rbe:{encodeHrTime:_be,encodeSpanContext:rM,encodeOptionalSpanContext:rM}}function Dbe(t){return{attributes:D0(t.attributes),droppedAttributesCount:0}}function Mbe(t){return{name:t.name,version:t.version}}function D0(t){return Object.keys(t).map(e=>t4(e,t[e]))}function t4(t,e){return{key:t,value:r4(e)}}function r4(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(r4)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,n])=>t4(r,n))}}:{}}function Lbe(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:D0(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>zbe(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(l=>Qbe(l,e)),droppedLinksCount:t.droppedLinksCount}}function Qbe(t,e){var r;return{attributes:t.attributes?D0(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 zbe(t,e){return{attributes:t.attributes?D0(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Vbe(t,e){const r=Nbe(e);return{resourceSpans:Fbe(t,r)}}function Bbe(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 Fbe(t,e){const r=Bbe(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 p=f.map(g=>Lbe(g,e));l.push({scope:Mbe(f[0].instrumentationScope),spans:p,schemaUrl:f[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:Dbe(s),scopeSpans:l,schemaUrl:void 0};n.push(d),o=i.next()}return n}const Wbe={serializeRequest:t=>{const e=Vbe(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))}},qbe=5,Ube=1e3,Xbe=5e3,Zbe=1.5,nM=.2;function Gbe(){return Math.random()*(2*nM)-nM}class Ybe{constructor(e){ue(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=qbe,s=Ube;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,Xbe)+Gbe(),0);s=s*Zbe;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 n4(t){return new Ybe(t.transport)}function Hbe(t){return[429,502,503,504].includes(t)}function Jbe(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 Kbe{constructor(e){ue(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?(Nt.debug("XHR success"),n({status:"success"})):i.status&&Hbe(i.status)?n({status:"retryable",retryInMillis:Jbe(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 eOe(t){return new Kbe(t)}class tOe{constructor(e){ue(this,"_params");this._params=e}send(e){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(Nt.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function rOe(t){return new tOe(t)}function nOe(t,e){return JU(t,e,n4({transport:eOe(t)}))}function iOe(t,e){return JU(t,e,n4({transport:rOe({url:t.url,blobType:t.headers()["Content-Type"]})}))}function oOe(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([r,n])=>{typeof n<"u"?e[r]=String(n):Nt.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),e}}function sOe(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 aOe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function lOe(t,e,r){return{...xbe(t,e,r),headers:sOe(oOe(t.headers),e.headers,r.headers),url:aOe(t.url)??e.url??r.url,agentOptions:t.agentOptions??e.agentOptions??r.agentOptions}}function cOe(t,e){return{...wbe(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function uOe(t,e,r){return lOe({url:t.url,timeoutMillis:t.timeoutMillis,headers:Obe(t.headers),concurrencyLimit:t.concurrencyLimit},{},cOe(r,e))}function dOe(t,e,r,n){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=uOe(t,r,n);return i?nOe(o,e):iOe(o,e)}class fOe extends vbe{constructor(e={}){super(dOe(e,Wbe,"v1/traces",{"Content-Type":"application/json"}))}}class i4{emit(e){}}const pOe=new i4;class hOe{getLogger(e,r,n){return new i4}}const o4=new hOe;class mOe{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):pOe}}class iM{getLogger(e,r,n){var i;return(i=this.getDelegateLogger(e,r,n))!==null&&i!==void 0?i:new mOe(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:o4}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 gOe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},ey=Symbol.for("io.opentelemetry.js.api.logs"),ep=gOe;function yOe(t,e,r){return n=>n===t?e:r}const oM=1;class qE{constructor(){this._proxyLoggerProvider=new iM}static getInstance(){return this._instance||(this._instance=new qE),this._instance}setGlobalLoggerProvider(e){return ep[ey]?this.getLoggerProvider():(ep[ey]=yOe(oM,e,o4),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=ep[ey])===null||e===void 0?void 0:e.call(ep,oM))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete ep[ey],this._proxyLoggerProvider=new iM}}const vOe=qE.getInstance();function bOe(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 OOe(t){t.forEach(e=>e.disable())}function xOe(t){var o;const e=t.tracerProvider||Yi.getTracerProvider(),r=t.meterProvider||zye.getMeterProvider(),n=t.loggerProvider||vOe.getLoggerProvider(),i=((o=t.instrumentations)==null?void 0:o.flat())??[];return bOe(i,e,r,n),()=>{OOe(i)}}class wOe{constructor(){ue(this,"config",null);ue(this,"tracer",null);ue(this,"tracerProvider",null);ue(this,"initialized",!1);ue(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":Mb(),"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 p=f.object;if(!p||typeof p!="string")return d;const g=d.notUpdated.find(({object:m})=>m===p);return g?(d.updated=[g,f],d.notUpdated=d.notUpdated.filter(({object:m})=>m!==p)):d.updated.some(({object:m})=>m===p)||d.notUpdated.push(f),d},{updated:[],notUpdated:[]});u.updated.forEach((d,f)=>{const p=f===0?"after.":"before.",g=`${d.object}.`;Object.entries(d).forEach(([m,y])=>{y!==void 0&&(i[`cloudevents.subjects.${p}${g}${m}`]=y)})}),u.notUpdated.forEach(d=>{const f=`${d.object}.`;Object.entries(d).forEach(([p,g])=>{g!==void 0&&(i[`cloudevents.subjects.${f}${p}`]=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,p])=>{p!==void 0&&(i[`cloudevents.${u}.${f}`]=p)}):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=Yi.setSpan(sl.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)}}forceFlush(){var e;(e=this.tracerProvider)==null||e.forceFlush()}}class SOe extends wOe{constructor(){super();ue(this,"tracerProvider",null);ue(this,"tracer",null);ue(this,"initialized",!1)}initTracer(r){if(!r.collectorUrl&&!r.collectorTraceUrl)return;const n=`ses_${Mb()}`,i=GU({[QU]:r.serviceName,[dve]:r.serviceVersion,session_id:n}),o=r.collectorTraceUrl||`${r.collectorUrl}/v1/traces`;this.tracerProvider=new ybe({resource:i,spanProcessors:[new abe(new fOe({url:o,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(r.tracerName),this.tracerProvider.register(),xOe({instrumentations:r.instrumentations??[]}),this.initialized=!0}}class COe{constructor(){ue(this,"config",null);ue(this,"initialized",!1);ue(this,"useCloudEventData");ue(this,"otelClient");ue(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 SOe}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,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)}constructCloudEvent(e,r){const n=this.useCloudEventData();return{id:`evt_${Mb()}`,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_${Mb()}`,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;(e=this.config)!=null&&e.disabled||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 POe(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const $Oe=POe(),kOe=R.createContext($Oe);function jo(){const t=R.useContext(kOe);return DB(t)}function EOe(t,e){const{apps:{apiId:r}}=_t(),{corsProxyUrl:n,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=jo();n.set((t==null?void 0:t.corsProxyUrl)??jee),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),R.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const M0=R.createContext({});function UE(){return R.useContext(M0)||{}}const IOe="0.16.0",AOe={version:IOe};class TOe{constructor(){ue(this,"client");ue(this,"_isInitialized",!1);this.client=new COe}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const n={serviceName:"replay",serviceVersion:AOe.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 xS=new TOe;function ht(){const{telemetry:t}=UE();return xS.isInitialized||xS.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,r)=>{xS.sendEvent(e,r)}}}const Wn=800;var _Oe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function jOe(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,p=t.value,g=Ai(t,_Oe),m=R.useState(a!==void 0?a:r),y=rt(m,2),v=y[0],b=y[1],O=R.useState(l!==void 0?l:i),w=rt(O,2),x=w[0],C=w[1],P=R.useState(p!==void 0?p:s),N=rt(P,2),A=N[0],z=N[1],B=R.useCallback(function(J,ae){typeof c=="function"&&c(J,ae),z(J)},[c]),F=R.useCallback(function(J,ae){var M;typeof u=="function"&&(M=u(J,ae)),b(M!==void 0?M:J)},[u]),G=R.useCallback(function(){typeof f=="function"&&f(),C(!0)},[f]),Z=R.useCallback(function(){typeof d=="function"&&d(),C(!1)},[d]),X=a!==void 0?a:v,Y=l!==void 0?l:x,te=p!==void 0?p:A;return ye(ye({},g),{},{inputValue:X,menuIsOpen:Y,onChange:B,onInputChange:F,onMenuClose:Z,onMenuOpen:G,value:te})}function ROe(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 NOe(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 DOe=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(NOe(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:
|
|
345
345
|
`+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=ROe(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}(),xn="-ms-",Fb="-moz-",Rt="-webkit-",XE="comm",ZE="rule",GE="decl",MOe="@import",s4="@keyframes",LOe=Math.abs,L0=String.fromCharCode,QOe=Object.assign;function zOe(t,e){return cn(t,0)^45?(((e<<2^cn(t,0))<<2^cn(t,1))<<2^cn(t,2))<<2^cn(t,3):0}function a4(t){return t.trim()}function VOe(t,e){return(t=e.exec(t))?t[0]:t}function Bt(t,e,r){return t.replace(e,r)}function zP(t,e){return t.indexOf(e)}function cn(t,e){return t.charCodeAt(e)|0}function Xh(t,e,r){return t.slice(e,r)}function ns(t){return t.length}function YE(t){return t.length}function ty(t,e){return e.push(t),t}function BOe(t,e){return t.map(e).join("")}var Q0=1,Bd=1,l4=0,fi=0,Ar=0,gf="";function z0(t,e,r,n,i,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:Q0,column:Bd,length:s,return:""}}function tp(t,e){return QOe(z0("",null,null,"",null,null,0),t,{length:-t.length},e)}function FOe(){return Ar}function WOe(){return Ar=fi>0?cn(gf,--fi):0,Bd--,Ar===10&&(Bd=1,Q0--),Ar}function Ii(){return Ar=fi<l4?cn(gf,fi++):0,Bd++,Ar===10&&(Bd=1,Q0++),Ar}function ws(){return cn(gf,fi)}function av(){return fi}function Cm(t,e){return Xh(gf,t,e)}function Zh(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 c4(t){return Q0=Bd=1,l4=ns(gf=t),fi=0,[]}function u4(t){return gf="",t}function lv(t){return a4(Cm(fi-1,VP(t===91?t+2:t===40?t+1:t)))}function qOe(t){for(;(Ar=ws())&&Ar<33;)Ii();return Zh(t)>2||Zh(Ar)>3?"":" "}function UOe(t,e){for(;--e&&Ii()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return Cm(t,av()+(e<6&&ws()==32&&Ii()==32))}function VP(t){for(;Ii();)switch(Ar){case t:return fi;case 34:case 39:t!==34&&t!==39&&VP(Ar);break;case 40:t===41&&VP(t);break;case 92:Ii();break}return fi}function XOe(t,e){for(;Ii()&&t+Ar!==57;)if(t+Ar===84&&ws()===47)break;return"/*"+Cm(e,fi-1)+"*"+L0(t===47?t:Ii())}function ZOe(t){for(;!Zh(ws());)Ii();return Cm(t,fi)}function GOe(t){return u4(cv("",null,null,null,[""],t=c4(t),0,[0],t))}function cv(t,e,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,g=0,m=1,y=1,v=1,b=0,O="",w=i,x=o,C=n,P=O;y;)switch(g=b,b=Ii()){case 40:if(g!=108&&cn(P,d-1)==58){zP(P+=Bt(lv(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=lv(b);break;case 9:case 10:case 13:case 32:P+=qOe(g);break;case 92:P+=UOe(av()-1,7);continue;case 47:switch(ws()){case 42:case 47:ty(YOe(XOe(Ii(),av()),e,r),l);break;default:P+="/"}break;case 123*m:a[c++]=ns(P)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:p>0&&ns(P)-d&&ty(p>32?aM(P+";",n,r,d-1):aM(Bt(P," ","")+";",n,r,d-2),l);break;case 59:P+=";";default:if(ty(C=sM(P,e,r,c,u,i,a,O,w=[],x=[],d),o),b===123)if(u===0)cv(P,e,C,C,w,o,d,a,x);else switch(f===99&&cn(P,3)===110?100:f){case 100:case 109:case 115:cv(t,C,C,n&&ty(sM(t,C,C,0,0,i,a,O,i,w=[],d),x),i,x,d,a,n?w:x);break;default:cv(P,C,C,C,[""],x,0,a,x)}}c=u=p=0,m=v=1,O=P="",d=s;break;case 58:d=1+ns(P),p=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&WOe()==125)continue}switch(P+=L0(b),b*m){case 38:v=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(ns(P)-1)*v,v=1;break;case 64:ws()===45&&(P+=lv(Ii())),f=ws(),u=d=ns(O=P+=ZOe(av())),b++;break;case 45:g===45&&ns(P)==2&&(m=0)}}return o}function sM(t,e,r,n,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],p=YE(f),g=0,m=0,y=0;g<n;++g)for(var v=0,b=Xh(t,d+1,d=LOe(m=s[g])),O=t;v<p;++v)(O=a4(m>0?f[v]+" "+b:Bt(b,/&\f/g,f[v])))&&(l[y++]=O);return z0(t,e,r,i===0?ZE:a,l,c,u)}function YOe(t,e,r){return z0(t,e,r,XE,L0(FOe()),Xh(t,2,-2),0)}function aM(t,e,r,n){return z0(t,e,r,GE,Xh(t,0,n),Xh(t,n+1,-1),n)}function ld(t,e){for(var r="",n=YE(t),i=0;i<n;i++)r+=e(t[i],i,t,e)||"";return r}function HOe(t,e,r,n){switch(t.type){case MOe:case GE:return t.return=t.return||t.value;case XE:return"";case s4:return t.return=t.value+"{"+ld(t.children,n)+"}";case ZE:t.value=t.props.join(",")}return ns(r=ld(t.children,n))?t.return=t.value+"{"+r+"}":""}function JOe(t){var e=YE(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 KOe(t){return function(e){e.root||(e=e.return)&&t(e)}}function e0e(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var t0e=function(e,r,n){for(var i=0,o=0;i=o,o=ws(),i===38&&o===12&&(r[n]=1),!Zh(o);)Ii();return Cm(e,fi)},r0e=function(e,r){var n=-1,i=44;do switch(Zh(i)){case 0:i===38&&ws()===12&&(r[n]=1),e[n]+=t0e(fi-1,r,n);break;case 2:e[n]+=lv(i);break;case 4:if(i===44){e[++n]=ws()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=L0(i)}while(i=Ii());return e},n0e=function(e,r){return u4(r0e(c4(e),r))},lM=new WeakMap,i0e=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&&!lM.get(n))&&!i){lM.set(e,!0);for(var o=[],s=n0e(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]}}},o0e=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},s0e="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",a0e=function(e){return e.type==="comm"&&e.children.indexOf(s0e)>-1},l0e=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(a0e(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".')})}}}},d4=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},c0e=function(e,r){for(var n=e-1;n>=0;n--)if(!d4(r[n]))return!0;return!1},cM=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},u0e=function(e,r,n){d4(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."),cM(e)):c0e(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),cM(e)))};function f4(t,e){switch(zOe(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+Fb+t+xn+t+t;case 6828:case 4268:return Rt+t+xn+t+t;case 6165:return Rt+t+xn+"flex-"+t+t;case 5187:return Rt+t+Bt(t,/(\w+).+(:[^]+)/,Rt+"box-$1$2"+xn+"flex-$1$2")+t;case 5443:return Rt+t+xn+"flex-item-"+Bt(t,/flex-|-self/,"")+t;case 4675:return Rt+t+xn+"flex-line-pack"+Bt(t,/align-content|flex-|-self/,"")+t;case 5548:return Rt+t+xn+Bt(t,"shrink","negative")+t;case 5292:return Rt+t+xn+Bt(t,"basis","preferred-size")+t;case 6060:return Rt+"box-"+Bt(t,"-grow","")+Rt+t+xn+Bt(t,"grow","positive")+t;case 4554:return Rt+Bt(t,/([^-])(transform)/g,"$1"+Rt+"$2")+t;case 6187:return Bt(Bt(Bt(t,/(zoom-|grab)/,Rt+"$1"),/(image-set)/,Rt+"$1"),t,"")+t;case 5495:case 3959:return Bt(t,/(image-set\([^]*)/,Rt+"$1$`$1");case 4968:return Bt(Bt(t,/(.+:)(flex-)?(.*)/,Rt+"box-pack:$3"+xn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rt+t+t;case 4095:case 3583:case 4068:case 2532:return Bt(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(ns(t)-1-e>6)switch(cn(t,e+1)){case 109:if(cn(t,e+4)!==45)break;case 102:return Bt(t,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+Fb+(cn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~zP(t,"stretch")?f4(Bt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(cn(t,e+1)!==115)break;case 6444:switch(cn(t,ns(t)-3-(~zP(t,"!important")&&10))){case 107:return Bt(t,":",":"+Rt)+t;case 101:return Bt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(cn(t,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+xn+"$2box$3")+t}break;case 5936:switch(cn(t,e+11)){case 114:return Rt+t+xn+Bt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Rt+t+xn+Bt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Rt+t+xn+Bt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Rt+t+xn+t+t}return t}var d0e=function(e,r,n,i){if(e.length>-1&&!e.return)switch(e.type){case GE:e.return=f4(e.value,e.length);break;case s4:return ld([tp(e,{value:Bt(e.value,"@","@"+Rt)})],i);case ZE:if(e.length)return BOe(e.props,function(o){switch(VOe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ld([tp(e,{props:[Bt(o,/:(read-\w+)/,":"+Fb+"$1")]})],i);case"::placeholder":return ld([tp(e,{props:[Bt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),tp(e,{props:[Bt(o,/:(plac\w+)/,":"+Fb+"$1")]}),tp(e,{props:[Bt(o,/:(plac\w+)/,xn+"input-$1")]})],i)}return""})}},f0e=[d0e],p0e=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.
|
|
346
346
|
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(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||f0e;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(m){for(var y=m.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)o[y[v]]=!0;a.push(m)});var l,c=[i0e,o0e];process.env.NODE_ENV!=="production"&&c.push(l0e({get compat(){return g.compat}}),u0e);{var u,d=[HOe,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?u.insert(m.return):m.value&&m.type!==XE&&u.insert(m.value+"{}"))}:KOe(function(m){u.insert(m)})],f=JOe(c.concat(i,d)),p=function(y){return ld(GOe(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)}}),p(y?y+"{"+v.styles+"}":v.styles),O&&(g.inserted[v.name]=!0)}}var g={key:r,sheet:new DOe({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},h0e=!0;function p4(t,e,r){var n="";return r.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):n+=i+" "}),n}var HE=function(e,r,n){var i=e.key+"-"+r.name;(n===!1||h0e===!1)&&e.registered[i]===void 0&&(e.registered[i]=r.styles)},JE=function(e,r,n){HE(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 m0e(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 g0e={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},uM=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
347
347
|
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';".
|
|
@@ -507,7 +507,7 @@ You should wrap it with \`css\` like this:
|
|
|
507
507
|
color: var(--loading-spinner-color);
|
|
508
508
|
`,G4=I(Q.Admonition)`
|
|
509
509
|
margin: 0;
|
|
510
|
-
`;var ESe=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()}},ISe=ESe,zM={"text/plain":"Text","text/html":"Url",default:"Text"},ASe="Copy to clipboard: #{key}, Enter";function TSe(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function _Se(t,e){var r,n,i,o,s,a,l=!1;e||(e={}),r=e.debug||!1;try{i=ISe(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),e.format)if(u.preventDefault(),typeof u.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=zM[e.format]||zM.default;window.clipboardData.setData(d,t)}else u.clipboardData.clearData(),u.clipboardData.setData(e.format,t);e.onCopy&&(u.preventDefault(),e.onCopy(u.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){r&&console.error("unable to copy using execCommand: ",u),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(d){r&&console.error("unable to copy using clipboardData: ",d),r&&console.error("falling back to prompt"),n=TSe("message"in e?e.message:ASe),window.prompt(n,t)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var jSe=_Se;const RSe=pi(jSe);class Y4{static copyCustom(e){return RSe(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 dI=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,H4={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},np={type:"object",properties:H4,additionalProperties:!1},NSe={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},F0={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({},H4),{like:np,dislike:np,satisfied:np,neutral:np,dissatisfied:np}),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:NSe},additionalProperties:!1}},additionalProperties:!1},DSe={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"}},required:["languages"],additionalProperties:!1},J4={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},VM={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:F0,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:J4,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:DSe,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},du={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},MSe={type:"object",properties:{name:{type:"string"},items:du,queries:du,mutations:du,subscriptions:du,types:du,directives:du},required:["name"],additionalProperties:!1},LSe={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:MSe},otherItemsGroupName:{type:"string"}}},Hb={type:"object",properties:{menu:{type:"object",properties:Object.assign({},LSe.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:J4,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:F0},additionalProperties:!1},QSe={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},zSe={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"}}},BM={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},VSe={type:"object",properties:{beforeInfo:{type:"array",items:BM},end:{type:"array",items:BM}}},ql={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},sy={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},BSe={type:"object",properties:W0(ql.properties,["light","dark"])},FSe={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"}}},WSe={type:"object",properties:{error:sy,info:sy,redirect:sy,success:sy}},qSe={type:"object",properties:yf(ql.properties,["dark"])},USe={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},XSe={type:"object",properties:{accent:ql,border:BSe,error:ql,http:FSe,primary:ql,responses:WSe,secondary:qSe,success:ql,text:USe,tonalOffset:{type:"number"},warning:ql}},ay={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},ZSe={type:"object",properties:{small:ay,medium:ay,large:ay,xlarge:ay}},$s={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},GSe={type:"object",properties:Object.assign(Object.assign({},yf($s.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:ZSe})},FM={type:"object",properties:W0($s.properties,["fontSize","lineHeight"])},YSe={type:"object",properties:{medium:FM,small:FM}},HSe={type:"object",properties:Object.assign(Object.assign({},yf($s.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:YSe})},JSe={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},KSe={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},WM={type:"object",properties:{fullWidth:{type:"boolean"}}},e1e={type:"object",properties:{buttons:GSe,httpBadges:HSe,layoutControls:JSe,panels:KSe,tryItButton:WM,tryItSendButton:WM}},Jb={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},t1e={type:"object",properties:{maxWidth:Jb}},r1e={type:"object",properties:{maxWidth:Jb,middlePanelMaxWidth:Jb}},n1e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:t1e,"three-panel":r1e}},qM={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},i1e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:qM,defaultDetailsWidth:{type:"string"},examples:qM,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},K4={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},o1e={type:"object",properties:W0(K4.properties,["textTransform"])},s1e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},a1e={type:"object",properties:Object.assign(Object.assign({},yf($s.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:K4,level1items:o1e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:s1e,textColor:{type:"string"},width:{type:"string"}})},ly={type:"object",properties:Object.assign(Object.assign({},$s.properties),{color:{type:"string"},transform:{type:"string"}})},l1e={type:"object",properties:Object.assign(Object.assign({},$s.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"}})},c1e={type:"object",properties:yf($s.properties,["fontSize"])},u1e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},d1e={type:"object",properties:Object.assign(Object.assign({code:l1e,fieldName:$s},W0($s.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:ly,heading2:ly,heading3:ly,headings:c1e,lineHeight:{type:"string"},links:u1e,optimizeSpeed:{type:"boolean"},rightPanelHeading:ly,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},f1e={type:"object",properties:Object.assign({color:{type:"string"}},yf($s.properties,["fontWeight"]))},p1e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:f1e}},h1e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},m1e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},UM={type:"object",properties:{custom:{type:"string"}}},g1e={type:"object",properties:{DownloadButton:UM,NextSectionButton:UM}},y1e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},v1e={type:"object",properties:{borderRadius:{type:"string"}}},b1e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},O1e={type:"object",properties:{breakpoints:Jb,codeBlock:p1e,colors:XSe,components:e1e,layout:n1e,logo:h1e,fab:m1e,overrides:g1e,rightPanel:y1e,schema:i1e,shape:v1e,sidebar:a1e,spacing:b1e,typography:d1e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},x1e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:QSe}},required:["languages"]},w1e={properties:{theme:O1e,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:x1e,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:zSe,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:VSe,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 W0(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function yf(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const Ea={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},fI={rules:Ea,oas2Rules:Ea,oas3_0Rules:Ea,oas3_1Rules:Ea,async2Rules:Ea,async3Rules:Ea,arazzo1Rules:Ea,overlay1Rules:Ea},pI={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}},hI={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}},Yr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},XM={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},IS={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"}}}},mI={type:"array",items:Object.assign(Object.assign({},IS),{properties:Object.assign(Object.assign({},IS.properties),{items:{type:"array",items:IS}})})},S1e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},C1e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},P1e={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}},$1e={type:"object",properties:Object.assign({facets:P1e},Yr.properties),additionalProperties:!1},k1e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},eX={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},tX={type:"object",properties:Object.assign({items:mI},Yr.properties),additionalProperties:!1},rX={type:"object",additionalProperties:S1e},nX={type:"object",properties:Object.assign({items:mI,copyrightText:{type:"string"},logo:Yr},Yr.properties),additionalProperties:!1},iX={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Yr.properties),additionalProperties:!1},oX={type:"object",properties:{head:{type:"array",items:XM},body:{type:"array",items:XM}},additionalProperties:!1},sX={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}},aX={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:C1e,filters:$1e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:k1e}},Yr.properties),additionalProperties:!1},lX={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Yr.properties),additionalProperties:!1},E1e={type:"object",properties:Object.assign(Object.assign({},Yr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},cX={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Yr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Yr.properties),additionalProperties:!1,default:{}},actions:E1e},additionalProperties:!1},uX={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Yr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Yr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Yr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Yr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},dX={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"}},Yr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Yr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Yr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Kb=Object.assign(Object.assign({},VM),{properties:Object.assign(Object.assign({},VM.properties),w1e.properties)}),I1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},A1e={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"]},T1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},_1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},j1e={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"]},R1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},N1e={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"]},fX={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"]},D1e={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:fX}},additionalProperties:!1,required:["trackingId"]},pX={type:"object",properties:{adobe:I1e,amplitude:A1e,fullstory:T1e,heap:_1e,rudderstack:j1e,segment:R1e,gtm:N1e,ga:D1e}},hX={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"}},Yr.properties),additionalProperties:!1},mX={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},gX={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},M1e={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"}}}},L1e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:M1e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:mI,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},eO={type:"object",patternProperties:{".*":L1e}},yX={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"}}},fI),pI),hI),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"}}}},Q1e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},z1e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},V1e={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},Ia={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:z1e},excludes:{type:"array",items:Q1e},filters:{type:"array",items:V1e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},vX={type:"object",properties:{catalogs:{type:"object",properties:{all:Ia,services:Ia,domains:Ia,teams:Ia,users:Ia,apiDescriptions:Ia,dataSchemas:Ia,apiOperations:Ia},additionalProperties:!1}},additionalProperties:!1},Go={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:eX,navbar:tX,products:rX,footer:nX,sidebar:iX,scripts:oX,links:sX,feedback:F0,search:aX,colorMode:lX,navigation:cX,codeSnippet:uX,markdown:dX,openapi:Kb,graphql:Hb,analytics:pX,userMenu:hX,versionPicker:mX,breadcrumbs:gX,catalog:eO,entitiesCatalog:vX,catalogClassic:eO,scorecard:yX},additionalProperties:!0},B1e="https://redocly.com/sso/teams";var tO;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(tO||(tO={}));var rO;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(rO||(rO={}));var ZM;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(ZM||(ZM={}));function UP(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"?UP(i,e):i)]:[r,UP(n,e)]}).filter(Boolean))}const F1e={type:"object",additionalProperties:{type:"string"}},W1e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},cy={type:"string",enum:["error","warn","off"]},q1e={type:"object",additionalProperties:!1,properties:{schemaCheck:cy,statusCodeCheck:cy,contentTypeCheck:cy,successCriteriaCheck:cy}},U1e={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},X1e={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Z1e={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},projectUrl:{type:"string",format:"uri"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[U1e,X1e]},inputs:F1e,servers:W1e,severity:q1e},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},G1e={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},Y1e={type:"object",properties:{type:{type:"string",const:tO.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:G1e,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},H1e={type:"object",properties:{type:{type:"string",const:tO.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:B1e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},J1e={oneOf:[Y1e,H1e],discriminator:{propertyName:"type"}},K1e={type:"object",additionalProperties:J1e},eCe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},tCe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},rCe={type:"object",additionalProperties:tCe,default:{}},bX={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:Kb,graphql:Hb,theme:{type:"object",properties:{openapi:Kb,graphql:Hb},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},fI),pI),hI),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},nCe={type:"object",additionalProperties:!0},iCe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},GM={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},YM={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:GM},default:{llmstxt:GM.default},additionalProperties:!1},oCe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Rl={type:"object",additionalProperties:{type:"string"}},sCe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Rl,cms:Rl,reunite:Rl,features:{type:"object",properties:{aiSearch:Rl},additionalProperties:!1},content:{type:"object",properties:{"**":Rl},additionalProperties:Rl}},additionalProperties:Rl},aCe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},lCe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},cCe={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:[aCe,lCe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},uCe={type:"object",properties:{type:{type:"string",const:rO.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},dCe={type:"object",properties:{type:{type:"string",const:rO.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},XP={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:[uCe,dCe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},fCe=Object.assign(Object.assign({},XP),{properties:Object.assign(Object.assign({},XP.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),pCe={type:"object",oneOf:[XP,fCe,cCe],discriminator:{propertyName:"type"}},hCe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:pCe}}},HM={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"]},mCe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ZP={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:rCe,seo:YM,rbac:sCe,apiFunctions:oCe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:mCe}},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:bX},extends:{type:"array",items:{type:"string"}}},fI),hI),pI),{ssoDirect:K1e,sso:eCe,residency:{type:"string"},developerOnboarding:hCe,removeAttribution:{type:"boolean"},i18n:HM,l10n:HM,metadata:nCe,metadataGlobs:iCe,ignore:{type:"array",items:{type:"string"}},theme:Go,reunite:Z1e,logo:eX,navbar:tX,products:rX,footer:nX,sidebar:iX,scripts:oX,links:sX,feedback:F0,search:aX,colorMode:lX,navigation:cX,codeSnippet:uX,markdown:dX,openapi:Kb,graphql:Hb,analytics:pX,userMenu:hX,versionPicker:mX,breadcrumbs:gX,catalog:eO,entitiesCatalog:vX,catalogClassic:eO,scorecard:yX}),default:{redirects:{},seo:YM.default},additionalProperties:!0},gCe=Object.assign(Object.assign({},UP(ZP,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},ZP),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ZP.properties),{env:{type:"object",additionalProperties:gCe}}),default:{},additionalProperties:!1});const JM={type:"object",properties:{logo:Go.properties.logo,navbar:Go.properties.navbar,footer:Go.properties.footer,sidebar:Go.properties.sidebar,search:Go.properties.search,codeSnippet:Go.properties.codeSnippet,breadcrumbs:Go.properties.breadcrumbs,openapi:Go.properties.openapi,feedback:Go.properties.feedback,analytics:{type:"object",properties:{ga:fX}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},JM.properties),{apis:{type:"object",additionalProperties:bX},theme:JM});const yCe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var OX={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
510
|
+
`;var ESe=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()}},ISe=ESe,zM={"text/plain":"Text","text/html":"Url",default:"Text"},ASe="Copy to clipboard: #{key}, Enter";function TSe(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function _Se(t,e){var r,n,i,o,s,a,l=!1;e||(e={}),r=e.debug||!1;try{i=ISe(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),e.format)if(u.preventDefault(),typeof u.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=zM[e.format]||zM.default;window.clipboardData.setData(d,t)}else u.clipboardData.clearData(),u.clipboardData.setData(e.format,t);e.onCopy&&(u.preventDefault(),e.onCopy(u.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){r&&console.error("unable to copy using execCommand: ",u),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(d){r&&console.error("unable to copy using clipboardData: ",d),r&&console.error("falling back to prompt"),n=TSe("message"in e?e.message:ASe),window.prompt(n,t)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var jSe=_Se;const RSe=pi(jSe);class Y4{static copyCustom(e){return RSe(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 dI=(t,e="currentColor")=>t!=null&&t.startsWith("--")?`var(${t})`:t||e,H4={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},np={type:"object",properties:H4,additionalProperties:!1},NSe={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},F0={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({},H4),{like:np,dislike:np,satisfied:np,neutral:np,dissatisfied:np}),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:NSe},additionalProperties:!1}},additionalProperties:!1},DSe={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},J4={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},VM={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:F0,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:J4,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:DSe,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},du={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},MSe={type:"object",properties:{name:{type:"string"},items:du,queries:du,mutations:du,subscriptions:du,types:du,directives:du},required:["name"],additionalProperties:!1},LSe={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:MSe},otherItemsGroupName:{type:"string"}}},Hb={type:"object",properties:{menu:{type:"object",properties:Object.assign({},LSe.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:J4,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:F0},additionalProperties:!1},QSe={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},zSe={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"}}},BM={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},VSe={type:"object",properties:{beforeInfo:{type:"array",items:BM},end:{type:"array",items:BM}}},ql={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},sy={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},BSe={type:"object",properties:W0(ql.properties,["light","dark"])},FSe={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"}}},WSe={type:"object",properties:{error:sy,info:sy,redirect:sy,success:sy}},qSe={type:"object",properties:yf(ql.properties,["dark"])},USe={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},XSe={type:"object",properties:{accent:ql,border:BSe,error:ql,http:FSe,primary:ql,responses:WSe,secondary:qSe,success:ql,text:USe,tonalOffset:{type:"number"},warning:ql}},ay={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},ZSe={type:"object",properties:{small:ay,medium:ay,large:ay,xlarge:ay}},$s={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},GSe={type:"object",properties:Object.assign(Object.assign({},yf($s.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:ZSe})},FM={type:"object",properties:W0($s.properties,["fontSize","lineHeight"])},YSe={type:"object",properties:{medium:FM,small:FM}},HSe={type:"object",properties:Object.assign(Object.assign({},yf($s.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:YSe})},JSe={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},KSe={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},WM={type:"object",properties:{fullWidth:{type:"boolean"}}},e1e={type:"object",properties:{buttons:GSe,httpBadges:HSe,layoutControls:JSe,panels:KSe,tryItButton:WM,tryItSendButton:WM}},Jb={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},t1e={type:"object",properties:{maxWidth:Jb}},r1e={type:"object",properties:{maxWidth:Jb,middlePanelMaxWidth:Jb}},n1e={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:t1e,"three-panel":r1e}},qM={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},i1e={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:qM,defaultDetailsWidth:{type:"string"},examples:qM,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},K4={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},o1e={type:"object",properties:W0(K4.properties,["textTransform"])},s1e={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},a1e={type:"object",properties:Object.assign(Object.assign({},yf($s.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:K4,level1items:o1e,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:s1e,textColor:{type:"string"},width:{type:"string"}})},ly={type:"object",properties:Object.assign(Object.assign({},$s.properties),{color:{type:"string"},transform:{type:"string"}})},l1e={type:"object",properties:Object.assign(Object.assign({},$s.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"}})},c1e={type:"object",properties:yf($s.properties,["fontSize"])},u1e={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},d1e={type:"object",properties:Object.assign(Object.assign({code:l1e,fieldName:$s},W0($s.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:ly,heading2:ly,heading3:ly,headings:c1e,lineHeight:{type:"string"},links:u1e,optimizeSpeed:{type:"boolean"},rightPanelHeading:ly,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},f1e={type:"object",properties:Object.assign({color:{type:"string"}},yf($s.properties,["fontWeight"]))},p1e={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:f1e}},h1e={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},m1e={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},UM={type:"object",properties:{custom:{type:"string"}}},g1e={type:"object",properties:{DownloadButton:UM,NextSectionButton:UM}},y1e={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},v1e={type:"object",properties:{borderRadius:{type:"string"}}},b1e={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},O1e={type:"object",properties:{breakpoints:Jb,codeBlock:p1e,colors:XSe,components:e1e,layout:n1e,logo:h1e,fab:m1e,overrides:g1e,rightPanel:y1e,schema:i1e,shape:v1e,sidebar:a1e,spacing:b1e,typography:d1e,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},x1e={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:QSe}},required:["languages"]},w1e={properties:{theme:O1e,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:x1e,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:zSe,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:VSe,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 W0(t,e){return Object.fromEntries(e.filter(r=>r in t).map(r=>[r,t[r]]))}function yf(t,e){return Object.fromEntries(Object.entries(t).filter(([r])=>!e.includes(r)))}const Ea={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},fI={rules:Ea,oas2Rules:Ea,oas3_0Rules:Ea,oas3_1Rules:Ea,async2Rules:Ea,async3Rules:Ea,arazzo1Rules:Ea,overlay1Rules:Ea},pI={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}},hI={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}},Yr={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},XM={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},IS={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"}}}},mI={type:"array",items:Object.assign(Object.assign({},IS),{properties:Object.assign(Object.assign({},IS.properties),{items:{type:"array",items:IS}})})},S1e={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},C1e={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},P1e={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}},$1e={type:"object",properties:Object.assign({facets:P1e},Yr.properties),additionalProperties:!1},k1e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},eX={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},tX={type:"object",properties:Object.assign({items:mI},Yr.properties),additionalProperties:!1},rX={type:"object",additionalProperties:S1e},nX={type:"object",properties:Object.assign({items:mI,copyrightText:{type:"string"},logo:Yr},Yr.properties),additionalProperties:!1},iX={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Yr.properties),additionalProperties:!1},oX={type:"object",properties:{head:{type:"array",items:XM},body:{type:"array",items:XM}},additionalProperties:!1},sX={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}},aX={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:C1e,filters:$1e,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["⌘+K,ctrl+K"]},suggestedPages:{type:"array",items:k1e}},Yr.properties),additionalProperties:!1},lX={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Yr.properties),additionalProperties:!1},E1e={type:"object",properties:Object.assign(Object.assign({},Yr.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},cX={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Yr.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Yr.properties),additionalProperties:!1,default:{}},actions:E1e},additionalProperties:!1},uX={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Yr.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Yr.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Yr.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Yr.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},dX={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"}},Yr.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Yr.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Yr.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Kb=Object.assign(Object.assign({},VM),{properties:Object.assign(Object.assign({},VM.properties),w1e.properties)}),I1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},A1e={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"]},T1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},_1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},j1e={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"]},R1e={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},N1e={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"]},fX={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"]},D1e={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:fX}},additionalProperties:!1,required:["trackingId"]},pX={type:"object",properties:{adobe:I1e,amplitude:A1e,fullstory:T1e,heap:_1e,rudderstack:j1e,segment:R1e,gtm:N1e,ga:D1e}},hX={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"}},Yr.properties),additionalProperties:!1},mX={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},gX={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},M1e={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"}}}},L1e={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:M1e},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:mI,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},eO={type:"object",patternProperties:{".*":L1e}},yX={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"}}},fI),pI),hI),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"}}}},Q1e={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},z1e={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},V1e={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},Ia={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:z1e},excludes:{type:"array",items:Q1e},filters:{type:"array",items:V1e},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},vX={type:"object",properties:{catalogs:{type:"object",properties:{all:Ia,services:Ia,domains:Ia,teams:Ia,users:Ia,apiDescriptions:Ia,dataSchemas:Ia,apiOperations:Ia},additionalProperties:!1}},additionalProperties:!1},Go={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:eX,navbar:tX,products:rX,footer:nX,sidebar:iX,scripts:oX,links:sX,feedback:F0,search:aX,colorMode:lX,navigation:cX,codeSnippet:uX,markdown:dX,openapi:Kb,graphql:Hb,analytics:pX,userMenu:hX,versionPicker:mX,breadcrumbs:gX,catalog:eO,entitiesCatalog:vX,catalogClassic:eO,scorecard:yX},additionalProperties:!0},B1e="https://redocly.com/sso/teams";var tO;(function(t){t.OIDC="OIDC",t.SAML2="SAML2"})(tO||(tO={}));var rO;(function(t){t.SERVICE_ACCOUNT="SERVICE_ACCOUNT",t.OAUTH2="OAUTH2"})(rO||(rO={}));var ZM;(function(t){t.STACKED="stacked",t.THREE_PANEL="three-panel"})(ZM||(ZM={}));function UP(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"?UP(i,e):i)]:[r,UP(n,e)]}).filter(Boolean))}const F1e={type:"object",additionalProperties:{type:"string"}},W1e={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},cy={type:"string",enum:["error","warn","off"]},q1e={type:"object",additionalProperties:!1,properties:{schemaCheck:cy,statusCodeCheck:cy,contentTypeCheck:cy,successCriteriaCheck:cy}},U1e={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},X1e={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Z1e={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},projectUrl:{type:"string",format:"uri"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[U1e,X1e]},inputs:F1e,servers:W1e,severity:q1e},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},G1e={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},Y1e={type:"object",properties:{type:{type:"string",const:tO.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:G1e,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},H1e={type:"object",properties:{type:{type:"string",const:tO.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:B1e},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},J1e={oneOf:[Y1e,H1e],discriminator:{propertyName:"type"}},K1e={type:"object",additionalProperties:J1e},eCe={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},tCe={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},rCe={type:"object",additionalProperties:tCe,default:{}},bX={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:Kb,graphql:Hb,theme:{type:"object",properties:{openapi:Kb,graphql:Hb},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},fI),pI),hI),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},nCe={type:"object",additionalProperties:!0},iCe={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},GM={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},YM={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:GM},default:{llmstxt:GM.default},additionalProperties:!1},oCe={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Rl={type:"object",additionalProperties:{type:"string"}},sCe={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Rl,cms:Rl,reunite:Rl,features:{type:"object",properties:{aiSearch:Rl},additionalProperties:!1},content:{type:"object",properties:{"**":Rl},additionalProperties:Rl}},additionalProperties:Rl},aCe={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},lCe={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},cCe={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:[aCe,lCe]}},additionalProperties:!1,required:["type","apiBaseUrl"]},uCe={type:"object",properties:{type:{type:"string",const:rO.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},dCe={type:"object",properties:{type:{type:"string",const:rO.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},XP={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:[uCe,dCe],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},fCe=Object.assign(Object.assign({},XP),{properties:Object.assign(Object.assign({},XP.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),pCe={type:"object",oneOf:[XP,fCe,cCe],discriminator:{propertyName:"type"}},hCe={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:pCe}}},HM={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"]},mCe={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ZP={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:rCe,seo:YM,rbac:sCe,apiFunctions:oCe,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:mCe}},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:bX},extends:{type:"array",items:{type:"string"}}},fI),hI),pI),{ssoDirect:K1e,sso:eCe,residency:{type:"string"},developerOnboarding:hCe,removeAttribution:{type:"boolean"},i18n:HM,l10n:HM,metadata:nCe,metadataGlobs:iCe,ignore:{type:"array",items:{type:"string"}},theme:Go,reunite:Z1e,logo:eX,navbar:tX,products:rX,footer:nX,sidebar:iX,scripts:oX,links:sX,feedback:F0,search:aX,colorMode:lX,navigation:cX,codeSnippet:uX,markdown:dX,openapi:Kb,graphql:Hb,analytics:pX,userMenu:hX,versionPicker:mX,breadcrumbs:gX,catalog:eO,entitiesCatalog:vX,catalogClassic:eO,scorecard:yX}),default:{redirects:{},seo:YM.default},additionalProperties:!0},gCe=Object.assign(Object.assign({},UP(ZP,"default")),{additionalProperties:!1});Object.assign(Object.assign({$id:"root-redocly-config"},ZP),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ZP.properties),{env:{type:"object",additionalProperties:gCe}}),default:{},additionalProperties:!1});const JM={type:"object",properties:{logo:Go.properties.logo,navbar:Go.properties.navbar,footer:Go.properties.footer,sidebar:Go.properties.sidebar,search:Go.properties.search,codeSnippet:Go.properties.codeSnippet,breadcrumbs:Go.properties.breadcrumbs,openapi:Go.properties.openapi,feedback:Go.properties.feedback,analytics:{type:"object",properties:{ga:fX}}},additionalProperties:!0,default:{}};Object.assign(Object.assign({},JM.properties),{apis:{type:"object",additionalProperties:bX},theme:JM});const yCe={"font-awesome":"https://cdn.redocly.com/icons/fa/7.0.0",code:"https://cdn.redocly.com/icons/code/5.24.0"};var OX={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
511
511
|
* @license MIT */(function(t,e){(function(r,n){t.exports=n()})(fn,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 m,y;for(m in g)y=g[m],y!==void 0&&g.hasOwnProperty(m)&&(n[m]=y);return this},r.status=null,r.set=function(g){var m=r.isStarted();g=i(g,n.minimum,1),r.status=g===1?null:g;var y=r.render(!m),v=y.querySelector(n.barSelector),b=n.speed,O=n.easing;return y.offsetWidth,a(function(w){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(),w()},b)},b)):setTimeout(w,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 m=r.status;return m?(typeof g!="number"&&(g=(1-m)*i(Math.random()*m,.1,.95)),m=i(m+g,0,.994),r.set(m)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var g=0,m=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(m===0&&r.start(),g++,m++,y.always(function(){m--,m===0?(g=0,r.done()):r.set((g-m)/g)}),this)}}(),r.render=function(g){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=n.template;var y=m.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=m.querySelector(n.spinnerSelector),O&&p(O)),b!=document.body&&u(b,"nprogress-custom-parent"),b.appendChild(m),m},r.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(n.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&p(g)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var g=document.body.style,m="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return m+"Perspective"in g?"translate3d":m+"Transform"in g?"translate":"margin"};function i(g,m,y){return g<m?m:g>y?y:g}function o(g){return(-1+g)*100}function s(g,m,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 "+m+"ms "+y,v}var a=function(){var g=[];function m(){var y=g.shift();y&&y(m)}return function(y){g.push(y),g.length==1&&m()}}(),l=function(){var g=["Webkit","O","Moz","ms"],m={};function y(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,C){return C.toUpperCase()})}function v(w){var x=document.body.style;if(w in x)return w;for(var C=g.length,P=w.charAt(0).toUpperCase()+w.slice(1),N;C--;)if(N=g[C]+P,N in x)return N;return w}function b(w){return w=y(w),m[w]||(m[w]=v(w))}function O(w,x,C){x=b(x),w.style[x]=C}return function(w,x){var C=arguments,P,N;if(C.length==2)for(P in x)N=x[P],N!==void 0&&x.hasOwnProperty(P)&&O(w,P,N);else O(w,C[1],C[2])}}();function c(g,m){var y=typeof g=="string"?g:f(g);return y.indexOf(" "+m+" ")>=0}function u(g,m){var y=f(g),v=y+m;c(y,m)||(g.className=v.substring(1))}function d(g,m){var y=f(g),v;c(g,m)&&(v=y.replace(" "+m+" "," "),g.className=v.substring(1,v.length-1))}function f(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function p(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return r})})(OX);var vCe=OX.exports;const bCe=pi(vCe);bCe.configure({trickleSpeed:100,template:'<div class="bar" role="bar"><div class="peg"></div></div>'});var OCe={exports:{}};(function(t,e){(function(r,n){n()})(fn,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 fn=="object"&&fn.global===fn?fn: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,p=document.createElement("a");u=u||c.name||"download",p.download=u,p.rel="noopener",typeof c=="string"?(p.href=c,p.origin===location.origin?o(p):i(p.href)?n(c,u,d):o(p,p.target="_blank")):(p.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(p.href)},4e4),setTimeout(function(){o(p)},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 p=c.type==="application/octet-stream",g=/constructor/i.test(s.HTMLElement)||s.safari,m=/CriOS\/[\d]+/.test(navigator.userAgent);if((m||p&&g||a)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var O=y.result;O=m?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})})(OCe);const xCe=t=>{const{name:e,type:r,pack:n,mode:i,color:o,...s}=t,a=yCe[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?dI(o):"currentColor",maskImage:`url(${a}/${l}${e}.svg)`,maskRepeat:"no-repeat",maskPosition:"center",maskSize:"contain"};return h.jsx("svg",{...s,style:{...c,display:"inline-block",verticalAlign:"middle"}})};I(xCe).attrs(()=>({"data-component-name":"icons/CDNIcon/CDNIcon"}))`
|
|
512
512
|
height: ${({size:t})=>t||"var(--icon-height, 1em)"};
|
|
513
513
|
width: ${({size:t})=>t||"var(--icon-width, 1em)"};
|
|
@@ -1458,7 +1458,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1458
1458
|
&:hover {
|
|
1459
1459
|
background-color: var(--bg-color-hover);
|
|
1460
1460
|
}
|
|
1461
|
-
`;function LIe({step:t}){function e(r){t.description.set(r.target.value)}return h.jsx(h.Fragment,{children:h.jsxs(i9,{children:[h.jsxs(Ha,{children:[h.jsx(s$,{name:h.jsxs(h.Fragment,{children:["Step ID",h.jsx(ms,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),h.jsx(AIe,{step:t})]}),h.jsxs(Ha,{children:[h.jsxs(Wd,{children:["Description",h.jsx(ms,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),h.jsx(o9,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),h.jsx(Ha,{children:h.jsx(s9,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),h.jsx(Ha,{children:h.jsx(bIe,{successCriteria:t.successCriteria})})]})})}function QIe({onParameterChange:t,files:e}){const r=R.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(mf())try{const{open:l}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1461
|
+
`;function LIe({step:t}){function e(r){t.description.set(r.target.value)}return h.jsx(h.Fragment,{children:h.jsxs(i9,{children:[h.jsxs(Ha,{children:[h.jsx(s$,{name:h.jsxs(h.Fragment,{children:["Step ID",h.jsx(ms,{tooltipProps:{content:"This step's unique identifier",placement:"right"}})]}),editorTitle:"Change step ID",attribute:t.stepId}),h.jsx(AIe,{step:t})]}),h.jsxs(Ha,{children:[h.jsxs(Wd,{children:["Description",h.jsx(ms,{tooltipProps:{content:"A brief explanation of the purpose and function of this step in workflow.",placement:"right"}})]}),h.jsx(o9,{"data-testid":"step-description-input",rows:3,value:t.description.get()||"",onChange:e})]}),h.jsx(Ha,{children:h.jsx(s9,{outputs:t.outputs,tooltipText:"Data generated in this step that can be used in the next steps."})}),h.jsx(Ha,{children:h.jsx(bIe,{successCriteria:t.successCriteria})})]})})}function QIe({onParameterChange:t,files:e}){const r=R.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(mf())try{const{open:l}=await Promise.resolve().then(()=>require("./replay-index-BTG8A1Aq.js")),c=await l({multiple:!0});if(!c)return;const d=(Array.isArray(c)?c:[c]).map(bm),p=(await Promise.all(d)).filter(g=>g!==null);t(p)}catch(l){console.error("Failed to open file dialog or read file:",l)}else(a=r.current)==null||a.click()},o=R.useCallback(()=>{t(null)},[t]),s=R.useMemo(()=>{if(!e)return null;if(e.length===1)return h.jsx(UL,{icon:h.jsx(Q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:h.jsx(XL,{children:e[0].file.name})});if(e.length>1)return h.jsx(UL,{icon:h.jsx(Q.CloseIcon,{}),variant:"secondary",onClick:o,iconPosition:"right",size:"small",children:h.jsxs(XL,{children:[e.length," files"]})})},[e,o]);return h.jsx(zIe,{children:h.jsxs(VIe,{children:[h.jsx(BIe,{children:s||h.jsx(WIe,{children:"Add files here"})}),h.jsxs(FIe,{children:[h.jsx(SSe,{onClick:i,variant:"text","data-testid":"add-button",icon:h.jsx(Q.AddIcon,{color:"--text-color-secondary"})}),h.jsx("input",{"data-testid":"file-input",hidden:!0,ref:r,type:"file",multiple:!0,accept:"files/*",onChange:n})]})]})})}const zIe=I.div`
|
|
1462
1462
|
position: relative;
|
|
1463
1463
|
display: flex;
|
|
1464
1464
|
flex-grow: 1;
|
|
@@ -1583,7 +1583,7 @@ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An err
|
|
|
1583
1583
|
`,iAe=I.div`
|
|
1584
1584
|
display: flex;
|
|
1585
1585
|
justify-content: center;
|
|
1586
|
-
`;function oAe({data:t,type:e,editable:r}){const n=yr(),i=t[e];function o(a,l){l&&i.merge([cc()])}function s(a){i[a].set(nt)}return h.jsx(UIe,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==In["application/x-www-form-urlencoded"],editable:r,actions:a=>h.jsx(gn,{onClick:()=>s(a),variant:"text",icon:h.jsx(Q.TrashCanIcon,{})})})}const sAe=({data:t})=>{var c,u;const e=t.get(),[r,n]=R.useState(!1),i=R.useRef(null),o=d=>{var p;const f=(p=d.target.files)==null?void 0:p[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(),mf())try{const{open:p}=await Promise.resolve().then(()=>require("./replay-index-
|
|
1586
|
+
`;function oAe({data:t,type:e,editable:r}){const n=yr(),i=t[e];function o(a,l){l&&i.merge([cc()])}function s(a){i[a].set(nt)}return h.jsx(UIe,{keyName:"Param",formElements:i,onParameterChange:o,environment:n,enableInputTypeSelection:e!==In["application/x-www-form-urlencoded"],editable:r,actions:a=>h.jsx(gn,{onClick:()=>s(a),variant:"text",icon:h.jsx(Q.TrashCanIcon,{})})})}const sAe=({data:t})=>{var c,u;const e=t.get(),[r,n]=R.useState(!1),i=R.useRef(null),o=d=>{var p;const f=(p=d.target.files)==null?void 0:p[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(),mf())try{const{open:p}=await Promise.resolve().then(()=>require("./replay-index-BTG8A1Aq.js")),g=await p();if(!g)return;const m=await bm(g);t.set(m)}catch(p){console.error("Failed to open file dialog or read file:",p)}else(f=i.current)==null||f.click()},a=d=>{d.key==="Enter"&&(d.preventDefault(),s())},l=()=>{t.set(null)};return r?h.jsxs(aAe,{children:[h.jsx(Q.SpinnerIcon,{}),"Loading..."]}):e&&((c=e.file)!=null&&c.name)?h.jsxs(lAe,{children:[h.jsxs(cAe,{children:[h.jsx(Q.DocumentBlankIcon,{size:"16px"}),h.jsx(uAe,{children:(u=e.file)==null?void 0:u.name})]}),h.jsx(gn,{onClick:l,icon:h.jsx(Q.TrashCanIcon,{})})]}):h.jsx(c9,{children:!e&&h.jsxs(dAe,{tabIndex:0,role:"button",onKeyDown:a,onClick:s,children:[h.jsx("input",{type:"file",onChange:o,ref:i}),h.jsx(Q.CloudUploadIcon,{}),"Upload file"]})})},c9=I.div`
|
|
1587
1587
|
display: flex;
|
|
1588
1588
|
align-items: center;
|
|
1589
1589
|
justify-content: flex-start;
|
|
@@ -2470,7 +2470,7 @@ ${y}`,location:m};g&&(v.forceSeverity=g),l.report(v)}}})}}};return t.schemas!="o
|
|
|
2470
2470
|
${s.message}`,location:n.child("operationId").key()})}}}}),w6=({tagNames:t})=>({Tag:{leave(e,{report:r,config:n}){if(!t)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');const i=t[e.name];if(i)try{e.description=nA(rm(i,n==null?void 0:n.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${e.name}".
|
|
2471
2471
|
${o.message}`})}}}}),S6=({filePath:t})=>({Info:{leave(e,{report:r,location:n,config:i}){if(!t)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{e.description=nA(rm(t,i==null?void 0:i.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
|
|
2472
2472
|
${o.message}`,location:n.child("description")})}}}}),C6=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)}}}),LZe="x-internal",P6=({internalFlagProperty:t=LZe})=>{function e(n,i,o){var c,u,d,f,p;const{parent:s,key:a}=i;let l=!1;if(Array.isArray(n))for(let g=0;g<n.length;g++){if(_r(n[g])&&(c=i.resolve(n[g]).node)!=null&&c[t]){if(ut((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(ut(n))for(const g of Object.keys(n)){if(_r(n[g])){const m=i.resolve(n[g]);ut(m.node)&&((f=m.node)!=null&&f[t])&&(delete n[g],l=!0)}ut(n[g])&&((p=n[g])!=null&&p[t])&&(delete n[g],l=!0)}l&&(tm(n)||nG(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 $6(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(_r(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(ut(t))for(const s of Object.keys(t)){if(t=t,_r(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&&(tm(t)||nG(t))&&delete n[i]}function k6(t,e,r){return t===void 0||e===void 0?!1:!Array.isArray(e)&&!Array.isArray(t)?t===e:(e=Uz(e),t=Uz(t),r==="any"?e.some(n=>t.includes(n)):r==="all"?e.every(n=>t.includes(n)):!1)}function Uz(t){return Array.isArray(t)?t:[t]}const QZe="any",E6=({property:t,value:e,matchStrategy:r})=>{const n=r||QZe,i=o=>(o==null?void 0:o[t])&&!k6(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{$6(o,s,i)}}}},zZe="any",I6=({property:t,value:e,matchStrategy:r})=>{const n=r||zZe,i=o=>k6(o==null?void 0:o[t],e,n);return{any:{enter:(o,s)=>{$6(o,s,i)}}}},VZe=({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=Xz(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:SQ(rm(l,(c=r.config)==null?void 0:c.configPath))}}),e.responses[o]=s)}if(i.request&&e.requestBody){const o=Xz(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:SQ(rm(a,(l=r.config)==null?void 0:l.configPath))}}),e.requestBody=o}}}}});function Xz(t,e){if(!_r(t))return t;const r=e(t);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const BZe={"operation-description-override":x6,"tag-description-override":w6,"info-description-override":S6,"info-override":C6,"remove-x-internal":P6,"filter-in":E6,"filter-out":I6,"media-type-examples-override":VZe},FZe={"operation-description-override":x6,"tag-description-override":w6,"info-description-override":S6,"info-override":C6,"remove-x-internal":P6,"filter-in":E6,"filter-out":I6},WZe={},qZe={},UZe={},XZe={},ZZe={recommended:X3e,"recommended-strict":Z3e,minimal:Y3e,all:G3e,spec:H3e},Zz={id:"",rules:{oas3:tZe,oas2:aZe,async2:dZe,async3:mZe,arazzo1:RZe,overlay1:DZe},preprocessors:{oas3:rZe,oas2:lZe,async2:fZe,async3:gZe,arazzo1:NZe,overlay1:MZe},decorators:{oas3:BZe,oas2:FZe,async2:WZe,async3:qZe,arazzo1:UZe,overlay1:XZe},configs:ZZe},GZe={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function ef(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 p of Object.values(a.properties)){if(p===l){f(s,u);continue}typeof p=="object"&&p!==null&&p.name&&d.add(p)}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(hc);for(const p of Array.from(d.values()))n(s,p,l,c,u);function f(p,g){for(const m of g.slice(1))r[m.name]=r[m.name]||{enter:[],leave:[]},r[m.name].enter.push({...p,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,GZe[d]),p=r[d];if(!f)continue;let g,m,y;const v=ut(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,m=f.leave,y=f.skip);const b=(g?1:0)+(m?1:0)+(y?1:0),O=v&&Object.keys(f).length>b,w={activatedOn:null,type:e[d],parent:l,isSkippedLevel:!1};if(O&&o(s,f,w,c+1),l&&n(s,l.type,e[d],l),g||v){if(g&&typeof g!="function")throw new Error("DEV: should be function");p.enter.push({...s,visit:g||(()=>{}),skip:y,depth:c,context:w})}if(m){if(typeof m!="function")throw new Error("DEV: should be function");p.leave.push({...s,visit:m,depth:c,context:w})}}}}function YZe(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 HZe(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 tf(t){const{document:e,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=t,s={},a=new Set;l(e.parsed,r,new pd(e.source,"#/"),void 0,"");function l(c,u,d,f,p){var N,A,z,B,F,G,Z,X,Y,te;const g=(J,ae=y.source.absoluteRef)=>{if(!_r(J))return{location:d,node:J};const M=sh(ae,J.$ref),j=i.get(M);if(!j)return{location:void 0,node:void 0};const{resolved:D,node:E,document:S,nodePointer:$,error:_}=j;return{location:D?new pd(S.source,$):_ instanceof $f?new pd(_.source,""):void 0,node:E,error:_}},m=d;let y=d;const{node:v,location:b,error:O}=g(c),w=new Set;if(_r(c)){const J=n.ref.enter;for(const{visit:ae,ruleId:M,severity:j,message:D,context:E}of J){w.add(E);const S=C.bind(void 0,M,j,D);ae(c,{report:S,resolve:g,rawNode:c,rawLocation:m,location:d,type:u,parent:f,key:p,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,M)},{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 J=(A=(N=s[u.name])==null?void 0:N.has)==null?void 0:A.call(N,v);let ae=!1;const j=n.any.enter.concat(((z=n[u.name])==null?void 0:z.enter)||[]),D=[];for(const{context:$,visit:_,skip:U,ruleId:W,severity:ee,message:ie}of j){if(a.has(`${y.absolutePointer}${y.pointer}`))break;if($.isSkippedLevel)$.parent.activatedOn&&!$.parent.activatedOn.value.nextLevelTypeActivated&&!$.seen.has(c)&&($.seen.add(c),ae=!0,D.push($));else if($.parent&&$.parent.activatedOn&&((B=$.activatedOn)==null?void 0:B.value.withParentNode)!==$.parent.activatedOn.value.node&&((F=$.parent.activatedOn.value.nextLevelTypeActivated)==null?void 0:F.value)!==u||!$.parent&&!J){D.push($);const pe={node:v,location:b,nextLevelTypeActivated:null,withParentNode:(Z=(G=$.parent)==null?void 0:G.activatedOn)==null?void 0:Z.value.node,skipped:(((Y=(X=$.parent)==null?void 0:X.activatedOn)==null?void 0:Y.value.skipped)||(U==null?void 0:U(v,p,{location:d,rawLocation:m,resolve:g,rawNode:c})))??!1};$.activatedOn=xQ($.activatedOn,pe);let re=$.parent;for(;re;)re.activatedOn.value.nextLevelTypeActivated=xQ(re.activatedOn.value.nextLevelTypeActivated,u),re=re.parent;pe.skipped||(ae=!0,w.add($),x(_,v,c,$,W,ee,ie))}}if(ae||!J){if(s[u.name]=s[u.name]||new Set,s[u.name].add(v),Array.isArray(v)){const $=u.items;if($!==void 0){const _=typeof $=="function";for(let U=0;U<v.length;U++){let W=_?$(v[U],b.child([U]).absolutePointer):$,ee=v[U];W!=null&&W.directResolveAs&&(W=W.directResolveAs,ee={$ref:ee}),mc(W)&&l(ee,W,b.child([U]),v,U)}}}else if(typeof v=="object"&&v!==null){const $=Object.keys(u.properties);u.additionalProperties?$.push(...Object.keys(v).filter(_=>!$.includes(_))):u.extensionsPrefix&&$.push(...Object.keys(v).filter(_=>_.startsWith(u.extensionsPrefix))),_r(c)&&$.push(...Object.keys(c).filter(_=>_!=="$ref"&&!$.includes(_)));for(const _ of $){let U=v[_],W=b;U===void 0&&(U=c[_],W=d);let ee=Tm(u.properties,_);ee===void 0&&(ee=u.additionalProperties),typeof ee=="function"&&(ee=ee(U,_)),ee===void 0&&u.extensionsPrefix&&_.startsWith(u.extensionsPrefix)&&(ee=hc),!mc(ee)&&(ee!=null&&ee.directResolveAs)&&(ee=ee.directResolveAs,U={$ref:U}),ee&&ee.name===void 0&&ee.resolvable!==!1&&(ee={name:"scalar",properties:{}}),!(!mc(ee)||ee.name==="scalar"&&!_r(U))&&l(U,ee,W.child([_]),v,_)}}}const E=n.any.leave,S=(((te=n[u.name])==null?void 0:te.leave)||[]).concat(E);for(const $ of D.reverse())if($.isSkippedLevel)$.seen.delete(v);else if($.activatedOn=wQ($.activatedOn),$.parent){let _=$.parent;for(;_;)_.activatedOn.value.nextLevelTypeActivated=wQ(_.activatedOn.value.nextLevelTypeActivated),_=_.parent}for(const{context:$,visit:_,ruleId:U,severity:W,message:ee}of S)!$.isSkippedLevel&&w.has($)&&x(_,v,c,$,U,W,ee)}if(y=d,_r(c)){const J=n.ref.leave;for(const{visit:ae,ruleId:M,severity:j,context:D,message:E}of J)if(w.has(D)){const S=C.bind(void 0,M,j,E);ae(c,{report:S,resolve:g,rawNode:c,rawLocation:m,location:d,type:u,parent:f,key:p,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:P.bind(void 0,M)},{node:v,location:b,error:O})}}function x(J,ae,M,j,D,E,S){const $=C.bind(void 0,D,E,S);J(ae,{report:$,resolve:g,rawNode:M,location:y,rawLocation:m,type:u,parent:f,key:p,parentLocations:HZe(j),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${y.absolutePointer}${y.pointer}`)},getVisitorData:P.bind(void 0,D)},YZe(j),j)}function C(J,ae,M,j){const E=(j.location?Array.isArray(j.location)?j.location:[j.location]:[{...y,reportOnKey:!1}]).map($=>({...y,reportOnKey:!1,...$})),S=j.forceSeverity||ae;S!=="off"&&o.problems.push({ruleId:j.ruleId||J,severity:S,...j,message:M?M.replace("{{message}}",j.message):j.message,suggest:j.suggest||[],location:E})}function P(J){return o.visitorsData[J]=o.visitorsData[J]||{},o.visitorsData[J]}}}function QO(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(mO)}const JZe=()=>{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),tm(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),d=u.split("/").slice(0,3).join("/"),f=`${c}#${d}`,p=t.get(f);p?p.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())}}}},KZe=()=>{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),tm(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),d=u.split("/").slice(0,4).join("/"),f=`${c}#${d}`,p=t.get(f);p?p.usedIn.push(i):t.set(f,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n,[]),tm(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())}}}};function A6({node:t,ctx:e,plugins:r}){if(!t.extends)return t;const n=(t.extends||[]).map(i=>{if(!Xr(i)&&!Ic.extname(i))return p9e(i,r);const o=e.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(Zi);return KH([...n.map(i=>A6({node:i,ctx:e,plugins:r})),{...t,extends:void 0}])}const T6="pluginsCollector";function Iy(t,e){if(ut(t)&&Array.isArray(t.plugins)){const{plugins:r,rootConfigDir:n}=e.getVisitorData();r.push(...t.plugins.map(i=>R6(i,e.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const e9e=ef([{severity:"error",ruleId:T6,visitor:{ref:{},ConfigGovernance:{leave(t,e){Iy(t,e)}},ConfigApisProperties:{leave(t,e){Iy(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){Iy(t,e)}},ConfigRoot:{leave(t,e){Iy(t,e)}}}}],zm),_6="configBundler";function Ay(t,e){if(ut(t)&&t.extends){const{plugins:r}=e.getVisitorData(),n=A6({node:t,ctx:e,plugins:r});Object.assign(t,n),delete t.extends}}const t9e=ef([{severity:"error",ruleId:_6,visitor:{ref:{leave(t,e,r){m$(t,r,e)}},ConfigGovernance:{leave(t,e){Ay(t,e)}},ConfigApisProperties:{leave(t,e){Ay(t,e)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(t,e){Ay(t,e)}},ConfigRoot:{leave(t,e){Ay(t,e)}}}}],zm);function r9e(t,e,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[T6]:n}};return tf({document:t,rootType:zm.ConfigRoot,normalizedVisitors:e9e,resolvedRefMap:e,ctx:i}),n.plugins}function n9e(t,e,r){const n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[_6]:n}};return tf({document:t,rootType:zm.ConfigRoot,normalizedVisitors:t9e,resolvedRefMap:e,ctx:i}),t.parsed??{}}async function i9e(t){var s;const{ref:e,doc:r,externalRefResolver:n=new bx(t.config.resolve),base:i=null}=t;if(!(e||r))throw new Error(`Document or reference is required.
|
|
2473
|
-
`);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),o9e({document:o,...t,externalRefResolver:n})}async function o9e(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=uA(e.parsed),c=aH(l),u=r.getRulesForSpecVersion(c),d=iA(r.extendTypes(n??dA(l),l),r),f=QO(u,r,"preprocessors",l),p=QO(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&p.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?JZe():KZe()});let m=await om({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&(tf({document:e,rootType:d.Root,normalizedVisitors:ef(f,d),resolvedRefMap:m,ctx:g}),m=await om({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=ef([{severity:"error",ruleId:"bundler",visitor:s9e(c,o,e,m,a)},...p],d);return tf({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:m,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 Gz(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 s9e(t,e,r,n,i){let o,s;const a={ref:{leave(f,p,g){if(!g.location||g.node===void 0){fh(g,p.report,p.location);return}if(g.location.source===r.source&&g.location.source===p.location.source&&p.type.name!=="scalar"&&!e||i&&Xr(f.$ref))return;const m=Gz(p.type.name,t);m?e?(c(m,g,p),m$(f,g,p)):(f.$ref=c(m,g,p),l(f,g,p)):m$(f,g,p)}},Example:{leave(f,p){if(eG(f)&&f.value===void 0){const g=p.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){fh(g,p.report,p.location);return}if(i&&Xr(f.externalValue))return;f.value=p.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,p){s=p.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,p){for(const g of Object.keys(f)){const m=f[g],y=p.resolve({$ref:m});if(!y.location||y.node===void 0){fh(y,p.report,p.location.child(g));return}const v=Gz("Schema",t);f[g]=c(v,y,p)}}});function l(f,p,g){const m=sh(g.location.source.absoluteRef,f.$ref);n.set(m,{document:r,isRemote:!1,node:p.node,nodePointer:f.$ref,resolved:!0})}function c(f,p,g){o[f]=o[f]||{};const m=d(p,f,g);return o[f][m]=p.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${m}`:`#/${f}/${m}`}function u(f,p,g){var m;return _r(f)&&((m=g.resolve(f,s.absolutePointer).location)==null?void 0:m.absolutePointer)===p.location.absolutePointer?!0:g$(f,p.node)}function d(f,p,g){const[m,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[p];let b="";const O=y.slice(2).split("/").filter(Zi);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=E2e(m)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const w=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${w}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${w} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const a9e="redocly.yaml";async function j6(t,{configPath:e,externalRefResolver:r}={}){const i=W3e(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await u9e({rawConfigDocument:l9e(i),configPath:e,externalRefResolver:r});return new o_(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function l9e(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}}const c9e=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"],YS=new Map;async function u9e({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?{extends:["recommended"]}:t.parsed;if(n!==void 0&&ut(i)&&(i.extends=n),ut(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(R2e)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Hd(e??"",JSON.stringify(i)),parsed:i},s=await om({rootDocument:o,rootType:zm.ConfigRoot,externalRefResolver:r??new bx(e7(i==null?void 0:i.resolve))});let a=[],l,c="";ri?l=[Zz]:(c=At.dirname(e??""),a=r9e(o,s,c),l=[...await f9e(a.map(g=>Yz(g)?g.absolutePath:g),c),Zz]);const u=n9e(o,V3e(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([p,g])=>{const m=KH([u,g]);return[p,{...g,...m}]})));const d=a.length?a.map(p=>Yz(p)&&p.isModule?p.rawPath:p.absolutePath&&At.relative(c,p.absolutePath)).filter(mO):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function d9e(t){for(const e of c9e)(void 0)(At.resolve(t,e))}function Yz(t){return"isModule"in t}const R6=(t,e,r)=>{if(!Hi(t))return t;const n=At.resolve(At.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:L9.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Ms&&Ms.tagName.toUpperCase()==="SCRIPT"&&Ms.src||new URL("replay-index-
|
|
2473
|
+
`);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),o9e({document:o,...t,externalRefResolver:n})}async function o9e(t){const{document:e,config:r,customTypes:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=t,l=uA(e.parsed),c=aH(l),u=r.getRulesForSpecVersion(c),d=iA(r.extendTypes(n??dA(l),l),r),f=QO(u,r,"preprocessors",l),p=QO(u,r,"decorators",l),g={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}};s&&p.push({severity:"error",ruleId:"remove-unused-components",visitor:c==="oas2"?JZe():KZe()});let m=await om({rootDocument:e,rootType:d.Root,externalRefResolver:i});f.length>0&&(tf({document:e,rootType:d.Root,normalizedVisitors:ef(f,d),resolvedRefMap:m,ctx:g}),m=await om({rootDocument:e,rootType:d.Root,externalRefResolver:i}));const y=ef([{severity:"error",ruleId:"bundler",visitor:s9e(c,o,e,m,a)},...p],d);return tf({document:e,rootType:d.Root,normalizedVisitors:y,resolvedRefMap:m,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 Gz(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 s9e(t,e,r,n,i){let o,s;const a={ref:{leave(f,p,g){if(!g.location||g.node===void 0){fh(g,p.report,p.location);return}if(g.location.source===r.source&&g.location.source===p.location.source&&p.type.name!=="scalar"&&!e||i&&Xr(f.$ref))return;const m=Gz(p.type.name,t);m?e?(c(m,g,p),m$(f,g,p)):(f.$ref=c(m,g,p),l(f,g,p)):m$(f,g,p)}},Example:{leave(f,p){if(eG(f)&&f.value===void 0){const g=p.resolve({$ref:f.externalValue});if(!g.location||g.node===void 0){fh(g,p.report,p.location);return}if(i&&Xr(f.externalValue))return;f.value=p.resolve({$ref:f.externalValue}).node,delete f.externalValue}}},Root:{enter(f,p){s=p.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,p){for(const g of Object.keys(f)){const m=f[g],y=p.resolve({$ref:m});if(!y.location||y.node===void 0){fh(y,p.report,p.location.child(g));return}const v=Gz("Schema",t);f[g]=c(v,y,p)}}});function l(f,p,g){const m=sh(g.location.source.absoluteRef,f.$ref);n.set(m,{document:r,isRemote:!1,node:p.node,nodePointer:f.$ref,resolved:!0})}function c(f,p,g){o[f]=o[f]||{};const m=d(p,f,g);return o[f][m]=p.node,t==="oas3"||t==="async2"||t==="async3"?`#/components/${f}/${m}`:`#/${f}/${m}`}function u(f,p,g){var m;return _r(f)&&((m=g.resolve(f,s.absolutePointer).location)==null?void 0:m.absolutePointer)===p.location.absolutePointer?!0:g$(f,p.node)}function d(f,p,g){const[m,y]=[f.location.source.absoluteRef,f.location.pointer],v=o[p];let b="";const O=y.slice(2).split("/").filter(Zi);for(;O.length>0;)if(b=O.pop()+(b?`-${b}`:""),!v||!v[b]||u(v[b],f,g))return b;if(b=E2e(m)+(b?`_${b}`:""),!v[b]||u(v[b],f,g))return b;const w=b;let x=2;for(;v[b]&&!u(v[b],f,g);)b=`${w}-${x}`,x++;return v[b]||g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${w} to ${b}.`,location:g.location,forceSeverity:"warn"}),b}return a}const a9e="redocly.yaml";async function j6(t,{configPath:e,externalRefResolver:r}={}){const i=W3e(typeof t=="string"?t:"",e??"");typeof t!="string"&&t&&(i.parsed=t);const{resolvedConfig:o,resolvedRefMap:s,plugins:a}=await u9e({rawConfigDocument:l9e(i),configPath:e,externalRefResolver:r});return new o_(o,{configPath:e,document:i,resolvedRefMap:s,plugins:a})}function l9e(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}}const c9e=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"],YS=new Map;async function u9e({rawConfigDocument:t,configPath:e,externalRefResolver:r,customExtends:n}){var f;const i=t===void 0?{extends:["recommended"]}:t.parsed;if(n!==void 0&&ut(i)&&(i.extends=n),ut(i)&&((f=i==null?void 0:i.extends)!=null&&f.some(R2e)))throw new Error("Configuration format not detected in extends: values must be strings.");const o=t??{source:new Hd(e??"",JSON.stringify(i)),parsed:i},s=await om({rootDocument:o,rootType:zm.ConfigRoot,externalRefResolver:r??new bx(e7(i==null?void 0:i.resolve))});let a=[],l,c="";ri?l=[Zz]:(c=At.dirname(e??""),a=r9e(o,s,c),l=[...await f9e(a.map(g=>Yz(g)?g.absolutePath:g),c),Zz]);const u=n9e(o,V3e(s),l);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([p,g])=>{const m=KH([u,g]);return[p,{...g,...m}]})));const d=a.length?a.map(p=>Yz(p)&&p.isModule?p.rawPath:p.absolutePath&&At.relative(c,p.absolutePath)).filter(mO):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:s,plugins:l}}function d9e(t){for(const e of c9e)(void 0)(At.resolve(t,e))}function Yz(t){return"isModule"in t}const R6=(t,e,r)=>{if(!Hi(t))return t;const n=At.resolve(At.dirname(e),t);return(void 0)(n)?{absolutePath:n,rawPath:t,isModule:!1}:{absolutePath:L9.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Ms&&Ms.tagName.toUpperCase()==="SCRIPT"&&Ms.src||new URL("replay-index-BkGfQlWG.js",document.baseURI).href)??__dirname).resolve(t,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Ms&&Ms.tagName.toUpperCase()==="SCRIPT"&&Ms.src||new URL("replay-index-BkGfQlWG.js",document.baseURI).href)?At.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Ms&&Ms.tagName.toUpperCase()==="SCRIPT"&&Ms.src||new URL("replay-index-BkGfQlWG.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:t}};async function f9e(t,e){if(!t)return[];const r=async a=>{var l;if(!Hi(a))return a;try{const c=At.isAbsolute(a)?a:R6(a,At.join(e,a9e),e).absolutePath;if(!YS.has(c)){let u;if(typeof __webpack_require__=="function")u=__non_webpack_require__(c);else{const m=await import((void 0)(c).pathname);u=m.default||m}const d={contentDir:e},f=Array.isArray(u)?u:[u];for(const m of f)m!=null&&m.id&&mz(m)&&Ut.info(`Deprecated plugin format detected: ${m.id}
|
|
2474
2474
|
`);const p=mz(u)?u:B3e(u)?await u(d):await((l=u==null?void 0:u.default)==null?void 0:l.call(u,d)),g=Array.isArray(p)?p:[p];p&&YS.set(c,g.map(m=>({...m,path:a,absolutePath:c})))}return YS.get(c)}catch(c){throw new Error(`Failed to load plugin "${a}": ${c.message}
|
|
2475
2475
|
|
|
2476
2476
|
${c.stack}`)}},n=new Map,i=d9e(e);i&&t.push(i);const o=new Set;return(await Promise.all(t.map(async a=>{if(Hi(a)){if(Xr(a))throw new Error(yt.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(yt.red(`Plugin must define \`id\` property in ${yt.blue(a.toString())}.`));const f=u.absolutePath??a.toString(),p=n.get(d);if(p){if(f!==p)throw new Error(yt.red(`Plugin "id" must be unique. Plugin ${yt.blue(f)} uses id "${yt.blue(d)}" already seen in ${yt.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=qr(u.rules.oas3,d)),u.rules.oas2&&(g.rules.oas2=qr(u.rules.oas2,d)),u.rules.async2&&(g.rules.async2=qr(u.rules.async2,d)),u.rules.async3&&(g.rules.async3=qr(u.rules.async3,d)),u.rules.arazzo1&&(g.rules.arazzo1=qr(u.rules.arazzo1,d)),u.rules.overlay1&&(g.rules.overlay1=qr(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=qr(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(g.preprocessors.oas2=qr(u.preprocessors.oas2,d)),u.preprocessors.async2&&(g.preprocessors.async2=qr(u.preprocessors.async2,d)),u.preprocessors.async3&&(g.preprocessors.async3=qr(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(g.preprocessors.arazzo1=qr(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(g.preprocessors.overlay1=qr(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=qr(u.decorators.oas3,d)),u.decorators.oas2&&(g.decorators.oas2=qr(u.decorators.oas2,d)),u.decorators.async2&&(g.decorators.async2=qr(u.decorators.async2,d)),u.decorators.async3&&(g.decorators.async3=qr(u.decorators.async3,d)),u.decorators.arazzo1&&(g.decorators.arazzo1=qr(u.decorators.arazzo1,d)),u.decorators.overlay1&&(g.decorators.overlay1=qr(u.decorators.overlay1,d))}return u.assertions&&(g.assertions=u.assertions),{...u,...g}}))).filter(mO)}))).filter(mO).flat()}function p9e(t,e){var s;const{pluginId:r,configName:n}=z3e(t),i=e.find(a=>a.id===r);if(!i)throw new Error(`Invalid config ${yt.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 ${yt.red(t)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${yt.red(t)}: there is no such built-in config.`);return o}function h9e(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){Hz(e,s);for(const a of s.where||[])Hz(e,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function Hz(t,e){for(const r of aG(e.assertions)){const[n,i]=r.split("/");if(!n||!i)continue;const o=t.find(s=>s.id===n);if(!o)throw Error(yt.red(`Plugin ${yt.blue(n)} isn't found.`));if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${yt.red(n)} doesn't export assertions function with name ${yt.red(i)}.`);MO[r]=vXe(o.assertions[i])}}const $v=".redocly.lint-ignore.yaml",m9e=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
@@ -2560,7 +2560,7 @@ ${v.message}
|
|
|
2560
2560
|
|
|
2561
2561
|
`+d:l.message,p={title:l.ruleId,file:Xr(c.source.absoluteRef)?c.source.absoluteRef:At.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(p)}::${i(f)}
|
|
2562
2562
|
`)}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 cA.properties.theme;async function _He(t){var i;const{ref:e,externalRefResolver:r=new bx(t.config.resolve)}=t,n=await r.resolveDocument(null,e,!0);return(i=t.collectSpecData)==null||i.call(t,n.parsed),jHe({document:n,...t,externalRefResolver:r})}async function jHe(t){uXe();const{document:e,customTypes:r,externalRefResolver:n,config:i}=t,o=uA(e.parsed),s=aH(o),a=i.getRulesForSpecVersion(s),l=iA(i.extendTypes(r??dA(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},u=QO(a,i,"preprocessors",o),d=QO(a,i,"rules",o);let f=await om({rootDocument:e,rootType:l.Root,externalRefResolver:n});u.length>0&&(tf({document:e,rootType:l.Root,normalizedVisitors:ef(u,l),resolvedRefMap:f,ctx:c}),f=await om({rootDocument:e,rootType:l.Root,externalRefResolver:n}));const p=ef(d,l);return tf({document:e,rootType:l.Root,normalizedVisitors:p,resolvedRefMap:f,ctx:c}),c.problems.map(g=>i.addProblemToIgnore(g))}const RHe={info:t=>{},error:t=>{},warn:t=>{},printNewLine:()=>{},printSeparator:()=>{},indent:(t,e)=>t,output:t=>t};class NHe extends bx{constructor(){super()}resolveExternalRef(e,r){return fv(r)?r:e&&fv(e)?new URL(r,e).href:e?Ic.resolve(Ic.dirname(e),r):r}async loadExternalRef(e){if(fv(e)){const{body:r,mimeType:n}=await iG(e,{...this.config.http,customFetch:Js});return new Hd(e,r,n)}else{if(!await Vq(e))throw new Error(`File not found at ${e}.`);try{throw await zq(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 $E(e);return new Hd(e,n.replace(/\r\n/g,`
|
|
2563
|
-
`))}}}async function DHe({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new NHe,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=MHe(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-
|
|
2563
|
+
`))}}}async function DHe({collectionId:t,workflowId:e,projectDir:r,inputsObject:n,serversObject:i,sourceDescriptions:o,severitySettings:s}){const a=`${r}/${t}`,l=new NHe,c=n.map(f=>JSON.stringify({[f.name]:f.value})),u=MHe(i,o),{run:d}=await Promise.resolve().then(()=>require("./replay-index-CLfj3LPT.js"));return await d({files:[a],workflow:e?[e]:[],fetch:Js,logger:RHe,maxSteps:500,maxFetchTimeout:4e4,requestFileLoader:{getFileBody:async f=>{if(!await Vq(f))throw new Error(`File ${f} doesn't exist or isn't readable.`);try{const g=await $E(f),m=new TextEncoder().encode(g);return new File([m],await Qq(f))}catch(g){throw new Error(`Failed to read file ${f}: ${g}`)}}},envVariables:{},config:await j6({}),externalRefResolver:l,input:c,server:u,severity:JSON.stringify(s),skipLint:!0})}function MHe(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 b_(t){return t==null?"N/A":t<1e3?`${t} ms`:t<1e4?`${(t/1e3).toFixed(1)} s`:`${Math.round(t/1e3)} s`}function o8({checks:t}){const e=t.filter(p=>p.severity!=="off"),r=e.filter(p=>p.passed).length,n=e.filter(p=>p.severity==="warn"&&!p.passed).length,i=e.length,o=i-r-n,s=r===i,a=r===0,[l,c]=H.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?h.jsx(Q.CheckmarkFilledIcon,{color:"var(--color-success-base)"}):o>0?h.jsx(Q.ErrorFilledIcon,{color:"var(--color-error-base)"}):h.jsx(Q.WarningFilledIcon,{color:"var(--color-warning-base)"}),f=p=>{p.stopPropagation(),c(!l)};return!e||e.length===0?null:h.jsxs(LHe,{children:[h.jsxs(QHe,{onClick:f,children:[h.jsxs(zHe,{children:[h.jsx(VHe,{children:h.jsx(BHe,{children:d()})}),h.jsxs(FHe,{children:[h.jsx(WHe,{children:u()}),h.jsxs(qHe,{children:[r," successful",n>0&&h.jsxs(h.Fragment,{children:[", ",n," ",n===1?"warning":"warnings"]}),o>0&&h.jsxs(h.Fragment,{children:[", ",o," failed"]})]})]})]}),h.jsx(UHe,{isExpanded:l,children:l?h.jsx(Q.ChevronDownIcon,{}):h.jsx(Q.ChevronRightIcon,{})})]}),h.jsx(XHe,{isExpanded:l,children:e.map((p,g)=>h.jsxs(ZHe,{children:[h.jsx(GHe,{children:p.passed?h.jsx(Q.CheckmarkIcon,{color:"var(--color-success-base)",size:"14px"}):!p.passed&&["warn"].includes(p.severity)?h.jsx(Q.WarningFilledIcon,{color:"var(--color-warning-base)",size:"14px"}):h.jsx(Q.CloseOutlineIcon,{color:"var(--color-error-base)",size:"14px"})}),h.jsxs(YHe,{children:[h.jsx(HHe,{children:p.name}),p.message&&h.jsx(JHe,{children:p.message})]})]},g))})]})}const LHe=I.div`
|
|
2564
2564
|
margin-bottom: 0;
|
|
2565
2565
|
margin-top: var(--spacing-xxs);
|
|
2566
2566
|
`,QHe=I.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var IE=Object.defineProperty;var WE=(u,e,a)=>e in u?IE(u,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):u[e]=a;var Ou=(u,e,a)=>WE(u,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("./replay-index-
|
|
1
|
+
"use strict";var IE=Object.defineProperty;var WE=(u,e,a)=>e in u?IE(u,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):u[e]=a;var Ou=(u,e,a)=>WE(u,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("./replay-index-BkGfQlWG.js");async function qE(u){const{descriptionPath:e,externalRefResolver:a,base:i}=u,r=await Q.bundle({base:i,ref:e,config:u.config,dereference:!0,externalRefResolver:a});if(!r)throw new Error(`Could not find source description file '${e}'.`);return r.bundle.parsed}function ht(u){var a;if(typeof u!="object")return;const e=Object.keys(u)[0];return e?(a=u[e])==null?void 0:a.value:void 0}const{env:ce={},argv:pt=[],platform:UE=""}=typeof process>"u"?{}:process,ZE="NO_COLOR"in ce||pt.includes("--no-color"),YE="FORCE_COLOR"in ce||pt.includes("--color"),QE=UE==="win32",XE=ce.TERM==="dumb",u5=Q.tty&&void 0,e5="CI"in ce&&("GITHUB_ACTIONS"in ce||"GITLAB_CI"in ce||"CIRCLECI"in ce),a5=!ZE&&(YE||QE&&!XE||u5||e5),gt=(u,e,a,i,r=e.substring(0,u)+i,n=e.substring(u+a.length),o=n.indexOf(a))=>r+(o<0?n:gt(o,n,a,i)),i5=(u,e,a,i,r)=>u<0?a+e+i:a+gt(u,e,i,r)+i,r5=(u,e,a=u,i=u.length+1)=>r=>r||!(r===""||r===void 0)?i5((""+r).indexOf(e,i),r,u,e,a):"",nu=(u,e,a)=>r5(`\x1B[${u}m`,`\x1B[${e}m`,a),n1={reset:nu(0,0),bold:nu(1,22,"\x1B[22m\x1B[1m"),dim:nu(2,22,"\x1B[22m\x1B[2m"),italic:nu(3,23),underline:nu(4,24),inverse:nu(7,27),hidden:nu(8,28),strikethrough:nu(9,29),black:nu(30,39),red:nu(31,39),green:nu(32,39),yellow:nu(33,39),blue:nu(34,39),magenta:nu(35,39),cyan:nu(36,39),white:nu(37,39),gray:nu(90,39),bgBlack:nu(40,49),bgRed:nu(41,49),bgGreen:nu(42,49),bgYellow:nu(43,49),bgBlue:nu(44,49),bgMagenta:nu(45,49),bgCyan:nu(46,49),bgWhite:nu(47,49),blackBright:nu(90,39),redBright:nu(91,39),greenBright:nu(92,39),yellowBright:nu(93,39),blueBright:nu(94,39),magentaBright:nu(95,39),cyanBright:nu(96,39),whiteBright:nu(97,39),bgBlackBright:nu(100,49),bgRedBright:nu(101,49),bgGreenBright:nu(102,49),bgYellowBright:nu(103,49),bgBlueBright:nu(104,49),bgMagentaBright:nu(105,49),bgCyanBright:nu(106,49),bgWhiteBright:nu(107,49)},n5=({useColor:u=a5}={})=>u?n1:Object.keys(n1).reduce((e,a)=>({...e,[a]:String}),{}),{reset:c3u,bold:W0,dim:o5,italic:d3u,underline:t5,inverse:Ct,hidden:m3u,strikethrough:F3u,black:k3u,red:mu,green:Fa,yellow:q0,blue:fu,magenta:h3u,cyan:p3u,white:o1,gray:yu,bgBlack:g3u,bgRed:li,bgGreen:C3u,bgYellow:v3u,bgBlue:b3u,bgMagenta:B3u,bgCyan:A3u,bgWhite:f3u,blackBright:y3u,redBright:z3u,greenBright:S3u,yellowBright:M3u,blueBright:j3u,magentaBright:P3u,cyanBright:w3u,whiteBright:K3u,bgBlackBright:T3u,bgRedBright:L3u,bgGreenBright:N3u,bgYellowBright:R3u,bgBlueBright:H3u,bgMagentaBright:G3u,bgCyanBright:_3u,bgWhiteBright:$3u}=n5(),s5=u=>/\{.*?\}/.test(u);function g0({value:u,ctx:e,logger:a}){if(!u)return u;if(typeof u=="object"){for(const i in u)u[i]=g0({value:u[i],ctx:e,logger:a});return u}return typeof u=="number"||typeof u=="boolean"?u:u.toString().startsWith("$faker.")?ka({pointer:u.slice(1),ctx:e,logger:a}):s5(u)?D5(u,e,a):c5(u,e,a)}function l5(u,e,a){const i=u.indexOf("{");if(i!==-1){const n=u.substring(i+1).slice(0,-1),o=ka({pointer:n.slice(1),ctx:e,logger:a});return o&&u.replace(/{(.*)}/,o)}else return u}function E5(u,e){const a=Object.keys(e),i=Object.values(e);return new Function(...a,`return ${u}`)(...i)}function D5(u,e,a){const i=/\{\$(\{[^{}]*\}|[^{}])*\}/g;let r=u;return r=r.replace(i,(n,o)=>x5(n,e,a)),r}function x5(u,e,a){if(!u.includes("$"))return u;if(u.includes("$faker."))return l5(u,e,a);const i=oa(e)(d5(u));return i!==void 0?i:""}const c5=(u,e,a)=>{if(!u)return u;const i=u.toString();if(!i.includes("$"))return u;if(i.startsWith("$file(")&&i.endsWith(")"))return i.slice(7,-2);if(i.startsWith("$sourceDescriptions.")&&i.includes(".workflows.")){const r=i.split("."),n=r[1],o=r[3];if(!n||!o)return;const s=oa(e)("$sourceDescriptions");return s[n]?s[n].workflows.find(t=>t.workflowId===o):void 0}return i&&i.trim().startsWith("faker.")?ka({pointer:i,ctx:e,logger:a}):i?oa(e)(t1(i)):i.replace(/\$\{([^}]+)}/g,(r,n)=>oa(e)(t1(n)))};function d5(u){return u.replace(/\{(.*)\}/,"$1")}function t1(u){return u.replace(/\['(.*?)'\]/g,".$1")}const oa=(u,e="")=>a=>{if(e||(e=a),!a)return u;const[i,...r]=a.split(".");if(!u)throw Error(`Cannot get ${mu(i)} from ${mu(e)}`);if((u==null?void 0:u[i])===void 0){const n=` Undefined ${mu(i)} at ${mu(e)}.`,o=Object.keys(u).length?`Did you mean to use another key? Available keys:
|
|
2
2
|
${Object.keys(u).join(", ")}.
|
|
3
3
|
`:"",s=`${n} ${o}`;throw Error(s)}return oa(u[i],e)(r.join("."))};function ka({pointer:u,ctx:e,logger:a}){const i=u.split("."),r={ctx:{faker:e.$faker}};try{const n=i.map(o=>o.trim()).map((o,s)=>o.endsWith(")")?`${s==0?"":"."}${o}`:`["${o}"]`).join("");return E5(`ctx${n}`,r)}catch(n){a.error(mu(n.toString()));return}}function vt(u,e,a){if(typeof u=="string"&&u)return g0({value:u,ctx:e,logger:a});if(!(typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u>"u"||u instanceof Blob||u===null))for(const i in u)typeof u[i]=="string"?u[i]&&(u[i]=g0({value:u[i],ctx:e,logger:a})):vt(u[i],e,a)}function s1(u,e,a){return vt(u,e,a)||u}function l1(u,e){if(!u)return;const a={};for(const i in e)a[`{${i}}`]=String(e[i]);return u.split(/(\{[a-zA-Z0-9_.-]+\}+)/g).map(i=>a[i]?a[i]:i).join("")}function m5(u){return typeof u=="object"&&u!==null&&"name"in u&&"value"in u&&!("in"in u)}function an(u){return typeof u=="object"&&u!==null&&"in"in u&&["header","query","path","cookie"].includes(u.in)}const F5=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function bt(u){return u.startsWith("$file(")&&u.endsWith(")")?u.substring(7,u.length-2):u}const E1=async(u,e,a,i,r)=>{const n=Q.pathBrowserify.dirname(i),o=Q.pathBrowserify.resolve(n,bt(a));u.append(e,await r.options.requestFileLoader.getFileBody(o))},Bt=(u,e,a,i,r,n)=>{Object.entries(a).forEach(([o,s])=>{const t=n?`${n}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?u.push(E1(e,t,s,i,r)):Array.isArray(s)?s.forEach(l=>{typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?u.push(E1(e,t,l,i,r)):e.append(t,l.toString())}):typeof s=="object"&&s!==null?Bt(u,e,s,i,r,t):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.append(t,s.toString())})},k5=async(u,e,a,i)=>{if(u&&typeof u=="object"&&!Array.isArray(u)){const r=[];Bt(r,e,u,a,i),await Promise.all(r)}},h5=async(u,e)=>{if(typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")){const a=Q.pathBrowserify.resolve(Q.pathBrowserify.dirname(e.options.filePath),bt(u));return e.options.requestFileLoader.getFileBody(a)}else return u};async function p5(u,e){if(!u)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:a,contentType:i}=u;if(i==="multipart/form-data"){const r=new FormData,n=Q.pathBrowserify.resolve(e.options.filePath);return await k5(a,r,n,e),{...u,payload:r}}else{if(i==="application/octet-stream"||typeof i=="string"&&F5.test(i))return{...u,payload:await h5(a,e),contentType:"application/octet-stream"};if(i==="application/x-www-form-urlencoded"&&typeof a=="string")return{...u,payload:Object.fromEntries(new URLSearchParams(a).entries()),contentType:"application/x-www-form-urlencoded"}}return u}function g5(u,e){function a(){this.constructor=u}a.prototype=e.prototype,u.prototype=new a}function Ke(u,e,a,i){this.message=u,this.expected=e,this.found=a,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ke)}g5(Ke,Error);Ke.buildMessage=function(u,e){var a={literal:function(l){return'"'+r(l.text)+'"'},class:function(l){var E="",D;for(D=0;D<l.parts.length;D++)E+=l.parts[D]instanceof Array?n(l.parts[D][0])+"-"+n(l.parts[D][1]):n(l.parts[D]);return"["+(l.inverted?"^":"")+E+"]"},any:function(l){return"any character"},end:function(l){return"end of input"},other:function(l){return l.description}};function i(l){return l.charCodeAt(0).toString(16).toUpperCase()}function r(l){return l.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+i(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+i(E)})}function n(l){return l.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+i(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+i(E)})}function o(l){return a[l.type](l)}function s(l){var E=new Array(l.length),D,x;for(D=0;D<l.length;D++)E[D]=o(l[D]);if(E.sort(),E.length>0){for(D=1,x=1;D<E.length;D++)E[D-1]!==E[D]&&(E[x]=E[D],x++);E.length=x}switch(E.length){case 1:return E[0];case 2:return E[0]+" or "+E[1];default:return E.slice(0,-1).join(", ")+", or "+E[E.length-1]}}function t(l){return l?'"'+r(l)+'"':"end of input"}return"Expected "+s(u)+" but "+t(e)+" found."};function C5(u,e){e=e!==void 0?e:{};var a={},i={Start:Zo},r=Zo,n="&&",o=eu("&&",!1),s="||",t=eu("||",!1),l="!",E=eu("!",!1),D="==",x=eu("==",!1),d="!=",F=eu("!=",!1),p="<=",C=eu("<=",!1),c="<",k=eu("<",!1),B=">=",A=eu(">=",!1),z=">",j=eu(">",!1),R="{",q=eu("{",!1),J="}",Y=eu("}",!1),W="$url",H=eu("$url",!1),$="$method",U=eu("$method",!1),iu="$statusCode",su=eu("$statusCode",!1),Du="$request.",du=eu("$request.",!1),wu="$response.",T=eu("$response.",!1),f="$inputs.",K=eu("$inputs.",!1),M="$steps.",g=eu("$steps.",!1),b="$workflows.",w=eu("$workflows.",!1),_="$sourceDescriptions.",O=eu("$sourceDescriptions.",!1),G="$components.",X=eu("$components.",!1),Eu="$components.parameters.",Ju=eu("$components.parameters.",!1),A0="$outputs.",Y0=eu("$outputs.",!1),qu=".",Uu=eu(".",!1),o0="outputs.",f0=eu("outputs.",!1),y0="header.",Q0=eu("header.",!1),z0="query.",X0=eu("query.",!1),t0="path.",S0=eu("path.",!1),ve="body",ue=eu("body",!1),Ie="#",Ra=eu("#",!1),Ha="/",Zi=eu("/",!1),lE=/^[!-.0-9A-Z_a-z]/,EE=m0([["!","."],["0","9"],["A","Z"],"_",["a","z"]],!1,!1),DE="~",xE=eu("~",!1),zo="0",So=eu("0",!1),cE="1",dE=eu("1",!1),mE=/^[a-zA-Z]/,FE=m0([["a","z"],["A","Z"]],!1,!1),Mo=/^[a-zA-Z0-9_\-]/,jo=m0([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),Po=/^[!#$%&'*+\-.\^_`|~a-zA-Z0-9\-]/,wo=m0(["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~",["a","z"],["A","Z"],["0","9"],"-"],!1,!1),kE="[",hE=eu("[",!1),pE="]",gE=eu("]",!1),CE=/^[1-9]/,vE=m0([["1","9"]],!1,!1),Ga=/^[0-9]/,_a=m0([["0","9"]],!1,!1),Ko='"',To=eu('"',!1),Lo=/^[^"]/,No=m0(['"'],!0,!1),Ro="'",Ho=eu("'",!1),Go=/^[^']/,_o=m0(["'"],!0,!1),$o="true",bE=eu("true",!1),Vo="false",BE=eu("false",!1),Jo="null",AE=eu("null",!1),Oo="undefined",fE=eu("undefined",!1),Io=/^[ \t\r\n]/,Wo=m0([" "," ","\r",`
|
|
4
4
|
`],!1,!1),h=0,$a=[{line:1,column:1}],s0=0,Yi=[],Va;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');r=i[e.startRule]}function eu(m,v){return{type:"literal",text:m,ignoreCase:v}}function m0(m,v,y){return{type:"class",parts:m,inverted:v,ignoreCase:y}}function yE(){return{type:"end"}}function qo(m){var v=$a[m],y;if(v)return v;for(y=m-1;!$a[y];)y--;for(v=$a[y],v={line:v.line,column:v.column};y<m;)u.charCodeAt(y)===10?(v.line++,v.column=1):v.column++,y++;return $a[m]=v,v}function Uo(m,v){var y=qo(m),S=qo(v);return{start:{offset:m,line:y.line,column:y.column},end:{offset:v,line:S.line,column:S.column}}}function N(m){h<s0||(h>s0&&(s0=h,Yi=[]),Yi.push(m))}function zE(m,v,y){return new Ke(Ke.buildMessage(m,v),m,v,y)}function Zo(){var m;return m=Yo(),m}function Yo(){var m,v,y,S,L,ru,Bu,gu;if(m=h,v=Qi(),v!==a){for(y=[],S=h,L=Hu(),L!==a?(ru=Qo(),ru!==a?(Bu=Hu(),Bu!==a?(gu=Qi(),gu!==a?(L=[L,ru,Bu,gu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);S!==a;)y.push(S),S=h,L=Hu(),L!==a?(ru=Qo(),ru!==a?(Bu=Hu(),Bu!==a?(gu=Qi(),gu!==a?(L=[L,ru,Bu,gu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function Qo(){var m;return u.substr(h,2)===n?(m=n,h+=2):(m=a,N(o)),m===a&&(u.substr(h,2)===s?(m=s,h+=2):(m=a,N(t)),m===a&&(u.charCodeAt(h)===33?(m=l,h++):(m=a,N(E)))),m}function Xo(){var m;return u.substr(h,2)===D?(m=D,h+=2):(m=a,N(x)),m===a&&(u.substr(h,2)===d?(m=d,h+=2):(m=a,N(F)),m===a&&(u.substr(h,2)===p?(m=p,h+=2):(m=a,N(C)),m===a&&(u.charCodeAt(h)===60?(m=c,h++):(m=a,N(k)),m===a&&(u.substr(h,2)===B?(m=B,h+=2):(m=a,N(A)),m===a&&(u.charCodeAt(h)===62?(m=z,h++):(m=a,N(j))))))),m}function Qi(){var m,v,y,S,L,ru,Bu,gu;if(m=h,v=Xi(),v===a&&(v=Ja(),v===a&&(v=ir())),v!==a)if(y=Hu(),y!==a){for(S=[],L=h,ru=Xo(),ru!==a?(Bu=Hu(),Bu!==a?(gu=Xi(),gu===a&&(gu=Ja(),gu===a&&(gu=ir())),gu!==a?(ru=[ru,Bu,gu],L=ru):(h=L,L=a)):(h=L,L=a)):(h=L,L=a);L!==a;)S.push(L),L=h,ru=Xo(),ru!==a?(Bu=Hu(),Bu!==a?(gu=Xi(),gu===a&&(gu=Ja(),gu===a&&(gu=ir())),gu!==a?(ru=[ru,Bu,gu],L=ru):(h=L,L=a)):(h=L,L=a)):(h=L,L=a);S!==a?(v=[v,y,S],m=v):(h=m,m=a)}else h=m,m=a;else h=m,m=a;return m}function Xi(){var m,v,y,S,L,ru;return m=h,u.charCodeAt(h)===123?(v=R,h++):(v=a,N(q)),v!==a?(y=Hu(),y!==a?(S=Ja(),S!==a?(L=Hu(),L!==a?(u.charCodeAt(h)===125?(ru=J,h++):(ru=a,N(Y)),ru!==a?(v=[v,y,S,L,ru],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.charCodeAt(h)===123?(v=R,h++):(v=a,N(q)),v!==a?(y=Hu(),y!==a?(S=Yo(),S!==a?(L=Hu(),L!==a?(u.charCodeAt(h)===125?(ru=J,h++):(ru=a,N(Y)),ru!==a?(v=[v,y,S,L,ru],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)):(h=m,m=a)),m}function Ja(){var m,v,y;return u.substr(h,4)===W?(m=W,h+=4):(m=a,N(H)),m===a&&(u.substr(h,7)===$?(m=$,h+=7):(m=a,N(U)),m===a&&(u.substr(h,11)===iu?(m=iu,h+=11):(m=a,N(su)),m===a&&(m=h,u.substr(h,9)===Du?(v=Du,h+=9):(v=a,N(du)),v!==a?(y=u1(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,10)===wu?(v=wu,h+=10):(v=a,N(T)),v!==a?(y=u1(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,8)===f?(v=f,h+=8):(v=a,N(K)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=SE(),m===a&&(m=h,u.substr(h,7)===M?(v=M,h+=7):(v=a,N(g)),v!==a?(y=ME(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,11)===b?(v=b,h+=11):(v=a,N(w)),v!==a?(y=jE(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,20)===_?(v=_,h+=20):(v=a,N(O)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,12)===G?(v=G,h+=12):(v=a,N(X)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m===a&&(m=h,u.substr(h,23)===Eu?(v=Eu,h+=23):(v=a,N(Ju)),v!==a?(y=ee(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a)))))))))))),m}function SE(){var m,v,y,S,L;return m=h,u.substr(h,9)===A0?(v=A0,h+=9):(v=a,N(Y0)),v!==a?(y=h,S=ee(),S!==a?(L=er(),L===a&&(L=null),L!==a?(S=[S,L],y=S):(h=y,y=a)):(h=y,y=a),y===a&&(y=ur()),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function ME(){var m,v,y,S,L,ru;return m=h,v=be(),v!==a?(u.charCodeAt(h)===46?(y=qu,h++):(y=a,N(Uu)),y!==a?(S=h,u.substr(h,8)===o0?(L=o0,h+=8):(L=a,N(f0)),L!==a?(ru=ur(),ru!==a?(L=[L,ru],S=L):(h=S,S=a)):(h=S,S=a),S===a&&(S=ee()),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m}function jE(){var m,v,y,S,L,ru;return m=h,v=be(),v!==a?(u.charCodeAt(h)===46?(y=qu,h++):(y=a,N(Uu)),y!==a?(S=h,u.substr(h,8)===o0?(L=o0,h+=8):(L=a,N(f0)),L!==a?(ru=ur(),ru!==a?(L=[L,ru],S=L):(h=S,S=a)):(h=S,S=a),S===a&&(S=ee()),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m}function ur(){var m,v,y;return m=h,v=be(),v!==a?(y=er(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function ee(){var m,v,y,S,L,ru,Bu;if(m=h,v=be(),v!==a){for(y=[],S=h,u.charCodeAt(h)===46?(L=qu,h++):(L=a,N(Uu)),L!==a?(ru=Hu(),ru!==a?(Bu=be(),Bu!==a?(L=[L,ru,Bu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);S!==a;)y.push(S),S=h,u.charCodeAt(h)===46?(L=qu,h++):(L=a,N(Uu)),L!==a?(ru=Hu(),ru!==a?(Bu=be(),Bu!==a?(L=[L,ru,Bu],S=L):(h=S,S=a)):(h=S,S=a)):(h=S,S=a);y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function be(){var m;return m=ar(),m===a&&(m=r1()),m}function u1(){var m;return m=PE(),m===a&&(m=wE(),m===a&&(m=KE(),m===a&&(m=TE()))),m}function PE(){var m,v,y;return m=h,u.substr(h,7)===y0?(v=y0,h+=7):(v=a,N(Q0)),v!==a?(y=LE(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function wE(){var m,v,y;return m=h,u.substr(h,6)===z0?(v=z0,h+=6):(v=a,N(X0)),v!==a?(y=ar(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function KE(){var m,v,y;return m=h,u.substr(h,5)===t0?(v=t0,h+=5):(v=a,N(S0)),v!==a?(y=ar(),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function TE(){var m,v,y;return m=h,u.substr(h,4)===ve?(v=ve,h+=4):(v=a,N(ue)),v!==a?(y=er(),y===a&&(y=null),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function er(){var m,v,y,S;if(m=h,u.charCodeAt(h)===35?(v=Ie,h++):(v=a,N(Ra)),v!==a){for(y=[],S=e1();S!==a;)y.push(S),S=e1();y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function e1(){var m,v,y,S;if(m=h,u.charCodeAt(h)===47?(v=Ha,h++):(v=a,N(Zi)),v!==a){for(y=[],S=a1(),S===a&&(S=i1());S!==a;)y.push(S),S=a1(),S===a&&(S=i1());y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function a1(){var m;return lE.test(u.charAt(h))?(m=u.charAt(h),h++):(m=a,N(EE)),m}function i1(){var m,v,y;return m=h,u.charCodeAt(h)===126?(v=DE,h++):(v=a,N(xE)),v!==a?(u.charCodeAt(h)===48?(y=zo,h++):(y=a,N(So)),y===a&&(u.charCodeAt(h)===49?(y=cE,h++):(y=a,N(dE))),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function ar(){var m,v,y,S;if(m=h,mE.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(FE)),v!==a){for(y=[],Mo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(jo));S!==a;)y.push(S),Mo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(jo));y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function LE(){var m,v;if(m=[],Po.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(wo)),v!==a)for(;v!==a;)m.push(v),Po.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(wo));else m=a;return m}function ir(){var m;return m=NE(),m===a&&(m=r1(),m===a&&(m=GE(),m===a&&(m=VE(),m===a&&(m=JE(),m===a&&(m=OE()))))),m}function NE(){var m,v,y,S;return m=h,u.charCodeAt(h)===91?(v=kE,h++):(v=a,N(hE)),v!==a?(y=Hu(),y!==a?(u.charCodeAt(h)===93?(S=pE,h++):(S=a,N(gE)),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)):(h=m,m=a),m}function r1(){var m,v,y,S,L;return m=h,v=RE(),v!==a?(y=h,u.charCodeAt(h)===46?(S=qu,h++):(S=a,N(Uu)),S!==a?(L=HE(),L!==a?(S=[S,L],y=S):(h=y,y=a)):(h=y,y=a),y===a&&(y=null),y!==a?(v=[v,y],m=v):(h=m,m=a)):(h=m,m=a),m}function RE(){var m,v,y,S;if(u.charCodeAt(h)===48?(m=zo,h++):(m=a,N(So)),m===a)if(m=h,CE.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(vE)),v!==a){for(y=[],Ga.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_a));S!==a;)y.push(S),Ga.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_a));y!==a?(v=[v,y],m=v):(h=m,m=a)}else h=m,m=a;return m}function HE(){var m,v;if(m=[],Ga.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(_a)),v!==a)for(;v!==a;)m.push(v),Ga.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(_a));else m=a;return m}function GE(){var m;return m=_E(),m===a&&(m=$E()),m}function _E(){var m,v,y,S;if(m=h,u.charCodeAt(h)===34?(v=Ko,h++):(v=a,N(To)),v!==a){for(y=[],Lo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(No));S!==a;)y.push(S),Lo.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(No));y!==a?(u.charCodeAt(h)===34?(S=Ko,h++):(S=a,N(To)),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)}else h=m,m=a;return m}function $E(){var m,v,y,S;if(m=h,u.charCodeAt(h)===39?(v=Ro,h++):(v=a,N(Ho)),v!==a){for(y=[],Go.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_o));S!==a;)y.push(S),Go.test(u.charAt(h))?(S=u.charAt(h),h++):(S=a,N(_o));y!==a?(u.charCodeAt(h)===39?(S=Ro,h++):(S=a,N(Ho)),S!==a?(v=[v,y,S],m=v):(h=m,m=a)):(h=m,m=a)}else h=m,m=a;return m}function VE(){var m;return u.substr(h,4)===$o?(m=$o,h+=4):(m=a,N(bE)),m===a&&(u.substr(h,5)===Vo?(m=Vo,h+=5):(m=a,N(BE))),m}function JE(){var m;return u.substr(h,4)===Jo?(m=Jo,h+=4):(m=a,N(AE)),m}function OE(){var m;return u.substr(h,9)===Oo?(m=Oo,h+=9):(m=a,N(fE)),m}function Hu(){var m,v;for(m=[],Io.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(Wo));v!==a;)m.push(v),Io.test(u.charAt(h))?(v=u.charAt(h),h++):(v=a,N(Wo));return m}if(Va=r(),Va!==a&&h===u.length)return Va;throw Va!==a&&h<u.length&&N(yE()),zE(Yi,s0<u.length?u.charAt(s0):null,s0<u.length?Uo(s0,s0+1):Uo(s0,s0))}var v5={SyntaxError:Ke,parse:C5};const b5=Q.getDefaultExportFromCjs(v5);function B5(u){try{return b5.parse(u)}catch{throw new Error(`Runtime expression is not valid: ${u}`)}}function A5(u,e){const a=[{pattern:/\$response\.body#\/([\w/]+)/g,ctxFunction:(r,n)=>{var o;return We((o=e.$response)==null?void 0:o.body,n,r)}},{pattern:/\$request\.body#\/([\w/]+)/g,ctxFunction:(r,n)=>{var o;return We((o=e.$request)==null?void 0:o.body,n,r)}},{pattern:/\$outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(r,n,o)=>{var s;return We((s=e.$outputs)==null?void 0:s[n],o,r)}},{pattern:/\$workflows\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(r,n,o,s)=>{var t,l,E;return We((E=(l=(t=e.$workflows)==null?void 0:t[n])==null?void 0:l.outputs)==null?void 0:E[o],s,r)}},{pattern:/\$steps\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,ctxFunction:(r,n,o,s)=>{var t,l,E;return We((E=(l=(t=e.$steps)==null?void 0:t[n])==null?void 0:l.outputs)==null?void 0:E[o],s,r)}}];let i=u;for(const{pattern:r,ctxFunction:n}of a)i=i.replaceAll(r,n);return i}function We(u,e,a){if(u)try{const i=Q.JsonPointer.get(u,`/${e}`);return typeof i=="string"||Array.isArray(i)||typeof i=="object"?JSON.stringify(i):i!==void 0?i:a}catch{return a}return a}function c0({payload:u,context:e,contentType:a,logger:i}){if(a!=null&&a.includes("application/octet-stream"))return s1(u,e,i);if(a!=null&&a.includes("multipart/form-data")){if(u instanceof FormData){const r=new FormData;for(const[n,o]of u.entries())if(o instanceof File)r.append(n,o);else{const s=c0({payload:o,context:e,logger:i});r.append(n,s)}return r}return s1(u,e,i)}return typeof u=="string"?w5(u)?Fe(u,e,i):P5(u,e,i):Q.isPlainObject(u)?Object.entries(u).reduce((r,[n,o])=>(r[n]=c0({payload:o,context:e,logger:i}),r),{}):Array.isArray(u)?u.map(r=>c0({payload:r,context:e,logger:i})):u}function Fe(u,e,a){return typeof u=="string"?f5(u,e,a):Q.isPlainObject(u)?Object.entries(u).reduce((i,[r,n])=>(i[r]=n&&Fe(n,e,a),i),{}):Array.isArray(u)?u.map(i=>Fe(i,e,a)):u}function f5(u,e,a){if(/^\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?$/.test(u))return ka({pointer:u.slice(1),ctx:e,logger:a});if(u.includes("$faker.")){const n=/\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?/g;u=u.replace(n,o=>ka({pointer:o.slice(1),ctx:e,logger:a})).replace(/{(.*?)}/g,"$1")}if(!u.includes("$")&&!/[=<>]/.test(u))return u;B5(u);const i=z5(u,e),r=S5(e);try{return new Function(...Object.keys(r),`return ${i};`)(...Object.values(r))}catch{throw new Error(`Error in resolving runtime expression '${u}'.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var XE = Object.defineProperty;
|
|
2
2
|
var u5 = (u, e, a) => e in u ? XE(u, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : u[e] = a;
|
|
3
3
|
var Ju = (u, e, a) => u5(u, typeof e != "symbol" ? e + "" : e, a);
|
|
4
|
-
import { b as bt, t as e5, p as Wu, g as fi, J as R0, a as yi, c as mi, d as a5, e as l1, m as i5, f as r5, h as n5, k as Bt, l as o5, n as t5, o as s5, q as l5, u as E5 } from "./replay-index-
|
|
4
|
+
import { b as bt, t as e5, p as Wu, g as fi, J as R0, a as yi, c as mi, d as a5, e as l1, m as i5, f as r5, h as n5, k as Bt, l as o5, n as t5, o as s5, q as l5, u as E5 } from "./replay-index-KOqTMJzv.js";
|
|
5
5
|
async function D5(u) {
|
|
6
6
|
const { descriptionPath: e, externalRefResolver: a, base: i } = u, r = await bt({
|
|
7
7
|
base: i,
|
|
@@ -30753,7 +30753,7 @@ function Qf() {
|
|
|
30753
30753
|
}
|
|
30754
30754
|
const hs = class hs {
|
|
30755
30755
|
static async getUtils() {
|
|
30756
|
-
return hs.utils || (hs.utils = Qf() ? await import("./replay-tauri-path-
|
|
30756
|
+
return hs.utils || (hs.utils = Qf() ? await import("./replay-tauri-path-B2rb8dEf.js") : await Promise.resolve().then(() => sNe)), hs.utils;
|
|
30757
30757
|
}
|
|
30758
30758
|
static async join(...e) {
|
|
30759
30759
|
return (await hs.getUtils()).join(...e);
|
|
@@ -36581,7 +36581,7 @@ const hx = Bi({});
|
|
|
36581
36581
|
function _A() {
|
|
36582
36582
|
return Jr(hx) || {};
|
|
36583
36583
|
}
|
|
36584
|
-
const gxe = "0.16.0
|
|
36584
|
+
const gxe = "0.16.0", yxe = {
|
|
36585
36585
|
version: gxe
|
|
36586
36586
|
};
|
|
36587
36587
|
class vxe {
|
|
@@ -41204,7 +41204,6 @@ const HA = (t, e = "currentColor") => t != null && t.startsWith("--") ? `var(${t
|
|
|
41204
41204
|
skipOptionalParameters: { type: "boolean" },
|
|
41205
41205
|
withOAuth2Call: { type: "boolean" }
|
|
41206
41206
|
},
|
|
41207
|
-
required: ["languages"],
|
|
41208
41207
|
additionalProperties: !1
|
|
41209
41208
|
}, sZ = {
|
|
41210
41209
|
type: "array",
|
|
@@ -53427,7 +53426,7 @@ function $Te({
|
|
|
53427
53426
|
var a;
|
|
53428
53427
|
if (Qf())
|
|
53429
53428
|
try {
|
|
53430
|
-
const { open: l } = await import("./replay-index-
|
|
53429
|
+
const { open: l } = await import("./replay-index-CsnNupCj.js"), c = await l({
|
|
53431
53430
|
multiple: !0
|
|
53432
53431
|
});
|
|
53433
53432
|
if (!c)
|
|
@@ -53764,7 +53763,7 @@ const XTe = ({ data: t }) => {
|
|
|
53764
53763
|
var f;
|
|
53765
53764
|
if (d == null || d.preventDefault(), Qf())
|
|
53766
53765
|
try {
|
|
53767
|
-
const { open: p } = await import("./replay-index-
|
|
53766
|
+
const { open: p } = await import("./replay-index-CsnNupCj.js"), g = await p();
|
|
53768
53767
|
if (!g)
|
|
53769
53768
|
return;
|
|
53770
53769
|
const m = await qm(g);
|
|
@@ -83000,7 +82999,7 @@ async function S6e({
|
|
|
83000
82999
|
sourceDescriptions: o,
|
|
83001
83000
|
severitySettings: s
|
|
83002
83001
|
}) {
|
|
83003
|
-
const a = `${r}/${t}`, l = new w6e(), c = n.map((f) => JSON.stringify({ [f.name]: f.value })), u = P6e(i, o), { run: d } = await import("./replay-index-
|
|
83002
|
+
const a = `${r}/${t}`, l = new w6e(), c = n.map((f) => JSON.stringify({ [f.name]: f.value })), u = P6e(i, o), { run: d } = await import("./replay-index-CyX-acdG.js");
|
|
83004
83003
|
return await d({
|
|
83005
83004
|
files: [a],
|
|
83006
83005
|
workflow: e ? [e] : [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as h, r } from "./replay-index-
|
|
2
|
-
import { i as j, j as u } from "./replay-index-
|
|
1
|
+
import { s as h, r } from "./replay-index-KOqTMJzv.js";
|
|
2
|
+
import { i as j, j as u } from "./replay-index-KOqTMJzv.js";
|
|
3
3
|
async function x(s, i) {
|
|
4
4
|
const t = h(), l = await r(s), c = await r(i), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), a = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, a.length);
|
|
5
5
|
let n = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-BkGfQlWG.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-BkGfQlWG.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;
|
package/dist/replay.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.16.0
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-dom": "^19.1.0",
|
|
20
20
|
"react-router-dom": "^6.21.1",
|
|
21
21
|
"styled-components": "^5.3.11",
|
|
22
|
-
"@redocly/theme": "0.57.0
|
|
22
|
+
"@redocly/theme": "0.57.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.15.0",
|