api-smart-diff
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -1,3 +0,3 @@ | ||
/*! api-smart-diff@0.5.6 */ | ||
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))?e:(e=(0,o.getValueByPath)(t?a.get(t):n,(0,o.parsePath)(r)),(0,o.isEmptyObject)(i)?e:(0,o.mergeValues)(e,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))return Array.isArray(n)?e.push(...n):e;if("object"==typeof e&&"object"==typeof n&&n){for(const a of Reflect.ownKeys(n))e[a]=(0,o.mergeValues)(e[a],n[a]);return e}return n},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 g}),a.d(n,"__awaiter",function(){return c}),a.d(n,"__generator",function(){return f}),a.d(n,"__createBinding",function(){return u}),a.d(n,"__exportStar",function(){return k}),a.d(n,"__values",function(){return d}),a.d(n,"__read",function(){return b}),a.d(n,"__spread",function(){return p}),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 A}),a.d(n,"__makeTemplateObject",function(){return v}),a.d(n,"__importStar",function(){return j}),a.d(n,"__importDefault",function(){return O}),a.d(n,"__classPrivateFieldGet",function(){return _}),a.d(n,"__classPrivateFieldSet",function(){return R}); | ||
/*! api-smart-diff@0.5.7 */ | ||
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))?e:(e=(0,o.getValueByPath)(t?a.get(t):n,(0,o.parsePath)(r)),(0,o.isEmptyObject)(i)?e:(0,o.mergeValues)(e,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 g}),a.d(n,"__awaiter",function(){return c}),a.d(n,"__generator",function(){return f}),a.d(n,"__createBinding",function(){return u}),a.d(n,"__exportStar",function(){return k}),a.d(n,"__values",function(){return d}),a.d(n,"__read",function(){return b}),a.d(n,"__spread",function(){return p}),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 _}),a.d(n,"__classPrivateFieldSet",function(){return R}); | ||
/*! ***************************************************************************** | ||
@@ -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 g(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function c(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 f(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 u(e,n,a,r){e[r=void 0===r?a:r]=n[a]}function k(e,n){for(var a in e)"default"===a||n.hasOwnProperty(a)||(n[a]=e[a])}function d(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 b(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 p(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(b(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,g):c(i[0][2],a)}catch(e){c(i[0][3],e)}var a}function l(e){s("next",e)}function g(e){s("throw",e)}function c(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 A(o){var e,n;if(Symbol.asyncIterator)return(e=o[Symbol.asyncIterator])?e.call(o):(o=d(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 v(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 _(e,n){if(n.has(e))return n.get(e);throw new TypeError("attempted to get private field on non-instance")}function R(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],g=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(!!(e%n))],c=({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":g,"/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,"/*":[c,t.nonBreaking,c]},"/enum":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]},"/type":[t.breaking,t.nonBreaking,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 b=a(2),p=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,p.resolveRef)(r,this[e],a),Array.isArray(r)?r[+i]:r[i]):t))break}return r.$ref?(0,p.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,p.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,p.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,p.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,p.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=b.__rest(e,["$ref"]),o=n["$ref"],s=b.__rest(n,["$ref"]),l=t?t===o?t:t+":"+o:"#"+a.ref,g=this.compareCache.get(l);if(g&&((0,p.isEmptyObject)(i)&&(0,p.isEmptyObject)(s)||!t&&!o)){if(!g.result.diffs.length&&!this.resolveUnchangedRefs)return super.compareObjects(e,n,a,r);(0,p.mergeValues)(r,g.merged);var c=g.result.diffs.map(e=>Object.assign(Object.assign({},e),{path:[...a,...e.path]}));return Object.assign(Object.assign({},g.result),{diffs:c})}var[g,c]=this.dereference("before",e,a),[f,u]=this.dereference("after",n,a),k=Array.isArray(r)?[]:{};let d=super.compareObjects(g,f,a,r);return t&&o&&(0,p.isEmptyObject)(i)&&(0,p.isEmptyObject)(s)&&(g=d.diffs.map(e=>Object.assign(Object.assign({},e),{path:e.path.slice(a.items.length)})),this.compareCache.set(l,{result:Object.assign(Object.assign({},d),{diffs:g}),merged:r})),u(),c(),!t||t!==o||d.diffs.length||this.resolveUnchangedRefs?(0,p.mergeValues)(r,k):(Array.isArray(r)?r.length=0:Object.keys(r).forEach(e=>delete r[e]),d=super.compareObjects(e,n,a,r)),d}}n.ApiCompare=l},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.JsonCompare=void 0;const f=a(2),v=a(1),u=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===u.DiffAction.replace||e.action===u.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||u.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:g,parentMeta:c}=e[r];l&&l.action!==u.DiffAction.test?(o=l["path"],i=f.__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===u.DiffAction.rename?this.setMeta(n,l.after,this.formatMergedMeta(l)):this.setMeta(n,o,this.formatMergedMeta(l)),r):(s.length&&(t.diffTree[r]=g,t.diffs.push(...s)),c&&this.setMeta(n,a?+r:r,{array:c}))}return t}mergeValue({action:e,before:n,after:a}){return e===u.DiffAction.test||e===u.DiffAction.remove?n:a}compareResult(e){return e.action===u.DiffAction.test?{diffs:[],diff:e}:{diffs:[e],diff:e}}compareAny(e,n,a=new v.PathPointer,r=this._merged,t="value"){if((0,v.typeOf)(e)!==(0,v.typeOf)(n))return r[t]=n,this.compareResult((0,v.replaced)(a,e,n));switch((0,v.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,v.unchanged)(a,e):(0,v.replaced)(a,e,n);return r[t]=this.mergeValue(i),this.compareResult(i)}}compareObjects(n,a,r,e){var t={};if((0,v.isEmptyObject)(n)&&(0,v.isEmptyObject)(a))return this.compareResult((0,v.unchanged)(r,n));var i=Object.keys(n),o=new Set(Object.keys(a));for(const c of i){var s,l=[...o].find(e=>e===c||this.checkMatch(r,n,a,c,e));l&&l!==c&&(t[l]=this.compareResult((0,v.renamed)(r,c,l))),void 0===l?(s=(0,v.removed)(r.childPath(c),n[c]),e[c]=this.mergeValue(s),t[c]=this.compareResult(s)):(t[c]=this.compareAny(n[c],a[l],r.childPath(c),e,l),o.delete(l))}for(const f of o){var g=(0,v.added)(r.childPath(f),a[f]);e[f]=this.mergeValue(g),t[f]=this.compareResult(g)}return this.mergeResults(t,e)}compareArrays(n,a,r,e){if(0===n.length&&0===a.length)return this.compareResult((0,v.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 c of n.keys()){var s,l=r.childPath(c),g=t?[...o].find(e=>this.checkMatch(r,n,a,c,e)):c;void 0===g||g>=a.length?(s=(0,v.removed)(l,n[c]),e[c]=this.mergeValue(s),i[c]=this.compareResult(s)):(o.delete(g),i[c]=this.compareAny(n[c],a[g],l,e,c))}let c=n.length;for(const u of o){var f=(0,v.added)(r.childPath(c),a[u]);e[c]=this.mergeValue(f),i[c++]=this.compareResult(f)}return this.mergeResults(i,e,!0)}compareEnums(n,a,r,t){var e,i,o={},s=[],l=new Set,g=new Set;for(const h of n.keys()){let e=[];for(const m of a.keys())if(!l.has(m)){var c={},f=this.compareAny(n[h],a[m],r.childPath(h),c);if(!f.diffs.length){l.add(m),g.add(h),e={value:c.value,res:f};break}e[m]={value:c.value,res:f,diffs:typeof n[h]==typeof a[m]?f.diffs.length:-1}}s.push(e)}for(const h of n.keys()){const y=s[h];if(Array.isArray(y)){var u,k=[...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=k[B];if(!l.has(e)){for(const A of n.keys()){var d=s[A];if(Array.isArray(d)&&!g.has(A)&&d[e]<y[e]){e=-1;break}}if(0<=e){var{value:b,res:p}=y[e];t[h]=b,o[h]=p,g.add(h),l.add(e);break}}}g.has(h)||(u=(0,v.removed)(r.childPath(h),n[h]),t[h]=this.mergeValue(u),o[h]=this.compareResult(u))}else h,t[h]=y.value,o[h]=y.res}let h=n.length;for(e of a.keys())l.has(e)||(i=(0,v.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),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)})),g={"/":[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}},c={"/":[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":o,"/requestBody":g,"/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,"/*":f,"/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],"/*":g},"/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":c,"/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]},g={"/":[r.breaking,r.nonBreaking,r.unclassified],"/*":[r.breaking,r.nonBreaking,r.unclassified]};const c={"/":[r.nonBreaking,r.breaking,r.breaking],"/data":()=>(0,i.jsonSchemaRules)(r.addNonBreaking),"/*":r.allAnnotation},f={"/":[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":g,"/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":g,"/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?c:f}),"/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],g=[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]},c={"/":[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 f=({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 u=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 k=(e=t.allUnclassified)=>Object.assign(Object.assign({"/":e},{"/type":[t.breaking,t.nonBreaking,t.breaking],"/format":[t.breaking,t.nonBreaking,t.breaking],"/items":()=>k(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":g}),{"/title":t.allAnnotation,"/description":t.allAnnotation,"/items":()=>k(t.allBreaking),"/maxProperties":i,"/minProperties":o,"/required":{"/":t.onlyAddBreaking,"/*":[f,t.nonBreaking,f]},"/properties":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>k(t.addNonBreaking)},"/allOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>k(t.allBreaking)},"/readOnly":l,"/discriminator":t.allAnnotation,"/additionalProperties":()=>k([t.breaking,t.breaking,r.breakingIfAfterTrue]),"/example":t.allAnnotation,"/externalDocs":t.allAnnotation,"/xml":t.allUnclassified});var d={"/":[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}}}},b=(b={"/":[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":()=>k(t.allBreaking),"/description":t.allAnnotation,"/required":[t.breaking,t.nonBreaking,r.breakingIfAfterTrue]},k()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},(0,r.matchRule)(b,({before:{value:e},after:{value:n}})=>e.in===n.in&&("path"===e.in||e.name===n.name))),p={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":Object.assign(Object.assign({"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation},k()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},p={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation,"/headers":p,"/schema":()=>k(t.allBreaking),"/examples":t.allAnnotation}},u={"/":[t.nonBreaking,t.breaking,t.breaking],"/tags":t.allAnnotation,"/summary":t.allAnnotation,"/description":t.allAnnotation,"/externalDocs":t.allAnnotation,"/operationId":t.allAnnotation,"/consumes":u({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/produces":u({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/parameters":b,"/responses":p,"/deprecated":t.allDeprecate,"/security":c};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":d,"/paths":(c={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.nonBreaking],"/*":u,"/parameters":b}},(0,r.matchRule)(c,({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],"/*":()=>k(t.addNonBreaking)},"/responses":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":p},"/parameters":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":b},"/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":{"/*":()=>f},"/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":{"/*":()=>u}});var g=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>l}}),c=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>s}});const f={"/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":{"/*":f}}),o=Object.assign(Object.assign({},o),{"/items":()=>n.graphApiTypesRules});const u=Object.assign(Object.assign({},t),{"/args":{"/*":()=>f}});n.graphApiTypesRules=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),l),g),o),a),n.graphapiRules={"/queries":{"/*":n.graphApiOperationRules},"/mutations":{"/*":n.graphApiOperationRules},"/subscriptions":{"/*":n.graphApiOperationRules},"/components":{"/scalars":{"/*":s},"/objects":{"/*":l},"/interfaces":{"/*":l},"/unions":{"/*":g},"/enums":{"/*":c},"/inputObjects":{"/*":a},"/directives":{"/*":{"/":r.addNonBreaking,"/title":r.allAnnotation,"/description":r.allAnnotation,"/locations":r.allAnnotation,"/repeatable":r.allUnclassified,"/args":{"/":r.addNonBreaking,"/*":f}}}}}},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})}]); | ||
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 g(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function c(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 f(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 u(e,n,a,r){e[r=void 0===r?a:r]=n[a]}function k(e,n){for(var a in e)"default"===a||n.hasOwnProperty(a)||(n[a]=e[a])}function d(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 b(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 p(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(b(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,g):c(i[0][2],a)}catch(e){c(i[0][3],e)}var a}function l(e){s("next",e)}function g(e){s("throw",e)}function c(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=d(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 _(e,n){if(n.has(e))return n.get(e);throw new TypeError("attempted to get private field on non-instance")}function R(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],g=[t.breaking,t.nonBreaking,({before:e,after:n})=>(0,r.breakingIf)(!!(e%n))],c=({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":g,"/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,"/*":[c,t.nonBreaking,c]},"/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 b=a(2),p=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,p.resolveRef)(r,this[e],a),Array.isArray(r)?r[+i]:r[i]):t))break}return r.$ref?(0,p.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,p.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,p.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,p.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,p.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=b.__rest(e,["$ref"]),o=n["$ref"],s=b.__rest(n,["$ref"]),l=t?t===o?t:t+":"+o:"#"+a.ref,g=this.compareCache.get(l);if(g&&((0,p.isEmptyObject)(i)&&(0,p.isEmptyObject)(s)||!t&&!o)){if(!g.result.diffs.length&&!this.resolveUnchangedRefs)return super.compareObjects(e,n,a,r);(0,p.mergeValues)(r,g.merged);var c=g.result.diffs.map(e=>Object.assign(Object.assign({},e),{path:[...a,...e.path]}));return Object.assign(Object.assign({},g.result),{diffs:c})}var[g,c]=this.dereference("before",e,a),[f,u]=this.dereference("after",n,a),k=Array.isArray(r)?[]:{};let d=super.compareObjects(g,f,a,r);return t&&o&&(0,p.isEmptyObject)(i)&&(0,p.isEmptyObject)(s)&&(g=d.diffs.map(e=>Object.assign(Object.assign({},e),{path:e.path.slice(a.items.length)})),this.compareCache.set(l,{result:Object.assign(Object.assign({},d),{diffs:g}),merged:r})),u(),c(),!t||t!==o||d.diffs.length||this.resolveUnchangedRefs?(0,p.mergeValues)(r,k):(Array.isArray(r)?r.length=0:Object.keys(r).forEach(e=>delete r[e]),d=super.compareObjects(e,n,a,r)),d}}n.ApiCompare=l},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.JsonCompare=void 0;const f=a(2),A=a(1),u=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===u.DiffAction.replace||e.action===u.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||u.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:g,parentMeta:c}=e[r];l&&l.action!==u.DiffAction.test?(o=l["path"],i=f.__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===u.DiffAction.rename?this.setMeta(n,l.after,this.formatMergedMeta(l)):this.setMeta(n,o,this.formatMergedMeta(l)),r):(s.length&&(t.diffTree[r]=g,t.diffs.push(...s)),c&&this.setMeta(n,a?+r:r,{array:c}))}return t}mergeValue({action:e,before:n,after:a}){return e===u.DiffAction.test||e===u.DiffAction.remove?n:a}compareResult(e){return e.action===u.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 c of i){var s,l=[...o].find(e=>e===c||this.checkMatch(r,n,a,c,e));l&&l!==c&&(t[l]=this.compareResult((0,A.renamed)(r,c,l))),void 0===l?(s=(0,A.removed)(r.childPath(c),n[c]),e[c]=this.mergeValue(s),t[c]=this.compareResult(s)):(t[c]=this.compareAny(n[c],a[l],r.childPath(c),e,l),o.delete(l))}for(const f of o){var g=(0,A.added)(r.childPath(f),a[f]);e[f]=this.mergeValue(g),t[f]=this.compareResult(g)}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 c of n.keys()){var s,l=r.childPath(c),g=t?[...o].find(e=>this.checkMatch(r,n,a,c,e)):c;void 0===g||g>=a.length?(s=(0,A.removed)(l,n[c]),e[c]=this.mergeValue(s),i[c]=this.compareResult(s)):(o.delete(g),i[c]=this.compareAny(n[c],a[g],l,e,c))}let c=n.length;for(const u of o){var f=(0,A.added)(r.childPath(c),a[u]);e[c]=this.mergeValue(f),i[c++]=this.compareResult(f)}return this.mergeResults(i,e,!0)}compareEnums(n,a,r,t){var e,i,o={},s=[],l=new Set,g=new Set;for(const h of n.keys()){let e=[];for(const m of a.keys())if(!l.has(m)){var c={},f=this.compareAny(n[h],a[m],r.childPath(h),c);if(!f.diffs.length){l.add(m),g.add(h),e={value:c.value,res:f};break}e[m]={value:c.value,res:f,diffs:typeof n[h]==typeof a[m]?f.diffs.length:-1}}s.push(e)}for(const h of n.keys()){const y=s[h];if(Array.isArray(y)){var u,k=[...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=k[B];if(!l.has(e)){for(const v of n.keys()){var d=s[v];if(Array.isArray(d)&&!g.has(v)&&d[e]<y[e]){e=-1;break}}if(0<=e){var{value:b,res:p}=y[e];t[h]=b,o[h]=p,g.add(h),l.add(e);break}}}g.has(h)||(u=(0,A.removed)(r.childPath(h),n[h]),t[h]=this.mergeValue(u),o[h]=this.compareResult(u))}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),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)})),g={"/":[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}},c={"/":[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":o,"/requestBody":g,"/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,"/*":f,"/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],"/*":g},"/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":c,"/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]},g={"/":[r.breaking,r.nonBreaking,r.unclassified],"/*":[r.breaking,r.nonBreaking,r.unclassified]};const c={"/":[r.nonBreaking,r.breaking,r.breaking],"/data":()=>(0,i.jsonSchemaRules)(r.addNonBreaking),"/*":r.allAnnotation},f={"/":[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":g,"/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":g,"/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?c:f}),"/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],g=[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]},c={"/":[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 f=({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 u=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 k=(e=t.allUnclassified)=>Object.assign(Object.assign({"/":e},{"/type":[t.breaking,t.nonBreaking,t.breaking],"/format":[t.breaking,t.nonBreaking,t.breaking],"/items":()=>k(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":g}),{"/title":t.allAnnotation,"/description":t.allAnnotation,"/items":()=>k(t.allBreaking),"/maxProperties":i,"/minProperties":o,"/required":{"/":t.onlyAddBreaking,"/*":[f,t.nonBreaking,f]},"/properties":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>k(t.addNonBreaking)},"/allOf":{"/":[t.breaking,t.nonBreaking,t.breaking],"/*":()=>k(t.allBreaking)},"/readOnly":l,"/discriminator":t.allAnnotation,"/additionalProperties":()=>k([t.breaking,t.breaking,r.breakingIfAfterTrue]),"/example":t.allAnnotation,"/externalDocs":t.allAnnotation,"/xml":t.allUnclassified});var d={"/":[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}}}},b=(b={"/":[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":()=>k(t.allBreaking),"/description":t.allAnnotation,"/required":[t.breaking,t.nonBreaking,r.breakingIfAfterTrue]},k()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},(0,r.matchRule)(b,({before:{value:e},after:{value:n}})=>e.in===n.in&&("path"===e.in||e.name===n.name))),p={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":Object.assign(Object.assign({"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation},k()),{"/allowEmptyValue":[t.nonBreaking,({before:e})=>e,({before:e})=>e],"/collectionFormat":[t.breaking,t.nonBreaking,t.breaking]})},p={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.breaking],"/description":t.allAnnotation,"/headers":p,"/schema":()=>k(t.allBreaking),"/examples":t.allAnnotation}},u={"/":[t.nonBreaking,t.breaking,t.breaking],"/tags":t.allAnnotation,"/summary":t.allAnnotation,"/description":t.allAnnotation,"/externalDocs":t.allAnnotation,"/operationId":t.allAnnotation,"/consumes":u({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/produces":u({"/":[t.nonBreaking,t.breaking,t.breaking],"/*":[t.nonBreaking,t.breaking,t.breaking]}),"/parameters":b,"/responses":p,"/deprecated":t.allDeprecate,"/security":c};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":d,"/paths":(c={"/":[t.nonBreaking,t.breaking,t.breaking],"/*":{"/":[t.nonBreaking,t.breaking,t.nonBreaking],"/*":u,"/parameters":b}},(0,r.matchRule)(c,({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],"/*":()=>k(t.addNonBreaking)},"/responses":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":p},"/parameters":{"/":[t.nonBreaking,t.breaking,t.breaking],"/*":b},"/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":{"/*":()=>f},"/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":{"/*":()=>u}});var g=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>l}}),c=Object.assign(Object.assign({},o),{"/oneOf":{"/":[r.breaking,r.nonBreaking,r.breaking],"/*":()=>s}});const f={"/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":{"/*":f}}),o=Object.assign(Object.assign({},o),{"/items":()=>n.graphApiTypesRules});const u=Object.assign(Object.assign({},t),{"/args":{"/*":()=>f}});n.graphApiTypesRules=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),l),g),o),a),n.graphapiRules={"/queries":{"/*":n.graphApiOperationRules},"/mutations":{"/*":n.graphApiOperationRules},"/subscriptions":{"/*":n.graphApiOperationRules},"/components":{"/scalars":{"/*":s},"/objects":{"/*":l},"/interfaces":{"/*":l},"/unions":{"/*":g},"/enums":{"/*":c},"/inputObjects":{"/*":a},"/directives":{"/*":{"/":r.addNonBreaking,"/title":r.allAnnotation,"/description":r.allAnnotation,"/locations":r.allAnnotation,"/repeatable":r.allUnclassified,"/args":{"/":r.addNonBreaking,"/*":f}}}}}},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})}]); |
@@ -56,3 +56,6 @@ "use strict"; | ||
}, | ||
"/type": [constants_1.breaking, constants_1.nonBreaking, constants_1.breaking], | ||
"/type": { | ||
"/": [constants_1.breaking, constants_1.nonBreaking, constants_1.breaking], | ||
"/*": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking] | ||
}, | ||
"/not": { | ||
@@ -59,0 +62,0 @@ "/": [constants_1.breaking, constants_1.nonBreaking, constants_1.breaking], |
@@ -181,6 +181,3 @@ "use strict"; | ||
const mergeValues = (value, patch) => { | ||
if (Array.isArray(value)) { | ||
return Array.isArray(patch) ? value.push(...patch) : value; | ||
} | ||
else if (typeof value === "object" && typeof patch === "object" && patch) { | ||
if (!Array.isArray(value) && typeof value === "object" && typeof patch === "object" && patch) { | ||
for (const key of Reflect.ownKeys(patch)) { | ||
@@ -187,0 +184,0 @@ value[key] = (0, exports.mergeValues)(value[key], patch[key]); |
@@ -56,3 +56,6 @@ "use strict"; | ||
}, | ||
"/type": [constants_1.breaking, constants_1.nonBreaking, constants_1.breaking], | ||
"/type": { | ||
"/": [constants_1.breaking, constants_1.nonBreaking, constants_1.breaking], | ||
"/*": [constants_1.nonBreaking, constants_1.breaking, constants_1.breaking] | ||
}, | ||
"/not": { | ||
@@ -59,0 +62,0 @@ "/": [constants_1.breaking, constants_1.nonBreaking, constants_1.breaking], |
@@ -181,6 +181,3 @@ "use strict"; | ||
const mergeValues = (value, patch) => { | ||
if (Array.isArray(value)) { | ||
return Array.isArray(patch) ? value.push(...patch) : value; | ||
} | ||
else if (typeof value === "object" && typeof patch === "object" && patch) { | ||
if (!Array.isArray(value) && typeof value === "object" && typeof patch === "object" && patch) { | ||
for (const key of Reflect.ownKeys(patch)) { | ||
@@ -187,0 +184,0 @@ value[key] = (0, exports.mergeValues)(value[key], patch[key]); |
{ | ||
"name": "api-smart-diff", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "Generate the diff between two API specifications (OpenAPI, AsyncAPI, JsonSchema)", | ||
@@ -41,2 +41,3 @@ "module": "dist/esm/index.js", | ||
"fast-json-patch": "^3.1.1", | ||
"gqlapi": "0.0.4", | ||
"jest": "^26.0.1", | ||
@@ -43,0 +44,0 @@ "js-yaml": "^4.1.0", |
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
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
454363
15