@swagger-api/apidom-ns-json-schema-draft-7 1.0.0-beta.9 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +188 -0
- package/README.md +1 -1
- package/dist/apidom-ns-json-schema-draft-7.browser.js +1 -1
- package/package.json +8 -8
- package/src/elements/JSONSchema.cjs +0 -18
- package/src/elements/JSONSchema.mjs +0 -18
- package/src/index.cjs +3 -1
- package/src/index.mjs +1 -0
- package/src/refractor/plugins/replace-empty-element.cjs +2 -1
- package/src/refractor/plugins/replace-empty-element.mjs +3 -2
- package/src/refractor/visitors/json-schema/index.cjs +2 -28
- package/src/refractor/visitors/json-schema/index.mjs +3 -28
- package/src/refractor/visitors/json-schema/link-description/index.cjs +1 -8
- package/src/refractor/visitors/json-schema/link-description/index.mjs +2 -8
- package/src/traversal/visitor.cjs +2 -11
- package/src/traversal/visitor.mjs +2 -11
- package/types/apidom-ns-json-schema-draft-7.d.ts +19 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsJSONSchemaDraft7=t():e.apidomNsJSONSchemaDraft7=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),c=r(5071);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),c=r(3964);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),c=r(9068);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),c=r(7462),a=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),c=r(9632),a=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),f=!r&&!l&&o(e),h=!r&&!l&&!f&&a(e),p=r||l||f||h,m=p?n(e.length,String):[],d=m.length;for(var y in e)!t&&!u.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||m.push(y);return m}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),c=r(8486),a=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,v){var g=a(e),b=a(t),S=g?h:c(e),E=b?h:c(t),j=(S=S==f?p:S)==p,x=(E=E==f?p:E)==p,O=S==E;if(O&&u(e)){if(!u(t))return!1;g=!0,j=!1}if(O&&!j)return v||(v=new n),g||l(e)?s(e,t,r,d,y,v):i(e,t,S,r,d,y,v);if(!(1&r)){var w=j&&m.call(e,"__wrapped__"),k=x&&m.call(t,"__wrapped__");if(w||k){var A=w?e.value():e,P=k?t.value():t;return v||(v=new n),y(A,P,r,d,v)}}return!!O&&(v||(v=new n),o(e,t,r,d,y,v))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?h:c).test(o(e))}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=-1,d=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var v=e[m],g=t[m];if(o)var b=u?o(g,v,m,t,e,a):o(v,g,m,e,t,a);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)}))){d=!1;break}}else if(v!==g&&!c(v,g,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),c=r(5894),a=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=c;case"[object Set]":var m=1&n;if(p||(p=a),e.size!=t.size&&!m)return!1;var d=h.get(e);if(d)return d==t;n|=2,h.set(e,t);var y=o(p(e),p(t),n,u,f,h);return h.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var f=l;f--;){var h=u[f];if(!(a?h in t:s.call(t,h)))return!1}var p=c.get(e),m=c.get(t);if(p&&m)return p==t&&m==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++f<l;){var v=e[h=u[f]],g=t[h];if(i)var b=a?i(g,v,h,t,e,c):i(v,g,h,e,t,c);if(!(void 0===b?v===g||o(v,g,r,i,c):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var S=e.constructor,E=t.constructor;S==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof E&&E instanceof E||(d=!1)}return c.delete(e),c.delete(t),d}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),c=r(9270),a=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),v=u(i),g=u(o),b=u(c),S=a;(n&&S(new n(new ArrayBuffer(1)))!=m||s&&S(new s)!=l||i&&S(i.resolve())!=f||o&&S(new o)!=h||c&&S(new c)!=p)&&(S=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return m;case y:return l;case v:return f;case g:return h;case b:return p}return t}),e.exports=S},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),c=r(1580),a=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),c=r(2555),a=r(9796),u=r(7309),l=r(5642),f=r(9620),h=r(593),p=r(4123),m=r(3311),d=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=h,n.prototype.MemberElement=u,n.prototype.refract=y,p.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:h,refract:y,ArraySlice:p,ObjectSlice:m,KeyValuePair:d}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),c=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var c=n(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&r!=r){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var f=c[l];n(e,f)||r&&n(r,f)||a(e,f,u(t,f))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),c=r(4543).f,a=r(8696),u=r(8099),l=r(4572),f=r(3999),h=r(701);r(3753);var p=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,v,g,b,S,E=e.target,j=e.global,x=e.stat,O=e.proto,w=j?n:x?n[E]:n[E]&&n[E].prototype,k=j?u:u[E]||f(u,E,{})[E],A=k.prototype;for(d in t)s=!(r=a(j?d:E+(x?".":"#")+d,e.forced))&&w&&h(w,d),v=k[d],s&&(g=e.dontCallGetSet?(S=c(w,d))&&S.value:w[d]),y=s&&g?g:t[d],(r||O||typeof v!=typeof y)&&(b=e.bind&&s?l(y,n):e.wrap&&s?p(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(b,"sham",!0),f(k,d,b),O&&(h(u,m=E+"Prototype")||f(u,m,{}),f(u[m],d,y),e.real&&A&&(r||!A[d])&&f(A,d,y)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),c=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),c=r(967),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw new a(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),c=r(8900),a=r(262),u=r(3999),l=r(701),f=r(3753),h=r(4275),p=r(5241),m="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new d(m);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var g=h("state");p[g]=!0,n=function(e,t){if(l(e,g))throw new d(m);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),c=r(2877),a=r(8130),u=r(4317),l=r(1613),f=r(967),h=r(1743),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,v,g,b,S,E,j,x=r&&r.that,O=!(!r||!r.AS_ENTRIES),w=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),P=n(t,x),_=function(e){return y&&h(y,"normal",e),new m(!0,e)},M=function(e){return O?(i(e),A?P(e[0],e[1],_):P(e[0],e[1])):A?P(e,_):P(e)};if(w)y=e.iterator;else if(k)y=e;else{if(!(v=f(e)))throw new p(o(e)+" is not iterable");if(c(v)){for(g=0,b=a(e);b>g;g++)if((S=M(e[g]))&&u(d,S))return S;return new m(!1)}y=l(e,v)}for(E=w?e.next:y.next;!(j=s(E,y)).done;){try{S=M(j.value)}catch(e){h(y,"throw",e)}if("object"==typeof S&&S&&u(d,S))return S}return new m(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),c=r(6625),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),c=r(2769),a=r(1926),u=r(3671),l=r(3491),f=r(1811),h=r(3999),p=r(3508),m=r(8655),d=r(6625),y=r(2621),v=o.PROPER,g=o.CONFIGURABLE,b=y.IteratorPrototype,S=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),j="keys",x="values",O="entries",w=function(){return this};e.exports=function(e,t,r,o,m,y,k){a(r,t,o);var A,P,_,M=function(e){if(e===m&&I)return I;if(!S&&e&&e in R)return R[e];switch(e){case j:case x:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",T=!1,R=e.prototype,F=R[E]||R["@@iterator"]||m&&R[m],I=!S&&F||M(m),D="Array"===t&&R.entries||F;if(D&&(A=u(D.call(new e)))!==Object.prototype&&A.next&&(i||u(A)===b||(l?l(A,b):c(A[E])||p(A,E,w)),f(A,N,!0,!0),i&&(d[N]=w)),v&&m===x&&F&&F.name!==x&&(!i&&g?h(R,"name",x):(T=!0,I=function(){return s(F,this)})),m)if(P={values:M(x),keys:y?I:M(j),entries:M(O)},k)for(_ in P)(S||T||!(_ in R))&&p(R,_,P[_]);else n({target:t,proto:!0,forced:S||T},P);return i&&!k||R[E]===I||p(R,E,I,{name:m}),d[t]=I,P}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),c=r(2769),a=r(262),u=r(5780),l=r(3671),f=r(3508),h=r(8655),p=r(4871),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!a(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:p&&(n=u(n)),c(n[m])||f(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),c=r(5241),a=r(3489),u=r(9619),l=r(4275),f="prototype",h="script",p=l("IE_PROTO"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete v[f][o[s]];return v()};c[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[f]=s(e),r=new m,m[f]=null,r[p]=e):r=v(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),c=r(3273),a=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),c=r(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),c=r(3273),a=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=c(e),t=a(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),c=r(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,c=r(5241),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),c=r(7235),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),c=r(9559),a=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(o(t)),h=s(r),p=f.length;return h<0||h>=p?e?"":void 0:(n=a(f,h))<55296||n>56319||h+1===p||(l=a(f,h+1))<56320||l>57343?e?c(f,h):n:e?u(f,h,h+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),c=r(9258),a=r(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),c=r(4603),a=r(7460),u=n.Symbol,l=s("wks"),f=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),c=r(3491),a=r(7464),u=r(5516),l=r(3507),f=r(4879),h=r(8148),p=r(4279),m=r(5024),d=r(4871);e.exports=function(e,t,r,y){var v="stackTraceLimit",g=y?2:1,b=e.split("."),S=b[b.length-1],E=n.apply(null,b);if(E){var j=E.prototype;if(!d&&s(j,"cause")&&delete j.cause,!r)return E;var x=n("Error"),O=t((function(e,t){var r=f(y?t:e,void 0),n=y?new E(e):new E;return void 0!==r&&i(n,"message",r),p(n,O,n.stack,2),this&&o(j,this)&&l(n,this,O),arguments.length>g&&h(n,arguments[g]),n}));if(O.prototype=j,"Error"!==S?c?c(O,x):a(O,x,{name:!0}):m&&v in E&&(u(O,E,v),u(O,E,"prepareStackTrace")),a(O,E),!d)try{j.name!==S&&i(j,"name",S),j.constructor=O}catch(e){}return O}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),c=r(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),c=r(7464),a=r(5780),u=r(3999),l=r(480),f=r(8148),h=r(4279),p=r(208),m=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,g=function(e,t){var r,n=s(b,this);o?r=o(new y,n?i(this):b):(r=n?this:a(b),u(r,d,"Error")),void 0!==t&&u(r,"message",m(t)),h(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var c=[];return p(e,v,{that:c}),u(r,"errors",c),r};o?o(g,y):c(g,y,{name:!0});var b=g.prototype=a(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},5695:(e,t,r)=>{"use strict";r(3085)},7447:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),c=r(9989).f,a=r(164),u=r(877),l=r(4871),f=r(5024),h="Array Iterator",p=o.set,m=o.getterFor(h);e.exports=a(Array,"Array",(function(e,t){p(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),c=r(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var c in n)i(s[c],c),o[c]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AlternatingVisitor:()=>Cs,FallbackVisitor:()=>yn,FixedFieldsVisitor:()=>zn,JSONReferenceElement:()=>Fr,JSONSchemaDraft7MediaTypes:()=>Ne,JSONSchemaElement:()=>ji,JSONSchemaVisitor:()=>Ni,LinkDescriptionElement:()=>xi,MapVisitor:()=>ss,ParentSchemaAwareVisitor:()=>Gn,PatternedFieldsVisitor:()=>ns,SpecificationVisitor:()=>qn,Visitor:()=>dn,createRefractor:()=>Ci,default:()=>Oi,getNodeType:()=>wi,isArrayElement:()=>ue,isBooleanElement:()=>ce,isElement:()=>ne,isJSONReferenceElement:()=>Hn,isJSONReferenceLikeElement:()=>Zn,isJSONSchemaElement:()=>Ii,isLinkDescriptionElement:()=>Di,isLinkElement:()=>fe,isMemberElement:()=>le,isNullElement:()=>oe,isNumberElement:()=>ie,isObjectElement:()=>ae,isRefElement:()=>he,isStringElement:()=>se,keyMap:()=>ki,mediaTypes:()=>Te,refract:()=>Vi,refractorPluginReplaceEmptyElement:()=>_i,specificationObj:()=>Fi});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>ge,includesClasses:()=>Se,includesSymbols:()=>be,isAnnotationElement:()=>pe,isArrayElement:()=>ue,isBooleanElement:()=>ce,isCommentElement:()=>me,isElement:()=>ne,isLinkElement:()=>fe,isMemberElement:()=>le,isNullElement:()=>oe,isNumberElement:()=>ie,isObjectElement:()=>ae,isParseResultElement:()=>de,isPrimitiveElement:()=>ve,isRefElement:()=>he,isSourceMapElement:()=>ye,isStringElement:()=>se});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Hn,isJSONSchemaElement:()=>Un,isLinkDescriptionElement:()=>Wn,isMediaElement:()=>Kn});var s={};r.r(s),r.d(s,{isJSONReferenceElement:()=>Hn,isJSONSchemaElement:()=>yi,isLinkDescriptionElement:()=>vi,isMediaElement:()=>Kn});var i={};r.r(i),r.d(i,{isJSONReferenceElement:()=>Hn,isJSONSchemaElement:()=>Ii,isLinkDescriptionElement:()=>Di});var o=r(8326);function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(r){return 0===arguments.length||c(r)?t:e.apply(this,arguments)}}function u(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return c(r)?t:a((function(t){return e(r,t)}));default:return c(r)&&c(n)?t:c(r)?a((function(t){return e(t,n)})):c(n)?a((function(t){return e(r,t)})):e(r,n)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function f(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!l(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function h(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const p=function(){return this.xf["@@transducer/init"]()},m=function(e){return this.xf["@@transducer/result"](e)};var d=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=h(this.xf["@@transducer/step"](e,!1))),e},e}();function y(e){return function(t){return new d(e,t)}}const v=u(f(["all"],y,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function g(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,r){return function(){for(var n=[],s=0,i=e,o=0,a=!1;o<t.length||s<arguments.length;){var u;o<t.length&&(!c(t[o])||s>=arguments.length)?u=t[o]:(u=arguments[s],s+=1),n[o]=u,c(u)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):g(Math.max(0,i),b(e,n,r))}}const S=u((function(e,t){return 1===e?a(t):g(e,b(e,[],t))}));const E=a((function(e){return S(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));function j(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function x(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var k=Object.prototype.toString;const A=function(){return"[object Arguments]"===k.call(arguments)?function(e){return"[object Arguments]"===k.call(e)}:function(e){return O("callee",e)}}();var P=!{toString:null}.propertyIsEnumerable("toString"),_=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],M=function(){return arguments.propertyIsEnumerable("length")}(),N=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},T="function"!=typeof Object.keys||M?a((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=M&&A(e);for(t in e)!O(t,e)||s&&"length"===t||(n[n.length]=t);if(P)for(r=_.length-1;r>=0;)O(t=_[r],e)&&!N(n,t)&&(n[n.length]=t),r-=1;return n})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const R=T;const F=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function I(e,t,r,n){var s=j(e);function i(e,t){return D(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),s)}function D(e,t,r,n){if(w(e,t))return!0;var s,i,o=F(e);if(o!==F(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=R(e);if(a.length!==R(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var f=a[c];if(!O(f,t)||!D(t[f],e[f],u,l))return!1;c-=1}return!0}const $=u((function(e,t){return D(e,t,[],[])}));function J(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if($(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const C=E(u(J));class V extends o.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const L=V;class B extends o.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const q=B;const z=a((function(e){return function(){return e}}));const G=z(void 0);const U=$(G());class H extends o.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(U(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const K=H;class W extends o.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new o.wE([e.start.row,e.start.column,e.start.char]),r=new o.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Y=W,X=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Z=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Q=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),ee=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof o.wE)&&t.classes.includes(e),te=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,re=e=>e({hasMethod:X,hasBasicElementProps:Z,primitiveEq:Q,isElementType:te,hasClass:ee}),ne=re((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.Hg||e(r)&&t(void 0,r))),se=re((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.Om||e(r)&&t("string",r))),ie=re((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.kT||e(r)&&t("number",r))),oe=re((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.Os||e(r)&&t("null",r))),ce=re((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.bd||e(r)&&t("boolean",r))),ae=re((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof o.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ue=re((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof o.wE&&!(n instanceof o.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),le=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof o.Pr||e(n)&&t("member",n)&&r(void 0,n))),fe=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof o.Ft||e(n)&&t("link",n)&&r(void 0,n))),he=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof o.sI||e(n)&&t("ref",n)&&r(void 0,n))),pe=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof L||e(n)&&t("annotation",n)&&r("array",n))),me=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof q||e(n)&&t("comment",n)&&r("string",n))),de=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof K||e(n)&&t("parseResult",n)&&r("array",n))),ye=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Y||e(n)&&t("sourceMap",n)&&r("array",n))),ve=e=>te("object",e)||te("array",e)||te("boolean",e)||te("number",e)||te("string",e)||te("null",e)||te("member",e),ge=e=>ye(e.meta.get("sourceMap")),be=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ue(r)&&v(C(r.toValue()),e)},Se=(e,t)=>0===e.length||v(C(t.classes.toValue()),e);function Ee(e){return"[object String]"===Object.prototype.toString.call(e)}function je(e,t){var r=e<0?t.length+e:e;return Ee(t)?t.charAt(r):t[r]}const xe=a((function(e){return je(-1,e)}));var Oe=r(1212);const we=class extends Oe{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class ke extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(we,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Ae=ke;const Pe=class extends Ae{};const _e=class extends Pe{};const Me=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new _e("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new _e("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new _e("latest method in MediaTypes class is not yet implemented.")}};class Ne extends Me{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-07",t="generic"){const r="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return xe(this.filterByFormat(e))}}const Te=new Ne("application/schema;version=draft-07","application/schema+json;version=draft-07","application/schema+yaml;version=draft-07");function Re(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return c(r)?t:u((function(t,n){return e(r,t,n)}));case 2:return c(r)&&c(n)?t:c(r)?u((function(t,r){return e(t,n,r)})):c(n)?u((function(t,n){return e(r,t,n)})):a((function(t){return e(r,n,t)}));default:return c(r)&&c(n)&&c(s)?t:c(r)&&c(n)?u((function(t,r){return e(t,r,s)})):c(r)&&c(s)?u((function(t,r){return e(t,n,r)})):c(n)&&c(s)?u((function(t,n){return e(r,t,n)})):c(r)?a((function(t){return e(t,n,s)})):c(n)?a((function(t){return e(r,t,s)})):c(s)?a((function(t){return e(r,n,t)})):e(r,n,s)}}}function Fe(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ie=Re((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})O(n,t)&&(s[n]=O(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)O(n,r)&&!O(n,s)&&(s[n]=r[n]);return s}));const De=Re((function e(t,r,n){return Ie((function(r,n,s){return Fe(n)&&Fe(s)?e(t,n,s):t(r,n,s)}),r,n)}));const $e=u((function(e,t){return De((function(e,t,r){return r}),e,t)}));const Je=u((function(e,t){return null==t||t!=t?e:t})),Ce=Number.isInteger||function(e){return(e|0)===e};const Ve=u((function(e,t){if(null!=t)return Ce(e)?je(e,t):t[e]}));const Le=Re((function(e,t,r){return Je(e,Ve(t,r))}));function Be(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Ce(s)?je(s,r):r[s]}return r}const qe=u(Be);function ze(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return l(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Ge=Re(ze("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ue=Ge(0,-1);const He=u((function(e,t){return g(e.length,(function(){return e.apply(t,arguments)}))}));const Ke=u((function(e,t){return e.apply(this,t)}));function We(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const Ye=a((function(e){return!!l(e)||!!e&&("object"==typeof e&&(!Ee(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Xe="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ze(e,t,r){return function(n,s,i){if(Ye(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Xe])return r(n,s,i[Xe]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Qe(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function et(e,t,r,n){return r[n](e,t)}const tt=Ze(We,et,Qe);function rt(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}var nt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const st=u(f(["fantasy-land/map","map"],(function(e){return function(t){return new nt(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return S(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return We((function(r,n){return r[n]=e(t[n]),r}),{},R(t));default:return rt(e,t)}})));const it=u((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:tt((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,st(r,t))}),[],e)}));const ot=u((function(e,t){var r=S(e,t);return S(e,(function(){return We(it,st(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ct=a((function(e){return ot(e.length,e)}));const at=ct(a((function(e){return!e})));function ut(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var lt=function(e){return(e<10?"0":"")+e};const ft="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+lt(e.getUTCMonth()+1)+"-"+lt(e.getUTCDate())+"T"+lt(e.getUTCHours())+":"+lt(e.getUTCMinutes())+":"+lt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var ht=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function pt(e){return function(t){return new ht(e,t)}}const mt=u(f(["fantasy-land/filter","filter"],pt,(function(e,t){return Fe(t)?We((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},R(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const dt=u((function(e,t){return mt((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function yt(e,t){var r=function(r){var n=t.concat([e]);return J(r,n)?"<Circular>":yt(r,n)},n=function(e,t){return rt((function(t){return ut(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+rt(r,e).join(", ")+"))";case"[object Array]":return"["+rt(r,e).concat(n(e,dt((function(e){return/^\d+$/.test(e)}),R(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):ut(ft(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":ut(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,R(e)).join(", ")+"}"}}const vt=a((function(e){return yt(e,[])}));const gt=u((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=vt(e),o=r(i,vt(t));return void 0!==o&&o===i?e:t}));const bt=u((function(e,t){return st(Ve(e),t)}));function St(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function Et(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function jt(e,t,r,n){return e["@@transducer/result"](r[n](He(e["@@transducer/step"],e),t))}const xt=Ze(St,jt,Et);var Ot=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const wt=Re((function(e,t,r){return xt("function"==typeof e?new Ot(e):e,t,r)}));const kt=a((function(e){return S(wt(gt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function At(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Pt=a(ze("tail",Ge(1,1/0)));function _t(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return g(arguments[0].length,wt(At,arguments[0],Pt(arguments)))}var Mt=function(e,t){switch(arguments.length){case 0:return Mt;case 1:return function t(r){return 0===arguments.length?t:w(e,r)};default:return w(e,t)}};const Nt=Mt;const Tt=S(1,_t(F,Nt("GeneratorFunction")));const Rt=S(1,_t(F,Nt("AsyncFunction")));const Ft=kt([_t(F,Nt("Function")),Tt,Rt]);const It=at(Ft);function Dt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const $t=u((function(e,t){return e&&t}));const Jt=u((function(e,t){return Dt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ct($t)(e,t)}));var Ct=a((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():l(e)?[]:Ee(e)?"":Fe(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Vt=Ct;const Lt=a((function(e){return null!=e&&$(e,Vt(e))}));const Bt=S(1,Ft(Array.isArray)?Array.isArray:_t(F,Nt("Array")));const qt=Jt(Bt,Lt);const zt=S(3,(function(e,t,r){var n=qe(e,r),s=qe(Ue(e),r);if(!It(n)&&!qt(e)){var i=He(n,s);return Ke(i,t)}}));const Gt=Re((function(e,t,r){return e(Be(t,r))}));const Ut=$(null);const Ht=at(Ut);function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}const Wt=function(e){return"object"===Kt(e)};const Yt=S(1,Jt(Ht,Wt));var Xt=_t(F,Nt("Object")),Zt=_t(vt,$(vt(Object))),Qt=Gt(Jt(Ft,Zt),["constructor"]);const er=S(1,(function(e){if(!Yt(e)||!Xt(e))return!1;var t=Object.getPrototypeOf(e);return!!Ut(t)||Qt(t)}));class tr extends o.g${constructor(){super(),this.register("annotation",L),this.register("comment",q),this.register("parseResult",K),this.register("sourceMap",Y)}}const rr=new tr,nr=e=>{const t=new tr;return er(e)&&t.use(e),t},sr=rr,ir=()=>({predicates:{...e},namespace:sr});const or=S(1,_t(F,Nt("String")));const cr=class extends Ae{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},ar=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},ur={},lr=e=>null==e?void 0:e.type,fr=e=>"string"==typeof lr(e),hr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),pr=(e,{visitFnGetter:t=ar,nodeTypeGetter:r=lr,breakSymbol:n=ur,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,f,h,p,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,f,h,p,v);if("function"==typeof(null==t?void 0:t.then))throw new cr("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,h){let p=s;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(p),!0);if("function"==typeof c){const t=c.call(e[s],p,o,u,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new cr("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===p&&(a[s]=c)}}};pr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=ar,nodeTypeGetter:r=lr,breakSymbol:n=ur,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,f,h,p,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,f,h,p,v);if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,h){let p=s;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(p),!0);if("function"==typeof c){const t=await c.call(e[s],p,o,u,l,f,m);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===p&&(a[s]=c)}}};const mr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ur,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=ar,nodeTypeGetter:a=lr,nodePredicate:u=fr,nodeCloneFn:l=hr,detectCycles:f=!0}={})=>{const h=r||{};let p,m,d=Array.isArray(e),y=[e],v=-1,g=[],b=e;const S=[],E=[];do{v+=1;const e=v===y.length;let r;const O=e&&0!==g.length;if(e){if(r=0===E.length?void 0:S.pop(),b=m,m=E.pop(),O)if(d){b=b.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=l(b);for(const[e,t]of g)b[e]=t}v=p.index,y=p.keys,g=p.edits,d=p.inArray,p=p.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],b=m[r],b===i||void 0===b)continue;S.push(r)}let w;if(!Array.isArray(b)){var j;if(!u(b))throw new cr(`Invalid AST Node: ${String(b)}`,{node:b});if(f&&E.includes(b)){S.pop();continue}const i=c(t,a(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,m,S,E):m&&(m[r]=t),e||(b=t)}};w=i.call(t,b,r,m,S,E,s)}if("function"==typeof(null===(j=w)||void 0===j?void 0:j.then))throw new cr("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(w===s)break;if(w===o){if(!e){S.pop();continue}}else if(void 0!==w&&(g.push([r,w]),!e)){if(!u(w)){S.pop();continue}b=w}}var x;if(void 0===w&&O&&g.push([r,b]),!e)p={inArray:d,index:v,keys:y,edits:g,prev:p},d=Array.isArray(b),y=d?b:null!==(x=h[a(b)])&&void 0!==x?x:[],v=-1,g=[],m!==i&&void 0!==m&&E.push(m),m=b}while(void 0!==p);return 0!==g.length?g[g.length-1][1]:e};mr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ur,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=ar,nodeTypeGetter:a=lr,nodePredicate:u=fr,nodeCloneFn:l=hr,detectCycles:f=!0}={})=>{const h=r||{};let p,m,d=Array.isArray(e),y=[e],v=-1,g=[],b=e;const S=[],E=[];do{v+=1;const e=v===y.length;let r;const x=e&&0!==g.length;if(e){if(r=0===E.length?void 0:S.pop(),b=m,m=E.pop(),x)if(d){b=b.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=l(b);for(const[e,t]of g)b[e]=t}v=p.index,y=p.keys,g=p.edits,d=p.inArray,p=p.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],b=m[r],b===i||void 0===b)continue;S.push(r)}let O;if(!Array.isArray(b)){if(!u(b))throw new cr(`Invalid AST Node: ${String(b)}`,{node:b});if(f&&E.includes(b)){S.pop();continue}const i=c(t,a(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,m,S,E):m&&(m[r]=t),e||(b=t)}};O=await i.call(t,b,r,m,S,E,s)}if(O===s)break;if(O===o){if(!e){S.pop();continue}}else if(void 0!==O&&(g.push([r,O]),!e)){if(!u(O)){S.pop();continue}b=O}}var j;if(void 0===O&&x&&g.push([r,b]),!e)p={inArray:d,index:v,keys:y,edits:g,prev:p},d=Array.isArray(b),y=d?b:null!==(j=h[a(b)])&&void 0!==j?j:[],v=-1,g=[],m!==i&&void 0!==m&&E.push(m),m=b}while(void 0!==p);return 0!==g.length?g[g.length-1][1]:e};const dr=class extends cr{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const yr=class extends dr{};const vr=class extends dr{},gr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof o.KeyValuePair){const{key:t,value:s}=e,i=ne(t)?gr(t,n):t,c=ne(s)?gr(s,n):s,a=new o.KeyValuePair(i,c);return r.set(e,a),a}if(e instanceof o.ot){const t=e=>gr(e,n),s=[...e].map(t),i=new o.ot(s);return r.set(e,i),i}if(e instanceof o.G6){const t=e=>gr(e,n),s=[...e].map(t),i=new o.G6(s);return r.set(e,i),i}if(ne(e)){const t=Er(e);if(r.set(e,t),e.content)if(ne(e.content))t.content=gr(e.content,n);else if(e.content instanceof o.KeyValuePair)t.content=gr(e.content,n);else if(Array.isArray(e.content)){const r=e=>gr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new yr("Value provided to cloneDeep function couldn't be cloned",{value:e})};gr.safe=e=>{try{return gr(e)}catch{return e}};const br=e=>{const{key:t,value:r}=e;return new o.KeyValuePair(t,r)},Sr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=gr(e.meta)),e.attributes.length>0&&(t._attributes=gr(e.attributes)),ne(e.content)){const r=e.content;t.content=Sr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof o.KeyValuePair?t.content=br(e.content):t.content=e.content;return t},Er=e=>{if(e instanceof o.KeyValuePair)return br(e);if(e instanceof o.ot)return(e=>{const t=[...e];return new o.ot(t)})(e);if(e instanceof o.G6)return(e=>{const t=[...e];return new o.G6(t)})(e);if(ne(e))return Sr(e);throw new vr("Value provided to cloneShallow function couldn't be cloned",{value:e})};Er.safe=e=>{try{return Er(e)}catch{return e}};const jr=e=>ae(e)?"ObjectElement":ue(e)?"ArrayElement":le(e)?"MemberElement":se(e)?"StringElement":ce(e)?"BooleanElement":ie(e)?"NumberElement":oe(e)?"NullElement":fe(e)?"LinkElement":he(e)?"RefElement":void 0,xr=e=>ne(e)?Er(e):hr(e),Or=_t(jr,or),wr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const kr=(e,t,{keyMap:r=wr,...n}={})=>mr(e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:Or,nodeCloneFn:xr,...n});kr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=wr,...n}={})=>mr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:Or,nodeCloneFn:xr,...n});const Ar={toolboxCreator:ir,visitorOptions:{nodeTypeGetter:jr,exposeEdits:!0}},Pr=(e,t,r={})=>{if(0===t.length)return e;const n=$e(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr(c.map(Le({},"visitor")),{...i});c.forEach(zt(["pre"],[]));const u=kr(e,a,i);return c.forEach(zt(["post"],[])),u};Pr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=$e(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr[Symbol.for("nodejs.util.promisify.custom")],u=kr[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(Le({},"visitor")),{...i});await Promise.allSettled(c.map(zt(["pre"],[])));const f=await u(e,l,i);return await Promise.allSettled(c.map(zt(["post"],[]))),f};const _r=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return ne(e)&&(e.meta.length>0&&(n.meta=gr(e.meta)),e.attributes.length>0&&(n.attributes=gr(e.attributes))),Pr(n,r,{toolboxCreator:ir,visitorOptions:{nodeTypeGetter:jr}})},Mr=e=>(t,r={})=>_r(t,{...r,Type:e});o.Sh.refract=Mr(o.Sh),o.wE.refract=Mr(o.wE),o.Om.refract=Mr(o.Om),o.bd.refract=Mr(o.bd),o.Os.refract=Mr(o.Os),o.kT.refract=Mr(o.kT),o.Ft.refract=Mr(o.Ft),o.sI.refract=Mr(o.sI),L.refract=Mr(L),q.refract=Mr(q),K.refract=Mr(K),Y.refract=Mr(Y);class Nr extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Tr=Nr;class Rr extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Fr=Rr;class Ir extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Dr=Ir;class $r extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Jr=$r;const Cr=u((function(e,t){return We((function(r,n){return r[n]=e(t[n],n,t),r}),{},R(t))}));const Vr=a((function(e){return null==e}));var Lr=u((function(e,t){if(0===e.length||Vr(t))return!1;for(var r=t,n=0;n<e.length;){if(Vr(r)||!O(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Br=Lr;var qr=u((function(e,t){return Br([e],t)}));const zr=qr;const Gr=Re((function(e,t,r){return e(Ve(t,r))}));const Ur=a((function(e){return S(e.length,e)}));const Hr=u((function(e,t){return S(e+1,(function(){var r=arguments[e];if(null!=r&&Dt(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(vt(r)+' does not have a method named "'+t+'"')}))}));const Kr=Hr(1,"split");var Wr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Yr(e){return function(t){return new Wr(e,t)}}const Xr=u(f(["dropWhile"],Yr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Ge(r,1/0,t)})));const Zr=Hr(1,"join");const Qr=Ur((function(e,t){return _t(Kr(""),Xr(C(e)),Zr(""))(t)})),en=(e,t)=>{const r=Je(e,t);return Cr((e=>{if(er(e)&&zr("$ref",e)&&Gr(or,"$ref",e)){const t=qe(["$ref"],e),n=Qr("#/",t);return qe(n.split("/"),r)}return er(e)?en(e,r):e}),e)};const tn=function(){return!0},rn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:jr(e),nn={EphemeralObject:["content"],EphemeralArray:["content"],...wr},sn=(e,t,{keyMap:r=nn,...n}={})=>kr(e,t,{keyMap:r,nodeTypeGetter:rn,nodePredicate:tn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});sn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=nn,...r}={})=>kr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:rn,nodePredicate:tn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const on=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const cn=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class an{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new cn(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new on(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return se(e.href)?e.href.toValue():""}}const un=e=>ne(e)?se(e)||ie(e)||ce(e)||oe(e)?e.toValue():sn(e,new an):e,ln=e=>{const t=e.meta.length>0?gr(e.meta):void 0,r=e.attributes.length>0?gr(e.attributes):void 0;return new e.constructor(void 0,t,r)},fn=(e,t)=>t.clone&&t.isMergeableElement(e)?pn(ln(e),e,t):e,hn={clone:!0,isMergeableElement:e=>ae(e)||ue(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>fn(e,r))),objectElementMerge:(e,t,r)=>{const n=ae(e)?ln(e):ln(t);return ae(e)&&e.forEach(((e,t,s)=>{const i=Er(s);i.value=fn(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=un(s);let c;if(ae(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=Er(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return pn;const r=t.customMerge(e,t);return"function"==typeof r?r:pn})(s,r)(n,t)}else c=Er(i),c.value=fn(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},pn=(e,t,r)=>{var n,s,i;const o={...hn,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:hn.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:hn.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:hn.objectElementMerge;const c=ue(t);if(!(c===ue(e)))return fn(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>gr(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>gr(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};pn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new o.Sh:e.reduce(((e,r)=>pn(e,r,t)),ln(e[0]))};const mn=pn;const dn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=mn(t.meta,e.meta),ge(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=mn(t.attributes,e.attributes))}};const yn=class extends dn{enter(e){return this.element=gr(e),ur}},vn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},gn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:gn(r,[...t,r])},bn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>gn(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=gn(s);for(let t of e){let e=gn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(vn(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},Sn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),En=(e,t)=>{const r=t.map((e=>gn(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},jn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(En(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==En(n,e)||void 0!==t[n],get:(r,n)=>(En(n,e)||t)[n],set(t,r,n){const s=En(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),xn=null,On="copy",wn="copy",kn="deep",An=new WeakMap,Pn=e=>An.get(e),_n=(e,t)=>{var r,n;const s=Sn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Sn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},Mn=(e,t)=>{var r,n,s,i;return{property:_n(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:_n(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Nn=(e,t)=>{var r,n,s,i,o,c;return{class:Sn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:Mn(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:Mn(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Tn=new Map,Rn=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...gn(e.prototype).map((e=>e.constructor)),...null!==(t=Pn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Tn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Nn(e,t)))},Fn=e=>{let t=Tn.get(e);return t||(t={},Tn.set(e,t)),t};function In(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=xn;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};s.push(r)}function o(...t){for(const r of e)vn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===wn?bn(s,o):(c=s,a=o,jn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===On?bn(e,null,["prototype"]):jn(e,Function.prototype));let u=o;if("none"!==kn){const s="deep"===kn?Rn(...e):((...e)=>{const t=e.map((e=>Fn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Nn(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Dn(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),Dn(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,f;return l=u,f=e,An.set(l,f),u}const Dn=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const $n=a((function(e){return S(wt(gt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Jn=a((function(e){return!Lt(e)}));const Cn=u((function(e,t){return e||t}));var Vn=at(S(1,Jt(Ht,u((function(e,t){return Dt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ct(Cn)(e,t)}))(Wt,Ft))));const Ln=$n([or,Vn,Jn]);const Bn=u((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const qn=class extends dn{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Bn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=qe(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Gt(Ft,["visitors",...e],this.specObj)?qe(["visitors",...e],this.specObj):qe(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof yn&&(null==n?void 0:n.constructor)===yn?gr(t):(kr(t,n,r),n.element)}};const zn=class extends qn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(se(n)&&r.includes(un(n))&&!this.ignoredFields.includes(un(n))){const r=this.toRefractedElement([...t,"fixedFields",un(n)],e),i=new o.Pr(gr(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(un(n))||this.element.content.push(gr(s))})),this.copyMetaAndAttributes(e,this.element),ur}};const Gn=class{parent;constructor({parent:e}){this.parent=e}},Un=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tr||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Hn=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fr||e(n)&&t("JSONReference",n)&&r("object",n))),Kn=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dr||e(n)&&t("media",n)&&r("object",n))),Wn=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jr||e(n)&&t("linkDescription",n)&&r("object",n)));class Yn extends(In(zn,Gn,yn)){constructor(e){super(e),this.element=new Tr,this.specPath=z(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,zn.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(U(this.parent)&&!se(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Un(this.parent)&&!se(e.get("$schema"))){const e=Je(un(this.parent.meta.get("inheritedDialectIdentifier")),un(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?gr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new o.wE,n=un(e.get(t));Ln(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Xn=Yn,Zn=e=>ae(e)&&e.hasKey("$ref");class Qn extends(In(qn,Gn,yn)){ObjectElement(e){const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ur}ArrayElement(e){return this.element=new o.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ur}}const es=Qn;const ts=class extends yn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const rs=function(){return!1};const ns=class extends qn{specPath;ignoredFields;fieldPatternPredicate=rs;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(un(t))&&this.fieldPatternPredicate(un(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new o.Pr(gr(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(un(t))||this.element.content.push(gr(r))})),this.copyMetaAndAttributes(e,this.element),ur}};const ss=class extends ns{constructor(e){super(e),this.fieldPatternPredicate=Ln}};class is extends(In(ss,Gn,yn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const os=is;class cs extends(In(ss,Gn,yn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const as=cs;class us extends(In(ss,Gn,yn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ls=us;const fs=class extends yn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const hs=class extends yn{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ps extends(In(qn,Gn,yn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ur}}const ms=ps;class ds extends(In(qn,Gn,yn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ur}}const ys=ds;class vs extends(In(qn,Gn,yn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ur}}const gs=vs;class bs extends(In(ss,Gn,yn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ss=bs;class Es extends(In(qn,Gn,yn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),ur}}const js=Es;class xs extends(In(zn,yn)){constructor(e){super(e),this.element=new Fr,this.specPath=z(["document","objects","JSONReference"])}ObjectElement(e){const t=zn.prototype.ObjectElement.call(this,e);return se(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Os=xs;const ws=class extends yn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const ks=Re((function(e,t,r){return S(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const As=a((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Ps=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const _s=Ps;const Ms=a((function(e){return je(0,e)}));const Ns=a(h);const Ts=at(Vr);const Rs=Jt(Bt,Jn);function Fs(e){return function(e){if(Array.isArray(e))return Is(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Is(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Is(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Is(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ds=_t(_s(As((function(e,t){return e.length>t.length}))),Ms,Ve("length")),$s=Ur((function(e,t,r){var n=r.apply(void 0,Fs(e));return Ts(n)?Ns(n):t}));const Js=ks(Rs,(function(e){var t=Ds(e);return S(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return wt($s(r),void 0,e)}))}),G);const Cs=class extends qn{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ks(e,z(t),G))),r=Js(t)(e);return this.element=this.toRefractedElement(r,e),ur}};const Vs=class extends Cs{constructor(e){super(e),this.alternator=[{predicate:Zn,specPath:["document","objects","JSONReference"]},{predicate:tn,specPath:["document","objects","JSONSchema"]}]}};class Ls extends(In(zn,yn)){constructor(e){super(e),this.element=new Dr,this.specPath=z(["document","objects","Media"])}}const Bs=Ls;class qs extends(In(zn,yn)){constructor(e){super(e),this.element=new Jr,this.specPath=z(["document","objects","LinkDescription"])}}const zs={visitors:{value:yn,JSONSchemaOrJSONReferenceVisitor:Vs,document:{objects:{JSONSchema:{$visitor:Xn,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Vs,items:es,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ts,properties:os,additionalProperties:Vs,patternProperties:as,dependencies:ls,enum:fs,type:hs,allOf:ms,anyOf:ys,oneOf:gs,not:Vs,definitions:Ss,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:js,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Os,fixedFields:{$ref:ws}},Media:{$visitor:Bs,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:qs,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Vs,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Vs}}}}}},Gs=e=>{if(ne(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Us={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wr},Hs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Tr),t.register("jSONReference",Fr),t.register("media",Dr),t.register("linkDescription",Jr),t}},Ks=()=>{const e=nr(Hs);return{predicates:{...t,isStringElement:se},namespace:e}},Ws=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=zs}={})=>{const s=(0,o.e)(e),i=en(n),c=new(qe(t,i))({specObj:i});return kr(s,c),Pr(c.element,r,{toolboxCreator:Ks,visitorOptions:{keyMap:Us,nodeTypeGetter:Gs}})},Ys=e=>(t,r={})=>Ws(t,{specPath:e,...r});Tr.refract=Ys(["visitors","document","objects","JSONSchema","$visitor"]),Fr.refract=Ys(["visitors","document","objects","JSONReference","$visitor"]),Dr.refract=Ys(["visitors","document","objects","Media","$visitor"]),Jr.refract=Ys(["visitors","document","objects","LinkDescription","$visitor"]);const Xs=class extends Tr{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Pe("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Pe("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Zs=class extends Jr{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Pe("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Pe("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Pe("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Pe("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Pe("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Pe("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Qs=Re((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Vr(n)&&O(s,n)&&"object"==typeof n[s]?n[s]:Ce(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ce(e)&&l(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const ei=Qs;const ti=Re((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));var ri=Re((function(e,t,r){return ei([e],t,r)}));const ni=ri;var si=u((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Ce(e)&&l(t))return ti(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if(Ce(e)&&l(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):ni(n,e(s,r[n]),r)}}));const ii=si;class oi extends(In(zn,Gn,yn)){constructor(e){super(e),this.specPath=z(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}ObjectElement(e){return this.element=new Xs,this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,zn.prototype.ObjectElement.call(this,e)}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleDialectIdentifier(e){return Xn.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e,t="$id"){return Xn.prototype.handleSchemaIdentifier.call(this,e,t)}}const ci=oi;class ai extends(In(qn,Gn,yn)){ObjectElement(e){const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ur}ArrayElement(e){return this.element=new o.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ur}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ur}}const ui=ai;const li=class extends yn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};class fi extends(In(zn,yn)){constructor(e){super(e),this.element=new Zs,this.specPath=z(["document","objects","LinkDescription"])}}const hi=fi,pi=_t(ei(["visitors","document","objects","JSONSchema","$visitor"],ci),ii(["visitors","document","objects","JSONSchema","fixedFields","id"]),ei(["visitors","document","objects","JSONSchema","fixedFields","$id"],zs.visitors.value),ei(["visitors","document","objects","JSONSchema","fixedFields","contains"],zs.visitors.JSONSchemaOrJSONReferenceVisitor),ei(["visitors","document","objects","JSONSchema","fixedFields","items"],ui),ei(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],zs.visitors.JSONSchemaOrJSONReferenceVisitor),ei(["visitors","document","objects","JSONSchema","fixedFields","const"],zs.visitors.value),ei(["visitors","document","objects","JSONSchema","fixedFields","examples"],li),ei(["visitors","document","objects","LinkDescription","$visitor"],hi),ei(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],zs.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","LinkDescription","fixedFields","schema"]),ei(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],zs.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","LinkDescription","fixedFields","method"]),ii(["visitors","document","objects","LinkDescription","fixedFields","encType"]),ei(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],zs.visitors.value))(zs),mi=e=>{if(ne(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},di={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wr},yi=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xs||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),vi=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zs||e(n)&&t("linkDescription",n)&&r("object",n))),gi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Xs),t.register("jSONReference",Fr),t.register("media",Dr),t.register("linkDescription",Zs),t}},bi=()=>{const e=nr(gi);return{predicates:{...s,isStringElement:se},namespace:e}},Si=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=pi}={})=>{const s=(0,o.e)(e),i=en(n),c=new(qe(t,i))({specObj:i});return kr(s,c),Pr(c.element,r,{toolboxCreator:bi,visitorOptions:{keyMap:di,nodeTypeGetter:mi}})},Ei=e=>(t,r={})=>Si(t,{specPath:e,...r});Xs.refract=Ei(["visitors","document","objects","JSONSchema","$visitor"]),Zs.refract=Ei(["visitors","document","objects","LinkDescription","$visitor"]);const ji=class extends Xs{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Pe('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Pe('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const xi=class extends Zs{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Pe("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Pe("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Pe("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Pe("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},Oi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",ji),t.register("jSONReference",Fr),t.register("linkDescription",xi),t}},wi=e=>{if(ne(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ki={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...wr},Ai={JSONSchemaDraft7Element:{additionalItems:(...e)=>new ji(...e),items:(...e)=>new ji(...e),contains:(...e)=>new ji(...e),required(...e){const t=new o.wE(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new ji(...e),patternProperties(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new ji(...e),enum(...e){const t=new o.wE(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-oneOf"),t},if:(...e)=>new ji(...e),then:(...e)=>new ji(...e),else:(...e)=>new ji(...e),not:(...e)=>new ji(...e),definitions(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new o.wE(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new o.wE(...e);return t.classes.push("json-schema-links"),t}},LinkDescriptionElement:{hrefSchema:(...e)=>new ji(...e),targetSchema:(...e)=>new ji(...e),submissionSchema:(...e)=>new ji(...e),templatePointers:(...e)=>new o.Sh(...e),templateRequired:(...e)=>new o.wE(...e),targetHints:(...e)=>new o.Sh(...e),headerSchema:(...e)=>new ji(...e)},"json-schema-properties":{"[key: *]":function(...e){return new ji(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new ji(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new ji(...e)}},"json-schema-allOf":{"<*>":function(...e){return new ji(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new ji(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new ji(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new ji(...e)}},"json-schema-links":{"<*>":function(...e){return new xi(...e)}}},Pi=(e,t)=>{const r=wi(e),n=Ai[r]||Ai[un(e.classes.first)];return void 0===n?void 0:Object.prototype.hasOwnProperty.call(n,"[key: *]")?n["[key: *]"]:n[t]},_i=()=>()=>({visitor:{StringElement(e,t,r,n,s){if(!(e=>se(e)&&Se(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,r].filter(ne),o=i[i.length-1];let c,a;return ue(o)?(a=e,c=Pi(o,"<*>")):le(o)&&(a=i[i.length-2],c=Pi(a,un(o.key))),"function"==typeof c?c.call({context:a},void 0,gr(e.meta),gr(e.attributes)):void 0}}});class Mi extends(In(zn,Gn,yn)){constructor(e){super(e),this.specPath=z(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}ObjectElement(e){return this.element=new ji,this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,zn.prototype.ObjectElement.call(this,e)}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleDialectIdentifier(e){return ci.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e,t="$id"){return ci.prototype.handleSchemaIdentifier.call(this,e,t)}}const Ni=Mi;class Ti extends(In(zn,yn)){constructor(e){super(e),this.element=new xi,this.specPath=z(["document","objects","LinkDescription"])}}const Ri=Ti,Fi=_t(ei(["visitors","document","objects","JSONSchema","$visitor"],Ni),ei(["visitors","document","objects","JSONSchema","fixedFields","$comment"],pi.visitors.value),ei(["visitors","document","objects","JSONSchema","fixedFields","if"],pi.visitors.JSONSchemaOrJSONReferenceVisitor),ei(["visitors","document","objects","JSONSchema","fixedFields","then"],pi.visitors.JSONSchemaOrJSONReferenceVisitor),ei(["visitors","document","objects","JSONSchema","fixedFields","else"],pi.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","JSONSchema","fixedFields","media"]),ei(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],pi.visitors.value),ei(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],pi.visitors.value),ei(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],pi.visitors.value),ei(["visitors","document","objects","LinkDescription","$visitor"],Ri),ei(["visitors","document","objects","LinkDescription","fixedFields","anchor"],pi.visitors.value),ei(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],pi.visitors.value),ii(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),ei(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],pi.visitors.value),ei(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],pi.visitors.value),ei(["visitors","document","objects","LinkDescription","fixedFields","description"],pi.visitors.value),ei(["visitors","document","objects","LinkDescription","fixedFields","$comment"],pi.visitors.value),ei(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],pi.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),ei(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],pi.visitors.value))(pi),Ii=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ji||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n))),Di=re((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xi||e(n)&&t("linkDescription",n)&&r("object",n))),$i=()=>{const e=nr(Oi);return{predicates:{...i,isStringElement:se},namespace:e}},Ji=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Fi}={})=>{const s=(0,o.e)(e),i=en(n),c=new(qe(t,i))({specObj:i});return kr(s,c),Pr(c.element,r,{toolboxCreator:$i,visitorOptions:{keyMap:ki,nodeTypeGetter:wi}})},Ci=e=>(t,r={})=>Ji(t,{specPath:e,...r}),Vi=Ji})(),n})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsJSONSchemaDraft7=t():e.apidomNsJSONSchemaDraft7=t()}(self,(()=>(()=>{var e={85:(e,t,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var c in n)i(s[c],c),o[c]=o.Array},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),c=r(2769),a=r(1926),u=r(3671),l=r(3491),f=r(1811),h=r(3999),p=r(3508),m=r(8655),d=r(6625),y=r(2621),v=o.PROPER,g=o.CONFIGURABLE,b=y.IteratorPrototype,S=y.BUGGY_SAFARI_ITERATORS,j=m("iterator"),E="keys",x="values",O="entries",w=function(){return this};e.exports=function(e,t,r,o,m,y,k){a(r,t,o);var P,A,_,M=function(e){if(e===m&&I)return I;if(!S&&e&&e in R)return R[e];switch(e){case E:case x:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",T=!1,R=e.prototype,F=R[j]||R["@@iterator"]||m&&R[m],I=!S&&F||M(m),$="Array"===t&&R.entries||F;if($&&(P=u($.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===b||(l?l(P,b):c(P[j])||p(P,j,w)),f(P,N,!0,!0),i&&(d[N]=w)),v&&m===x&&F&&F.name!==x&&(!i&&g?h(R,"name",x):(T=!0,I=function(){return s(F,this)})),m)if(A={values:M(x),keys:y?I:M(E),entries:M(O)},k)for(_ in A)(S||T||!(_ in R))&&p(R,_,A[_]);else n({target:t,proto:!0,forced:S||T},A);return i&&!k||R[j]===I||p(R,j,I,{name:m}),d[t]=I,A}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),c=r(2877),a=r(8130),u=r(4317),l=r(1613),f=r(967),h=r(1743),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,v,g,b,S,j,E,x=r&&r.that,O=!(!r||!r.AS_ENTRIES),w=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),A=n(t,x),_=function(e){return y&&h(y,"normal",e),new m(!0,e)},M=function(e){return O?(i(e),P?A(e[0],e[1],_):A(e[0],e[1])):P?A(e,_):A(e)};if(w)y=e.iterator;else if(k)y=e;else{if(!(v=f(e)))throw new p(o(e)+" is not iterable");if(c(v)){for(g=0,b=a(e);b>g;g++)if((S=M(e[g]))&&u(d,S))return S;return new m(!1)}y=l(e,v)}for(j=w?e.next:y.next;!(E=s(j,y)).done;){try{S=M(E.value)}catch(e){h(y,"throw",e)}if("object"==typeof S&&S&&u(d,S))return S}return new m(!1)}},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),c=r(8486),a=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,v){var g=a(e),b=a(t),S=g?h:c(e),j=b?h:c(t),E=(S=S==f?p:S)==p,x=(j=j==f?p:j)==p,O=S==j;if(O&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(O&&!E)return v||(v=new n),g||l(e)?s(e,t,r,d,y,v):i(e,t,S,r,d,y,v);if(!(1&r)){var w=E&&m.call(e,"__wrapped__"),k=x&&m.call(t,"__wrapped__");if(w||k){var P=w?e.value():e,A=k?t.value():t;return v||(v=new n),y(P,A,r,d,v)}}return!!O&&(v||(v=new n),o(e,t,r,d,y,v))}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),c=r(9632),a=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),f=!r&&!l&&o(e),h=!r&&!l&&!f&&a(e),p=r||l||f||h,m=p?n(e.length,String):[],d=m.length;for(var y in e)!t&&!u.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||m.push(y);return m}},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),c=r(9258),a=r(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),c=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var c=n(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&r!=r){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var f=l;f--;){var h=u[f];if(!(a?h in t:s.call(t,h)))return!1}var p=c.get(e),m=c.get(t);if(p&&m)return p==t&&m==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++f<l;){var v=e[h=u[f]],g=t[h];if(i)var b=a?i(g,v,h,t,e,c):i(v,g,h,e,t,c);if(!(void 0===b?v===g||o(v,g,r,i,c):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var S=e.constructor,j=t.constructor;S==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof j&&j instanceof j||(d=!1)}return c.delete(e),c.delete(t),d}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),c=r(7462),a=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),c=r(3964);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),c=r(967),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw new a(o(e)+" is not iterable")}},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),c=r(9559),a=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),c=r(6625),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),c=r(2769),a=r(262),u=r(5780),l=r(3671),f=r(3508),h=r(8655),p=r(4871),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!a(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:p&&(n=u(n)),c(n[m])||f(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),c=r(7464),a=r(5780),u=r(3999),l=r(480),f=r(8148),h=r(4279),p=r(208),m=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,g=function(e,t){var r,n=s(b,this);o?r=o(new y,n?i(this):b):(r=n?this:a(b),u(r,d,"Error")),void 0!==t&&u(r,"message",m(t)),h(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var c=[];return p(e,v,{that:c}),u(r,"errors",c),r};o?o(g,y):c(g,y,{name:!0});var b=g.prototype=a(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),c=r(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),c=r(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=-1,d=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var v=e[m],g=t[m];if(o)var b=u?o(g,v,m,t,e,a):o(v,g,m,e,t,a);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)}))){d=!1;break}}else if(v!==g&&!c(v,g,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),c=r(3273),a=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=c(e),t=a(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),c=r(5071);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(o(t)),h=s(r),p=f.length;return h<0||h>=p?e?"":void 0:(n=a(f,h))<55296||n>56319||h+1===p||(l=a(f,h+1))<56320||l>57343?e?c(f,h):n:e?u(f,h,h+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),c=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),c=r(7235),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),c=r(1580),a=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),c=r(5241),a=r(3489),u=r(9619),l=r(4275),f="prototype",h="script",p=l("IE_PROTO"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete v[f][o[s]];return v()};c[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[f]=s(e),r=new m,m[f]=null,r[p]=e):r=v(),void 0===t?r:i.f(r,t)}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),c=r(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),c=r(3491),a=r(7464),u=r(5516),l=r(3507),f=r(4879),h=r(8148),p=r(4279),m=r(5024),d=r(4871);e.exports=function(e,t,r,y){var v="stackTraceLimit",g=y?2:1,b=e.split("."),S=b[b.length-1],j=n.apply(null,b);if(j){var E=j.prototype;if(!d&&s(E,"cause")&&delete E.cause,!r)return j;var x=n("Error"),O=t((function(e,t){var r=f(y?t:e,void 0),n=y?new j(e):new j;return void 0!==r&&i(n,"message",r),p(n,O,n.stack,2),this&&o(E,this)&&l(n,this,O),arguments.length>g&&h(n,arguments[g]),n}));if(O.prototype=E,"Error"!==S?c?c(O,x):a(O,x,{name:!0}):m&&v in j&&(u(O,j,v),u(O,j,"prepareStackTrace")),a(O,j),!d)try{E.name!==S&&i(E,"name",S),E.constructor=O}catch(e){}return O}}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);e.exports=n.AggregateError},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),c=r(3273),a=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},7447:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),c=r(9989).f,a=r(164),u=r(877),l=r(4871),f=r(5024),h="Array Iterator",p=o.set,m=o.getterFor(h);e.exports=a(Array,"Array",(function(e,t){p(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var f=c[l];n(e,f)||r&&n(r,f)||a(e,f,u(t,f))}}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),c=r(2555),a=r(9796),u=r(7309),l=r(5642),f=r(9620),h=r(593),p=r(4123),m=r(3311),d=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=h,n.prototype.MemberElement=u,n.prototype.refract=y,p.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:h,refract:y,ArraySlice:p,ObjectSlice:m,KeyValuePair:d}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),c=r(9068);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),c=r(8900),a=r(262),u=r(3999),l=r(701),f=r(3753),h=r(4275),p=r(5241),m="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new d(m);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var g=h("state");p[g]=!0,n=function(e,t){if(l(e,g))throw new d(m);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),c=r(9270),a=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),v=u(i),g=u(o),b=u(c),S=a;(n&&S(new n(new ArrayBuffer(1)))!=m||s&&S(new s)!=l||i&&S(i.resolve())!=f||o&&S(new o)!=h||c&&S(new c)!=p)&&(S=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return m;case y:return l;case v:return f;case g:return h;case b:return p}return t}),e.exports=S},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,c=r(5241),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),c=r(4603),a=r(7460),u=n.Symbol,l=s("wks"),f=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),c=r(5894),a=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=c;case"[object Set]":var m=1&n;if(p||(p=a),e.size!=t.size&&!m)return!1;var d=h.get(e);if(d)return d==t;n|=2,h.set(e,t);var y=o(p(e),p(t),n,u,f,h);return h.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),c=r(4543).f,a=r(8696),u=r(8099),l=r(4572),f=r(3999),h=r(701);r(3753);var p=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,v,g,b,S,j=e.target,E=e.global,x=e.stat,O=e.proto,w=E?n:x?n[j]:n[j]&&n[j].prototype,k=E?u:u[j]||f(u,j,{})[j],P=k.prototype;for(d in t)s=!(r=a(E?d:j+(x?".":"#")+d,e.forced))&&w&&h(w,d),v=k[d],s&&(g=e.dontCallGetSet?(S=c(w,d))&&S.value:w[d]),y=s&&g?g:t[d],(r||O||typeof v!=typeof y)&&(b=e.bind&&s?l(y,n):e.wrap&&s?p(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(b,"sham",!0),f(k,d,b),O&&(h(u,m=j+"Prototype")||f(u,m,{}),f(u[m],d,y),e.real&&P&&(r||!P[d])&&f(P,d,y)))}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw new o("Can't convert object to primitive value")}},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?h:c).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),c=r(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AlternatingVisitor:()=>Ds,FallbackVisitor:()=>mn,FixedFieldsVisitor:()=>Bn,JSONReferenceElement:()=>Kr,JSONSchemaDraft7MediaTypes:()=>Ae,JSONSchemaElement:()=>vi,JSONSchemaVisitor:()=>xi,LinkDescriptionElement:()=>gi,LinkDescriptionVisitor:()=>Oi,MapVisitor:()=>rs,ParentSchemaAwareVisitor:()=>qn,PatternedFieldsVisitor:()=>ts,SpecificationVisitor:()=>Ln,Visitor:()=>pn,createRefractor:()=>Ni,default:()=>bi,getNodeType:()=>zs,isArrayElement:()=>ce,isBooleanElement:()=>ie,isElement:()=>te,isJSONReferenceElement:()=>Gn,isJSONReferenceLikeElement:()=>Yn,isJSONSchemaElement:()=>Pi,isLinkDescriptionElement:()=>Ai,isLinkElement:()=>ue,isMemberElement:()=>ae,isNullElement:()=>se,isNumberElement:()=>ne,isObjectElement:()=>oe,isRefElement:()=>le,isStringElement:()=>re,keyMap:()=>ki,mediaTypes:()=>_e,refract:()=>Ti,refractorPluginReplaceEmptyElement:()=>Ei,specificationObj:()=>wi});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>de,includesClasses:()=>ve,includesSymbols:()=>ye,isAnnotationElement:()=>fe,isArrayElement:()=>ce,isBooleanElement:()=>ie,isCommentElement:()=>he,isElement:()=>te,isLinkElement:()=>ue,isMemberElement:()=>ae,isNullElement:()=>se,isNumberElement:()=>ne,isObjectElement:()=>oe,isParseResultElement:()=>pe,isPrimitiveElement:()=>me,isRefElement:()=>le,isStringElement:()=>re});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Gn,isJSONSchemaElement:()=>zn,isLinkDescriptionElement:()=>Hn,isMediaElement:()=>Un});var s={};r.r(s),r.d(s,{isJSONReferenceElement:()=>Gn,isJSONSchemaElement:()=>fi,isLinkDescriptionElement:()=>hi,isMediaElement:()=>Un});var i={};r.r(i),r.d(i,{isJSONReferenceElement:()=>Gn,isJSONSchemaElement:()=>Pi,isLinkDescriptionElement:()=>Ai});var o=r(8326);function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(r){return 0===arguments.length||c(r)?t:e.apply(this,arguments)}}function u(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return c(r)?t:a((function(t){return e(r,t)}));default:return c(r)&&c(n)?t:c(r)?a((function(t){return e(t,n)})):c(n)?a((function(t){return e(r,t)})):e(r,n)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function f(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!l(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function h(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const p=function(){return this.xf["@@transducer/init"]()},m=function(e){return this.xf["@@transducer/result"](e)};var d=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=h(this.xf["@@transducer/step"](e,!1))),e},e}();function y(e){return function(t){return new d(e,t)}}const v=u(f(["all"],y,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function g(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,r){return function(){for(var n=[],s=0,i=e,o=0,a=!1;o<t.length||s<arguments.length;){var u;o<t.length&&(!c(t[o])||s>=arguments.length)?u=t[o]:(u=arguments[s],s+=1),n[o]=u,c(u)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):g(Math.max(0,i),b(e,n,r))}}const S=u((function(e,t){return 1===e?a(t):g(e,b(e,[],t))}));const j=a((function(e){return S(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));function E(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function x(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var k=Object.prototype.toString;const P=function(){return"[object Arguments]"===k.call(arguments)?function(e){return"[object Arguments]"===k.call(e)}:function(e){return O("callee",e)}}();var A=!{toString:null}.propertyIsEnumerable("toString"),_=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],M=function(){return arguments.propertyIsEnumerable("length")}(),N=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},T="function"!=typeof Object.keys||M?a((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=M&&P(e);for(t in e)!O(t,e)||s&&"length"===t||(n[n.length]=t);if(A)for(r=_.length-1;r>=0;)O(t=_[r],e)&&!N(n,t)&&(n[n.length]=t),r-=1;return n})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const R=T;const F=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function I(e,t,r,n){var s=E(e);function i(e,t){return $(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),E(t),s)}function $(e,t,r,n){if(w(e,t))return!0;var s,i,o=F(e);if(o!==F(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=R(e);if(a.length!==R(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var f=a[c];if(!O(f,t)||!$(t[f],e[f],u,l))return!1;c-=1}return!0}const D=u((function(e,t){return $(e,t,[],[])}));function C(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(D(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const V=j(u(C));class J extends o.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const L=J;class B extends o.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const q=B;const z=a((function(e){return function(){return e}}));const G=z(void 0);const U=D(G());class H extends o.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(U(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const K=H,W=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Y=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,X=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Z=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof o.wE)&&t.classes.includes(e),Q=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ee=e=>e({hasMethod:W,hasBasicElementProps:Y,primitiveEq:X,isElementType:Q,hasClass:Z}),te=ee((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.Hg||e(r)&&t(void 0,r))),re=ee((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.Om||e(r)&&t("string",r))),ne=ee((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.kT||e(r)&&t("number",r))),se=ee((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.Os||e(r)&&t("null",r))),ie=ee((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof o.bd||e(r)&&t("boolean",r))),oe=ee((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof o.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ce=ee((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof o.wE&&!(n instanceof o.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ae=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof o.Pr||e(n)&&t("member",n)&&r(void 0,n))),ue=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof o.Ft||e(n)&&t("link",n)&&r(void 0,n))),le=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof o.sI||e(n)&&t("ref",n)&&r(void 0,n))),fe=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof L||e(n)&&t("annotation",n)&&r("array",n))),he=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof q||e(n)&&t("comment",n)&&r("string",n))),pe=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof K||e(n)&&t("parseResult",n)&&r("array",n))),me=e=>Q("object",e)||Q("array",e)||Q("boolean",e)||Q("number",e)||Q("string",e)||Q("null",e)||Q("member",e),de=e=>!!te(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),ye=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ce(r)&&v(V(r.toValue()),e)},ve=(e,t)=>0===e.length||v(V(t.classes.toValue()),e);function ge(e){return"[object String]"===Object.prototype.toString.call(e)}function be(e,t){var r=e<0?t.length+e:e;return ge(t)?t.charAt(r):t[r]}const Se=a((function(e){return be(-1,e)}));var je=r(1212);const Ee=class extends je{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class xe extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Ee,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Oe=xe;const we=class extends Oe{};const ke=class extends we{};const Pe=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new ke("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ke("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ke("latest method in MediaTypes class is not yet implemented.")}};class Ae extends Pe{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-07",t="generic"){const r="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Se(this.filterByFormat(e))}}const _e=new Ae("application/schema;version=draft-07","application/schema+json;version=draft-07","application/schema+yaml;version=draft-07");function Me(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return c(r)?t:u((function(t,n){return e(r,t,n)}));case 2:return c(r)&&c(n)?t:c(r)?u((function(t,r){return e(t,n,r)})):c(n)?u((function(t,n){return e(r,t,n)})):a((function(t){return e(r,n,t)}));default:return c(r)&&c(n)&&c(s)?t:c(r)&&c(n)?u((function(t,r){return e(t,r,s)})):c(r)&&c(s)?u((function(t,r){return e(t,n,r)})):c(n)&&c(s)?u((function(t,n){return e(r,t,n)})):c(r)?a((function(t){return e(t,n,s)})):c(n)?a((function(t){return e(r,t,s)})):c(s)?a((function(t){return e(r,n,t)})):e(r,n,s)}}}function Ne(e){return"[object Object]"===Object.prototype.toString.call(e)}const Te=Me((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})O(n,t)&&(s[n]=O(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)O(n,r)&&!O(n,s)&&(s[n]=r[n]);return s}));const Re=Me((function e(t,r,n){return Te((function(r,n,s){return Ne(n)&&Ne(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Fe=u((function(e,t){return Re((function(e,t,r){return r}),e,t)}));const Ie=u((function(e,t){return null==t||t!=t?e:t})),$e=Number.isInteger||function(e){return(e|0)===e};const De=u((function(e,t){if(null!=t)return $e(e)?be(e,t):t[e]}));const Ce=Me((function(e,t,r){return Ie(e,De(t,r))}));function Ve(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=$e(s)?be(s,r):r[s]}return r}const Je=u(Ve);function Le(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return l(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Be=Me(Le("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const qe=Be(0,-1);const ze=u((function(e,t){return g(e.length,(function(){return e.apply(t,arguments)}))}));const Ge=u((function(e,t){return e.apply(this,t)}));function Ue(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const He=a((function(e){return!!l(e)||!!e&&("object"==typeof e&&(!ge(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ke="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function We(e,t,r){return function(n,s,i){if(He(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Ke])return r(n,s,i[Ke]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ye(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Xe(e,t,r,n){return r[n](e,t)}const Ze=We(Ue,Xe,Ye);function Qe(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}var et=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const tt=u(f(["fantasy-land/map","map"],(function(e){return function(t){return new et(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return S(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Ue((function(r,n){return r[n]=e(t[n]),r}),{},R(t));default:return Qe(e,t)}})));const rt=u((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:Ze((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,tt(r,t))}),[],e)}));const nt=u((function(e,t){var r=S(e,t);return S(e,(function(){return Ue(rt,tt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const st=a((function(e){return nt(e.length,e)}));const it=st(a((function(e){return!e})));function ot(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ct=function(e){return(e<10?"0":"")+e};const at="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ct(e.getUTCMonth()+1)+"-"+ct(e.getUTCDate())+"T"+ct(e.getUTCHours())+":"+ct(e.getUTCMinutes())+":"+ct(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var ut=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function lt(e){return function(t){return new ut(e,t)}}const ft=u(f(["fantasy-land/filter","filter"],lt,(function(e,t){return Ne(t)?Ue((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},R(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const ht=u((function(e,t){return ft((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function pt(e,t){var r=function(r){var n=t.concat([e]);return C(r,n)?"<Circular>":pt(r,n)},n=function(e,t){return Qe((function(t){return ot(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Qe(r,e).join(", ")+"))";case"[object Array]":return"["+Qe(r,e).concat(n(e,ht((function(e){return/^\d+$/.test(e)}),R(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):ot(at(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":ot(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,R(e)).join(", ")+"}"}}const mt=a((function(e){return pt(e,[])}));const dt=u((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=mt(e),o=r(i,mt(t));return void 0!==o&&o===i?e:t}));const yt=u((function(e,t){return tt(De(e),t)}));function vt(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function gt(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function bt(e,t,r,n){return e["@@transducer/result"](r[n](ze(e["@@transducer/step"],e),t))}const St=We(vt,bt,gt);var jt=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const Et=Me((function(e,t,r){return St("function"==typeof e?new jt(e):e,t,r)}));const xt=a((function(e){return S(Et(dt,0,yt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function Ot(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const wt=a(Le("tail",Be(1,1/0)));function kt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return g(arguments[0].length,Et(Ot,arguments[0],wt(arguments)))}var Pt=function(e,t){switch(arguments.length){case 0:return Pt;case 1:return function t(r){return 0===arguments.length?t:w(e,r)};default:return w(e,t)}};const At=Pt;const _t=S(1,kt(F,At("GeneratorFunction")));const Mt=S(1,kt(F,At("AsyncFunction")));const Nt=xt([kt(F,At("Function")),_t,Mt]);const Tt=it(Nt);function Rt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ft=u((function(e,t){return e&&t}));const It=u((function(e,t){return Rt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:st(Ft)(e,t)}));var $t=a((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():l(e)?[]:ge(e)?"":Ne(e)?{}:P(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Dt=$t;const Ct=a((function(e){return null!=e&&D(e,Dt(e))}));const Vt=S(1,Nt(Array.isArray)?Array.isArray:kt(F,At("Array")));const Jt=It(Vt,Ct);const Lt=S(3,(function(e,t,r){var n=Je(e,r),s=Je(qe(e),r);if(!Tt(n)&&!Jt(e)){var i=ze(n,s);return Ge(i,t)}}));const Bt=Me((function(e,t,r){return e(Ve(t,r))}));const qt=D(null);const zt=it(qt);function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}const Ut=function(e){return"object"===Gt(e)};const Ht=S(1,It(zt,Ut));var Kt=kt(F,At("Object")),Wt=kt(mt,D(mt(Object))),Yt=Bt(It(Nt,Wt),["constructor"]);const Xt=S(1,(function(e){if(!Ht(e)||!Kt(e))return!1;var t=Object.getPrototypeOf(e);return!!qt(t)||Yt(t)}));class Zt extends o.g${constructor(){super(),this.register("annotation",L),this.register("comment",q),this.register("parseResult",K)}}const Qt=new Zt,er=e=>{const t=new Zt;return Xt(e)&&t.use(e),t},tr=Qt,rr=()=>({predicates:{...e},namespace:tr});const nr=S(1,kt(F,At("String")));const sr=class extends Oe{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},ir=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},or={},cr=e=>null==e?void 0:e.type,ar=e=>"string"==typeof cr(e),ur=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),lr=(e,{visitFnGetter:t=ir,nodeTypeGetter:r=cr,breakSymbol:n=or,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,f,h,p,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,f,h,p,v);if("function"==typeof(null==t?void 0:t.then))throw new sr("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,h){let p=s;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(p),!0);if("function"==typeof c){const t=c.call(e[s],p,o,u,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new sr("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===p&&(a[s]=c)}}};lr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=ir,nodeTypeGetter:r=cr,breakSymbol:n=or,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,f,h,p,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,f,h,p,v);if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,h){let p=s;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(p),!0);if("function"==typeof c){const t=await c.call(e[s],p,o,u,l,f,m);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===p&&(a[s]=c)}}};const fr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=or,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=ir,nodeTypeGetter:a=cr,nodePredicate:u=ar,nodeCloneFn:l=ur,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=r||{};let m,d,y=Array.isArray(e),v=[e],g=-1,b=[],S=e;const j=[],E=[];do{g+=1;const e=g===v.length;let r;const w=e&&0!==b.length;if(e){if(r=0===E.length?void 0:j.pop(),S=d,d=E.pop(),w)if(y){S=S.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(S.splice(n,1),e+=1):S[n]=r}}else{S=l(S);for(const[e,t]of b)S[e]=t}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=y?g:v[g],S=d[r],S===i||void 0===S)continue;j.push(r)}let k;if(!Array.isArray(S)){var x;if(!u(S))throw new sr(`Invalid AST Node: ${String(S)}`,{node:S});if(f&&E.includes(S)){"function"==typeof h&&h(S,r,d,j,E),j.pop();continue}const i=c(t,a(S),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,S,r,d,j,E):d&&(d[r]=t),e||(S=t)}};k=i.call(t,S,r,d,j,E,s)}if("function"==typeof(null===(x=k)||void 0===x?void 0:x.then))throw new sr("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(k===s)break;if(k===o){if(!e){j.pop();continue}}else if(void 0!==k&&(b.push([r,k]),!e)){if(!u(k)){j.pop();continue}S=k}}var O;if(void 0===k&&w&&b.push([r,S]),!e)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(S),v=y?S:null!==(O=p[a(S)])&&void 0!==O?O:[],g=-1,b=[],d!==i&&void 0!==d&&E.push(d),d=S}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};fr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=or,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=ir,nodeTypeGetter:a=cr,nodePredicate:u=ar,nodeCloneFn:l=ur,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=r||{};let m,d,y=Array.isArray(e),v=[e],g=-1,b=[],S=e;const j=[],E=[];do{g+=1;const e=g===v.length;let r;const O=e&&0!==b.length;if(e){if(r=0===E.length?void 0:j.pop(),S=d,d=E.pop(),O)if(y){S=S.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(S.splice(n,1),e+=1):S[n]=r}}else{S=l(S);for(const[e,t]of b)S[e]=t}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=y?g:v[g],S=d[r],S===i||void 0===S)continue;j.push(r)}let w;if(!Array.isArray(S)){if(!u(S))throw new sr(`Invalid AST Node: ${String(S)}`,{node:S});if(f&&E.includes(S)){"function"==typeof h&&h(S,r,d,j,E),j.pop();continue}const i=c(t,a(S),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,S,r,d,j,E):d&&(d[r]=t),e||(S=t)}};w=await i.call(t,S,r,d,j,E,s)}if(w===s)break;if(w===o){if(!e){j.pop();continue}}else if(void 0!==w&&(b.push([r,w]),!e)){if(!u(w)){j.pop();continue}S=w}}var x;if(void 0===w&&O&&b.push([r,S]),!e)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(S),v=y?S:null!==(x=p[a(S)])&&void 0!==x?x:[],g=-1,b=[],d!==i&&void 0!==d&&E.push(d),d=S}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};const hr=class extends sr{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const pr=class extends hr{};const mr=class extends hr{};const dr=u((function(e,t){return Ue((function(r,n){return r[n]=e(t[n],n,t),r}),{},R(t))}));const yr=a((function(e){return null==e}));var vr=u((function(e,t){if(0===e.length||yr(t))return!1;for(var r=t,n=0;n<e.length;){if(yr(r)||!O(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const gr=vr;var br=u((function(e,t){return gr([e],t)}));const Sr=br;const jr=Me((function(e,t,r){return e(De(t,r))}));const Er=a((function(e){return S(e.length,e)}));const xr=u((function(e,t){return S(e+1,(function(){var r=arguments[e];if(null!=r&&Rt(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(mt(r)+' does not have a method named "'+t+'"')}))}));const Or=xr(1,"split");var wr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function kr(e){return function(t){return new wr(e,t)}}const Pr=u(f(["dropWhile"],kr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Be(r,1/0,t)})));const Ar=xr(1,"join");const _r=Er((function(e,t){return kt(Or(""),Pr(V(e)),Ar(""))(t)})),Mr=(e,t)=>{const r=Ie(e,t);return dr((e=>{if(Xt(e)&&Sr("$ref",e)&&jr(nr,"$ref",e)){const t=Je(["$ref"],e),n=_r("#/",t);return Je(n.split("/"),r)}return Xt(e)?Mr(e,r):e}),e)},Nr=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),Tr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof o.KeyValuePair){const{key:t,value:s}=e,i=te(t)?Tr(t,n):t,c=te(s)?Tr(s,n):s,a=new o.KeyValuePair(i,c);return r.set(e,a),a}if(e instanceof o.ot){const t=e=>Tr(e,n),s=[...e].map(t),i=new o.ot(s);return r.set(e,i),i}if(e instanceof o.G6){const t=e=>Tr(e,n),s=[...e].map(t),i=new o.G6(s);return r.set(e,i),i}if(te(e)){const t=Ir(e);if(r.set(e,t),e.content)if(te(e.content))t.content=Tr(e.content,n);else if(e.content instanceof o.KeyValuePair)t.content=Tr(e.content,n);else if(Array.isArray(e.content)){const r=e=>Tr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new pr("Value provided to cloneDeep function couldn't be cloned",{value:e})};Tr.safe=e=>{try{return Tr(e)}catch{return e}};const Rr=e=>{const{key:t,value:r}=e;return new o.KeyValuePair(t,r)},Fr=e=>{const t=new e.constructor;if(t.element=e.element,de(e)&&Nr(t,e),e.meta.length>0&&(t._meta=Tr(e.meta)),e.attributes.length>0&&(t._attributes=Tr(e.attributes)),te(e.content)){const r=e.content;t.content=Fr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof o.KeyValuePair?t.content=Rr(e.content):t.content=e.content;return t},Ir=e=>{if(e instanceof o.KeyValuePair)return Rr(e);if(e instanceof o.ot)return(e=>{const t=[...e];return new o.ot(t)})(e);if(e instanceof o.G6)return(e=>{const t=[...e];return new o.G6(t)})(e);if(te(e))return Fr(e);throw new mr("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ir.safe=e=>{try{return Ir(e)}catch{return e}};const $r=e=>oe(e)?"ObjectElement":ce(e)?"ArrayElement":ae(e)?"MemberElement":re(e)?"StringElement":ie(e)?"BooleanElement":ne(e)?"NumberElement":se(e)?"NullElement":ue(e)?"LinkElement":le(e)?"RefElement":void 0,Dr=e=>te(e)?Ir(e):ur(e),Cr=kt($r,nr),Vr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Jr=(e,t,{keyMap:r=Vr,...n}={})=>fr(e,t,{keyMap:r,nodeTypeGetter:$r,nodePredicate:Cr,nodeCloneFn:Dr,...n});Jr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Vr,...n}={})=>fr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:$r,nodePredicate:Cr,nodeCloneFn:Dr,...n});const Lr={toolboxCreator:rr,visitorOptions:{nodeTypeGetter:$r,exposeEdits:!0}},Br=(e,t,r={})=>{if(0===t.length)return e;const n=Fe(Lr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=lr(c.map(Ce({},"visitor")),{...i});c.forEach(Lt(["pre"],[]));const u=Jr(e,a,i);return c.forEach(Lt(["post"],[])),u};Br[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Fe(Lr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=lr[Symbol.for("nodejs.util.promisify.custom")],u=Jr[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(Ce({},"visitor")),{...i});await Promise.allSettled(c.map(Lt(["pre"],[])));const f=await u(e,l,i);return await Promise.allSettled(c.map(Lt(["post"],[]))),f};const qr=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return te(e)&&(e.meta.length>0&&(n.meta=Tr(e.meta)),e.attributes.length>0&&(n.attributes=Tr(e.attributes))),Br(n,r,{toolboxCreator:rr,visitorOptions:{nodeTypeGetter:$r}})},zr=e=>(t,r={})=>qr(t,{...r,Type:e});o.Sh.refract=zr(o.Sh),o.wE.refract=zr(o.wE),o.Om.refract=zr(o.Om),o.bd.refract=zr(o.bd),o.Os.refract=zr(o.Os),o.kT.refract=zr(o.kT),o.Ft.refract=zr(o.Ft),o.sI.refract=zr(o.sI),L.refract=zr(L),q.refract=zr(q),K.refract=zr(K);class Gr extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Ur=Gr;class Hr extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Kr=Hr;class Wr extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Yr=Wr;class Xr extends o.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Zr=Xr;const Qr=function(){return!0},en=e=>"string"==typeof(null==e?void 0:e.type)?e.type:$r(e),tn={EphemeralObject:["content"],EphemeralArray:["content"],...Vr},rn=(e,t,{keyMap:r=tn,...n}={})=>Jr(e,t,{keyMap:r,nodeTypeGetter:en,nodePredicate:Qr,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});rn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=tn,...r}={})=>Jr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:en,nodePredicate:Qr,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const nn=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const sn=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class on{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new sn(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new nn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return re(e.href)?e.href.toValue():""}}const cn=e=>te(e)?re(e)||ne(e)||ie(e)||se(e)?e.toValue():rn(e,new on):e,an=e=>{const t=e.meta.length>0?Tr(e.meta):void 0,r=e.attributes.length>0?Tr(e.attributes):void 0;return new e.constructor(void 0,t,r)},un=(e,t)=>t.clone&&t.isMergeableElement(e)?fn(an(e),e,t):e,ln={clone:!0,isMergeableElement:e=>oe(e)||ce(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>un(e,r))),objectElementMerge:(e,t,r)=>{const n=oe(e)?an(e):an(t);return oe(e)&&e.forEach(((e,t,s)=>{const i=Ir(s);i.value=un(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=cn(s);let c;if(oe(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=Ir(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return fn;const r=t.customMerge(e,t);return"function"==typeof r?r:fn})(s,r)(n,t,r)}else c=Ir(i),c.value=un(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},fn=(e,t,r)=>{var n,s,i;const o={...ln,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:ln.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:ln.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ln.objectElementMerge;const c=ce(t);if(!(c===ce(e)))return un(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Tr(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Tr(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};fn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new o.Sh:e.reduce(((e,r)=>fn(e,r,t)),an(e[0]))};const hn=fn;const pn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=hn(t.meta,e.meta)),de(e)&&Nr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=hn(t.attributes,e.attributes))}};const mn=class extends pn{enter(e){return this.element=Tr(e),or}},dn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},yn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:yn(r,[...t,r])},vn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>yn(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=yn(s);for(let t of e){let e=yn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(dn(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},gn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),bn=(e,t)=>{const r=t.map((e=>yn(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},Sn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(bn(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==bn(n,e)||void 0!==t[n],get:(r,n)=>(bn(n,e)||t)[n],set(t,r,n){const s=bn(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),jn=null,En="copy",xn="copy",On="deep",wn=new WeakMap,kn=e=>wn.get(e),Pn=(e,t)=>{var r,n;const s=gn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=gn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},An=(e,t)=>{var r,n,s,i;return{property:Pn(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Pn(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},_n=(e,t)=>{var r,n,s,i,o,c;return{class:gn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:An(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:An(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Mn=new Map,Nn=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...yn(e.prototype).map((e=>e.constructor)),...null!==(t=kn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Mn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>_n(e,t)))},Tn=e=>{let t=Mn.get(e);return t||(t={},Mn.set(e,t)),t};function Rn(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=jn;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};s.push(r)}function o(...t){for(const r of e)dn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===xn?vn(s,o):(c=s,a=o,Sn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===En?vn(e,null,["prototype"]):Sn(e,Function.prototype));let u=o;if("none"!==On){const s="deep"===On?Nn(...e):((...e)=>{const t=e.map((e=>Tn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>_n(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Fn(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),Fn(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,f;return l=u,f=e,wn.set(l,f),u}const Fn=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const In=a((function(e){return S(Et(dt,0,yt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const $n=a((function(e){return!Ct(e)}));const Dn=u((function(e,t){return e||t}));var Cn=it(S(1,It(zt,u((function(e,t){return Rt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:st(Dn)(e,t)}))(Ut,Nt))));const Vn=In([nr,Cn,$n]);const Jn=u((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Ln=class extends pn{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Je(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Bt(Nt,["visitors",...e],this.specObj)?Je(["visitors",...e],this.specObj):Je(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof mn&&(null==n?void 0:n.constructor)===mn?Tr(t):(Jr(t,n,r),n.element)}};const Bn=class extends Ln{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(re(n)&&r.includes(cn(n))&&!this.ignoredFields.includes(cn(n))){const r=this.toRefractedElement([...t,"fixedFields",cn(n)],e),i=new o.Pr(Tr(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(cn(n))||this.element.content.push(Tr(s))})),this.copyMetaAndAttributes(e,this.element),or}};const qn=class{parent;constructor({parent:e}){this.parent=e}},zn=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ur||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Gn=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kr||e(n)&&t("JSONReference",n)&&r("object",n))),Un=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yr||e(n)&&t("media",n)&&r("object",n))),Hn=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zr||e(n)&&t("linkDescription",n)&&r("object",n)));class Kn extends(Rn(Bn,qn,mn)){constructor(e){super(e),this.element=new Ur,this.specPath=z(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Bn.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(U(this.parent)&&!re(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(zn(this.parent)&&!re(e.get("$schema"))){const e=Ie(cn(this.parent.meta.get("inheritedDialectIdentifier")),cn(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Tr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new o.wE,n=cn(e.get(t));Vn(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Wn=Kn,Yn=e=>oe(e)&&e.hasKey("$ref");class Xn extends(Rn(Ln,qn,mn)){ObjectElement(e){const t=Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),or}ArrayElement(e){return this.element=new o.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),or}}const Zn=Xn;const Qn=class extends mn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const es=function(){return!1};const ts=class extends Ln{specPath;ignoredFields;fieldPatternPredicate=es;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(cn(t))&&this.fieldPatternPredicate(cn(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new o.Pr(Tr(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(cn(t))||this.element.content.push(Tr(r))})),this.copyMetaAndAttributes(e,this.element),or}};const rs=class extends ts{constructor(e){super(e),this.fieldPatternPredicate=Vn}};class ns extends(Rn(rs,qn,mn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ss=ns;class is extends(Rn(rs,qn,mn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const os=is;class cs extends(Rn(rs,qn,mn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const as=cs;const us=class extends mn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ls=class extends mn{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class fs extends(Rn(Ln,qn,mn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),or}}const hs=fs;class ps extends(Rn(Ln,qn,mn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),or}}const ms=ps;class ds extends(Rn(Ln,qn,mn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),or}}const ys=ds;class vs extends(Rn(rs,qn,mn)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Yn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const gs=vs;class bs extends(Rn(Ln,qn,mn)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),or}}const Ss=bs;class js extends(Rn(Bn,mn)){constructor(e){super(e),this.element=new Kr,this.specPath=z(["document","objects","JSONReference"])}ObjectElement(e){const t=Bn.prototype.ObjectElement.call(this,e);return re(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Es=js;const xs=class extends mn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Os=Me((function(e,t,r){return S(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const ws=a((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var ks=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ps=ks;const As=a((function(e){return be(0,e)}));const _s=a(h);const Ms=it(yr);const Ns=It(Vt,$n);function Ts(e){return function(e){if(Array.isArray(e))return Rs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Rs(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rs(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Fs=kt(Ps(ws((function(e,t){return e.length>t.length}))),As,De("length")),Is=Er((function(e,t,r){var n=r.apply(void 0,Ts(e));return Ms(n)?_s(n):t}));const $s=Os(Ns,(function(e){var t=Fs(e);return S(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Et(Is(r),void 0,e)}))}),G);const Ds=class extends Ln{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Os(e,z(t),G))),r=$s(t)(e);return this.element=this.toRefractedElement(r,e),or}};const Cs=class extends Ds{constructor(e){super(e),this.alternator=[{predicate:Yn,specPath:["document","objects","JSONReference"]},{predicate:Qr,specPath:["document","objects","JSONSchema"]}]}};class Vs extends(Rn(Bn,mn)){constructor(e){super(e),this.element=new Yr,this.specPath=z(["document","objects","Media"])}}const Js=Vs;class Ls extends(Rn(Bn,mn)){constructor(e){super(e),this.element=new Zr,this.specPath=z(["document","objects","LinkDescription"])}}const Bs=Ls,qs={visitors:{value:mn,JSONSchemaOrJSONReferenceVisitor:Cs,document:{objects:{JSONSchema:{$visitor:Wn,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Cs,items:Zn,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Qn,properties:ss,additionalProperties:Cs,patternProperties:os,dependencies:as,enum:us,type:ls,allOf:hs,anyOf:ms,oneOf:ys,not:Cs,definitions:gs,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Ss,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Es,fixedFields:{$ref:xs}},Media:{$visitor:Js,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Bs,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Cs,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Cs}}}}}},zs=e=>{if(te(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gs={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Vr},Us={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ur),t.register("jSONReference",Kr),t.register("media",Yr),t.register("linkDescription",Zr),t}},Hs=()=>{const e=er(Us);return{predicates:{...t,isStringElement:re},namespace:e}},Ks=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=qs}={})=>{const s=(0,o.e)(e),i=Mr(n),c=new(Je(t,i))({specObj:i});return Jr(s,c),Br(c.element,r,{toolboxCreator:Hs,visitorOptions:{keyMap:Gs,nodeTypeGetter:zs}})},Ws=e=>(t,r={})=>Ks(t,{specPath:e,...r});Ur.refract=Ws(["visitors","document","objects","JSONSchema","$visitor"]),Kr.refract=Ws(["visitors","document","objects","JSONReference","$visitor"]),Yr.refract=Ws(["visitors","document","objects","Media","$visitor"]),Zr.refract=Ws(["visitors","document","objects","LinkDescription","$visitor"]);const Ys=class extends Ur{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new we("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new we("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Xs=class extends Zr{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new we("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new we("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new we("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new we("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new we("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new we("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Zs=Me((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!yr(n)&&O(s,n)&&"object"==typeof n[s]?n[s]:$e(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if($e(e)&&l(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const Qs=Zs;const ei=Me((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));var ti=Me((function(e,t,r){return Qs([e],t,r)}));const ri=ti;var ni=u((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if($e(e)&&l(t))return ei(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if($e(e)&&l(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):ri(n,e(s,r[n]),r)}}));const si=ni;const ii=class extends Wn{constructor(e){super(e),this.element=new Ys}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const oi=class extends Zn{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),or}};const ci=class extends mn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const ai=class extends Bs{constructor(e){super(e),this.element=new Xs}},ui=kt(Qs(["visitors","document","objects","JSONSchema","$visitor"],ii),si(["visitors","document","objects","JSONSchema","fixedFields","id"]),Qs(["visitors","document","objects","JSONSchema","fixedFields","$id"],qs.visitors.value),Qs(["visitors","document","objects","JSONSchema","fixedFields","contains"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),Qs(["visitors","document","objects","JSONSchema","fixedFields","items"],oi),Qs(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),Qs(["visitors","document","objects","JSONSchema","fixedFields","const"],qs.visitors.value),Qs(["visitors","document","objects","JSONSchema","fixedFields","examples"],ci),Qs(["visitors","document","objects","LinkDescription","$visitor"],ai),Qs(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),si(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Qs(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),si(["visitors","document","objects","LinkDescription","fixedFields","method"]),si(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Qs(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],qs.visitors.value))(qs),li={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Vr},fi=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),hi=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xs||e(n)&&t("linkDescription",n)&&r("object",n))),pi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Ys),t.register("jSONReference",Kr),t.register("media",Yr),t.register("linkDescription",Xs),t}},mi=()=>{const e=er(pi);return{predicates:{...s,isStringElement:re},namespace:e}},di=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=ui}={})=>{const s=(0,o.e)(e),i=Mr(n),c=new(Je(t,i))({specObj:i});return Jr(s,c),Br(c.element,r,{toolboxCreator:mi,visitorOptions:{keyMap:li,nodeTypeGetter:zs}})},yi=e=>(t,r={})=>di(t,{specPath:e,...r});Ys.refract=yi(["visitors","document","objects","JSONSchema","$visitor"]),Xs.refract=yi(["visitors","document","objects","LinkDescription","$visitor"]);const vi=class extends Ys{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new we('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new we('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const gi=class extends Xs{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new we("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new we("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new we("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new we("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},bi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",vi),t.register("jSONReference",Kr),t.register("linkDescription",gi),t}},Si={JSONSchemaDraft7Element:{additionalItems:(...e)=>new vi(...e),items:(...e)=>new vi(...e),contains:(...e)=>new vi(...e),required(...e){const t=new o.wE(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new vi(...e),patternProperties(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new vi(...e),enum(...e){const t=new o.wE(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-oneOf"),t},if:(...e)=>new vi(...e),then:(...e)=>new vi(...e),else:(...e)=>new vi(...e),not:(...e)=>new vi(...e),definitions(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new o.wE(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new o.wE(...e);return t.classes.push("json-schema-links"),t}},LinkDescriptionElement:{hrefSchema:(...e)=>new vi(...e),targetSchema:(...e)=>new vi(...e),submissionSchema:(...e)=>new vi(...e),templatePointers:(...e)=>new o.Sh(...e),templateRequired:(...e)=>new o.wE(...e),targetHints:(...e)=>new o.Sh(...e),headerSchema:(...e)=>new vi(...e)},"json-schema-properties":{"[key: *]":function(...e){return new vi(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new vi(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new vi(...e)}},"json-schema-allOf":{"<*>":function(...e){return new vi(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new vi(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new vi(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new vi(...e)}},"json-schema-links":{"<*>":function(...e){return new gi(...e)}}},ji=(e,t)=>{const r=zs(e),n=Si[r]||Si[cn(e.classes.first)];return void 0===n?void 0:Object.prototype.hasOwnProperty.call(n,"[key: *]")?n["[key: *]"]:n[t]},Ei=()=>()=>({visitor:{StringElement(e,t,r,n,s){if(!(e=>re(e)&&ve(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,r].filter(te),o=i[i.length-1];let c,a;if(ce(o)?(a=e,c=ji(o,"<*>")):ae(o)&&(a=i[i.length-2],c=ji(a,cn(o.key))),"function"!=typeof c)return;const u=c.call({context:a},void 0,Tr(e.meta),Tr(e.attributes));return Nr(u,e)}}});const xi=class extends ii{constructor(e){super(e),this.element=new vi}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const Oi=class extends ai{constructor(e){super(e),this.element=new gi}},wi=kt(Qs(["visitors","document","objects","JSONSchema","$visitor"],xi),Qs(["visitors","document","objects","JSONSchema","fixedFields","$comment"],ui.visitors.value),Qs(["visitors","document","objects","JSONSchema","fixedFields","if"],ui.visitors.JSONSchemaOrJSONReferenceVisitor),Qs(["visitors","document","objects","JSONSchema","fixedFields","then"],ui.visitors.JSONSchemaOrJSONReferenceVisitor),Qs(["visitors","document","objects","JSONSchema","fixedFields","else"],ui.visitors.JSONSchemaOrJSONReferenceVisitor),si(["visitors","document","objects","JSONSchema","fixedFields","media"]),Qs(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],ui.visitors.value),Qs(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],ui.visitors.value),Qs(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],ui.visitors.value),Qs(["visitors","document","objects","LinkDescription","$visitor"],Oi),Qs(["visitors","document","objects","LinkDescription","fixedFields","anchor"],ui.visitors.value),Qs(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],ui.visitors.value),si(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Qs(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],ui.visitors.value),Qs(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],ui.visitors.value),Qs(["visitors","document","objects","LinkDescription","fixedFields","description"],ui.visitors.value),Qs(["visitors","document","objects","LinkDescription","fixedFields","$comment"],ui.visitors.value),Qs(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ui.visitors.JSONSchemaOrJSONReferenceVisitor),si(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Qs(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],ui.visitors.value))(ui),ki={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Vr},Pi=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vi||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n))),Ai=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gi||e(n)&&t("linkDescription",n)&&r("object",n))),_i=()=>{const e=er(bi);return{predicates:{...i,isStringElement:re},namespace:e}},Mi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=wi}={})=>{const s=(0,o.e)(e),i=Mr(n),c=new(Je(t,i))({specObj:i});return Jr(s,c),Br(c.element,r,{toolboxCreator:_i,visitorOptions:{keyMap:ki,nodeTypeGetter:zs}})},Ni=e=>(t,r={})=>Mi(t,{specPath:e,...r}),Ti=Mi})(),n})()));
|