var S=Object.create;var i=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var w=(e,r)=>{for(var t in r)i(e,t,{get:r[t],enumerable:!0})},g=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of x(r))!j.call(e,o)&&o!==t&&i(e,o,{get:()=>r[o],enumerable:!(n=v(r,o))||n.enumerable});return e};var l=(e,r,t)=>(t=e!=null?S(P(e)):{},g(r||!e||!e.__esModule?i(t,"default",{value:e,enumerable:!0}):t,e)),F=e=>g(i({},"__esModule",{value:!0}),e);var I={};w(I,{lint:()=>$,ruleType:()=>J});module.exports=F(I);var N=l(require("strip-json-comments"));var f=Symbol("JSON source");var u=require("jsonc-parser");var y=e=>{let r=(0,u.parseTree)(e);if(!r)return[];let t=(n,o=[])=>{let m=new Map;for(let h of n.children){let[b,d]=h.children,c=b.value;m.has(c)?o.push(c):m.set(c,!0),d.type==="object"&&t(d,o)}return o};return t(r)};var s=l(require("chalk")),p=l(require("log-symbols"));var a=class{constructor(r,t,n,o){this.lintId=r,this.severity=t,this.node=n,this.lintMessage=o}toString(){let r=this.severity==="error"?p.default.error:p.default.warning,t=s.default.cyan.bold(this.lintId),n=s.default.magenta.bold(this.node),o=this.severity==="error"?s.default.red.bold(this.lintMessage):s.default.yellow(this.lintMessage);return`${r} ${t} - node: ${n} - ${o}`}};var O="no-duplicate-properties",E="",J="standard",$=(e,r)=>{let t=e[f]||"",n=y(t);if(n.length>0){let o=`Duplicate properties detected. Please remove duplicates for: ${n.join(", ")}.`;return new a(O,r,E,o)}return null};0&&(module.exports={lint,ruleType});
