@devtron-labs/devtron-fe-common-lib 0.0.87 → 0.0.88
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/Common/Helper.d.ts +0 -1
- package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +6 -0
- package/dist/Shared/Providers/UserEmailProvider/index.d.ts +2 -0
- package/dist/Shared/Providers/UserEmailProvider/types.d.ts +5 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/assets/{yaml.worker-cc1a551a.js → yaml.worker-632eebb8.js} +1 -1
- package/dist/{cssMode-63d9bd89.js → cssMode-ab1cede0.js} +1 -1
- package/dist/{freemarker2-c9e6bf9d.js → freemarker2-cc0ae51f.js} +1 -1
- package/dist/{handlebars-c42d536d.js → handlebars-5ed7fc33.js} +1 -1
- package/dist/{html-7321fa0e.js → html-251d77ee.js} +1 -1
- package/dist/{htmlMode-b76e1633.js → htmlMode-06b78f6b.js} +1 -1
- package/dist/{index-c805c847.js → index-262f2dff.js} +9928 -9929
- package/dist/index.js +107 -105
- package/dist/{javascript-70a74eed.js → javascript-382b3564.js} +1 -1
- package/dist/{jsonMode-3116eac3.js → jsonMode-e72806eb.js} +1 -1
- package/dist/{liquid-a735aa52.js → liquid-547a14d3.js} +1 -1
- package/dist/{mdx-a32983e7.js → mdx-b6467358.js} +1 -1
- package/dist/{python-e6b65f83.js → python-f2fec6d5.js} +1 -1
- package/dist/{razor-a3f06242.js → razor-887ad677.js} +1 -1
- package/dist/{tsMode-38fdbf53.js → tsMode-f999f02f.js} +1 -1
- package/dist/{typescript-e547feb1.js → typescript-0a5d1c77.js} +1 -1
- package/dist/{xml-6a016af6.js → xml-4af454d4.js} +1 -1
- package/dist/{yaml-b0c851ba.js → yaml-b393a552.js} +1 -1
- package/package.json +1 -1
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const refresh: () => void;
|
|
|
22
22
|
export declare const reportIssue: () => void;
|
|
23
23
|
export declare function useEffectAfterMount(cb: any, dependencies: any): void;
|
|
24
24
|
export declare function getCookie(sKey: any): string;
|
|
25
|
-
export declare function getLoginInfo(): any;
|
|
26
25
|
export declare function useForm(stateSchema: any, validationSchema: {}, callback: any): {
|
|
27
26
|
state: any;
|
|
28
27
|
disable: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseUserEmailContextType } from './types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const useUserEmail: () => UseUserEmailContextType;
|
|
5
|
+
export declare const UserEmailProvider: React.FC<{}>;
|
|
6
|
+
export declare const withUserEmail: (Component: React.ComponentClass) => (props: object) => JSX.Element;
|
|
@@ -70,7 +70,7 @@ ${s}${i}${Q}`:`
|
|
|
70
70
|
${i}${B}`}else return`${N}${a}${c.join(" ")}${a}${B}`}function Au({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=os(t(r),e);n.push(s.trimStart())}}function Ws(e,t){const n=qn(t)?t.value:t;for(const r of e)if(dr(r)&&(r.key===t||r.key===n||qn(r.key)&&r.key.value===n))return r}class Ni extends Ic{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ns,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:s}=r,a=new this(t),o=(u,l)=>{if(typeof s=="function")l=s.call(n,u,l);else if(Array.isArray(s)&&!s.includes(u))return;(l!==void 0||i)&&a.items.push(qc(u,l,r))};if(n instanceof Map)for(const[u,l]of n)o(u,l);else if(n&&typeof n=="object")for(const u of Object.keys(n))o(u,n[u]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let r;dr(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new si(t,t?.value):r=new si(t.key,t.value);const i=Ws(this.items,r.key),s=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);qn(i.value)&&sm(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const a=this.items.findIndex(o=>s(r,o)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=Ws(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const i=Ws(this.items,t)?.value;return(!n&&qn(i)?i.value:i)??void 0}has(t){return!!Ws(this.items,t)}set(t,n){this.add(new si(t,n),!0)}toJSON(t,n,r){const i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(const s of this.items)fm(n,i,s);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!dr(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),pm(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const La={collection:"map",default:!0,nodeClass:Ni,tag:"tag:yaml.org,2002:map",resolve(e,t){return Pr(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Ni.from(e,t,n)};class Gs extends Ic{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(wa,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Cu(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Cu(t);if(typeof r!="number")return;const i=this.items[r];return!n&&qn(i)?i.value:i}has(t){const n=Cu(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Cu(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];qn(i)&&sm(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(Fi(s,String(i++),n));return r}toString(t,n,r){return t?pm(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let o of n){if(typeof i=="function"){const u=n instanceof Set?o:String(a++);o=i.call(n,u,o)}s.items.push(wo(o,void 0,r))}}return s}}function Cu(e){let t=qn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ka={collection:"seq",default:!0,nodeClass:Gs,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Br(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Gs.from(e,t,n)},xu={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),$c(e,t,n,r)}},Su={identify:e=>e==null,createNode:()=>new Qn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Qn(null),stringify:({source:e},t)=>typeof e=="string"&&Su.test.test(e)?e:t.options.nullStr},Uc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Qn(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Uc.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function ji({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let a=s.indexOf(".");a<0&&(a=s.length,s+=".");let o=t-(s.length-a-1);for(;o-- >0;)s+="0"}return s}const dm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ji},hm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ji(e)}},mm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Qn(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:ji},wu=e=>typeof e=="bigint"||Number.isInteger(e),Wc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function gm(e,t,n){const{value:r}=e;return wu(r)&&r>=0?n+r.toString(t):ji(e)}const ym={identify:e=>wu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Wc(e,2,8,n),stringify:e=>gm(e,8,"0o")},Dm={identify:wu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Wc(e,0,10,n),stringify:ji},bm={identify:e=>wu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Wc(e,2,16,n),stringify:e=>gm(e,16,"0x")},oD=[La,ka,xu,Su,Uc,ym,Dm,bm,dm,hm,mm];function vm(e){return typeof e=="bigint"||Number.isInteger(e)}const Fu=({value:e})=>JSON.stringify(e),uD=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Fu},{identify:e=>e==null,createNode:()=>new Qn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Fu},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Fu},{identify:vm,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>vm(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Fu}],lD={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},cD=[La,ka].concat(uD,lD),Gc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,s){const a=n;let o;if(typeof Buffer=="function")o=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let u="";for(let l=0;l<a.length;++l)u+=String.fromCharCode(a[l]);o=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Qn.BLOCK_LITERAL),t!==Qn.QUOTE_DOUBLE){const u=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),l=Math.ceil(o.length/u),b=new Array(l);for(let c=0,N=0;c<l;++c,N+=u)b[c]=o.substr(N,u);o=b.join(t===Qn.BLOCK_LITERAL?`
|
|
71
71
|
`:" ")}return $c({comment:e,type:t,value:o},r,i,s)}};function Em(e,t){if(Br(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!dr(r)){if(Pr(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new si(new Qn(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
|
|
72
72
|
${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
|
|
73
|
-
${s.comment}`:r.comment}r=i}e.items[n]=dr(r)?r:new si(r)}}else t("Expected a sequence for this tag");return e}function Am(e,t,n){const{replacer:r}=n,i=new Gs(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(s++),a));let o,u;if(Array.isArray(a))if(a.length===2)o=a[0],u=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const l=Object.keys(a);if(l.length===1)o=l[0],u=a[o];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else o=a;i.items.push(qc(o,u,n))}return i}const Jc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Em,createNode:Am};class Pa extends Gs{constructor(){super(),this.add=Ni.prototype.add.bind(this),this.delete=Ni.prototype.delete.bind(this),this.get=Ni.prototype.get.bind(this),this.has=Ni.prototype.has.bind(this),this.set=Ni.prototype.set.bind(this),this.tag=Pa.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let s,a;if(dr(i)?(s=Fi(i.key,"",n),a=Fi(i.value,s,n)):s=Fi(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,a)}return r}static from(t,n,r){const i=Am(t,n,r),s=new this;return s.items=i.items,s}}Pa.tag="tag:yaml.org,2002:omap";const Yc={collection:"seq",identify:e=>e instanceof Map,nodeClass:Pa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Em(e,t),r=[];for(const{key:i}of n.items)qn(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new Pa,n)},createNode:(e,t,n)=>Pa.from(e,t,n)};function Cm({value:e,source:t},n){return t&&(e?xm:Sm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const xm={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Qn(!0),stringify:Cm},Sm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)
|
|
73
|
+
${s.comment}`:r.comment}r=i}e.items[n]=dr(r)?r:new si(r)}}else t("Expected a sequence for this tag");return e}function Am(e,t,n){const{replacer:r}=n,i=new Gs(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(s++),a));let o,u;if(Array.isArray(a))if(a.length===2)o=a[0],u=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const l=Object.keys(a);if(l.length===1)o=l[0],u=a[o];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else o=a;i.items.push(qc(o,u,n))}return i}const Jc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Em,createNode:Am};class Pa extends Gs{constructor(){super(),this.add=Ni.prototype.add.bind(this),this.delete=Ni.prototype.delete.bind(this),this.get=Ni.prototype.get.bind(this),this.has=Ni.prototype.has.bind(this),this.set=Ni.prototype.set.bind(this),this.tag=Pa.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let s,a;if(dr(i)?(s=Fi(i.key,"",n),a=Fi(i.value,s,n)):s=Fi(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,a)}return r}static from(t,n,r){const i=Am(t,n,r),s=new this;return s.items=i.items,s}}Pa.tag="tag:yaml.org,2002:omap";const Yc={collection:"seq",identify:e=>e instanceof Map,nodeClass:Pa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Em(e,t),r=[];for(const{key:i}of n.items)qn(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new Pa,n)},createNode:(e,t,n)=>Pa.from(e,t,n)};function Cm({value:e,source:t},n){return t&&(e?xm:Sm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const xm={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Qn(!0),stringify:Cm},Sm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Qn(!1),stringify:Cm},fD={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ji},pD={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ji(e)}},dD={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Qn(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:ji},To=e=>typeof e=="bigint"||Number.isInteger(e);function Nu(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const a=BigInt(e);return i==="-"?BigInt(-1)*a:a}const s=parseInt(e,n);return i==="-"?-1*s:s}function Hc(e,t,n){const{value:r}=e;if(To(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return ji(e)}const hD={identify:To,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Nu(e,2,2,n),stringify:e=>Hc(e,2,"0b")},mD={identify:To,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Nu(e,1,8,n),stringify:e=>Hc(e,8,"0")},gD={identify:To,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Nu(e,0,10,n),stringify:ji},yD={identify:To,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Nu(e,2,16,n),stringify:e=>Hc(e,16,"0x")};class Ba extends Ni{constructor(t){super(t),this.tag=Ba.tag}add(t){let n;dr(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new si(t.key,null):n=new si(t,null),Ws(this.items,n.key)||this.items.push(n)}get(t,n){const r=Ws(this.items,t);return!n&&dr(r)?qn(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Ws(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new si(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof i=="function"&&(a=i.call(n,a,a)),s.items.push(qc(a,null,r));return s}}Ba.tag="tag:yaml.org,2002:set";const zc={collection:"map",identify:e=>e instanceof Set,nodeClass:Ba,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Ba.from(e,t,n),resolve(e,t){if(Pr(e)){if(e.hasAllNullValues(!0))return Object.assign(new Ba,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Qc(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=a=>t?BigInt(a):Number(a),s=r.replace(/_/g,"").split(":").reduce((a,o)=>a*i(60)+i(o),i(0));return n==="-"?i(-1)*s:s}function wm(e){let{value:t}=e,n=a=>a;if(typeof t=="bigint")n=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return ji(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Fm={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Qc(e,n),stringify:wm},Nm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Qc(e,!1),stringify:wm},Tu={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Tu.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,a,o]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(n,r-1,i,s||0,a||0,o||0,u);const b=t[8];if(b&&b!=="Z"){let c=Qc(b,!1);Math.abs(c)<30&&(c*=60),l-=6e4*c}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Tm=[La,ka,xu,Su,xm,Sm,hD,mD,gD,yD,fD,pD,dD,Gc,Yc,Jc,zc,Fm,Nm,Tu],_m=new Map([["core",oD],["failsafe",[La,ka,xu]],["json",cD],["yaml11",Tm],["yaml-1.1",Tm]]),Lm={binary:Gc,bool:Uc,float:mm,floatExp:hm,floatNaN:dm,floatTime:Nm,int:Dm,intHex:bm,intOct:ym,intTime:Fm,map:La,null:Su,omap:Yc,pairs:Jc,seq:ka,set:zc,timestamp:Tu},DD={"tag:yaml.org,2002:binary":Gc,"tag:yaml.org,2002:omap":Yc,"tag:yaml.org,2002:pairs":Jc,"tag:yaml.org,2002:set":zc,"tag:yaml.org,2002:timestamp":Tu};function Xc(e,t){let n=_m.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(_m.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=Lm[r];if(i)return i;const s=Object.keys(Lm).map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const bD=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Kc{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?Xc(t,"compat"):t?Xc(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?DD:{},this.tags=Xc(n,this.name),this.toStringOptions=o??null,Object.defineProperty(this,Ns,{value:La}),Object.defineProperty(this,as,{value:xu}),Object.defineProperty(this,wa,{value:ka}),this.sortMapEntries=typeof a=="function"?a:a===!0?bD:null}clone(){const t=Object.create(Kc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function vD(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(n.push(u),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=um(e,t),{commentString:s}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=s(e.commentBefore);n.unshift(os(u,""))}let a=!1,o=null;if(e.contents){if(yr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const b=s(e.contents.commentBefore);n.push(os(b,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}const u=o?void 0:()=>a=!0;let l=_a(e.contents,i,()=>o=null,u);o&&(l+=Us(l,"",s(o))),(l[0]==="|"||l[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(_a(e.contents,i));if(e.directives?.docEnd)if(e.comment){const u=s(e.comment);u.includes(`
|
|
74
74
|
`)?(n.push("..."),n.push(os(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=e.comment;u&&a&&(u=u.replace(/^\n+/,"")),u&&((!a||o)&&n[n.length-1]!==""&&n.push(""),n.push(os(s(u),"")))}return n.join(`
|
|
75
75
|
`)+`
|
|
76
76
|
`}class _u{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,wi,{value:Pc});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:a}=s;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new ii({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(_u.prototype,{[wi]:{value:Pc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=yr(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Ma(this.contents)&&this.contents.add(t)}addIn(t,n){Ma(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=rm(this);t.anchor=!n||r.has(n)?im(n||"a",r):n}return new Mc(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const I=Ee=>typeof Ee=="number"||Ee instanceof String||Ee instanceof Number,he=n.filter(I).map(String);he.length>0&&(n=n.concat(he)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:a,flow:o,keepUndefined:u,onTagObj:l,tag:b}=r??{},{onAnchor:c,setAnchors:N,sourceObjects:B}=Hy(this,a||"a"),ne={aliasDuplicateObjects:s??!0,keepUndefined:u??!1,onAnchor:c,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:B},Q=wo(t,b,ne);return o&&Lr(Q)&&(Q.flow=!0),N(),Q}createPair(t,n,r={}){const i=this.createNode(t,null,r),s=this.createNode(n,null,r);return new si(i,s)}delete(t){return Ma(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Fo(t)?this.contents==null?!1:(this.contents=null,!0):Ma(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Lr(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Fo(t)?!n&&qn(this.contents)?this.contents.value:this.contents:Lr(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Lr(this.contents)?this.contents.has(t):!1}hasIn(t){return Fo(t)?this.contents!==void 0:Lr(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=gu(this.schema,[t],n):Ma(this.contents)&&this.contents.set(t,n)}setIn(t,n){Fo(t)?this.contents=n:this.contents==null?this.contents=gu(this.schema,Array.from(t),n):Ma(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ii({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new ii({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Kc(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:a}={}){const o={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},u=Fi(this.contents,n??"",o);if(typeof s=="function")for(const{count:l,res:b}of o.anchors.values())s(b,l);return typeof a=="function"?Na(a,{"":u},"",u):u}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return vD(this,t)}}function Ma(e){if(Lr(e))return!0;throw new Error("Expected a YAML collection as document contents")}class km extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class _o extends km{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class ED extends km{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Pm=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(o=>t.linePos(o));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){const o=Math.min(s-39,a.length-79);a="…"+a.substring(o),s-=o-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,s))){let o=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);o.length>80&&(o=o.substring(0,79)+`…
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ne } from "./index-
|
|
4
|
+
import { m as Ne } from "./index-262f2dff.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as F } from "./index-
|
|
1
|
+
import { m as F } from "./index-262f2dff.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-262f2dff.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as d } from "./index-
|
|
1
|
+
import { m as d } from "./index-262f2dff.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-262f2dff.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|