Lines Matching refs:COLLECT
82 const n=r(79896),i=r(70857),a=r(16928),o=r(76982),s={fs:n.constants,os:i.constants},c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",l=/XXXXXX/,u=3,d=(s.O_CREAT||s.fs.O_CREAT)|(s.O_EXCL||s.fs.O_EXCL)|(s.O_RDWR||s.fs.O_RDWR),p="win32"===i.platform(),f=s.EBADF||s.os.errno.EBADF,m=s.ENOENT||s.os.errno.ENOENT,g=[],_=n.rmdirSync.bind(n);let h=!1;function y(e,t){return n.rm(e,{recursive:!0},t)}function v(e){return n.rmSync(e,{recursive:!0})}function b(e,t){const r=A(e,t),i=r[0],a=r[1];try{P(i)}catch(e){return a(e)}let o=i.tries;!function e(){try{const t=N(i);n.stat(t,(function(r){if(!r)return o-- >0?e():a(new Error("Could not get a unique tmp filename, max tries reached "+t));a(null,t)}))}catch(e){a(e)}}()}function k(e){const t=A(e)[0];P(t);let r=t.tries;do{const e=N(t);try{n.statSync(e)}catch(t){return e}}while(r-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function x(e,t){const r=function(e){if(e&&!O(e))return t(e);t()};0<=e[0]?n.close(e[0],(function(){n.unlink(e[1],r)})):n.unlink(e[1],r)}function E(e){let t=null;try{0<=e[0]&&n.closeSync(e[0])}catch(e){if(!(r=e,R(r,-f,"EBADF")||O(e)))throw e}finally{try{n.unlinkSync(e[1])}catch(e){O(e)||(t=e)}}var r;if(null!==t)throw t}function S(e,t,r,n){const i=w(E,[t,e],n),a=w(x,[t,e],n,i);return r.keep||g.unshift(i),n?i:a}function D(e,t,r){const i=t.unsafeCleanup?y:n.rmdir.bind(n),a=w(t.unsafeCleanup?v:_,e,r),o=w(i,e,r,a);return t.keep||g.unshift(a),r?a:o}function w(e,t,r,n){let i=!1;return function a(o){if(!i){const s=n||a,c=g.indexOf(s);return c>=0&&g.splice(c,1),i=!0,r||e===_||e===v?e(t):e(t,o||function(){})}}}function T(e){let t=[],r=null;try{r=o.randomBytes(e)}catch(t){r=o.pseudoRandomBytes(e)}for(var n=0;n<e;n++)t.push(c[r[n]%c.length]);return t.join("")}function C(e){return void 0===e}function A(e,t){if("function"==typeof e)return[{},e];if(C(e))return[{},t];const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=e[t];return[r,t]}function N(e){const t=e.tmpdir;if(!C(e.name))return a.join(t,e.dir,e.name);if(!C(e.template))return a.join(t,e.dir,e.template).replace(l,T(6));const r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",T(12),e.postfix?"-"+e.postfix:""].join("");return a.join(t,e.dir,r)}function P(e){e.tmpdir=M(e);const t=e.tmpdir;if(C(e.name)||F(e.name,"name",t),C(e.dir)||F(e.dir,"dir",t),!C(e.template)&&(F(e.template,"template",t),!e.template.match(l)))throw new Error(`Invalid template, found "${e.template}".`);if(!C(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);var r;e.tries=C(e.name)?e.tries||u:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=C(e.dir)?"":a.relative(t,I(e.dir,t)),e.template=C(e.template)?void 0:a.relative(t,I(e.template,t)),e.template=null===(r=e.template)||C(r)||!r.trim()?void 0:a.relative(e.dir,e.template),e.name=C(e.name)?void 0:e.name,e.prefix=C(e.prefix)?"":e.prefix,e.postfix=C(e.postfix)?"":e.postfix}function I(e,t){return e.startsWith(t)?a.resolve(e):a.resolve(a.join(t,e))}function F(e,t,r){if("name"===t){if(a.isAbsolute(e))throw new Error(`${t} option must not contain an absolute path, found "${e}".`);let r=a.basename(e);if(".."===r||"."===r||r!==e)throw new Error(`${t} option must not contain a path, found "${e}".`)}else{if(a.isAbsolute(e)&&!e.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${e}".`);let n=I(e,r);if(!n.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${n}".`)}}function O(e){return R(e,-m,"ENOENT")}function R(e,t,r){return p?e.code===r:e.code===r&&e.errno===t}function M(e){return a.resolve(e&&e.tmpdir||i.tmpdir())}process.addListener("exit",(function(){if(h)for(;g.length;)try{g[0]()}catch(e){}})),Object.defineProperty(e.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return M()}}),e.exports.dir=function(e,t){const r=A(e,t),i=r[0],a=r[1];b(i,(function(e,t){if(e)return a(e);n.mkdir(t,i.mode||448,(function(e){if(e)return a(e);a(null,t,D(t,i,!1))}))}))},e.exports.dirSync=function(e){const t=A(e)[0],r=k(t);return n.mkdirSync(r,t.mode||448),{name:r,removeCallback:D(r,t,!0)}},e.exports.file=function(e,t){const r=A(e,t),i=r[0],a=r[1];b(i,(function(e,t){if(e)return a(e);n.open(t,d,i.mode||384,(function(e,r){if(e)return a(e);if(i.discardDescriptor)return n.close(r,(function(e){return a(e,t,void 0,S(t,-1,i,!1))}));{const e=i.discardDescriptor||i.detachDescriptor;a(null,t,r,S(t,e?-1:r,i,!1))}}))}))},e.exports.fileSync=function(e){const t=A(e)[0],r=t.discardDescriptor||t.detachDescriptor,i=k(t);var a=n.openSync(i,d,t.mode||384);return t.discardDescriptor&&(n.closeSync(a),a=void 0),{name:i,fd:a,removeCallback:S(i,r?-1:a,t,!0)}},e.exports.tmpName=b,e.exports.tmpNameSync=k,e.exports.setGracefulCleanup=function(){h=!0}},36623:e=>{function t(e){if(!(this instanceof t))return new t(e);this.value=e}function r(e,t,r){var i=[],a=[],o=!0;return function e(s){var c=r?n(s):s,l={},u={node:c,node_:s,path:[].concat(i),parent:a.slice(-1)[0],key:i.slice(-1)[0],isRoot:0===i.length,level:i.length,circular:null,update:function(e){u.isRoot||(u.parent.node[u.key]=e),u.node=e},delete:function(){delete u.parent.node[u.key]},remove:function(){Array.isArray(u.parent.node)?u.parent.node.splice(u.key,1):delete u.parent.node[u.key]},before:function(e){l.before=e},after:function(e){l.after=e},pre:function(e){l.pre=e},post:function(e){l.post=e},stop:function(){o=!1}};if(!o)return u;if("object"==typeof c&&null!==c){u.isLeaf=0==Object.keys(c).length;for(var d=0;d<a.length;d++)if(a[d].node_===s){u.circular=a[d];break}}else u.isLeaf=!0;u.notLeaf=!u.isLeaf,u.notRoot=!u.isRoot;var p=t.call(u,u.node);if(void 0!==p&&u.update&&u.update(p),l.before&&l.before.call(u,u.node),"object"==typeof u.node&&null!==u.node&&!u.circular){a.push(u);var f=Object.keys(u.node);f.forEach((function(t,n){i.push(t),l.pre&&l.pre.call(u,u.node[t],t);var a=e(u.node[t]);r&&Object.hasOwnProperty.call(u.node,t)&&(u.node[t]=a.node),a.isLast=n==f.length-1,a.isFirst=0==n,l.post&&l.post.call(u,a),i.pop()})),a.pop()}return l.after&&l.after.call(u,u.node),u}(e).node}function n(e){var t;return"object"==typeof e&&null!==e?(t=Array.isArray(e)?[]:e instanceof Date?new Date(e):e instanceof Boolean?new Boolean(e):e instanceof Number?new Number(e):e instanceof String?new String(e):Object.create(Object.getPrototypeOf(e)),Object.keys(e).forEach((function(r){t[r]=e[r]})),t):e}e.exports=t,t.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!Object.hasOwnProperty.call(t,n)){t=void 0;break}t=t[n]}return t},t.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var i=e[n];Object.hasOwnProperty.call(r,i)||(r[i]={}),r=r[i]}return r[e[n]]=t,t},t.prototype.map=function(e){return r(this.value,e,!0)},t.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},t.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},t.prototype.deepEqual=function(e){if(1!==arguments.length)throw new Error("deepEqual requires exactly one object to compare against");var r=!0,n=e;return this.forEach((function(i){var a=function(){r=!1}.bind(this);if(!this.isRoot){if("object"!=typeof n)return a();n=n[this.key]}var o=n;this.post((function(){n=o}));var s=function(e){return Object.prototype.toString.call(e)};if(this.circular)t(e).get(this.circular.path)!==o&&a();else if(typeof o!=typeof i)a();else if(null===o||null===i||void 0===o||void 0===i)o!==i&&a();else if(o.__proto__!==i.__proto__)a();else if(o===i);else if("function"==typeof o)o instanceof RegExp?o.toString()!=i.toString()&&a():o!==i&&a();else if("object"==typeof o)if("[object Arguments]"===s(i)||"[object Arguments]"===s(o))s(o)!==s(i)&&a();else if(o instanceof Date||i instanceof Date)o instanceof Date&&i instanceof Date&&o.getTime()===i.getTime()||a();else{var c=Object.keys(o),l=Object.keys(i);if(c.length!==l.length)return a();for(var u=0;u<c.length;u++){var d=c[u];Object.hasOwnProperty.call(i,d)||a()}}})),r},t.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},t.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},t.prototype.clone=function(){var e=[],t=[];return function r(i){for(var a=0;a<e.length;a++)if(e[a]===i)return t[a];if("object"==typeof i&&null!==i){var o=n(i);return e.push(i),t.push(o),Object.keys(i).forEach((function(e){o[e]=r(i[e])})),e.pop(),t.pop(),o}return i}(this.value)},Object.keys(t.prototype).forEach((function(e){t[e]=function(r){var n=[].slice.call(arguments,1),i=t(r);return i[e].apply(i,n)}}))},77926:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toolNameMethod=t.joinNewMessage=t.joinOldMessage=t.Plugin=t.formatSet=t.formatType=t.toolNameSet=t.toolNameType=void 0;const i=n(r(16928)),a=n(r(79896)),o=r(35317),s=r(27944),c=r(40745),l=r(4e3),u=r(30871),d=r(17858),p=r(26499),f=r(40149),m=r(20043),g=r(40744),_=r(8136),h=r(12587),y=r(87191),v=r(22127),b=r(93333),k=r(80879),x=r(44791);var E,S;!function(e){e.COLLECT="collect",e.CHECK="check",e.CHECKONLINE="checkOnline",e.APICHANGECHECK="apiChangeCheck",e.DIFF="diff",e.LABELDETECTION="detection",e.COUNT="count"}(E=t.toolNameType||(t.toolNameType={})),t.toolNameSet=new Set(s.EnumUtils.enum2arr(E)),function(e){e.NULL="",e.JSON="json",e.EXCEL="excel",e.CHANGELOG="changelog"}(S=t.formatType||(t.formatType={})),t.formatSet=new Set(s.EnumUtils.enum2arr(S)),t.Plugin={pluginOptions:{name:"parser",version:"0.1.0",description:"Compare the parser the SDKS",commands:[{isRequiredOption:!0,options:[`-N,--tool-name <${[...t.toolNameSet]}>`,"tool name ","checkOnline"]},{isRequiredOption:!1,options:["-C,--collect-path <string>","collect api path","./api"]},{isRequiredOption:!1,options:["-F,--collect-file <string>","collect api file array",""]},{isRequiredOption:!1,options:["-L,--check-labels <string>","detection check labels",""]},{isRequiredOption:!1,options:["--isOH <string>","detection check labels",""]},{isRequiredOption:!1,options:["--path <string>","check api path, split with comma",""]},{isRequiredOption:!1,options:["--checker <string>","check api rule, split with comma","all"]},{isRequiredOption:!1,options:["--prId <string>","check api prId",""]},{isRequiredOption:!1,options:["--excel <string>","check api excel","false"]},{isRequiredOption:!1,options:["--old <string>","diff old sdk path","./api"]},{isRequiredOption:!1,options:["--new <string>","diff new sdk path","./api"]},{isRequiredOption:!1,options:["--old-version <string>","old sdk version","0"]},{isRequiredOption:!1,options:["--new-version <string>","new sdk version","0"]},{isRequiredOption:!1,options:["--output <string>","output file path","./"]},{isRequiredOption:!1,options:[`--format <${[...t.formatSet]}>`,"output file format","json"]},{isRequiredOption:!1,options:["--changelogUrl <string>","changelog url",""]},{isRequiredOption:!1,options:["--all <boolean>","is all sheet",""]}]},start:async function(e){const r=e.toolName,n=t.toolNameMethod.get(r);if(!n)return void l.LogUtil.i("CommandArgs","tool-name may use error name or don't have function,tool-name can use 'collect' or 'diff'");const i={toolName:r,collectPath:e.collectPath,collectFile:e.collectFile,checkLabels:e.checkLabels,isOH:e.isOH,path:e.path,checker:e.checker,prId:e.prId,old:e.old,new:e.new,oldVersion:e.oldVersion,newVersion:e.newVersion,output:e.output,format:e.format,changelogUrl:e.changelogUrl,excel:e.excel,all:e.all},a=n(i);!function(e,t,r){const n=t.format;let i=`${t.toolName}_${t.oldVersion}_${t.newVersion}.json`;if(!n)return;t.toolName===E.COUNT&&(i="api_kit_js.json");switch(n){case S.JSON:m.WriterHelper.JSONReporter(String(e[0]),t.output,i);break;case S.EXCEL:m.WriterHelper.ExcelReporter(e,t.output,`${t.toolName}.xlsx`,r,t);break;case S.CHANGELOG:m.WriterHelper.JSONReporter(String(e[0]),t.output,`${t.toolName}.json`)}}(a.data,i,a.callback)},stop:function(){l.LogUtil.i("commander","elapsed time: "+(Date.now()-D))}};let D=Date.now();function w(e,t,r,n){const i=t.addWorksheet(),a=new Set,o=k.FunctionUtils.readKitFile();i.name="JsApi",i.views=[{xSplit:1}],i.getRow(1).values=["模块名","类名","方法名","函数","类型","起始版本","废弃版本","syscap","错误码","是否为系统API","模型限制","权限","是否支持跨平台","是否支持卡片应用","是否为高阶API","装饰器","kit","文件路径","子系统","父节点类型","父节点API是否可选"];let s=2;e.forEach((e=>{const t=`${e.getHierarchicalRelations()},${e.getDefinedText()}`;a.has(t)||(i.getRow(s).values=[e.getPackageName(),e.getParentModuleName(),e.getApiName(),e.getDefinedText(),e.getApiType(),"-1"===e.getSince()?"":e.getSince(),"-1"===e.getDeprecatedVersion()?"":e.getDeprecatedVersion(),e.getSyscap(),"-1"===e.getErrorCodes().join()?"":e.getErrorCodes().join(),e.getApiLevel(),e.getModelLimitation(),e.getPermission(),e.getIsCrossPlatForm(),e.getIsForm(),e.getIsAutomicService(),e.getDecorators()?.join(),""===e.getKitInfo()?o.kitNameMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")):e.getKitInfo(),e.getFilePath(),o.subsystemMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")),e.getParentApiType(),e.getIsOptional()],s++,a.add(t))})),n?.all&&function(e,t){const r=t.addWorksheet(),n=new Set,i=k.FunctionUtils.readKitFile();r.name="JsApi定制版本",r.views=[{xSplit:1}],r.getRow(1).values=["模块名","类名","方法名","函数","类型","起始版本","废弃版本","syscap","错误码","是否为系统API","模型限制","权限","是否支持跨平台","是否支持卡片应用","是否为高阶API","装饰器","kit","文件路径","子系统","接口全路径"];let a=2;e.forEach((e=>{const t=`${e.getHierarchicalRelations()},${e.getDefinedText()}`;n.has(t)||(r.getRow(a).values=[e.getPackageName(),e.getParentModuleName(),e.getApiName(),e.getDefinedText(),e.getApiType(),"-1"===e.getSince()?"":e.getSince(),"-1"===e.getDeprecatedVersion()?"":e.getDeprecatedVersion(),e.getSyscap(),"-1"===e.getErrorCodes().join()?"":e.getErrorCodes().join(),e.getApiLevel(),e.getModelLimitation(),e.getPermission(),e.getIsCrossPlatForm(),e.getIsForm(),e.getIsAutomicService(),e.getDecorators()?.join(),""===e.getKitInfo()?i.kitNameMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")):e.getKitInfo(),e.getFilePath(),i.subsystemMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")),e.getHierarchicalRelations().replace(/\//g,"#").replace("api\\","")],a++,n.add(t))}))}(e,t)}function T(e,t){const r=t.addWorksheet();r.name="api数量",r.views=[{xSplit:1}],r.getRow(1).values=["子系统","kit","文件","api数量"],e.forEach(((e,t)=>{r.getRow(t+_.NumberConstant.LINE_IN_EXCEL).values=[e.getsubSystem(),e.getKitName(),e.getFilePath(),e.getApiNumber()]}))}function C(e,t,r,n){const i=new Set,a=k.FunctionUtils.readKitFile(),o=t.addWorksheet("api差异");o.views=[{xSplit:2}],o.getRow(1).values=["操作标记","差异项-旧版本","差异项-新版本","d.ts文件","归属子系统","kit","是否为系统API"],e.forEach(((e,t)=>{i.add(I(e));const r=e.getNewDtsName()?e.getNewDtsName():e.getOldDtsName();o.getRow(t+_.NumberConstant.LINE_IN_EXCEL).values=[f.diffTypeMap.get(e.getDiffType()),F(e),O(e),r.replace(/\\/g,"/"),a.subsystemMap.get(r.replace(/\\/g,"/").replace("api/","")),""===y.SyscapProcessorHelper.getSingleKitInfo(e)?a.kitNameMap.get(r.replace(/\\/g,"/").replace("api/","")):y.SyscapProcessorHelper.getSingleKitInfo(e),e.getIsSystemapi()]})),m.WriterHelper.MarkdownReporter.writeInMarkdown(e,r),n?.all&&function(e,t,r,n){const i=t.addWorksheet("api变更数量统计");i.views=[{xSplit:2}],i.getRow(1).values=["api名称","kit名称","归属子系统","是否是api","api类型","操作标记","变更类型","兼容性","变更次数","差异项-旧版本","差异项-新版本","兼容性列表","接口全路径","是否为系统API","是否为同名API"];let a=[];e.forEach((e=>{let t="";const i=new f.DiffNumberInfo;r.forEach((r=>{const a=r.getNewDtsName()?r.getNewDtsName():r.getOldDtsName(),o=""===y.SyscapProcessorHelper.getSingleKitInfo(r)?n.kitNameMap.get(a.replace(/\\/g,"/").replace("api/","")):y.SyscapProcessorHelper.getSingleKitInfo(r);e===I(r)&&(t=P(r),i.setAllDiffType(r.getDiffMessage()).setAllChangeType(f.apiChangeMap.get(r.getDiffType())).setOldDiffMessage(r.getOldDescription()).setNewDiffMessage(r.getNewDescription()).setAllCompatible(r.getIsCompatible()).setIsApi(!f.isNotApiSet.has(r.getApiType())).setKitName(o).setSubsystem(n.subsystemMap.get(a.replace(/\\/g,"/").replace("api/",""))).setApiName(r.getApiType()===x.ApiType.SOURCE_FILE?"SOURCEFILE":P(r)).setApiRelation(I(r).replace(/\,/g,"#").replace("api\\","")).setIsSystemapi(r.getIsSystemapi()).setApiType(r.getApiType()).setIsSameNameFunction(r.getIsSameNameFunction()))})),a.push(i)})),a=function(e,t){return t}(0,a),a.forEach(((e,t)=>{i.getRow(t+_.NumberConstant.LINE_IN_EXCEL).values=[e.getApiName(),e.getKitName(),e.getSubsystem(),e.getIsApi(),e.getApiType(),e.getAllDiffType().join(" #&# "),e.getAllChangeType().join(" #&# "),A(e),N(e),e.getOldDiffMessage().join(" #&# "),e.getNewDiffMessage().join(" #&# "),e.getAllCompatible().join(" #&# "),e.getApiRelation(),e.getIsSystemapi(),e.getIsSameNameFunction()]}))}(i,t,e,a)}function A(e){const t=new Set(e.getAllCompatible());let r=0,n=0;return 2===t.size?(r=1,n=1):t.has(!0)?r=1:t.has(!1)&&(n=1),`{\n "兼容性":${r},\n "非兼容性":${n}\n }`}function N(e){const t=new Set(e.getAllChangeType());let r=0,n=0,i=0,a=0,o=0,s=0;return t.has("API修改(原型修改)")&&s++,t.has("API修改(约束变化)")&&o++,(t.has("API修改(原型修改)")||t.has("API修改(约束变化)"))&&a++,t.has("API废弃")&&i++,t.has("API新增")&&r++,t.has("API删除")&&n++,`{\n "API新增": ${r},\n "API删除": ${n},\n "API废弃": ${i},\n "API修改": ${a},\n "API修改(原型修改)": ${s},\n "API修改(约束变化)": ${o}\n }`}function P(e){return""!==e.getNewApiName()?e.getNewApiName():e.getOldApiName()}function I(e){const t=e.getNewHierarchicalRelations();return t.length>0?t.join():e.getOldHierarchicalRelations().join()}function F(e){if(e.getDiffMessage()===f.diffTypeMap.get(f.ApiDiffType.ADD))return"NA";let t="";const r=e.getOldHierarchicalRelations(),n=e.getParentModuleName(r);return t="-1"!==e.getOldDescription()&&e.getOldDescription()?e.getOldDescription():"NA",e.getDiffType()===f.ApiDiffType.KIT_CHANGE?`${t}`:`类名:${n};\nAPI声明:${e.getOldApiDefinedText()}\n差异内容:${t}`}function O(e){if(e.getDiffMessage()===f.diffTypeMap.get(f.ApiDiffType.REDUCE))return"NA";let t="";const r=e.getNewHierarchicalRelations(),n=e.getParentModuleName(r);return t="-1"!==e.getNewDescription()&&e.getNewDescription()?e.getNewDescription():"NA",e.getDiffType()===f.ApiDiffType.KIT_CHANGE?`${t}`:`类名:${n};\nAPI声明:${e.getNewApiDefinedText()}\n差异内容:${t}`}t.joinOldMessage=F,t.joinNewMessage=O,t.toolNameMethod=new Map([[E.COLLECT,function(e){const t=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectPath);let r,n="";""!==e.collectFile&&(n=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectFile),d.parserParam.setSdkPath(n));try{r=c.FileUtils.isDirectory(t)?u.Parser.parseDir(t,n):u.Parser.parseFile(i.default.resolve(t,".."),t);const a=h.ApiStatisticsHelper.getApiStatisticsInfos(r);let o=[u.Parser.getParseResults(r)];if("excel"===e.format){const t=a.allApiStatisticsInfos;o=a.apiStatisticsInfos,t&&m.WriterHelper.ExcelReporter(t,e.output,`all_${e.toolName}.xlsx`,w)}return{data:o,callback:w}}catch(e){const t=e;return l.LogUtil.e("error collect",t.stack?t.stack:t.message),{data:[],callback:w}}}],[E.CHECK,function(){try{let e=[];const t=i.default.resolve(c.FileUtils.getBaseDirName(),"../mdFiles.txt");return a.default.existsSync(t)&&(e=b.CommonFunctions.getMdFiles(t)),g.LocalEntry.checkEntryLocal(e,["all"],"./result.json","","true"),{data:[]}}catch(e){const t=e;return l.LogUtil.e("error check",t.stack?t.stack:t.message),{data:[]}}}],[E.CHECKONLINE,function(e){e.format=S.NULL;try{return g.LocalEntry.checkEntryLocal(e.path.split(","),e.checker.split(","),e.output,e.prId,e.excel),{data:[]}}catch(e){const t=e;l.LogUtil.e("error check",t.stack?t.stack:t.message)}return{data:[]}}],[E.APICHANGECHECK,function(e){e.format=S.NULL;try{return g.LocalEntry.apiChangeCheckEntryLocal(e.prId,e.checker.split(","),e.output,e.excel),{data:[]}}catch(e){const t=e;l.LogUtil.e("error api change check",t.stack?t.stack:t.message)}return{data:[]}}],[E.DIFF,function(e){const t=i.default.resolve(c.FileUtils.getBaseDirName(),e.old),r=i.default.resolve(c.FileUtils.getBaseDirName(),e.new),n=a.default.statSync(t);let o=[];try{if(n.isDirectory()){const n=u.Parser.parseDir(t),i=u.Parser.parseDir(r);o=p.DiffHelper.diffSDK(n,i,e.all)}else{const n=u.Parser.parseFile(i.default.resolve(t,".."),t);u.Parser.cleanParserParamSDK();const a=u.Parser.parseFile(i.default.resolve(r,".."),r);o=p.DiffHelper.diffSDK(n,a,e.all)}let a=[];return a=e.format===S.JSON?[JSON.stringify(o,null,_.NumberConstant.INDENT_SPACE)]:o,{data:a,callback:C}}catch(e){const t=e;return l.LogUtil.e("error diff",t.stack?t.stack:t.message),{data:[],callback:C}}}],[E.LABELDETECTION,function(e){process.env.NEED_DETECTION="true",process.env.IS_OH=e.isOH,e.format=S.NULL;const t=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectPath);let r,n="";""!==e.collectFile&&(n=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectFile));let a=Buffer.from("");try{r=c.FileUtils.isDirectory(t)?u.Parser.parseDir(t,n):u.Parser.parseFile(i.default.resolve(t,".."),t);const s=u.Parser.getParseResults(r);m.WriterHelper.JSONReporter(s,i.default.dirname(e.output),"detection.json");let l="";l=`${i.default.resolve(c.FileUtils.getBaseDirName(),"./main.exe")} -N detection -L ${e.checkLabels} -P ${i.default.resolve(i.default.dirname(e.output),"detection.json")} -O ${i.default.resolve(e.output)}`,a=o.execSync(l,{timeout:12e4})}catch(e){const t=e;l.LogUtil.e("error collect",t.stack?t.stack:t.message)}finally{l.LogUtil.i("detection run over",a.toString())}return{data:[]}}],[E.COUNT,function(e){const t=i.default.resolve(c.FileUtils.getBaseDirName(),"../../api");let r,n="";""!==e.collectFile&&(n=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectFile));try{r=c.FileUtils.isDirectory(t)?u.Parser.parseDir(t,n):u.Parser.parseFile(i.default.resolve(t,".."),t);const a=h.ApiStatisticsHelper.getApiStatisticsInfos(r).apiStatisticsInfos,o=v.ApiCountHelper.countApi(a);let s=[];return s=e.format===S.JSON?[JSON.stringify(o,null,_.NumberConstant.INDENT_SPACE)]:o,{data:s,callback:T}}catch(e){const t=e;return l.LogUtil.e("error count",t.stack?t.stack:t.message),{data:[],callback:T}}}]])},11162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getToolConfiguration=void 0;const n=r(77926);t.getToolConfiguration=function(){return{plugins:[n.Plugin]}}},20043:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriterHelper=void 0;const i=n(r(6752)),a=n(r(16928)),o=n(r(79896)),s=r(4e3),c=r(77926),l=r(40149),u=r(87191);!function(e){e.JSONReporter=function(e,t,r){const n=a.default.resolve(t,r);o.default.writeFileSync(n,e),s.LogUtil.i("JSONReporter",`report is in ${n}`)},e.ExcelReporter=async function(e,t,r,n,c){const l=new i.default.Workbook;"function"==typeof n&&n(e,l,t,c);const u=await l.xlsx.writeBuffer(),d=a.default.resolve(t,r);o.default.writeFileSync(d,u),s.LogUtil.i("ExcelReporter",`report is in ${d}`)};class t{static writeInMarkdown(e,r){t.getAllKitInfo(e).forEach((n=>{let i=[];e.forEach((e=>{u.SyscapProcessorHelper.getSingleKitInfo(e)===n&&i.push(e)})),0!==i.length&&t.sortDiffInfoByFile(i,n,r)}))}static getAllKitInfo(e){const t=new Set;return e.forEach((e=>{t.add(e.getOldKitInfo()),t.add(e.getNewKitInfo())})),t}static getSingleKitInfo(e){return""!==e.getNewKitInfo()?e.getNewKitInfo():e.getOldKitInfo()}static getFileNameInkit(e){const t=new Set;return e.forEach((e=>{""!==e.getNewDtsName()?t.add(e.getNewDtsName()):t.add(e.getOldDtsName())})),t}static getSingleFileName(e){return""!==e.getNewDtsName()?e.getNewDtsName():e.getOldDtsName()}static sortDiffInfoByFile(e,r,n){const i=t.getFileNameInkit(e),a=[];i.forEach((i=>{e.forEach((e=>{t.getSingleFileName(e)===i&&a.push(e)})),t.sortDiffInfoByStatus(a,r,n)}))}static sortDiffInfoByStatus(e,r,n){const i=[];for(const t of l.diffTypeMap.keys())e.forEach((e=>{e.getDiffType()===t&&i.push(e)}));t.exportDiffMd(r,i,n)}static exportDiffMd(e,r,n){let i="| 操作 | 旧版本 | 新版本 | d.ts文件 |\n| ---- | ------ | ------ | -------- |\n";for(let e=0;e<r.length;e++){let n=r[e];const a=n.getNewDtsName()?n.getNewDtsName():n.getOldDtsName();i+=`|${l.diffTypeMap.get(n.getDiffType())}|${t.formatDiffMessage(c.joinOldMessage(n))}|${t.formatDiffMessage(c.joinNewMessage(n))}|${a.replace(/\\/g,"/")}|\n`}const a=`${n}\\diff合集`;o.default.existsSync(a)||o.default.mkdirSync(a),o.default.writeFileSync(`${n}\\diff合集\\js-apidiff-${e}.md`,i)}static formatDiffMessage(e){return e.replace(/\r|\n/g,"<br>").replace(/\|/g,"\\|").replace(/\<(?!br>)/g,"\\<")}}e.MarkdownReporter=t}(t.WriterHelper||(t.WriterHelper={}))},88189:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(16928));t.default={NODE_ENV:"development",EVN_CONFIG:"dev",DIR_NAME:i.default.resolve(__dirname,"../.."),NEED_DETECTION:"",IS_OH:""}},59620:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(88189)),a=n(r(88463)),o="production",s={development:i.default,production:a.default};Object.assign(process.env,s[o]),t.default=s[o]},88463:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(16928));t.default={NODE_ENV:"production",EVN_CONFIG:"prod",DIR_NAME:i.default.resolve(__dirname,".."),NEED_DETECTION:"",IS_OH:""}},40744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalEntry=void 0;const n=r(77002),i=r(13930),a=r(4e3),o=r(93333),s=r(93333),c=r(61574),l=r(26150);class u{static checkEntryLocal(e,t,r,n,c){let l=s.apiCheckResult;try{i.Check.scanEntry(e,n,!1),u.maskAlarm(s.compositiveResult,t)}catch(e){a.LogUtil.e("API_CHECK_ERROR",e)}finally{o.GenerateFile.writeFile(s.apiCheckResult,r,{}),"true"===c&&o.GenerateFile.writeExcelFile(s.apiCheckResult)}return l}static maskAlarm(e,t){const r=1===t.length&&"all"===t[0],i=new Map(Object.entries({...c.DOC,...c.DEFINE,...c.CHANEGE}));let a=new Set;r?a=new Set([...i.values()]):t.forEach((e=>{const t=i.get(e);t&&a.add(t)}));new Set(e);u.filterAllResultInfo(e,i,a).forEach((e=>{const t=new n.ApiBaseInfo;t.setApiName(e.apiName).setApiType(e.apiType).setHierarchicalRelations(e.hierarchicalRelations).setParentModuleName(e.parentModuleName);const r=new n.ApiResultMessage;r.setFilePath(e.filePath).setLocation(e.location).setLevel(e.level).setType(e.type).setMessage(e.message).setMainBuggyCode(e.apiText).setMainBuggyLine(e.location).setExtendInfo(t),s.apiCheckResult.push(r)}))}static filterAllResultInfo(e,t,r){return e.filter((e=>{let n=e.message.replace(/API check error of \[.*\]: /g,"");if(/\d/g.test(n)&&(n=n.replace(/\d+/g,"1")),/Prohibited word in \[.*\]:{option}.The word allowed is \[.*\]\./g.test(n)&&(n=JSON.stringify(t.get("API_DEFINE_NAME_01")).replace(/\"/g,"")),/Prohibited word in \[.*\]:{ability} in the \[.*\] file\./g.test(n)&&(n=JSON.stringify(t.get("API_DEFINE_NAME_02")).replace(/\"/g,"")),/please confirm whether it needs to be corrected to a common word./g.test(n)&&(n=n.replace(/\{.*\}/g,"{XXXX}")),/tag does not exist. Please use a valid JSDoc tag./g.test(n)&&(n=n.replace(/\[.*\]/g,"[XXXX]")),/The event name should be named by small hump./g.test(n)&&(n=n.replace(/\[.*\]/g,"[XXXX]")),/This name \[.*\] should be named by/g.test(n)&&(n=n.replace(/\[.*\]/g,"[XXXX]")),r.has(n)){const r=u.filterApiCheckInfos(t,n);""!==r&&e.setType(r)}return r.has(n)}))}static filterApiCheckInfos(e,t){for(let[r,n]of e.entries())if(n===t)return r;return""}static apiChangeCheckEntryLocal(e,t,r,n){let i=s.apiCheckResult;try{l.ApiChangeCheck.checkApiChange(e),u.maskAlarm(s.compositiveResult,t)}catch(e){a.LogUtil.e("API_CHECK_ERROR",e)}finally{o.GenerateFile.writeFile(s.apiCheckResult,r,{}),"true"===n&&o.GenerateFile.writeExcelFile(s.apiCheckResult)}return i}}t.LocalEntry=u},13930:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Check=t.currentFilePath=void 0;const i=n(r(79896)),a=n(r(16928)),o=r(30871),s=r(44791),c=r(77002),l=r(93333),u=r(95721),d=r(6300),p=r(18e3),f=r(36944),m=r(31575),g=r(28912),_=r(56795),h=r(95769),y=r(23978),v=r(58010),b=r(37798),k=r(26150),x=r(53438),E=r(11449),S=r(9706),D=r(73086);t.currentFilePath="";class w{static scanEntry(e,r,n){l.cleanCompositiveResult(),k.ApiChangeCheck.checkApiChange(r),e.forEach(((e,r)=>{if(t.currentFilePath=e,-1!==e.indexOf("build-tools")&&!n)return;console.log(`scaning file in no ${++r}!`);const i=w.parseAPICodeStyle(e),s=o.Parser.getAllBasicApi(i);w.checkNodeInfos(s);const c=i.get(a.default.basename(e));c&&v.CheckHump.checkAPIFileName(c),v.CheckHump.checkAllAPINameOfHump(s),_.WordsCheck.wordCheckResultsProcessing(s);const l=new b.EventMethodChecker(i),u=l.getAllEventMethod();l.checkEventMethod(u)}))}static getMdFiles(e){return i.default.readFileSync(e,"utf-8").split(/[(\r\n)\r\n]+/)}static parseAPICodeStyle(e){return o.Parser.parseFile(a.default.resolve(e,".."),e)}static checkNodeInfos(e){let r=[];w.getHasJsdocApiInfos(e,r),r.forEach((e=>{const r=e.getLastJsDocInfo(),n=e.getJsDocText().length;if("Method"!==e.getApiType()||"Struct"!==e.getParentApi()?.apiType)if(void 0===r||0===n){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.NO_JSDOC_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.NO_JSDOC).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(c.ErrorMessage.ERROR_NO_JSDOC);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}else{if("NA"===r.getKit()){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(l.CommonFunctions.createErrorInfo(c.ErrorMessage.ERROR_LOST_LABEL,["kit"]));const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!r.getFileTagContent()){new c.ApiCheckInfo;const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(l.CommonFunctions.createErrorInfo(c.ErrorMessage.ERROR_LOST_LABEL,["file"]));const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}const n=p.LegalityCheck.apiLegalityCheck(e,r),i=u.OrderCheck.orderCheck(e,r),a=y.ApiNamingCheck.namingCheck(e),o=E.ChineseCheck.checkChinese(r),s=D.CheckErrorCode.checkErrorCode(r),_=d.TagNameCheck.tagNameCheck(r),v=x.TagInheritCheck.tagInheritCheck(e),b=g.TagValueCheck.tagValueCheck(e,r),k=f.TagRepeatCheck.tagRepeatCheck(r),w=h.ForbiddenWordsCheck.forbiddenWordsCheck(e),T=S.AnonymousFunctionCheck.checkAnonymousFunction(e);if(!i.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_ORDER_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_ORDER).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(i.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}if(!_.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.UNKNOW_DECORATOR_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.UNKNOW_DECORATOR).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(_.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!w.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.FORBIDDEN_WORDS_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.FORBIDDEN_WORDS).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(w.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!a.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.NAMING_ERRORS_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.NAMING_ERRORS).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(a.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!o.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.JSDOC_HAS_CHINESE).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.JSDOC_HAS_CHINESE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(o.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!s.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.ERROR_ERROR_CODE).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.ERROR_ERROR_CODE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(s.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(v.forEach((n=>{if(!n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),n.forEach((n=>{if(!1===n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),b.forEach((n=>{if(!1===n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_VALUE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_VALUE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),k.forEach((n=>{if(!1===n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),!T.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(T.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}}}))}static getHasJsdocApiInfos(e,t){e.forEach((e=>{s.notJsDocApiTypes.has(e.getApiType())||t.push(e)}))}}t.Check=w},9706:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousFunctionCheck=void 0;const i=n(r(58843)),a=r(77002),o=r(44791),s=r(93333);t.AnonymousFunctionCheck=class{static checkAnonymousFunction(e){const t={state:!0,errorInfo:""},r=e.getJsDocInfos();if(s.CommonFunctions.getSinceVersion(r[0].getSince())!==s.CommonFunctions.getCheckApiVersion())return t;let n=[i.default.SyntaxKind.FunctionType,i.default.SyntaxKind.TypeLiteral],c=!1,l=!1,u=!1;if(e.getApiType()===o.ApiType.METHOD){c=n.includes(e.returnValueType),l=!1;e.getParams().forEach((e=>{l=n.includes(e.getParamType())}))}else e.getApiType()===o.ApiType.PROPERTY&&(u=n.includes(e.typeKind));return(c||l||u)&&(t.state=!1,t.errorInfo=a.ErrorMessage.ERROR_ANONYMOUS_FUNCTION),t}}},26150:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiChangeCheck=void 0;const i=n(r(16928)),a=n(r(79896)),o=r(30871),s=r(26499),c=r(40745),l=r(31575),u=r(93333),d=r(77002),p=r(40149);t.ApiChangeCheck=class{static checkApiChange(e){let t="";const r=i.default.resolve(c.FileUtils.getBaseDirName(),`../../../../Archive/patch_info/openharmony_interface_sdk-js_${e}`),n=i.default.resolve(c.FileUtils.getBaseDirName(),e);a.default.existsSync(r)?t=r:a.default.existsSync(n)&&(t=n);const f=i.default.resolve(t,"./old"),m=i.default.resolve(t,"./new");if(!a.default.existsSync(f)||!a.default.existsSync(m))return;let g=[];if(a.default.statSync(f).isDirectory()){const e=o.Parser.parseDir(f),t=o.Parser.parseDir(m);g=s.DiffHelper.diffSDK(e,t,!1,!0)}else{const e=o.Parser.parseFile(i.default.resolve(f,".."),f),t=o.Parser.parseFile(i.default.resolve(m,".."),m);g=s.DiffHelper.diffSDK(e,t,!1,!0)}g.forEach((e=>{if(!1!==e.getIsCompatible())return;const t=d.incompatibleApiDiffTypes.get(e.getDiffType());if(e.getDiffType()===p.ApiDiffType.REDUCE){const r=i.default.basename(e.getOldDtsName());let n=new d.ApiCheckInfo;const a=e.getOldHierarchicalRelations(),o=a[a.length-1];n.setErrorID(d.ErrorID.API_CHANGE_ERRORS_ID).setErrorLevel(d.ErrorLevel.MIDDLE).setFilePath(r).setApiPostion(e.getOldPos()).setErrorType(d.ErrorType.API_CHANGE_ERRORS).setLogType(d.LogType.LOG_JSDOC).setSinceNumber(-1).setApiName(e.getOldApiName()).setApiType(e.getApiType()).setApiText(e.getOldApiDefinedText()).setErrorInfo(t).setHierarchicalRelations(e.getOldHierarchicalRelations().join("|")).setParentModuleName(o),l.AddErrorLogs.addAPICheckErrorLogs(n,u.compositiveResult,u.compositiveLocalResult)}else{const r=i.default.basename(e.getNewDtsName());let n=new d.ApiCheckInfo;const a=e.getNewHierarchicalRelations(),o=a[a.length-1];n.setErrorID(d.ErrorID.API_CHANGE_ERRORS_ID).setErrorLevel(d.ErrorLevel.MIDDLE).setFilePath(r).setApiPostion(e.getOldPos()).setErrorType(d.ErrorType.API_CHANGE_ERRORS).setLogType(d.LogType.LOG_JSDOC).setSinceNumber(-1).setApiName(e.getNewApiName()).setApiType(e.getApiType()).setApiText(e.getNewApiDefinedText()).setErrorInfo(t).setHierarchicalRelations(e.getNewHierarchicalRelations().join("|")).setParentModuleName(o),l.AddErrorLogs.addAPICheckErrorLogs(n,u.compositiveResult,u.compositiveLocalResult)}}))}}},11449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChineseCheck=void 0;const n=r(77002),i=r(93333);t.ChineseCheck=class{static isChinese(e){return/[\u4e00-\u9fa5]/.test(e)}static checkChinese(e){const t={state:!0,errorInfo:""};this.isChinese(e.description)&&(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_HAS_CHINESE,[e.description]));const r=e.tags;return void 0===r||r.forEach((e=>{for(let r=0;r<e.tokenSource.length;r++)this.isChinese(e.tokenSource[r].source)&&(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_HAS_CHINESE,[e.tag]))})),t}}},73086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckErrorCode=void 0;const n=r(77002);class i{static isArrayNotEmpty(e){return Array.isArray(e)&&e.length>0}static hasNumberInArray(e,t){return e.every((e=>t.includes(e)))}static checkErrorCode(e){const t={state:!0,errorInfo:""},r=e.errorCodes.filter((e=>e>=100&&e<1e3));return this.isArrayNotEmpty(r)&&(this.hasNumberInArray(r,this.errorCodeList)||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_ERROR_CODE)),t}}t.CheckErrorCode=i,i.errorCodeList=[201,202,203,301,401,501,502,801,901]},58010:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckHump=void 0;const i=n(r(16928)),a=r(31575),o=r(8136),s=r(77002),c=r(44791),l=r(93333),u=r(93333),d=r(13930);class p{static checkLargeHump(e){return/^([A-Z][a-z0-9]*)*$/g.test(e)}static checkSmallHump(e){return/^[a-z]+[0-9]*([A-Z][a-z0-9]*)*$/g.test(e)}static checkAllUppercaseHump(e){return/^[A-Z]+[0-9]*([\_][A-Z0-9]+)*$/g.test(e)}static getApiInfosInFileMap(e,t){if(t===o.StringConstant.SELF)return[];return e.get(t).get(o.StringConstant.SELF)}static checkAllAPINameOfHump(e){e.forEach((e=>{c.notJsDocApiTypes.has(e.getApiType())||p.checkAPINameOfHump(e)}))}static checkAPINameOfHump(e){const t=e.getLastJsDocInfo(),r=e.getJsDocInfos().length>0?e.getJsDocInfos()[0].getSince():"";if(t){if("-1"!==t.getDeprecatedVersion())return;if(r!==String(l.CommonFunctions.getCheckApiVersion()))return}const n=e.getApiType(),o=e.getFilePath();let f=e.getApiName(),m="";if(e.getIsJoinType()&&(f=f.split("_")[0]),n===c.ApiType.ENUM_VALUE||n===c.ApiType.CONSTANT&&-1===o.indexOf(`component${i.default.sep}ets${i.default.sep}`)?p.checkAllUppercaseHump(f)||(m=l.CommonFunctions.createErrorInfo(s.ErrorMessage.ERROR_UPPERCASE_NAME,[f])):n===c.ApiType.INTERFACE||n===c.ApiType.CLASS||n===c.ApiType.TYPE_ALIAS||n===c.ApiType.ENUM?p.checkLargeHump(f)||(m=l.CommonFunctions.createErrorInfo(s.ErrorMessage.ERROR_LARGE_HUMP_NAME,[f])):n!==c.ApiType.PROPERTY&&n!==c.ApiType.METHOD&&n!==c.ApiType.PARAM&&n!==c.ApiType.NAMESPACE||p.checkSmallHump(f)||(m=l.CommonFunctions.createErrorInfo(s.ErrorMessage.ERROR_SMALL_HUMP_NAME,[f])),""!==m){const t=new s.ErrorBaseInfo;t.setErrorID(s.ErrorID.NAMING_ERRORS_ID).setErrorLevel(s.ErrorLevel.MIDDLE).setErrorType(s.ErrorType.NAMING_ERRORS).setLogType(s.LogType.LOG_JSDOC).setErrorInfo(m);const r=l.CommonFunctions.getErrorInfo(e,void 0,d.currentFilePath,t);a.AddErrorLogs.addAPICheckErrorLogs(r,u.compositiveResult,u.compositiveLocalResult)}}static checkAPIFileName(e){const t=e.get(o.StringConstant.SELF)[0];if(t.getApiType()!==c.ApiType.SOURCE_FILE)return;const r=t.getFilePath();if(-1!==r.indexOf(`component${i.default.sep}ets${i.default.sep}`))return;let n="",f="",m="NA";for(const t of e.keys()){p.getApiInfosInFileMap(e,t).forEach((e=>{if(!c.notJsDocApiTypes.has(e.getApiType())){const t=e.getJsDocInfos();m=t[0]?l.CommonFunctions.getSinceVersion(t[0].getSince()):m}n=e.getApiType()===c.ApiType.NAMESPACE?e.getApiName():n,f=e.getApiType()===c.ApiType.EXPORT_DEFAULT||e.getIsExport()?e.getApiName().replace(o.StringConstant.EXPORT_DEFAULT,""):f}))}const g=i.default.basename(r).replace(new RegExp(o.StringConstant.DTS_EXTENSION,"g"),"").replace(new RegExp(o.StringConstant.DETS_EXTENSION,"g"),"").split("."),_=g.length?g[g.length-1]:"";let h="";if(""===n||f!==n||p.checkSmallHump(_)?""!==n||f===n||p.checkLargeHump(_)||(h=s.ErrorMessage.ERROR_LARGE_HUMP_NAME_FILE):h=s.ErrorMessage.ERROR_SMALL_HUMP_NAME_FILE,""!==h&&m===String(l.CommonFunctions.getCheckApiVersion())){const e=new s.ErrorBaseInfo;e.setErrorID(s.ErrorID.NAMING_ERRORS_ID).setErrorLevel(s.ErrorLevel.MIDDLE).setErrorType(s.ErrorType.NAMING_ERRORS).setLogType(s.LogType.LOG_JSDOC).setErrorInfo(h);const r=l.CommonFunctions.getErrorInfo(t,void 0,d.currentFilePath,e);a.AddErrorLogs.addAPICheckErrorLogs(r,u.compositiveResult,u.compositiveLocalResult)}}}t.CheckHump=p},31575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddErrorLogs=void 0;const n=r(77002),i=r(93333);t.AddErrorLogs=class{static addAPICheckErrorLogs(e,t,r){const a=JSON.stringify(e.getApiPostion().line),o=`API check error of [${e.getErrorType()}]: ${e.getErrorInfo()}`,s=new n.ApiResultSimpleInfo;s.setID(e.getErrorID()).setLevel(e.getErrorLevel()).setLocation(a).setFilePath(e.getFilePath()).setMessage(o).setApiText(e.getApiText()).setApiName(e.getApiName()).setApiType(e.getApiType()).setHierarchicalRelations(e.getHierarchicalRelations()).setParentModuleName(e.getParentModuleName());const c=new n.ApiResultInfo;c.setErrorType(e.getErrorType()).setLocation(e.getFilePath().slice(e.getFilePath().indexOf("api"),e.getFilePath().length)+`(line: ${a})`).setApiType(e.getApiType()).setMessage(o).setVersion(e.getSinceNumber()).setLevel(e.getErrorLevel()).setApiName(e.getApiName()).setApiFullText(e.getApiText()).setBaseName(e.getFilePath().slice(e.getFilePath().lastIndexOf("\\")+1,e.getFilePath().length)).setHierarchicalRelations(e.getHierarchicalRelations()).setParentModuleName(e.getParentModuleName()).setDefectType("");let l=e.getErrorInfo()===i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["kit"]),u=e.getErrorInfo()===i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["file"]),d=[],p=[];t.forEach((t=>{const r=t.getMessage().replace(/API check error of \[.*\]: /g,""),a=t.getFilePath()+r;a===e.getFilePath()+i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["kit"])&&d.push(t.getFilePath()+t.getMessage()),a===e.getFilePath()+i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["file"])&&p.push(t.getFilePath()+t.getMessage())})),l&&0!==d.length||u&&0!==p.length||(t.push(s),r.push(c))}}},37798:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventMethodChecker=void 0;const i=n(r(58843)),a=r(8136),o=r(77002),s=r(44791),c=r(93333),l=r(30871),u=r(31575),d=r(93333),p=r(58010),f=r(98768),m=r(13930);t.EventMethodChecker=class{constructor(e){this.apiData=e}getAllEventMethod(){const e=l.Parser.getAllBasicApi(this.apiData);let t=[];m.Check.getHasJsdocApiInfos(e,t);const r=[];t.forEach((e=>{e.apiType===s.ApiType.METHOD&&e.getIsJoinType()&&r.push(e)}));return this.getEventMethodDataMap(r)}checkEventMethod(e){e.forEach((e=>{const t=e.onEvents.length>0?e.onEvents:[],r=t.length>0?t[0].jsDocInfos[0].since:"-1",n=e.offEvents.length>0?e.offEvents:[],a=n.length>0?n[0].jsDocInfos[0].since:"-1",s=0===e.onEvents.length&&0!==e.offEvents.length&&a===JSON.stringify(f.ApiCheckVersion),l=0!==e.onEvents.length&&0===e.offEvents.length&&r===JSON.stringify(f.ApiCheckVersion);if(s||l){const t=e.onEvents.concat(e.offEvents)[0],r=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_ON_AND_OFF_PAIR,[]),n=new o.ErrorBaseInfo;n.setErrorID(o.ErrorID.API_PAIR_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.API_PAIR_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(r);const i=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,n);u.AddErrorLogs.addAPICheckErrorLogs(i,d.compositiveResult,d.compositiveLocalResult)}let g=0,_=0;for(let t=0;t<e.offEvents.length;t++){const r=e.offEvents[t];if(r.getParams().length<2)continue;const n=this.collectEventCallback(r,g,_);g=n.callbackNumber,_=n.requiredCallbackNumber}if(e.offEvents.length>0&&a===JSON.stringify(f.ApiCheckVersion)&&(0!==g&&g===e.offEvents.length&&g===_||0===g&&0!==e.offEvents.length)){const t=e.offEvents[0],r=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_CALLBACK_OPTIONAL,[]),n=new o.ErrorBaseInfo;n.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(r);const i=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,n);u.AddErrorLogs.addAPICheckErrorLogs(i,d.compositiveResult,d.compositiveLocalResult)}const h=e.onEvents.concat(e.offEvents).concat(e.emitEvents).concat(e.onceEvents);for(let e=0;e<h.length;e++){const t=h[e];if(!this.checkVersionNeedCheck(t))continue;const r=t.getParams(),n=t.jsDocInfos[0].since;if(r.length<1&&n===JSON.stringify(f.ApiCheckVersion)){const e=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_WITHOUT_PARAMETER,[]),r=new o.ErrorBaseInfo;r.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(e);const n=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,r);u.AddErrorLogs.addAPICheckErrorLogs(n,d.compositiveResult,d.compositiveLocalResult);continue}const a=r.length?r[0]:void 0;if(void 0!==a&&n===JSON.stringify(f.ApiCheckVersion))if(a.getParamType()===i.default.SyntaxKind.LiteralType){const e=a.getType()[0].replace(/\'/g,"");if(""===e){const e=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_NAME_NULL,[a.getApiName()]),r=new o.ErrorBaseInfo;r.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(e);const n=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,r);u.AddErrorLogs.addAPICheckErrorLogs(n,d.compositiveResult,d.compositiveLocalResult)}else if(!p.CheckHump.checkSmallHump(e)){const r=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_NAME_SMALL_HUMP,[e]),n=new o.ErrorBaseInfo;n.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(r);const i=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,n);u.AddErrorLogs.addAPICheckErrorLogs(i,d.compositiveResult,d.compositiveLocalResult)}}else if(a.getParamType()!==i.default.SyntaxKind.StringKeyword){const e=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_NAME_STRING,[a.getApiName()]),r=new o.ErrorBaseInfo;r.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(e);const n=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,r);u.AddErrorLogs.addAPICheckErrorLogs(n,d.compositiveResult,d.compositiveLocalResult)}}}))}checkVersionNeedCheck(e){const t=c.CommonFunctions.getSinceVersion(e.getCurrentVersion());return parseInt(t)>=a.EventConstant.eventMethodCheckVersion}collectEventCallback(e,t,r){const n=e.getParams().slice(-1)[0];if(n.paramType){new Set([i.default.SyntaxKind.NumberKeyword,i.default.SyntaxKind.StringKeyword,i.default.SyntaxKind.BooleanKeyword,i.default.SyntaxKind.UndefinedKeyword,i.default.SyntaxKind.LiteralType]).has(n.paramType)||(t++,n.getIsRequired()&&r++)}return{callbackNumber:t,requiredCallbackNumber:r}}getEventMethodDataMap(e){let t=new Map;return e.forEach((e=>{const r=[...e.hierarchicalRelations];r.pop();const n=[...r,this.getEventName(e.apiName)].join("/");let i={onEvents:[],offEvents:[],emitEvents:[],onceEvents:[]};t.get(n)&&(i=t.get(n)),t.set(n,this.collectEventMethod(i,e))})),t}collectEventMethod(e,t){switch(this.getEventType(t.apiName)){case"on":e.onEvents.push(t);break;case"off":e.offEvents.push(t);break;case"emit":e.emitEvents.push(t);break;case"once":e.onceEvents.push(t)}return e}getEventName(e){return e.split(/\_/)[1]}getEventType(e){return e.split(/\_/)[0]}}},95769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenWordsCheck=void 0;const n=r(77002),i=r(93333),a=r(93333);t.ForbiddenWordsCheck=class{static forbiddenWordsCheck(e){const t=["this","unknown"],r={state:!0,errorInfo:""},o=e.getDefinedText(),s=e.getJsDocInfos(),c=i.CommonFunctions.getSinceVersion(s[0].getSince()),l=i.CommonFunctions.getCheckApiVersion(),u=/\s{2,}/g;let d=o.replace(/(\/\*|\*\/|\*)|\\n|\\r/g," ");return a.punctuationMarkSet.forEach((e=>{const t=new RegExp(e,"g");t.test(d)&&(d=d.replace(t," ").replace(u," "))})),d.split(/\s/g).forEach((a=>{c===l&&(t.includes(a)||"any"===a&&-1!==e.getFilePath().indexOf(".d.ets"))&&(r.state=!1,r.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ILLEGAL_USE_ANY,[a]))})),r}}},23978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiNamingCheck=void 0;const n=r(77002),i=r(93333),a=r(56795),o=r(93460),s=r(289);class c{static namingCheck(e){const t={state:!0,errorInfo:""},r=e.getJsDocInfos(),n=i.CommonFunctions.getSinceVersion(r[0].getSince()),o=i.CommonFunctions.getCheckApiVersion(),s=e.getFilePath().toLowerCase(),l=/\s{2,}/g;let u=e.getDefinedText().replace(/(\/\*|\*\/|\*)|\n|\r/g," ");i.punctuationMarkSet.forEach((e=>{const t=new RegExp(e,"g");t.test(u)&&(u=u.replace(t," ").replace(l," "))}));let d=u.split(/\s/g),p=[];return d.forEach((e=>{a.WordsCheck.splitComplexWords(e,p)})),p.forEach((r=>{n===o&&(c.checkApiNamingWords(r,t),c.checkApiNamingScenario(s,t,e))})),t}static checkApiNamingWords(e,t){const r=c.getlowercaseNamingMap();for(const[a,o]of r){const r=e.indexOf(a);if(-1===r)continue;const s=o.ignore.map((e=>e.toLowerCase())),l=e.substring(r,r+a.length);if(0===s.length){t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_NAMING,[e,l,o.suggestion]);break}!1===c.checkIgnoreWord(s,e)&&(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_NAMING,[e,l,o.suggestion]))}}static checkApiNamingScenario(e,t,r){const a=c.getlowercaseNamingScenarioMap();for(const[o,s]of a){-1===e.indexOf(o)||c.isInAllowedFiles(s.files,r.getFilePath())||(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_SCENARIO,[e,o,r.getFilePath()]))}}static getlowercaseNamingMap(){const e=new Map;for(const t of o){const r=t.badWord.toLowerCase(),n=t;e.set(r,n)}return e}static checkIgnoreWord(e,t){let r=!1;for(let n=0;n<e.length;n++)if(e[n]&&-1!==t.indexOf(e[n])){r=!0;break}return r}static getlowercaseNamingScenarioMap(){const e=new Map;for(const t of s){const r=t.word.toLowerCase(),n=t;e.set(r,n)}return e}static isInAllowedFiles(e,t){for(const r of e){const e=new RegExp(r);if(e.test(t),e.test(t))return!0}return!1}}t.ApiNamingCheck=c},53438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagInheritCheck=void 0;const n=r(77002),i=r(93333),a=r(44791);class o{static tagInheritCheck(e){const t=[],r=e.getLastJsDocInfo();if(void 0===r)return t;const n=r.tags,i=[];if(void 0===n)return t;n.forEach((e=>{i.push(e.tag)}));let s=e.getParentApi();return a.containerApiTypes.has(s.getApiType())&&o.checkParentJsdoc(s,i,t),t}static checkParentJsdoc(e,t,r){if(void 0===e||!a.containerApiTypes.has(e.getApiType()))return!0;const s=e,c=s.getLastJsDocInfo()?.tags,l={state:!0,errorInfo:""};if(void 0===c)return!0;let u="";const d=c.some((e=>(u=e.tag,i.inheritTagArr.includes(e.tag)&&!t.includes(e.tag)))),p=d?{state:!1,errorInfo:i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_INHERIT,[u.toLocaleLowerCase()])}:l,f=[];c.forEach((e=>{f.push(e.tag)}));const m=t.some((e=>(u=e,i.followTagArr.includes(e)&&!f.includes(e)))),g=m?{state:!1,errorInfo:i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_FOLLOW,[u])}:l;if(d||m)return r.push(...d?m?[g,p]:[p]:[g]),!1;const _=s.getParentApi();return o.checkParentJsdoc(_,t,r)}}t.TagInheritCheck=o},18e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LegalityCheck=void 0;const n=r(44791),i=r(93333),a=r(77002),o=r(93333);class s{static apiLegalityCheck(e,t){const r=[];s.checkSystemapiAtomicservice(t,r);const c=e.getNode(),l=i.apiLegalityCheckTypeMap.get(c.kind),u=new Set(l),d=s.getIllegalTagsArray(l);let p="",f="";if(e.getApiType()!==n.ApiType.CLASS&&e.getApiType()!==n.ApiType.INTERFACE||(p=o.CommonFunctions.getExtendsApiValue(e),f=o.CommonFunctions.getImplementsApiValue(e)),""===p&&(u.delete("extends"),d.push("extends")),""===f&&(u.delete("implements"),d.push("implements")),e.getApiType()===n.ApiType.PROPERTY&&(e.getIsReadOnly()||(u.delete("readonly"),d.push("readonly"))),!Array.isArray(l))return r;const m=t.tags,g=[],_=[];if(void 0===m){const e={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,["since"])+o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,["syscap"])};return r.push(e),r}const h=[];if(m.forEach((e=>{h.push(e.tag)})),h.includes("deprecated"))return r;let y=0,v=e.getApiType()===n.ApiType.METHOD?e.getParams().length:0;return v=e.getApiType()===n.ApiType.TYPE_ALIAS?e.getParamInfos().length:v,m.forEach((i=>{g.push(i.tag),"throws"===i.tag&&_.push(i.name),y="param"===i.tag?y+1:y;const s="useinstead"===i.tag&&"-1"!==t.deprecatedVersion;if(u.delete("param"),u.has(i.tag)&&u.delete(i.tag),e.getApiType()!==n.ApiType.PROPERTY&&e.getApiType()!==n.ApiType.DECLARE_CONST||(u.delete("constant"),d.push("constant")),e.getApiType()!==n.ApiType.INTERFACE||"typedef"!==i.tag&&"interface"!==i.tag||(u.delete("typedef"),u.delete("interface")),e.getApiType()===n.ApiType.TYPE_ALIAS&&e.getIsExport()&&u.delete("typedef"),(e.getApiType()===n.ApiType.METHOD&&0===e.getReturnValue().length||e.getApiType()===n.ApiType.TYPE_ALIAS&&("void"===e.getReturnType()||!e.getTypeIsFunction()))&&(u.delete("returns"),d.push("returns")),d.includes(i.tag)&&("useinstead"!==i.tag||!s)){const e={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_USE,[i.tag])};r.push(e)}})),e.getApiType()===n.ApiType.METHOD&&s.checkThrowsCode(_,g,v,r),s.paramLegalityCheck(y,v,r),u.forEach((e=>{if(!o.conditionalOptionalTags.includes(e)){const t={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,[e])};r.push(t)}})),r}static paramLegalityCheck(e,t,r){if(e>t){const n={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_MORELABEL,[JSON.stringify(e-t),"param"])};r.push(n)}else if(e<t){const e={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,["param"])};r.push(e)}}static checkThrowsCode(e,t,r,n){const i={state:!0,errorInfo:""},s={state:!0,errorInfo:""},c={state:!0,errorInfo:""},l={state:!0,errorInfo:""},u=t.includes(a.ParticularErrorCode.ERROR_PERMISSION),d=t.includes(a.ParticularErrorCode.ERROR_SYSTEMAPI),p=e.includes(a.ParticularErrorCode.ERROR_CODE_201),f=e.includes(a.ParticularErrorCode.ERROR_CODE_202),m=e.includes(a.ParticularErrorCode.ERROR_CODE_401);u!==p&&(i.state=!1,i.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,[u?"throws 201":a.ParticularErrorCode.ERROR_PERMISSION])),d!==f&&(s.state=!1,s.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,[d?"throws 202":a.ParticularErrorCode.ERROR_SYSTEMAPI])),m&&0===r&&(c.state=!1,c.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_USE,["throws 401"]));const g=e.sort();for(let e=0;e<g.length;e++)g[e]===g[e+1]&&(l.state=!1,l.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_REPEATLABEL,["throws"]));n.push(i,s,c,l)}static getIllegalTagsArray(e){const t=[];return i.tagsArrayOfOrder.forEach((r=>{(i.optionalTags.includes(r)||Array.isArray(e))&&(i.optionalTags.includes(r)||e.includes(r))||t.push(r)})),t}static checkSystemapiAtomicservice(e,t){const r={state:!0,errorInfo:""},n=[];e.tags?.forEach((e=>{n.push(e.tag)}));const i=n.includes("systemapi"),o=n.includes("atomicservice");i&&o&&(r.state=!1,r.errorInfo=a.ErrorMessage.ERROR_ERROR_SYSTEMAPI_ATOMICSERVICE),t.push(r)}}t.LegalityCheck=s},6300:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagNameCheck=void 0;const n=r(93333),i=r(77002);t.TagNameCheck=class{static tagNameCheck(e){const t={state:!0,errorInfo:""},r=n.tagsArrayOfOrder.concat(n.officialTagArr),a=e.tags;return void 0===a||a.forEach((e=>{r.includes(e.tag)||(t.state=!1,t.errorInfo=n.CommonFunctions.createErrorInfo(i.ErrorMessage.ERROR_LABELNAME,[e.tag]))})),t}}},95721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrderCheck=void 0;const n=r(77002),i=r(93333);class a{static orderCheck(e,t){const r={state:!0,errorInfo:""},o=t.tags;if(void 0===o)return r;const s=[];if(o.forEach((e=>{s.push(e.tag)})),s.includes("deprecated"))return r;for(let e=0;e<o.length;e++)if(e+1<o.length){const t=i.tagsArrayOfOrder.indexOf(o[e].tag),s=i.tagsArrayOfOrder.indexOf(o[e+1].tag),c=i.CommonFunctions.isOfficialTag(o[e].tag);if("form"!==o[e].tag&&"form"!==o[e+1].tag&&(c&&s>-1||t>s&&s>-1)){r.state=!1,r.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_ORDER,[o[e].tag]);break}"form"===o[e].tag&&(r.state=a.formOrderCheck(o,e,t,s),r.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_ORDER,[o[e].tag]))}return r}static formOrderCheck(e,t,r,n){const a=t-1>-1?i.tagsArrayOfOrder.indexOf(e[t-1].tag):0,o=[a,r],s=[a,i.tagsArrayOfOrder.lastIndexOf(e[t].tag)];return n>-1&&(o.push(n),s.push(n)),!(!i.CommonFunctions.isAscending(o)&&!i.CommonFunctions.isAscending(s))}}t.OrderCheck=a},36944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagRepeatCheck=void 0;const n=r(77002),i=r(93333);t.TagRepeatCheck=class{static tagRepeatCheck(e){const t=[],r=["throws","param"],a=[];if(e.tags?.forEach((e=>{a.push(e.tag)})),a.includes("deprecated"))return t;const o=a.filter((e=>a.indexOf(e)!==a.lastIndexOf(e)));return new Set(o).forEach((e=>{if(!r.includes(e)){const r={state:!1,errorInfo:i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_REPEATLABEL,[e])};t.push(r)}})),t}}},28912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagValueCheck=void 0;const n=r(77002),i=r(93333),a=r(44791),o=r(8136),s=r(11663),c=r(85311),l=r(2543),u=r(98768);class d{static tagValueCheck(e,t){const r=[],n=t.tags;let i=0,a=-1;if(void 0===n)return r;const o=[];n.forEach((e=>{o.push(e.tag)}));const s=o.includes("deprecated");return n.forEach((t=>{let o={state:!0,errorInfo:""};switch(t.tag){case"since":o=d.sinceTagValueCheck(e,t);break;case"extends":case"implements":o=s?o:d.extendsTagValueCheck(e,t);break;case"enum":o=s?o:d.enumTagValueCheck(t);break;case"returns":o=s?o:d.returnsTagValueCheck(e,t);break;case"namespace":case"typedef":case"struct":o=s?o:d.outerTagValueCheck(e,t);break;case"type":o=s?o:d.typeTagValueCheck(e,t);break;case"syscap":o=d.syscapTagValueCheck(t);break;case"default":o=s?o:d.defaultTagValueCheck(t);break;case"deprecated":o=d.deprecatedTagValueCheck(t);break;case"permission":o=s?o:d.permissionTagValueCheck(t);break;case"throws":"-1"===e.getLastJsDocInfo()?.deprecatedVersion&&(i+=1,o=s?o:d.throwsTagValueCheck(t,i,n));break;case"param":a+=1,o=s?o:d.paramTagValueCheck(e,t,a);break;case"useinstead":o=d.useinsteadTagValueCheck(t)}o.state||r.push(o)})),r}static sinceTagValueCheck(e,t){const r={state:!0,errorInfo:""},a=i.CommonFunctions.getSinceVersion(t.name),o=/^\d+$/.test(a),s=[];e.getJsDocInfos().forEach((e=>{s.push(e.since)}));const c=Array.from(new Set(s));return o?l.toNumber(a)>l.toNumber(u.ApiMaxVersion)&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_SINCE_NUMBER):(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_SINCE),s.length!==c.length&&(r.state=!1,r.errorInfo=r.errorInfo+n.ErrorMessage.ERROR_INFO_VALUE_SINCE_JSDOC),r}static extendsTagValueCheck(e,t){const r={state:!0,errorInfo:""};let o=t.name+t.description;if(e.getApiType()===a.ApiType.CLASS||e.getApiType()===a.ApiType.INTERFACE){const a=i.CommonFunctions.getExtendsApiValue(e),s=i.CommonFunctions.getImplementsApiValue(e);"extends"===t.tag&&o.replace(/\s/g,"")!==a&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_EXTENDS),"implements"===t.tag&&o!==s&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_IMPLEMENTS)}return r}static enumTagValueCheck(e){const t={state:!0,errorInfo:""};return-1===["string","number"].indexOf(e.type)&&(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_ENUM),t}static returnsTagValueCheck(e,t){const r={state:!0,errorInfo:""},o=t.type.replace(/\s/g,"");let s=[];if(![a.ApiType.METHOD,a.ApiType.TYPE_ALIAS].includes(e.getApiType()))return r;const c=i.CommonFunctions.judgeSpecialCase(e.returnValueType);return e.getApiType()===a.ApiType.TYPE_ALIAS?s.push(e.getReturnType()):s=c.length>0?c:e.getReturnValue(),0===s.length?(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_RETURNS):o!==s.join("|").replace(/\s/g,"")&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_RETURNS),r}static outerTagValueCheck(e,t){const r={state:!0,errorInfo:""};let i=t.name,o=t.type,s=e.getApiName();e.getDefinedText();if("namespace"===t.tag&&i!==s&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_NAMESPACE),"typedef"===t.tag){if(e.getApiType()===a.ApiType.TYPE_ALIAS){const t=e.getType().join("|").replace(/\s/g,""),r=e.getTypeIsFunction(),n=e.getTypeName()===a.TypeAliasType.OBJECT_TYPE;s=r?"function":n?"object":t}else{const t=e.getGenericInfo();if(t.length>0){s=s+"<"+t.map((e=>e.getGenericContent())).join(",")+">"}}"Interface"===e.getApiType()&&i!==s?(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_TYPEDEF):e.getApiType()!==a.ApiType.TYPE_ALIAS||e.getIsExport()||o.replace(/\s/g,"")===s||(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_TYPEDEF)}return"struct"===t.tag&&o!==s&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_STRUCT),r}static typeTagValueCheck(e,t){const r={state:!0,errorInfo:""};if(e.getApiType()!==a.ApiType.PROPERTY)return r;let o=t.type.replace(/\s/g,""),s=[];const c=i.CommonFunctions.judgeSpecialCase(e.typeKind);s=c.length>0?c:e.type;let l=s.join("|").replace(/\s/g,"");const u=!e.getIsRequired();return u&&1===s.length?l="?"+l:u&&s.length>1&&(l="?("+l+")"),o.replace(/\s/g,"")!==l.replace(/\s/g,"")&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_TYPE),r}static syscapTagValueCheck(e){const t={state:!0,errorInfo:""},r=s.SystemCapability,i=e.name;return r.includes(i)||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_SYSCAP),t}static defaultTagValueCheck(e){const t={state:!0,errorInfo:""};return 0===(e.name+e.type).length&&(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_DEFAULT),t}static deprecatedTagValueCheck(e){const t={state:!0,errorInfo:""},r=e.name,a=i.CommonFunctions.getSinceVersion(e.description),o=/^\d+$/.test(a);return"since"===r&&o||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_DEPRECATED),t}static permissionTagValueCheck(e){const t={state:!0,errorInfo:""},r=c.module.definePermissions,i=[];r.forEach((e=>{i.push(e.name)}));return(e.name+e.description).replace(/(\s|\(|\))/g,"").replace(/(or|and)/g,"$").split("$").forEach((e=>{i.includes(e)||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_PERMISSION)})),t}static throwsTagValueCheck(e,t,r){const a={state:!0,errorInfo:""},o=e.type,s=e.name,c=/^\d+$/.test(s);if("BusinessError"!==o&&(a.state=!1,a.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_VALUE1_THROWS,[JSON.stringify(t)])),c){if("401"===s){const t=e.description,r=t.indexOf(i.throwsTagDescriptionArr[0]),o=t.indexOf(i.throwsTagDescriptionArr[1]),s=t.indexOf(i.throwsTagDescriptionArr[2]),c=t.indexOf(i.throwsTagDescriptionArr[3]),l=-1!==o||-1!==s||-1!==c,u=new RegExp(`${i.throwsTagDescriptionArr[0]}|${i.throwsTagDescriptionArr[1]}|${i.throwsTagDescriptionArr[2]}|${i.throwsTagDescriptionArr[3]}|<br>`,"g"),d=/[A-Za-z]+/.test(t.replace(u,""));(-1===r||r>1||!l||d)&&(a.state=!1,a.errorInfo=a.errorInfo+n.ErrorMessage.ERROR_INFO_VALUE3_THROWS)}}else a.state=!1,a.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_VALUE2_THROWS,[JSON.stringify(t)]);const l=[];return r?.forEach((e=>{l.push(e.tag)})),a}static paramTagValueCheck(e,t,r){const o={state:!0,errorInfo:""};if(![a.ApiType.METHOD,a.ApiType.TYPE_ALIAS].includes(e.getApiType()))return o;const s=t.type.replace(/\s/g,""),c=t.name;let l="",u=[];if(e.getApiType()===a.ApiType.TYPE_ALIAS){const t=e.getParamInfos();l=t.length>r?t[r].getApiName():"",u=t.length>r?t[r].getType():[""]}else{const t=e.getParams();l=t[r]?.getApiName();const n=t[r]?i.CommonFunctions.judgeSpecialCase(t[r].paramType):[];u=n.length>0?n:t[r]?.getType()}return c!==l&&(o.state=!1,o.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_VALUE_PARAM,[JSON.stringify(r+1),JSON.stringify(r+1)])),void 0!==u&&s===u.join("|").replace(/\s/g,"")||(o.state=!1,o.errorInfo=o.errorInfo+i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_TYPE_PARAM,[JSON.stringify(r+1),JSON.stringify(r+1)])),o}static checkModule(e){return/^[A-Za-z0-9_]+\b(\.[A-Za-z0-9_]+\b)*$/.test(e)||/^[A-Za-z0-9_]+\b(\.[A-Za-z0-9_]+\b)*\#[A-Za-z0-9_]+\b$/.test(e)||/^[A-Za-z0-9_]+\b(\.[A-Za-z0-9_]+\b)*\#event:[A-Za-z0-9_]+\b$/.test(e)}static splitUseinsteadValue(e,t){e&&""!==e||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_USEINSTEAD);const r=e.split(/\//g);if(1===r.length)t.state=-1===r[0].indexOf(o.PunctuationMark.LEFT_BRACKET)&&-1===r[0].indexOf(o.PunctuationMark.RIGHT_BRACKET)&&d.checkModule(r[0]);else if(2===r.length){const e=r[0].split(".");if(1===e.length)t.state=t.state&&/^[A-Za-z0-9_]+\b$/.test(e[0])&&d.checkModule(r[1]);else{let n=!0;for(let t=0;t<e.length;t++)n=n&&"ohos"===e[0]&&/^[A-Za-z0-9_]+\b$/.test(e[t]);n&&(d.checkModule(r[1])||-1!==r[1].indexOf(o.PunctuationMark.LEFT_BRACKET)||-1!==r[1].indexOf(o.PunctuationMark.RIGHT_BRACKET))||(t.state=!1)}}else t.state=!1;t.state||(t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_USEINSTEAD)}static useinsteadTagValueCheck(e){let t={state:!0,errorInfo:""};const r=e.name;return""===r?(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_USEINSTEAD):d.splitUseinsteadValue(r,t),t}}t.TagValueCheck=d},56795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordsCheck=void 0;const n=r(44791),i=r(77002),a=r(93333),o=r(31575),s=r(93333),c=r(54732),l=r(77596),u=new Set([...c.dictionariesArr,...l.dictionariesSupplementaryArr,...a.tagsArrayOfOrder,...a.officialTagArr]);class d{static wordCheckResultsProcessing(e){e.forEach((e=>{if(e.getApiType()===n.ApiType.SOURCE_FILE)return;let t=e.getJsDocText()+e.getDefinedText();if(e.getApiType()===n.ApiType.IMPORT){const r=e.getImportValues(),n=[];r.forEach((e=>{n.push(e.key)})),t=n.join("|")}d.wordsCheck(t,e)}))}static wordsCheck(e,t){const r=/\s{2,}/g;let n=e.replace(/(\/\*|\*\/|\*)|\n|\r/g," ");s.punctuationMarkSet.forEach((e=>{const t=new RegExp(e,"g");t.test(n)&&(n=n.replace(t," ").replace(r," "))}));let c=n.split(/\s/g);const l=[];c.forEach((e=>{const r=[];d.splitComplexWords(e,r),r.forEach((r=>{if(!d.checkBaseWord(r.toLowerCase())){l.push(r);const n={state:!1,errorInfo:a.CommonFunctions.createErrorInfo(i.ErrorMessage.ERROR_WORD,[e,r])},c=new i.ErrorBaseInfo;c.setErrorID(i.ErrorID.MISSPELL_WORDS_ID).setErrorLevel(i.ErrorLevel.MIDDLE).setErrorType(i.ErrorType.MISSPELL_WORDS).setLogType(i.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const u=a.CommonFunctions.getErrorInfo(t,void 0,t.getFileAbsolutePath(),c);o.AddErrorLogs.addAPICheckErrorLogs(u,s.compositiveResult,s.compositiveLocalResult)}}))}))}static hasUnderline(e){return/(?<!^)\_/g.test(e)}static splitComplexWords(e,t){let r=[];d.hasUnderline(e)?r=e.split(/(?<!^)\_/g):/(?<!^)(?=[A-Z])/g.test(e)?r=e.split(/(?<!^)(?=[A-Z])/g):r.push(e),r.forEach((e=>{/[0-9]/g.test(e)?t.concat(e.split(/0-9/g)):t.push(e)}))}static checkBaseWord(e){return!/^[a-z][0-9]+$/g.test(e)&&!(/^[A-Za-z]+/g.test(e)&&!u.has(e.toLowerCase()))}}t.WordsCheck=d},22127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiCountHelper=void 0;const n=r(85057),i=r(80879);t.ApiCountHelper=class{static countApi(e){const t=[],r=i.FunctionUtils.readKitFile(),a=r.filePathSet,o=r.subsystemMap,s=r.kitNameMap;return a.forEach((r=>{let i=0,a="",c=new n.ApiCountInfo;e.forEach((e=>{r===e.getFilePath().replace(/\\/g,"/")&&(i++,a=e.getKitInfo())})),i>0&&(c.setFilePath(`api/${r}`).setApiNumber(i).setKitName(""===a?s.get(r):a).setsubSystem(o.get(r)),t.push(c))})),t}}},12311:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiffProcessorHelper=void 0;const i=r(44791),a=r(37583),o=r(40149),s=r(87960),c=r(38572),l=r(93333),u=r(8136),d=n(r(58843));!function(e){e.permissionsCharMap=new Map([["and",{splitchar:"and",transferchar:"&"}],["or",{splitchar:"or",transferchar:"|"}]]),e.typeCharMap=new Map([["and",{splitchar:"&",transferchar:"&"}],["or",{splitchar:"|",transferchar:"|"}]]);class t{static diffJsDocInfo(r,n,a,o,s){if(!(r instanceof i.ApiInfo&&n instanceof i.ApiInfo))return;const c=r.getLastJsDocInfo(),l=n.getLastJsDocInfo();t.diffSinceVersion(r,n,a);const u=t.diffErrorCodes(c,l);u?.forEach((t=>{const i=e.wrapDiffInfo(r,n,t);a.push(i)}));for(let t=0;t<e.jsDocDiffProcessors.length;t++){const i=(0,e.jsDocDiffProcessors[t])(c,l,o,s);if(!i)continue;const u=e.wrapDiffInfo(r,n,i);a.push(u)}}static getFirstSinceVersion(e){let t="";for(let r=0;r<e.length;r++){const n=e[r];if("-1"!==n.getSince())return t=n.getSince(),t}return t}static diffSinceVersion(t,r,n){const i=new o.DiffTypeInfo,a=t.getJsDocInfos()[0],s=r.getJsDocInfos()[0],c=a?a.getSince():"-1",l=s?s.getSince():"-1";if(i.setStatusCode(o.ApiStatusCode.VERSION_CHNAGES).setOldMessage(c).setNewMessage(l),c===l)return;if("-1"===c){i.setDiffType(o.ApiDiffType.SINCE_VERSION_NA_TO_HAVE);const a=e.wrapDiffInfo(t,r,i);return void n.push(a)}if("-1"===l){i.setDiffType(o.ApiDiffType.SINCE_VERSION_HAVE_TO_NA);const a=e.wrapDiffInfo(t,r,i);return void n.push(a)}i.setDiffType(o.ApiDiffType.SINCE_VERSION_A_TO_B);const u=e.wrapDiffInfo(t,r,i);n.push(u)}static diffIsSystemApi(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsSystemApi(),i=!!t&&t.getIsSystemApi();if(r.setStatusCode(o.ApiStatusCode.SYSTEM_API_CHNAGES).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.SYSTEM_API)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.SYSTEM_API)),i!==n)return i?r.setDiffType(o.ApiDiffType.PUBLIC_TO_SYSTEM):r.setDiffType(o.ApiDiffType.SYSTEM_TO_PUBLIC)}static diffModelLimitation(e,t){const r=new o.DiffTypeInfo,n=new Map([["_stagemodelonly",o.ApiDiffType.NA_TO_STAGE],["stagemodelonly_",o.ApiDiffType.STAGE_TO_NA],["_famodelonly",o.ApiDiffType.NA_TO_FA],["famodelonly_",o.ApiDiffType.FA_TO_NA],["famodelonly_stagemodelonly",o.ApiDiffType.FA_TO_STAGE],["stagemodelonly_famodelonly",o.ApiDiffType.STAGE_TO_FA]]),i=e?e.getModelLimitation().toLowerCase():"",a=t?t.getModelLimitation().toLowerCase():"";if(a===i)return;const s=`${i.toLowerCase()}_${a.toLowerCase()}`,c=n.get(s);return r.setStatusCode(o.ApiStatusCode.MODEL_CHNAGES).setDiffType(c).setOldMessage(i).setNewMessage(a),r}static diffIsForm(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsForm(),i=!!t&&t.getIsForm();if(r.setStatusCode(o.ApiStatusCode.FORM_CHANGED).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.FORM)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.FORM)),i!==n)return i?r.setDiffType(o.ApiDiffType.NA_TO_CARD):r.setDiffType(o.ApiDiffType.CARD_TO_NA)}static diffIsCrossPlatForm(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsCrossPlatForm(),i=!!t&&t.getIsCrossPlatForm();if(r.setStatusCode(o.ApiStatusCode.CROSSPLATFORM_CHANGED).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.CROSS_PLAT_FORM)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.CROSS_PLAT_FORM)),i!==n)return i?r.setDiffType(o.ApiDiffType.NA_TO_CROSS_PLATFORM):r.setDiffType(o.ApiDiffType.CROSS_PLATFORM_TO_NA)}static diffAtomicService(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsAtomicService(),i=!!t&&t.getIsAtomicService();if(r.setStatusCode(o.ApiStatusCode.ATOMICSERVICE_CHANGE).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.ATOMIC_SERVICE)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.ATOMIC_SERVICE)),n!==i)return i?r.setDiffType(o.ApiDiffType.ATOMIC_SERVICE_NA_TO_HAVE):r.setDiffType(o.ApiDiffType.ATOMIC_SERVICE_HAVE_TO_NA)}static diffPermissions(t,r){const n=new o.DiffTypeInfo,i=t?t.getPermission():"",a=r?r.getPermission():"";if(n.setStatusCode(o.ApiStatusCode.PERMISSION_CHANGES).setOldMessage(i).setNewMessage(a),i===a)return;if(""===i)return n.setStatusCode(o.ApiStatusCode.PERMISSION_NEW).setDiffType(o.ApiDiffType.PERMISSION_NA_TO_HAVE);if(""===a)return n.setStatusCode(o.ApiStatusCode.PERMISSION_DELETE).setDiffType(o.ApiDiffType.PERMISSION_HAVE_TO_NA);const s=new c.PermissionsProcessorHelper(e.permissionsCharMap).comparePermissions(i,a);return s.range===c.RangeChange.DOWN?n.setDiffType(o.ApiDiffType.PERMISSION_RANGE_SMALLER):s.range===c.RangeChange.UP?n.setDiffType(o.ApiDiffType.PERMISSION_RANGE_BIGGER):n.setDiffType(o.ApiDiffType.PERMISSION_RANGE_CHANGE)}static diffErrorCodes(e,t){const r=new o.DiffTypeInfo,n=e?e.getErrorCode().sort():[],i=t?t.getErrorCode().sort():[],a=new Set(n),s=new Set(i),c=new Set(i.concat(n)),l=n.toString(),u=i.toString(),d=[];if(r.setStatusCode(o.ApiStatusCode.ERRORCODE_CHANGES).setOldMessage(l).setNewMessage(u),u===l)return;if(0===n.length&&0!==i.length)return d.push(r.setStatusCode(o.ApiStatusCode.NEW_ERRORCODE).setDiffType(o.ApiDiffType.ERROR_CODE_NA_TO_HAVE)),d;const p=[],f=[];if(c.forEach((e=>{a.has(e)||p.push(e),s.has(e)||f.push(e)})),0!==p.length){const e=new o.DiffTypeInfo;e.setOldMessage("NA").setNewMessage(p.join()).setStatusCode(o.ApiStatusCode.NEW_ERRORCODE).setDiffType(o.ApiDiffType.ERROR_CODE_ADD),d.push(e)}if(0!==f.length){const e=new o.DiffTypeInfo;e.setOldMessage(f.join()).setNewMessage("NA").setStatusCode(o.ApiStatusCode.ERRORCODE_DELETE).setDiffType(o.ApiDiffType.ERROR_CODE_REDUCE),d.push(e)}return d}static diffSyscap(e,t){const r=new o.DiffTypeInfo,n=e?e.getSyscap():"",i=t?t.getSyscap():"";if(r.setStatusCode(o.ApiStatusCode.SYSCAP_CHANGES).setOldMessage(n).setNewMessage(i),i!==n)return""===n?r.setDiffType(o.ApiDiffType.SYSCAP_NA_TO_HAVE):""===i?r.setDiffType(o.ApiDiffType.SYSCAP_HAVE_TO_NA):r.setDiffType(o.ApiDiffType.SYSCAP_A_TO_B)}static diffDeprecated(e,t,r,n){const i=new o.DiffTypeInfo,a=e?e.getDeprecatedVersion():"-1",s=t?t.getDeprecatedVersion():"-1";if(i.setStatusCode(o.ApiStatusCode.DEPRECATED_CHNAGES).setOldMessage(a.toString()).setNewMessage(s.toString()),s!==a){if(n){if("-1"===a&&!r)return i.setDiffType(o.ApiDiffType.DEPRECATED_NOT_All);if("-1"===a&&r)return i.setDiffType(o.ApiDiffType.DEPRECATED_NA_TO_HAVE)}else{if("-1"===a)return i.setDiffType(o.ApiDiffType.DEPRECATED_NA_TO_HAVE);if("-1"===s)return i.setDiffType(o.ApiDiffType.DEPRECATED_HAVE_TO_NA)}return"-1"===s?i.setDiffType(o.ApiDiffType.DEPRECATED_HAVE_TO_NA):i.setDiffType(o.ApiDiffType.DEPRECATED_A_TO_B)}}}e.JsDocDiffHelper=t;class r{static diffDecorator(e,t,n){if(!(e instanceof i.ApiInfo&&t instanceof i.ApiInfo))return;const a=r.setDecoratorsMap(e.getDecorators()),o=r.setDecoratorsMap(t.getDecorators());if(0!==o.size)if(0!==a.size)r.diffDecoratorInfo(a,o,e,t,n);else for(const i of o.keys())r.addNewDecoratorsInfo(i,e,t,n),o.delete(i);else for(const i of a.keys())r.addDeleteDecoratorsInfo(i,e,t,n)}static diffDecoratorInfo(e,t,n,i,a){const o=new Set;for(const s of e.keys()){const c=t.get(s),l=e.get(s);c?l&&c.join()===l.join()&&(t.delete(s),o.add(s)):(r.addDeleteDecoratorsInfo(s,n,i,a),o.add(s))}for(const e of t.keys())r.addNewDecoratorsInfo(e,n,i,a);for(const t of e.keys())o.has(t)||r.addDeleteDecoratorsInfo(t,n,i,a)}static setDecoratorsMap(e){const t=new Map;return e?(e.forEach((e=>{const r=e.getExpressionArguments();t.set(e.getExpression(),void 0===r?[]:r)})),t):t}static addDeleteDecoratorsInfo(t,r,n,i){const a=new o.DiffTypeInfo;a.setStatusCode(o.ApiStatusCode.DELETE_DECORATOR).setDiffType(o.ApiDiffType.DELETE_DECORATOR).setOldMessage(t).setNewMessage("");const s=e.wrapDiffInfo(r,n,a);i.push(s)}static addNewDecoratorsInfo(t,r,n,i){const a=new o.DiffTypeInfo;a.setStatusCode(o.ApiStatusCode.NEW_DECORATOR).setDiffType(o.ApiDiffType.NEW_DECORATOR).setOldMessage("").setNewMessage(t);const s=e.wrapDiffInfo(r,n,a);i.push(s)}}e.ApiDecoratorsDiffHelper=r;class n{static diffHistoricalJsDoc(t,r,n){if(!(t instanceof i.ApiInfo&&r instanceof i.ApiInfo))return;const a=l.CommonFunctions.getCheckApiVersion().toString(),s=t.getJsDocText().split("*/"),c=r.getJsDocText().split("*/"),d=new o.DiffTypeInfo;if(t.getCurrentVersion()===a?s.splice(u.NumberConstant.DELETE_CURRENT_JS_DOC):s.splice(-1),r.getCurrentVersion()===a?c.splice(u.NumberConstant.DELETE_CURRENT_JS_DOC):c.splice(-1),s.length===c.length){for(let i=0;i<s.length;i++)if(s[i].replace(/\r\n|\n|\s+/g,"")!==c[i].replace(/\r\n|\n|\s+/g,"")){d.setDiffType(o.ApiDiffType.HISTORICAL_JSDOC_CHANGE);const i=e.wrapDiffInfo(t,r,d);n.push(i)}}else{d.setDiffType(o.ApiDiffType.HISTORICAL_JSDOC_CHANGE);const i=e.wrapDiffInfo(t,r,d);n.push(i)}}static diffHistoricalAPI(t,r,n){const i=l.CommonFunctions.getCheckApiVersion().toString(),a=t.getDefinedText(),s=r.getDefinedText(),c=new o.DiffTypeInfo;if(a!==s&&r.getCurrentVersion()!==i){c.setDiffType(o.ApiDiffType.HISTORICAL_API_CHANGE);const i=e.wrapDiffInfo(t,r,c);n.push(i)}}}e.ApiCheckHelper=n;class p{static diffNodeInfo(t,r,i,a){a&&(n.diffHistoricalJsDoc(t,r,i),n.diffHistoricalAPI(t,r,i));const o=r.getApiType();if(t.getApiType()!==o)return;const s=e.apiNodeDiffMethod.get(o);s&&s(t,r,i)}static diffBaseType(t,r){const n=new o.DiffTypeInfo;if(t===r)return;if(n.setStatusCode(o.ApiStatusCode.TYPE_CHNAGES).setOldMessage(t).setNewMessage(r),""===t)return n.setDiffType(o.ApiDiffType.TYPE_RANGE_CHANGE);if(""===r)return n.setDiffType(o.ApiDiffType.TYPE_RANGE_CHANGE);const i=new c.PermissionsProcessorHelper(e.typeCharMap).comparePermissions(t,r);return i.range===c.RangeChange.DOWN?n.setDiffType(o.ApiDiffType.TYPE_RANGE_SMALLER):i.range===c.RangeChange.UP?n.setDiffType(o.ApiDiffType.TYPE_RANGE_BIGGER):n.setDiffType(o.ApiDiffType.TYPE_RANGE_CHANGE)}static diffMethod(t,r,n){e.methodDiffProcessors.forEach((i=>{const a=i(t,r);if(a)if(a instanceof Array)a.forEach((i=>{const a=e.wrapDiffInfo(t,r,i.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(a)}));else{const i=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(i)}}))}static diffTypeAliasReturnType(e,t){const r=new o.DiffTypeInfo,n=e.getReturnType().split("|"),i=t.getReturnType().split("|"),a=n.toString().replace(/\r|\n|\s+|'|"/g,""),s=i.toString().replace(/\r|\n|\s+|'|"/g,"");if(a!==s)return r.setOldMessage(a).setNewMessage(s),m(i,n)?r.setDiffType(o.ApiDiffType.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD):m(n,i)?r.setDiffType(o.ApiDiffType.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE):r.setDiffType(o.ApiDiffType.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE)}static diffMethodReturnType(e,t){const r=new o.DiffTypeInfo,n=e.getReturnValue(),i=t.getReturnValue(),a=n.toString().replace(/\r|\n|\s+|'|"|>/g,""),c=i.toString().replace(/\r|\n|\s+|'|"|>/g,"");if(a!==c)return r.setOldMessage(n.toString()).setNewMessage(i.toString()),m(i,n)||s.StringUtils.hasSubstring(c,a)?r.setDiffType(o.ApiDiffType.FUNCTION_RETURN_TYPE_ADD):m(n,i)||s.StringUtils.hasSubstring(a,c)?r.setDiffType(o.ApiDiffType.FUNCTION_RETURN_TYPE_REDUCE):r.setDiffType(o.ApiDiffType.FUNCTION_RETURN_TYPE_CHANGE)}static getDiffMethodTypes(e){return e?{POS_CHANGE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,ADD_OPTIONAL_PARAM:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,ADD_REQUIRED_PARAM:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,REDUCE_PARAM:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,PARAM_TYPE_CHANGE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,PARAM_TYPE_ADD:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,PARAM_TYPE_REDUCE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,PARAM_TO_UNREQUIRED:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,PARAM_TO_REQUIRED:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,PARAM_CHANGE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_CHANGE}:{POS_CHANGE:o.ApiDiffType.FUNCTION_PARAM_POS_CHANGE,ADD_OPTIONAL_PARAM:o.ApiDiffType.FUNCTION_PARAM_UNREQUIRED_ADD,ADD_REQUIRED_PARAM:o.ApiDiffType.FUNCTION_PARAM_REQUIRED_ADD,REDUCE_PARAM:o.ApiDiffType.FUNCTION_PARAM_REDUCE,PARAM_TYPE_CHANGE:o.ApiDiffType.FUNCTION_PARAM_TYPE_CHANGE,PARAM_TYPE_ADD:o.ApiDiffType.FUNCTION_PARAM_TYPE_ADD,PARAM_TYPE_REDUCE:o.ApiDiffType.FUNCTION_PARAM_TYPE_REDUCE,PARAM_TO_UNREQUIRED:o.ApiDiffType.FUNCTION_PARAM_TO_UNREQUIRED,PARAM_TO_REQUIRED:o.ApiDiffType.FUNCTION_PARAM_TO_REQUIRED,PARAM_CHANGE:o.ApiDiffType.FUNCTION_PARAM_CHANGE}}static diffMethodParams(e,t){const r=[],n="TypeAlias"===e.getApiType(),i=n?e.getParamInfos():e.getParams(),a=n?t.getParamInfos():t.getParams(),o=p.getDiffMethodTypes(n);return p.diffParamsPosition(i,a,r,o),p.diffNewOptionalParam(i,a,r,o),p.diffNewRequiredParam(i,a,r,o),p.diffReducedParam(i,a,r,o),p.diffParamTypeChange(i,a,r,o),p.diffParamChange(i,a,r,o),p.diffMethodParamChange(i,a,r,o),r}static diffMethodParamChange(e,t,r,n){const i=e.length,a=t.length;if(!i||!a)return;const s=[],c=[];for(let r=0;r<Math.max(i,a);r++){const n=t[r],i=e[r];n&&c.push(n.getApiName()),i&&s.push(i.getApiName())}const l=i-e.filter((e=>!c.includes(e.getApiName()))).length;if(l===i||l===a)return;let u=e,d=t;r.forEach((e=>{u=u.filter((t=>e.getOldMessage()!==t.getDefinedText())),d=d.filter((t=>e.getNewMessage()!==t.getDefinedText()))}));const p=_(u),f=_(d),m=new o.DiffTypeInfo;m.setDiffType(n.PARAM_CHANGE).setOldMessage(p).setNewMessage(f),r.push(m)}static diffParamsPosition(e,t,r,n){const i=e.length,a=t.length;if(i<=1||i!==a)return;var s;if(s=e,t.every(((e,t)=>{const r=s[t];return e.getApiName()===r.getApiName()})))return;if(!f(e,t))return;const c=_(e),l=_(t),u=new o.DiffTypeInfo;u.setDiffType(n.POS_CHANGE).setOldMessage(c).setNewMessage(l),r.push(u)}static diffNewOptionalParam(e,t,r,n){const i=e.length,a=t.length;if(0===a||i>=a)return;if(!f(t,e))return;const s=e.map((e=>e.getApiName())),c=t.filter((e=>{const t=e.getApiName();return!s.includes(t)&&!e.getIsRequired()}));if(!c.length)return;const l=_(c),u=new o.DiffTypeInfo;u.setOldMessage("").setDiffType(n.ADD_OPTIONAL_PARAM).setNewMessage(l),r.push(u)}static diffNewRequiredParam(e,t,r,n){const i=e.length,a=t.length;if(0===a||i>=a)return;if(!f(t,e))return;const s=e.map((e=>e.getApiName())),c=t.filter((e=>{const t=e.getApiName();return!s.includes(t)&&e.getIsRequired()}));if(!c.length)return;const l=_(c),u=new o.DiffTypeInfo;u.setDiffType(n.ADD_REQUIRED_PARAM).setOldMessage("").setNewMessage(l),r.push(u)}static diffReducedParam(e,t,r,n){const i=e.length,a=t.length;if(0===i||a>=i)return;const s=f(e,t);if(a>0&&!s)return;const c=t.map((e=>e.getApiName())),l=_(e.filter((e=>!c.includes(e.getApiName())))),u=new o.DiffTypeInfo;u.setDiffType(n.REDUCE_PARAM).setOldMessage(l).setNewMessage(""),r.push(u)}static diffParamChange(e,t,r,n){const i=e.length,a=t.length;if(!i||!a)return;const s=e.filter((e=>{const r=e.getApiName();return t.find((e=>e.getApiName()===r))}));s.length&&s.forEach(((e,i)=>{const a=e.getApiName(),s=t.find((e=>e.getApiName()===a));if(s.getIsRequired()!==e.getIsRequired()){const t=e.getDefinedText(),i=s.getDefinedText(),a=e.getIsRequired()?n.PARAM_TO_UNREQUIRED:n.PARAM_TO_REQUIRED,c=new o.DiffTypeInfo;c.setDiffType(a).setOldMessage(t).setNewMessage(i),r.push(c)}}))}static diffParamTypeChange(e,t,r,n){const i=e.length,a=t.length;if(!i||!a)return;const s=t.map((e=>e.getApiName())),c=e.filter((e=>s.includes(e.getApiName())));c.length&&c.forEach(((e,i)=>{const a=e.getType(),s=t.find((t=>t.getApiName()===e.getApiName())),c=s.getType();if(a.toString().replace(/\r|\n|\s+|'|"|,|;/g,"")!==c.toString().replace(/\r|\n|\s+|'|"|,|;/g,"")){const t=g(a,c,n),i=e.getDefinedText(),l=s.getDefinedText(),u=new o.DiffTypeInfo;u.setDiffType(t).setOldMessage(i).setNewMessage(l),r.push(u)}}))}static diffMethodParamName(e,t){if(e.getApiName()!==t.getApiName())return o.ApiDiffType.FUNCTION_PARAM_NAME_CHANGE}static diffMethodParamType(e,t){const r=e.getType(),n=t.getType(),i=r.toString().replace(/\r|\n|\s+|'|"/g,"").replace(/\|/g,"\\|"),a=n.toString().replace(/\r|\n|\s+|'|"/g,"").replace(/\|/g,"\\|");if(i!==a)return s.StringUtils.hasSubstring(a,i)?o.ApiDiffType.FUNCTION_PARAM_TYPE_ADD:s.StringUtils.hasSubstring(i,a)?o.ApiDiffType.FUNCTION_PARAM_TYPE_REDUCE:o.ApiDiffType.FUNCTION_PARAM_TYPE_CHANGE}static diffMethodParamRequired(e,t){const r=e.getIsRequired(),n=t.getIsRequired();if(r!==n)return n?o.ApiDiffType.FUNCTION_PARAM_TO_REQUIRED:o.ApiDiffType.FUNCTION_PARAM_TO_UNREQUIRED}static diffClass(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setStatusCode(o.ApiStatusCode.CLASS_CHANGES).setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i);n.push(c)}static diffInterface(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setStatusCode(o.ApiStatusCode.CLASS_CHANGES).setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i);n.push(c)}static diffNamespace(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setStatusCode(o.ApiStatusCode.CLASS_CHANGES).setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i);n.push(c)}static diffProperty(t,r,n){e.propertyDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const s=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(s)}))}static diffPropertyType(e,t){const r=new o.DiffTypeInfo,n=e.getType(),i=t.getType(),a=e.getIsReadOnly(),c=t.getIsReadOnly(),l=n.toString().replace(/\r|\n|\s+|\>|\}/g,""),u=i.toString().replace(/\r|\n|\s+|\>|\}/g,""),p=t.getTypeKind()===d.default.SyntaxKind.UnionType;if(l!==u)return r.setOldMessage(n.toString()).setNewMessage(i.toString()),l.replace(/\,|\;/g,"")===u.replace(/\,|\;/g,"")?r.setDiffType(o.ApiDiffType.PROPERTY_TYPE_SIGN_CHANGE):p&&m(n,i)?r.setDiffType(a?o.ApiDiffType.PROPERTY_READONLY_REDUCE:o.ApiDiffType.PROPERTY_WRITABLE_REDUCE):p&&m(i,n)||!p&&s.StringUtils.hasSubstring(u,l)?r.setDiffType(c?o.ApiDiffType.PROPERTY_READONLY_ADD:o.ApiDiffType.PROPERTY_WRITABLE_ADD):!p&&s.StringUtils.hasSubstring(l,u)?r.setDiffType(a?o.ApiDiffType.PROPERTY_READONLY_REDUCE:o.ApiDiffType.PROPERTY_WRITABLE_REDUCE):r.setDiffType(o.ApiDiffType.PROPERTY_TYPE_CHANGE)}static diffPropertyRequired(e,t){const r=new o.DiffTypeInfo,n=e.getApiName(),i=t.getApiName(),a=e.getIsReadOnly(),s=new Map([["_true_false_true",o.ApiDiffType.PROPERTY_READONLY_TO_UNREQUIRED],["_false_true_true",o.ApiDiffType.PROPERTY_READONLY_TO_REQUIRED],["_true_false_false",o.ApiDiffType.PROPERTY_WRITABLE_TO_UNREQUIRED],["_false_true_false",o.ApiDiffType.PROPERTY_WRITABLE_TO_REQUIRED]]),c=e.getIsRequired(),l=t.getIsRequired();if(n===i&&c===l)return;r.setOldMessage(e.getDefinedText()).setNewMessage(t.getDefinedText());const u=`_${!!c}_${!!l}_${!!a}`,d=s.get(u);return r.setDiffType(d)}static diffConstant(t,r,n){e.constantDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const s=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(s)}))}static diffConstantValue(e,t){const r=new o.DiffTypeInfo,n=e.getValue(),i=t.getValue();if(n!==i)return r.setOldMessage(n).setNewMessage(i),r.setDiffType(o.ApiDiffType.CONSTANT_VALUE_CHANGE)}static diffTypeAlias(t,r,n){if(e.typeAliasDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const o=e.wrapDiffInfo(t,r,a);n.push(o)})),t.getTypeIsFunction()){const i=p.diffMethodParams(t,r),a=p.diffTypeAliasReturnType(t,r);a&&i.push(a),i.forEach((i=>{const a=e.wrapDiffInfo(t,r,i.setStatusCode(o.ApiStatusCode.TYPE_CHNAGES));n.push(a)}))}}static diffTypeAliasType(e,t){const r=new o.DiffTypeInfo,n=e.getType(),i=t.getType(),a=n.toString(),s=i.toString();if(a.replace(/\r|\n|\s+|'|"/g,"")===s.replace(/\r|\n|\s+|'|"/g,""))return;if(e.getTypeIsFunction())return;const c=g(n,i,{PARAM_TYPE_CHANGE:o.ApiDiffType.TYPE_ALIAS_CHANGE,PARAM_TYPE_ADD:o.ApiDiffType.TYPE_ALIAS_ADD,PARAM_TYPE_REDUCE:o.ApiDiffType.TYPE_ALIAS_REDUCE});return r.setOldMessage(n.join(" | ")).setNewMessage(i.join(" | ")).setStatusCode(o.ApiStatusCode.TYPE_CHNAGES).setDiffType(c),r}static diffEnum(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(c)}static diffEnumMember(t,r,n){e.enumDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const s=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(s)}))}static diffEnumMemberValue(e,t){const r=new o.DiffTypeInfo,n=e.getValue(),i=t.getValue();if(n!==i)return r.setOldMessage(n).setNewMessage(i),r.setDiffType(o.ApiDiffType.ENUM_MEMBER_VALUE_CHANGE)}static diffApiName(e,t){const r=new o.DiffTypeInfo,n=e.getApiName(),i=t.getApiName();if(n!==i)return r.setOldMessage(n).setNewMessage(i),r.setDiffType(o.ApiDiffType.API_NAME_CHANGE)}static diffSingleParamType(e,t,r){const n=e.toString().replace(/\r|\n|\s+|'|"|>/g,"").replace(/\|/g,"\\|"),i=t.toString().replace(/\r|\n|\s+|'|"|>/g,"").replace(/\|/g,"\\|");return s.StringUtils.hasSubstring(i,n)?r.PARAM_TYPE_ADD:s.StringUtils.hasSubstring(n,i)?r.PARAM_TYPE_REDUCE:r.PARAM_TYPE_CHANGE}static diffExport(t,r,n){const a=new o.DiffTypeInfo(o.ApiStatusCode.DEFAULT,o.ApiDiffType.DEFAULT,t.getDefinedText(),r.getDefinedText());if(t.getApiType()===i.ApiType.EXPORT_DEFAULT&&r.getApiType()===i.ApiType.EXPORT_DEFAULT){if(t.getDefinedText()===r.getDefinedText())return;{a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_CHANGE).setDiffType(o.ApiDiffType.EXPORT_NAME_CHANGE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}}if(!(t instanceof i.ExportDeclareInfo&&r instanceof i.ExportDeclareInfo))return;const s=t.getExportValues(),c=r.getExportValues();if(s.length>c.length){a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_NUMBER_REDUCE).setDiffType(o.ApiDiffType.EXPORT_NAME_NUMBER_REDUCE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}else if(s.length<c.length){let i=[];if(i=s.filter((e=>c.some((({key:t})=>e.key===t)))),i.length===s.length){a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_NUMBER_ADD).setDiffType(o.ApiDiffType.EXPORT_NAME_NUMBER_ADD);const i=e.wrapDiffInfo(t,r,a);n.push(i)}else{a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_CHANGE).setDiffType(o.ApiDiffType.EXPORT_NAME_CHANGE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}}else{let i=[];if(i=s.filter((e=>!c.some((({key:t})=>e.key===t)))),i.length>0){a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_CHANGE).setDiffType(o.ApiDiffType.EXPORT_NAME_CHANGE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}}}}function f(e,t){return t.every((t=>{const r=t.getApiName(),n=e.find((e=>e.getApiName()===r));return n&&n.getApiType()===t.getApiType()}))}function m(e,t){return t.every((t=>e.includes(t)))}function g(t,r,n){const i=t.length,a=r.length;switch(i-a){case 0:return e.ApiNodeDiffHelper.diffSingleParamType(t,r,n);case-a:return n.PARAM_TYPE_ADD;case i:return n.PARAM_TYPE_REDUCE;default:return i>a?r.every((e=>t.includes(e)))?n.PARAM_TYPE_REDUCE:n.PARAM_TYPE_CHANGE:t.every((e=>r.includes(e)))?n.PARAM_TYPE_ADD:n.PARAM_TYPE_CHANGE}}function _(e){return e.length<=1?e[0].getDefinedText():e.reduce(((t,r,n)=>{let i=r.getDefinedText();return n!==e.length-1&&(i+=", "),t+i}),"")}e.ApiNodeDiffHelper=p,e.wrapDiffInfo=function(e=void 0,t=void 0,r,n){const a=t,s=t,c=t&&t.getParentApiType()?t.getParentApiType():"";let l=!0;!n&&o.parentApiTypeSet.has(c)&&r.getDiffType()===o.ApiDiffType.ADD&&(t?.getApiType()===i.ApiType.METHOD&&s.getIsRequired()||t?.getApiType()===i.ApiType.PROPERTY&&a.getIsRequired())&&(l=!1);const u=new o.BasicDiffInfo,d=r.getDiffType(),p=e,f=t,m=p?.getLastJsDocInfo?.()?.getIsSystemApi?.(),g=f?.getLastJsDocInfo?.()?.getIsSystemApi?.();let _=f?.getIsSameNameFunction?.();return t||(_=p?.getIsSameNameFunction()),e&&function(e,t){const r=e,n=r.getLastJsDocInfo?.()?.getKit?.();n&&t.setOldKitInfo(n);t.setOldApiDefinedText(e.getDefinedText()).setApiType(e.getApiType()).setOldApiName(e.getApiName()).setOldDtsName(e.getFilePath()).setOldHierarchicalRelations(e.getHierarchicalRelations()).setOldPos(e.getPos()).setOldSyscapField(e.getSyscap())}(e,u),t&&function(e,t){const r=e,n=r.getLastJsDocInfo?.()?.getKit?.();n&&t.setNewKitInfo(n);t.setNewApiDefinedText(e.getDefinedText()).setApiType(e.getApiType()).setNewApiName(e.getApiName()).setNewDtsName(e.getFilePath()).setNewHierarchicalRelations(e.getHierarchicalRelations()).setNewPos(e.getPos()).setNewSyscapField(e.getSyscap())}(t,u),u.setDiffType(d).setDiffMessage(o.diffMap.get(d)).setStatusCode(r.getStatusCode()).setIsCompatible(!!l&&!o.incompatibleApiDiffTypes.has(d)).setOldDescription(r.getOldMessage()).setNewDescription(r.getNewMessage()).setIsSystemapi(g||m).setIsSameNameFunction(_),u},e.apiNodeDiffMethod=new Map([[i.ApiType.EXPORT,p.diffExport],[i.ApiType.EXPORT_DEFAULT,p.diffExport],[i.ApiType.PROPERTY,p.diffProperty],[i.ApiType.CLASS,p.diffClass],[i.ApiType.INTERFACE,p.diffInterface],[i.ApiType.NAMESPACE,p.diffNamespace],[i.ApiType.METHOD,p.diffMethod],[i.ApiType.CONSTANT,p.diffConstant],[i.ApiType.ENUM,p.diffEnum],[i.ApiType.ENUM_VALUE,p.diffEnumMember],[i.ApiType.TYPE_ALIAS,e.ApiNodeDiffHelper.diffTypeAlias]]),e.jsDocDiffProcessors=[t.diffSyscap,t.diffDeprecated,t.diffPermissions,t.diffIsForm,t.diffIsCrossPlatForm,t.diffModelLimitation,t.diffIsSystemApi,t.diffAtomicService],e.enumDiffProcessors=[p.diffApiName,p.diffEnumMemberValue],e.typeAliasDiffProcessors=[p.diffApiName,p.diffTypeAliasType],e.constantDiffProcessors=[p.diffApiName,p.diffConstantValue],e.propertyDiffProcessors=[p.diffApiName,p.diffPropertyType,p.diffPropertyRequired],e.methodDiffProcessors=[p.diffApiName,p.diffMethodReturnType,p.diffMethodParams]}(t.DiffProcessorHelper||(t.DiffProcessorHelper={}))},38572:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RangeChange=exports.PermissionsProcessorHelper=void 0;const logUtil_1=__webpack_require__(4e3),Constant_1=__webpack_require__(8136),PATT={GET_NOT_TRANSFERCHAR:/(?<!\\)([\*|\.|\?|\+|\^|\$|\||\/|\[|\]|\(|\)|\{|\}])/g,VARIABLE_START:"(?<=\\b|\\s|\\*|\\.|\\?|\\+|\\^|\\$|\\||\\/|\\[|\\]|\\(|\\)|\\{|\\})",VARIABLE_END:"(?=\\b|\\s|\\*|\\.|\\?|\\+|\\^|\\$|\\||\\/|\\[|\\]|\\(|\\)|\\{|\\})",SPILT_CHAR_START:"(\\b|\\s)",SPILT_CHAR_END:"(\\b|\\s)"};class PermissionsProcessorHelper{constructor(e){this.charMap=new Map([["and",{splitchar:"&",transferchar:"&"}],["or",{splitchar:"\\|",transferchar:"|"}],["eq",{splitchar:"=",transferchar:"=="}],["LE",{splitchar:"->",transferchar:"<="}],["RE",{splitchar:"<-",transferchar:">="}],["not",{splitchar:"-",transferchar:"!"}],["lcurve",{splitchar:"\\(",transferchar:"("}],["rcurve",{splitchar:"\\)",transferchar:")"}]]),this.splitchar=["&","\\|","->","-","=","\\(","\\)"],this.transferchar=["&","|","<=","!","==","(",")"],this.variables=[];let t=this.charMap;return e&&(t=new Map([...t,...e]),this.splitchar=[],this.transferchar=[],t.forEach(((e,t)=>{let r=e.splitchar;r instanceof RegExp||(r=r.replace(PATT.GET_NOT_TRANSFERCHAR,"\\$1"),r!==e.splitchar&&logUtil_1.LogUtil.i("PermissionsProcessorHelper",`传入的表达式有问题,已经自行修改! ${t}中的splitchar为${e.splitchar},修改为${r}`)),this.splitchar.push(r),this.transferchar.push(e.transferchar)}))),this}getvariables(){return this.variables}comparePermissions(e,t){const r={range:RangeChange.NO,situationDown:[],situationUp:[],variables:[]},n=this.calculateParadigmDown(e,t),i=this.calculateParadigmUp(e,t);return r.variables=this.variables,n.range!==RangeChange.NO&&(r.situationDown=n.situationDown,r.range=RangeChange.DOWN),i.range!==RangeChange.NO&&(r.situationUp=i.situationUp,r.range=r.range===RangeChange.NO?RangeChange.UP:RangeChange.CHANGE),r}calculateParadigmDown(e,t){const r={range:RangeChange.NO,situationDown:[],situationUp:[],variables:[]},n=this.charMap.get("LE");if(!n)return r;const i=`(${e}) ${n.splitchar} (${t})`,a=this.calculateParadigm(i);return r.variables=this.variables,a.fail.length>0&&(r.range=RangeChange.DOWN,r.situationDown=a.fail.map((e=>Number(e).toString(Constant_1.NumberConstant.BINARY_SYSTEM).padStart(this.variables.length,"0").split("").map((e=>Boolean(Number(e))))))),r}calculateParadigmUp(e,t){const r={range:RangeChange.NO,situationDown:[],situationUp:[],variables:[]},n=this.charMap.get("RE");if(!n)return r;const i=`(${e}) ${n.splitchar} (${t})`,a=this.calculateParadigm(i);return r.variables=this.variables,a.fail.length>0&&(r.range=RangeChange.UP,r.situationUp=a.fail.map((e=>Number(e).toString(Constant_1.NumberConstant.BINARY_SYSTEM).padStart(this.variables.length,"0").split("").map((e=>Boolean(Number(e))))))),r}calculateParadigm(e){const t=this.findVariables(e);this.variables=t,e=this.formatten(e);const r=this.variables.length,n=PermissionsProcessorHelper.getAllState(r),i=this.calculate(e,r,n);return this.processValues(i)}findVariables(e){this.splitchar.forEach((t=>{const r=new RegExp(t,"g");e=e.replace(r," ")}));const t=new Set(e.split(" "));t.delete("");return[...t].sort(((e,t)=>e.length===t.length?e<t?-1:1:e.length<t.length?1:-1))}formatten(e){return this.splitchar.forEach(((t,r)=>{t instanceof RegExp||(t=new RegExp(PATT.SPILT_CHAR_START+t+PATT.SPILT_CHAR_END,"g")),e=e.replace(t,this.transferchar[r])})),e}static getAllState(e){const t=[];for(let r=0;r<Constant_1.NumberConstant.BINARY_SYSTEM**e;r++)t.push(Number(r).toString(Constant_1.NumberConstant.BINARY_SYSTEM).padStart(e,"0").split(""));return t}calculate(str,variablesLen,states){const statesLen=states.length,values=[];let outError=!0;for(let i=0;i<statesLen;i++){const state=states[i];let modifyStr=str;for(let e=0;e<variablesLen;e++){let t=this.variables[e];t=t.replace(PATT.GET_NOT_TRANSFERCHAR,"\\$1");const r=new RegExp(PATT.VARIABLE_START+t+PATT.VARIABLE_END,"g");modifyStr=modifyStr.replace(r,state[e])}try{values.push(eval(modifyStr))}catch(e){outError&&(outError=!outError,logUtil_1.LogUtil.e("PermissionsProcessor.calculate",`error logical expression: ${str}`),values.push(0))}}return values}processValues(e){const t={pass:[],fail:[]};for(let r=0;r<e.length;r++){e[r]?t.pass.push(r):t.fail.push(r)}return t}}var RangeChange;exports.PermissionsProcessorHelper=PermissionsProcessorHelper,PermissionsProcessorHelper.NEED_TRANSFER_CHAR=["*",".","?","+","^","$","|","/","[","]","(",")","{","}"],function(e){e.DOWN="down",e.UP="up",e.NO="no",e.CHANGE="change"}(RangeChange=exports.RangeChange||(exports.RangeChange={}))},26499:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.diffJsdocMethod=t.DiffTagInfoHelper=t.DiffHelper=void 0;const i=n(r(2543)),a=n(r(58843)),o=r(8136),s=r(27944),c=r(44791),l=r(40149),u=r(30871),d=r(16137),p=r(12311),f=r(80879),m=r(37583),g=r(44791),_=r(87960),h=r(56405);class y{static diffSDK(e,t,r,n){const a=i.default.cloneDeep(e),o=i.default.cloneDeep(t),s=[],c=y.getApiLocations(a,n),d=y.getApiLocations(o,n);y.diffKit(a,o,s);const f=new Set(Array.from(a.keys()));for(const e of c.keys()){const t=c.get(e),i=u.Parser.getApiInfo(t,a,r);if(!d.has(e)){i.forEach((e=>{s.push(p.DiffProcessorHelper.wrapDiffInfo(e,void 0,new l.DiffTypeInfo(l.ApiStatusCode.DELETE,l.ApiDiffType.REDUCE,e.getDefinedText())))}));continue}const f=u.Parser.getApiInfo(t,o,r);y.diffApis(i,f,s,r,n),d.delete(e)}for(const e of d.keys()){const t=d.get(e),n=u.Parser.getApiInfo(t,o,r),i=t.slice(0,-1);n.forEach((e=>{let t=!1;f.has(e.getFilePath())&&c.get(i.join())||(t=!0),s.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.ADD,void 0,e.getDefinedText()),t))}))}return s}static diffKit(e,t,r){for(const n of e.keys()){const i=y.getSourceFileInfo(e.get(n));i?.setSyscap(y.getSyscapField(i));const a=i?.getLastJsDocInfo()?.getKit();if(t.get(n)||"NA"===a){if(t.get(n)){const e=y.getSourceFileInfo(t.get(n)),o=e?.getLastJsDocInfo()?.getKit();a!==o&&r.push(p.DiffProcessorHelper.wrapDiffInfo(i,e,new l.DiffTypeInfo(l.ApiStatusCode.KIT_CHANGE,y.getKitDiffType(a,o),a,o)))}}else r.push(p.DiffProcessorHelper.wrapDiffInfo(i,void 0,new l.DiffTypeInfo(l.ApiStatusCode.KIT_CHANGE,l.ApiDiffType.KIT_HAVE_TO_NA,a,"NA")))}for(const n of t.keys()){const i=y.getSourceFileInfo(t.get(n)),a=i?.getLastJsDocInfo()?.getKit();e.get(n)||"NA"===a||r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,i,new l.DiffTypeInfo(l.ApiStatusCode.KIT_CHANGE,l.ApiDiffType.KIT_NA_TO_HAVE,"NA",a)))}}static getKitDiffType(e,t){return"NA"===e&&""===t?l.ApiDiffType.KIT_NA_TO_HAVE:""===e&&"NA"===t?l.ApiDiffType.KIT_HAVE_TO_NA:"NA"===e||""===e?l.ApiDiffType.KIT_NA_TO_HAVE:"NA"===t||""===t?l.ApiDiffType.KIT_HAVE_TO_NA:l.ApiDiffType.KIT_CHANGE}static getSourceFileInfo(e){if(!e)return;let t=[];for(const r of e.keys())r===o.StringConstant.SELF&&(t=e.get(r));return t[0]}static judgeIsSameNameFunction(e){let t=!1;return e.length>1&&e[0].getApiType()===c.ApiType.METHOD&&(t=!0),t}static diffApis(e,t,r,n,i){const a=y.getDiffSet(e,t),o=a[0],s=a[1];0!==o.size?0!==s.size?y.diffChangeApi(e,t,r,i):o.forEach((e=>{r.push(p.DiffProcessorHelper.wrapDiffInfo(e,void 0,new l.DiffTypeInfo(l.ApiStatusCode.DELETE,l.ApiDiffType.REDUCE,e.getDefinedText(),void 0)))})):s.forEach((e=>{r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.ADD,void 0,e.getDefinedText())))}))}static diffChangeApi(e,t,r,n){if(1===e.length&&e.length===t.length)p.DiffProcessorHelper.JsDocDiffHelper.diffJsDocInfo(e[0],t[0],r),p.DiffProcessorHelper.ApiDecoratorsDiffHelper.diffDecorator(e[0],t[0],r),p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(e[0],t[0],r,n);else{const i=y.setmethodInfoMap(t),a=y.setmethodInfoMap(e);e.forEach((e=>{const t=i.get(e.getDefinedText().replace(/\r|\n|\s+|,|;/g,""));t&&(p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(e,t,r,n),p.DiffProcessorHelper.JsDocDiffHelper.diffJsDocInfo(e,t,r),p.DiffProcessorHelper.ApiDecoratorsDiffHelper.diffDecorator(e,t,r),i.delete(e.getDefinedText()),a.delete(e.getDefinedText()))}));for(const e of i.values()){if(!(e instanceof c.ApiInfo))continue;1===e.getJsDocInfos().length&&(r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.NEW_SAME_NAME_FUNCTION,void 0,e.getDefinedText()))),i.delete(e.getDefinedText().replace(/\r|\n|\s+|,|;/g,"")))}if(1===a.size&&1===i.size){const e=a.entries().next().value[1],t=i.entries().next().value[1];p.DiffProcessorHelper.JsDocDiffHelper.diffJsDocInfo(e,t,r),p.DiffProcessorHelper.ApiDecoratorsDiffHelper.diffDecorator(e,t,r),p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(e,t,r,n)}else y.diffSameNameFunction(a,i,r,n)}}static diffSameNameFunction(e,t,r,n){for(const i of t.values()){if(!(i instanceof c.ApiInfo))continue;const a=i.getPenultimateJsDocInfo();for(const o of e.values()){if(!(o instanceof c.ApiInfo))continue;const s=o.getLastJsDocInfo();y.diffJsDoc(a,s)&&(p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(o,i,r,n),e.delete(o.getDefinedText().replace(/\r|\n|\s+|,|;/g,"")),t.delete(i.getDefinedText().replace(/\r|\n|\s+|,|;/g,"")))}}for(const e of t.values())r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.NEW_SAME_NAME_FUNCTION,void 0,e.getDefinedText())));for(const t of e.values())r.push(p.DiffProcessorHelper.wrapDiffInfo(t,void 0,new l.DiffTypeInfo(l.ApiStatusCode.DELETE,l.ApiDiffType.REDUCE_SAME_NAME_FUNCTION,t.getDefinedText(),void 0)))}static diffJsDoc(e,r){const n=new Set,i=v.diffParamTagInfo(r,e)&&v.diffReturnsTagInfo(r,e);return e?.getTags()?.forEach((i=>{const a=t.diffJsdocMethod.get(i.tag);a&&n.add(a(r,e))})),!(1!==n.size||!n.has(!0))||!!(n.size>1&&i)}static judgeIsAllDeprecated(e){let t=!0;return e.forEach((e=>{const r=e.getLastJsDocInfo()?.getDeprecatedVersion();"-1"!==r&&r||(t=!1)})),t}static handleDeprecatedVersion(e){let t=!0;e.forEach((e=>{const r=e.getLastJsDocInfo()?.getDeprecatedVersion();"-1"!==r&&r||(t=!1)})),t||e.forEach((e=>{e.getLastJsDocInfo()?.setDeprecatedVersion("-1")}))}static joinApiText(e){const t=[];for(const r of e.keys())t.push(r);return t.join(" #&# ")}static setmethodInfoMap(e){const t=new Map;return e.forEach((e=>{t.set(e.getDefinedText().replace(/\r|\n|\s+|,|;/g,""),e)})),t}static getDiffSet(e,t){const r=new Map,n=new Map;y.setApiInfoMap(r,e),y.setApiInfoMap(n,t);const i=new Map;r.forEach(((e,t)=>{n.has(t)||i.set(t,e)}));const a=new Map;return n.forEach(((e,t)=>{r.has(t)||a.set(t,e)})),[i,a]}static setApiInfoMap(e,t){t.forEach((t=>{const r=`${t.getDefinedText()}#${t.getJsDocText()}#${JSON.stringify(t.getDecorators())}`;e.set(r,t)}))}static getApiLocations(e,t){const r=new Map;for(const n of e.keys()){const i=0,a=e.get(n);y.processFileApiMap(a,r,i,t)}return r}static processFileApiMap(e,t,r,n){for(const i of e.keys()){if(i===o.StringConstant.SELF)continue;e.get(i).get(o.StringConstant.SELF).forEach((e=>{y.processApiInfo(e,t,r,n),r++}))}}static deleteUselessJsdoc(e){const t=e.getJsDocText().split("*/"),r=t;return r[1]&&_.StringUtils.hasSubstring(r[1],h.CommentHelper.fileTag)&&t.splice(1,1),r[0]&&_.StringUtils.hasSubstring(r[0],h.CommentHelper.fileTag)&&t.splice(0,1),r[0]&&_.StringUtils.hasSubstring(r[0],h.CommentHelper.licenseKeyword)&&t.splice(0,1),t.join("*/")}static processApiInfo(e,t,r,n){const i=e.getNode();if(n){const t=i?.getFullText().replace(i.getText(),"");t&&e.setJsDocText(t)}if(0===r&&e.getParentApiType()===c.ApiType.SOURCE_FILE){const t=y.deleteUselessJsdoc(e);e.setJsDocText(t)}e.setSyscap(y.getSyscapField(e)),e.setParentApi(void 0),e.removeNode();let a=s.EnumUtils.enum2arr([c.ApiType.EXPORT,c.ApiType.EXPORT_DEFAULT]).includes(e.getApiType());if(!d.apiStatisticsType.has(e.getApiType())&&!a)return;if("constructor"===e.getApiName())return;const o=e,l=o.getHierarchicalRelations();if(t.set(l.toString(),l),!c.containerApiTypes.has(o.getApiType()))return;o.getChildApis().forEach((e=>{y.processApiInfo(e,t,1,n)}))}static getSyscapField(e){if(e.getApiType()===c.ApiType.SOURCE_FILE){const t=e.getNode()?.getFullText();let r="";return/\@[S|s][Y|y][S|s][C|c][A|a][P|p]\s*((\w|\.|\/|\{|\@|\}|\s)+)/g.test(t)&&t.replace(/\@[S|s][Y|y][S|s][C|c][A|a][P|p]\s*((\w|\.|\/|\{|\@|\}|\s)+)/g,((e,t)=>(r=e.replace(/\@[S|s][Y|y][S|s][C|c][A|a][P|p]/g,"").trim(),r))),f.FunctionUtils.handleSyscap(r)}if(g.notJsDocApiTypes.has(e.getApiType()))return"";const t=e,r=t.getLastJsDocInfo();if(!r)return y.searchSyscapFieldInParent(t);let n=r?.getSyscap();return n?n?f.FunctionUtils.handleSyscap(n):"":y.searchSyscapFieldInParent(t)}static searchSyscapFieldInParent(e){let t=e,r="";const n=t.getNode();for(;n&&t&&!a.default.isSourceFile(n);){if(r=t.getSyscap(),r)return r;t=t.getParentApi()}return r}}t.DiffHelper=y;class v{static diffSyscapTagInfo(e,t){return e?.getSyscap()===t?.getSyscap()}static diffSinceTagInfo(e,t){return e?.getSince()===t?.getSince()}static diffFormTagInfo(e,t){return e?.getIsForm()===t?.getIsForm()}static diffCrossPlatFromTagInfo(e,t){return e?.getIsCrossPlatForm()===t?.getIsCrossPlatForm()}static diffSystemApiTagInfo(e,t){return e?.getIsSystemApi()===t?.getIsSystemApi()}static diffModelTagInfo(e,t){return e?.getModelLimitation()===t?.getModelLimitation()}static diffDeprecatedTagInfo(e,t){return e?.getDeprecatedVersion()===t?.getDeprecatedVersion()}static diffUseinsteadTagInfo(e,t){return e?.getUseinstead()===t?.getUseinstead()}static diffPermissionTagInfo(e,t){return e?.getPermission()===t?.getPermission()}static diffThrowsTagInfo(e,t){return e?.getErrorCode().sort().join()===t?.getErrorCode().sort().join()}static diffAtomicServiceTagInfo(e,t){return e?.getIsAtomicService()===t?.getIsAtomicService()}static diffParamTagInfo(e,t){const r=[],n=[];return e?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.PARAM&&r.push(`${e.name}#${e.type}`)})),t?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.PARAM&&n.push(`${e.name}#${e.type}`)})),r.join()===n.join()}static diffReturnsTagInfo(e,t){let r="";return e?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.RETURNS&&(r=e.type)})),t?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.PARAM&&(r=e.type)})),r==r}}t.DiffTagInfoHelper=v,t.diffJsdocMethod=new Map([[m.Comment.JsDocTag.SYSCAP,v.diffSyscapTagInfo],[m.Comment.JsDocTag.SINCE,v.diffSinceTagInfo],[m.Comment.JsDocTag.FORM,v.diffFormTagInfo],[m.Comment.JsDocTag.CROSS_PLAT_FORM,v.diffCrossPlatFromTagInfo],[m.Comment.JsDocTag.SYSTEM_API,v.diffSystemApiTagInfo],[m.Comment.JsDocTag.STAGE_MODEL_ONLY,v.diffModelTagInfo],[m.Comment.JsDocTag.FA_MODEL_ONLY,v.diffModelTagInfo],[m.Comment.JsDocTag.DEPRECATED,v.diffDeprecatedTagInfo],[m.Comment.JsDocTag.USEINSTEAD,v.diffUseinsteadTagInfo],[m.Comment.JsDocTag.PERMISSION,v.diffPermissionTagInfo],[m.Comment.JsDocTag.THROWS,v.diffThrowsTagInfo],[m.Comment.JsDocTag.ATOMIC_SERVICE,v.diffAtomicServiceTagInfo],[m.Comment.JsDocTag.PARAM,v.diffParamTagInfo],[m.Comment.JsDocTag.RETURNS,v.diffReturnsTagInfo]])},87191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyscapProcessorHelper=void 0;const n=r(80879);class i{static matchSubsystem(e){const t=n.FunctionUtils.readSubsystemFile().subsystemMap,r=i.getSyscapField(e);return r?t.get(r):"NA"}static getSyscapField(e){const t=e.getNewSyscapField();if(t)return t;const r=e.getOldSyscapField();return r||""}static getSingleKitInfo(e){return""!==e.getNewKitInfo()?e.getNewKitInfo():e.getOldKitInfo()}}t.SyscapProcessorHelper=i},56405:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsDocProcessorHelper=t.CommentHelper=void 0;const i=n(r(58843)),a=r(37583),o=r(4e3),s=r(87960),c=r(44791);class l{static getNodeLeadingComments(e,t){try{const r=i.default.getLeadingCommentRanges(t.getFullText(),e.getFullStart());if(r&&r.length){const e=[];return r.forEach((r=>{const n=t.getFullText().slice(r.pos,r.end),i=l.parseComment(n,r.kind,!0);i.pos=r.pos,i.end=r.end,e.push(i)})),e}return[]}catch(t){return o.LogUtil.d("CommentHelper",`node(kind=${e.kind}) is created in memory.`),[]}}static parseComment(e,t,n){const{parse:a}=r(67634),o={text:e,isMultiLine:t===i.default.SyntaxKind.MultiLineCommentTrivia,isLeading:n,description:"",commentTags:[],parsedComment:void 0,pos:-1,end:-1,ignore:!1,isApiComment:!1,isInstruct:!1,isFileJsDoc:!1};let c=e,l=a(c);if(0===l.length){if(s.StringUtils.hasSubstring(c,this.referenceRegexp)||t===i.default.SyntaxKind.SingleLineCommentTrivia){o.isMultiLine=!1;const e=2;o.text=c.substring(e,c.length)}return o}o.parsedComment=l[0],o.description=l[0].description;for(let e=0;e<l[0].tags.length;e++){const t=l[0].tags[e];o.commentTags.push({tag:t.tag,name:t.name,type:t.type,optional:t.optional,description:t.description,source:t.source[0].source,lineNumber:t.source[0].number,tokenSource:t.source,defaultValue:t.default?t.default:void 0})}return s.StringUtils.hasSubstring(c,this.fileTag)&&(o.isFileJsDoc=!0),o.isApiComment=!0,o}}t.CommentHelper=l,l.licenseKeyword="Copyright",l.referenceRegexp=/\/\/\/\s*<reference\s*path/g,l.referenceCommentRegexp=/\/\s*<reference\s*path/g,l.mutiCommentDelimiter="/**",l.fileTag=/\@file|\@kit/g;class u{static setSyscap(e,t){e.setSyscap(t.name)}static setSince(e,t){e.setSince(t.name)}static setIsForm(e){e.setIsForm(!0)}static setIsCrossPlatForm(e){e.setIsCrossPlatForm(!0)}static setIsSystemApi(e){e.setIsSystemApi(!0)}static setIsAtomicService(e){e.setIsAtomicService(!0)}static setDeprecatedVersion(e,t){e.setDeprecatedVersion(t.description)}static setUseinstead(e,t){e.setUseinstead(t.name)}static setPermission(e,t){const r=t.description,n=t.name,i=r?`${n} ${r}`:`${n}`;e.setPermission(i)}static addErrorCode(e,t){t&&!isNaN(Number(t.name))&&e.addErrorCode(Number(t.name))}static setTypeInfo(e,t){e.setTypeInfo(t.type)}static setIsConstant(e){e.setIsConstant(!0)}static setModelLimitation(e,t){e.setModelLimitation(t.tag)}static setKitContent(e,t){e.setKit(t.source.replace(/\* @kit\s+|\r|\n/g,"").trim())}static setIsFile(e,t){e.setFileTagContent(t.source.replace(/\* @file\s+|\r|\n/g,"").trim())}static processJsDoc(e,t,r){const n=new a.Comment.JsDocInfo;n.setDescription(e.description),n.setKit(t),n.setFileTagContent(r);for(let t=0;t<e.commentTags.length;t++){const r=e.commentTags[t];n.addTag(r);const i=d.get(r.tag.toLowerCase());i&&i(n,r)}return n}static processJsDocInfos(e,t,r,n){const i=e.getSourceFile(),o=l.getNodeLeadingComments(e,i).filter((e=>e.isApiComment&&!e.isFileJsDoc&&t!==c.ApiType.SOURCE_FILE||e.isApiComment&&e.isFileJsDoc&&t===c.ApiType.SOURCE_FILE)),s=[];if(0===o.length&&""!==r){const e=new a.Comment.JsDocInfo;e.setKit(r),e.setFileTagContent(n),s.push(e)}for(let e=0;e<o.length;e++){const t=o[e],i=u.processJsDoc(t,r,n);s.push(i)}return s}}t.JsDocProcessorHelper=u;const d=new Map([[a.Comment.JsDocTag.SYSCAP,u.setSyscap],[a.Comment.JsDocTag.SINCE,u.setSince],[a.Comment.JsDocTag.FORM,u.setIsForm],[a.Comment.JsDocTag.CROSS_PLAT_FORM,u.setIsCrossPlatForm],[a.Comment.JsDocTag.SYSTEM_API,u.setIsSystemApi],[a.Comment.JsDocTag.STAGE_MODEL_ONLY,u.setModelLimitation],[a.Comment.JsDocTag.FA_MODEL_ONLY,u.setModelLimitation],[a.Comment.JsDocTag.DEPRECATED,u.setDeprecatedVersion],[a.Comment.JsDocTag.USEINSTEAD,u.setUseinstead],[a.Comment.JsDocTag.TYPE,u.setTypeInfo],[a.Comment.JsDocTag.PERMISSION,u.setPermission],[a.Comment.JsDocTag.THROWS,u.addErrorCode],[a.Comment.JsDocTag.CONSTANT,u.setIsConstant],[a.Comment.JsDocTag.ATOMIC_SERVICE,u.setIsAtomicService],[a.Comment.JsDocTag.KIT,u.setKitContent],[a.Comment.JsDocTag.FILE,u.setIsFile]])},17858:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.typeMap=t.modifierProcessorMap=t.nodeProcessorMap=t.ModifierHelper=t.NodeProcessorHelper=t.parserParam=void 0;const i=n(r(58843)),a=n(r(2543)),o=r(44791),s=r(87960),c=r(8136);t.parserParam=new o.ParserParam;class l{static processReference(e,t,r){const n=[];if(e.referencedFiles.forEach((t=>{const i=new o.ReferenceInfo(o.ApiType.REFERENCE_FILE,e,r);i.setApiName(o.ApiType.REFERENCE_FILE),i.setPathName(t.fileName),n.push(i)})),0===n.length)return;const i=new Map;i.set(c.StringConstant.SELF,n),t.set(c.StringConstant.REFERENCE,i)}static processNode(e,r,n){const i=t.nodeProcessorMap.get(e.kind);if(!i)return;const a=i(e,n),s=l.setApiInfo(a,r,e),c=l.getChildNodes(e);c&&c.forEach((e=>{a.getApiType()===o.ApiType.STRUCT&&""===e.getFullText()||l.processNode(e,s,a)}))}static setApiInfo(e,t,r){if(e.getApiType()!==o.ApiType.METHOD)return l.setSingleApiInfo(e,t);let n=[];n=l.processEventMethod(e,r),l.processAsyncMethod(n);let i=new Map;return n.forEach((e=>{i=l.setSingleApiInfo(e,t)})),i}static setSingleApiInfo(e,t){const r=e.getApiName(),n=e.getParentApi();if(n&&o.containerApiTypes.has(n.apiType)){n.addChildApi(e)}if(t.has(r)){const n=t.get(r);return n.get(c.StringConstant.SELF).push(e),n}const i=[];i.push(e);const a=new Map;return a.set(c.StringConstant.SELF,i),t.set(r,a),a}static processEventMethod(e,t){const r=[],n=l.getOnOrOffMethodFirstParamType(e,t);if(void 0===n)return r.push(e),r;const o=n.literal;if(n.kind===i.default.SyntaxKind.LiteralType&&i.default.isStringLiteral(o)){const t=o.getText();e.setApiName(`${e.getApiName()}_${t.substring(1,t.length-1)}`),e.setIsJoinType(!0)}else if(n.kind===i.default.SyntaxKind.UnionType){n.types.forEach((t=>{if(i.default.isLiteralTypeNode(t)&&i.default.isStringLiteral(t.literal)){const n=t.literal.getText(),i=a.default.cloneDeep(e);i.setParentApi(e.getParentApi()),i.setApiName(`${e.getApiName()}_${n.substring(1,n.length-1)}`),e.setIsJoinType(!0),r.push(i)}}))}else n.kind===i.default.SyntaxKind.StringKeyword?(e.setApiName(`${e.getApiName()}_string`),e.setIsJoinType(!0)):n.kind===i.default.SyntaxKind.BooleanKeyword?(e.setApiName(`${e.getApiName()}_boolean`),e.setIsJoinType(!0)):(e.setApiName(`${e.getApiName()}_${n.getText()}`),e.setIsJoinType(!0));return 0===r.length&&r.push(e),r}static getOnOrOffMethodFirstParamType(e,t){if(!new Set(c.EventConstant.eventNameList).has(e.getApiName()))return;if(e.setIsJoinType(!0),0===t.parameters.length)return;return t.parameters[0].type}static processAsyncMethod(e){e.forEach((e=>{const t=e,r=t.getReturnValue();if(1===r.length&&r[0].startsWith(c.StringConstant.PROMISE_METHOD_KEY))return void t.setSync(c.StringConstant.PROMISE_METHOD_KEY_CHANGE);const n=t.getParams();for(let e=n.length-1;e>=0;e--){const r=n[e].getType();if(1===r.length&&r[0].startsWith(c.StringConstant.ASYNC_CALLBACK_METHOD_KEY))return void t.setSync(c.StringConstant.ASYNC_CALLBACK_METHOD_KEY_CHANGE)}}))}static getChildNodes(e){return i.default.isInterfaceDeclaration(e)||i.default.isClassDeclaration(e)||i.default.isEnumDeclaration(e)?e.members:i.default.isStructDeclaration(e)?i.default.visitNodes(e.members,(e=>{if(!i.default.isConstructorDeclaration(e))return e})):i.default.isModuleDeclaration(e)&&e.body&&i.default.isModuleBlock(e.body)?e.body.statements:void 0}static processExportAssignment(e,t){const r=new o.ExportDefaultInfo(o.ApiType.EXPORT_DEFAULT,e,t),n=e;return r.setApiName(c.StringConstant.EXPORT_DEFAULT),r.setDefinedText(n.getText()),u.processModifiers(n.modifiers,r),r}static processExportDeclaration(e,t){const r=new o.ExportDeclareInfo(o.ApiType.EXPORT,e,t),n=e,a=n.exportClause;if(a){if(i.default.isNamespaceExport(a))r.setApiName(c.StringConstant.EXPORT+a.name.getText());else if(i.default.isNamedExports(a)){const e=[];a.elements.forEach((t=>{const n=t.propertyName?t.propertyName.getText():"",i=t.name.getText();e.push(i),r.addExportValues(i,n)})),r.setApiName(c.StringConstant.EXPORT+e.join("_"))}}else r.setApiName(c.StringConstant.EXPORT+(n.moduleSpecifier?n.moduleSpecifier.getText():""));return r.setApiName(c.StringConstant.EXPORT),r.setDefinedText(n.getText()),u.processModifiers(n.modifiers,r),r}static processImportEqualsDeclaration(e,t){return new o.ImportInfo(o.ApiType.EXPORT,e,t)}static processImportInfo(e,t){const r=new o.ImportInfo(o.ApiType.IMPORT,e,t),n=e;if(r.setApiName(n.moduleSpecifier.getText()),r.setImportPath(n.moduleSpecifier.getText()),r.setDefinedText(n.getText()),u.processModifiers(n.modifiers,r),void 0===n.importClause)return r;const a=n.importClause;if(a.namedBindings&&i.default.isNamedImports(a.namedBindings))a.namedBindings.elements.forEach((e=>{const t=e.propertyName?e.propertyName.getText():"",n=e.name.getText();r.addImportValue(n,t)}));else{const e=a.name?a.name.escapedText.toString():"";r.addImportValue(e,e)}return r}static processInterface(e,t){const r=e,n=new o.InterfaceInfo(o.ApiType.INTERFACE,e,t);return n.setApiName(r.name.getText()),r.typeParameters?.forEach((e=>{n.setGenericInfo(l.processGenericity(e))})),u.processModifiers(r.modifiers,n),void 0===r.heritageClauses||r.heritageClauses.forEach((e=>{e.token===i.default.SyntaxKind.ExtendsKeyword?e.types.forEach((e=>{const t=new o.ParentClass;t.setImplementClass(""),t.setExtendClass(e.getText()),n.setParentClasses(t)})):e.token===i.default.SyntaxKind.ImplementsKeyword&&e.types.forEach((e=>{const t=new o.ParentClass;t.setImplementClass(e.getText()),t.setExtendClass(""),n.setParentClasses(t)}))})),n}static processGenericity(e){const t=new o.GenericInfo;return t.setIsGenericity(!0),t.setGenericContent(e.getText()),t}static processClass(e,t){const r=e,n=new o.ClassInfo(o.ApiType.CLASS,e,t),a=r.name?r.name.getText():"";return n.setApiName(a),r.typeParameters?.forEach((e=>{n.setGenericInfo(l.processGenericity(e))})),u.processModifiers(r.modifiers,n),void 0===r.heritageClauses||r.heritageClauses.forEach((e=>{e.token===i.default.SyntaxKind.ExtendsKeyword?e.types.forEach((e=>{const t=new o.ParentClass;t.setExtendClass(e.getText()),t.setImplementClass(""),n.setParentClasses(t)})):e.token===i.default.SyntaxKind.ImplementsKeyword&&e.types.forEach((e=>{const t=new o.ParentClass;t.setImplementClass(e.getText()),t.setExtendClass(""),n.setParentClasses(t)}))})),n}static processBaseModule(e,t){const r=e;return i.default.isIdentifier(r.name)?l.processNamespace(e,t):l.processModule(e,t)}static processModule(e,t){const r=e,n=new o.ModuleInfo(o.ApiType.MODULE,e,t);return n.setApiName(r.name.getText()),u.processModifiers(r.modifiers,n),n}static processNamespace(e,t){const r=e,n=new o.NamespaceInfo(o.ApiType.NAMESPACE,e,t);return n.setApiName(r.name.getText()),u.processModifiers(r.modifiers,n),n}static processEnum(e,t){const r=e,n=new o.EnumInfo(o.ApiType.ENUM,e,t);return n.setApiName(r.name.getText()),u.processModifiers(r.modifiers,n),n}static processEnumValue(e,t){const r=e,n=new o.EnumValueInfo(o.ApiType.ENUM_VALUE,e,t);n.setApiName(r.name.getText()),n.setDefinedText(r.getText());const i=t;if(n.setValue(l.getCurrentEnumValue(i)),r.initializer){const e=r.initializer.getText().replace(l.regQuotation,"$1");n.setValue(e)}return n}static getCurrentEnumValue(e){const t=e.getChildApis().length;if(0===t)return String(0);const r=e.getChildApis()[t-1].getValue();return isNaN(Number(r))?"":`${Number(r)+1}`}static processPropertySigAndDec(e,t){const r=e,n=new o.PropertyInfo(o.ApiType.PROPERTY,e,t),i=r.type?r.type:r.initializer;return n.setApiName(r.name?.getText()),n.setDefinedText(r.getText()),u.processModifiers(r.modifiers,n),n.setIsRequired(!r.questionToken),n.addType(l.processDataType(i)),l.processFunctionTypeNode(r.type,n,new o.ParamInfo(o.ApiType.PARAM),!1),n.setTypeKind(i?.kind),n}static processStruct(e,t){const r=e,n=new o.StructInfo(o.ApiType.STRUCT,e,t),i=r.name?r.name.getText():"";return n.setApiName(i),n.setDefinedText(n.getApiName()),u.processModifiers(r.modifiers,n),n}static processMethod(e,t){const r=e,n=new o.MethodInfo(o.ApiType.METHOD,e,t);n.setDefinedText(r.getText());let a=r.name?r.name.getText():"";(i.default.isConstructorDeclaration(r)||i.default.isConstructSignatureDeclaration(r)||i.default.isCallSignatureDeclaration(r))&&(a=c.StringConstant.CONSTRUCTOR_API_NAME),n.setApiName(a),n.setIsRequired(!r.questionToken),r.typeParameters?.forEach((e=>{n.setGenericInfo(l.processGenericity(e))}));const s=r.getText().replace(/export\s+|declare\s+|function\s+|\r\n|\;/g,"");if(n.setCallForm(s),r.type&&i.default.SyntaxKind.VoidKeyword!==r.type.kind){const e=l.processDataType(r.type);n.setReturnValue(e),n.setReturnValueType(r.type.kind),l.processFunctionTypeNode(r.type,n,new o.ParamInfo(o.ApiType.PARAM),!1)}for(let e=0;e<r.parameters.length;e++){const t=r.parameters[e],i=l.processParam(t,n);n.addParam(i)}return i.default.isCallSignatureDeclaration(r)||i.default.isConstructSignatureDeclaration(r)||u.processModifiers(r.modifiers,n),n}static processParam(e,r){const n=new o.ParamInfo(o.ApiType.PARAM);if(n.setApiName(e.name.getText()),n.setIsRequired(!e.questionToken),n.setDefinedText(e.getText()),n.setParamType(e.type?.kind),void 0===e.type)return n;let a;if(l.processFunctionTypeNode(e.type,r,n,!0),i.default.isLiteralTypeNode(e.type))a=t.typeMap.get(e.type.literal.kind);else if(i.default.isFunctionTypeNode(e.type)){const t=l.processMethod(e.type,r);n.setMethodApiInfo(t)}return n.setType(l.processDataType(e.type)),n}static getFilePathFromNode(e){return i.default.isSourceFile(e)?e.fileName:l.getFilePathFromNode(e.parent)}static setSymbolOfTypeReferenceMap(e,t,r){l.symbolOfTypeReferenceMap.has(e)||l.symbolOfTypeReferenceMap.set(e,new Map);const n=l.symbolOfTypeReferenceMap.get(e);n&&(n.has(t.getFullText().trim())||n.set(t.getFullText().trim(),r))}static getSymbolOfTypeReferenceMap(e,t){const r=l.symbolOfTypeReferenceMap.get(e);if(!r)return;const n=r.get(t.getFullText().trim());return n||void 0}static processFunctionTypeNode(e,t,r,n=!0){e&&(i.default.isTypeLiteralNode(e)?l.processFunctionTypeObject(e,t,r,n):i.default.isUnionTypeNode(e)?e.types.forEach((e=>{l.processFunctionTypeNode(e,t,r,n)})):i.default.isFunctionTypeNode(e),i.default.isTypeReferenceNode(e)&&l.processFunctionTypeReference(e,t,r,n))}static processFunctionTypeReference(e,r,n,a=!0){const o=e.typeArguments;o?.forEach((e=>{l.processFunctionTypeNode(e,r,n,a)}));try{const o=t.parserParam.getTsProgram(),s=o.getTypeChecker().getSymbolAtLocation(e.typeName);if(!s)return;const c=s.declarations;if(!c)return;const u=c[0];r.getKitInfoFromParent(r);if(!i.default.isTypeAliasDeclaration(u))return;const d=l.processTypeAlias(u,r);a?n.addTypeLocations(d):r.addTypeLocations(d)}catch(e){}}static processFunctionTypeObject(e,t,r,n=!0){t.getKitInfoFromParent(t);e.members.forEach((e=>{const i=l.processPropertySigAndDec(e,t);n?r.addObjLocations(i):t.addObjLocations(i)}))}static processDataType(e){const t=[];return e?i.default.isUnionTypeNode(e)?(e.types.forEach((e=>{t.push(e.getText())})),t):(t.push(e.getText()),t):t}static TypeAliasDeclaration(e,t){const r=e;return r.type.kind===i.default.SyntaxKind.TypeLiteral?l.processTypeInterface(r,t):l.processTypeAlias(r,t)}static processTypeInterface(e,t){const r=new o.InterfaceInfo(o.ApiType.INTERFACE,e,t);return r.setApiName(e.name.getText()),r.setDefinedText(r.getApiName()),u.processModifiers(e.modifiers,r),r}static processTypeAlias(e,t){const r=new Map([[i.default.SyntaxKind.UnionType,o.TypeAliasType.UNION_TYPE],[i.default.SyntaxKind.TypeLiteral,o.TypeAliasType.OBJECT_TYPE],[i.default.SyntaxKind.TupleType,o.TypeAliasType.TUPLE_TYPE],[i.default.SyntaxKind.TypeReference,o.TypeAliasType.REFERENCE_TYPE]]),n=new o.TypeAliasInfo(o.ApiType.TYPE_ALIAS,e,t);n.setApiName(e.name.getText());const a=r.get(e.type.kind);a&&n.setTypeName(a);let s=e.type;if(i.default.isFunctionTypeNode(s)){s.parameters.forEach((r=>{const i=l.processParam(r,new o.MethodInfo(o.ApiType.METHOD,e,t));n.setParamInfos(i)})),n.setReturnType(s.type.getText()),n.setTypeIsFunction(!0)}else i.default.isTypeLiteralNode(s)&&(s.members.forEach((e=>{const t=l.processPropertySigAndDec(e,n);n.setTypeLiteralApiInfos(t)})),n.setTypeIsObject(!0));return n.setDefinedText(e.getText()),u.processModifiers(e.modifiers,n),n.addType(l.processDataType(e.type)),n}static processVariableStat(e,r){const n=e,a=n.getText(),o=n.declarationList.declarations[0];let s="",c="";if(o.type)if(i.default.isLiteralTypeNode(o.type)){const e=t.typeMap.get(o.type.literal.kind);s=e||"",c=o.type.literal.getText().replace(l.regQuotation,"$1")}else s=o.type.getText();if(/declare\s+const/.test(n.getText())&&/[a-zA-Z]+(Attribute|Interface)/.test(s))return l.processDeclareConstant(n,a,s,r);if(o.initializer){const e=o.initializer.getText();return l.processConstant(n,a,e,r)}const u=o.type;if(u&&i.default.isLiteralTypeNode(u)){const e=u.getText();return l.processConstant(n,a,e,r)}return l.processVaribleProperty(n,a,r)}static processConstant(e,t,r,n){const i=e.declarationList.declarations[0],a=new o.ConstantInfo(o.ApiType.CONSTANT,e,n);return a.setDefinedText(t),a.setApiName(i.name.getText()),a.setValue(r),a}static processDeclareConstant(e,t,r,n){const i=e.declarationList.declarations[0],a=new o.ConstantInfo(o.ApiType.DECLARE_CONST,e,n);return a.setDefinedText(t),a.setApiName(i.name.getText()),a.setValue(r),a}static processVaribleProperty(e,t,r){const n=e.declarationList.declarations[0],i=new o.PropertyInfo(o.ApiType.PROPERTY,e,r);return i.setDefinedText(t),i.setApiName(n.name.getText()),i.addType(l.processDataType(n.type)),i.setIsRequired(!0),i.setTypeKind(n?.type?.kind),s.StringUtils.hasSubstring(t,c.StringConstant.CONST_KEY_WORD)&&i.setIsReadOnly(!0),i}}t.NodeProcessorHelper=l,l.regQuotation=/^[\'|\"](.*)[\'|\"]$/,l.symbolOfTypeReferenceMap=new Map;class u{static setIsStatic(e){e.setIsStatic(!0)}static setIsReadonly(e){const t=e;t.setIsReadOnly&&t.setIsReadOnly(!0)}static setIsExport(e){e.setIsExport(!0)}static processModifiers(e,r){let n="";e&&e.forEach((e=>{o.containerApiTypes.has(r.apiType)&&!i.default.isDecorator(e)&&(n+=` ${e.getText()}`);const a=t.modifierProcessorMap.get(e.kind);a&&a(r)})),o.containerApiTypes.has(r.apiType)&&(n+=` ${r.getApiType().toLowerCase()} ${r.getApiName()}`,r.setDefinedText(n.trim()))}}t.ModifierHelper=u,t.nodeProcessorMap=new Map([[i.default.SyntaxKind.ExportAssignment,l.processExportAssignment],[i.default.SyntaxKind.ExportDeclaration,l.processExportDeclaration],[i.default.SyntaxKind.ImportDeclaration,l.processImportInfo],[i.default.SyntaxKind.VariableStatement,l.processVariableStat],[i.default.SyntaxKind.MethodDeclaration,l.processMethod],[i.default.SyntaxKind.MethodSignature,l.processMethod],[i.default.SyntaxKind.FunctionDeclaration,l.processMethod],[i.default.SyntaxKind.Constructor,l.processMethod],[i.default.SyntaxKind.ConstructSignature,l.processMethod],[i.default.SyntaxKind.CallSignature,l.processMethod],[i.default.SyntaxKind.PropertyDeclaration,l.processPropertySigAndDec],[i.default.SyntaxKind.PropertySignature,l.processPropertySigAndDec],[i.default.SyntaxKind.EnumMember,l.processEnumValue],[i.default.SyntaxKind.EnumDeclaration,l.processEnum],[i.default.SyntaxKind.TypeAliasDeclaration,l.processTypeAlias],[i.default.SyntaxKind.ClassDeclaration,l.processClass],[i.default.SyntaxKind.InterfaceDeclaration,l.processInterface],[i.default.SyntaxKind.ModuleDeclaration,l.processBaseModule],[i.default.SyntaxKind.StructDeclaration,l.processStruct]]),t.modifierProcessorMap=new Map([[i.default.SyntaxKind.ConstKeyword,u.setIsReadonly],[i.default.SyntaxKind.ReadonlyKeyword,u.setIsReadonly],[i.default.SyntaxKind.StaticKeyword,u.setIsStatic],[i.default.SyntaxKind.ExportKeyword,u.setIsExport]]),t.typeMap=new Map([[i.default.SyntaxKind.StringLiteral,"string"],[i.default.SyntaxKind.NumericLiteral,"number"]])},3359:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resultsProcessMethod=t.ResultsProcessHelper=void 0;const s=o(r(58843)),c=r(37583),l=r(8136),u=r(44791),d=a(r(68020));class p{static getApiInfosInFileMap(e,t){if(t===l.StringConstant.SELF)return[];return e.get(t).get(l.StringConstant.SELF)}static processFileApiMap(e){const t=[];for(const r of e.keys()){p.getApiInfosInFileMap(e,r).forEach((e=>{p.processApiInfo(e),t.push(e)}))}return t}static processApiInfo(e){if(p.cleanApiInfo(e),!u.containerApiTypes.has(e.getApiType()))return;e.getChildApis().forEach((e=>{p.processApiInfo(e)}))}static cleanApiInfo(e){e&&(e.setParentApi(void 0),e.removeNode(),(e instanceof u.MethodInfo||e instanceof u.PropertyInfo)&&(p.cleanChildrenApiInfo(e.getObjLocations()),p.cleanChildrenApiInfo(e.getTypeLocations()),e instanceof u.MethodInfo&&e.getParams().forEach((e=>{p.cleanChildrenApiInfo(e.getObjLocations()),p.cleanChildrenApiInfo(e.getTypeLocations()),p.cleanApiInfo(e.getMethodApiInfo())}))),e instanceof u.TypeAliasInfo&&(p.cleanChildrenApiInfo(e.getTypeLiteralApiInfos()),e.getParamInfos().forEach((e=>{p.cleanChildrenApiInfo(e.getObjLocations()),p.cleanChildrenApiInfo(e.getTypeLocations()),p.cleanApiInfo(e.getMethodApiInfo())}))),p.processJsDocInfos(e))}static cleanChildrenApiInfo(e){e&&e.forEach((e=>{p.cleanApiInfo(e)}))}static processJsDocInfos(e){if(!(e instanceof u.ApiInfo))return;e.getJsDocInfos().forEach((e=>{e.removeTags()}))}static processFileApiMapForGetBasicApi(e){let t=[];for(const r of e.keys()){p.getApiInfosInFileMap(e,r).forEach((e=>{t=t.concat(p.processApiInfoForGetBasicApi(e))}))}return t}static processApiInfoForGetBasicApi(e){let t=[];if(t=t.concat(e),!u.containerApiTypes.has(e.getApiType()))return t;return e.getChildApis().forEach((e=>{t=t.concat(p.processApiInfoForGetBasicApi(e))})),t}static processFileApiMapForEachSince(e){const t=[];for(const r of e.keys()){p.getApiInfosInFileMap(e,r).forEach((e=>{const r=p.processApiInfoForEachSince(e);0!==r.length&&t.push(...r)}))}return t}static processApiInfoForEachSince(e){const t=p.getNodeInfo(e);if(!u.containerApiTypes.has(e.getApiType()))return t;return e.getChildApis().forEach((e=>{const r=p.processApiInfoForEachSince(e);p.mergeResultApis(t,r)})),t}static mergeResultApis(e,t){e.forEach((e=>{const r=e,n=p.getResultApisVersion(t,Number(r.getSince()));r.addChildApi(n)}))}static getResultApisVersion(e,t){return e.filter((e=>{const r=Number(e.getSince());return-1===r||r>=t}))}static getNodeInfo(e){let r=e.getApiType();const n=t.resultsProcessMethod.get(r);if(!n)return[];return n(e)}static processProperty(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.PropertyInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setType(r.getType().join(" | ")),n.setName(e.getApiName()),n.setIsRequired(r.getIsRequired()),n.setIsReadOnly(r.getIsReadOnly()),n.setIsStatic(r.getIsStatic()),t.push(n)}return n.forEach((n=>{const i=new d.PropertyInfo(e.getApiType(),n),a=n.getTypeInfo();i.setType(a?a.replace(/^[\?]*[\(](.*)[\)]$/,"$1"):r.getType().join(" | ")),i.setName(e.getApiName()),i.setIsRequired(r.getIsRequired()),i.setIsReadOnly(r.getIsReadOnly()),i.setIsStatic(r.getIsStatic()),t.push(i)})),t}static processClass(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.ClassInterfaceInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setParentClasses(r.getParentClasses()),t.push(n)}return n.forEach((n=>{const i=new d.ClassInterfaceInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setParentClasses(r.getParentClasses()),t.push(i)})),t}static processInterface(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.ClassInterfaceInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setParentClasses(r.getParentClasses()),t.push(n)}return n.forEach((n=>{const i=new d.ClassInterfaceInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setParentClasses(r.getParentClasses()),t.push(i)})),t}static processNamespace(e){const t=[],r=e.getJsDocInfos();if(0===r.length){const r=new d.NamespaceEnumInfo(e.getApiType(),new c.Comment.JsDocInfo);r.setName(e.getApiName()),t.push(r)}return r.forEach((r=>{const n=new d.NamespaceEnumInfo(e.getApiType(),r);n.setName(e.getApiName()),t.push(n)})),t}static processMethod(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.MethodInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setCallForm(r.getCallForm()),n.setReturnValue(r.getReturnValue().join(" | ")),r.getParams().forEach((e=>{const t=new d.ParamInfo(e.getApiType(),new c.Comment.JsDocInfo);t.setName(e.getApiName()),t.setType(e.getType().join(" | ")),t.setIsRequired(e.getIsRequired()),n.addParam(t)})),n.setIsStatic(r.getIsStatic()),t.push(n)}return n.forEach((n=>{const i=new d.MethodInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setCallForm(r.getCallForm()),i.setReturnValue(r.getReturnValue().join(" | ")),r.getParams().forEach((e=>{const t=new d.ParamInfo(e.getApiType(),new c.Comment.JsDocInfo);t.setName(e.getApiName()),t.setType(e.getType().join(" | ")),t.setIsRequired(e.getIsRequired()),i.addParam(t)})),i.setIsStatic(r.getIsStatic()),t.push(i)})),t}static processExportDefault(e){const t=[],r=new d.ExportDefaultInfo(e.getApiType());return r.setName(e.getApiName()),t.push(r),t}static processImportInfo(e){const t=[],r=e,n=new d.ImportInfo(e.getApiType());return r.getImportValues().forEach((e=>{n.addImportValue(e.key,e.value)})),t.push(n),t}static processConstant(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.ConstantInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName());const i=r.getValue();n.setValue(i.replace(p.regQuotation,"$1")),n.setType(isNaN(Number(i))?"string":"number");const a=r.getNode();if(a.initializer){const e=f.get(a.initializer.kind);n.setType(e||"")}t.push(n)}return n.forEach((n=>{const i=new d.ConstantInfo(e.getApiType(),n);i.setName(e.getApiName());const a=r.getValue();i.setValue(a.replace(p.regQuotation,"$1")),i.setType(isNaN(Number(a))?"string":"number");const o=r.getNode();if(o.initializer){const e=f.get(o.initializer.kind);i.setType(e||"")}t.push(i)})),t}static processDeclareConstant(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.DeclareConstInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setType(r.getValue());const i=r.getNode();if(i.initializer){const e=f.get(i.initializer.kind);n.setType(e||"")}t.push(n)}return n.forEach((n=>{const i=new d.DeclareConstInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setType(r.getValue());const a=r.getNode();if(a.initializer){const e=f.get(a.initializer.kind);i.setType(e||"")}t.push(i)})),t}static processEnum(e){const t=[],r=e.getJsDocInfos();if(0===r.length){const r=new d.NamespaceEnumInfo(e.getApiType(),new c.Comment.JsDocInfo);r.setName(e.getApiName()),t.push(r)}return r.forEach((r=>{const n=new d.NamespaceEnumInfo(e.getApiType(),r);n.setName(e.getApiName()),t.push(n)})),t}static processEnumMember(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.EnumValueInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setValue(r.getValue()),t.push(n)}return n.forEach((n=>{const i=new d.EnumValueInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setValue(r.getValue()),t.push(i)})),t}static processTypeAlias(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const e=p.processTypeAliasGetNewInfo(r,new c.Comment.JsDocInfo);t.push(e)}return n.forEach((e=>{const n=p.processTypeAliasGetNewInfo(r,e);t.push(n)})),t}static processTypeAliasGetNewInfo(e,t){if(e.getTypeName()===u.TypeAliasType.UNION_TYPE){const r=new d.UnionTypeInfo(e.getTypeName(),t);return r.setName(e.getApiName()),r.addValueRanges(e.getType().map((e=>e.replace(p.regQuotation,"$1")))),r}const r=new d.TypeAliasInfo(e.getApiType(),t);return r.setName(e.getApiName()),r.setType(e.getType().join(" | ")),r}}t.ResultsProcessHelper=p,p.regQuotation=/^[\'|\"](.*)[\'|\"]$/;const f=new Map([[s.default.SyntaxKind.StringLiteral,"string"],[s.default.SyntaxKind.NumericLiteral,"number"]]);t.resultsProcessMethod=new Map([[u.ApiType.PROPERTY,p.processProperty],[u.ApiType.CLASS,p.processClass],[u.ApiType.INTERFACE,p.processInterface],[u.ApiType.NAMESPACE,p.processNamespace],[u.ApiType.METHOD,p.processMethod],[u.ApiType.EXPORT_DEFAULT,p.processExportDefault],[u.ApiType.IMPORT,p.processImportInfo],[u.ApiType.CONSTANT,p.processConstant],[u.ApiType.DECLARE_CONST,p.processDeclareConstant],[u.ApiType.ENUM,p.processEnum],[u.ApiType.ENUM_VALUE,p.processEnumMember],[u.ApiType.TYPE_ALIAS,p.processTypeAlias]])},30871:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;const i=n(r(79896)),a=n(r(16928)),o=n(r(58843)),s=n(r(2543)),c=r(17858),l=r(3359),u=r(44791),d=r(8136),p=r(40745),f=r(26499);class m{static cleanParserParamSDK(){c.parserParam.setFileDir(""),c.parserParam.setSdkPath("")}static parseDir(e,t=""){m.cleanParserParamSDK();const r=p.FileUtils.readFilesInDir(e,(e=>e.endsWith(d.StringConstant.DTS_EXTENSION)||e.endsWith(d.StringConstant.DETS_EXTENSION))),n=new Map;let i=[];return""===t?(c.parserParam.setSdkPath(e),i=r):p.FileUtils.isDirectory(t)?(m.needLib=!0,c.parserParam.setSdkPath(t),i=p.FileUtils.readFilesInDir(t,(e=>e.endsWith(d.StringConstant.DTS_EXTENSION)||e.endsWith(d.StringConstant.DETS_EXTENSION)))):p.FileUtils.isFile(t)&&(m.needLib=!0,c.parserParam.setSdkPath(a.default.resolve(t,"..")),i=[t]),c.parserParam.setFileDir(e),c.parserParam.setRootNames(i),m.needLib&&c.parserParam.setLibPath(a.default.resolve(p.FileUtils.getBaseDirName(),"./libs")),c.parserParam.setProgram(),i.forEach((t=>{m.parseFile(e,t,n)})),n}static parseFile(e,t,r){if(!i.default.existsSync(t))return new Map;""===c.parserParam.getFileDir()&&(c.parserParam.setSdkPath(e),c.parserParam.setFileDir(a.default.resolve(e,"..")),c.parserParam.setRootNames([t]),m.needLib&&c.parserParam.setLibPath(a.default.resolve(p.FileUtils.getBaseDirName(),"./libs")),c.parserParam.setProgram()),c.parserParam.setFilePath(t);let n="";n=a.default.relative(e,t);const s=c.parserParam.getTsProgram();s.getTypeChecker();const l=c.parserParam.compilerHost.getCanonicalFileName(t.replace(/\\/g,"/")),f=s.getSourceFileByPath(l);if(!f)return new Map;const g=[t];f.statements.forEach((e=>{o.default.isImportDeclaration(e)&&e.moduleSpecifier.getText().startsWith("./",1)&&g.push(a.default.resolve(t,"..",e.moduleSpecifier.getText().replace(/'|"/g,"")))}));const _=new u.ApiInfo(u.ApiType.SOURCE_FILE,f,void 0);_.setFilePath(n),_.setFileAbsolutePath(t),_.setApiName(n),_.setIsStruct(t.endsWith(d.StringConstant.ETS_EXTENSION));const h=new Map;return h.set(d.StringConstant.SELF,[_]),c.NodeProcessorHelper.processReference(f,h,_),f.forEachChild((e=>{c.NodeProcessorHelper.processNode(e,h,_)})),r||(r=new Map),r.set(n,h),r}static getApiInfo(e,t,r){const n=[];if(0===e.length)return n;let i=t;for(let t=0;t<e.length;t++){const r=e[t],a=i.get(r);if(!a)return n;i=a}const a=i.get(d.StringConstant.SELF);if(!a)return n;if(n.push(...a),r){const e=f.DiffHelper.judgeIsSameNameFunction(n);n.forEach((t=>{t.setIsSameNameFunction(e)}))}return n}static getParseResults(e){const t=s.default.cloneDeep(e),r=new Map;for(const n of t.keys()){const t=e.get(n),i=l.ResultsProcessHelper.processFileApiMap(t);r.set(n,i)}return JSON.stringify(Object.fromEntries(r),null,2)}static getParseEachSince(e){const t=s.default.cloneDeep(e),r=new Map;for(const n of t.keys()){const t=e.get(n),i=l.ResultsProcessHelper.processFileApiMapForEachSince(t);return r.set(n,i),JSON.stringify(i,null,2)}return""}static getAllBasicApi(e){let t=[];for(const r of e.keys()){const n=e.get(r),i=l.ResultsProcessHelper.processFileApiMapForGetBasicApi(n);t=t.concat(i)}return t}}t.Parser=m,m.needLib=!1},12587:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatisticsHelper=void 0;const i=r(44791),a=r(16137),o=r(8136),s=r(4e3),c=n(r(58843));class l{static getApiStatisticsInfos(e){const t=[],r=[];for(const n of e.keys()){const i=e.get(n);i&&l.processFileApiMap(i,t,r)}return{apiStatisticsInfos:t,allApiStatisticsInfos:r}}static processFileApiMap(e,t,r){for(const n of e.keys()){if(n===o.StringConstant.SELF)continue;const i=e.get(n);if(!i||Array.isArray(i))continue;const a=i.get(o.StringConstant.SELF),s=new Map;if(!a||!Array.isArray(a))continue;l.connectDefinedText(a,s);const c=new Set;a.forEach((e=>{l.processApiInfo(e,t,s,r,c)}))}}static connectDefinedText(e,t){e.forEach((e=>{if(e.getApiType()===i.ApiType.METHOD){if(a.notMergeDefinedText.has(e.getApiName()))return;const r=t.get(l.joinRelations(e));if(r){const n=`${r}\n${e.getDefinedText()}`;return void t.set(l.joinRelations(e),n)}t.set(l.joinRelations(e),e.getDefinedText())}if(i.containerApiTypes.has(e.getApiType())){const r=e;l.connectDefinedText(r.getChildApis(),t)}}))}static joinRelations(e){return e.getHierarchicalRelations().join()}static processApiInfo(e,t,r,n,s){const c=e;if(n.push(l.initApiStatisticsInfo(c,r,!0)),!a.apiStatisticsType.has(e.getApiType()))return;if(e.getApiName()===o.StringConstant.CONSTRUCTOR_API_NAME)return;const u=l.initApiStatisticsInfo(c,r);if(a.apiNotStatisticsType.has(u.getApiType())||s.has(l.joinRelations(e))||t.push(u),s.add(l.joinRelations(e)),!i.containerApiTypes.has(c.getApiType()))return;c.getChildApis().forEach((e=>{l.processApiInfo(e,t,r,n,s)}))}static initApiStatisticsInfo(e,t,r){const n=new a.ApiStatisticsInfo,s=e.getHierarchicalRelations();s.length>o.NumberConstant.RELATION_LENGTH&&n.setParentModuleName(s[s.length-o.NumberConstant.RELATION_LENGTH]);const c=l.joinRelations(e),u=t.get(c);r?n.setDefinedText(e.getDefinedText()):n.setDefinedText(u||e.getDefinedText());let d=!1;if(e.getApiType()===i.ApiType.METHOD){d=!e.getIsRequired()}else if(e.getApiType()===i.ApiType.PROPERTY){d=!e.getIsRequired()}if(n.setFilePath(e.getFilePath()).setApiType(e.getApiType()).setApiName(e.getApiName()).setPos(e.getPos()).setHierarchicalRelations(s.join("/")).setDecorators(e.getDecorators()).setParentApiType(e.getParentApiType()).setIsOptional(d),i.notJsDocApiTypes.has(e.getApiType()))return n;const p=e.getJsDocInfos()[0];p&&n.setSince(p.getSince());const f=e.getLastJsDocInfo();return f?n.setSyscap(f.getSyscap()?f.getSyscap():l.extendSyscap(e)).setPermission(f.getPermission()).setIsForm(f.getIsForm()).setIsCrossPlatForm(f.getIsCrossPlatForm()).setDeprecatedVersion(f.getDeprecatedVersion()===o.NumberConstant.DEFAULT_DEPRECATED_VERSION?"":f.getDeprecatedVersion()).setUseInstead(f.getUseinstead()).setApiLevel(f.getIsSystemApi()).setModelLimitation(f.getModelLimitation()).setIsAutomicService(f.getIsAtomicService()).setErrorCodes(f.getErrorCode()).setKitInfo(f.getKit()):n.setSyscap(l.extendSyscap(e)),n}static extendSyscap(e){let t=e,r="";const n=t.getNode();try{for(;n&&t&&!c.default.isSourceFile(n);){const e=t.getLastJsDocInfo();if(e&&(r=e.getSyscap()),r)return r;t=t.getParentApi()}}catch(e){s.LogUtil.e("SYSCAP ERROR",e)}return r}static getApiNumber(e){const t=new Set;return e.forEach((e=>{t.add(e.getHierarchicalRelations())})),t.size}}t.ApiStatisticsHelper=l},32875:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(62116)),a=n(r(59620)),o=r(11162),s=r(77926),c=r(4e3),l=r(40745);class u{constructor(){this.program=new i.default.Command}addPluginCommand(e){const t=e.pluginOptions;if(!t)return;const r=this.program.name(t.name).description(t.description).version(t.version).action((t=>{this.judgeOpts(t),e.start(t),e.stop()}));t.commands.forEach((e=>{e.isRequiredOption?r.requiredOption(...e.options):r.option(...e.options)}))}buildCommands(){this.program.parse()}judgeOpts(e){const t=e.toolName;switch(s.toolNameSet.has(t)||this.stopRun(`error toolName "${t}",toolName not in [${[...s.toolNameSet]}] `),t){case s.toolNameType.COLLECT:const t=e.collectPath;""!==t&&l.FileUtils.isExists(t)||this.stopRun(`error collectPath "${t}",collectPath need a exist file path`);break;case s.toolNameType.LABELDETECTION:const r=e.checkLabels;""===r&&this.stopRun(`error checkLabels "${r}",detection tools need checkLabels`)}}stopRun(e){c.LogUtil.e("commander",e),this.program.help({error:!0})}}class d{constructor(){this.commandBuilder=new u}runPlugins(){o.getToolConfiguration().plugins.forEach((e=>{this.commandBuilder.addPluginCommand(e)})),this.commandBuilder.buildCommands()}}Object.assign(process.env,a.default),(new d).runPlugins()},77002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBaseInfo=t.ApiBaseInfo=t.ApiCheckInfo=t.ApiResultMessage=t.ApiResultInfo=t.ApiResultSimpleInfo=t.incompatibleApiDiffTypes=t.ErrorMessage=t.ParticularErrorCode=t.ErrorLevel=t.LogType=t.ErrorID=t.ErrorType=void 0;const n=r(40149);var i;!function(e){e.UNKNOW_DECORATOR="unknow decorator",e.MISSPELL_WORDS="misspell words",e.NAMING_ERRORS="naming errors",e.UNKNOW_PERMISSION="unknow permission",e.UNKNOW_SYSCAP="unknow syscap",e.UNKNOW_DEPRECATED="unknow deprecated",e.WRONG_ORDER="wrong order",e.WRONG_VALUE="wrong value",e.WRONG_SCENE="wrong scene",e.PARAMETER_ERRORS="wrong parameter",e.API_PAIR_ERRORS="limited api pair errors",e.FORBIDDEN_WORDS="forbidden word",e.API_CHANGE_ERRORS="api change errors",e.TS_SYNTAX_ERROR="TS syntax error",e.NO_JSDOC="No jsdoc",e.JSDOC_HAS_CHINESE="JSDOC_HAS_CHINESE",e.ERROR_ERROR_CODE="error_error_code"}(t.ErrorType||(t.ErrorType={})),function(e){e[e.UNKNOW_DECORATOR_ID=0]="UNKNOW_DECORATOR_ID",e[e.MISSPELL_WORDS_ID=1]="MISSPELL_WORDS_ID",e[e.NAMING_ERRORS_ID=2]="NAMING_ERRORS_ID",e[e.UNKNOW_PERMISSION_ID=3]="UNKNOW_PERMISSION_ID",e[e.UNKNOW_SYSCAP_ID=4]="UNKNOW_SYSCAP_ID",e[e.UNKNOW_DEPRECATED_ID=5]="UNKNOW_DEPRECATED_ID",e[e.WRONG_ORDER_ID=6]="WRONG_ORDER_ID",e[e.WRONG_VALUE_ID=7]="WRONG_VALUE_ID",e[e.WRONG_SCENE_ID=8]="WRONG_SCENE_ID",e[e.PARAMETER_ERRORS_ID=9]="PARAMETER_ERRORS_ID",e[e.API_PAIR_ERRORS_ID=10]="API_PAIR_ERRORS_ID",e[e.FORBIDDEN_WORDS_ID=11]="FORBIDDEN_WORDS_ID",e[e.API_CHANGE_ERRORS_ID=12]="API_CHANGE_ERRORS_ID",e[e.TS_SYNTAX_ERROR_ID=13]="TS_SYNTAX_ERROR_ID",e[e.NO_JSDOC_ID=14]="NO_JSDOC_ID",e[e.JSDOC_HAS_CHINESE=15]="JSDOC_HAS_CHINESE",e[e.ERROR_ERROR_CODE=16]="ERROR_ERROR_CODE"}(t.ErrorID||(t.ErrorID={})),function(e){e.LOG_API="Api",e.LOG_JSDOC="JsDoc",e.LOG_FILE="File"}(t.LogType||(t.LogType={})),function(e){e[e.HIGH=3]="HIGH",e[e.MIDDLE=2]="MIDDLE",e[e.LOW=1]="LOW"}(t.ErrorLevel||(t.ErrorLevel={})),function(e){e.ERROR_CODE_201="201",e.ERROR_CODE_202="202",e.ERROR_CODE_401="401",e.ERROR_PERMISSION="permission",e.ERROR_SYSTEMAPI="systemapi"}(t.ParticularErrorCode||(t.ParticularErrorCode={})),function(e){e.ERROR_INFO_VALUE_EXTENDS="The [extends] tag value is incorrect. Please check if the tag value matches the inherited class name.",e.ERROR_INFO_VALUE_IMPLEMENTS="The [implements] tag value is incorrect. Please check if the tag value matches the inherited class name.",e.ERROR_INFO_VALUE_ENUM="The [enum] tag type is incorrect. Please check if the tag type is { string } or { number }.",e.ERROR_INFO_VALUE_SINCE="The [since] tag value is incorrect. Please check if the tag value is a numerical value.",e.ERROR_INFO_VALUE_SINCE_NUMBER="The [since] value is greater than the latest version number.",e.ERROR_INFO_VALUE_SINCE_JSDOC="The [since] value for different jsdoc should not be the same.",e.ERROR_INFO_RETURNS="The [returns] tag was used incorrectly. The returns tag should not be used when the return type is void.",e.ERROR_INFO_VALUE_RETURNS="The [returns] tag type is incorrect. Please check if the tag type is consistent with the return type.",e.ERROR_INFO_VALUE_USEINSTEAD="The [useinstead] tag value is incorrect. Please check the usage method.",e.ERROR_INFO_VALUE_TYPE="The [type] tag type is incorrect. Please check if the type matches the attribute type.",e.ERROR_INFO_VALUE_DEFAULT="The [default] tag value is incorrect. Please supplement the default value.",e.ERROR_INFO_VALUE_PERMISSION="The [permission] tag value is incorrect. Please check if the permission field has been configured or update the configuration file.",e.ERROR_INFO_VALUE_DEPRECATED="The [deprecated] tag value is incorrect. Please check the usage method.",e.ERROR_INFO_VALUE_SYSCAP="The [syscap] tag value is incorrect. Please check if the syscap field is configured.",e.ERROR_INFO_VALUE_NAMESPACE="The [namespace] tag value is incorrect. Please check if it matches the namespace name.",e.ERROR_INFO_VALUE_INTERFACE="The [interface] label value is incorrect. Please check if it matches the interface name.",e.ERROR_INFO_VALUE_TYPEDEF="The [typedef] tag value is incorrect. Please check if it matches the interface name or type content.",e.ERROR_INFO_VALUE_STRUCT="The [struct] tag value is incorrect. Please check if it matches the struct name.",e.ERROR_INFO_TYPE_PARAM="The type of the [$$] [param] tag is incorrect. Please check if it matches the type of the [$$] parameter.",e.ERROR_INFO_VALUE_PARAM="The value of the [$$] [param] tag is incorrect. Please check if it matches the [$$] parameter name.",e.ERROR_INFO_VALUE1_THROWS="The type of the [$$] [throws] tag is incorrect. Please fill in [BusinessError].",e.ERROR_INFO_VALUE2_THROWS="The type of the [$$] [throws] tag is incorrect. Please check if the tag value is a numerical value.",e.ERROR_INFO_VALUE3_THROWS="The description of the [401 throws] is incorrect. please fix it according to the specification.",e.ERROR_INFO_INHERIT="It was detected that there is an inheritable label [$$] in the current file, but there are child nodes without this label.",e.ERROR_INFO_FOLLOW="It was detected that there is a following label [$$] in the current file, but the parent nodes without this label.",e.ERROR_ORDER="JSDoc label order error, please adjust the order of [$$] labels.",e.ERROR_LABELNAME="The [$$] tag does not exist. Please use a valid JSDoc tag.",e.ERROR_LOST_LABEL="JSDoc tag validity verification failed. Please confirm if the [$$] tag is missing.",e.ERROR_USE="JSDoc label validity verification failed. The [$$] label is not allowed. Please check the label usage method.",e.ERROR_MORELABEL="JSDoc tag validity verification failed.There are [$$] redundant [$$]. Please check if the tag should be deleted.",e.ERROR_REPEATLABEL="The validity verification of the JSDoc tag failed. The [$$] tag is not allowed to be reused, please delete the extra tags.",e.ERROR_USE_INTERFACE="The validity verification of the JSDoc tag failed. The [interface] tag and [typedef] tag are not allowed to be used simultaneously. Please confirm the interface class.",e.ERROR_EVENT_NAME_STRING="The event name should be string.",e.ERROR_EVENT_NAME_NULL="The event name cannot be Null value.",e.ERROR_EVENT_NAME_SMALL_HUMP='The event name should be named by small hump. (Received ["$$"]).',e.ERROR_EVENT_CALLBACK_OPTIONAL="The callback parameter of off function should be optional.",e.ERROR_EVENT_CALLBACK_MISSING="The off functions of one single event should have at least one callback parameter, and the callback parameter should be the last parameter.",e.ERROR_EVENT_ON_AND_OFF_PAIR="The on and off event subscription methods do not appear in pair.",e.ERROR_EVENT_WITHOUT_PARAMETER="The event subscription methods should has at least one parameter.",e.ILLEGAL_USE_ANY="Illegal [$$] keyword used in the API.",e.ERROR_CHANGES_VERSION="Please check if the changed API version number is 10.",e.ERROR_WORD="Error words in [$$]: {$$}. please confirm whether it needs to be corrected to a common word.",e.ERROR_NAMING="Prohibited word in [$$]:{$$}.The word allowed is [$$].",e.ERROR_SCENARIO="Prohibited word in [$$]:{$$} in the [$$] file.",e.ERROR_UPPERCASE_NAME="This name [$$] should be named by all uppercase.",e.ERROR_LARGE_HUMP_NAME="This name [$$] should be named by large hump.",e.ERROR_SMALL_HUMP_NAME="This name [$$] should be named by small hump.",e.ERROR_SMALL_HUMP_NAME_FILE="This API file should be named by small hump.",e.ERROR_LARGE_HUMP_NAME_FILE="This API file should be named by large hump.",e.ERROR_ANONYMOUS_FUNCTION="Anonymous functions or anonymous object that are not allowed are used in this api.",e.ERROR_NO_JSDOC="Jsdoc needs to be added to the current API.",e.ERROR_NO_JSDOC_TAG="add tags to the Jsdoc.",e.ERROR_HAS_CHINESE="Jsdoc has chinese.",e.ERROR_ERROR_CODE="The generic error code does not contain the current error code.",e.ERROR_ERROR_SYSTEMAPI_ATOMICSERVICE="The [systemapi] and [atomicservice] cannot exist in the same doc.",e.ERROR_CHANGES_JSDOC_LEVEL="Forbid changes: Cannot change from public API to system API.",e.ERROR_CHANGES_JSDOC_PERMISSION_RANGE="Forbid changes: Cannot reduce or permission or increase and permission.",e.ERROR_CHANGES_JSDOC_PERMISSION_VALUE="Forbid changes: Cannot change permission value,cannot judge the range change.",e.ERROR_CHANGES_JSDOC_ERROR_CODE_ADD="Forbid changes: The number of error codes cannot be increased from 0 to multiple error codes.",e.ERROR_CHANGES_JSDOC_ERROR_CODE_VALUE="Forbid changes: Cannot change the error code value.",e.ERROR_CHANGES_JSDOC_CARD="Forbid changes: The card application cannot be changed from supported to not supported.",e.ERROR_CHANGES_JSDOC_CROSS_PLATFORM="Forbid changes: Crossplatform cannot be changed from supported to not supported.",e.ERROR_CHANGES_JSDOC_API_DELETE="Forbid changes: API cannot be deleted.",e.ERROR_CHANGES_JSDOC_FA_TO_STAGE="Forbid changes: Cannot change from FAModelOnly to StageModelOnly.",e.ERROR_CHANGES_JSDOC_STAGE_TO_FA="Forbid changes: Cannot change from StageModelOnly to FAModelOnly.",e.ERROR_CHANGES_JSDOC_NA_TO_STAGE="Forbid changes: Cannot change from nothing to StageModelOnly.",e.ERROR_CHANGES_JSDOC_NA_TO_FA="Forbid changes: Cannot change from nothing to FAModelOnly.",e.ERROR_CHANGES_JSDOC_ATOMICSERVICE_TO_NA="Forbid changes: Cannot change from atomicservice to NA.",e.ERROR_CHANGES_FUNCTION_RETURN_TYPE_ADD="Forbid changes: The function return value type cannot be extended.",e.ERROR_CHANGES_FUNCTION_RETURN_TYPE_REDUCE="Forbid changes: The function return value type cannot be reduced.",e.ERROR_CHANGES_FUNCTION_RETURN_TYPE_CHANGE="Forbid changes: Cannot change function return value type.",e.ERROR_CHANGES_FUNCTION_PARAM_POS_CHANGE="Forbid changes: Cannot change function param position.",e.ERROR_CHANGES_FUNCTION_PARAM_REQUIRED_ADD="Forbid changes: Cannot add function required param.",e.ERROR_CHANGES_FUNCTION_PARAM_REDUCE="Forbid changes: Cannot delete function param.",e.ERROR_CHANGES_FUNCTION_PARAM_TO_REQUIRED="Forbid changes: Cannot change form unrequired param to required param.",e.ERROR_CHANGES_FUNCTION_PARAM_TYPE="Forbid changes: Cannot change function param type.",e.ERROR_CHANGES_FUNCTION_PARAM_TYPE_REDUCE="Forbid changes: The function param type range is cannot be reduced.",e.ERROR_CHANGES_PROPERTY_READONLY_TO_REQUIRED="Forbid changes: Read-only properties cannot be changed from optional to required.",e.ERROR_CHANGES_PROPERTY_WRITABLE_TO_UNREQUIRED="Forbid changes: Writable properties cannot be changed from required to optional.",e.ERROR_CHANGES_PROPERTY_WRITABLE_TO_REQUIRED="Forbid changes: Writable properties cannot be changed from optional to required.",e.ERROR_CHANGES_PROPERTY_TYPE_CHANGE="Forbid changes: Cannot change property type.",e.ERROR_CHANGES_PROPERTY_READONLY_ADD="Forbid changes: Cannot Expand the range of readonly property types.",e.ERROR_CHANGES_PROPERTY_WRITABLE_ADD="Forbid changes: Cannot Expand the range of writable property types.",e.ERROR_CHANGES_PROPERTY_WRITABLE_REDUCE="Forbid changes: Cannot reduce the range of writable property types.",e.ERROR_CHANGES_DELETE_DECORATOR="Forbid changes: Decorator cannot be deleted.",e.ERROR_CHANGES_CONSTANT_VALUE="Forbid changes: Cannot change constant value.",e.ERROR_CHANGES_TYPE_ALIAS_VALUE="Forbid changes: Cannot change custom type value.",e.ERROR_CHANGES_TYPE_ALIAS_ADD="Forbid changes: Cannot expand the range of custom type.",e.ERROR_CHANGES_TYPE_ALIAS_REDUCE="Forbid changes: Cannot reduce the range of custom type.",e.ERROR_CHANGES_ENUM_MEMBER_VALUE="Forbid changes: Cannot change Enumeration assignment.",e.ERROR_CHANGES_JSDOC_CHANGE="Forbid changes: Historical JSDoc cannot be changed.",e.ERROR_CHANGES_JSDOC_NUMBER="Forbid changes: API changes must add a new section of JSDoc.",e.ERROR_CHANGES_SYSCAP_NA_TO_HAVE="Forbid changes: Cannot change from NA to syscap.",e.ERROR_CHANGES_SYSCAP_HAVE_TO_NA="Forbid changes: Cannot change from syscap to NA.",e.ERROR_CHANGES_SYSCAP_A_TO_B="Forbid changes: Cannot change syscap value.",e.ERROR_CHANGES_ADD_PROPERTY="Forbid changes: Cannot add new property to interface API."}(i=t.ErrorMessage||(t.ErrorMessage={})),t.incompatibleApiDiffTypes=new Map([[n.ApiDiffType.HISTORICAL_JSDOC_CHANGE,i.ERROR_CHANGES_JSDOC_CHANGE],[n.ApiDiffType.HISTORICAL_API_CHANGE,i.ERROR_CHANGES_JSDOC_NUMBER],[n.ApiDiffType.PUBLIC_TO_SYSTEM,i.ERROR_CHANGES_JSDOC_LEVEL],[n.ApiDiffType.PERMISSION_NA_TO_HAVE,i.ERROR_CHANGES_JSDOC_PERMISSION_VALUE],[n.ApiDiffType.PERMISSION_RANGE_SMALLER,i.ERROR_CHANGES_JSDOC_PERMISSION_RANGE],[n.ApiDiffType.PERMISSION_RANGE_CHANGE,i.ERROR_CHANGES_JSDOC_PERMISSION_VALUE],[n.ApiDiffType.ERROR_CODE_NA_TO_HAVE,i.ERROR_CHANGES_JSDOC_ERROR_CODE_ADD],[n.ApiDiffType.ERROR_CODE_CHANGE,i.ERROR_CHANGES_JSDOC_ERROR_CODE_VALUE],[n.ApiDiffType.CARD_TO_NA,i.ERROR_CHANGES_JSDOC_CARD],[n.ApiDiffType.CROSS_PLATFORM_TO_NA,i.ERROR_CHANGES_JSDOC_CROSS_PLATFORM],[n.ApiDiffType.REDUCE,i.ERROR_CHANGES_JSDOC_API_DELETE],[n.ApiDiffType.FA_TO_STAGE,i.ERROR_CHANGES_JSDOC_FA_TO_STAGE],[n.ApiDiffType.STAGE_TO_FA,i.ERROR_CHANGES_JSDOC_STAGE_TO_FA],[n.ApiDiffType.NA_TO_STAGE,i.ERROR_CHANGES_JSDOC_NA_TO_STAGE],[n.ApiDiffType.NA_TO_FA,i.ERROR_CHANGES_JSDOC_NA_TO_FA],[n.ApiDiffType.FUNCTION_RETURN_TYPE_ADD,i.ERROR_CHANGES_FUNCTION_RETURN_TYPE_ADD],[n.ApiDiffType.FUNCTION_RETURN_TYPE_REDUCE,i.ERROR_CHANGES_FUNCTION_RETURN_TYPE_REDUCE],[n.ApiDiffType.FUNCTION_RETURN_TYPE_CHANGE,i.ERROR_CHANGES_FUNCTION_RETURN_TYPE_CHANGE],[n.ApiDiffType.FUNCTION_PARAM_POS_CHANGE,i.ERROR_CHANGES_FUNCTION_PARAM_POS_CHANGE],[n.ApiDiffType.FUNCTION_PARAM_REQUIRED_ADD,i.ERROR_CHANGES_FUNCTION_PARAM_REQUIRED_ADD],[n.ApiDiffType.FUNCTION_PARAM_REDUCE,i.ERROR_CHANGES_FUNCTION_PARAM_REDUCE],[n.ApiDiffType.FUNCTION_PARAM_TO_REQUIRED,i.ERROR_CHANGES_FUNCTION_PARAM_TO_REQUIRED],[n.ApiDiffType.FUNCTION_PARAM_TYPE_CHANGE,i.ERROR_CHANGES_FUNCTION_PARAM_TYPE],[n.ApiDiffType.FUNCTION_PARAM_TYPE_REDUCE,i.ERROR_CHANGES_FUNCTION_PARAM_TYPE_REDUCE],[n.ApiDiffType.PROPERTY_READONLY_TO_REQUIRED,i.ERROR_CHANGES_PROPERTY_READONLY_TO_REQUIRED],[n.ApiDiffType.PROPERTY_WRITABLE_TO_UNREQUIRED,i.ERROR_CHANGES_PROPERTY_WRITABLE_TO_UNREQUIRED],[n.ApiDiffType.PROPERTY_WRITABLE_TO_REQUIRED,i.ERROR_CHANGES_PROPERTY_WRITABLE_TO_REQUIRED],[n.ApiDiffType.PROPERTY_TYPE_CHANGE,i.ERROR_CHANGES_PROPERTY_TYPE_CHANGE],[n.ApiDiffType.PROPERTY_READONLY_ADD,i.ERROR_CHANGES_PROPERTY_READONLY_ADD],[n.ApiDiffType.PROPERTY_WRITABLE_ADD,i.ERROR_CHANGES_PROPERTY_WRITABLE_ADD],[n.ApiDiffType.PROPERTY_WRITABLE_REDUCE,i.ERROR_CHANGES_PROPERTY_WRITABLE_REDUCE],[n.ApiDiffType.DELETE_DECORATOR,i.ERROR_CHANGES_DELETE_DECORATOR],[n.ApiDiffType.CONSTANT_VALUE_CHANGE,i.ERROR_CHANGES_CONSTANT_VALUE],[n.ApiDiffType.TYPE_ALIAS_CHANGE,i.ERROR_CHANGES_TYPE_ALIAS_VALUE],[n.ApiDiffType.TYPE_ALIAS_ADD,i.ERROR_CHANGES_TYPE_ALIAS_ADD],[n.ApiDiffType.TYPE_ALIAS_REDUCE,i.ERROR_CHANGES_TYPE_ALIAS_REDUCE],[n.ApiDiffType.ENUM_MEMBER_VALUE_CHANGE,i.ERROR_CHANGES_ENUM_MEMBER_VALUE],[n.ApiDiffType.ATOMIC_SERVICE_HAVE_TO_NA,i.ERROR_CHANGES_JSDOC_ATOMICSERVICE_TO_NA],[n.ApiDiffType.SYSCAP_NA_TO_HAVE,i.ERROR_CHANGES_SYSCAP_NA_TO_HAVE],[n.ApiDiffType.SYSCAP_HAVE_TO_NA,i.ERROR_CHANGES_SYSCAP_HAVE_TO_NA],[n.ApiDiffType.SYSCAP_A_TO_B,i.ERROR_CHANGES_SYSCAP_A_TO_B],[n.ApiDiffType.ADD,i.ERROR_CHANGES_ADD_PROPERTY]]);t.ApiResultSimpleInfo=class{constructor(){this.id=-1,this.level=-1,this.filePath="",this.location="",this.message="",this.type="",this.apiText="",this.apiName="",this.apiType="",this.hierarchicalRelations="",this.parentModuleName=""}setID(e){return this.id=e,this}getID(){return this.id}setLevel(e){return this.level=e,this}getLevel(){return this.level}setLocation(e){return this.location=e,this}getLocation(){return this.location}setFilePath(e){return this.filePath=e,this}getFilePath(){return this.filePath}setMessage(e){return this.message=e,this}getMessage(){return this.message}setType(e){return this.type=e,this}getType(){return this.type}setApiText(e){return this.apiText=e,this}getApiText(){return this.apiText}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}};t.ApiResultInfo=class{constructor(){this.errorType="",this.location="",this.apiType="",this.message="",this.version=-1,this.level=-1,this.apiName="",this.apiFullText="",this.baseName="",this.hierarchicalRelations="",this.parentModuleName="",this.defectType=""}setErrorType(e){return this.errorType=e,this}getErrorType(){return this.errorType}setLocation(e){return this.location=e,this}getLocation(){return this.location}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setMessage(e){return this.message=e,this}getMessage(){return this.message}setVersion(e){return this.version=e,this}getVersion(){return this.version}setLevel(e){return this.level=e,this}getLevel(){return this.level}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiFullText(e){return this.apiFullText=e,this}getApiFullText(){return this.apiFullText}setBaseName(e){return this.baseName=e,this}getBaseName(){return this.baseName}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}setDefectType(e){return this.defectType=e,this}getDefectType(){return this.defectType}};t.ApiResultMessage=class{constructor(){this.analyzerName="apiengine",this.buggyFilePath="",this.codeContextStaerLine="",this.defectLevel=-1,this.defectType="",this.description="",this.language="typescript",this.mainBuggyCode="",this.mainBuggyLine="",this.extendInfo=new a}setLocation(e){return this.codeContextStaerLine=e,this}getLocation(){return this.codeContextStaerLine}setLevel(e){return this.defectLevel=e,this}getLevel(){return this.defectLevel}setType(e){return this.defectType=e,this}getType(){return this.defectType}setFilePath(e){return this.buggyFilePath=e,this}getFilePath(){return this.buggyFilePath}setMessage(e){return this.description=e,this}getMessage(){return this.description}setMainBuggyCode(e){return this.mainBuggyCode=e,this}getMainBuggyCode(){return this.mainBuggyCode}setMainBuggyLine(e){return this.mainBuggyLine=e,this}getMainBuggyLine(){return this.mainBuggyLine}setExtendInfo(e){return this.extendInfo=e,this}getExtendInfo(){return this.extendInfo}};t.ApiCheckInfo=class{constructor(){this.errorID=-1,this.errorLevel=-1,this.filePath="",this.apiPostion={line:-1,character:-1},this.errorType="",this.logType="",this.sinceNumber=-1,this.apiName="",this.apiType="",this.apiText="",this.errorInfo="",this.hierarchicalRelations="",this.parentModuleName=""}setErrorID(e){return this.errorID=e,this}getErrorID(){return this.errorID}setErrorLevel(e){return this.errorLevel=e,this}getErrorLevel(){return this.errorLevel}setFilePath(e){return this.filePath=e,this}getFilePath(){return this.filePath}setApiPostion(e){return this.apiPostion=e,this}getApiPostion(){return this.apiPostion}setErrorType(e){return this.errorType=e,this}getErrorType(){return this.errorType}setLogType(e){return this.logType=e,this}getLogType(){return this.logType}setSinceNumber(e){return this.sinceNumber=e,this}getSinceNumber(){return this.sinceNumber}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setApiText(e){return this.apiText=e,this}getApiText(){return this.apiText}setErrorInfo(e){return this.errorInfo=e,this}getErrorInfo(){return this.errorInfo}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}};class a{constructor(){this.apiName="",this.apiType="",this.hierarchicalRelations="",this.parentModuleName=""}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}}t.ApiBaseInfo=a;t.ErrorBaseInfo=class{constructor(){this.errorID=-1,this.errorLevel=-1,this.errorType="",this.logType="",this.errorInfo=""}setErrorID(e){return this.errorID=e,this}getErrorID(){return this.errorID}setErrorLevel(e){return this.errorLevel=e,this}getErrorLevel(){return this.errorLevel}setErrorType(e){return this.errorType=e,this}getErrorType(){return this.errorType}setLogType(e){return this.logType=e,this}getLogType(){return this.logType}setErrorInfo(e){return this.errorInfo=e,this}getErrorInfo(){return this.errorInfo}}},85057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiCountInfo=void 0;t.ApiCountInfo=class{constructor(){this.filePath="",this.kitName="",this.subSystem="",this.apiNumber=-1}setFilePath(e){return this.filePath=e,this}getFilePath(){return this.filePath}setKitName(e){return e?(this.kitName=e,this):this}getKitName(){return this.kitName}setsubSystem(e){return e?(this.subSystem=e,this):this}getsubSystem(){return this.subSystem}setApiNumber(e){return this.apiNumber=e,this}getApiNumber(){return this.apiNumber}}},40149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parentApiTypeSet=t.isNotApiSet=t.incompatibleApiDiffTypes=t.apiChangeMap=t.diffMap=t.diffTypeMap=t.ApiDiffType=t.ApiStatusCode=t.DiffNumberInfo=t.DiffTypeInfo=t.BasicDiffInfo=void 0;const n=r(44791),i=r(8136);class a{constructor(){this.apiType=a.EMPTY,this.statusCode=o.DEFAULT,this.oldApiDefinedText=a.EMPTY,this.newApiDefinedText=a.EMPTY,this.oldApiName=a.EMPTY,this.newApiName=a.EMPTY,this.oldDtsName=a.EMPTY,this.newDtsName=a.EMPTY,this.diffType=s.DEFAULT,this.diffMessage="",this.changeLogUrl="",this.changeLogs=[],this.isCompatible=!0,this.oldHierarchicalRelations=[],this.newHierarchicalRelations=[],this.oldPos={line:-1,character:-1},this.newPos={line:-1,character:-1},this.oldDescription="",this.newDescription="",this.oldSyscapField="",this.newSyscapField="",this.oldKitInfo="",this.newKitInfo="",this.isSystemapi=!1,this.isSameNameFunction=!1}setApiType(e){return this.apiType=e||a.EMPTY,this}getApiType(){return this.apiType}getStatusCode(){return this.statusCode}setStatusCode(e){return this.statusCode=e,this}setOldApiDefinedText(e){return this.oldApiDefinedText=e,this}getOldApiDefinedText(){return this.oldApiDefinedText}setNewApiDefinedText(e){return this.newApiDefinedText=e,this}getNewApiDefinedText(){return this.newApiDefinedText}setOldApiName(e){return this.oldApiName=e,this}getOldApiName(){return this.oldApiName}setNewApiName(e){return this.newApiName=e,this}getNewApiName(){return this.newApiName}setOldDtsName(e){return this.oldDtsName=e,this}getOldDtsName(){return this.oldDtsName}setNewDtsName(e){return this.newDtsName=e,this}getNewDtsName(){return this.newDtsName}setDiffType(e){return this.diffType=e,this}getDiffType(){return this.diffType}setDiffMessage(e){return this.diffMessage=e,this}getDiffMessage(){return this.diffMessage}setChangeLogUrl(e){return this.changeLogUrl=e,this}getChangeLogUrl(){return this.changeLogUrl}addChangeLogs(e){return this.changeLogs.push(e),this}getChangeLogs(){return this.changeLogs}setIsCompatible(e){return this.isCompatible=e,this}getIsCompatible(){return this.isCompatible}setOldHierarchicalRelations(e){return this.oldHierarchicalRelations=e,this}getOldHierarchicalRelations(){return this.oldHierarchicalRelations}setNewHierarchicalRelations(e){return this.newHierarchicalRelations=e,this}getNewHierarchicalRelations(){return this.newHierarchicalRelations}setOldPos(e){return this.oldPos=e,this}getOldPos(){return this.oldPos}setNewPos(e){return this.newPos=e,this}getNewPos(){return this.newPos}getOldDescription(){return this.oldDescription}setOldDescription(e){return this.oldDescription=e,this}getNewDescription(){return this.newDescription}setNewDescription(e){return this.newDescription=e,this}getOldApiInfo(){return""}getParentModuleName(e){let t="global";return e.length>i.NumberConstant.RELATION_LENGTH&&(t=e[e.length-i.NumberConstant.RELATION_LENGTH]),t}setOldSyscapField(e){return this.oldSyscapField=e,this}getOldSyscapField(){return this.oldSyscapField}setNewSyscapField(e){return this.newSyscapField=e,this}getNewSyscapField(){return this.newSyscapField}setOldKitInfo(e){return this.oldKitInfo=e,this}getOldKitInfo(){return this.oldKitInfo}setNewKitInfo(e){return this.newKitInfo=e,this}getNewKitInfo(){return this.newKitInfo}setIsSystemapi(e){return e&&(this.isSystemapi=e),this}getIsSystemapi(){return this.isSystemapi}setIsSameNameFunction(e){return this.isSameNameFunction=e,this}getIsSameNameFunction(){return this.isSameNameFunction}}t.BasicDiffInfo=a,a.EMPTY="";t.DiffTypeInfo=class{constructor(e,t,r,n){this.diffType=s.DEFAULT,this.statusCode=o.DEFAULT,this.oldMessage="",this.newMessage="",void 0!==e&&this.setStatusCode(e),t&&this.setDiffType(t),r&&this.setOldMessage(r),n&&this.setNewMessage(n)}getStatusCode(){return this.statusCode}setStatusCode(e){return this.statusCode=e,this}getDiffType(){return this.diffType}setDiffType(e){return this.diffType=e,this}getOldMessage(){return this.oldMessage}setOldMessage(e){return this.oldMessage=e,this}getNewMessage(){return this.newMessage}setNewMessage(e){return this.newMessage=e,this}};var o,s;t.DiffNumberInfo=class{constructor(){this.apiName="",this.kitName="",this.subsystem="",this.apiType="",this.allDiffType=[],this.allChangeType=[],this.compatibleInfo={},this.oldDiffMessage=[],this.newDiffMessage=[],this.allCompatible=[],this.diffTypeNumber=0,this.isApi=!0,this.apiRelation="",this.isSystemapi=!1,this.isSameNameFunction=!1}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setKitName(e){return e?(this.kitName=e,this):this}getKitName(){return this.kitName}setSubsystem(e){return e?(this.subsystem=e,this):this}getSubsystem(){return this.subsystem}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setAllDiffType(e){return this.allDiffType.push(e),this}getAllDiffType(){return this.allDiffType}setOldDiffMessage(e){return"-1"===e||""===e?(this.oldDiffMessage.push("NA"),this):(this.oldDiffMessage.push(e),this)}getOldDiffMessage(){return this.oldDiffMessage}setNewDiffMessage(e){return"-1"===e||""===e?(this.newDiffMessage.push("NA"),this):(this.newDiffMessage.push(e),this)}getNewDiffMessage(){return this.newDiffMessage}setAllChangeType(e){return e?(this.allChangeType.push(e),this):this}getAllChangeType(){return this.allChangeType}setAllCompatible(e){return this.allCompatible.push(e),this}getAllCompatible(){return this.allCompatible}setDiffTypeNumber(e){return this.diffTypeNumber=e,this}getDiffTypeNumber(){return this.diffTypeNumber}setIsApi(e){return this.isApi=e,this}getIsApi(){return this.isApi}setApiRelation(e){return this.apiRelation=e,this}getApiRelation(){return this.apiRelation}setIsSystemapi(e){return this.isSystemapi=e,this}getIsSystemapi(){return this.isSystemapi}setIsSameNameFunction(e){return this.isSameNameFunction=e,this}getIsSameNameFunction(){return this.isSameNameFunction}},function(e){e[e.DEFAULT=-1]="DEFAULT",e[e.DELETE=0]="DELETE",e[e.DELETE_DTS=1]="DELETE_DTS",e[e.DELETE_CLASS=2]="DELETE_CLASS",e[e.NEW_API=3]="NEW_API",e[e.VERSION_CHNAGES=4]="VERSION_CHNAGES",e[e.DEPRECATED_CHNAGES=5]="DEPRECATED_CHNAGES",e[e.NEW_ERRORCODE=6]="NEW_ERRORCODE",e[e.ERRORCODE_CHANGES=7]="ERRORCODE_CHANGES",e[e.SYSCAP_CHANGES=8]="SYSCAP_CHANGES",e[e.SYSTEM_API_CHNAGES=9]="SYSTEM_API_CHNAGES",e[e.PERMISSION_DELETE=10]="PERMISSION_DELETE",e[e.PERMISSION_NEW=11]="PERMISSION_NEW",e[e.PERMISSION_CHANGES=12]="PERMISSION_CHANGES",e[e.MODEL_CHNAGES=13]="MODEL_CHNAGES",e[e.TYPE_CHNAGES=14]="TYPE_CHNAGES",e[e.CLASS_CHANGES=15]="CLASS_CHANGES",e[e.FUNCTION_CHANGES=16]="FUNCTION_CHANGES",e[e.CHANGELOG=17]="CHANGELOG",e[e.DTS_CHANGED=18]="DTS_CHANGED",e[e.FORM_CHANGED=19]="FORM_CHANGED",e[e.CROSSPLATFORM_CHANGED=20]="CROSSPLATFORM_CHANGED",e[e.NEW_DTS=21]="NEW_DTS",e[e.NEW_CLASS=22]="NEW_CLASS",e[e.NEW_DECORATOR=23]="NEW_DECORATOR",e[e.DELETE_DECORATOR=24]="DELETE_DECORATOR",e[e.KIT_CHANGE=26]="KIT_CHANGE",e[e.ATOMICSERVICE_CHANGE=27]="ATOMICSERVICE_CHANGE",e[e.ERRORCODE_DELETE=28]="ERRORCODE_DELETE",e[e.EXPORT_NAME_CHANGE=29]="EXPORT_NAME_CHANGE",e[e.EXPORT_NAME_NUMBER_ADD=30]="EXPORT_NAME_NUMBER_ADD",e[e.EXPORT_NAME_NUMBER_REDUCE=31]="EXPORT_NAME_NUMBER_REDUCE"}(o=t.ApiStatusCode||(t.ApiStatusCode={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.SYSTEM_TO_PUBLIC=1]="SYSTEM_TO_PUBLIC",e[e.PUBLIC_TO_SYSTEM=2]="PUBLIC_TO_SYSTEM",e[e.NA_TO_STAGE=3]="NA_TO_STAGE",e[e.NA_TO_FA=4]="NA_TO_FA",e[e.FA_TO_STAGE=5]="FA_TO_STAGE",e[e.STAGE_TO_FA=6]="STAGE_TO_FA",e[e.STAGE_TO_NA=7]="STAGE_TO_NA",e[e.FA_TO_NA=8]="FA_TO_NA",e[e.NA_TO_CARD=9]="NA_TO_CARD",e[e.CARD_TO_NA=10]="CARD_TO_NA",e[e.NA_TO_CROSS_PLATFORM=11]="NA_TO_CROSS_PLATFORM",e[e.CROSS_PLATFORM_TO_NA=12]="CROSS_PLATFORM_TO_NA",e[e.SYSCAP_NA_TO_HAVE=13]="SYSCAP_NA_TO_HAVE",e[e.SYSCAP_HAVE_TO_NA=14]="SYSCAP_HAVE_TO_NA",e[e.SYSCAP_A_TO_B=15]="SYSCAP_A_TO_B",e[e.DEPRECATED_NA_TO_HAVE=16]="DEPRECATED_NA_TO_HAVE",e[e.DEPRECATED_HAVE_TO_NA=17]="DEPRECATED_HAVE_TO_NA",e[e.DEPRECATED_A_TO_B=18]="DEPRECATED_A_TO_B",e[e.DEPRECATED_NOT_All=19]="DEPRECATED_NOT_All",e[e.ERROR_CODE_NA_TO_HAVE=20]="ERROR_CODE_NA_TO_HAVE",e[e.ERROR_CODE_ADD=21]="ERROR_CODE_ADD",e[e.ERROR_CODE_REDUCE=22]="ERROR_CODE_REDUCE",e[e.ERROR_CODE_CHANGE=23]="ERROR_CODE_CHANGE",e[e.PERMISSION_NA_TO_HAVE=24]="PERMISSION_NA_TO_HAVE",e[e.PERMISSION_HAVE_TO_NA=25]="PERMISSION_HAVE_TO_NA",e[e.PERMISSION_RANGE_BIGGER=26]="PERMISSION_RANGE_BIGGER",e[e.PERMISSION_RANGE_SMALLER=27]="PERMISSION_RANGE_SMALLER",e[e.PERMISSION_RANGE_CHANGE=28]="PERMISSION_RANGE_CHANGE",e[e.TYPE_RANGE_BIGGER=29]="TYPE_RANGE_BIGGER",e[e.TYPE_RANGE_SMALLER=30]="TYPE_RANGE_SMALLER",e[e.TYPE_RANGE_CHANGE=31]="TYPE_RANGE_CHANGE",e[e.API_NAME_CHANGE=32]="API_NAME_CHANGE",e[e.FUNCTION_RETURN_TYPE_ADD=33]="FUNCTION_RETURN_TYPE_ADD",e[e.FUNCTION_RETURN_TYPE_REDUCE=34]="FUNCTION_RETURN_TYPE_REDUCE",e[e.FUNCTION_RETURN_TYPE_CHANGE=35]="FUNCTION_RETURN_TYPE_CHANGE",e[e.FUNCTION_PARAM_POS_CHANGE=36]="FUNCTION_PARAM_POS_CHANGE",e[e.FUNCTION_PARAM_UNREQUIRED_ADD=37]="FUNCTION_PARAM_UNREQUIRED_ADD",e[e.FUNCTION_PARAM_REQUIRED_ADD=38]="FUNCTION_PARAM_REQUIRED_ADD",e[e.FUNCTION_PARAM_REDUCE=39]="FUNCTION_PARAM_REDUCE",e[e.FUNCTION_PARAM_TO_UNREQUIRED=40]="FUNCTION_PARAM_TO_UNREQUIRED",e[e.FUNCTION_PARAM_TO_REQUIRED=41]="FUNCTION_PARAM_TO_REQUIRED",e[e.FUNCTION_PARAM_NAME_CHANGE=42]="FUNCTION_PARAM_NAME_CHANGE",e[e.FUNCTION_PARAM_TYPE_CHANGE=43]="FUNCTION_PARAM_TYPE_CHANGE",e[e.FUNCTION_PARAM_TYPE_ADD=44]="FUNCTION_PARAM_TYPE_ADD",e[e.FUNCTION_PARAM_TYPE_REDUCE=45]="FUNCTION_PARAM_TYPE_REDUCE",e[e.FUNCTION_PARAM_CHANGE=46]="FUNCTION_PARAM_CHANGE",e[e.FUNCTION_CHANGES=47]="FUNCTION_CHANGES",e[e.PROPERTY_READONLY_TO_UNREQUIRED=48]="PROPERTY_READONLY_TO_UNREQUIRED",e[e.PROPERTY_READONLY_TO_REQUIRED=49]="PROPERTY_READONLY_TO_REQUIRED",e[e.PROPERTY_WRITABLE_TO_UNREQUIRED=50]="PROPERTY_WRITABLE_TO_UNREQUIRED",e[e.PROPERTY_WRITABLE_TO_REQUIRED=51]="PROPERTY_WRITABLE_TO_REQUIRED",e[e.PROPERTY_TYPE_CHANGE=52]="PROPERTY_TYPE_CHANGE",e[e.PROPERTY_READONLY_ADD=53]="PROPERTY_READONLY_ADD",e[e.PROPERTY_READONLY_REDUCE=54]="PROPERTY_READONLY_REDUCE",e[e.PROPERTY_WRITABLE_ADD=55]="PROPERTY_WRITABLE_ADD",e[e.PROPERTY_WRITABLE_REDUCE=56]="PROPERTY_WRITABLE_REDUCE",e[e.CONSTANT_VALUE_CHANGE=57]="CONSTANT_VALUE_CHANGE",e[e.TYPE_ALIAS_CHANGE=58]="TYPE_ALIAS_CHANGE",e[e.TYPE_ALIAS_ADD=59]="TYPE_ALIAS_ADD",e[e.TYPE_ALIAS_REDUCE=60]="TYPE_ALIAS_REDUCE",e[e.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD=61]="TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD",e[e.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE=62]="TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE",e[e.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE=63]="TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE",e[e.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE=64]="TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE",e[e.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD=65]="TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD",e[e.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD=66]="TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD",e[e.TYPE_ALIAS_FUNCTION_PARAM_REDUCE=67]="TYPE_ALIAS_FUNCTION_PARAM_REDUCE",e[e.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE=68]="TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE",e[e.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED=69]="TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED",e[e.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED=70]="TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED",e[e.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD=71]="TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD",e[e.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE=72]="TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE",e[e.TYPE_ALIAS_FUNCTION_PARAM_CHANGE=73]="TYPE_ALIAS_FUNCTION_PARAM_CHANGE",e[e.ENUM_MEMBER_VALUE_CHANGE=74]="ENUM_MEMBER_VALUE_CHANGE",e[e.ADD=75]="ADD",e[e.REDUCE=76]="REDUCE",e[e.NEW_DECORATOR=77]="NEW_DECORATOR",e[e.DELETE_DECORATOR=78]="DELETE_DECORATOR",e[e.SINCE_VERSION_NA_TO_HAVE=79]="SINCE_VERSION_NA_TO_HAVE",e[e.SINCE_VERSION_HAVE_TO_NA=80]="SINCE_VERSION_HAVE_TO_NA",e[e.SINCE_VERSION_A_TO_B=81]="SINCE_VERSION_A_TO_B",e[e.HISTORICAL_JSDOC_CHANGE=82]="HISTORICAL_JSDOC_CHANGE",e[e.HISTORICAL_API_CHANGE=83]="HISTORICAL_API_CHANGE",e[e.KIT_CHANGE=84]="KIT_CHANGE",e[e.ATOMIC_SERVICE_NA_TO_HAVE=85]="ATOMIC_SERVICE_NA_TO_HAVE",e[e.ATOMIC_SERVICE_HAVE_TO_NA=86]="ATOMIC_SERVICE_HAVE_TO_NA",e[e.PROPERTY_TYPE_SIGN_CHANGE=87]="PROPERTY_TYPE_SIGN_CHANGE",e[e.KIT_HAVE_TO_NA=88]="KIT_HAVE_TO_NA",e[e.KIT_NA_TO_HAVE=89]="KIT_NA_TO_HAVE",e[e.NEW_SAME_NAME_FUNCTION=90]="NEW_SAME_NAME_FUNCTION",e[e.REDUCE_SAME_NAME_FUNCTION=91]="REDUCE_SAME_NAME_FUNCTION",e[e.EXPORT_NAME_CHANGE=92]="EXPORT_NAME_CHANGE",e[e.EXPORT_NAME_NUMBER_REDUCE=93]="EXPORT_NAME_NUMBER_REDUCE",e[e.EXPORT_NAME_NUMBER_ADD=94]="EXPORT_NAME_NUMBER_ADD"}(s=t.ApiDiffType||(t.ApiDiffType={})),t.diffTypeMap=new Map([[s.SYSTEM_TO_PUBLIC,"API访问级别变更"],[s.PUBLIC_TO_SYSTEM,"API访问级别变更"],[s.NA_TO_STAGE,"API模型切换"],[s.NA_TO_FA,"API模型切换"],[s.FA_TO_STAGE,"API模型切换"],[s.STAGE_TO_FA,"API模型切换"],[s.STAGE_TO_NA,"API模型切换"],[s.FA_TO_NA,"API模型切换"],[s.NA_TO_CARD,"API卡片权限变更"],[s.CARD_TO_NA,"API卡片权限变更"],[s.NA_TO_CROSS_PLATFORM,"API跨平台权限变更"],[s.CROSS_PLATFORM_TO_NA,"API跨平台权限变更"],[s.SYSCAP_NA_TO_HAVE,"syscap变更"],[s.SYSCAP_HAVE_TO_NA,"syscap变更"],[s.SYSCAP_A_TO_B,"syscap变更"],[s.DEPRECATED_NA_TO_HAVE,"API废弃版本变更"],[s.DEPRECATED_HAVE_TO_NA,"API废弃版本变更"],[s.DEPRECATED_NOT_All,"API废弃版本变更"],[s.DEPRECATED_A_TO_B,"API废弃版本变更"],[s.ERROR_CODE_NA_TO_HAVE,"错误码变更"],[s.ERROR_CODE_ADD,"错误码变更"],[s.ERROR_CODE_REDUCE,"错误码变更"],[s.ERROR_CODE_CHANGE,"错误码变更"],[s.PERMISSION_NA_TO_HAVE,"权限变更"],[s.PERMISSION_HAVE_TO_NA,"权限变更"],[s.PERMISSION_RANGE_BIGGER,"权限变更"],[s.PERMISSION_RANGE_SMALLER,"权限变更"],[s.PERMISSION_RANGE_CHANGE,"权限变更"],[s.TYPE_RANGE_BIGGER,"自定义类型变更"],[s.TYPE_RANGE_SMALLER,"自定义类型变更"],[s.TYPE_RANGE_CHANGE,"自定义类型变更"],[s.API_NAME_CHANGE,"API名称变更"],[s.FUNCTION_RETURN_TYPE_ADD,"函数变更"],[s.FUNCTION_RETURN_TYPE_REDUCE,"函数变更"],[s.FUNCTION_RETURN_TYPE_CHANGE,"函数变更"],[s.FUNCTION_PARAM_POS_CHANGE,"函数变更"],[s.FUNCTION_PARAM_UNREQUIRED_ADD,"函数变更"],[s.FUNCTION_PARAM_REQUIRED_ADD,"函数变更"],[s.FUNCTION_PARAM_REDUCE,"函数变更"],[s.FUNCTION_PARAM_TO_UNREQUIRED,"函数变更"],[s.FUNCTION_PARAM_TO_REQUIRED,"函数变更"],[s.FUNCTION_PARAM_NAME_CHANGE,"函数变更"],[s.FUNCTION_PARAM_TYPE_CHANGE,"函数变更"],[s.FUNCTION_PARAM_TYPE_ADD,"函数变更"],[s.FUNCTION_PARAM_TYPE_REDUCE,"函数变更"],[s.FUNCTION_PARAM_CHANGE,"函数变更"],[s.FUNCTION_CHANGES,"函数变更"],[s.PROPERTY_READONLY_TO_UNREQUIRED,"属性变更"],[s.PROPERTY_READONLY_TO_REQUIRED,"属性变更"],[s.PROPERTY_WRITABLE_TO_UNREQUIRED,"属性变更"],[s.PROPERTY_WRITABLE_TO_REQUIRED,"属性变更"],[s.PROPERTY_TYPE_CHANGE,"属性变更"],[s.PROPERTY_READONLY_ADD,"属性变更"],[s.PROPERTY_READONLY_REDUCE,"属性变更"],[s.PROPERTY_WRITABLE_ADD,"属性变更"],[s.PROPERTY_WRITABLE_REDUCE,"属性变更"],[s.PROPERTY_TYPE_SIGN_CHANGE,"属性变更"],[s.CONSTANT_VALUE_CHANGE,"常量变更"],[s.TYPE_ALIAS_CHANGE,"自定义类型变更"],[s.TYPE_ALIAS_ADD,"自定义类型变更"],[s.TYPE_ALIAS_REDUCE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD,"函数变更"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE,"函数变更"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE,"函数变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,"自定义类型变更"],[s.ENUM_MEMBER_VALUE_CHANGE,"枚举赋值发生改变"],[s.ADD,"新增API"],[s.REDUCE,"删除API"],[s.DELETE_DECORATOR,"删除装饰器"],[s.NEW_DECORATOR,"新增装饰器"],[s.SINCE_VERSION_A_TO_B,"起始版本有变化"],[s.SINCE_VERSION_HAVE_TO_NA,"起始版本有变化"],[s.SINCE_VERSION_NA_TO_HAVE,"起始版本有变化"],[s.KIT_CHANGE,"kit变更"],[s.KIT_HAVE_TO_NA,"删除kit"],[s.KIT_NA_TO_HAVE,"新增kit"],[s.ATOMIC_SERVICE_HAVE_TO_NA,"API从支持元服务到不支持元服务"],[s.ATOMIC_SERVICE_NA_TO_HAVE,"API从不支持元服务到支持元服务"],[s.NEW_SAME_NAME_FUNCTION,"新增同名函数"],[s.REDUCE_SAME_NAME_FUNCTION,"删除同名函数"],[s.EXPORT_NAME_CHANGE,"export名称变更"],[s.EXPORT_NAME_NUMBER_REDUCE,"删除export名称"],[s.EXPORT_NAME_NUMBER_ADD,"新增export名称"]]),t.diffMap=new Map([[s.SYSTEM_TO_PUBLIC,"从系统API变更为公开API"],[s.PUBLIC_TO_SYSTEM,"从公开API变更为系统API"],[s.NA_TO_STAGE,"从无模型使用限制到仅在Stage模型下使用"],[s.NA_TO_FA,"从无模型使用限制到仅在FA模型下使用"],[s.FA_TO_STAGE,"从仅在FA模型下使用到仅在Stage模型下使用"],[s.STAGE_TO_FA,"从仅在Stage模型下使用到仅在FA模型下使用"],[s.STAGE_TO_NA,"从仅在Stage模型下使用到无模型使用限制"],[s.FA_TO_NA,"从仅在FA模型下使用到无模型使用限制"],[s.NA_TO_CARD,"从不支持卡片到支持卡片"],[s.CARD_TO_NA,"从支持卡片到不支持卡片"],[s.NA_TO_CROSS_PLATFORM,"从不支持跨平台到支持跨平台"],[s.CROSS_PLATFORM_TO_NA,"从支持跨平台到不支持跨平台"],[s.SYSCAP_NA_TO_HAVE,"从没有syscap到有syscap"],[s.SYSCAP_HAVE_TO_NA,"从有syscap到没有syscap"],[s.SYSCAP_A_TO_B,"syscap发生改变"],[s.DEPRECATED_NA_TO_HAVE,"接口变更为废弃"],[s.DEPRECATED_HAVE_TO_NA,"废弃接口变更为不废弃"],[s.DEPRECATED_NOT_All,"接口变更为废弃"],[s.DEPRECATED_A_TO_B,"接口废弃版本发生变化"],[s.ERROR_CODE_NA_TO_HAVE,"错误码从无到有"],[s.ERROR_CODE_ADD,"错误码增加"],[s.ERROR_CODE_REDUCE,"错误码减少"],[s.ERROR_CODE_CHANGE,"错误码的code值发生变化"],[s.PERMISSION_NA_TO_HAVE,"权限从无到有"],[s.PERMISSION_HAVE_TO_NA,"权限从有到无"],[s.PERMISSION_RANGE_BIGGER,"增加or或减少and权限"],[s.PERMISSION_RANGE_SMALLER,"减少or或增加and权限"],[s.PERMISSION_RANGE_CHANGE,"权限发生改变无法判断范围变化"],[s.TYPE_RANGE_BIGGER,"类型范围变大"],[s.TYPE_RANGE_SMALLER,"类型范围变小"],[s.TYPE_RANGE_CHANGE,"类型范围改变"],[s.API_NAME_CHANGE,"API名称变更"],[s.FUNCTION_RETURN_TYPE_ADD,"函数返回值类型扩大"],[s.FUNCTION_RETURN_TYPE_REDUCE,"函数返回值类型缩小"],[s.FUNCTION_RETURN_TYPE_CHANGE,"函数返回值类型改变"],[s.FUNCTION_PARAM_POS_CHANGE,"函数参数位置发生改变"],[s.FUNCTION_PARAM_UNREQUIRED_ADD,"函数新增可选参数"],[s.FUNCTION_PARAM_REQUIRED_ADD,"函数新增必选参数"],[s.FUNCTION_PARAM_REDUCE,"函数删除参数"],[s.FUNCTION_PARAM_TO_UNREQUIRED,"函数中的必选参数变为可选参数"],[s.FUNCTION_PARAM_TO_REQUIRED,"函数中的可选参数变为必选参数"],[s.FUNCTION_PARAM_NAME_CHANGE,"函数中的参数名称发生改变"],[s.FUNCTION_PARAM_TYPE_CHANGE,"函数的参数类型变更"],[s.FUNCTION_PARAM_TYPE_ADD,"函数的参数类型范围扩大"],[s.FUNCTION_PARAM_TYPE_REDUCE,"函数的参数类型范围缩小"],[s.FUNCTION_PARAM_CHANGE,"函数的参数变更"],[s.FUNCTION_CHANGES,"函数有变化"],[s.PROPERTY_READONLY_TO_UNREQUIRED,"只读属性由必选变为可选"],[s.PROPERTY_READONLY_TO_REQUIRED,"只读属性由可选变为必选"],[s.PROPERTY_WRITABLE_TO_UNREQUIRED,"可写属性由必选变为可选"],[s.PROPERTY_WRITABLE_TO_REQUIRED,"可写属性由可选变为必选"],[s.PROPERTY_TYPE_CHANGE,"属性类型发生改变"],[s.PROPERTY_TYPE_SIGN_CHANGE,"属性类型发生改变"],[s.PROPERTY_READONLY_ADD,"只读属性类型范围扩大"],[s.PROPERTY_READONLY_REDUCE,"只读属性类型范围缩小"],[s.PROPERTY_WRITABLE_ADD,"可写属性类型范围扩大"],[s.PROPERTY_WRITABLE_REDUCE,"可写属性类型范围缩小"],[s.CONSTANT_VALUE_CHANGE,"常量值发生改变"],[s.TYPE_ALIAS_CHANGE,"自定义类型值改变"],[s.TYPE_ALIAS_ADD,"自定义类型值范围扩大"],[s.TYPE_ALIAS_REDUCE,"自定义类型值范围缩小"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD,"自定义方法类型返回值类型扩大"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE,"自定义方法类型返回值类型缩小"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE,"自定义方法类型返回值类型改变"],[s.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,"自定义方法类型参数位置发生改变"],[s.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,"自定义方法类型新增可选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,"自定义方法类型新增必选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,"自定义方法类型删除参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,"自定义方法类型的必选参数变为可选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,"自定义方法类型的可选参数变为必选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,"自定义方法类型的参数类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,"自定义方法类型的参数类型范围扩大"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,"自定义方法类型的参数类型范围缩小"],[s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,"自定义方法类型的参数变更"],[s.ENUM_MEMBER_VALUE_CHANGE,"枚举赋值发生改变"],[s.ADD,"新增API"],[s.REDUCE,"删除API"],[s.DELETE_DECORATOR,"删除装饰器"],[s.NEW_DECORATOR,"新增装饰器"],[s.SINCE_VERSION_A_TO_B,"起始版本号变更"],[s.SINCE_VERSION_HAVE_TO_NA,"起始版本号删除"],[s.SINCE_VERSION_NA_TO_HAVE,"起始版本号新增"],[s.HISTORICAL_JSDOC_CHANGE,"历史版本jsdoc变更"],[s.HISTORICAL_API_CHANGE,"历史版本API变更"],[s.KIT_CHANGE,"kit变更"],[s.KIT_HAVE_TO_NA,"kit信息从有到无"],[s.KIT_NA_TO_HAVE,"kit信息从无到有"],[s.ATOMIC_SERVICE_HAVE_TO_NA,"API从支持元服务到不支持元服务"],[s.ATOMIC_SERVICE_NA_TO_HAVE,"API从不支持元服务到支持元服务"],[s.NEW_SAME_NAME_FUNCTION,"新增同名函数"],[s.REDUCE_SAME_NAME_FUNCTION,"删除同名函数"],[s.EXPORT_NAME_CHANGE,"export名称变更"],[s.EXPORT_NAME_NUMBER_REDUCE,"删除export名称"],[s.EXPORT_NAME_NUMBER_ADD,"新增export名称"]]),t.apiChangeMap=new Map([[s.SYSTEM_TO_PUBLIC,"API修改(约束变化)"],[s.PUBLIC_TO_SYSTEM,"API修改(约束变化)"],[s.NA_TO_STAGE,"API修改(约束变化)"],[s.NA_TO_FA,"API修改(约束变化)"],[s.FA_TO_STAGE,"API修改(约束变化)"],[s.STAGE_TO_FA,"API修改(约束变化)"],[s.STAGE_TO_NA,"API修改(约束变化)"],[s.FA_TO_NA,"API修改(约束变化)"],[s.NA_TO_CARD,"API修改(约束变化)"],[s.CARD_TO_NA,"API修改(约束变化)"],[s.NA_TO_CROSS_PLATFORM,"API修改(约束变化)"],[s.CROSS_PLATFORM_TO_NA,"API修改(约束变化)"],[s.SYSCAP_NA_TO_HAVE,"API修改(约束变化)"],[s.SYSCAP_HAVE_TO_NA,"API修改(约束变化)"],[s.SYSCAP_A_TO_B,"API修改(约束变化)"],[s.DEPRECATED_NA_TO_HAVE,"API废弃"],[s.DEPRECATED_HAVE_TO_NA,"API废弃"],[s.DEPRECATED_NOT_All,"API修改(约束变化)"],[s.DEPRECATED_A_TO_B,"API废弃"],[s.ERROR_CODE_NA_TO_HAVE,"API修改(约束变化)"],[s.ERROR_CODE_ADD,"API修改(原型修改)"],[s.ERROR_CODE_REDUCE,"API修改(原型修改)"],[s.ERROR_CODE_CHANGE,"API修改(原型修改)"],[s.PERMISSION_NA_TO_HAVE,"API修改(约束变化)"],[s.PERMISSION_HAVE_TO_NA,"API修改(约束变化)"],[s.PERMISSION_RANGE_BIGGER,"API修改(约束变化)"],[s.PERMISSION_RANGE_SMALLER,"API修改(约束变化)"],[s.PERMISSION_RANGE_CHANGE,"API修改(约束变化)"],[s.TYPE_RANGE_BIGGER,"API修改(原型修改)"],[s.TYPE_RANGE_SMALLER,"API修改(原型修改)"],[s.TYPE_RANGE_CHANGE,"API修改(原型修改)"],[s.API_NAME_CHANGE,"API修改(原型修改)"],[s.FUNCTION_RETURN_TYPE_ADD,"API修改(原型修改)"],[s.FUNCTION_RETURN_TYPE_REDUCE,"API修改(原型修改)"],[s.FUNCTION_RETURN_TYPE_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_POS_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_UNREQUIRED_ADD,"API修改(原型修改)"],[s.FUNCTION_PARAM_REQUIRED_ADD,"API修改(原型修改)"],[s.FUNCTION_PARAM_REDUCE,"API修改(原型修改)"],[s.FUNCTION_PARAM_TO_UNREQUIRED,"API修改(原型修改)"],[s.FUNCTION_PARAM_TO_REQUIRED,"API修改(原型修改)"],[s.FUNCTION_PARAM_NAME_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_TYPE_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_TYPE_ADD,"API修改(原型修改)"],[s.FUNCTION_PARAM_TYPE_REDUCE,"API修改(原型修改)"],[s.FUNCTION_CHANGES,"API修改(原型修改)"],[s.FUNCTION_PARAM_CHANGE,"API修改(原型修改)"],[s.PROPERTY_READONLY_TO_UNREQUIRED,"API修改(约束变化)"],[s.PROPERTY_READONLY_TO_REQUIRED,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_TO_UNREQUIRED,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_TO_REQUIRED,"API修改(约束变化)"],[s.PROPERTY_TYPE_CHANGE,"API修改(原型修改)"],[s.PROPERTY_TYPE_SIGN_CHANGE,"API修改(原型修改)"],[s.PROPERTY_READONLY_ADD,"API修改(约束变化)"],[s.PROPERTY_READONLY_REDUCE,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_ADD,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_REDUCE,"API修改(约束变化)"],[s.CONSTANT_VALUE_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_REDUCE,"API修改(原型修改)"],[s.ENUM_MEMBER_VALUE_CHANGE,"API修改(原型修改)"],[s.ADD,"API新增"],[s.REDUCE,"API删除"],[s.DELETE_DECORATOR,"API修改(约束变化)"],[s.NEW_DECORATOR,"API修改(约束变化)"],[s.SINCE_VERSION_A_TO_B,"API修改(约束变化)"],[s.SINCE_VERSION_HAVE_TO_NA,"API修改(约束变化)"],[s.SINCE_VERSION_NA_TO_HAVE,"API修改(约束变化)"],[s.KIT_CHANGE,"非API变更"],[s.KIT_HAVE_TO_NA,"非API变更"],[s.KIT_NA_TO_HAVE,"非API变更"],[s.EXPORT_NAME_CHANGE,"非API变更"],[s.EXPORT_NAME_NUMBER_REDUCE,"非API变更"],[s.EXPORT_NAME_NUMBER_ADD,"非API变更"],[s.ATOMIC_SERVICE_HAVE_TO_NA,"API修改(约束变化)"],[s.ATOMIC_SERVICE_NA_TO_HAVE,"API修改(约束变化)"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,"API修改(原型修改)"],[s.NEW_SAME_NAME_FUNCTION,"API修改(原型修改)"],[s.REDUCE_SAME_NAME_FUNCTION,"API修改(原型修改)"]]),t.incompatibleApiDiffTypes=new Set([s.PUBLIC_TO_SYSTEM,s.NA_TO_STAGE,s.NA_TO_FA,s.FA_TO_STAGE,s.STAGE_TO_FA,s.CARD_TO_NA,s.CROSS_PLATFORM_TO_NA,s.ERROR_CODE_NA_TO_HAVE,s.ERROR_CODE_CHANGE,s.PERMISSION_NA_TO_HAVE,s.PERMISSION_RANGE_SMALLER,s.PERMISSION_RANGE_CHANGE,s.API_NAME_CHANGE,s.FUNCTION_RETURN_TYPE_ADD,s.FUNCTION_RETURN_TYPE_CHANGE,s.FUNCTION_PARAM_POS_CHANGE,s.FUNCTION_PARAM_REQUIRED_ADD,s.FUNCTION_PARAM_REDUCE,s.FUNCTION_PARAM_TO_REQUIRED,s.FUNCTION_PARAM_TYPE_CHANGE,s.FUNCTION_PARAM_TYPE_REDUCE,s.FUNCTION_PARAM_CHANGE,s.FUNCTION_CHANGES,s.PROPERTY_READONLY_TO_REQUIRED,s.PROPERTY_WRITABLE_TO_UNREQUIRED,s.PROPERTY_WRITABLE_TO_REQUIRED,s.PROPERTY_TYPE_CHANGE,s.PROPERTY_READONLY_ADD,s.PROPERTY_WRITABLE_ADD,s.PROPERTY_WRITABLE_REDUCE,s.CONSTANT_VALUE_CHANGE,s.TYPE_ALIAS_CHANGE,s.TYPE_ALIAS_ADD,s.TYPE_ALIAS_REDUCE,s.ENUM_MEMBER_VALUE_CHANGE,s.REDUCE,s.HISTORICAL_JSDOC_CHANGE,s.HISTORICAL_API_CHANGE,s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,s.FUNCTION_RETURN_TYPE_REDUCE,s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,s.ATOMIC_SERVICE_HAVE_TO_NA,s.DELETE_DECORATOR,s.NEW_DECORATOR,s.SYSCAP_A_TO_B,s.SYSCAP_HAVE_TO_NA,s.SYSCAP_NA_TO_HAVE,s.KIT_CHANGE,s.KIT_HAVE_TO_NA,s.REDUCE_SAME_NAME_FUNCTION,s.EXPORT_NAME_CHANGE,s.EXPORT_NAME_NUMBER_REDUCE]),t.isNotApiSet=new Set([n.ApiType.NAMESPACE,n.ApiType.ENUM,n.ApiType.SOURCE_FILE]),t.parentApiTypeSet=new Set([n.ApiType.INTERFACE,n.ApiType.STRUCT,n.ApiType.CLASS])},44791:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.notJsDocApiTypes=t.containerApiTypes=t.ParserParam=t.ParentClass=t.GenericInfo=t.ParamInfo=t.TypeLocationInfo=t.MethodInfo=t.EnumValueInfo=t.TypeParamInfo=t.TypeAliasInfo=t.ConstantInfo=t.PropertyInfo=t.EnumInfo=t.ModuleInfo=t.StructInfo=t.NamespaceInfo=t.InterfaceInfo=t.ClassInfo=t.ApiInfo=t.ImportInfo=t.ExportDeclareInfo=t.ReferenceInfo=t.ExportDefaultInfo=t.BasicApiInfo=t.TypeAliasType=t.ApiType=void 0;const i=n(r(58843)),a=r(40745),o=r(8136),s=r(37583),c=r(28879),l=r(56405);var u;!function(e){e.SOURCE_FILE="SourceFile",e.REFERENCE_FILE="Reference",e.PROPERTY="Property",e.CLASS="Class",e.INTERFACE="Interface",e.NAMESPACE="Namespace",e.METHOD="Method",e.MODULE="Module",e.EXPORT="Export",e.EXPORT_DEFAULT="ExportDefault",e.CONSTANT="Constant",e.IMPORT="Import",e.DECLARE_CONST="DeclareConst",e.ENUM_VALUE="EnumValue",e.TYPE_ALIAS="TypeAlias",e.PARAM="Param",e.ENUM="Enum",e.STRUCT="Struct"}(u=t.ApiType||(t.ApiType={})),function(e){e.UNION_TYPE="UnionType",e.OBJECT_TYPE="ObjectType",e.TUPLE_TYPE="TupleType",e.REFERENCE_TYPE="ReferenceType"}(t.TypeAliasType||(t.TypeAliasType={}));class d{constructor(e="",t,r){this.node=void 0,this.filePath="",this.apiType="",this.definedText="",this.pos={line:-1,character:-1},this.parentApi=void 0,this.isExport=!1,this.apiName="",this.hierarchicalRelations=[],this.decorators=void 0,this.isStruct=!1,this.syscap="",this.currentVersion="-1",this.jsDocText="",this.isJoinType=!1,this.genericInfo=[],this.parentApiType="",this.fileAbsolutePath="",this.isSameNameFunction=!1,this.node=t,this.setParentApi(r),this.setParentApiType(r?.getApiType()),r&&(this.setFilePath(r.getFilePath()),this.setFileAbsolutePath(r.getFileAbsolutePath()),this.setIsStruct(r.getIsStruct())),this.setApiType(e);const n=t.getSourceFile(),i=t.getStart(),a=n.getLineAndCharacterOfPosition(i);a.character++,a.line++,this.setPos(a),t.decorators&&t.decorators.forEach((e=>{this.addDecorators([new c.DecoratorInfo(e)])}))}getNode(){return this.node}removeNode(){this.node=void 0}setFilePath(e){this.filePath=e}getFilePath(){return this.filePath}setFileAbsolutePath(e){this.fileAbsolutePath=e}getFileAbsolutePath(){return this.fileAbsolutePath}setApiType(e){this.apiType=e}getApiType(){return this.apiType}setDefinedText(e){this.definedText=e}getDefinedText(){return this.definedText}setPos(e){this.pos=e}getPos(){return this.pos}setParentApi(e){this.parentApi=e}getParentApi(){return this.parentApi}setParentApiType(e){e&&(this.parentApiType=e)}getParentApiType(){return this.parentApiType}setIsExport(e){this.isExport=e}getIsExport(){return this.isExport}setApiName(e){this.apiName=e,this.parentApi&&this.setHierarchicalRelations(this.parentApi.getHierarchicalRelations()),this.addHierarchicalRelation([e])}getApiName(){return this.apiName}setHierarchicalRelations(e){this.hierarchicalRelations=[...e]}getHierarchicalRelations(){return this.hierarchicalRelations}addHierarchicalRelation(e){this.hierarchicalRelations.push(...e)}setDecorators(e){this.decorators=e}addDecorators(e){this.decorators||(this.decorators=[]),this.decorators.push(...e)}getDecorators(){return this.decorators}setIsStruct(e){this.isStruct=e}getIsStruct(){return this.isStruct}setSyscap(e){this.syscap=e}getSyscap(){return this.syscap}setCurrentVersion(e){this.currentVersion=e}getCurrentVersion(){return this.currentVersion}setJsDocText(e){this.jsDocText=e}getJsDocText(){return this.jsDocText}setIsJoinType(e){this.isJoinType=e}getIsJoinType(){return this.isJoinType}setGenericInfo(e){this.genericInfo.push(e)}getGenericInfo(){return this.genericInfo}setIsSameNameFunction(e){this.isSameNameFunction=e}getIsSameNameFunction(){return this.isSameNameFunction}}t.BasicApiInfo=d;t.ExportDefaultInfo=class extends d{};t.ReferenceInfo=class extends d{constructor(){super(...arguments),this.pathName=""}setPathName(e){return this.pathName=e,this}getPathName(){return this.pathName}};t.ExportDeclareInfo=class extends d{constructor(){super(...arguments),this.exportValues=[]}addExportValues(e,t){this.exportValues.push({key:e,value:t||e})}getExportValues(){return this.exportValues}};t.ImportInfo=class extends d{constructor(){super(...arguments),this.importValues=[],this.importPath=""}addImportValue(e,t){this.importValues.push({key:e,value:t||e})}getImportValues(){return this.importValues}setImportPath(e){this.importPath=e}getImportPath(){return this.importPath}};class p extends d{constructor(e="",t,r){super(e,t,r),this.jsDocInfos=[];let n="NA",i="NA";r&&(n=this.getKitInfoFromParent(r).kitInfo,i=this.getKitInfoFromParent(r).fileTagContent);const a=l.JsDocProcessorHelper.processJsDocInfos(t,e,n,i),o=t.getFullText().substring(0,t.getFullText().length-t.getText().length).trim();this.setJsDocText(o),this.addJsDocInfos(a)}getKitInfoFromParent(e){const t=e.getJsDocInfos();let r="",n="NA";return t.forEach((e=>{r=e.getKit(),n=e.getFileTagContent()})),{kitInfo:r,fileTagContent:n}}getJsDocInfos(){return this.jsDocInfos}getLastJsDocInfo(){const e=this.jsDocInfos.length;if(0!==e)return this.jsDocInfos[e-1]}getPenultimateJsDocInfo(){const e=this.jsDocInfos.length;if(0!==e)return this.jsDocInfos[e-2]}addJsDocInfos(e){e.length>0&&this.setCurrentVersion(e[e.length-1]?.getSince()),this.jsDocInfos.push(...e)}addJsDocInfo(e){this.setCurrentVersion(e.getSince()),this.jsDocInfos.push(e)}}t.ApiInfo=p;t.ClassInfo=class extends p{constructor(){super(...arguments),this.parentClasses=[],this.childApis=[]}setParentClasses(e){this.parentClasses.push(e)}getParentClasses(){return this.parentClasses}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.InterfaceInfo=class extends p{constructor(){super(...arguments),this.parentClasses=[],this.childApis=[]}setParentClasses(e){this.parentClasses.push(e)}getParentClasses(){return this.parentClasses}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.NamespaceInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.StructInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.ModuleInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.EnumInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.PropertyInfo=class extends p{constructor(e="",t,r){super(e,t,r),this.type=[],this.isReadOnly=!1,this.isRequired=!1,this.isStatic=!1,this.typeKind=i.default.SyntaxKind.Unknown,this.typeLocations=[],this.objLocations=[];let n=t;this.setTypeKind(n.type?n.type.kind:i.default.SyntaxKind.Unknown)}addType(e){this.type.push(...e)}getType(){return this.type}setIsReadOnly(e){this.isReadOnly=e}getIsReadOnly(){return this.isReadOnly}setIsRequired(e){this.isRequired=e}getIsRequired(){return this.isRequired}setIsStatic(e){this.isStatic=e}getIsStatic(){return this.isStatic}setTypeKind(e){this.typeKind=e||i.default.SyntaxKind.Unknown}getTypeKind(){return this.typeKind}addTypeLocations(e){this.typeLocations.push(e)}getTypeLocations(){return this.typeLocations}addObjLocations(e){this.objLocations.push(e)}getObjLocations(){return this.objLocations}};t.ConstantInfo=class extends p{constructor(){super(...arguments),this.value=""}setValue(e){this.value=e}getValue(){return this.value}};t.TypeAliasInfo=class extends p{constructor(){super(...arguments),this.type=[],this.typeName="",this.returnType="",this.paramInfos=[],this.typeIsFunction=!1,this.typeLiteralApiInfos=[],this.typeIsObject=!1}addType(e){this.type.push(...e)}getType(){return this.type}setTypeName(e){return this.typeName=e,this}getTypeName(){return this.typeName}setReturnType(e){return this.returnType=e,this}getReturnType(){return this.returnType}setParamInfos(e){return this.paramInfos.push(e),this}getParamInfos(){return this.paramInfos}setTypeIsFunction(e){return this.typeIsFunction=e,this}getTypeIsFunction(){return this.typeIsFunction}setTypeLiteralApiInfos(e){return this.typeLiteralApiInfos.push(e),this}getTypeLiteralApiInfos(){return this.typeLiteralApiInfos}setTypeIsObject(e){return this.typeIsObject=e,this}getTypeIsObject(){return this.typeIsObject}};t.TypeParamInfo=class{constructor(){this.paramName="",this.paramType=""}setParamName(e){return this.paramName=e,this}getParamName(){return this.paramName}setParamType(e){return e?(this.paramType=e,this):this}getParamType(){return this.paramType}};t.EnumValueInfo=class extends p{constructor(){super(...arguments),this.value=""}setValue(e){this.value=e}getValue(){return this.value}};t.MethodInfo=class extends p{constructor(){super(...arguments),this.callForm="",this.params=[],this.returnValue=[],this.isStatic=!1,this.sync="",this.returnValueType=i.default.SyntaxKind.Unknown,this.typeLocations=[],this.objLocations=[],this.isRequired=!1}setCallForm(e){this.callForm=e}getCallForm(){return this.callForm}addParam(e){this.params.push(e)}getParams(){return this.params}setReturnValue(e){this.returnValue.push(...e)}getReturnValue(){return this.returnValue}setReturnValueType(e){this.returnValueType=e}getReturnValueType(){return this.returnValueType}setIsStatic(e){this.isStatic=e}getIsStatic(){return this.isStatic}addTypeLocations(e){this.typeLocations.push(e)}getTypeLocations(){return this.typeLocations}addObjLocations(e){this.objLocations.push(e)}getObjLocations(){return this.objLocations}setSync(e){this.sync=e}getSync(){return this.sync}setIsRequired(e){this.isRequired=e}getIsRequired(){return this.isRequired}};class f extends s.Comment.JsDocInfo{constructor(){super(...arguments),this.typeName=""}getTypeName(){return this.typeName}setTypeName(e){this.typeName=e}}t.TypeLocationInfo=f;t.ParamInfo=class{constructor(e){this.apiType="",this.apiName="",this.paramType=i.default.SyntaxKind.Unknown,this.type=[],this.isRequired=!1,this.definedText="",this.typeLocations=[],this.objLocations=[],this.typeIsObject=!1,this.apiType=e}getApiType(){return this.apiType}setApiName(e){this.apiName=e}getApiName(){return this.apiName}setType(e){this.type.push(...e)}getParamType(){return this.paramType}setParamType(e){this.paramType=e||i.default.SyntaxKind.Unknown}getType(){return this.type}setIsRequired(e){this.isRequired=e}getIsRequired(){return this.isRequired}setDefinedText(e){this.definedText=e}getDefinedText(){return this.definedText}addTypeLocations(e){this.typeLocations.push(e)}getTypeLocations(){return this.typeLocations}addObjLocations(e){this.objLocations.push(e)}getObjLocations(){return this.objLocations}setMethodApiInfo(e){this.methodApiInfo=e}getMethodApiInfo(){return this.methodApiInfo}};t.GenericInfo=class{constructor(){this.isGenericity=!1,this.genericContent=""}setIsGenericity(e){this.isGenericity=e}getIsGenericity(){return this.isGenericity}setGenericContent(e){this.genericContent=e}getGenericContent(){return this.genericContent}};t.ParentClass=class{constructor(){this.extendClass="",this.implementClass=""}setExtendClass(e){this.extendClass=e}getExtendClass(){return this.extendClass}setImplementClass(e){this.implementClass=e}getImplementClass(){return this.implementClass}};t.ParserParam=class{constructor(){this.fileDir="",this.filePath="",this.libPath="",this.sdkPath="",this.rootNames=[],this.tsProgram=i.default.createProgram({rootNames:[],options:{}}),this.compilerHost=i.default.createCompilerHost({})}getFileDir(){return this.fileDir}setFileDir(e){this.fileDir=e}getFilePath(){return this.filePath}setFilePath(e){this.filePath=e}getLibPath(){return this.libPath}setLibPath(e){this.libPath=e}getSdkPath(){return this.sdkPath}setSdkPath(e){this.sdkPath=e}getRootNames(){return this.rootNames}setRootNames(e){this.rootNames=e}getTsProgram(){return this.tsProgram}getETSOptions(e){const t=r(739).compilerOptions.ets;return t.libs=[...e],t}setProgram(){const e=a.FileUtils.readFilesInDir(this.sdkPath,(e=>e.endsWith(o.StringConstant.DTS_EXTENSION)||e.endsWith(o.StringConstant.DETS_EXTENSION))),t=a.FileUtils.readFilesInDir(this.libPath,(e=>e.endsWith(o.StringConstant.DTS_EXTENSION)||e.endsWith(o.StringConstant.DETS_EXTENSION))),r={target:i.default.ScriptTarget.ES2017,ets:this.getETSOptions([]),allowJs:!1,lib:[...e,...t],module:i.default.ModuleKind.CommonJS,baseUrl:"./",paths:{"@/*":["./*"]}};this.compilerHost=i.default.createCompilerHost(r),this.compilerHost.resolveModuleNames=(e,t,r,n,a)=>e.map((e=>{if("true"===process.env.IS_OH)return i.default.resolveModuleName(e,t,a,this.compilerHost).resolvedModule;const r={resolvedFileName:"",isExternalLibraryImport:!1},n={"^(@ohos\\.inner\\.)(.*)$":"../../../base/ets/api/","^(@ohos\\.)(.*)$":"../../../base/ets/api/"};for(const t in n){const r=new RegExp(t);if(r.test(e)){e=e.replace(r,((e,r,i)=>{let a="";switch(r){case"@ohos.":a=n[t]+r+i;break;case"@ohos.inner.":a=n[t]+i.replace(/\./g,"/");break;default:a=""}return a}));break}}const o=i.default.resolveModuleName(e,t,a,this.compilerHost).resolvedModule?.resolvedFileName;return o?(r.resolvedFileName=o,r.isExternalLibraryImport=!0,r):void 0})),this.tsProgram=i.default.createProgram({rootNames:[...this.rootNames],options:r,host:this.compilerHost})}},t.containerApiTypes=new Set([u.NAMESPACE,u.CLASS,u.INTERFACE,u.ENUM,u.MODULE,u.STRUCT]),t.notJsDocApiTypes=new Set([u.SOURCE_FILE,u.IMPORT,u.EXPORT,u.EXPORT_DEFAULT,u.MODULE,u.REFERENCE_FILE])},37583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Comment=void 0,function(e){let t;!function(e){e.SYSCAP="syscap",e.SINCE="since",e.FORM="form",e.CROSS_PLAT_FORM="crossplatform",e.SYSTEM_API="systemapi",e.STAGE_MODEL_ONLY="stagemodelonly",e.FA_MODEL_ONLY="famodelonly",e.DEPRECATED="deprecated",e.USEINSTEAD="useinstead",e.TYPE="type",e.CONSTANT="constant",e.PERMISSION="permission",e.THROWS="throws",e.ATOMIC_SERVICE="atomicservice",e.KIT="kit",e.FILE="file",e.PARAM="param",e.RETURNS="returns"}(t=e.JsDocTag||(e.JsDocTag={}));e.JsDocInfo=class{constructor(){this.description="",this.syscap="",this.since="-1",this.isForm=!1,this.isCrossPlatForm=!1,this.isSystemApi=!1,this.modelLimitation="",this.deprecatedVersion="-1",this.useinstead="",this.permissions="",this.errorCodes=[],this.typeInfo="",this.isConstant=!1,this.isAtomicService=!1,this.kit="",this.fileTagContent="NA",this.tags=void 0}setDescription(e){return this.description=e,this}getDescription(){return this.description}setSyscap(e){return e&&(this.syscap=e),this}getSyscap(){return this.syscap}setSince(e){return this.since=e,this}getSince(){return this.since}setIsForm(e){return this.isForm=e,this}getIsForm(){return this.isForm}setIsCrossPlatForm(e){return this.isCrossPlatForm=e,this}getIsCrossPlatForm(){return this.isCrossPlatForm}setIsSystemApi(e){return this.isSystemApi=e,this}getIsSystemApi(){return this.isSystemApi}setIsAtomicService(e){return this.isAtomicService=e,this}getIsAtomicService(){return this.isAtomicService}setModelLimitation(e){return this.modelLimitation=e,this}getModelLimitation(){return this.modelLimitation}setDeprecatedVersion(e){return this.deprecatedVersion=e,this}getDeprecatedVersion(){return this.deprecatedVersion}setUseinstead(e){return this.useinstead=e,this}getUseinstead(){return this.useinstead}setPermission(e){return this.permissions=e,this}getPermission(){return this.permissions}addErrorCode(e){return this.errorCodes.push(e),this}getErrorCode(){return this.errorCodes}setTypeInfo(e){return this.typeInfo=e,this}getTypeInfo(){return this.typeInfo}setIsConstant(e){return this.isConstant=e,this}getIsConstant(){return this.isConstant}setKit(e){return this.kit=e,this}getKit(){return this.kit}setFileTagContent(e){return this.fileTagContent=e,this}getFileTagContent(){return this.fileTagContent}setTags(e){return this.tags=e,this}removeTags(){return this.tags=void 0,this}addTag(e){return this.tags||(this.tags=[]),this.tags.push(e),this}getTags(){return this.tags}}}(t.Comment||(t.Comment={}))},28879:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecoratorInfo=void 0;const i=n(r(58843));t.DecoratorInfo=class{constructor(e){this.expression="",this.expressionArguments=void 0;const t=e.expression;if(i.default.isCallExpression(t)){this.setExpression(t.expression.getText());t.arguments.forEach((e=>{this.addExpressionArguments([e.getText()])}))}i.default.isIdentifier(t)&&this.setExpression(t.getText())}setExpression(e){return this.expression=e,this}getExpression(){return this.expression}setExpressionArguments(e){return this.expressionArguments=e,this}addExpressionArguments(e){return this.expressionArguments||(this.expressionArguments=[]),this.expressionArguments.push(...e),this}getExpressionArguments(){return this.expressionArguments}}},68020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportInfo=t.ExportDefaultInfo=t.ClassInterfaceInfo=t.NamespaceEnumInfo=t.ParamInfo=t.MethodInfo=t.TypeAliasInfo=t.EnumValueInfo=t.UnionTypeInfo=t.ConstantInfo=t.PropertyInfo=t.DeclareConstInfo=t.ApiInfo=t.BasicApiInfo=void 0;const n=r(8136);class i{constructor(e){this.apiType="",this.apiType=e}}t.BasicApiInfo=i;class a extends i{constructor(e,t){super(e),this.name="",this.syscap="",this.since="-1",this.isForm=!1,this.isCrossPlatForm=!1,this.isSystemApi=!1,this.isStageModelOnly=!1,this.isFaModelOnly=!1,this.deprecatedVersion="-1",this.useinstead="",this.setJsDocInfo(t)}setJsDocInfo(e){return this.syscap=e.getSyscap(),this.since=e.getSince(),this.isForm=e.getIsForm(),this.isCrossPlatForm=e.getIsCrossPlatForm(),this.isSystemApi=e.getIsSystemApi(),this.isStageModelOnly=e.getModelLimitation().toLowerCase()===n.StringConstant.STAGE_MODEL_ONLY,this.isFaModelOnly=e.getModelLimitation().toLowerCase()===n.StringConstant.FA_MODEL_ONLY,this.deprecatedVersion=e.getDeprecatedVersion(),this.useinstead=e.getUseinstead(),this}getSince(){return this.since}setName(e){return e?(this.name=e,this):this}}t.ApiInfo=a;t.DeclareConstInfo=class extends a{constructor(){super(...arguments),this.type=""}setType(e){return this.type=e,this}};t.PropertyInfo=class extends a{constructor(e,t){super(e,t),this.type="",this.isReadOnly=!1,this.isRequired=!1,this.isStatic=!1,this.permission="",this.setPermission(t.getPermission())}setType(e){return this.type=e,this}setIsReadOnly(e){return this.isReadOnly=e,this}setIsRequired(e){return this.isRequired=e,this}setIsStatic(e){return this.isStatic=e,this}setPermission(e){return this.permission=e,this}};t.ConstantInfo=class extends a{constructor(){super(...arguments),this.type="",this.value=""}setType(e){return this.type=e,this}setValue(e){return this.value=e,this}};t.UnionTypeInfo=class extends a{constructor(){super(...arguments),this.valueRange=[]}addValueRange(e){return this.valueRange.push(e),this}addValueRanges(e){return this.valueRange.push(...e),this}};t.EnumValueInfo=class extends a{constructor(){super(...arguments),this.value=""}setValue(e){return this.value=e,this}};t.TypeAliasInfo=class extends a{constructor(){super(...arguments),this.type=""}setType(e){return this.type=e,this}};t.MethodInfo=class extends a{constructor(e,t){super(e,t),this.callForm="",this.params=[],this.returnValue="",this.isStatic=!1,this.permission="",this.errorCodes=[],this.setPermission(t.getPermission()),this.setErrorCodes(t.getErrorCode())}setCallForm(e){return this.callForm=e,this}addParam(e){return this.params.push(e),this}setReturnValue(e){return this.returnValue=e,this}setIsStatic(e){return this.isStatic=e,this}setPermission(e){return this.permission=e,this}setErrorCodes(e){return this.errorCodes.push(...e),this}};t.ParamInfo=class extends a{constructor(){super(...arguments),this.type="",this.isRequired=!1}setType(e){e&&(this.type=e)}setIsRequired(e){this.isRequired=e}};class o extends a{constructor(){super(...arguments),this.childApis=[]}addChildApi(e){return this.childApis.push(...e),this}}t.NamespaceEnumInfo=o;t.ClassInterfaceInfo=class extends o{constructor(){super(...arguments),this.parentClasses=[]}setParentClasses(e){return this.parentClasses.push(...e),this}};class s extends i{constructor(){super(...arguments),this.name=""}createObject(){return new s(this.apiType)}setName(e){return this.name=e,this}}t.ExportDefaultInfo=s;t.ImportInfo=class extends i{constructor(){super(...arguments),this.importValues=[]}addImportValue(e,t){return this.importValues.push({key:e,value:t||e}),this}}},16137:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeDefinedTextType=t.notMergeDefinedText=t.apiNotStatisticsType=t.apiStatisticsType=t.ApiStatisticsInfo=void 0;const i=n(r(58843)),a=r(44791),o=r(80879);t.ApiStatisticsInfo=class{constructor(){this.filePath="",this.packageName="",this.parentModuleName="global",this.syscap="",this.permissions="",this.since="",this.isForm=!1,this.isCrossPlatForm=!1,this.isAutomicService=!1,this.hierarchicalRelations="",this.apiName="",this.deprecatedVersion="",this.useInstead="",this.apiType="",this.definedText="",this.pos={line:-1,character:-1},this.isSystemapi=!1,this.modelLimitation="",this.decorators=[],this.errorCodes=[],this.kitInfo="",this.absolutePath="",this.parentApiType="",this.isOptional=!1}setFilePath(e){return this.filePath=e,this.packageName=o.FunctionUtils.getPackageName(e),this}getPackageName(){return this.packageName}getFilePath(){return this.filePath}setApiType(e){return this.apiType=e===a.ApiType.DECLARE_CONST?a.ApiType.PROPERTY:e,this}getParentModuleName(){return this.parentModuleName}setParentModuleName(e){return this.parentModuleName=e,this}setSyscap(e){return e&&(this.syscap=e),this}getSyscap(){return this.syscap}setPermission(e){return this.permissions=e,this}getPermission(){return this.permissions}setSince(e){return this.since=e,this}getSince(){return this.since}setIsForm(e){return this.isForm=e,this}getIsForm(){return this.isForm}setIsCrossPlatForm(e){return this.isCrossPlatForm=e,this}getIsCrossPlatForm(){return this.isCrossPlatForm}setIsAutomicService(e){return this.isAutomicService=e,this}getIsAutomicService(){return this.isAutomicService}getApiType(){return this.apiType}setDefinedText(e){return this.definedText=e,this}getDefinedText(){return this.definedText}setPos(e){return this.pos=e,this}getPos(){return this.pos}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setDeprecatedVersion(e){return this.deprecatedVersion=e,this}getDeprecatedVersion(){return this.deprecatedVersion}setUseInstead(e){return this.useInstead=e,this}getUseInstead(){return this.useInstead}setApiLevel(e){return this.isSystemapi=e,this}getApiLevel(){return this.isSystemapi}setModelLimitation(e){return this.modelLimitation=e,this}getModelLimitation(){return this.modelLimitation}setDecorators(e){return e?.forEach((e=>{this.decorators?.push(e.expression)})),this}getDecorators(){return this.decorators}setErrorCodes(e){return this.errorCodes=e,this}getErrorCodes(){return this.errorCodes}setKitInfo(e){return this.kitInfo=e,this}getKitInfo(){return this.kitInfo}setAbsolutePath(e){return this.absolutePath=e,this}getAbsolutePath(){return this.absolutePath}setParentApiType(e){return this.parentApiType=e,this}getParentApiType(){return this.parentApiType}setIsOptional(e){return this.isOptional=e,this}getIsOptional(){return this.isOptional}},t.apiStatisticsType=new Set([a.ApiType.PROPERTY,a.ApiType.CLASS,a.ApiType.INTERFACE,a.ApiType.NAMESPACE,a.ApiType.METHOD,a.ApiType.CONSTANT,a.ApiType.ENUM_VALUE,a.ApiType.ENUM,a.ApiType.TYPE_ALIAS,a.ApiType.DECLARE_CONST,a.ApiType.STRUCT]),t.apiNotStatisticsType=new Set([a.ApiType.ENUM,a.ApiType.NAMESPACE]),t.notMergeDefinedText=new Set(["on","off"]),t.mergeDefinedTextType=new Set([i.default.SyntaxKind.MethodDeclaration,i.default.SyntaxKind.MethodSignature,i.default.SyntaxKind.FunctionDeclaration])},8136:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventConstant=t.PunctuationMark=t.NumberConstant=t.StringConstant=void 0,function(e){e.ASYNC_CALLBACK_METHOD_KEY="AsyncCallback",e.ASYNC_CALLBACK_METHOD_KEY_CHANGE="AsyncCallback",e.CHECK_API_VERSION="11",e.CONST_KEY_WORD="const",e.CONSTRUCTOR_API_NAME="constructor",e.EXPORT_DEFAULT="export_default",e.EXPORT="export",e.DTS_EXTENSION=".d.ts",e.DETS_EXTENSION=".d.ets",e.ETS_EXTENSION=".ets",e.FA_MODEL_ONLY="famodelonly",e.PROMISE_METHOD_KEY="Promise",e.PROMISE_METHOD_KEY_CHANGE="Promise",e.REFERENCE="_reference",e.TS_EXTENSION=".ts",e.SELF="_self",e.STAGE_MODEL_ONLY="stagemodelonly",e.UTF8="utf-8",e.NOT_SCAN_DIR="build-tools"}(t.StringConstant||(t.StringConstant={})),function(e){e[e.INDENT_SPACE=2]="INDENT_SPACE",e[e.RELATION_LENGTH=2]="RELATION_LENGTH",e.DEFAULT_DEPRECATED_VERSION="-1",e[e.IS_FIELD_EXIST=0]="IS_FIELD_EXIST",e[e.BINARY_SYSTEM=2]="BINARY_SYSTEM",e[e.LINE_IN_EXCEL=2]="LINE_IN_EXCEL",e[e.SYSCAP_KEY_FIELD_INDEX=2]="SYSCAP_KEY_FIELD_INDEX",e[e.DELETE_CURRENT_JS_DOC=-2]="DELETE_CURRENT_JS_DOC"}(t.NumberConstant||(t.NumberConstant={})),function(e){e.QUERY="?",e.LEFT_BRACKET="[",e.RIGHT_BRACKET="]",e.LEFT_BRACE="{",e.RIGHT_BRACE="}",e.LEFT_PARENTHESES="(",e.RIGHT_PARENTHESES=")"}(t.PunctuationMark||(t.PunctuationMark={}));class r{}t.EventConstant=r,r.eventNameList=["on","off","emit","once"],r.eventMethodCheckVersion=10,r.eventFirstParamName="type"},27944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnumUtils=void 0;t.EnumUtils=class{static enum2arr(e){let t=Array.isArray(e)?e:Object.values(e);return t.some((e=>"number"==typeof e))&&(t=t.filter((e=>"number"==typeof e))),t}}},40745:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileUtils=void 0;const i=n(r(79896)),a=n(r(16928)),o=n(r(59620)),s=r(4e3),c=r(8136);process.env.DIR_NAME||Object.assign(process.env,o.default);class l{static getBaseDirName(){return this.baseDirName}static readFilesInDir(e,t){const r=[];return i.default.existsSync(e)?(i.default.readdirSync(e,{withFileTypes:!0}).forEach((n=>{if(n.name===c.StringConstant.NOT_SCAN_DIR)return;const i=a.default.join(e,n.name);if(n.isFile())return t?void(t(n.name)&&r.push(i)):void r.push(i);r.push(...l.readFilesInDir(i,t))})),r):r}static writeStringToFile(e,t){const r=a.default.dirname(t);l.isExists(r)||i.default.mkdirSync(r,{recursive:!0}),i.default.writeFileSync(t,e)}static isDirectory(e){return i.default.lstatSync(e).isDirectory()}static isFile(e){return i.default.lstatSync(e).isFile()}static isExists(e){if(!e)return!1;try{return i.default.accessSync(a.default.resolve(this.baseDirName,e),i.default.constants.R_OK),!0}catch(e){const t=e;return s.LogUtil.e("error filePath",t.stack?t.stack:t.message),!1}}}t.FileUtils=l,l.baseDirName=String(process.env.DIR_NAME)},80879:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionUtils=void 0;const i=n(r(16928)),a=r(8136),o=r(63598),s=r(80417);t.FunctionUtils=class{static getPackageName(e){return e.indexOf("component\\ets\\")>=0||e.indexOf("component/ets/")>=0?"ArkUI":i.default.basename(e).replace(/@|.d.ts$/g,"")}static handleSyscap(e){const t=e.split(".");let r="";switch(t[1]){case"MiscServices":r=t[a.NumberConstant.SYSCAP_KEY_FIELD_INDEX];break;case"Communication":if(c.has(t[a.NumberConstant.SYSCAP_KEY_FIELD_INDEX])){r=t[a.NumberConstant.SYSCAP_KEY_FIELD_INDEX];break}r=t[1];break;default:r=t[1]}return r}static readSubsystemFile(){const e=new Map,t=new Map;return s.fileContent.forEach((r=>{e.set(r.syscap,r.subsystem),t.set(r.syscap,r.fileName)})),{subsystemMap:e,fileNameMap:t}}static readKitFile(){const e=new Map,t=new Map,r=new Set;return o.kitData.forEach((n=>{e.set(n.filePath,n.subSystem),t.set(n.filePath,n.kitName),r.add(n.filePath)})),{subsystemMap:e,kitNameMap:t,filePathSet:r}}};const c=new Set(["Bluetooth","NetManager"])},87960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;const n=r(4e3);t.StringUtils=class{static hasSubstring(e,t){let r=!1;try{r=-1!==e.search(t)}catch(e){n.LogUtil.e("StringUtils.hasSubstring",e)}return r}static transformBooleanToTag(e,t){return"true"===e.toString()?t:"NA"}}},93333:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.throwsTagDescriptionArr=t.punctuationMarkSet=t.cleanApiCheckResult=t.apiCheckResult=t.compositiveLocalResult=t.cleanCompositiveResult=t.compositiveResult=t.apiLegalityCheckTypeMap=t.permissionOptionalTags=t.conditionalOptionalTags=t.optionalTags=t.followTagArr=t.inheritTagArr=t.officialTagArr=t.tagsArrayOfOrder=t.CommonFunctions=t.ObtainFullPath=t.GenerateFile=t.CompolerOptions=t.PosOfNode=void 0;const i=n(r(16928)),a=n(r(79896)),o=r(6752),s=n(r(58843)),c=r(77002),l=r(40745),u=r(98768),d=r(8136),p=r(2543);t.PosOfNode=class{static getPosOfNode(e,t){const r=s.default.getLineAndCharacterOfPosition(e.getSourceFile(),t.start);return t.file?.fileName+`(line: ${r.line+1}, col: ${r.character+1})`}};t.CompolerOptions=class{static getCompolerOptions(){const e=s.default.readConfigFile(i.default.resolve(l.FileUtils.getBaseDirName(),"./tsconfig.json"),s.default.sys.readFile).config.compilerOptions;return Object.assign(e,{target:"es2020",jsx:"preserve",incremental:void 0,declaration:void 0,declarationMap:void 0,emitDeclarationOnly:void 0,outFile:void 0,composite:void 0,tsBuildInfoFile:void 0,noEmit:void 0,isolatedModules:!0,paths:void 0,rootDirs:void 0,types:void 0,out:void 0,noLib:void 0,noResolve:!0,noEmitOnError:void 0,declarationDir:void 0,suppressOutputPathCheck:!0,allowNonTsExtensions:!0}),e}};t.GenerateFile=class{static writeFile(e,t,r){a.default.writeFile(i.default.resolve(t),JSON.stringify(e,null,2),r,(e=>{e?console.error(`ERROR FOR CREATE FILE:${e}`):console.log("API CHECK FINISH!")}))}static async writeExcelFile(e){const t=new o.Workbook,r=t.addWorksheet("Js Api",{views:[{xSplit:1}]});r.getRow(1).values=["order","analyzerName","buggyFilePath","codeContextStaerLine","defectLevel","defectType","description","language","mainBuggyCode","apiName","apiType","hierarchicalRelations","parentModuleName"];for(let t=1;t<=e.length;t++){const n=e[t-1];r.getRow(t+1).values=[t,n.analyzerName,n.getFilePath(),n.getLocation(),n.getLevel(),n.getType(),n.getMessage(),n.language,n.getMainBuggyCode(),n.getExtendInfo().getApiName(),n.getExtendInfo().getApiType(),n.getExtendInfo().getHierarchicalRelations(),n.getExtendInfo().getParentModuleName()]}t.xlsx.writeBuffer().then((e=>{a.default.writeFile(i.default.resolve(l.FileUtils.getBaseDirName(),"./Js_Api.xlsx"),e,(function(e){e&&console.error(e)}))}))}};class f{static getFullFiles(e,t){try{a.default.readdirSync(e).forEach((r=>{const n=i.default.join(e,r);a.default.statSync(n).isDirectory()?f.getFullFiles(n,t):(/\.d\.ts/.test(n)||/\.d\.ets/.test(n)||/\.ts/.test(n))&&t.push(n)}))}catch(e){console.error("ETS ERROR: "+e)}}}t.ObtainFullPath=f;class m{static getSinceVersion(e){return-1!==e.indexOf(d.PunctuationMark.LEFT_PARENTHESES)?e.substring(e.indexOf(d.PunctuationMark.LEFT_PARENTHESES)+1,e.indexOf(d.PunctuationMark.RIGHT_PARENTHESES)):e}static isOfficialTag(e){return-1===t.tagsArrayOfOrder.indexOf(e)}static createErrorInfo(e,t){return t.forEach((t=>{e=e.replace("$$",t)})),e}static getCheckApiVersion(){let e="-1";try{e=JSON.stringify(u.ApiCheckVersion)}catch(e){throw`Failed to read package.json or parse JSON content: ${e}`}if(!e)throw"Please configure the correct API version to be verified";return e}static judgeSpecialCase(e){let t=[];return e===s.default.SyntaxKind.TypeLiteral?t=["object"]:e===s.default.SyntaxKind.FunctionType&&(t=["function"]),t}static getExtendsApiValue(e){let t="";const r=[],n=e.getParentClasses();return 0===n.length||(n.forEach((e=>{0!==e.getExtendClass().length&&r.push(e.getExtendClass())})),t=r.join(",")),t}static getImplementsApiValue(e){let t="";const r=e.getParentClasses();return 0===r.length||r.forEach((e=>{0!==e.getImplementClass().length&&(t=e.getImplementClass())})),t}static getErrorInfo(e,t,r,n){let i=new c.ApiCheckInfo;if(void 0===e)return i;const a=void 0===t?-1:p.toNumber(t.since);return i.setErrorID(n.errorID).setErrorLevel(n.errorLevel).setFilePath(r).setApiPostion(e.getPos()).setErrorType(n.errorType).setLogType(n.logType).setSinceNumber(a).setApiName(e.getApiName()).setApiType(e.getApiType()).setApiText(e.getDefinedText()).setErrorInfo(n.errorInfo).setHierarchicalRelations(e.getHierarchicalRelations().join("|")).setParentModuleName(e.getParentApi()?.getApiName()),i}static getMdFiles(e){const t=[];return a.default.readFileSync(e,"utf-8").split(/[(\r\n)\r\n]+/).forEach((e=>{const r=new Set;m.splitPath(e,r),r.has("build-tools")||t.push(e)})),t}static splitPath(e,t){let r=i.default.parse(e);""!==r.base&&(t.add(r.base),m.splitPath(r.dir,t))}static isAscending(e){for(let t=1;t<e.length;t++)if(e[t]<e[t-1])return!1;return!0}}t.CommonFunctions=m,t.tagsArrayOfOrder=["namespace","struct","typedef","interface","extends","implements","permission","enum","constant","type","param","default","returns","readonly","throws","static","fires","syscap","systemapi","famodelonly","FAModelOnly","stagemodelonly","StageModelOnly","crossplatform","form","atomicservice","since","deprecated","useinstead","test","example"],t.officialTagArr=["abstract","access","alias","async","augments","author","borrows","class","classdesc","constructs","copyright","event","exports","external","file","function","generator","global","hideconstructor","ignore","inheritdoc","inner","instance","lends","license","listens","member","memberof","mixes","mixin","modifies","module","package","private","property","protected","public","requires","see","summary","this","todo","tutorial","variation","version","yields","also","description","kind","name","undocumented"],t.inheritTagArr=["test","famodelonly","FAModelOnly","stagemodelonly","StageModelOnly","deprecated","systemapi"],t.followTagArr=["atomicservice","form"],t.optionalTags=["static","fires","systemapi","famodelonly","FAModelOnly","stagemodelonly","StageModelOnly","crossplatform","deprecated","test","form","example","atomicservice"],t.conditionalOptionalTags=["default","permission","throws"],t.permissionOptionalTags=[s.default.SyntaxKind.FunctionDeclaration,s.default.SyntaxKind.MethodSignature,s.default.SyntaxKind.MethodDeclaration,s.default.SyntaxKind.CallSignature,s.default.SyntaxKind.Constructor,s.default.SyntaxKind.PropertyDeclaration,s.default.SyntaxKind.PropertySignature,s.default.SyntaxKind.VariableStatement],t.apiLegalityCheckTypeMap=new Map([[s.default.SyntaxKind.CallSignature,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.ClassDeclaration,["extends","implements","syscap","since"]],[s.default.SyntaxKind.Constructor,["param","syscap","permission","throws","syscap","since"]],[s.default.SyntaxKind.EnumDeclaration,["enum","syscap","since"]],[s.default.SyntaxKind.FunctionDeclaration,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.InterfaceDeclaration,["typedef","extends","syscap","since"]],[s.default.SyntaxKind.MethodDeclaration,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.MethodSignature,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.ModuleDeclaration,["namespace","syscap","since"]],[s.default.SyntaxKind.PropertyDeclaration,["type","default","permission","throws","readonly","syscap","since"]],[s.default.SyntaxKind.PropertySignature,["type","default","permission","throws","readonly","syscap","since"]],[s.default.SyntaxKind.VariableStatement,["constant","default","permission","throws","syscap","since"]],[s.default.SyntaxKind.TypeAliasDeclaration,["syscap","since","typedef","param","returns","throws"]],[s.default.SyntaxKind.EnumMember,["syscap","since"]],[s.default.SyntaxKind.NamespaceExportDeclaration,["syscap","since"]],[s.default.SyntaxKind.TypeLiteral,["syscap","since"]],[s.default.SyntaxKind.LabeledStatement,["syscap","since"]],[s.default.SyntaxKind.StructDeclaration,["struct","syscap","since"]]]),t.compositiveResult=[],t.cleanCompositiveResult=function(){t.compositiveResult=[]},t.compositiveLocalResult=[],t.apiCheckResult=[],t.cleanApiCheckResult=function(){t.apiCheckResult=[]},t.punctuationMarkSet=new Set(["\\{","\\}","\\(","\\)","\\[","\\]","\\@","\\.","\\:","\\,","\\;","\\(","\\)",'\\"',"\\/","\\_","\\-","\\=","\\?","\\<","\\>","\\,","\\!","\\#",":",",","\\:","\\|","\\%","\\&","\\¡","\\¢","\\+","\\`","\\\\","\\'"]),t.throwsTagDescriptionArr=["Parameter error. Possible causes:","Mandatory parameters are left unspecified","Incorrect parameter types","Parameter verification failed"]},4e3:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogUtil=t.LogLevelUtil=t.LogLevel=void 0,function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERR=3]="ERR"}(r=t.LogLevel||(t.LogLevel={}));t.LogLevelUtil=class{static get(e){for(let t=r.DEBUG;t<=r.ERR;t++)if(e===r[t])return t;return r.ERR}};class n{static e(e,t){n.logLevel<=r.ERR&&console.error(`${e}: ${t}`)}static w(e,t){n.logLevel<=r.WARN&&console.warn(`${e}: ${t}`)}static i(e,t){n.logLevel<=r.INFO&&console.info(`${e}: ${t}`)}static d(e,t){n.logLevel<=r.DEBUG&&console.debug(`${e}: ${t}`)}}t.LogUtil=n,n.logLevel=r.ERR},58843:function(e,t,r){"use strict";