api-smart-diff
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -1,3 +0,3 @@ | ||
/*! api-smart-diff@0.6.4 */ | ||
var ApiSmartDiff=function(a){var r={};function t(e){var n;return(r[e]||(n=r[e]={i:e,l:!1,exports:{}},a[e].call(n.exports,n,n.exports,t),n.l=!0,n)).exports}return t.m=a,t.c=r,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(a,r,function(e){return n[e]}.bind(null,r));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=7)}([function(e,n,a){"use strict";var r,t;Object.defineProperty(n,"__esModule",{value:!0}),n.allDeprecate=n.allAnnotation=n.allUnclassified=n.addNonBreaking=n.onlyAddBreaking=n.allBreaking=n.allNonBreaking=n.deprecate=n.annotation=n.unclassified=n.nonBreaking=n.breaking=n.ClassifierType=n.DiffAction=n.DIFF_META_KEY=void 0,n.DIFF_META_KEY="$diff",(r=n.DiffAction||(n.DiffAction={})).add="add",r.remove="remove",r.replace="replace",r.rename="rename",r.test="test",(t=r=n.ClassifierType||(n.ClassifierType={})).breaking="breaking",t.nonBreaking="non-breaking",t.annotation="annotation",t.unclassified="unclassified",t.deprecate="deprecate",n.breaking=r.breaking,n.nonBreaking=r.nonBreaking,n.unclassified=r.unclassified,n.annotation=r.annotation,n.deprecate=r.deprecate,n.allNonBreaking=[n.nonBreaking,n.nonBreaking,n.nonBreaking],n.allBreaking=[n.breaking,n.breaking,n.breaking],n.onlyAddBreaking=[n.breaking,n.nonBreaking,n.nonBreaking],n.addNonBreaking=[n.nonBreaking,n.breaking,n.breaking],n.allUnclassified=[n.unclassified,n.unclassified,n.unclassified],n.allAnnotation=[n.annotation,n.annotation,n.annotation],n.allDeprecate=[n.deprecate,n.deprecate,n.deprecate]},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.includeSecurity=o.emptySecurity=o.mergeValues=o.setValueByPath=o.getValueByPath=o.resolveRef=o.objArray=o.matchRule=o.findExternalRefs=o.getPathMatchFunc=o.getPathRules=o.buildPath=o.parsePath=o.typeOf=o.isEmptyObject=o.unchanged=o.renamed=o.replaced=o.removed=o.added=o.breakingIfAfterTrue=o.breakingIf=o.PathPointer=void 0;const s=n(2),r=n(0);class a{get ref(){return this.parent?this.parent.ref+"/"+this.escapedKey:this.escapedKey}[Symbol.iterator](){let e=0;return{next:()=>({done:!(e<this.items.length),value:this.items[e++]})}}constructor(e,n){this.key=e,this.parent=n,this.items=[],void 0===e?this.escapedKey="":(this.escapedKey="string"==typeof e?e.replace(new RegExp("~1","g"),"/"):String(e),this.items=n?[...n.items,e]:[e])}childPath(e){return new a(e,this)}}o.PathPointer=a;o.breakingIf=e=>e?r.breaking:r.nonBreaking,o.breakingIfAfterTrue=({after:e})=>(0,o.breakingIf)(e),o.added=(e,n)=>({path:e.items,after:n,action:r.DiffAction.add}),o.removed=(e,n)=>({path:e.items,before:n,action:r.DiffAction.remove}),o.replaced=(e,n,a)=>({path:e.items,before:n,after:a,action:r.DiffAction.replace}),o.renamed=(e,n,a)=>({path:e.items,before:n,after:a,action:r.DiffAction.rename}),o.unchanged=(e,n)=>({path:e.items,before:n,action:r.DiffAction.test}),o.isEmptyObject=e=>{for(const n in e)return!1;return!0},o.typeOf=e=>Array.isArray(e)?"array":null==e?"null":typeof e,o.parsePath=e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e},o.buildPath=e=>"/"+e.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"),o.getPathRules=(e,n,a)=>{let r=e,t=a;for(var i of[...n]){if(t=void 0!==i&&void 0!==t?t[i]:void 0,r.hasOwnProperty("/"+i)&&"number"!=typeof i||(i="*"),!r.hasOwnProperty("/"+i))return;i=r["/"+i];if(Array.isArray(i))return i;r="function"==typeof i?i(t):i}return r},o.getPathMatchFunc=(e,n,a)=>{e=(0,o.getPathRules)(e,n.items,a);return e&&!Array.isArray(e)?e["#"]:void 0},o.findExternalRefs=e=>{if("object"!=typeof e)return[];let n=new Set;if("array"===(0,o.typeOf)(e))for(const r of e)"object"==typeof r&&(n=new Set([...n,...(0,o.findExternalRefs)(r)]));else for(const t of Object.keys(e)){var a;"$ref"===t?([a]=e[t].split("#"),a&&n.add(a)):"object"==typeof e[t]&&(n=new Set([...n,...(0,o.findExternalRefs)(e[t])]))}return[...n]},o.matchRule=(e,n)=>(e["#"]=n,e),o.objArray=(a,e)=>(0,o.matchRule)(e,({before:e,after:n})=>n.value[a]===e.value[a]),o.resolveRef=(e,n,a)=>{var r,t=e["$ref"],i=s.__rest(e,["$ref"]);return!t||([t,r]=t.split("#"),t&&!a.has(t))||void 0===(a=(0,o.getValueByPath)(t?a.get(t):n,(0,o.parsePath)(r)))?e:(0,o.isEmptyObject)(i)?a:(0,o.mergeValues)(a,i)},o.getValueByPath=(e,n)=>{let a=e;for(const r of n)if(void 0===(a="array"===(0,o.typeOf)(a)?a[+r]:a[r]))break;return a},o.setValueByPath=(e,n,a,r=0)=>{var t;r>=n.length||("object"!=typeof e[t=n[r]]&&(e[t]={}),r===n.length-1?e[t]=a:(0,o.setValueByPath)(e[t],n,a,r+1))},o.mergeValues=(e,n)=>{if(Array.isArray(e)||"object"!=typeof e||"object"!=typeof n||!n)return n;for(const a of Reflect.ownKeys(n))e[a]=(0,o.mergeValues)(e[a],n[a]);return e},o.emptySecurity=e=>!!e&&(0===e.length||1===e.length&&0===Object.keys(e[0]).length);o.includeSecurity=(e=[],n=[])=>{var a=new Set(e.map(e=>Object.keys(e)[0]));for(const r of n)if(!a.has(Object.keys(r)[0]))return!1;return!0}},function(e,n,a){"use strict";a.r(n),a.d(n,"__extends",function(){return t}),a.d(n,"__assign",function(){return i}),a.d(n,"__rest",function(){return o}),a.d(n,"__decorate",function(){return s}),a.d(n,"__param",function(){return l}),a.d(n,"__metadata",function(){return c}),a.d(n,"__awaiter",function(){return g}),a.d(n,"__generator",function(){return u}),a.d(n,"__createBinding",function(){return f}),a.d(n,"__exportStar",function(){return d}),a.d(n,"__values",function(){return p}),a.d(n,"__read",function(){return k}),a.d(n,"__spread",function(){return b}),a.d(n,"__spreadArrays",function(){return h}),a.d(n,"__await",function(){return m}),a.d(n,"__asyncGenerator",function(){return y}),a.d(n,"__asyncDelegator",function(){return B}),a.d(n,"__asyncValues",function(){return v}),a.d(n,"__makeTemplateObject",function(){return A}),a.d(n,"__importStar",function(){return j}),a.d(n,"__importDefault",function(){return O}),a.d(n,"__classPrivateFieldGet",function(){return R}),a.d(n,"__classPrivateFieldSet",function(){return _}); | ||
/*! api-smart-diff@0.6.5 */ | ||
var ApiSmartDiff=function(a){var r={};function t(e){var n;return(r[e]||(n=r[e]={i:e,l:!1,exports:{}},a[e].call(n.exports,n,n.exports,t),n.l=!0,n)).exports}return t.m=a,t.c=r,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(a,r,function(e){return n[e]}.bind(null,r));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=7)}([function(e,n,a){"use strict";var r,t;Object.defineProperty(n,"__esModule",{value:!0}),n.allDeprecate=n.allAnnotation=n.allUnclassified=n.addNonBreaking=n.onlyAddBreaking=n.allBreaking=n.allNonBreaking=n.deprecate=n.annotation=n.unclassified=n.nonBreaking=n.breaking=n.ClassifierType=n.DiffAction=n.DIFF_META_KEY=void 0,n.DIFF_META_KEY="$diff",(r=n.DiffAction||(n.DiffAction={})).add="add",r.remove="remove",r.replace="replace",r.rename="rename",r.test="test",(t=r=n.ClassifierType||(n.ClassifierType={})).breaking="breaking",t.nonBreaking="non-breaking",t.annotation="annotation",t.unclassified="unclassified",t.deprecate="deprecate",n.breaking=r.breaking,n.nonBreaking=r.nonBreaking,n.unclassified=r.unclassified,n.annotation=r.annotation,n.deprecate=r.deprecate,n.allNonBreaking=[n.nonBreaking,n.nonBreaking,n.nonBreaking],n.allBreaking=[n.breaking,n.breaking,n.breaking],n.onlyAddBreaking=[n.breaking,n.nonBreaking,n.nonBreaking],n.addNonBreaking=[n.nonBreaking,n.breaking,n.breaking],n.allUnclassified=[n.unclassified,n.unclassified,n.unclassified],n.allAnnotation=[n.annotation,n.annotation,n.annotation],n.allDeprecate=[n.deprecate,n.deprecate,n.deprecate]},function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.includeSecurity=o.emptySecurity=o.mergeValues=o.setValueByPath=o.getValueByPath=o.resolveRef=o.objArray=o.matchRule=o.findExternalRefs=o.getPathMatchFunc=o.getPathRules=o.buildPath=o.parsePath=o.typeOf=o.isEmptyObject=o.unchanged=o.renamed=o.replaced=o.removed=o.added=o.breakingIfAfterTrue=o.breakingIf=o.PathPointer=void 0;const s=n(2),r=n(0);class a{get ref(){return this.parent?this.parent.ref+"/"+this.escapedKey:this.escapedKey}[Symbol.iterator](){let e=0;return{next:()=>({done:!(e<this.items.length),value:this.items[e++]})}}constructor(e,n){this.key=e,this.parent=n,this.items=[],void 0===e?this.escapedKey="":(this.escapedKey="string"==typeof e?e.replace(new RegExp("~1","g"),"/"):String(e),this.items=n?[...n.items,e]:[e])}childPath(e){return new a(e,this)}}o.PathPointer=a;o.breakingIf=e=>e?r.breaking:r.nonBreaking,o.breakingIfAfterTrue=({after:e})=>(0,o.breakingIf)(e),o.added=(e,n)=>({path:e.items,after:n,action:r.DiffAction.add}),o.removed=(e,n)=>({path:e.items,before:n,action:r.DiffAction.remove}),o.replaced=(e,n,a)=>({path:e.items,before:n,after:a,action:r.DiffAction.replace}),o.renamed=(e,n,a)=>({path:e.items,before:n,after:a,action:r.DiffAction.rename}),o.unchanged=(e,n)=>({path:e.items,before:n,action:r.DiffAction.test}),o.isEmptyObject=e=>{for(const n in e)return!1;return!0},o.typeOf=e=>Array.isArray(e)?"array":null==e?"null":typeof e,o.parsePath=e=>{var[,...e]=e.split("/").map(e=>e.replace(new RegExp("~1","g"),"/"));return e},o.buildPath=e=>"/"+e.map(e=>String(e).replace(new RegExp("/","g"),"~1")).join("/"),o.getPathRules=(e,n,a)=>{let r=e,t=a;for(var i of[...n]){if(t=void 0!==i&&void 0!==t?t[i]:void 0,r.hasOwnProperty("/"+i)&&"number"!=typeof i||(i="*"),!r.hasOwnProperty("/"+i))return;i=r["/"+i];if(Array.isArray(i))return i;r="function"==typeof i?i(t):i}return r},o.getPathMatchFunc=(e,n,a)=>{e=(0,o.getPathRules)(e,n.items,a);return e&&!Array.isArray(e)?e["#"]:void 0},o.findExternalRefs=e=>{if("object"!=typeof e)return[];let n=new Set;if("array"===(0,o.typeOf)(e))for(const r of e)"object"==typeof r&&(n=new Set([...n,...(0,o.findExternalRefs)(r)]));else for(const t of Object.keys(e)){var a;"$ref"===t?([a]=e[t].split("#"),a&&n.add(a)):"object"==typeof e[t]&&(n=new Set([...n,...(0,o.findExternalRefs)(e[t])]))}return[...n]},o.matchRule=(e,n)=>(e["#"]=n,e),o.objArray=(a,e)=>(0,o.matchRule)(e,({before:e,after:n})=>n.value[a]===e.value[a]),o.resolveRef=(e,n,a)=>{var r,t=e["$ref"],i=s.__rest(e,["$ref"]);return!t||([t,r]=t.split("#"),t&&!a.has(t))||void 0===(a=(0,o.getValueByPath)(t?a.get(t):n,(0,o.parsePath)(r)))?e:(0,o.isEmptyObject)(i)?a:(0,o.mergeValues)(a,i)},o.getValueByPath=(e,n)=>{let a=e;for(const r of n)if(void 0===(a="array"===(0,o.typeOf)(a)?a[+r]:a[r]))break;return a},o.setValueByPath=(e,n,a,r=0)=>{var t;r>=n.length||("object"!=typeof e[t=n[r]]&&(e[t]={}),r===n.length-1?e[t]=a:(0,o.setValueByPath)(e[t],n,a,r+1))},o.mergeValues=(e,n)=>{if(Array.isArray(e)||"object"!=typeof e||"object"!=typeof n||!n)return n;for(const a of Reflect.ownKeys(n))e[a]=(0,o.mergeValues)(e[a],n[a]);return e},o.emptySecurity=e=>!!e&&(0===e.length||1===e.length&&0===Object.keys(e[0]).length);o.includeSecurity=(e=[],n=[])=>{var a=new Set(e.map(e=>Object.keys(e)[0]));for(const r of n)if(!a.has(Object.keys(r)[0]))return!1;return!0}},function(e,n,a){"use strict";a.r(n),a.d(n,"__extends",function(){return t}),a.d(n,"__assign",function(){return i}),a.d(n,"__rest",function(){return o}),a.d(n,"__decorate",function(){return s}),a.d(n,"__param",function(){return l}),a.d(n,"__metadata",function(){return c}),a.d(n,"__awaiter",function(){return g}),a.d(n,"__generator",function(){return u}),a.d(n,"__createBinding",function(){return f}),a.d(n,"__exportStar",function(){return d}),a.d(n,"__values",function(){return k}),a.d(n,"__read",function(){return p}),a.d(n,"__spread",function(){return b}),a.d(n,"__spreadArrays",function(){return h}),a.d(n,"__await",function(){return m}),a.d(n,"__asyncGenerator",function(){return y}),a.d(n,"__asyncDelegator",function(){return B}),a.d(n,"__asyncValues",function(){return v}),a.d(n,"__makeTemplateObject",function(){return A}),a.d(n,"__importStar",function(){return j}),a.d(n,"__importDefault",function(){return O}),a.d(n,"__classPrivateFieldGet",function(){return R}),a.d(n,"__classPrivateFieldSet",function(){return _}); | ||
/*! ***************************************************************************** | ||
@@ -17,2 +17,2 @@ Copyright (c) Microsoft Corporation. | ||
***************************************************************************** */ | ||
var r=function(e,n){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,n){e.__proto__=n}:function(e,n){for(var a in n)n.hasOwnProperty(a)&&(e[a]=n[a])}))(e,n)};function t(e,n){function a(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}var i=function(){return(i=Object.assign||function(e){for(var n,a=1,r=arguments.length;a<r;a++)for(var t in n=arguments[a])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}).apply(this,arguments)};function o(e,n){var a={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,t=Object.getOwnPropertySymbols(e);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(a[t[r]]=e[t[r]]);return a}function s(e,n,a,r){var t,i=arguments.length,o=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,a,r);else for(var s=e.length-1;0<=s;s--)(t=e[s])&&(o=(i<3?t(o):3<i?t(n,a,o):t(n,a))||o);return 3<i&&o&&Object.defineProperty(n,a,o),o}function l(a,r){return function(e,n){r(e,n,a)}}function c(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function g(e,o,s,l){return new(s=s||Promise)(function(a,n){function r(e){try{i(l.next(e))}catch(e){n(e)}}function t(e){try{i(l.throw(e))}catch(e){n(e)}}function i(e){var n;e.done?a(e.value):((n=e.value)instanceof s?n:new s(function(e){e(n)})).then(r,t)}i((l=l.apply(e,o||[])).next())})}function u(r,t){var i,o,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:n(0),throw:n(1),return:n(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function n(a){return function(e){var n=[a,e];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(s=2&n[0]?o.return:n[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,n[1])).done)return s;switch(o=0,(n=s?[2&n[0],s.value]:n)[0]){case 0:case 1:s=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3]))l.label=n[1];else if(6===n[0]&&l.label<s[1])l.label=s[1],s=n;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(n)}}n=t.call(r,l)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}}}function f(e,n,a,r){e[r=void 0===r?a:r]=n[a]}function d(e,n){for(var a in e)"default"===a||n.hasOwnProperty(a)||(n[a]=e[a])}function p(e){var n="function"==typeof Symbol&&Symbol.iterator,a=n&&e[n],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function k(e,n){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,t,i=a.call(e),o=[];try{for(;(void 0===n||0<n--)&&!(r=i.next()).done;)o.push(r.value)}catch(e){t={error:e}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(t)throw t.error}}return o}function b(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(k(arguments[n]));return e}function h(){for(var e=0,n=0,a=arguments.length;n<a;n++)e+=arguments[n].length;for(var r=Array(e),t=0,n=0;n<a;n++)for(var i=arguments[n],o=0,s=i.length;o<s;o++,t++)r[t]=i[o];return r}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function y(e,n,a){var t,i,o;if(Symbol.asyncIterator)return t=a.apply(e,n||[]),i=[],o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;throw new TypeError("Symbol.asyncIterator is not defined.");function r(r){t[r]&&(o[r]=function(a){return new Promise(function(e,n){1<i.push([r,a,e,n])||s(r,a)})})}function s(e,n){try{(a=t[e](n)).value instanceof m?Promise.resolve(a.value.v).then(l,c):g(i[0][2],a)}catch(e){g(i[0][3],e)}var a}function l(e){s("next",e)}function c(e){s("throw",e)}function g(e,n){e(n),i.shift(),i.length&&s(i[0][0],i[0][1])}}function B(r){var t,e={};return n("next"),n("throw",function(e){throw e}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,a){e[n]=r[n]?function(e){return(t=!t)?{value:m(r[n](e)),done:"return"===n}:a?a(e):e}:a}}function v(o){var e,n;if(Symbol.asyncIterator)return(e=o[Symbol.asyncIterator])?e.call(o):(o=p(o),n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n);throw new TypeError("Symbol.asyncIterator is not defined.");function a(i){n[i]=o[i]&&function(t){return new Promise(function(e,n){var a,r;t=o[i](t),a=e,e=n,r=t.done,n=t.value,Promise.resolve(n).then(function(e){a({value:e,done:r})},e)})}}}function A(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function j(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n.default=e,n}function O(e){return e&&e.__esModule?e:{default:e}}function R(e,n){if(n.has(e))return n.get(e);throw new TypeError("attempted to get private field on non-instance")}function _(e,n,a){if(n.has(e))return n.set(e,a),a;throw new TypeError("attempted to set private field on non-instance")}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.jsonSchemaRules=void 0;const r=a(1),t=a(0),i=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(n<e)],o=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(e<n)],s=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],l=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],c=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(!!(e%n))],g=({after:e,up:n})=>{return void 0!==(null==(n=null==(n=null==(n=n(2).after)?void 0:n.properties)?void 0:n[e])?void 0:n.default)?t.nonBreaking:t.breaking};n.jsonSchemaRules=(e=t.allUnclassified)=>({"/":e,"/title":t.allAnnotation,"/multipleOf":c,"/maximum":i,"/exclusiveMaximum":s,"/minimum":o,"/exclusiveMinimum":s,"/maxLength":i,"/minLength":o,"/pattern":[t.breaking,t.nonBreaking,t.breaking],"/maxItems":i,"/minItems":o,"/uniqueItems":l,"/maxProperties":i,"/minProperties":o,"/required":{"/":t.onlyAddBreaking,"/*":[g,t.nonBreaking,g]},"/enum":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/type":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/not":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.allBreaking)},"/allOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.allBreaking)},"/oneOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.addNonBreaking)},"/anyOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.addNonBreaking)},"/items":()=>(0,n.jsonSchemaRules)(t.addNonBreaking),"/properties":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.addNonBreaking)},"/additionalProperties":()=>(0,n.jsonSchemaRules)([t.breaking,t.breaking,r.breakingIfAfterTrue]),"/description":t.allAnnotation,"/format":[t.breaking,t.nonBreaking,t.breaking],"/default":[t.nonBreaking,t.breaking,t.breaking],"/nullable":l,"/discriminator":{"/":t.allUnclassified,"/propertyName":t.allUnclassified,"/mapping":t.allUnclassified},"/readOnly":l,"/writeOnly":l,"/example":t.allAnnotation,"/examples":t.allAnnotation,"/externalDocs":t.allAnnotation,"/deprecated":t.allDeprecate,"/xml":{"/":t.allUnclassified,"/name":t.allUnclassified,"/namespace":t.allUnclassified,"/prefix":t.allUnclassified,"/attribute":t.allUnclassified,"/wrapped":t.allUnclassified}})},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=a(2);r.__exportStar(a(8),n),r.__exportStar(a(9),n),r.__exportStar(a(3),n),r.__exportStar(a(10),n),r.__exportStar(a(11),n),r.__exportStar(a(12),n)},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ApiCompare=void 0;const k=a(2),b=a(1),r=a(4),i=a(0);var t=a(6);const o=a(13),s=Symbol("renamed");class l extends t.JsonCompare{constructor(e,n,a={}){super(e,n,a),this.before=e,this.after=n,this.beforeRefs=new Set,this.afterRefs=new Set,this.beforeCache=new Map,this.afterCache=new Map,this.compareCache=new Map,this.renamedPath={},this._formatMergeMeta=e=>Object.assign({type:e.type,action:e.action},e.action===i.DiffAction.replace||e.action===i.DiffAction.rename?{replaced:e.before}:{}),this.resolvePath=(e,n)=>{var a="before"===e?this.beforeCache:this.afterCache;let r=this[e];for(const i of n){var t=Array.isArray(r)?r[+i]:r[i];if(void 0===(r=void 0===t&&r.$ref?(r=(0,b.resolveRef)(r,this[e],a),Array.isArray(r)?r[+i]:r[i]):t))break}return r.$ref?(0,b.resolveRef)(r,this[e],a):r},this.rules=a.rules||this.calcApiRules(e),this.formatMergedMeta=a.formatMergedMeta||this._formatMergeMeta.bind(this),this.resolveUnchangedRefs=a.resolveUnchangedRefs||!1;var r=a.externalRefs||{};for(const t of Object.keys(r))this.beforeCache.set(t,r[t]),this.afterCache.set(t,r[t])}getMatchFunc(e){return(0,b.getPathMatchFunc)(this.rules,e,this.before)||super.getMatchFunc(e)}static apiDiff(e,n,a={}){return new l(e,n,a).compare()}static apiDiffTree(e,n,a={}){return new l(e,n,a).buildDiffTree()}static apiMerge(e,n,a={}){return new l(e,n,a).merge()}dereference(e,n,a){const r="#"+a.ref,[t,i]="before"===e?[this.beforeRefs,this.beforeCache]:[this.afterRefs,this.afterCache];a=()=>{n.$ref&&t.delete(n.$ref),t.delete(r)};return t.has(n.$ref)||"#"===n.$ref?[n,a]:(t.add(r),n.$ref&&t.add(n.$ref),[(0,b.resolveRef)(n,this[e],i),a])}calcApiRules(e){return"object"==typeof e&&e?/3.+/.test((null==e?void 0:e.openapi)||"")?r.openapi3Rules:/2.+/.test((null==e?void 0:e.asyncapi)||"")?r.asyncApi2Rules:/2.+/.test((null==e?void 0:e.swagger)||"")?r.swagger2Rules:null!=e&&e.graphapi?r.graphapiRules:(0,r.jsonSchemaRules)():(0,r.jsonSchemaRules)()}classifyDiff(e){var n=e;if("test"===e.action)return n;var a="rename"===e.action?[...e.path,"*",""]:[...e.path,""],a=(0,b.getPathRules)(this.rules,a,this.merged),a=(Array.isArray(a)?a:i.allUnclassified)["rename"===e.action?2:["add","remove","replace"].indexOf(e.action)];try{return n.type="function"==typeof a?a(new o.ChangeContext(this,e.path)):a,n}catch(e){return n.type=i.unclassified,n}}getRenamedPath(n){var a=[...n];let r=this.renamedPath;for(let e=0;e<n.length;e++){var t=n[e];if(void 0===r[t])break;(r=r[t])[s]&&(a[e]=r[s])}return a}compareResult(e){return e.action===i.DiffAction.rename&&(0,b.setValueByPath)(this.renamedPath,[...e.path,e.before,s],e.after),super.compareResult(this.classifyDiff(e))}compareObjects(e,n,a,r){var t=e["$ref"],i=k.__rest(e,["$ref"]),o=n["$ref"],s=k.__rest(n,["$ref"]),l=t?t===o?t:t+":"+o:"#"+a.ref,c=this.compareCache.get(l);if(c&&((0,b.isEmptyObject)(i)&&(0,b.isEmptyObject)(s)||!t&&!o)){if(!c.result.diffs.length&&!this.resolveUnchangedRefs)return super.compareObjects(e,n,a,r);(0,b.mergeValues)(r,c.merged);var g=c.result.diffs.map(e=>Object.assign(Object.assign({},e),{path:[...a,...e.path]}));return Object.assign(Object.assign({},c.result),{diffs:g})}var[c,g]=this.dereference("before",e,a),[u,f]=this.dereference("after",n,a),d=Array.isArray(r)?[]:{};let p=super.compareObjects(c,u,a,r);return t&&o&&(0,b.isEmptyObject)(i)&&(0,b.isEmptyObject)(s)&&(c=p.diffs.map(e=>Object.assign(Object.assign({},e),{path:e.path.slice(a.items.length)})),this.compareCache.set(l,{result:Object.assign(Object.assign({},p),{diffs:c}),merged:r})),f(),g(),!t||t!==o||p.diffs.length||this.resolveUnchangedRefs?(0,b.mergeValues)(r,d):(Array.isArray(r)?r.length=0:Object.keys(r).forEach(e=>delete r[e]),p=super.compareObjects(e,n,a,r)),p}}n.ApiCompare=l},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.JsonCompare=void 0;const u=a(2),A=a(1),f=a(0);n.JsonCompare=class{get merged(){return this._merged.value}constructor(e,n,a={}){this.before=e,this.after=n,this._merged={},this._formatMergeMeta=e=>Object.assign({action:e.action},e.action===f.DiffAction.replace||e.action===f.DiffAction.rename?{replaced:e.before}:{}),this.trimStrings=a.trimStrings,this.caseSensitive=a.caseSensitive,this.strictArrays=a.strictArrays,this.matchRules=a.matchRules||{},this.diffKey=a.metaKey||f.DIFF_META_KEY,this.arrayMeta=a.arrayMeta,this.formatMergedMeta=a.formatMergedMeta||this._formatMergeMeta.bind(this)}setMeta(e,n,a){void 0===e[this.diffKey]&&(e[this.diffKey]={}),e[this.diffKey][n]=a}checkMatch(e,n,a,r,t){var i=this.getMatchFunc(e);return!!i&&i({path:e.items,before:{key:r,value:n[r],parent:n,source:this.before},after:{key:t,value:a[t],parent:a,source:this.after}})}getMatchFunc(e){e=e.ref;return this.matchRules[e]}compare(){return this.compareAny(this.before,this.after).diffs}buildDiffTree(){return this.compareAny(this.before,this.after).diffTree}merge(){return this.compareAny(this.before,this.after),this._merged.value}normalizeString(e){return e=this.trimStrings?e.trim():e,e=this.caseSensitive?e:e.toLowerCase()}mergeResults(e,n,a=!1){var r,t={diffs:[],diffTree:{}};for(r of Object.keys(e)){var i,o,{diffs:s,diff:l,diffTree:c,parentMeta:g}=e[r];l&&l.action!==f.DiffAction.test?(o=l["path"],i=u.__rest(l,["path"]),o=o[o.length-1],this.setMeta(t.diffTree,o,i),t.diffs.push(l),a&&!this.arrayMeta?(void 0===t.parentMeta&&(t.parentMeta={}),t.parentMeta[o]=this.formatMergedMeta(l)):l.action===f.DiffAction.rename?this.setMeta(n,l.after,this.formatMergedMeta(l)):this.setMeta(n,o,this.formatMergedMeta(l)),r):(s.length&&(t.diffTree[r]=c,t.diffs.push(...s)),g&&this.setMeta(n,a?+r:r,{array:g}))}return t}mergeValue({action:e,before:n,after:a}){return e===f.DiffAction.test||e===f.DiffAction.remove?n:a}compareResult(e){return e.action===f.DiffAction.test?{diffs:[],diff:e}:{diffs:[e],diff:e}}compareAny(e,n,a=new A.PathPointer,r=this._merged,t="value"){if((0,A.typeOf)(e)!==(0,A.typeOf)(n))return r[t]=n,this.compareResult((0,A.replaced)(a,e,n));switch((0,A.typeOf)(e)){case"object":return r[t]={},this.compareObjects(e,n,a,r[t]);case"array":return r[t]=[],this.compareArrays(e,n,a,r[t]);default:var i=("string"==typeof e?this.normalizeString(e)===this.normalizeString(n):e===n)?(0,A.unchanged)(a,e):(0,A.replaced)(a,e,n);return r[t]=this.mergeValue(i),this.compareResult(i)}}compareObjects(n,a,r,e){var t={};if((0,A.isEmptyObject)(n)&&(0,A.isEmptyObject)(a))return this.compareResult((0,A.unchanged)(r,n));var i=Object.keys(n),o=new Set(Object.keys(a));for(const g of i){var s,l=[...o].find(e=>e===g||this.checkMatch(r,n,a,g,e));l&&l!==g&&(t[l]=this.compareResult((0,A.renamed)(r,g,l))),void 0===l?(s=(0,A.removed)(r.childPath(g),n[g]),e[g]=this.mergeValue(s),t[g]=this.compareResult(s)):(t[g]=this.compareAny(n[g],a[l],r.childPath(g),e,l),o.delete(l))}for(const u of o){var c=(0,A.added)(r.childPath(u),a[u]);e[u]=this.mergeValue(c),t[u]=this.compareResult(c)}return this.mergeResults(t,e)}compareArrays(n,a,r,e){if(0===n.length&&0===a.length)return this.compareResult((0,A.unchanged)(r,n));var t=this.getMatchFunc(r);if(!this.strictArrays&&!t)return this.compareEnums(n,a,r,e);var i={},o=new Set(a.keys());for(const g of n.keys()){var s,l=r.childPath(g),c=t?[...o].find(e=>this.checkMatch(r,n,a,g,e)):g;void 0===c||c>=a.length?(s=(0,A.removed)(l,n[g]),e[g]=this.mergeValue(s),i[g]=this.compareResult(s)):(o.delete(c),i[g]=this.compareAny(n[g],a[c],l,e,g))}let g=n.length;for(const f of o){var u=(0,A.added)(r.childPath(g),a[f]);e[g]=this.mergeValue(u),i[g++]=this.compareResult(u)}return this.mergeResults(i,e,!0)}compareEnums(n,a,r,t){var e,i,o={},s=[],l=new Set,c=new Set;for(const h of n.keys()){let e=[];for(const m of a.keys())if(!l.has(m)){var g={},u=this.compareAny(n[h],a[m],r.childPath(h),g);if(!u.diffs.length){l.add(m),c.add(h),e={value:g.value,res:u};break}e[m]={value:g.value,res:u,diffs:typeof n[h]==typeof a[m]?u.diffs.length:-1}}s.push(e)}for(const h of n.keys()){const y=s[h];if(Array.isArray(y)){var f,d=[...Array(a.length).keys()].filter(e=>{return 0<=((null==(e=y[e])?void 0:e.diffs)||0)}).sort((e,n)=>{return((null==(e=y[e])?void 0:e.diffs)||0)-((null==(e=y[n])?void 0:e.diffs)||0)});for(const B of a.keys()){let e=d[B];if(!l.has(e)){for(const v of n.keys()){var p=s[v];if(Array.isArray(p)&&!c.has(v)&&p[e]<y[e]){e=-1;break}}if(0<=e){var{value:k,res:b}=y[e];t[h]=k,o[h]=b,c.add(h),l.add(e);break}}}c.has(h)||(f=(0,A.removed)(r.childPath(h),n[h]),t[h]=this.mergeValue(f),o[h]=this.compareResult(f))}else h,t[h]=y.value,o[h]=y.res}let h=n.length;for(e of a.keys())l.has(e)||(i=(0,A.added)(r.childPath(h),a[e]),t[h]=this.mergeValue(i),o[h++]=this.compareResult(i));return this.mergeResults(o,t,!0)}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.apiDiffTree=n.apiMerge=n.apiDiff=n.JsonCompare=n.ApiCompare=void 0;var r=a(2),t=a(5),i=(r.__exportStar(a(4),n),r.__exportStar(a(14),n),r.__exportStar(a(0),n),r.__exportStar(a(1),n),r.__exportStar(a(15),n),r.__exportStar(a(16),n),a(5)),o=(Object.defineProperty(n,"ApiCompare",{enumerable:!0,get:function(){return i.ApiCompare}}),a(6));Object.defineProperty(n,"JsonCompare",{enumerable:!0,get:function(){return o.JsonCompare}}),n.apiDiff=t.ApiCompare.apiDiff,n.apiMerge=t.ApiCompare.apiMerge,n.apiDiffTree=t.ApiCompare.apiDiffTree},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.asyncApi2Rules=n.messageRules=n.messageTraitsRules=void 0;var r=a(3),a=a(0),t={"/":a.addNonBreaking,"/location":a.addNonBreaking,"/description":a.allAnnotation},i={"/summary":a.allAnnotation,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation,"/bindings":a.allUnclassified},o=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation},i),t=(n.messageTraitsRules=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/headers":a.allUnclassified,"/correlationId":t,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/examples":a.allAnnotation},i),n.messageRules=Object.assign({"/":a.allBreaking,"/headers":a.allUnclassified,"/correlationId":t,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/description":a.allNonBreaking,"/examples":a.allAnnotation,"/traits":n.messageTraitsRules,"/payload":(0,r.jsonSchemaRules)(a.allBreaking)},i),Object.assign({"/":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation,"/traits":o,"/message":n.messageRules},i)),o={"/":a.addNonBreaking,"/version":a.addNonBreaking,"/termsOfService":a.addNonBreaking,"/license":{"/":a.addNonBreaking,"/name":a.allBreaking,"/url":a.onlyAddBreaking},"/title":a.allAnnotation,"/description":a.allAnnotation,"/contact":{"/":a.allAnnotation,"/name":a.allAnnotation,"/url":a.allAnnotation,"/email":a.allAnnotation}},i={"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/url":a.addNonBreaking,"/description":a.allAnnotation,"/protocol":a.allBreaking,"/protocolVersion":a.allBreaking,"/variables":{"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/enum":{"/":a.addNonBreaking,"/*":a.addNonBreaking},"/default":a.allBreaking,"/description":a.allAnnotation,"/examples":a.allAnnotation}},"/security":{"/":a.allBreaking,"/*":a.allBreaking},"/bindings":a.allUnclassified}},t={"/":a.addNonBreaking,"/description":a.allNonBreaking,"/bindings":a.allUnclassified,"/subscribe":t,"/publish":t,"/parameters":{"/":a.allBreaking,"/*":{"/":a.addNonBreaking,"/description":a.allNonBreaking,"/schema":(0,r.jsonSchemaRules)(a.allBreaking),"/location":a.allBreaking}}};n.asyncApi2Rules={"/asyncapi":a.addNonBreaking,"/id":a.allAnnotation,"/defaultContentType":a.allBreaking,"/info":o,"/servers":i,"/channels":{"/":a.addNonBreaking,"/*":t},"/components":a.allNonBreaking,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.openapi3Rules=void 0;const r=a(1);var t=a(3);const i=a(0);var a={"/":i.allAnnotation,"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/url":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/variables":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/enum":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":[i.nonBreaking,i.breaking,i.breaking]},"/default":[i.nonBreaking,i.nonBreaking,i.breaking],"/description":i.allAnnotation}}}},o=(o={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/name":[i.nonBreaking,i.breaking,e=>{return"path"===(null==(e=e.up().before)?void 0:e.in)?i.nonBreaking:i.breaking}],"/in":[i.nonBreaking,i.breaking,i.breaking],"/schema":(0,t.jsonSchemaRules)(i.allBreaking),"/description":i.allAnnotation,"/required":[i.breaking,i.nonBreaking,e=>{var n;return null!=(n=e.up().after.schema)&&n.default?i.nonBreaking:(0,r.breakingIfAfterTrue)(e)}],"/deprecated":i.allDeprecate}},(0,r.matchRule)(o,({before:{value:e},after:{value:n}})=>e.in===n.in&&("path"===e.in||e.name===n.name))),s={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/required":[i.breaking,i.nonBreaking,r.breakingIfAfterTrue],"/deprecated":i.allDeprecate}},l={"/":[i.nonBreaking,i.nonBreaking,i.nonBreaking],"/*":{"/contentType":[i.nonBreaking,i.breaking,i.breaking],"/headers":s,"/style":[i.nonBreaking,i.breaking,i.breaking],"/explode":[i.nonBreaking,i.breaking,i.breaking],"/allowReserved":[i.nonBreaking,i.breaking,i.breaking]}},l=(l={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.unclassified],"/schema":(0,t.jsonSchemaRules)(i.allBreaking),"/example":i.allAnnotation,"/examples":i.allAnnotation,"/encoding":l}},(0,r.matchRule)(l,({before:e,after:n})=>{var[n=""]=String(n.key).split(";"),[e=""]=String(e.key).split(";"),[n,a]=n.split("/"),[e,r]=e.split("/");return!(n!==e&&"*"!==n&&"*"!==e||a!==r&&"*"!==a&&"*"!==r)})),c={"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/content":l,"/required":[i.breaking,i.nonBreaking,r.breakingIfAfterTrue]},l={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/headers":s,"/content":l}},g={"/":[e=>(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking,i.nonBreaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking],"/*":[e=>e.up().before.length?i.nonBreaking:i.breaking,e=>e.up().after.length?i.breaking:i.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking]},u={"/":[i.nonBreaking,i.breaking,i.breaking],"/tags":i.allAnnotation,"/summary":i.allAnnotation,"/description":i.allAnnotation,"/externalDocs":i.allAnnotation,"/operationId":i.allAnnotation,"/parameters":o,"/requestBody":c,"/responses":l,"/deprecated":i.allDeprecate,"/security":{"/":[e=>(0,r.emptySecurity)(e.after)||(0,r.includeSecurity)(e.after,e.root.before.security)?i.nonBreaking:i.breaking,e=>(0,r.includeSecurity)(e.root.after.security,e.before)?i.nonBreaking:i.breaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking],"/*":[e=>e.up().before.length?i.nonBreaking:i.breaking,e=>e.up().after.length?i.breaking:i.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking]},"/servers":a};n.openapi3Rules={"/openapi":i.allAnnotation,"/info":{"/":i.allAnnotation,"/title":i.allAnnotation,"/description":i.allAnnotation,"/termsOfService":i.allAnnotation,"/contact":i.allAnnotation,"/licence":{"/":[i.nonBreaking,i.breaking,i.breaking],"/name":[i.breaking,i.breaking,i.breaking],"/url":[i.breaking,i.nonBreaking,i.nonBreaking]},"/version":i.allAnnotation},"/servers":a,"/paths":(n={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.nonBreaking],"/summary":i.allAnnotation,"/description":i.allAnnotation,"/*":u,"/servers":a,"/parameters":o}},(0,r.matchRule)(n,({before:e,after:n})=>{return String(e.key).replace(new RegExp("{.*?}","g"),"*")===String(n.key).replace(new RegExp("{.*?}","g"),"*")})),"/components":{"/":i.allNonBreaking,"/schemas":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":(0,t.jsonSchemaRules)(i.addNonBreaking)},"/responses":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":l},"/parameters":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":o},"/examples":i.allAnnotation,"/requestBodies":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":c},"/headers":s,"/securitySchemes":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":{"/":[i.breaking,i.nonBreaking,i.breaking],"/type":[i.breaking,i.nonBreaking,i.breaking],"/description":i.allAnnotation,"/name":[i.breaking,i.nonBreaking,i.breaking],"/in":[i.breaking,i.nonBreaking,i.breaking],"/scheme":[i.breaking,i.nonBreaking,i.breaking],"/bearerFormat":i.allAnnotation,"/flows":[i.breaking,i.nonBreaking,i.breaking],"/openIdConnectUrl":i.allAnnotation}}},"/security":g,"/tags":i.allAnnotation,"/externalDocs":i.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.serviceNodeRules=n.contentMediaTypeRules=void 0;const r=a(0),t=a(1),i=a(4);var a=e=>(0,t.matchRule)(e,({before:{value:e},after:{value:n}})=>{var a;return n.type===e.type&&("model"===n.type?n.name===e.name:(null==(a=e.data.path)?void 0:a.replace(new RegExp("{.*?}","g"),"*"))===(null==(a=n.data.path)?void 0:a.replace(new RegExp("{.*?}","g"),"*"))&&e.data.method===n.data.method)}),o=(n.contentMediaTypeRules=e=>(0,t.matchRule)(e,({before:e,after:n})=>{var[n=""]=String(n.value.mediaType).split(";"),[e=""]=String(e.value.mediaType).split(";"),[n,a]=n.split("/"),[e,r]=e.split("/");return!(n!==e&&"*"!==n&&"*"!==e||a!==r&&"*"!==a&&"*"!==r)}),{"/":r.addNonBreaking,"/name":[r.nonBreaking,r.breaking,r.breaking],"/style":r.allUnclassified,"/description":r.allAnnotation,"/examples":r.allAnnotation,"/schema":(0,i.jsonSchemaRules)(r.allBreaking),"/explode":r.allUnclassified,"/required":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/deprecated":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue]}),s={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":o},l=(0,n.contentMediaTypeRules)({"/":r.addNonBreaking,"/*":{"/":[r.nonBreaking,r.breaking,r.unclassified],"/mediaType":[r.nonBreaking,r.breaking,r.unclassified],"/schema":(0,i.jsonSchemaRules)(r.allBreaking),"/examples":(0,t.objArray)("key",{"/":r.allAnnotation,"/*":r.allAnnotation}),"/encodings":[r.nonBreaking,r.breaking,r.breaking]}}),o={"/path":(0,t.objArray)("name",s),"/query":(0,t.objArray)("name",{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":Object.assign(Object.assign({},o),{"/allowEmptyValue":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/allowReserved":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue]})}),"/headers":(0,t.objArray)("name",s),"/cookie":(0,t.objArray)("name",s),"/body":{"/":[r.nonBreaking,r.breaking,r.breaking],"/contents":l,"/required":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/description":r.allAnnotation}},s={"/":r.allUnclassified,"/*":{"/":r.addNonBreaking,"/name":[r.nonBreaking,r.breaking,r.breaking],"/style":r.allUnclassified,"/description":r.allAnnotation,"/schema":(0,i.jsonSchemaRules)(r.allBreaking),"/explode":r.allUnclassified,"/required":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/deprecated":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue]}},l={"/":r.addNonBreaking,"/*":{"/":r.addNonBreaking,"/code":r.allUnclassified,"/contents":l,"/headers":(0,t.objArray)("name",s),"/description":r.allAnnotation}},s={"/":[r.nonBreaking,r.breaking,r.breaking],"/url":[r.nonBreaking,r.breaking,r.breaking],"/name":r.allAnnotation,"/description":r.allAnnotation,"/variables":[r.nonBreaking,r.breaking,r.breaking]},c={"/":[r.breaking,r.nonBreaking,r.unclassified],"/*":[r.breaking,r.nonBreaking,r.unclassified]};const g={"/":[r.nonBreaking,r.breaking,r.breaking],"/data":()=>(0,i.jsonSchemaRules)(r.addNonBreaking),"/*":r.allAnnotation},u={"/":[r.nonBreaking,r.breaking,r.breaking],"/data":{"/id":r.allAnnotation,"/iid":r.allAnnotation,"/tags":r.allAnnotation,"/summary":r.allAnnotation,"/description":r.allAnnotation,"/method":[r.nonBreaking,r.breaking,r.breaking],"/path":[r.nonBreaking,r.breaking,r.breaking],"/request":o,"/responses":(0,t.objArray)("code",l),"/servers":{"/":r.allUnclassified,"/*":s},"/callbacks":a({"/callbackName":r.allAnnotation,"/method":[r.nonBreaking,r.breaking,r.breaking],"/path":[r.nonBreaking,r.breaking,r.breaking],"/request":o,"/responses":(0,t.objArray)("code",l),"/deprecated":r.allUnclassified,"/internal":r.allUnclassified,"/extensions":r.allUnclassified}),"/security":c,"/deprecated":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/internal":r.allUnclassified,"/extensions":r.allUnclassified},"/*":r.allAnnotation};o={"/id":r.allAnnotation,"/iid":r.allAnnotation,"/tags":r.allAnnotation,"/summary":r.allAnnotation,"/description":r.allAnnotation,"/name":r.allAnnotation,"/version":r.allAnnotation,"/servers":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":s},"/security":c,"/securitySchemes":(0,t.objArray)("name",{"/":r.addNonBreaking,"/*":{"/":[r.breaking,r.nonBreaking,r.breaking],"/type":[r.breaking,r.nonBreaking,r.breaking],"/description":r.allAnnotation,"/name":[r.breaking,r.nonBreaking,r.breaking],"/in":[r.breaking,r.nonBreaking,r.breaking],"/scheme":[r.breaking,r.nonBreaking,r.breaking],"/bearerFormat":r.allAnnotation,"/flows":[r.breaking,r.nonBreaking,r.breaking],"/openIdConnectUrl":r.allAnnotation}}),"/termsOfService":r.allAnnotation,"/contact":r.allAnnotation,"/license":[r.breaking,r.breaking,r.breaking],"/logo":r.allAnnotation};n.serviceNodeRules={"/*":r.allAnnotation,"/data":o,"/children":a({"/":[r.nonBreaking,r.breaking,r.breaking],"/*":({type:e})=>"model"===e?g:u}),"/components":{"/":[r.nonBreaking,r.nonBreaking,r.nonBreaking],"/schemas":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":(0,i.jsonSchemaRules)(r.addNonBreaking)}}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.swagger2Rules=void 0;const r=a(1),t=a(0),i=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(n<e)],o=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(e<n)],s=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],l=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],c=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(!!(e%n))];var a={"/":[e=>(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking,t.nonBreaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking],"/*":[e=>e.up().before.length?t.nonBreaking:t.breaking,e=>e.up().after.length?t.breaking:t.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking]},g={"/":[e=>(0,r.includeSecurity)(e.after,e.root.before.security)?t.nonBreaking:t.breaking,e=>(0,r.includeSecurity)(e.root.after.security,e.before)?t.nonBreaking:t.breaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking],"/*":[e=>e.up().before.length?t.nonBreaking:t.breaking,e=>e.up().after.length?t.breaking:t.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking]};const u=({after:e,up:n})=>{return void 0!==(null==(n=null==(n=null==(n=n(2).after)?void 0:n.properties)?void 0:n[e])?void 0:n.default)?t.nonBreaking:t.breaking};var f=e=>(0,r.matchRule)(e,({before:e,after:n})=>{var[n=""]=String(n.key).split(";"),[e=""]=String(e.key).split(";"),[n,a]=n.split("/"),[e,r]=e.split("/");return!(n!==e&&"*"!==n&&"*"!==e||a!==r&&"*"!==a&&"*"!==r)});const d=(e=t.allUnclassified)=>Object.assign(Object.assign({"/":e},{"/type":[t.breaking,t.nonBreaking,t.breaking],"/format":[t.breaking,t.nonBreaking,t.breaking],"/items":()=>d(t.allBreaking),"/default":[t.nonBreaking,t.breaking,t.breaking],"/maximum":i,"/exclusiveMaximum":s,"/minimum":o,"/exclusiveMinimum":s,"/maxLength":i,"/minLength":o,"/pattern":[t.breaking,t.nonBreaking,t.breaking],"/maxItems":i,"/minItems":o,"/uniqueItems":l,"/enum":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/multipleOf":c}),{"/title":t.allAnnotation,"/description":t.allAnnotation,"/items":()=>d(t.allBreaking),"/maxProperties":i,"/minProperties":o,"/required":{"/":t.onlyAddBreaking,"/*":[u,t.nonBreaking,u]},"/properties":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>d(t.addNonBreaking)},"/allOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>d(t.allBreaking)},"/readOnly":l,"/discriminator":t.allAnnotation,"/additionalProperties":()=>d([t.breaking,t.breaking,r.breakingIfAfterTrue]),"/example":t.allAnnotation,"/externalDocs":t.allAnnotation,"/xml":t.allUnclassified});var p={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/url":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation,"/variables":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/enum":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/default":[t.breaking,t.breaking,t.breaking],"/description":t.allAnnotation}}}},k=(k={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":Object.assign(Object.assign({"/":[t.nonBreaking,t.breaking,t.breaking],"/name":[t.nonBreaking,t.breaking,e=>{return"path"===(null==(e=e.up().before)?void 0:e.in)?t.nonBreaking:t.breaking}],"/in":[t.nonBreaking,t.breaking,t.breaking],"/schema":()=>d(t.allBreaking),"/description":t.allAnnotation,"/required":[t.breaking,t.nonBreaking,r.breakingIfAfterTrue]},d()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},(0,r.matchRule)(k,({before:{value:e},after:{value:n}})=>e.in===n.in&&("path"===e.in||e.name===n.name))),b={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":Object.assign(Object.assign({"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation},d()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},b={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation,"/headers":b,"/schema":()=>d(t.allBreaking),"/examples":t.allAnnotation}},f={"/":[t.nonBreaking,t.breaking,t.breaking],"/tags":t.allAnnotation,"/summary":t.allAnnotation,"/description":t.allAnnotation,"/externalDocs":t.allAnnotation,"/operationId":t.allAnnotation,"/consumes":f({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/produces":f({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/parameters":k,"/responses":b,"/deprecated":t.allDeprecate,"/security":g};n.swagger2Rules={"/swagger":t.allAnnotation,"/info":{"/":t.allAnnotation,"/title":t.allAnnotation,"/description":t.allAnnotation,"/termsOfService":t.allAnnotation,"/contact":t.allAnnotation,"/licence":{"/":[t.nonBreaking,t.breaking,t.breaking],"/name":[t.breaking,t.breaking,t.breaking],"/url":[t.breaking,t.nonBreaking,t.nonBreaking]},"/version":t.allAnnotation},"/servers":p,"/paths":(g={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.nonBreaking],"/*":f,"/parameters":k}},(0,r.matchRule)(g,({before:e,after:n})=>{return String(e.key).replace(new RegExp("{.*?}","g"),"*")===String(n.key).replace(new RegExp("{.*?}","g"),"*")})),"/definitions":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":()=>d(t.addNonBreaking)},"/responses":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":b},"/parameters":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":k},"/examples":t.allAnnotation,"/securityDefinitions":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":{"/":[t.breaking,t.nonBreaking,t.breaking],"/type":[t.breaking,t.nonBreaking,t.breaking],"/description":t.allAnnotation,"/name":[t.breaking,t.nonBreaking,t.breaking],"/in":[t.breaking,t.nonBreaking,t.breaking],"/flow":[t.breaking,t.nonBreaking,t.breaking],"/authorizationUrl":[t.breaking,t.nonBreaking,t.breaking],"/tokenUrl":[t.breaking,t.nonBreaking,t.breaking],"/scopes":[t.breaking,t.nonBreaking,t.breaking]}},"/security":a,"/tags":t.allAnnotation,"/externalDocs":t.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.graphapiRules=n.graphApiTypesRules=n.graphApiOperationRules=void 0;var r=a(0),t=a(3),a=a(1);n.graphApiOperationRules={"/title":r.allAnnotation,"/description":r.allAnnotation,"/args":{"/*":()=>u},"/response":()=>n.graphApiTypesRules,"/directives":{"/*":()=>i}};const i={"/meta":r.allAnnotation};var t=Object.assign(Object.assign({},(0,t.jsonSchemaRules)(r.addNonBreaking)),{"/description":r.allAnnotation,"/directives":{"/*":()=>i}}),o=Object.assign(Object.assign({},t),{"/title":r.allAnnotation});const s=Object.assign(Object.assign({},o),{"/specifiedByURL":r.allAnnotation}),l=Object.assign(Object.assign({},o),{"/properties":{"/*":()=>f}});var c=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>l}}),g=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>s}});const u={"/title":r.allAnnotation,"/description":r.allAnnotation,"/required":[r.breaking,r.nonBreaking,a.breakingIfAfterTrue],"/schema":()=>n.graphApiTypesRules,"/default":r.addNonBreaking,"/directives":{"/*":()=>i}};a=Object.assign(Object.assign({},o),{"/inputFields":{"/*":u}}),o=Object.assign(Object.assign({},o),{"/items":()=>n.graphApiTypesRules});const f=Object.assign(Object.assign({},t),{"/args":{"/*":()=>u}});n.graphApiTypesRules=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),l),c),o),a),n.graphapiRules={"/queries":{"/*":n.graphApiOperationRules},"/mutations":{"/*":n.graphApiOperationRules},"/subscriptions":{"/*":n.graphApiOperationRules},"/components":{"/scalars":{"/*":s},"/objects":{"/*":l},"/interfaces":{"/*":l},"/unions":{"/*":c},"/enums":{"/*":g},"/inputObjects":{"/*":a},"/directives":{"/*":{"/":r.addNonBreaking,"/title":r.allAnnotation,"/description":r.allAnnotation,"/locations":r.allAnnotation,"/repeatable":r.allUnclassified,"/args":{"/":r.addNonBreaking,"/*":u}}}}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ChangeContext=void 0;n.ChangeContext=class r{get before(){return this._engine.resolvePath("before",this._path)}get after(){var e=this._engine.getRenamedPath(this._path);return this._engine.resolvePath("after",e)}get up(){return(e=1)=>new r(this._engine,this._path.slice(0,-e))}get root(){return new r(this._engine,[])}constructor(e,n){this._engine=e,this._path=n}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.changeDoc=void 0;const t=a(2),i=a(1),o=(e,n)=>{var a,r;return Array.isArray(e)?e.map(e=>o(e,n)):"object"==typeof e&&e&&(r=e["$ref"],a=t.__rest(e,["$ref"]),r)?(r=r.split("/").slice(1),Object.assign(Object.assign({},(0,i.getValueByPath)(n,r)),a)):e},s=(e,n,a)=>{if(e&&void 0!==n)return n in e?e[n]:"$ref"in e?s(o(e,a.source),n,a):void 0},l=(e,n,a=0)=>{var{node:r,path:t}=n;let i=t[a];return a===t.length?i="":"/"+i in e&&"number"!=typeof i||(i="*"),"/"+i in e?"string"==typeof(e=e["/"+i])?e:(t=a===t.length?n:Object.assign(Object.assign({},n),{key:t[a],node:o(s(r,t[a],n),n.source),parent:r}),"function"==typeof e?"string"==typeof(n=e(t))?n:l(n,t,a+1):l(e,t,a+1)):""};n.changeDoc=(e,n,a,r)=>{if("annotation"!==e.type&&"unclassified"!==e.type){a="add"===e.action?a:n;try{return l(r,Object.assign(Object.assign({},e),{node:a,source:a,key:""}))}catch(e){console.error(e)}}return""}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),a(2).__exportStar(a(17),n)},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.changeDocOpenApiRules=n.changeDocParametersRules=void 0;const s={add:"[Added]",replace:"[Changed]",remove:"[Deleted]"},l=(e,n,a="")=>n>=e.length?a:"properties"===e[n]&&n<e.length?(a+=a?"."+String(e[n+1]):String(e[n+1]),l(e,n+2,a)):("items"===e[n]&&(a+="[]"),l(e,n+1,a)),c=e=>"`"+e+"`",r=(r,t)=>({action:e,key:n,path:a})=>{a=l(a,t);return s[e]+` ${n} validator ${a?"for "+a:""} in `+r},t=(a,r,t)=>({action:e,path:n})=>`${s[e]} ${a}property ${c(l(n,t))} in `+r,g=(i,o)=>({"/":t("",i,o),"/multipleOf":r(i,o),"/maximum":r(i,o),"/exclusiveMaximum":r(i,o),"/minimum":r(i,o),"/exclusiveMinimum":r(i,o),"/maxLength":r(i,o),"/minLength":r(i,o),"/pattern":r(i,o),"/maxItems":r(i,o),"/minItems":r(i,o),"/uniqueItems":r(i,o),"/maxProperties":r(i,o),"/minProperties":r(i,o),"/items":()=>g(i,o),"/properties":{"/":({action:e,path:n,node:a})=>{return`${s[e]} properties ${e=a,r=n,t=o,Object.keys(e||{}).map(e=>c(l([...r,e],t))).join(", ")} in `+i;var r,t},"/*":()=>g(i,o)},"/type":t("Type of ",i,o),"/required":{"/":({action:e,node:n,path:a})=>{return`${s[e]} Required ${e=n,r=a,t=o,(1<e.length?"properties ":"property ")+e.map(e=>c(l([...r,"properties",e],t))).join(", ")} in `+i;var r,t},"/*":({action:e,parent:n,key:a})=>`${s[e]} Required property ${c(n[a])} in `+i},"/format":t("Value format for ",i,o),"/default":t("Default value for ",i,o),"/nullable":t("Possbile nullable value for ",i,o),"/enum":t("Possbile values for ",i,o),"/readOnly":t("Readonly status to ",i,o),"/writeOnly":t("Wrightonly status to ",i,o),"/deprecated":t("Deprecated status to ",i,o),"/allOf":()=>g(i,o),"/oneOf":()=>g(i,o),"/anyOf":()=>g(i,o),"/not":()=>g(i,o)});n.changeDocParametersRules={"/":({action:e,node:n})=>s[e]+" "+n.map(e=>e.in+" parameter "+c(e.name)).join(", "),"/*":{"/":({action:e,node:n})=>`${s[e]} ${n.required?"Required ":""}${n.in} parameter `+c(n.name),"/*":({parent:e})=>`${s.replace} ${e.required?"Required ":""}${e.in} parameter `+c(e.name),"/required":({action:e,parent:n})=>`${s[e]} Required status in ${n.in} parameter `+c(n.name),"/deprecated":({action:e,parent:n})=>`${s[e]} Deprecated status in ${n.in} parameter `+c(n.name)}},n.changeDocOpenApiRules={"/paths":{"/*":{"/":({action:e,node:n})=>s[e]+" operation "+(e=>{e=Object.keys(e).filter(e=>["get","post","put","head","delete","patch","connect","trace","options"].includes(e.toLocaleLowerCase())).map(c);return(1<e.length?"methods ":"method ")+e.join(", ")})(n),"/parameters":n.changeDocParametersRules,"/*":{"/":({action:e})=>s[e]+" operation","/parameters":n.changeDocParametersRules,"/requestBody":{"/":({action:e})=>s[e]+" Body content in Request","/required":({action:e})=>s[e]+" Required status to Request body content","/content":{"/":({action:e})=>s[e]+" Body content in Request","/*":{"/":({action:e,path:n})=>`${s[e]} Body content (${n[5]}) in Request`,"/schema":({path:e})=>g(`Request body content (${e[5]})`,7),"/encoding":({action:e,path:n})=>`${s[8===n.length?e:"replace"]} Encoding of Response ${n[4]} content (${n[6]})`}}},"/deprecated":({action:e})=>s[e]+" Deprecated status","/security":({action:e,path:n})=>s[4===n.length?e:"replace"]+" Security in Request","/responses":{"/*":{"/":({action:e,path:n})=>s[e]+" Response with status "+n[4],"/headers":{"/":({action:e,node:n,path:a})=>`${s[e]} Header parameters ${Object.keys(n).map(c).join(", ")} in Response `+a[4],"/*":{"/":({action:e,node:n,key:a,path:r})=>`${s[e]} ${n.required?"required ":""}Header parameter ${c(a)} in Response `+r[4],"/*":({node:e,key:n,path:a})=>`${s.replace} ${e.required?"required ":""}Header parameter ${c(n)} in Response `+a[4],"/required":({action:e,key:n,path:a})=>`${s[e]} Required status to Header parameter ${c(n)} in Response `+a[4],"/deprecated":({action:e,path:n,key:a})=>`${s[e]} Deprecated status to Header parameter ${c(a)} in Response `+n[4]}},"/content":{"/":({action:e,path:n})=>s[e]+" Content in Response "+n[4],"/*":{"/":({action:e,path:n})=>`${s[e]} Content (${n[6]}) in Response `+n[4],"/schema":({path:e})=>g(`Response ${e[4]} content (${e[6]})`,8),"/encoding":({action:e,path:n})=>`${s[8===n.length?e:"replace"]} Encoding of Response ${n[4]} content (${n[6]})`}}}}}}}}}]); | ||
var r=function(e,n){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,n){e.__proto__=n}:function(e,n){for(var a in n)n.hasOwnProperty(a)&&(e[a]=n[a])}))(e,n)};function t(e,n){function a(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}var i=function(){return(i=Object.assign||function(e){for(var n,a=1,r=arguments.length;a<r;a++)for(var t in n=arguments[a])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}).apply(this,arguments)};function o(e,n){var a={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,t=Object.getOwnPropertySymbols(e);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(a[t[r]]=e[t[r]]);return a}function s(e,n,a,r){var t,i=arguments.length,o=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,a,r);else for(var s=e.length-1;0<=s;s--)(t=e[s])&&(o=(i<3?t(o):3<i?t(n,a,o):t(n,a))||o);return 3<i&&o&&Object.defineProperty(n,a,o),o}function l(a,r){return function(e,n){r(e,n,a)}}function c(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function g(e,o,s,l){return new(s=s||Promise)(function(a,n){function r(e){try{i(l.next(e))}catch(e){n(e)}}function t(e){try{i(l.throw(e))}catch(e){n(e)}}function i(e){var n;e.done?a(e.value):((n=e.value)instanceof s?n:new s(function(e){e(n)})).then(r,t)}i((l=l.apply(e,o||[])).next())})}function u(r,t){var i,o,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:n(0),throw:n(1),return:n(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function n(a){return function(e){var n=[a,e];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(s=2&n[0]?o.return:n[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,n[1])).done)return s;switch(o=0,(n=s?[2&n[0],s.value]:n)[0]){case 0:case 1:s=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3]))l.label=n[1];else if(6===n[0]&&l.label<s[1])l.label=s[1],s=n;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(n)}}n=t.call(r,l)}catch(e){n=[6,e],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}}}function f(e,n,a,r){e[r=void 0===r?a:r]=n[a]}function d(e,n){for(var a in e)"default"===a||n.hasOwnProperty(a)||(n[a]=e[a])}function k(e){var n="function"==typeof Symbol&&Symbol.iterator,a=n&&e[n],r=0;if(a)return a.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,n){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var r,t,i=a.call(e),o=[];try{for(;(void 0===n||0<n--)&&!(r=i.next()).done;)o.push(r.value)}catch(e){t={error:e}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(t)throw t.error}}return o}function b(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(p(arguments[n]));return e}function h(){for(var e=0,n=0,a=arguments.length;n<a;n++)e+=arguments[n].length;for(var r=Array(e),t=0,n=0;n<a;n++)for(var i=arguments[n],o=0,s=i.length;o<s;o++,t++)r[t]=i[o];return r}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function y(e,n,a){var t,i,o;if(Symbol.asyncIterator)return t=a.apply(e,n||[]),i=[],o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;throw new TypeError("Symbol.asyncIterator is not defined.");function r(r){t[r]&&(o[r]=function(a){return new Promise(function(e,n){1<i.push([r,a,e,n])||s(r,a)})})}function s(e,n){try{(a=t[e](n)).value instanceof m?Promise.resolve(a.value.v).then(l,c):g(i[0][2],a)}catch(e){g(i[0][3],e)}var a}function l(e){s("next",e)}function c(e){s("throw",e)}function g(e,n){e(n),i.shift(),i.length&&s(i[0][0],i[0][1])}}function B(r){var t,e={};return n("next"),n("throw",function(e){throw e}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,a){e[n]=r[n]?function(e){return(t=!t)?{value:m(r[n](e)),done:"return"===n}:a?a(e):e}:a}}function v(o){var e,n;if(Symbol.asyncIterator)return(e=o[Symbol.asyncIterator])?e.call(o):(o=k(o),n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n);throw new TypeError("Symbol.asyncIterator is not defined.");function a(i){n[i]=o[i]&&function(t){return new Promise(function(e,n){var a,r;t=o[i](t),a=e,e=n,r=t.done,n=t.value,Promise.resolve(n).then(function(e){a({value:e,done:r})},e)})}}}function A(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function j(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n.default=e,n}function O(e){return e&&e.__esModule?e:{default:e}}function R(e,n){if(n.has(e))return n.get(e);throw new TypeError("attempted to get private field on non-instance")}function _(e,n,a){if(n.has(e))return n.set(e,a),a;throw new TypeError("attempted to set private field on non-instance")}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.jsonSchemaRules=void 0;const r=a(1),t=a(0),i=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(n<e)],o=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(e<n)],s=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],l=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],c=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(!!(e%n))],g=({after:e,up:n})=>{return void 0!==(null==(n=null==(n=null==(n=n(2).after)?void 0:n.properties)?void 0:n[e])?void 0:n.default)?t.nonBreaking:t.breaking};n.jsonSchemaRules=(e=t.allUnclassified)=>({"/":e,"/title":t.allAnnotation,"/multipleOf":c,"/maximum":i,"/exclusiveMaximum":s,"/minimum":o,"/exclusiveMinimum":s,"/maxLength":i,"/minLength":o,"/pattern":[t.breaking,t.nonBreaking,t.breaking],"/maxItems":i,"/minItems":o,"/uniqueItems":l,"/maxProperties":i,"/minProperties":o,"/required":{"/":t.onlyAddBreaking,"/*":[g,t.nonBreaking,g]},"/enum":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/type":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/not":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.allBreaking)},"/allOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.allBreaking)},"/oneOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.addNonBreaking)},"/anyOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.addNonBreaking)},"/items":()=>(0,n.jsonSchemaRules)(t.addNonBreaking),"/properties":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>(0,n.jsonSchemaRules)(t.addNonBreaking)},"/additionalProperties":()=>(0,n.jsonSchemaRules)([t.breaking,t.breaking,r.breakingIfAfterTrue]),"/description":t.allAnnotation,"/format":[t.breaking,t.nonBreaking,t.breaking],"/default":[t.nonBreaking,t.breaking,t.breaking],"/nullable":l,"/discriminator":{"/":t.allUnclassified,"/propertyName":t.allUnclassified,"/mapping":t.allUnclassified},"/readOnly":l,"/writeOnly":l,"/example":t.allAnnotation,"/examples":t.allAnnotation,"/externalDocs":t.allAnnotation,"/deprecated":t.allDeprecate,"/xml":{"/":t.allUnclassified,"/name":t.allUnclassified,"/namespace":t.allUnclassified,"/prefix":t.allUnclassified,"/attribute":t.allUnclassified,"/wrapped":t.allUnclassified}})},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=a(2);r.__exportStar(a(8),n),r.__exportStar(a(9),n),r.__exportStar(a(3),n),r.__exportStar(a(10),n),r.__exportStar(a(11),n),r.__exportStar(a(12),n)},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ApiCompare=void 0;const p=a(2),b=a(1),r=a(4),i=a(0);var t=a(6);const o=a(13),s=Symbol("renamed");class l extends t.JsonCompare{constructor(e,n,a={}){super(e,n,a),this.before=e,this.after=n,this.beforeRefs=new Set,this.afterRefs=new Set,this.beforeCache=new Map,this.afterCache=new Map,this.compareCache=new Map,this.renamedPath={},this._formatMergeMeta=e=>Object.assign({type:e.type,action:e.action},e.action===i.DiffAction.replace||e.action===i.DiffAction.rename?{replaced:e.before}:{}),this.resolvePath=(e,n)=>{var a="before"===e?this.beforeCache:this.afterCache;let r=this[e];for(const i of n){var t=Array.isArray(r)?r[+i]:r[i];if(void 0===(r=void 0===t&&r.$ref?(r=(0,b.resolveRef)(r,this[e],a),Array.isArray(r)?r[+i]:r[i]):t))break}return r.$ref?(0,b.resolveRef)(r,this[e],a):r},this.rules=a.rules||this.calcApiRules(e),this.formatMergedMeta=a.formatMergedMeta||this._formatMergeMeta.bind(this),this.resolveUnchangedRefs=a.resolveUnchangedRefs||!1;var r=a.externalRefs||{};for(const t of Object.keys(r))this.beforeCache.set(t,r[t]),this.afterCache.set(t,r[t])}getMatchFunc(e){return(0,b.getPathMatchFunc)(this.rules,e,this.before)||super.getMatchFunc(e)}static apiDiff(e,n,a={}){return new l(e,n,a).compare()}static apiDiffTree(e,n,a={}){return new l(e,n,a).buildDiffTree()}static apiMerge(e,n,a={}){return new l(e,n,a).merge()}dereference(e,n,a){const r="#"+a.ref,[t,i]="before"===e?[this.beforeRefs,this.beforeCache]:[this.afterRefs,this.afterCache];a=()=>{n.$ref&&t.delete(n.$ref),t.delete(r)};return t.has(n.$ref)||"#"===n.$ref?[n,a]:(t.add(r),n.$ref&&t.add(n.$ref),[(0,b.resolveRef)(n,this[e],i),a])}calcApiRules(e){return"object"==typeof e&&e?/3.+/.test((null==e?void 0:e.openapi)||"")?r.openapi3Rules:/2.+/.test((null==e?void 0:e.asyncapi)||"")?r.asyncApi2Rules:/2.+/.test((null==e?void 0:e.swagger)||"")?r.swagger2Rules:null!=e&&e.graphapi?r.graphapiRules:(0,r.jsonSchemaRules)():(0,r.jsonSchemaRules)()}classifyDiff(e){var n=e;if("test"===e.action)return n;var a="rename"===e.action?[...e.path,"*",""]:[...e.path,""],a=(0,b.getPathRules)(this.rules,a,this.merged),a=(Array.isArray(a)?a:i.allUnclassified)["rename"===e.action?2:["add","remove","replace"].indexOf(e.action)];try{return n.type="function"==typeof a?a(new o.ChangeContext(this,e.path)):a,n}catch(e){return n.type=i.unclassified,n}}getRenamedPath(n){var a=[...n];let r=this.renamedPath;for(let e=0;e<n.length;e++){var t=n[e];if(void 0===r[t])break;(r=r[t])[s]&&(a[e]=r[s])}return a}compareResult(e){return e.action===i.DiffAction.rename&&(0,b.setValueByPath)(this.renamedPath,[...e.path,e.before,s],e.after),super.compareResult(this.classifyDiff(e))}compareObjects(e,n,a,r){var t=e["$ref"],i=p.__rest(e,["$ref"]),o=n["$ref"],s=p.__rest(n,["$ref"]),l=t?t===o?t:t+":"+o:"#"+a.ref,c=this.compareCache.get(l);if(c&&((0,b.isEmptyObject)(i)&&(0,b.isEmptyObject)(s)||!t&&!o)){if(!c.result.diffs.length&&!this.resolveUnchangedRefs)return super.compareObjects(e,n,a,r);(0,b.mergeValues)(r,c.merged);var g=c.result.diffs.map(e=>Object.assign(Object.assign({},e),{path:[...a,...e.path]}));return Object.assign(Object.assign({},c.result),{diffs:g})}var[c,g]=this.dereference("before",e,a),[u,f]=this.dereference("after",n,a),d=Array.isArray(r)?[]:{};let k=super.compareObjects(c,u,a,r);return t&&o&&(0,b.isEmptyObject)(i)&&(0,b.isEmptyObject)(s)&&(c=k.diffs.map(e=>Object.assign(Object.assign({},e),{path:e.path.slice(a.items.length)})),this.compareCache.set(l,{result:Object.assign(Object.assign({},k),{diffs:c}),merged:r})),f(),g(),!t||t!==o||k.diffs.length||this.resolveUnchangedRefs?(0,b.mergeValues)(r,d):(Array.isArray(r)?r.length=0:Object.keys(r).forEach(e=>delete r[e]),k=super.compareObjects(e,n,a,r)),k}}n.ApiCompare=l},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.JsonCompare=void 0;const u=a(2),A=a(1),f=a(0);n.JsonCompare=class{get merged(){return this._merged.value}constructor(e,n,a={}){this.before=e,this.after=n,this._merged={},this._formatMergeMeta=e=>Object.assign({action:e.action},e.action===f.DiffAction.replace||e.action===f.DiffAction.rename?{replaced:e.before}:{}),this.trimStrings=a.trimStrings,this.caseSensitive=a.caseSensitive,this.strictArrays=a.strictArrays,this.matchRules=a.matchRules||{},this.diffKey=a.metaKey||f.DIFF_META_KEY,this.arrayMeta=a.arrayMeta,this.formatMergedMeta=a.formatMergedMeta||this._formatMergeMeta.bind(this)}setMeta(e,n,a){void 0===e[this.diffKey]&&(e[this.diffKey]={}),e[this.diffKey][n]=a}checkMatch(e,n,a,r,t){var i=this.getMatchFunc(e);return!!i&&i({path:e.items,before:{key:r,value:n[r],parent:n,source:this.before},after:{key:t,value:a[t],parent:a,source:this.after}})}getMatchFunc(e){e=e.ref;return this.matchRules[e]}compare(){return this.compareAny(this.before,this.after).diffs}buildDiffTree(){return this.compareAny(this.before,this.after).diffTree}merge(){return this.compareAny(this.before,this.after),this._merged.value}normalizeString(e){return e=this.trimStrings?e.trim():e,e=this.caseSensitive?e:e.toLowerCase()}mergeResults(e,n,a=!1){var r,t={diffs:[],diffTree:{}};for(r of Object.keys(e)){var i,o,{diffs:s,diff:l,diffTree:c,parentMeta:g}=e[r];l&&l.action!==f.DiffAction.test?(o=l["path"],i=u.__rest(l,["path"]),o=o[o.length-1],this.setMeta(t.diffTree,o,i),t.diffs.push(l),a&&!this.arrayMeta?(void 0===t.parentMeta&&(t.parentMeta={}),t.parentMeta[o]=this.formatMergedMeta(l)):l.action===f.DiffAction.rename?this.setMeta(n,l.after,this.formatMergedMeta(l)):this.setMeta(n,o,this.formatMergedMeta(l)),r):(s.length&&(t.diffTree[r]=c,t.diffs.push(...s)),g&&this.setMeta(n,a?+r:r,{array:g}))}return t}mergeValue({action:e,before:n,after:a}){return e===f.DiffAction.test||e===f.DiffAction.remove?n:a}compareResult(e){return e.action===f.DiffAction.test?{diffs:[],diff:e}:{diffs:[e],diff:e}}compareAny(e,n,a=new A.PathPointer,r=this._merged,t="value"){if((0,A.typeOf)(e)!==(0,A.typeOf)(n))return r[t]=n,this.compareResult((0,A.replaced)(a,e,n));switch((0,A.typeOf)(e)){case"object":return r[t]={},this.compareObjects(e,n,a,r[t]);case"array":return r[t]=[],this.compareArrays(e,n,a,r[t]);default:var i=("string"==typeof e?this.normalizeString(e)===this.normalizeString(n):e===n)?(0,A.unchanged)(a,e):(0,A.replaced)(a,e,n);return r[t]=this.mergeValue(i),this.compareResult(i)}}compareObjects(n,a,r,e){var t={};if((0,A.isEmptyObject)(n)&&(0,A.isEmptyObject)(a))return this.compareResult((0,A.unchanged)(r,n));var i=Object.keys(n),o=new Set(Object.keys(a));for(const g of i){var s,l=[...o].find(e=>e===g||this.checkMatch(r,n,a,g,e));l&&l!==g&&(t[l]=this.compareResult((0,A.renamed)(r,g,l))),void 0===l?(s=(0,A.removed)(r.childPath(g),n[g]),e[g]=this.mergeValue(s),t[g]=this.compareResult(s)):(t[g]=this.compareAny(n[g],a[l],r.childPath(g),e,l),o.delete(l))}for(const u of o){var c=(0,A.added)(r.childPath(u),a[u]);e[u]=this.mergeValue(c),t[u]=this.compareResult(c)}return this.mergeResults(t,e)}compareArrays(n,a,r,e){if(0===n.length&&0===a.length)return this.compareResult((0,A.unchanged)(r,n));var t=this.getMatchFunc(r);if(!this.strictArrays&&!t)return this.compareEnums(n,a,r,e);var i={},o=new Set(a.keys());for(const g of n.keys()){var s,l=r.childPath(g),c=t?[...o].find(e=>this.checkMatch(r,n,a,g,e)):g;void 0===c||c>=a.length?(s=(0,A.removed)(l,n[g]),e[g]=this.mergeValue(s),i[g]=this.compareResult(s)):(o.delete(c),i[g]=this.compareAny(n[g],a[c],l,e,g))}let g=n.length;for(const f of o){var u=(0,A.added)(r.childPath(g),a[f]);e[g]=this.mergeValue(u),i[g++]=this.compareResult(u)}return this.mergeResults(i,e,!0)}compareEnums(n,a,r,t){var e,i,o={},s=[],l=new Set,c=new Set;for(const h of n.keys()){let e=[];for(const m of a.keys())if(!l.has(m)){var g={},u=this.compareAny(n[h],a[m],r.childPath(h),g);if(!u.diffs.length){l.add(m),c.add(h),e={value:g.value,res:u};break}e[m]={value:g.value,res:u,diffs:typeof n[h]==typeof a[m]?u.diffs.length:-1}}s.push(e)}for(const h of n.keys()){const y=s[h];if(Array.isArray(y)){var f,d=[...Array(a.length).keys()].filter(e=>{return 0<=((null==(e=y[e])?void 0:e.diffs)||0)}).sort((e,n)=>{return((null==(e=y[e])?void 0:e.diffs)||0)-((null==(e=y[n])?void 0:e.diffs)||0)});for(const B of a.keys()){let e=d[B];if(!l.has(e)){for(const v of n.keys()){var k=s[v];if(Array.isArray(k)&&!c.has(v)&&k[e]<y[e]){e=-1;break}}if(0<=e){var{value:p,res:b}=y[e];t[h]=p,o[h]=b,c.add(h),l.add(e);break}}}c.has(h)||(f=(0,A.removed)(r.childPath(h),n[h]),t[h]=this.mergeValue(f),o[h]=this.compareResult(f))}else h,t[h]=y.value,o[h]=y.res}let h=n.length;for(e of a.keys())l.has(e)||(i=(0,A.added)(r.childPath(h),a[e]),t[h]=this.mergeValue(i),o[h++]=this.compareResult(i));return this.mergeResults(o,t,!0)}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.apiDiffTree=n.apiMerge=n.apiDiff=n.JsonCompare=n.ApiCompare=void 0;var r=a(2),t=a(5),i=(r.__exportStar(a(4),n),r.__exportStar(a(14),n),r.__exportStar(a(0),n),r.__exportStar(a(1),n),r.__exportStar(a(15),n),r.__exportStar(a(16),n),a(5)),o=(Object.defineProperty(n,"ApiCompare",{enumerable:!0,get:function(){return i.ApiCompare}}),a(6));Object.defineProperty(n,"JsonCompare",{enumerable:!0,get:function(){return o.JsonCompare}}),n.apiDiff=t.ApiCompare.apiDiff,n.apiMerge=t.ApiCompare.apiMerge,n.apiDiffTree=t.ApiCompare.apiDiffTree},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.asyncApi2Rules=n.messageRules=n.messageTraitsRules=void 0;var r=a(3),a=a(0),t={"/":a.addNonBreaking,"/location":a.addNonBreaking,"/description":a.allAnnotation},i={"/summary":a.allAnnotation,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation,"/bindings":a.allUnclassified},o=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation},i),t=(n.messageTraitsRules=Object.assign({"/":a.addNonBreaking,"/*":a.addNonBreaking,"/headers":a.allUnclassified,"/correlationId":t,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/examples":a.allAnnotation},i),n.messageRules=Object.assign({"/":a.allBreaking,"/headers":a.allUnclassified,"/correlationId":t,"/schemaFormat":a.allBreaking,"/contentType":a.addNonBreaking,"/name":a.allNonBreaking,"/title":a.allNonBreaking,"/description":a.allNonBreaking,"/examples":a.allAnnotation,"/traits":n.messageTraitsRules,"/payload":(0,r.jsonSchemaRules)(a.allBreaking)},i),Object.assign({"/":a.addNonBreaking,"/operationId":a.addNonBreaking,"/description":a.allAnnotation,"/traits":o,"/message":n.messageRules},i)),o={"/":a.addNonBreaking,"/version":a.addNonBreaking,"/termsOfService":a.addNonBreaking,"/license":{"/":a.addNonBreaking,"/name":a.allBreaking,"/url":a.onlyAddBreaking},"/title":a.allAnnotation,"/description":a.allAnnotation,"/contact":{"/":a.allAnnotation,"/name":a.allAnnotation,"/url":a.allAnnotation,"/email":a.allAnnotation}},i={"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/url":a.addNonBreaking,"/description":a.allAnnotation,"/protocol":a.allBreaking,"/protocolVersion":a.allBreaking,"/variables":{"/":a.addNonBreaking,"/*":{"/":a.addNonBreaking,"/enum":{"/":a.addNonBreaking,"/*":a.addNonBreaking},"/default":a.allBreaking,"/description":a.allAnnotation,"/examples":a.allAnnotation}},"/security":{"/":a.allBreaking,"/*":a.allBreaking},"/bindings":a.allUnclassified}},t={"/":a.addNonBreaking,"/description":a.allNonBreaking,"/bindings":a.allUnclassified,"/subscribe":t,"/publish":t,"/parameters":{"/":a.allBreaking,"/*":{"/":a.addNonBreaking,"/description":a.allNonBreaking,"/schema":(0,r.jsonSchemaRules)(a.allBreaking),"/location":a.allBreaking}}};n.asyncApi2Rules={"/asyncapi":a.addNonBreaking,"/id":a.allAnnotation,"/defaultContentType":a.allBreaking,"/info":o,"/servers":i,"/channels":{"/":a.addNonBreaking,"/*":t},"/components":a.allNonBreaking,"/tags":a.allAnnotation,"/externalDocs":a.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.openapi3Rules=void 0;const r=a(1),t=a(3),i=a(0);a={"/":i.allAnnotation,"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/url":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/variables":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/enum":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":[i.nonBreaking,i.breaking,i.breaking]},"/default":[i.nonBreaking,i.nonBreaking,i.breaking],"/description":i.allAnnotation}}}};const o=[({after:e})=>"form"===e?i.annotation:i.breaking,({before:e})=>"form"===e?i.annotation:i.breaking,i.breaking];s={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":e=>{return{"/":[i.nonBreaking,i.breaking,i.breaking],"/name":[i.nonBreaking,i.breaking,e=>{return"path"===(null==(e=e.up().before)?void 0:e.in)?i.nonBreaking:i.breaking}],"/in":[i.nonBreaking,i.breaking,i.breaking],"/schema":"query"===(null==(a=e)?void 0:a.in)&&({style:a="form"}=a,"form"===a)?Object.assign(Object.assign({},(0,t.jsonSchemaRules)(i.allBreaking)),{"/type":[i.breaking,i.nonBreaking,({before:e,after:n})=>"object"===e||"array"===e||"object"===n?i.breaking:i.nonBreaking]}):(0,t.jsonSchemaRules)(i.allBreaking),"/explode":([n="form"]=[null==e?void 0:e.style],[({after:e})=>e&&"form"===n||!e&&"form"!==n?i.annotation:i.breaking,({before:e})=>e&&"form"===n||!e&&"form"!==n?i.annotation:i.breaking,i.breaking]),"/style":o,"/description":i.allAnnotation,"/required":[i.breaking,i.nonBreaking,e=>{var n;return null!=(n=e.up().after.schema)&&n.default?i.nonBreaking:(0,r.breakingIfAfterTrue)(e)}],"/deprecated":i.allDeprecate};var n,a}};var s=(0,r.matchRule)(s,({before:{value:e},after:{value:n}})=>e.in===n.in&&("path"===e.in||e.name===n.name)),l={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/required":[i.breaking,i.nonBreaking,r.breakingIfAfterTrue],"/deprecated":i.allDeprecate}},c={"/":[i.nonBreaking,i.nonBreaking,i.nonBreaking],"/*":{"/contentType":[i.nonBreaking,i.breaking,i.breaking],"/headers":l,"/style":[i.nonBreaking,i.breaking,i.breaking],"/explode":[i.nonBreaking,i.breaking,i.breaking],"/allowReserved":[i.nonBreaking,i.breaking,i.breaking]}},c=(c={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.unclassified],"/schema":(0,t.jsonSchemaRules)(i.allBreaking),"/example":i.allAnnotation,"/examples":i.allAnnotation,"/encoding":c}},(0,r.matchRule)(c,({before:e,after:n})=>{var[n=""]=String(n.key).split(";"),[e=""]=String(e.key).split(";"),[n,a]=n.split("/"),[e,r]=e.split("/");return!(n!==e&&"*"!==n&&"*"!==e||a!==r&&"*"!==a&&"*"!==r)})),g={"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/content":c,"/required":[i.breaking,i.nonBreaking,r.breakingIfAfterTrue]},c={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.breaking],"/description":i.allAnnotation,"/headers":l,"/content":c}},u={"/":[e=>(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking,i.nonBreaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking],"/*":[e=>e.up().before.length?i.nonBreaking:i.breaking,e=>e.up().after.length?i.breaking:i.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking]},f={"/":[i.nonBreaking,i.breaking,i.breaking],"/tags":i.allAnnotation,"/summary":i.allAnnotation,"/description":i.allAnnotation,"/externalDocs":i.allAnnotation,"/operationId":i.allAnnotation,"/parameters":s,"/requestBody":g,"/responses":c,"/deprecated":i.allDeprecate,"/security":{"/":[e=>(0,r.emptySecurity)(e.after)||(0,r.includeSecurity)(e.after,e.root.before.security)?i.nonBreaking:i.breaking,e=>(0,r.includeSecurity)(e.root.after.security,e.before)?i.nonBreaking:i.breaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking],"/*":[e=>e.up().before.length?i.nonBreaking:i.breaking,e=>e.up().after.length?i.breaking:i.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?i.nonBreaking:i.breaking]},"/servers":a};n.openapi3Rules={"/openapi":i.allAnnotation,"/info":{"/":i.allAnnotation,"/title":i.allAnnotation,"/description":i.allAnnotation,"/termsOfService":i.allAnnotation,"/contact":i.allAnnotation,"/licence":{"/":[i.nonBreaking,i.breaking,i.breaking],"/name":[i.breaking,i.breaking,i.breaking],"/url":[i.breaking,i.nonBreaking,i.nonBreaking]},"/version":i.allAnnotation},"/servers":a,"/paths":(n={"/":[i.nonBreaking,i.breaking,i.breaking],"/*":{"/":[i.nonBreaking,i.breaking,i.nonBreaking],"/summary":i.allAnnotation,"/description":i.allAnnotation,"/*":f,"/servers":a,"/parameters":s}},(0,r.matchRule)(n,({before:e,after:n})=>{return String(e.key).replace(new RegExp("{.*?}","g"),"*")===String(n.key).replace(new RegExp("{.*?}","g"),"*")})),"/components":{"/":i.allNonBreaking,"/schemas":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":(0,t.jsonSchemaRules)(i.addNonBreaking)},"/responses":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":c},"/parameters":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":s},"/examples":i.allAnnotation,"/requestBodies":{"/":[i.nonBreaking,i.breaking,i.breaking],"/*":g},"/headers":l,"/securitySchemes":{"/":[i.breaking,i.nonBreaking,i.breaking],"/*":{"/":[i.breaking,i.nonBreaking,i.breaking],"/type":[i.breaking,i.nonBreaking,i.breaking],"/description":i.allAnnotation,"/name":[i.breaking,i.nonBreaking,i.breaking],"/in":[i.breaking,i.nonBreaking,i.breaking],"/scheme":[i.breaking,i.nonBreaking,i.breaking],"/bearerFormat":i.allAnnotation,"/flows":[i.breaking,i.nonBreaking,i.breaking],"/openIdConnectUrl":i.allAnnotation}}},"/security":u,"/tags":i.allAnnotation,"/externalDocs":i.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.serviceNodeRules=n.contentMediaTypeRules=void 0;const r=a(0),t=a(1),i=a(4);var a=e=>(0,t.matchRule)(e,({before:{value:e},after:{value:n}})=>{var a;return n.type===e.type&&("model"===n.type?n.name===e.name:(null==(a=e.data.path)?void 0:a.replace(new RegExp("{.*?}","g"),"*"))===(null==(a=n.data.path)?void 0:a.replace(new RegExp("{.*?}","g"),"*"))&&e.data.method===n.data.method)}),o=(n.contentMediaTypeRules=e=>(0,t.matchRule)(e,({before:e,after:n})=>{var[n=""]=String(n.value.mediaType).split(";"),[e=""]=String(e.value.mediaType).split(";"),[n,a]=n.split("/"),[e,r]=e.split("/");return!(n!==e&&"*"!==n&&"*"!==e||a!==r&&"*"!==a&&"*"!==r)}),{"/":r.addNonBreaking,"/name":[r.nonBreaking,r.breaking,r.breaking],"/style":r.allUnclassified,"/description":r.allAnnotation,"/examples":r.allAnnotation,"/schema":(0,i.jsonSchemaRules)(r.allBreaking),"/explode":r.allUnclassified,"/required":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/deprecated":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue]}),s={"/":[r.nonBreaking,r.breaking,r.breaking],"/*":o},l=(0,n.contentMediaTypeRules)({"/":r.addNonBreaking,"/*":{"/":[r.nonBreaking,r.breaking,r.unclassified],"/mediaType":[r.nonBreaking,r.breaking,r.unclassified],"/schema":(0,i.jsonSchemaRules)(r.allBreaking),"/examples":(0,t.objArray)("key",{"/":r.allAnnotation,"/*":r.allAnnotation}),"/encodings":[r.nonBreaking,r.breaking,r.breaking]}}),o={"/path":(0,t.objArray)("name",s),"/query":(0,t.objArray)("name",{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":Object.assign(Object.assign({},o),{"/allowEmptyValue":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/allowReserved":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue]})}),"/headers":(0,t.objArray)("name",s),"/cookie":(0,t.objArray)("name",s),"/body":{"/":[r.nonBreaking,r.breaking,r.breaking],"/contents":l,"/required":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/description":r.allAnnotation}},s={"/":r.allUnclassified,"/*":{"/":r.addNonBreaking,"/name":[r.nonBreaking,r.breaking,r.breaking],"/style":r.allUnclassified,"/description":r.allAnnotation,"/schema":(0,i.jsonSchemaRules)(r.allBreaking),"/explode":r.allUnclassified,"/required":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/deprecated":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue]}},l={"/":r.addNonBreaking,"/*":{"/":r.addNonBreaking,"/code":r.allUnclassified,"/contents":l,"/headers":(0,t.objArray)("name",s),"/description":r.allAnnotation}},s={"/":[r.nonBreaking,r.breaking,r.breaking],"/url":[r.nonBreaking,r.breaking,r.breaking],"/name":r.allAnnotation,"/description":r.allAnnotation,"/variables":[r.nonBreaking,r.breaking,r.breaking]},c={"/":[r.breaking,r.nonBreaking,r.unclassified],"/*":[r.breaking,r.nonBreaking,r.unclassified]};const g={"/":[r.nonBreaking,r.breaking,r.breaking],"/data":()=>(0,i.jsonSchemaRules)(r.addNonBreaking),"/*":r.allAnnotation},u={"/":[r.nonBreaking,r.breaking,r.breaking],"/data":{"/id":r.allAnnotation,"/iid":r.allAnnotation,"/tags":r.allAnnotation,"/summary":r.allAnnotation,"/description":r.allAnnotation,"/method":[r.nonBreaking,r.breaking,r.breaking],"/path":[r.nonBreaking,r.breaking,r.breaking],"/request":o,"/responses":(0,t.objArray)("code",l),"/servers":{"/":r.allUnclassified,"/*":s},"/callbacks":a({"/callbackName":r.allAnnotation,"/method":[r.nonBreaking,r.breaking,r.breaking],"/path":[r.nonBreaking,r.breaking,r.breaking],"/request":o,"/responses":(0,t.objArray)("code",l),"/deprecated":r.allUnclassified,"/internal":r.allUnclassified,"/extensions":r.allUnclassified}),"/security":c,"/deprecated":[r.breaking,r.nonBreaking,t.breakingIfAfterTrue],"/internal":r.allUnclassified,"/extensions":r.allUnclassified},"/*":r.allAnnotation};o={"/id":r.allAnnotation,"/iid":r.allAnnotation,"/tags":r.allAnnotation,"/summary":r.allAnnotation,"/description":r.allAnnotation,"/name":r.allAnnotation,"/version":r.allAnnotation,"/servers":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":s},"/security":c,"/securitySchemes":(0,t.objArray)("name",{"/":r.addNonBreaking,"/*":{"/":[r.breaking,r.nonBreaking,r.breaking],"/type":[r.breaking,r.nonBreaking,r.breaking],"/description":r.allAnnotation,"/name":[r.breaking,r.nonBreaking,r.breaking],"/in":[r.breaking,r.nonBreaking,r.breaking],"/scheme":[r.breaking,r.nonBreaking,r.breaking],"/bearerFormat":r.allAnnotation,"/flows":[r.breaking,r.nonBreaking,r.breaking],"/openIdConnectUrl":r.allAnnotation}}),"/termsOfService":r.allAnnotation,"/contact":r.allAnnotation,"/license":[r.breaking,r.breaking,r.breaking],"/logo":r.allAnnotation};n.serviceNodeRules={"/*":r.allAnnotation,"/data":o,"/children":a({"/":[r.nonBreaking,r.breaking,r.breaking],"/*":({type:e})=>"model"===e?g:u}),"/components":{"/":[r.nonBreaking,r.nonBreaking,r.nonBreaking],"/schemas":{"/":[r.nonBreaking,r.breaking,r.breaking],"/*":(0,i.jsonSchemaRules)(r.addNonBreaking)}}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.swagger2Rules=void 0;const r=a(1),t=a(0),i=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(n<e)],o=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(e<n)],s=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],l=[r.breakingIfAfterTrue,t.nonBreaking,r.breakingIfAfterTrue],c=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(!!(e%n))];var a={"/":[e=>(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking,t.nonBreaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking],"/*":[e=>e.up().before.length?t.nonBreaking:t.breaking,e=>e.up().after.length?t.breaking:t.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking]},g={"/":[e=>(0,r.includeSecurity)(e.after,e.root.before.security)?t.nonBreaking:t.breaking,e=>(0,r.includeSecurity)(e.root.after.security,e.before)?t.nonBreaking:t.breaking,e=>(0,r.includeSecurity)(e.after,e.before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking],"/*":[e=>e.up().before.length?t.nonBreaking:t.breaking,e=>e.up().after.length?t.breaking:t.nonBreaking,e=>(0,r.includeSecurity)(e.up().after,e.up().before)||(0,r.emptySecurity)(e.after)?t.nonBreaking:t.breaking]};const u=({after:e,up:n})=>{return void 0!==(null==(n=null==(n=null==(n=n(2).after)?void 0:n.properties)?void 0:n[e])?void 0:n.default)?t.nonBreaking:t.breaking};var f=e=>(0,r.matchRule)(e,({before:e,after:n})=>{var[n=""]=String(n.key).split(";"),[e=""]=String(e.key).split(";"),[n,a]=n.split("/"),[e,r]=e.split("/");return!(n!==e&&"*"!==n&&"*"!==e||a!==r&&"*"!==a&&"*"!==r)});const d=(e=t.allUnclassified)=>Object.assign(Object.assign({"/":e},{"/type":[t.breaking,t.nonBreaking,t.breaking],"/format":[t.breaking,t.nonBreaking,t.breaking],"/items":()=>d(t.allBreaking),"/default":[t.nonBreaking,t.breaking,t.breaking],"/maximum":i,"/exclusiveMaximum":s,"/minimum":o,"/exclusiveMinimum":s,"/maxLength":i,"/minLength":o,"/pattern":[t.breaking,t.nonBreaking,t.breaking],"/maxItems":i,"/minItems":o,"/uniqueItems":l,"/enum":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/multipleOf":c}),{"/title":t.allAnnotation,"/description":t.allAnnotation,"/items":()=>d(t.allBreaking),"/maxProperties":i,"/minProperties":o,"/required":{"/":t.onlyAddBreaking,"/*":[u,t.nonBreaking,u]},"/properties":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>d(t.addNonBreaking)},"/allOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>d(t.allBreaking)},"/readOnly":l,"/discriminator":t.allAnnotation,"/additionalProperties":()=>d([t.breaking,t.breaking,r.breakingIfAfterTrue]),"/example":t.allAnnotation,"/externalDocs":t.allAnnotation,"/xml":t.allUnclassified});var k={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/url":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation,"/variables":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/enum":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/default":[t.breaking,t.breaking,t.breaking],"/description":t.allAnnotation}}}},p=(p={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":Object.assign(Object.assign({"/":[t.nonBreaking,t.breaking,t.breaking],"/name":[t.nonBreaking,t.breaking,e=>{return"path"===(null==(e=e.up().before)?void 0:e.in)?t.nonBreaking:t.breaking}],"/in":[t.nonBreaking,t.breaking,t.breaking],"/schema":()=>d(t.allBreaking),"/description":t.allAnnotation,"/required":[t.breaking,t.nonBreaking,r.breakingIfAfterTrue]},d()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},(0,r.matchRule)(p,({before:{value:e},after:{value:n}})=>e.in===n.in&&("path"===e.in||e.name===n.name))),b={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":Object.assign(Object.assign({"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation},d()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},b={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation,"/headers":b,"/schema":()=>d(t.allBreaking),"/examples":t.allAnnotation}},f={"/":[t.nonBreaking,t.breaking,t.breaking],"/tags":t.allAnnotation,"/summary":t.allAnnotation,"/description":t.allAnnotation,"/externalDocs":t.allAnnotation,"/operationId":t.allAnnotation,"/consumes":f({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/produces":f({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/parameters":p,"/responses":b,"/deprecated":t.allDeprecate,"/security":g};n.swagger2Rules={"/swagger":t.allAnnotation,"/info":{"/":t.allAnnotation,"/title":t.allAnnotation,"/description":t.allAnnotation,"/termsOfService":t.allAnnotation,"/contact":t.allAnnotation,"/licence":{"/":[t.nonBreaking,t.breaking,t.breaking],"/name":[t.breaking,t.breaking,t.breaking],"/url":[t.breaking,t.nonBreaking,t.nonBreaking]},"/version":t.allAnnotation},"/servers":k,"/paths":(g={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.nonBreaking],"/*":f,"/parameters":p}},(0,r.matchRule)(g,({before:e,after:n})=>{return String(e.key).replace(new RegExp("{.*?}","g"),"*")===String(n.key).replace(new RegExp("{.*?}","g"),"*")})),"/definitions":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":()=>d(t.addNonBreaking)},"/responses":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":b},"/parameters":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":p},"/examples":t.allAnnotation,"/securityDefinitions":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":{"/":[t.breaking,t.nonBreaking,t.breaking],"/type":[t.breaking,t.nonBreaking,t.breaking],"/description":t.allAnnotation,"/name":[t.breaking,t.nonBreaking,t.breaking],"/in":[t.breaking,t.nonBreaking,t.breaking],"/flow":[t.breaking,t.nonBreaking,t.breaking],"/authorizationUrl":[t.breaking,t.nonBreaking,t.breaking],"/tokenUrl":[t.breaking,t.nonBreaking,t.breaking],"/scopes":[t.breaking,t.nonBreaking,t.breaking]}},"/security":a,"/tags":t.allAnnotation,"/externalDocs":t.allAnnotation}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.graphapiRules=n.graphApiTypesRules=n.graphApiOperationRules=void 0;var r=a(0),t=a(3),a=a(1);n.graphApiOperationRules={"/title":r.allAnnotation,"/description":r.allAnnotation,"/args":{"/*":()=>u},"/response":()=>n.graphApiTypesRules,"/directives":{"/*":()=>i}};const i={"/meta":r.allAnnotation};var t=Object.assign(Object.assign({},(0,t.jsonSchemaRules)(r.addNonBreaking)),{"/description":r.allAnnotation,"/directives":{"/*":()=>i}}),o=Object.assign(Object.assign({},t),{"/title":r.allAnnotation});const s=Object.assign(Object.assign({},o),{"/specifiedByURL":r.allAnnotation}),l=Object.assign(Object.assign({},o),{"/properties":{"/*":()=>f}});var c=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>l}}),g=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>s}});const u={"/title":r.allAnnotation,"/description":r.allAnnotation,"/required":[r.breaking,r.nonBreaking,a.breakingIfAfterTrue],"/schema":()=>n.graphApiTypesRules,"/default":r.addNonBreaking,"/directives":{"/*":()=>i}};a=Object.assign(Object.assign({},o),{"/inputFields":{"/*":u}}),o=Object.assign(Object.assign({},o),{"/items":()=>n.graphApiTypesRules});const f=Object.assign(Object.assign({},t),{"/args":{"/*":()=>u}});n.graphApiTypesRules=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),l),c),o),a),n.graphapiRules={"/queries":{"/*":n.graphApiOperationRules},"/mutations":{"/*":n.graphApiOperationRules},"/subscriptions":{"/*":n.graphApiOperationRules},"/components":{"/scalars":{"/*":s},"/objects":{"/*":l},"/interfaces":{"/*":l},"/unions":{"/*":c},"/enums":{"/*":g},"/inputObjects":{"/*":a},"/directives":{"/*":{"/":r.addNonBreaking,"/title":r.allAnnotation,"/description":r.allAnnotation,"/locations":r.allAnnotation,"/repeatable":r.allUnclassified,"/args":{"/":r.addNonBreaking,"/*":u}}}}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ChangeContext=void 0;n.ChangeContext=class r{get before(){return this._engine.resolvePath("before",this._path)}get after(){var e=this._engine.getRenamedPath(this._path);return this._engine.resolvePath("after",e)}get up(){return(e=1)=>new r(this._engine,this._path.slice(0,-e))}get root(){return new r(this._engine,[])}constructor(e,n){this._engine=e,this._path=n}}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.changeDoc=void 0;const t=a(2),i=a(1),o=(e,n)=>{var a,r;return Array.isArray(e)?e.map(e=>o(e,n)):"object"==typeof e&&e&&(r=e["$ref"],a=t.__rest(e,["$ref"]),r)?(r=r.split("/").slice(1),Object.assign(Object.assign({},(0,i.getValueByPath)(n,r)),a)):e},s=(e,n,a)=>{if(e&&void 0!==n)return n in e?e[n]:"$ref"in e?s(o(e,a.source),n,a):void 0},l=(e,n,a=0)=>{var{node:r,path:t}=n;let i=t[a];return a===t.length?i="":"/"+i in e&&"number"!=typeof i||(i="*"),"/"+i in e?"string"==typeof(e=e["/"+i])?e:(t=a===t.length?n:Object.assign(Object.assign({},n),{key:t[a],node:o(s(r,t[a],n),n.source),parent:r}),"function"==typeof e?"string"==typeof(n=e(t))?n:l(n,t,a+1):l(e,t,a+1)):""};n.changeDoc=(e,n,a,r)=>{if("annotation"!==e.type&&"unclassified"!==e.type){a="add"===e.action?a:n;try{return l(r,Object.assign(Object.assign({},e),{node:a,source:a,key:""}))}catch(e){console.error(e)}}return""}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),a(2).__exportStar(a(17),n)},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.changeDocOpenApiRules=n.changeDocParametersRules=void 0;const s={add:"[Added]",replace:"[Changed]",remove:"[Deleted]"},l=(e,n,a="")=>n>=e.length?a:"properties"===e[n]&&n<e.length?(a+=a?"."+String(e[n+1]):String(e[n+1]),l(e,n+2,a)):("items"===e[n]&&(a+="[]"),l(e,n+1,a)),c=e=>"`"+e+"`",r=(r,t)=>({action:e,key:n,path:a})=>{a=l(a,t);return s[e]+` ${n} validator ${a?"for "+a:""} in `+r},t=(a,r,t)=>({action:e,path:n})=>`${s[e]} ${a}property ${c(l(n,t))} in `+r,g=(i,o)=>({"/":t("",i,o),"/multipleOf":r(i,o),"/maximum":r(i,o),"/exclusiveMaximum":r(i,o),"/minimum":r(i,o),"/exclusiveMinimum":r(i,o),"/maxLength":r(i,o),"/minLength":r(i,o),"/pattern":r(i,o),"/maxItems":r(i,o),"/minItems":r(i,o),"/uniqueItems":r(i,o),"/maxProperties":r(i,o),"/minProperties":r(i,o),"/items":()=>g(i,o),"/properties":{"/":({action:e,path:n,node:a})=>{return`${s[e]} properties ${e=a,r=n,t=o,Object.keys(e||{}).map(e=>c(l([...r,e],t))).join(", ")} in `+i;var r,t},"/*":()=>g(i,o)},"/type":t("Type of ",i,o),"/required":{"/":({action:e,node:n,path:a})=>{return`${s[e]} Required ${e=n,r=a,t=o,(1<e.length?"properties ":"property ")+e.map(e=>c(l([...r,"properties",e],t))).join(", ")} in `+i;var r,t},"/*":({action:e,parent:n,key:a})=>`${s[e]} Required property ${c(n[a])} in `+i},"/format":t("Value format for ",i,o),"/default":t("Default value for ",i,o),"/nullable":t("Possbile nullable value for ",i,o),"/enum":t("Possbile values for ",i,o),"/readOnly":t("Readonly status to ",i,o),"/writeOnly":t("Wrightonly status to ",i,o),"/deprecated":t("Deprecated status to ",i,o),"/allOf":()=>g(i,o),"/oneOf":()=>g(i,o),"/anyOf":()=>g(i,o),"/not":()=>g(i,o)});n.changeDocParametersRules={"/":({action:e,node:n})=>s[e]+" "+n.map(e=>e.in+" parameter "+c(e.name)).join(", "),"/*":{"/":({action:e,node:n})=>`${s[e]} ${n.required?"Required ":""}${n.in} parameter `+c(n.name),"/*":({parent:e})=>`${s.replace} ${e.required?"Required ":""}${e.in} parameter `+c(e.name),"/required":({action:e,parent:n})=>`${s[e]} Required status in ${n.in} parameter `+c(n.name),"/deprecated":({action:e,parent:n})=>`${s[e]} Deprecated status in ${n.in} parameter `+c(n.name)}},n.changeDocOpenApiRules={"/paths":{"/*":{"/":({action:e,node:n})=>s[e]+" operation "+(e=>{e=Object.keys(e).filter(e=>["get","post","put","head","delete","patch","connect","trace","options"].includes(e.toLocaleLowerCase())).map(c);return(1<e.length?"methods ":"method ")+e.join(", ")})(n),"/parameters":n.changeDocParametersRules,"/*":{"/":({action:e})=>s[e]+" operation","/parameters":n.changeDocParametersRules,"/requestBody":{"/":({action:e})=>s[e]+" Body content in Request","/required":({action:e})=>s[e]+" Required status to Request body content","/content":{"/":({action:e})=>s[e]+" Body content in Request","/*":{"/":({action:e,path:n})=>`${s[e]} Body content (${n[5]}) in Request`,"/schema":({path:e})=>g(`Request body content (${e[5]})`,7),"/encoding":({action:e,path:n})=>`${s[8===n.length?e:"replace"]} Encoding of Response ${n[4]} content (${n[6]})`}}},"/deprecated":({action:e})=>s[e]+" Deprecated status","/security":({action:e,path:n})=>s[4===n.length?e:"replace"]+" Security in Request","/responses":{"/*":{"/":({action:e,path:n})=>s[e]+" Response with status "+n[4],"/headers":{"/":({action:e,node:n,path:a})=>`${s[e]} Header parameters ${Object.keys(n).map(c).join(", ")} in Response `+a[4],"/*":{"/":({action:e,node:n,key:a,path:r})=>`${s[e]} ${n.required?"required ":""}Header parameter ${c(a)} in Response `+r[4],"/*":({node:e,key:n,path:a})=>`${s.replace} ${e.required?"required ":""}Header parameter ${c(n)} in Response `+a[4],"/required":({action:e,key:n,path:a})=>`${s[e]} Required status to Header parameter ${c(n)} in Response `+a[4],"/deprecated":({action:e,path:n,key:a})=>`${s[e]} Deprecated status to Header parameter ${c(a)} in Response `+n[4]}},"/content":{"/":({action:e,path:n})=>s[e]+" Content in Response "+n[4],"/*":{"/":({action:e,path:n})=>`${s[e]} Content (${n[6]}) in Response `+n[4],"/schema":({path:e})=>g(`Response ${e[4]} content (${e[6]})`,8),"/encoding":({action:e,path:n})=>`${s[8===n.length?e:"replace"]} Encoding of Response ${n[4]} content (${n[6]})`}}}}}}}}}]); |
@@ -48,13 +48,37 @@ "use strict"; | ||
}; | ||
const paramSchemaRules = (param) => { | ||
if ((param === null || param === void 0 ? void 0 : param.in) === "query") { | ||
const { style = "form" } = param; | ||
if (style === "form") { | ||
return Object.assign(Object.assign({}, (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking)), { "/type": [constants_1.breaking, constants_1.nonBreaking, ({ before, after }) => before === "object" || before === "array" || after === "object" ? constants_1.breaking : constants_1.nonBreaking] }); | ||
} | ||
return (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking); | ||
} | ||
else { | ||
return (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking); | ||
} | ||
}; | ||
const parameterStyleRule = [ | ||
({ after }) => after === "form" ? constants_1.annotation : constants_1.breaking, | ||
({ before }) => before === "form" ? constants_1.annotation : constants_1.breaking, | ||
constants_1.breaking | ||
]; | ||
const parameterExplodeRule = (style = "form") => [ | ||
({ after }) => (after && style === "form") || (!after && style !== "form") ? constants_1.annotation : constants_1.breaking, | ||
({ before }) => (before && style === "form") || (!before && style !== "form") ? constants_1.annotation : constants_1.breaking, | ||
constants_1.breaking | ||
]; | ||
const parametersRules = paramArrayRules({ | ||
"/": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking], | ||
"/*": { | ||
"/*": (param) => ({ | ||
"/": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking], | ||
"/name": [constants_1.nonBreaking, constants_1.breaking, (ctx) => { var _a; return ((_a = ctx.up().before) === null || _a === void 0 ? void 0 : _a.in) === "path" ? constants_1.nonBreaking : constants_1.breaking; }], | ||
"/in": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking], | ||
"/schema": (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking), | ||
"/schema": paramSchemaRules(param), | ||
"/explode": parameterExplodeRule(param === null || param === void 0 ? void 0 : param.style), | ||
"/style": parameterStyleRule, | ||
"/description": constants_1.allAnnotation, | ||
"/required": [constants_1.breaking, constants_1.nonBreaking, (ctx) => { var _a; return ((_a = ctx.up().after.schema) === null || _a === void 0 ? void 0 : _a.default) ? constants_1.nonBreaking : (0, utils_1.breakingIfAfterTrue)(ctx); }], | ||
"/deprecated": constants_1.allDeprecate, | ||
}, | ||
}), | ||
}); | ||
@@ -61,0 +85,0 @@ const headersRules = { |
@@ -48,13 +48,37 @@ "use strict"; | ||
}; | ||
const paramSchemaRules = (param) => { | ||
if ((param === null || param === void 0 ? void 0 : param.in) === "query") { | ||
const { style = "form" } = param; | ||
if (style === "form") { | ||
return Object.assign(Object.assign({}, (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking)), { "/type": [constants_1.breaking, constants_1.nonBreaking, ({ before, after }) => before === "object" || before === "array" || after === "object" ? constants_1.breaking : constants_1.nonBreaking] }); | ||
} | ||
return (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking); | ||
} | ||
else { | ||
return (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking); | ||
} | ||
}; | ||
const parameterStyleRule = [ | ||
({ after }) => after === "form" ? constants_1.annotation : constants_1.breaking, | ||
({ before }) => before === "form" ? constants_1.annotation : constants_1.breaking, | ||
constants_1.breaking | ||
]; | ||
const parameterExplodeRule = (style = "form") => [ | ||
({ after }) => (after && style === "form") || (!after && style !== "form") ? constants_1.annotation : constants_1.breaking, | ||
({ before }) => (before && style === "form") || (!before && style !== "form") ? constants_1.annotation : constants_1.breaking, | ||
constants_1.breaking | ||
]; | ||
const parametersRules = paramArrayRules({ | ||
"/": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking], | ||
"/*": { | ||
"/*": (param) => ({ | ||
"/": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking], | ||
"/name": [constants_1.nonBreaking, constants_1.breaking, (ctx) => { var _a; return ((_a = ctx.up().before) === null || _a === void 0 ? void 0 : _a.in) === "path" ? constants_1.nonBreaking : constants_1.breaking; }], | ||
"/in": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking], | ||
"/schema": (0, jsonschema_1.jsonSchemaRules)(constants_1.allBreaking), | ||
"/schema": paramSchemaRules(param), | ||
"/explode": parameterExplodeRule(param === null || param === void 0 ? void 0 : param.style), | ||
"/style": parameterStyleRule, | ||
"/description": constants_1.allAnnotation, | ||
"/required": [constants_1.breaking, constants_1.nonBreaking, (ctx) => { var _a; return ((_a = ctx.up().after.schema) === null || _a === void 0 ? void 0 : _a.default) ? constants_1.nonBreaking : (0, utils_1.breakingIfAfterTrue)(ctx); }], | ||
"/deprecated": constants_1.allDeprecate, | ||
}, | ||
}), | ||
}); | ||
@@ -61,0 +85,0 @@ const headersRules = { |
{ | ||
"name": "api-smart-diff", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
530972
6835