@ansible/ansible-ui-framework 2.4.1368 → 2.4.1370

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +32 -34
  2. package/index.umd.cjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -43016,46 +43016,44 @@ var ROe = on, NOe = b$, FOe = S$, WOe = A$, zOe = k$, BOe = Tx, VOe = G$.load, U
43016
43016
  safeDump: XOe
43017
43017
  };
43018
43018
  function RC(e, t, n) {
43019
- const r = /* @__PURE__ */ new Map(), i = (c) => {
43019
+ const r = /* @__PURE__ */ new Map(), i = (f) => {
43020
43020
  if (t === "*")
43021
43021
  return !0;
43022
- const u = c.getLanguageId();
43023
- return Array.isArray(t) ? t.includes(u) : t === u;
43024
- }, a = async (c) => {
43025
- const u = await n.provideMarkerData(c);
43026
- !c.isDisposed() && i(c) && e.editor.setModelMarkers(c, n.owner, u ?? []);
43027
- }, o = (c) => {
43028
- if (!i(c))
43022
+ const d = f.getLanguageId();
43023
+ return Array.isArray(t) ? t.includes(d) : t === d;
43024
+ }, a = async (f) => {
43025
+ const d = f.getVersionId(), h = await n.provideMarkerData(f);
43026
+ d === f.getVersionId() && !f.isDisposed() && i(f) && e.editor.setModelMarkers(f, n.owner, h ?? []);
43027
+ }, o = (f) => {
43028
+ if (!i(f))
43029
43029
  return;
43030
- let u;
43031
- r.set(String(c.uri), c.onDidChangeContent(() => {
43032
- clearTimeout(u), u = setTimeout(() => {
43033
- a(c);
43030
+ let d;
43031
+ r.set(f, f.onDidChangeContent(() => {
43032
+ clearTimeout(d), d = setTimeout(() => {
43033
+ a(f);
43034
43034
  }, 500);
43035
- })), a(c);
43036
- }, s = (c) => {
43037
- e.editor.setModelMarkers(c, n.owner, []);
43038
- const u = String(c.uri), f = r.get(u);
43039
- f && (f.dispose(), r.delete(u));
43040
- }, l = [
43041
- e.editor.onDidCreateModel(o),
43042
- e.editor.onWillDisposeModel((c) => {
43043
- var u;
43044
- s(c), (u = n.doReset) == null || u.call(n, c);
43045
- }),
43046
- e.editor.onDidChangeModelLanguage((c) => {
43047
- var u;
43048
- s(c.model), o(c.model), (u = n.doReset) == null || u.call(n, c.model);
43049
- })
43050
- ];
43051
- for (const c of e.editor.getModels())
43052
- o(c);
43035
+ })), a(f);
43036
+ }, s = (f) => {
43037
+ e.editor.setModelMarkers(f, n.owner, []);
43038
+ const d = r.get(f);
43039
+ d && (d.dispose(), r.delete(f));
43040
+ }, l = e.editor.onDidCreateModel(o), c = e.editor.onWillDisposeModel((f) => {
43041
+ var d;
43042
+ s(f), (d = n.doReset) == null || d.call(n, f);
43043
+ }), u = e.editor.onDidChangeModelLanguage((f) => {
43044
+ var d;
43045
+ s(f.model), o(f.model), (d = n.doReset) == null || d.call(n, f.model);
43046
+ });
43047
+ for (const f of e.editor.getModels())
43048
+ o(f);
43053
43049
  return {
43054
43050
  dispose() {
43055
- for (const c of r.keys())
43056
- s(e.editor.getModel(e.Uri.parse(c)));
43057
- for (; l.length; )
43058
- l.pop().dispose();
43051
+ for (const f of r.keys())
43052
+ s(f);
43053
+ l.dispose(), c.dispose(), u.dispose();
43054
+ },
43055
+ async revalidate() {
43056
+ await Promise.all(e.editor.getModels().map(a));
43059
43057
  }
43060
43058
  };
43061
43059
  }
package/index.umd.cjs CHANGED
@@ -535,7 +535,7 @@ ${o}${v}`}else p=`${g}${l}${h.join(" ")}${l}${v}`}return e&&(p+=xo(p,o,c(e)),a&&
535
535
  `+e.slice(i,a),i=a+1),o=s;return l+=`
536
536
  `,e.length-i>t&&o>i?l+=e.slice(i,o)+`
537
537
  `+e.slice(o+1):l+=e.slice(i),l.slice(1)}function l_e(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Zc(e,i),r=hn[n],!r&&Xc(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Qxe(n);return t}function c_e(e,t,n){var r="",i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(Gi(e,t,s,!1,!1)||typeof s>"u"&&Gi(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function u3(e,t,n,r){var i="",a=e.tag,o,s,l;for(o=0,s=n.length;o<s;o+=1)l=n[o],e.replacer&&(l=e.replacer.call(n,String(o),l)),(Gi(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Gi(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=d1(e,t)),e.dump&&Yc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function u_e(e,t,n){var r="",i=e.tag,a=Object.keys(n),o,s,l,c,u;for(o=0,s=a.length;o<s;o+=1)u="",r!==""&&(u+=", "),e.condenseFlow&&(u+='"'),l=a[o],c=n[l],e.replacer&&(c=e.replacer.call(n,l,c)),Gi(e,t,l,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Gi(e,t,c,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump="{"+r+"}"}function f_e(e,t,n,r){var i="",a=e.tag,o=Object.keys(n),s,l,c,u,f,d;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new wn("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)d="",(!r||i!=="")&&(d+=d1(e,t)),c=o[s],u=n[c],e.replacer&&(u=e.replacer.call(n,c,u)),Gi(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Yc===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=d1(e,t)),Gi(e,t+1,u,!0,f)&&(e.dump&&Yc===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=a,e.dump=i||"{}"}function f3(e,t,n){var r,i,a,o,s,l;for(i=n?e.explicitTypes:e.implicitTypes,a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,qj.call(s.represent)==="[object Function]")r=s.represent(t,l);else if(Yj.call(s.represent,l))r=s.represent[l](t,l);else throw new wn("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function Gi(e,t,n,r,i,a,o){e.tag=null,e.dump=n,f3(e,n,!1)||f3(e,n,!0);var s=qj.call(e.dump),l=r,c;r&&(r=e.flowLevel<0||e.flowLevel>t);var u=s==="[object Object]"||s==="[object Array]",f,d;if(u&&(f=e.duplicates.indexOf(n),d=f!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0)&&(i=!1),d&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(u&&d&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(f_e(e,t,e.dump,i),d&&(e.dump="&ref_"+f+e.dump)):(u_e(e,t,e.dump),d&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?u3(e,t-1,e.dump,i):u3(e,t,e.dump,i),d&&(e.dump="&ref_"+f+e.dump)):(c_e(e,t,e.dump),d&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&o_e(e,e.dump,t,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new wn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function d_e(e,t){var n=[],r=[],i,a;for(p1(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function p1(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)p1(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)p1(e[r[i]],t,n)}function h_e(e,t){t=t||{};var n=new t_e(t);n.noRefs||d_e(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Gi(n,0,r,!0,!0)?n.dump+`
538
- `:""}var p_e=h_e,g_e={dump:p_e};function g1(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var m_e=rn,v_e=hj,y_e=vj,b_e=wj,x_e=Sj,__e=o1,w_e=Gj.load,S_e=Gj.loadAll,O_e=g_e.dump,C_e=wn,E_e={binary:Tj,float:_j,map:mj,null:yj,pairs:Pj,set:jj,timestamp:Ej,bool:bj,int:xj,merge:kj,omap:Aj,seq:gj,str:pj},k_e=g1("safeLoad","load"),T_e=g1("safeLoadAll","loadAll"),A_e=g1("safeDump","dump"),d3={Type:m_e,Schema:v_e,FAILSAFE_SCHEMA:y_e,JSON_SCHEMA:b_e,CORE_SCHEMA:x_e,DEFAULT_SCHEMA:__e,load:w_e,loadAll:S_e,dump:O_e,YAMLException:C_e,types:E_e,safeLoad:k_e,safeLoadAll:T_e,safeDump:A_e};function h3(e,t,n){const r=new Map,i=c=>{if(t==="*")return!0;const u=c.getLanguageId();return Array.isArray(t)?t.includes(u):t===u},a=async c=>{const u=await n.provideMarkerData(c);!c.isDisposed()&&i(c)&&e.editor.setModelMarkers(c,n.owner,u??[])},o=c=>{if(!i(c))return;let u;r.set(String(c.uri),c.onDidChangeContent(()=>{clearTimeout(u),u=setTimeout(()=>{a(c)},500)})),a(c)},s=c=>{e.editor.setModelMarkers(c,n.owner,[]);const u=String(c.uri),f=r.get(u);f&&(f.dispose(),r.delete(u))},l=[e.editor.onDidCreateModel(o),e.editor.onWillDisposeModel(c=>{var u;s(c),(u=n.doReset)==null||u.call(n,c)}),e.editor.onDidChangeModelLanguage(c=>{var u;s(c.model),o(c.model),(u=n.doReset)==null||u.call(n,c.model)})];for(const c of e.editor.getModels())o(c);return{dispose(){for(const c of r.keys())s(e.editor.getModel(e.Uri.parse(c)));for(;l.length;)l.pop().dispose()}}}function P_e(e,t){let{createData:n,interval:r=3e4,label:i,moduleId:a,stopWhenIdleFor:o=12e4}=t,s,l=0,c=!1;const u=()=>{s&&(s.dispose(),s=void 0)},f=setInterval(()=>{if(!s)return;Date.now()-l>o&&u()},r);return{dispose(){c=!0,clearInterval(f),u()},getWorker(...d){if(c)throw new Error("Worker manager has been disposed");return l=Date.now(),s||(s=e.editor.createWebWorker({createData:n,label:i,moduleId:a})),s.withSyncedResources(d)},updateCreateData(d){n=d,u()}}}var p3;(()=>{var e={470:i=>{function a(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function o(l,c){for(var u,f="",d=0,h=-1,p=0,g=0;g<=l.length;++g){if(g<l.length)u=l.charCodeAt(g);else{if(u===47)break;u=47}if(u===47){if(!(h===g-1||p===1))if(h!==g-1&&p===2){if(f.length<2||d!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var v=f.lastIndexOf("/");if(v!==f.length-1){v===-1?(f="",d=0):d=(f=f.slice(0,v)).length-1-f.lastIndexOf("/"),h=g,p=0;continue}}else if(f.length===2||f.length===1){f="",d=0,h=g,p=0;continue}}c&&(f.length>0?f+="/..":f="..",d=2)}else f.length>0?f+="/"+l.slice(h+1,g):f=l.slice(h+1,g),d=g-h-1;h=g,p=0}else u===46&&p!==-1?++p:p=-1}return f}var s={resolve:function(){for(var l,c="",u=!1,f=arguments.length-1;f>=-1&&!u;f--){var d;f>=0?d=arguments[f]:(l===void 0&&(l=process.cwd()),d=l),a(d),d.length!==0&&(c=d+"/"+c,u=d.charCodeAt(0)===47)}return c=o(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(a(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=o(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return a(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c<arguments.length;++c){var u=arguments[c];a(u),u.length>0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":s.normalize(l)},relative:function(l,c){if(a(l),a(c),l===c||(l=s.resolve(l))===(c=s.resolve(c)))return"";for(var u=1;u<l.length&&l.charCodeAt(u)===47;++u);for(var f=l.length,d=f-u,h=1;h<c.length&&c.charCodeAt(h)===47;++h);for(var p=c.length-h,g=d<p?d:p,v=-1,y=0;y<=g;++y){if(y===g){if(p>g){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else d>g&&(l.charCodeAt(u+y)===47?v=y:y===0&&(v=0));break}var b=l.charCodeAt(u+y);if(b!==c.charCodeAt(h+y))break;b===47&&(v=y)}var _="";for(y=u+v+1;y<=f;++y)y!==f&&l.charCodeAt(y)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+c.slice(h+v):(h+=v,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(a(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,f=-1,d=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!d){f=h;break}}else d=!1;return f===-1?u?"/":".":u&&f===1?"//":l.slice(0,f)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');a(l);var u,f=0,d=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var p=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var v=l.charCodeAt(u);if(v===47){if(!h){f=u+1;break}}else g===-1&&(h=!1,g=u+1),p>=0&&(v===c.charCodeAt(p)?--p==-1&&(d=u):(p=-1,d=g))}return f===d?d=g:d===-1&&(d=l.length),l.slice(f,d)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){f=u+1;break}}else d===-1&&(h=!1,d=u+1);return d===-1?"":l.slice(f,d)},extname:function(l){a(l);for(var c=-1,u=0,f=-1,d=!0,h=0,p=l.length-1;p>=0;--p){var g=l.charCodeAt(p);if(g!==47)f===-1&&(d=!1,f=p+1),g===46?c===-1?c=p:h!==1&&(h=1):c!==-1&&(h=-1);else if(!d){u=p+1;break}}return c===-1||f===-1||h===0||h===1&&c===f-1&&c===u+1?"":l.slice(c,f)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var f=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return f?f===u.root?f+d:f+"/"+d:d}(0,l)},parse:function(l){a(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,f=l.charCodeAt(0),d=f===47;d?(c.root="/",u=1):u=0;for(var h=-1,p=0,g=-1,v=!0,y=l.length-1,b=0;y>=u;--y)if((f=l.charCodeAt(y))!==47)g===-1&&(v=!1,g=y+1),f===46?h===-1?h=y:b!==1&&(b=1):h!==-1&&(b=-1);else if(!v){p=y+1;break}return h===-1||g===-1||b===0||b===1&&h===g-1&&h===p+1?g!==-1&&(c.base=c.name=p===0&&d?l.slice(1,g):l.slice(p,g)):(p===0&&d?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(p,h),c.base=l.slice(p,g)),c.ext=l.slice(h,g)),p>0?c.dir=l.slice(0,p-1):d&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s}},t={};function n(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(i,a)=>{for(var o in a)n.o(a,o)&&!n.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:a[o]})},n.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>d,Utils:()=>M}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(A,j){if(!A.scheme&&j)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!a.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!o.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{constructor(j,P,D,I,W,F=!1){fi(this,"scheme");fi(this,"authority");fi(this,"path");fi(this,"query");fi(this,"fragment");typeof j=="object"?(this.scheme=j.scheme||c,this.authority=j.authority||c,this.path=j.path||c,this.query=j.query||c,this.fragment=j.fragment||c):(this.scheme=function(V,z){return V||z?V:"file"}(j,F),this.authority=P||c,this.path=function(V,z){switch(V){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,D||c),this.query=I||c,this.fragment=W||c,l(this,F))}static isUri(j){return j instanceof d||!!j&&typeof j.authority=="string"&&typeof j.fragment=="string"&&typeof j.path=="string"&&typeof j.query=="string"&&typeof j.scheme=="string"&&typeof j.fsPath=="string"&&typeof j.with=="function"&&typeof j.toString=="function"}get fsPath(){return b(this,!1)}with(j){if(!j)return this;let{scheme:P,authority:D,path:I,query:W,fragment:F}=j;return P===void 0?P=this.scheme:P===null&&(P=c),D===void 0?D=this.authority:D===null&&(D=c),I===void 0?I=this.path:I===null&&(I=c),W===void 0?W=this.query:W===null&&(W=c),F===void 0?F=this.fragment:F===null&&(F=c),P===this.scheme&&D===this.authority&&I===this.path&&W===this.query&&F===this.fragment?this:new p(P,D,I,W,F)}static parse(j,P=!1){const D=f.exec(j);return D?new p(D[2]||c,O(D[4]||c),O(D[5]||c),O(D[7]||c),O(D[9]||c),P):new p(c,c,c,c,c)}static file(j){let P=c;if(i&&(j=j.replace(/\\/g,u)),j[0]===u&&j[1]===u){const D=j.indexOf(u,2);D===-1?(P=j.substring(2),j=u):(P=j.substring(2,D),j=j.substring(D)||u)}return new p("file",P,j,c,c)}static from(j){const P=new p(j.scheme,j.authority,j.path,j.query,j.fragment);return l(P,!0),P}toString(j=!1){return _(this,j)}toJSON(){return this}static revive(j){if(j){if(j instanceof d)return j;{const P=new p(j);return P._formatted=j.external,P._fsPath=j._sep===h?j.fsPath:null,P}}return j}}const h=i?1:void 0;class p extends d{constructor(){super(...arguments);fi(this,"_formatted",null);fi(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(P=!1){return P?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const P={$mid:1};return this._fsPath&&(P.fsPath=this._fsPath,P._sep=h),this._formatted&&(P.external=this._formatted),this.path&&(P.path=this.path),this.scheme&&(P.scheme=this.scheme),this.authority&&(P.authority=this.authority),this.query&&(P.query=this.query),this.fragment&&(P.fragment=this.fragment),P}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function v(A,j,P){let D,I=-1;for(let W=0;W<A.length;W++){const F=A.charCodeAt(W);if(F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===45||F===46||F===95||F===126||j&&F===47||P&&F===91||P&&F===93||P&&F===58)I!==-1&&(D+=encodeURIComponent(A.substring(I,W)),I=-1),D!==void 0&&(D+=A.charAt(W));else{D===void 0&&(D=A.substr(0,W));const V=g[F];V!==void 0?(I!==-1&&(D+=encodeURIComponent(A.substring(I,W)),I=-1),D+=V):I===-1&&(I=W)}}return I!==-1&&(D+=encodeURIComponent(A.substring(I))),D!==void 0?D:A}function y(A){let j;for(let P=0;P<A.length;P++){const D=A.charCodeAt(P);D===35||D===63?(j===void 0&&(j=A.substr(0,P)),j+=g[D]):j!==void 0&&(j+=A[P])}return j!==void 0?j:A}function b(A,j){let P;return P=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?j?A.path.substr(1):A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(P=P.replace(/\//g,"\\")),P}function _(A,j){const P=j?y:v;let D="",{scheme:I,authority:W,path:F,query:V,fragment:z}=A;if(I&&(D+=I,D+=":"),(W||I==="file")&&(D+=u,D+=u),W){let R=W.indexOf("@");if(R!==-1){const G=W.substr(0,R);W=W.substr(R+1),R=G.lastIndexOf(":"),R===-1?D+=P(G,!1,!1):(D+=P(G.substr(0,R),!1,!1),D+=":",D+=P(G.substr(R+1),!1,!0)),D+="@"}W=W.toLowerCase(),R=W.lastIndexOf(":"),R===-1?D+=P(W,!1,!0):(D+=P(W.substr(0,R),!1,!0),D+=W.substr(R))}if(F){if(F.length>=3&&F.charCodeAt(0)===47&&F.charCodeAt(2)===58){const R=F.charCodeAt(1);R>=65&&R<=90&&(F=`/${String.fromCharCode(R+32)}:${F.substr(3)}`)}else if(F.length>=2&&F.charCodeAt(1)===58){const R=F.charCodeAt(0);R>=65&&R<=90&&(F=`${String.fromCharCode(R+32)}:${F.substr(2)}`)}D+=P(F,!0,!1)}return V&&(D+="?",D+=P(V,!1,!1)),z&&(D+="#",D+=j?z:v(z,!1,!1)),D}function S(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+S(A.substr(3)):A}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(A){return A.match(w)?A.replace(w,j=>S(j)):A}var E=n(470);const T=E.posix||E,$="/";var M;(function(A){A.joinPath=function(j,...P){return j.with({path:T.join(j.path,...P)})},A.resolvePath=function(j,...P){let D=j.path,I=!1;D[0]!==$&&(D=$+D,I=!0);let W=T.resolve(D,...P);return I&&W[0]===$&&!j.authority&&(W=W.substring(1)),j.with({path:W})},A.dirname=function(j){if(j.path.length===0||j.path===$)return j;let P=T.dirname(j.path);return P.length===1&&P.charCodeAt(0)===46&&(P=""),j.with({path:P})},A.basename=function(j){return T.basename(j.path)},A.extname=function(j){return T.extname(j.path)}})(M||(M={}))})(),p3=r})();const{URI:qi,Utils:fCe}=p3;function j_e(e){return e===8?1:e===4?2:e===2?3:4}function $_e(e){return e===1?8:e===2?4:e===3?2:1}function D_e(e){return e}function M_e(e){return e}function m1(e){return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Sn(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function I_e(e){return{location:{range:m1(e),uri:String(e.resource)},message:e.message}}function L_e(e){return{...Sn(e.location.range),message:e.message,resource:qi.parse(e.location.uri)}}function N_e(e){const t={message:e.message,range:m1(e),severity:j_e(e.severity)};return typeof e.code=="string"?t.code=e.code:e.code!=null&&(t.code=e.code.value,t.codeDescription={href:String(e.code.target)}),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(I_e)),e.tags&&(t.tags=e.tags.map(D_e)),e.source!=null&&(t.source=e.source),t}function g3(e,t){var n;const r={...Sn(e.range),message:e.message,severity:e.severity?$_e(e.severity):(n=t==null?void 0:t.defaultSeverity)!==null&&n!==void 0?n:8};return e.code!=null&&(r.code=e.codeDescription==null?String(e.code):{value:String(e.code),target:qi.parse(e.codeDescription.href)}),e.relatedInformation&&(r.relatedInformation=e.relatedInformation.map(L_e)),e.tags&&(r.tags=e.tags.map(M_e)),e.source!=null&&(r.source=e.source),r}function m3(e){return{range:Sn(e.range),text:e.newText}}function F_e(e){const t={};return e.ignoreIfExists!=null&&(t.ignoreIfExists=e.ignoreIfExists),e.ignoreIfNotExists!=null&&(t.ignoreIfNotExists=e.ignoreIfNotExists),e.overwrite!=null&&(t.overwrite=e.overwrite),e.recursive!=null&&(t.recursive=e.recursive),t}function R_e(e){const t=e.kind==="create"?{newResource:qi.parse(e.uri)}:e.kind==="delete"?{oldResource:qi.parse(e.uri)}:{oldResource:qi.parse(e.oldUri),newResource:qi.parse(e.newUri)};return e.options&&(t.options=F_e(e.options)),t}function v3(e,t,n){return{resource:qi.parse(t),versionId:n,textEdit:m3(e)}}function W_e(e){var t;const n=[];if(e.changes)for(const[r,i]of Object.entries(e.changes))for(const a of i)n.push(v3(a,r));if(e.documentChanges)for(const r of e.documentChanges)if("textDocument"in r)for(const i of r.edits)n.push(v3(i,r.textDocument.uri,(t=r.textDocument.version)!==null&&t!==void 0?t:void 0));else n.push(R_e(r));return{edits:n}}function B_e(e,t){const n={title:e.title,isPreferred:e.isPreferred};return e.diagnostics&&(n.diagnostics=e.diagnostics.map(r=>g3(r,t))),e.disabled&&(n.disabled=e.disabled.reason),e.edit&&(n.edit=W_e(e.edit)),e.isPreferred!=null&&(n.isPreferred=e.isPreferred),e.kind&&(n.kind=e.kind),n}function dCe(e){return e}function z_e(e){const t={diagnostics:e.markers.map(N_e),triggerKind:e.trigger};return e.only!=null&&(t.only=[e.only]),t}function V_e(e){const t={title:e.title,id:e.command};return e.arguments&&(t.arguments=e.arguments),t}function U_e(e){return e===1?18:e===2?0:e===3?1:e===4?2:e===5?3:e===6?4:e===7?5:e===8?7:e===9?8:e===10?9:e===11?12:e===12?13:e===13?15:e===14?17:e===15?27:e===16?19:e===17?20:e===18?21:e===19?23:e===20?16:e===21?14:e===22?6:e===23?10:e===24?11:24}function H_e(e){return e}function y3(e){return{value:e.value}}function G_e(e){return{range:Sn(e.range),text:e.newText}}function q_e(e){return"range"in e?Sn(e.range):"insert"in e&&"replace"in e?{insert:Sn(e.insert),replace:Sn(e.replace)}:Sn(e)}function Y_e(e,t){var n,r,i,a,o;const s=(n=t.itemDefaults)!==null&&n!==void 0?n:{},l=(r=e.textEdit)!==null&&r!==void 0?r:s.editRange,c=(i=e.commitCharacters)!==null&&i!==void 0?i:s.commitCharacters,u=(a=e.insertTextFormat)!==null&&a!==void 0?a:s.insertTextFormat,f=(o=e.insertTextMode)!==null&&o!==void 0?o:s.insertTextMode;let d=e.insertText,h;l?(h=q_e(l),"newText"in l&&(d=l.newText)):h={...t.range};const p={insertText:d??e.label,kind:e.kind==null?18:U_e(e.kind),label:e.label,range:h};return e.additionalTextEdits&&(p.additionalTextEdits=e.additionalTextEdits.map(G_e)),e.command&&(p.command=V_e(e.command)),c&&(p.commitCharacters=c),e.detail!=null&&(p.detail=e.detail),typeof e.documentation=="string"?p.documentation=e.documentation:e.documentation&&(p.documentation=y3(e.documentation)),e.filterText!=null&&(p.filterText=e.filterText),u===2?p.insertTextRules=4:f===2&&(p.insertTextRules=1),e.preselect!=null&&(p.preselect=e.preselect),e.sortText!=null&&(p.sortText=e.sortText),e.tags&&(p.tags=e.tags.map(H_e)),p}function K_e(e,t){return{incomplete:!!e.isIncomplete,suggestions:e.items.map(n=>Y_e(n,{range:t.range,itemDefaults:e.itemDefaults}))}}function X_e(e){return e===1?0:e===2?1:e===3?2:e===4?3:e===5?4:e===6?5:e===7?6:e===8?7:e===9?8:e===10?9:e===11?10:e===12?11:e===13?12:e===14?13:e===15?14:e===16?15:e===17?16:e===18?17:e===19?18:e===20?19:e===21?20:e===22?21:e===23?22:e===24?23:e===25?24:25}function Z_e(e){return e}function b3(e){var t,n,r;const i={detail:(t=e.detail)!==null&&t!==void 0?t:"",kind:X_e(e.kind),name:e.name,range:Sn(e.range),selectionRange:Sn(e.selectionRange),tags:(r=(n=e.tags)===null||n===void 0?void 0:n.map(Z_e))!==null&&r!==void 0?r:[]};return e.children&&(i.children=e.children.map(b3)),i}function J_e(e){const t={start:e.startLine+1,end:e.endLine+1};return e.kind!=null&&(t.kind={value:e.kind}),t}function x3(e){return typeof e=="string"?{value:e}:{value:`\`\`\`${e.language}
538
+ `:""}var p_e=h_e,g_e={dump:p_e};function g1(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var m_e=rn,v_e=hj,y_e=vj,b_e=wj,x_e=Sj,__e=o1,w_e=Gj.load,S_e=Gj.loadAll,O_e=g_e.dump,C_e=wn,E_e={binary:Tj,float:_j,map:mj,null:yj,pairs:Pj,set:jj,timestamp:Ej,bool:bj,int:xj,merge:kj,omap:Aj,seq:gj,str:pj},k_e=g1("safeLoad","load"),T_e=g1("safeLoadAll","loadAll"),A_e=g1("safeDump","dump"),d3={Type:m_e,Schema:v_e,FAILSAFE_SCHEMA:y_e,JSON_SCHEMA:b_e,CORE_SCHEMA:x_e,DEFAULT_SCHEMA:__e,load:w_e,loadAll:S_e,dump:O_e,YAMLException:C_e,types:E_e,safeLoad:k_e,safeLoadAll:T_e,safeDump:A_e};function h3(e,t,n){const r=new Map,i=f=>{if(t==="*")return!0;const d=f.getLanguageId();return Array.isArray(t)?t.includes(d):t===d},a=async f=>{const d=f.getVersionId(),h=await n.provideMarkerData(f);d===f.getVersionId()&&!f.isDisposed()&&i(f)&&e.editor.setModelMarkers(f,n.owner,h??[])},o=f=>{if(!i(f))return;let d;r.set(f,f.onDidChangeContent(()=>{clearTimeout(d),d=setTimeout(()=>{a(f)},500)})),a(f)},s=f=>{e.editor.setModelMarkers(f,n.owner,[]);const d=r.get(f);d&&(d.dispose(),r.delete(f))},l=e.editor.onDidCreateModel(o),c=e.editor.onWillDisposeModel(f=>{var d;s(f),(d=n.doReset)==null||d.call(n,f)}),u=e.editor.onDidChangeModelLanguage(f=>{var d;s(f.model),o(f.model),(d=n.doReset)==null||d.call(n,f.model)});for(const f of e.editor.getModels())o(f);return{dispose(){for(const f of r.keys())s(f);l.dispose(),c.dispose(),u.dispose()},async revalidate(){await Promise.all(e.editor.getModels().map(a))}}}function P_e(e,t){let{createData:n,interval:r=3e4,label:i,moduleId:a,stopWhenIdleFor:o=12e4}=t,s,l=0,c=!1;const u=()=>{s&&(s.dispose(),s=void 0)},f=setInterval(()=>{if(!s)return;Date.now()-l>o&&u()},r);return{dispose(){c=!0,clearInterval(f),u()},getWorker(...d){if(c)throw new Error("Worker manager has been disposed");return l=Date.now(),s||(s=e.editor.createWebWorker({createData:n,label:i,moduleId:a})),s.withSyncedResources(d)},updateCreateData(d){n=d,u()}}}var p3;(()=>{var e={470:i=>{function a(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function o(l,c){for(var u,f="",d=0,h=-1,p=0,g=0;g<=l.length;++g){if(g<l.length)u=l.charCodeAt(g);else{if(u===47)break;u=47}if(u===47){if(!(h===g-1||p===1))if(h!==g-1&&p===2){if(f.length<2||d!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var v=f.lastIndexOf("/");if(v!==f.length-1){v===-1?(f="",d=0):d=(f=f.slice(0,v)).length-1-f.lastIndexOf("/"),h=g,p=0;continue}}else if(f.length===2||f.length===1){f="",d=0,h=g,p=0;continue}}c&&(f.length>0?f+="/..":f="..",d=2)}else f.length>0?f+="/"+l.slice(h+1,g):f=l.slice(h+1,g),d=g-h-1;h=g,p=0}else u===46&&p!==-1?++p:p=-1}return f}var s={resolve:function(){for(var l,c="",u=!1,f=arguments.length-1;f>=-1&&!u;f--){var d;f>=0?d=arguments[f]:(l===void 0&&(l=process.cwd()),d=l),a(d),d.length!==0&&(c=d+"/"+c,u=d.charCodeAt(0)===47)}return c=o(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(a(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=o(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return a(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c<arguments.length;++c){var u=arguments[c];a(u),u.length>0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":s.normalize(l)},relative:function(l,c){if(a(l),a(c),l===c||(l=s.resolve(l))===(c=s.resolve(c)))return"";for(var u=1;u<l.length&&l.charCodeAt(u)===47;++u);for(var f=l.length,d=f-u,h=1;h<c.length&&c.charCodeAt(h)===47;++h);for(var p=c.length-h,g=d<p?d:p,v=-1,y=0;y<=g;++y){if(y===g){if(p>g){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else d>g&&(l.charCodeAt(u+y)===47?v=y:y===0&&(v=0));break}var b=l.charCodeAt(u+y);if(b!==c.charCodeAt(h+y))break;b===47&&(v=y)}var _="";for(y=u+v+1;y<=f;++y)y!==f&&l.charCodeAt(y)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+c.slice(h+v):(h+=v,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(a(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,f=-1,d=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!d){f=h;break}}else d=!1;return f===-1?u?"/":".":u&&f===1?"//":l.slice(0,f)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');a(l);var u,f=0,d=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var p=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var v=l.charCodeAt(u);if(v===47){if(!h){f=u+1;break}}else g===-1&&(h=!1,g=u+1),p>=0&&(v===c.charCodeAt(p)?--p==-1&&(d=u):(p=-1,d=g))}return f===d?d=g:d===-1&&(d=l.length),l.slice(f,d)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){f=u+1;break}}else d===-1&&(h=!1,d=u+1);return d===-1?"":l.slice(f,d)},extname:function(l){a(l);for(var c=-1,u=0,f=-1,d=!0,h=0,p=l.length-1;p>=0;--p){var g=l.charCodeAt(p);if(g!==47)f===-1&&(d=!1,f=p+1),g===46?c===-1?c=p:h!==1&&(h=1):c!==-1&&(h=-1);else if(!d){u=p+1;break}}return c===-1||f===-1||h===0||h===1&&c===f-1&&c===u+1?"":l.slice(c,f)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var f=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return f?f===u.root?f+d:f+"/"+d:d}(0,l)},parse:function(l){a(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,f=l.charCodeAt(0),d=f===47;d?(c.root="/",u=1):u=0;for(var h=-1,p=0,g=-1,v=!0,y=l.length-1,b=0;y>=u;--y)if((f=l.charCodeAt(y))!==47)g===-1&&(v=!1,g=y+1),f===46?h===-1?h=y:b!==1&&(b=1):h!==-1&&(b=-1);else if(!v){p=y+1;break}return h===-1||g===-1||b===0||b===1&&h===g-1&&h===p+1?g!==-1&&(c.base=c.name=p===0&&d?l.slice(1,g):l.slice(p,g)):(p===0&&d?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(p,h),c.base=l.slice(p,g)),c.ext=l.slice(h,g)),p>0?c.dir=l.slice(0,p-1):d&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s}},t={};function n(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(i,a)=>{for(var o in a)n.o(a,o)&&!n.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:a[o]})},n.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>d,Utils:()=>M}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(A,j){if(!A.scheme&&j)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!a.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!o.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{constructor(j,P,D,I,W,F=!1){fi(this,"scheme");fi(this,"authority");fi(this,"path");fi(this,"query");fi(this,"fragment");typeof j=="object"?(this.scheme=j.scheme||c,this.authority=j.authority||c,this.path=j.path||c,this.query=j.query||c,this.fragment=j.fragment||c):(this.scheme=function(V,z){return V||z?V:"file"}(j,F),this.authority=P||c,this.path=function(V,z){switch(V){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,D||c),this.query=I||c,this.fragment=W||c,l(this,F))}static isUri(j){return j instanceof d||!!j&&typeof j.authority=="string"&&typeof j.fragment=="string"&&typeof j.path=="string"&&typeof j.query=="string"&&typeof j.scheme=="string"&&typeof j.fsPath=="string"&&typeof j.with=="function"&&typeof j.toString=="function"}get fsPath(){return b(this,!1)}with(j){if(!j)return this;let{scheme:P,authority:D,path:I,query:W,fragment:F}=j;return P===void 0?P=this.scheme:P===null&&(P=c),D===void 0?D=this.authority:D===null&&(D=c),I===void 0?I=this.path:I===null&&(I=c),W===void 0?W=this.query:W===null&&(W=c),F===void 0?F=this.fragment:F===null&&(F=c),P===this.scheme&&D===this.authority&&I===this.path&&W===this.query&&F===this.fragment?this:new p(P,D,I,W,F)}static parse(j,P=!1){const D=f.exec(j);return D?new p(D[2]||c,O(D[4]||c),O(D[5]||c),O(D[7]||c),O(D[9]||c),P):new p(c,c,c,c,c)}static file(j){let P=c;if(i&&(j=j.replace(/\\/g,u)),j[0]===u&&j[1]===u){const D=j.indexOf(u,2);D===-1?(P=j.substring(2),j=u):(P=j.substring(2,D),j=j.substring(D)||u)}return new p("file",P,j,c,c)}static from(j){const P=new p(j.scheme,j.authority,j.path,j.query,j.fragment);return l(P,!0),P}toString(j=!1){return _(this,j)}toJSON(){return this}static revive(j){if(j){if(j instanceof d)return j;{const P=new p(j);return P._formatted=j.external,P._fsPath=j._sep===h?j.fsPath:null,P}}return j}}const h=i?1:void 0;class p extends d{constructor(){super(...arguments);fi(this,"_formatted",null);fi(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(P=!1){return P?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const P={$mid:1};return this._fsPath&&(P.fsPath=this._fsPath,P._sep=h),this._formatted&&(P.external=this._formatted),this.path&&(P.path=this.path),this.scheme&&(P.scheme=this.scheme),this.authority&&(P.authority=this.authority),this.query&&(P.query=this.query),this.fragment&&(P.fragment=this.fragment),P}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function v(A,j,P){let D,I=-1;for(let W=0;W<A.length;W++){const F=A.charCodeAt(W);if(F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===45||F===46||F===95||F===126||j&&F===47||P&&F===91||P&&F===93||P&&F===58)I!==-1&&(D+=encodeURIComponent(A.substring(I,W)),I=-1),D!==void 0&&(D+=A.charAt(W));else{D===void 0&&(D=A.substr(0,W));const V=g[F];V!==void 0?(I!==-1&&(D+=encodeURIComponent(A.substring(I,W)),I=-1),D+=V):I===-1&&(I=W)}}return I!==-1&&(D+=encodeURIComponent(A.substring(I))),D!==void 0?D:A}function y(A){let j;for(let P=0;P<A.length;P++){const D=A.charCodeAt(P);D===35||D===63?(j===void 0&&(j=A.substr(0,P)),j+=g[D]):j!==void 0&&(j+=A[P])}return j!==void 0?j:A}function b(A,j){let P;return P=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?j?A.path.substr(1):A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(P=P.replace(/\//g,"\\")),P}function _(A,j){const P=j?y:v;let D="",{scheme:I,authority:W,path:F,query:V,fragment:z}=A;if(I&&(D+=I,D+=":"),(W||I==="file")&&(D+=u,D+=u),W){let R=W.indexOf("@");if(R!==-1){const G=W.substr(0,R);W=W.substr(R+1),R=G.lastIndexOf(":"),R===-1?D+=P(G,!1,!1):(D+=P(G.substr(0,R),!1,!1),D+=":",D+=P(G.substr(R+1),!1,!0)),D+="@"}W=W.toLowerCase(),R=W.lastIndexOf(":"),R===-1?D+=P(W,!1,!0):(D+=P(W.substr(0,R),!1,!0),D+=W.substr(R))}if(F){if(F.length>=3&&F.charCodeAt(0)===47&&F.charCodeAt(2)===58){const R=F.charCodeAt(1);R>=65&&R<=90&&(F=`/${String.fromCharCode(R+32)}:${F.substr(3)}`)}else if(F.length>=2&&F.charCodeAt(1)===58){const R=F.charCodeAt(0);R>=65&&R<=90&&(F=`${String.fromCharCode(R+32)}:${F.substr(2)}`)}D+=P(F,!0,!1)}return V&&(D+="?",D+=P(V,!1,!1)),z&&(D+="#",D+=j?z:v(z,!1,!1)),D}function S(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+S(A.substr(3)):A}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(A){return A.match(w)?A.replace(w,j=>S(j)):A}var E=n(470);const T=E.posix||E,$="/";var M;(function(A){A.joinPath=function(j,...P){return j.with({path:T.join(j.path,...P)})},A.resolvePath=function(j,...P){let D=j.path,I=!1;D[0]!==$&&(D=$+D,I=!0);let W=T.resolve(D,...P);return I&&W[0]===$&&!j.authority&&(W=W.substring(1)),j.with({path:W})},A.dirname=function(j){if(j.path.length===0||j.path===$)return j;let P=T.dirname(j.path);return P.length===1&&P.charCodeAt(0)===46&&(P=""),j.with({path:P})},A.basename=function(j){return T.basename(j.path)},A.extname=function(j){return T.extname(j.path)}})(M||(M={}))})(),p3=r})();const{URI:qi,Utils:fCe}=p3;function j_e(e){return e===8?1:e===4?2:e===2?3:4}function $_e(e){return e===1?8:e===2?4:e===3?2:1}function D_e(e){return e}function M_e(e){return e}function m1(e){return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Sn(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function I_e(e){return{location:{range:m1(e),uri:String(e.resource)},message:e.message}}function L_e(e){return{...Sn(e.location.range),message:e.message,resource:qi.parse(e.location.uri)}}function N_e(e){const t={message:e.message,range:m1(e),severity:j_e(e.severity)};return typeof e.code=="string"?t.code=e.code:e.code!=null&&(t.code=e.code.value,t.codeDescription={href:String(e.code.target)}),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(I_e)),e.tags&&(t.tags=e.tags.map(D_e)),e.source!=null&&(t.source=e.source),t}function g3(e,t){var n;const r={...Sn(e.range),message:e.message,severity:e.severity?$_e(e.severity):(n=t==null?void 0:t.defaultSeverity)!==null&&n!==void 0?n:8};return e.code!=null&&(r.code=e.codeDescription==null?String(e.code):{value:String(e.code),target:qi.parse(e.codeDescription.href)}),e.relatedInformation&&(r.relatedInformation=e.relatedInformation.map(L_e)),e.tags&&(r.tags=e.tags.map(M_e)),e.source!=null&&(r.source=e.source),r}function m3(e){return{range:Sn(e.range),text:e.newText}}function F_e(e){const t={};return e.ignoreIfExists!=null&&(t.ignoreIfExists=e.ignoreIfExists),e.ignoreIfNotExists!=null&&(t.ignoreIfNotExists=e.ignoreIfNotExists),e.overwrite!=null&&(t.overwrite=e.overwrite),e.recursive!=null&&(t.recursive=e.recursive),t}function R_e(e){const t=e.kind==="create"?{newResource:qi.parse(e.uri)}:e.kind==="delete"?{oldResource:qi.parse(e.uri)}:{oldResource:qi.parse(e.oldUri),newResource:qi.parse(e.newUri)};return e.options&&(t.options=F_e(e.options)),t}function v3(e,t,n){return{resource:qi.parse(t),versionId:n,textEdit:m3(e)}}function W_e(e){var t;const n=[];if(e.changes)for(const[r,i]of Object.entries(e.changes))for(const a of i)n.push(v3(a,r));if(e.documentChanges)for(const r of e.documentChanges)if("textDocument"in r)for(const i of r.edits)n.push(v3(i,r.textDocument.uri,(t=r.textDocument.version)!==null&&t!==void 0?t:void 0));else n.push(R_e(r));return{edits:n}}function B_e(e,t){const n={title:e.title,isPreferred:e.isPreferred};return e.diagnostics&&(n.diagnostics=e.diagnostics.map(r=>g3(r,t))),e.disabled&&(n.disabled=e.disabled.reason),e.edit&&(n.edit=W_e(e.edit)),e.isPreferred!=null&&(n.isPreferred=e.isPreferred),e.kind&&(n.kind=e.kind),n}function dCe(e){return e}function z_e(e){const t={diagnostics:e.markers.map(N_e),triggerKind:e.trigger};return e.only!=null&&(t.only=[e.only]),t}function V_e(e){const t={title:e.title,id:e.command};return e.arguments&&(t.arguments=e.arguments),t}function U_e(e){return e===1?18:e===2?0:e===3?1:e===4?2:e===5?3:e===6?4:e===7?5:e===8?7:e===9?8:e===10?9:e===11?12:e===12?13:e===13?15:e===14?17:e===15?27:e===16?19:e===17?20:e===18?21:e===19?23:e===20?16:e===21?14:e===22?6:e===23?10:e===24?11:24}function H_e(e){return e}function y3(e){return{value:e.value}}function G_e(e){return{range:Sn(e.range),text:e.newText}}function q_e(e){return"range"in e?Sn(e.range):"insert"in e&&"replace"in e?{insert:Sn(e.insert),replace:Sn(e.replace)}:Sn(e)}function Y_e(e,t){var n,r,i,a,o;const s=(n=t.itemDefaults)!==null&&n!==void 0?n:{},l=(r=e.textEdit)!==null&&r!==void 0?r:s.editRange,c=(i=e.commitCharacters)!==null&&i!==void 0?i:s.commitCharacters,u=(a=e.insertTextFormat)!==null&&a!==void 0?a:s.insertTextFormat,f=(o=e.insertTextMode)!==null&&o!==void 0?o:s.insertTextMode;let d=e.insertText,h;l?(h=q_e(l),"newText"in l&&(d=l.newText)):h={...t.range};const p={insertText:d??e.label,kind:e.kind==null?18:U_e(e.kind),label:e.label,range:h};return e.additionalTextEdits&&(p.additionalTextEdits=e.additionalTextEdits.map(G_e)),e.command&&(p.command=V_e(e.command)),c&&(p.commitCharacters=c),e.detail!=null&&(p.detail=e.detail),typeof e.documentation=="string"?p.documentation=e.documentation:e.documentation&&(p.documentation=y3(e.documentation)),e.filterText!=null&&(p.filterText=e.filterText),u===2?p.insertTextRules=4:f===2&&(p.insertTextRules=1),e.preselect!=null&&(p.preselect=e.preselect),e.sortText!=null&&(p.sortText=e.sortText),e.tags&&(p.tags=e.tags.map(H_e)),p}function K_e(e,t){return{incomplete:!!e.isIncomplete,suggestions:e.items.map(n=>Y_e(n,{range:t.range,itemDefaults:e.itemDefaults}))}}function X_e(e){return e===1?0:e===2?1:e===3?2:e===4?3:e===5?4:e===6?5:e===7?6:e===8?7:e===9?8:e===10?9:e===11?10:e===12?11:e===13?12:e===14?13:e===15?14:e===16?15:e===17?16:e===18?17:e===19?18:e===20?19:e===21?20:e===22?21:e===23?22:e===24?23:e===25?24:25}function Z_e(e){return e}function b3(e){var t,n,r;const i={detail:(t=e.detail)!==null&&t!==void 0?t:"",kind:X_e(e.kind),name:e.name,range:Sn(e.range),selectionRange:Sn(e.selectionRange),tags:(r=(n=e.tags)===null||n===void 0?void 0:n.map(Z_e))!==null&&r!==void 0?r:[]};return e.children&&(i.children=e.children.map(b3)),i}function J_e(e){const t={start:e.startLine+1,end:e.endLine+1};return e.kind!=null&&(t.kind={value:e.kind}),t}function x3(e){return typeof e=="string"?{value:e}:{value:`\`\`\`${e.language}
539
539
  ${e.value}
540
540
  \`\`\``}}function Q_e(e){return typeof e=="string"||"language"in e?[x3(e)]:Array.isArray(e)?e.map(x3):[y3(e)]}function e5e(e){const t={contents:Q_e(e.contents)};return e.range&&(t.range=Sn(e.range)),t}function v1(e){return{character:e.column-1,line:e.lineNumber-1}}function t5e(e){const t={range:Sn(e.range)};return e.tooltip!=null&&(t.tooltip=e.tooltip),e.target!=null&&(t.url=qi.parse(e.target)),t}function n5e(e){const t={range:Sn(e.targetRange),targetSelectionRange:Sn(e.targetSelectionRange),uri:qi.parse(e.targetUri)};return e.originSelectionRange&&(t.originSelectionRange=Sn(e.originSelectionRange)),t}function _3(e){return{owner:"yaml",async provideMarkerData(t){const r=await(await e(t.uri)).doValidation(String(t.uri));return r==null?void 0:r.map(i=>g3(i))},async doReset(t){await(await e(t.uri)).resetSchema(String(t.uri))}}}function r5e(e){return{triggerCharacters:[" ",":"],async provideCompletionItems(t,n){const r=t.uri,i=t.getWordUntilPosition(n),o=await(await e(r)).doComplete(String(r),v1(n));if(o)return K_e(o,{range:{startLineNumber:n.lineNumber,startColumn:i.startColumn,endLineNumber:n.lineNumber,endColumn:i.endColumn}})}}}function i5e(e){return{async provideDefinition(t,n){const r=t.uri,a=await(await e(r)).doDefinition(String(r),v1(n));return a==null?void 0:a.map(n5e)}}}function a5e(e){return{async provideHover(t,n){const r=t.uri,a=await(await e(r)).doHover(String(r),v1(n));if(a)return e5e(a)}}}function o5e(e){return{displayName:"yaml",async provideDocumentSymbols(t){const n=t.uri,i=await(await e(n)).findDocumentSymbols(String(n));return i==null?void 0:i.map(b3)}}}function s5e(e){return{displayName:"yaml",async provideDocumentFormattingEdits(t){const n=t.uri,i=await(await e(n)).format(String(n));return i==null?void 0:i.map(m3)}}}function l5e(e){return{async provideLinks(t){const n=t.uri,i=await(await e(n)).findLinks(String(n));if(i)return{links:i.map(t5e)}}}}function c5e(e){return{async provideCodeActions(t,n,r){const i=t.uri,o=await(await e(i)).getCodeAction(String(i),m1(n),z_e(r));if(o)return{actions:o.map(s=>B_e(s)),dispose(){}}}}}function u5e(e){return{async provideFoldingRanges(t){const n=t.uri,i=await(await e(n)).getFoldingRanges(String(n));return i==null?void 0:i.map(J_e)}}}function f5e(e,t){const n={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2",...t};e.languages.register({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]});const r=P_e(e,{label:"yaml",moduleId:"monaco-yaml/yaml.worker",createData:n});let i=h3(e,"yaml",_3(r.getWorker));const a=[r,e.languages.registerCompletionItemProvider("yaml",r5e(r.getWorker)),e.languages.registerHoverProvider("yaml",a5e(r.getWorker)),e.languages.registerDefinitionProvider("yaml",i5e(r.getWorker)),e.languages.registerDocumentSymbolProvider("yaml",o5e(r.getWorker)),e.languages.registerDocumentFormattingEditProvider("yaml",s5e(r.getWorker)),e.languages.registerLinkProvider("yaml",l5e(r.getWorker)),e.languages.registerCodeActionProvider("yaml",c5e(r.getWorker)),e.languages.registerFoldingRangeProvider("yaml",u5e(r.getWorker)),e.languages.setLanguageConfiguration("yaml",{comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.languages.IndentAction.Indent}}]})];return{dispose(){for(const o of a)o.dispose();i.dispose()},update(o){r.updateCreateData(Object.assign(n,o)),i.dispose(),i=h3(e,"yaml",_3(r.getWorker))}}}function d5e(e){const t=bi(e),{language:n,value:r,onChange:i,setError:a,isReadOnly:o}=e,[s,l]=x.useState(!1),c=x.useRef(null),u=x.useRef(null),f=x.useCallback(v=>{if(!c.current)return;c.current.style.minHeight=`${w3+C3}px`;const y=v.split(`
541
541
  `).length;c.current.style.height=`${y*w3+C3}px`},[]),d=x.useRef({});x.useEffect(()=>{if(u.current){const v=Ji.editor.create(u.current,{lineNumbers:e.lineNumbers?"on":"off",lineDecorationsWidth:e.lineNumbers?void 0:0,theme:"data-editor-dark",padding:{top:S3,bottom:O3},fontSize:14,fontFamily:"RedHatMono",scrollBeyondLastLine:!1,minimap:{enabled:!1},renderLineHighlightOnlyWhenFocus:!0,scrollbar:{alwaysConsumeMouseWheel:!1}});return d.current.editor=v,()=>v.dispose()}},[e.lineNumbers]),x.useEffect(()=>{var _;const v=(_=d==null?void 0:d.current)==null?void 0:_.editor;if(!v)return;const y=v.getModel();if(!y)return;const b=y.onDidChangeContent(()=>{const S=v.getValue()??"";i(S),f(S)});return()=>b.dispose()},[i,f]),x.useEffect(()=>{var y;const v=(y=d==null?void 0:d.current)==null?void 0:y.editor;v&&v.getValue()!==r&&(v.setValue(r),f(r))},[r,f]),x.useEffect(()=>{var y;const v=(y=d==null?void 0:d.current)==null?void 0:y.editor;v&&v.updateOptions({readOnly:o})},[o]);const[h,p]=x.useState(!1);x.useEffect(()=>{var _;const v=(_=d==null?void 0:d.current)==null?void 0:_.editor;if(!v)return;const y=v.getModel();if(!y)return;Ji.editor.setModelLanguage(y,n);const b=Ji.editor.onDidChangeMarkers(()=>{const S=Ji.editor.getModelMarkers({owner:y.getLanguageId(),resource:y.uri});p(S.length>0),a(S.length>0?S.map(w=>w.message).join(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.1368",
4
+ "version": "2.4.1370",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",