@swagger-api/apidom-ns-api-design-systems 1.11.0 → 1.11.2
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 +8 -0
- package/dist/apidom-ns-api-design-systems.browser.js +10418 -14274
- package/dist/apidom-ns-api-design-systems.browser.min.js +4323 -1
- package/package.json +5 -5
|
@@ -1 +1,4323 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).apidomNsApiDesignSystems={})}(this,(function(e){"use strict";var t=function(){return!0};function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function r(e){return function t(r){return 0===arguments.length||n(r)?t:e.apply(this,arguments)}}function i(e){return function t(i,o){switch(arguments.length){case 0:return t;case 1:return n(i)?t:r((function(t){return e(i,t)}));default:return n(i)&&n(o)?t:n(i)?r((function(t){return e(t,o)})):n(o)?r((function(t){return e(i,t)})):e(i,o)}}}function o(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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,s){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,s,u){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,s,u,a){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,s,u,a,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,s,u,a,c,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 s(e,t,r){return function(){for(var i=[],u=0,a=e,c=0,l=!1;c<t.length||u<arguments.length;){var f;c<t.length&&(!n(t[c])||u>=arguments.length)?f=t[c]:(f=arguments[u],u+=1),i[c]=f,n(f)?l=!0:a-=1,c+=1}return!l&&a<=0?r.apply(this,i):o(Math.max(0,a),s(e,i,r))}}var u=i((function(e,t){return 1===e?r(t):o(e,s(e,[],t))}));function a(e){return function t(o,s,u){switch(arguments.length){case 0:return t;case 1:return n(o)?t:i((function(t,n){return e(o,t,n)}));case 2:return n(o)&&n(s)?t:n(o)?i((function(t,n){return e(t,s,n)})):n(s)?i((function(t,n){return e(o,t,n)})):r((function(t){return e(o,s,t)}));default:return n(o)&&n(s)&&n(u)?t:n(o)&&n(s)?i((function(t,n){return e(t,n,u)})):n(o)&&n(u)?i((function(t,n){return e(t,s,n)})):n(s)&&n(u)?i((function(t,n){return e(o,t,n)})):n(o)?r((function(t){return e(t,s,u)})):n(s)?r((function(t){return e(o,t,u)})):n(u)?r((function(t){return e(o,s,t)})):e(o,s,u)}}}const c=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function l(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!c(r)){for(var i=0;i<e.length;){if("function"==typeof r[e[i]])return r[e[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const f=function(){return this.xf["@@transducer/init"]()},h=function(e){return this.xf["@@transducer/result"](e)};var p=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=f,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){var n;return this.f(t)||(this.all=!1,e=(n=this.xf["@@transducer/step"](e,!1))&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}),e},e}();function m(e){return function(t){return new p(e,t)}}var y=i(l(["all"],m,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0})));function d(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function v(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function b(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const g="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var E=Object.prototype.toString,j=function(){return"[object Arguments]"===E.call(arguments)?function(e){return"[object Arguments]"===E.call(e)}:function(e){return b("callee",e)}}(),w=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=function(){return arguments.propertyIsEnumerable("length")}(),A=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},_="function"!=typeof Object.keys||S?r((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=S&&j(e);for(t in e)!b(t,e)||i&&"length"===t||(r[r.length]=t);if(w)for(n=O.length-1;n>=0;)b(t=O[n],e)&&!A(r,t)&&(r[r.length]=t),n-=1;return r})):r((function(e){return Object(e)!==e?[]:Object.keys(e)})),k=r((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function P(e,t,n,r){var i=d(e);function o(e,t){return M(e,t,n.slice(),r.slice())}return!v((function(e,t){return!v(o,t,e)}),d(t),i)}function M(e,t,n,r){if(g(e,t))return!0;var i,o,s=k(e);if(s!==k(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(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!g(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!g(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 u=n.length-1;u>=0;){if(n[u]===e)return r[u]===t;u-=1}switch(s){case"Map":return e.size===t.size&&P(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&P(e.values(),t.values(),n.concat([e]),r.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=_(e);if(a.length!==_(t).length)return!1;var c=n.concat([e]),l=r.concat([t]);for(u=a.length-1;u>=0;){var f=a[u];if(!b(f,t)||!M(t[f],e[f],c,l))return!1;u-=1}return!0}var x=i((function(e,t){return M(e,t,[],[])}));function T(e,t){return function(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(i=e[n])&&i!=i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(x(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function C(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function R(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 I=function(e){return(e<10?"0":"")+e},N="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+I(e.getUTCMonth()+1)+"-"+I(e.getUTCDate())+"T"+I(e.getUTCHours())+":"+I(e.getUTCMinutes())+":"+I(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function V(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}function F(e){return"[object Object]"===Object.prototype.toString.call(e)}var q=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function B(e){return function(t){return new q(e,t)}}var L=i(l(["fantasy-land/filter","filter"],B,(function(e,t){return F(t)?V((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},_(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)}))),z=i((function(e,t){return L((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function D(e,t){var n=function(n){var r=t.concat([e]);return T(n,r)?"<Circular>":D(n,r)},r=function(e,t){return C((function(t){return R(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+C(n,e).join(", ")+"))";case"[object Array]":return"["+C(n,e).concat(r(e,z((function(e){return/^\d+$/.test(e)}),_(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):R(N(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":R(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,_(e)).join(", ")+"}"}}var G=r((function(e){return D(e,[])})),U=i((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var i=n(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var o=G(e),s=n(o,G(t));return void 0!==s&&s===o?e:t})),K=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),$=i(l(["fantasy-land/map","map"],(function(e){return function(t){return new K(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return u(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return V((function(n,r){return n[r]=e(t[r]),n}),{},_(t));default:return C(e,t)}})));const W=Number.isInteger||function(e){return(e|0)===e};function H(e){return"[object String]"===Object.prototype.toString.call(e)}function Y(e,t){var n=e<0?t.length+e:e;return H(t)?t.charAt(n):t[n]}var J=i((function(e,t){if(null!=t)return W(e)?Y(e,t):t[e]})),X=i((function(e,t){return $(J(e),t)})),Z=r((function(e){return!!c(e)||!!e&&("object"==typeof e&&(!H(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),Q="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ee(e,t,n){return function(r,i,o){if(Z(o))return e(r,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return t(r,i,o,"fantasy-land/reduce");if(null!=o[Q])return n(r,i,o[Q]());if("function"==typeof o.next)return n(r,i,o);if("function"==typeof o.reduce)return t(r,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function te(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}var ne=i((function(e,t){return o(e.length,(function(){return e.apply(t,arguments)}))}));function re(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function ie(e,t,n,r){return e["@@transducer/result"](n[r](ne(e["@@transducer/step"],e),t))}var oe=ee(te,ie,re),se=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}();var ue=a((function(e,t,n){return oe("function"==typeof e?new se(e):e,t,n)})),ae=r((function(e){return function(){return e}})),ce=i((function(e,t){return e&&t})),le=r((function(e){return u(ue(U,0,X("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function fe(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function he(e,t,n,r){return n[r](e,t)}var pe=ee(V,he,fe),me=i((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(n){return e(n)(t(n))}:pe((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}(e,$(n,t))}),[],e)})),ye=i((function(e,t){return e.apply(this,t)}));var de=i((function(e,t){var n=u(e,t);return u(e,(function(){return V(me,$(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),ve=r((function(e){return de(e.length,e)})),be=i((function(e,t){return function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ve(ce)(e,t)})),ge=ve(r((function(e){return!e})));function Ee(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function je(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return c(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var we=a(je("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),Oe=r(je("tail",we(1,1/0)));function Se(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return o(arguments[0].length,ue(Ee,arguments[0],Oe(arguments)))}var Ae=i((function(e,t){return null==t||t!=t?e:t})),_e=r((function(e){return Y(-1,e)}));var ke=r((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():c(e)?[]:H(e)?"":F(e)?{}:j(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})),Pe=r((function(e){return u(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))})),Me=function(e,t){switch(arguments.length){case 0:return Me;case 1:return function t(n){return 0===arguments.length?t:g(e,n)};default:return g(e,t)}},xe=i(T),Te=we(0,-1),Ce=r((function(e){return null!=e&&x(e,ke(e))}));function Re(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var i=e[r];n=W(i)?Y(i,n):n[i]}return n}var Ie=a((function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})b(r,t)&&(i[r]=b(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)b(r,n)&&!b(r,i)&&(i[r]=n[r]);return i})),Ne=a((function e(t,n,r){return Ie((function(n,r,i){return F(r)&&F(i)?e(t,r,i):t(n,r,i)}),n,r)})),Ve=i((function(e,t){return Ne((function(e,t,n){return n}),e,t)})),Fe=i(Re),qe=a((function(e,t,n){return e(Re(t,n))})),Be=i((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),Le=a((function(e,t,n){return Ae(e,J(t,n))})),ze=ae(void 0),De=x(ze()),Ge=u(1,Se(k,Me("GeneratorFunction"))),Ue=u(1,Se(k,Me("AsyncFunction"))),Ke=le([Se(k,Me("Function")),Ge,Ue]),$e=be(u(1,Ke(Array.isArray)?Array.isArray:Se(k,Me("Array"))),Ce),We=u(1,Se(k,Me("String"))),He=ge(Ke),Ye=Pe(xe),Je=u(3,(function(e,t,n){var r=Fe(e,n),i=Fe(Te(e),n);if(!He(r)&&!$e(e)){var o=ne(r,i);return ye(o,t)}})),Xe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qe,et,tt,nt,rt,it,ot,st,ut,at,ct,lt,ft,ht,pt,mt,yt,dt,vt,bt,gt,Et,jt,wt,Ot,St,At,_t,kt,Pt,Mt,xt,Tt,Ct,Rt,It,Nt,Vt,Ft,qt,Bt,Lt,zt,Dt,Gt,Ut,Kt,$t,Wt,Ht,Yt,Jt,Xt,Zt,Qt,en,tn,nn,rn,on,sn,un,an,cn,ln,fn,hn,pn,mn,yn,dn,vn,bn,gn,En,jn,wn,On,Sn,An,_n,kn,Pn,Mn,xn,Tn,Cn,Rn,In,Nn,Vn,Fn,qn,Bn,Ln,zn,Dn,Gn,Un,Kn,$n,Wn,Hn,Yn,Jn,Xn,Zn,Qn,er,tr,nr,rr,ir,or,sr,ur,ar,cr,lr,fr,hr,pr,mr,yr,dr,vr,br,gr,Er,jr,wr,Or,Sr,Ar,_r,kr,Pr,Mr,xr={};function Tr(){if(nt)return tt;nt=1;var e="object"==typeof Xe&&Xe&&Xe.Object===Object&&Xe;return tt=e}function Cr(){if(it)return rt;it=1;var e=Tr(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return rt=n}function Rr(){if(st)return ot;st=1;var e=Cr().Symbol;return ot=e}function Ir(){if(ht)return ft;ht=1;var e=Rr(),t=function(){if(at)return ut;at=1;var e=Rr(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return ut=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var u=r.call(e);return s&&(t?e[i]=o:delete e[i]),u}}(),n=function(){if(lt)return ct;lt=1;var e=Object.prototype.toString;return ct=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return ft=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Nr(){if(mt)return pt;mt=1;var e=Array.isArray;return pt=e}function Vr(){if(dt)return yt;return dt=1,yt=function(e){return null!=e&&"object"==typeof e}}function Fr(){if(St)return Ot;return St=1,Ot=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ot}function qr(){if(_t)return At;_t=1;return At=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 n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}},At}function Br(){if(xt)return Mt;return xt=1,Mt=function(e,t){return e===t||e!=e&&t!=t}}function Lr(){if(Ct)return Tt;Ct=1;var e=Br();return Tt=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function zr(){if(Dt)return zt;Dt=1;var e=Pt?kt:(Pt=1,kt=function(){this.__data__=[],this.size=0}),t=function(){if(It)return Rt;It=1;var e=Lr(),t=Array.prototype.splice;return Rt=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(Vt)return Nt;Vt=1;var e=Lr();return Nt=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(qt)return Ft;qt=1;var e=Lr();return Ft=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(Lt)return Bt;Lt=1;var e=Lr();return Bt=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,zt=o}function Dr(){if(Zt)return Xt;Zt=1;var e=Ir(),t=Fr();return Xt=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function Gr(){if(nn)return tn;nn=1;var e=function(){if(en)return Qt;en=1;var e=Cr()["__core-js_shared__"];return Qt=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return tn=function(e){return!!t&&t in e}}function Ur(){if(on)return rn;on=1;var e=Function.prototype.toString;return rn=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function Kr(){if(fn)return ln;fn=1;var e=function(){if(un)return sn;un=1;var e=Dr(),t=Gr(),n=Fr(),r=Ur(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,a=s.hasOwnProperty,c=RegExp("^"+u.call(a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return sn=function(o){return!(!n(o)||t(o))&&(e(o)?c:i).test(r(o))}}(),t=cn?an:(cn=1,an=function(e,t){return null==e?void 0:e[t]});return ln=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function $r(){if(pn)return hn;pn=1;var e=Kr()(Cr(),"Map");return hn=e}function Wr(){if(yn)return mn;yn=1;var e=Kr()(Object,"create");return mn=e}function Hr(){if(kn)return _n;kn=1;var e=function(){if(vn)return dn;vn=1;var e=Wr();return dn=function(){this.__data__=e?e(null):{},this.size=0}}(),t=gn?bn:(gn=1,bn=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(jn)return En;jn=1;var e=Wr(),t=Object.prototype.hasOwnProperty;return En=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(On)return wn;On=1;var e=Wr(),t=Object.prototype.hasOwnProperty;return wn=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(An)return Sn;An=1;var e=Wr();return Sn=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,_n=o}function Yr(){if(Rn)return Cn;Rn=1;var e=(Tn||(Tn=1,xn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),xn);return Cn=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},Cn}function Jr(){if(Gn)return Dn;Gn=1;var e=function(){if(Mn)return Pn;Mn=1;var e=Hr(),t=zr(),n=$r();return Pn=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Nn)return In;Nn=1;var e=Yr();return In=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Fn)return Vn;Fn=1;var e=Yr();return Vn=function(t){return e(this,t).get(t)}}(),r=function(){if(Bn)return qn;Bn=1;var e=Yr();return qn=function(t){return e(this,t).has(t)}}(),i=function(){if(zn)return Ln;zn=1;var e=Yr();return Ln=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Dn=o}function Xr(){if(Wn)return $n;Wn=1;var e=zr(),t=function(){if(Ut)return Gt;Ut=1;var e=zr();return Gt=function(){this.__data__=new e,this.size=0}}(),n=$t?Kt:($t=1,Kt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Ht?Wt:(Ht=1,Wt=function(e){return this.__data__.get(e)}),i=Jt?Yt:(Jt=1,Yt=function(e){return this.__data__.has(e)}),o=function(){if(Kn)return Un;Kn=1;var e=zr(),t=$r(),n=Jr();return Un=function(r,i){var o=this.__data__;if(o instanceof e){var s=o.__data__;if(!t||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this}}();function s(t){var n=this.__data__=new e(t);this.size=n.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,$n=s}function Zr(){if(Qn)return Zn;Qn=1;var e=Jr(),t=Yn?Hn:(Yn=1,Hn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Xn?Jn:(Xn=1,Jn=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Zn=r}function Qr(){if(or)return ir;or=1;var e=Zr(),t=tr?er:(tr=1,er=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=rr?nr:(rr=1,nr=function(e,t){return e.has(t)});return ir=function(r,i,o,s,u,a){var c=1&o,l=r.length,f=i.length;if(l!=f&&!(c&&f>l))return!1;var h=a.get(r),p=a.get(i);if(h&&p)return h==i&&p==r;var m=-1,y=!0,d=2&o?new e:void 0;for(a.set(r,i),a.set(i,r);++m<l;){var v=r[m],b=i[m];if(s)var g=c?s(b,v,m,i,r,a):s(v,b,m,r,i,a);if(void 0!==g){if(g)continue;y=!1;break}if(d){if(!t(i,(function(e,t){if(!n(d,t)&&(v===e||u(v,e,o,s,a)))return d.push(t)}))){y=!1;break}}else if(v!==b&&!u(v,b,o,s,a)){y=!1;break}}return a.delete(r),a.delete(i),y}}function ei(){if(pr)return hr;pr=1;var e=Rr(),t=function(){if(ur)return sr;ur=1;var e=Cr().Uint8Array;return sr=e}(),n=Br(),r=Qr(),i=(cr||(cr=1,ar=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}),ar),o=fr?lr:(fr=1,lr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}),s=e?e.prototype:void 0,u=s?s.valueOf:void 0;return hr=function(e,s,a,c,l,f,h){switch(a){case"[object DataView]":if(e.byteLength!=s.byteLength||e.byteOffset!=s.byteOffset)return!1;e=e.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=s.byteLength||!f(new t(e),new t(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+s);case"[object Error]":return e.name==s.name&&e.message==s.message;case"[object RegExp]":case"[object String]":return e==s+"";case"[object Map]":var p=i;case"[object Set]":var m=1&c;if(p||(p=o),e.size!=s.size&&!m)return!1;var y=h.get(e);if(y)return y==s;c|=2,h.set(e,s);var d=r(p(e),p(s),c,l,f,h);return h.delete(e),d;case"[object Symbol]":if(u)return u.call(e)==u.call(s)}return!1}}function ti(){if(vr)return dr;vr=1;var e=yr?mr:(yr=1,mr=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}),t=Nr();return dr=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))}}function ni(){if(Or)return wr;Or=1;var e=gr?br:(gr=1,br=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}),t=jr?Er:(jr=1,Er=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return wr=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function ri(){if(Mr)return Pr;Mr=1;var e=function(){if(kr)return _r;kr=1;var e=Ir(),t=Vr();return _r=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=Vr(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return Pr=o}var ii,oi,si,ui,ai,ci,li,fi,hi,pi,mi,yi={exports:{}};function di(){return si||(si=1,function(e,t){var n=Cr(),r=oi?ii:(oi=1,ii=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||r;e.exports=u}(yi,yi.exports)),yi.exports}function vi(){if(li)return ci;li=1;return ci=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}var bi,gi,Ei,ji,wi,Oi,Si,Ai,_i,ki,Pi,Mi,xi,Ti,Ci,Ri,Ii,Ni,Vi,Fi,qi,Bi,Li,zi,Di,Gi,Ui,Ki,$i,Wi,Hi,Yi,Ji,Xi,Zi,Qi,eo,to,no,ro,io,oo,so,uo,ao,co,lo,fo,ho,po,mo,yo,vo,bo,go,Eo,jo,wo,Oo,So,Ao,_o,ko,Po,Mo,xo,To,Co,Ro,Io,No,Vo,Fo={exports:{}};function qo(){if(Ei)return gi;Ei=1;var e=function(){if(hi)return fi;hi=1;var e=Ir(),t=vi(),n=Vr(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,fi=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=mi?pi:(mi=1,pi=function(e){return function(t){return e(t)}}),n=(bi||(bi=1,function(e,t){var n=Tr(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(Fo,Fo.exports)),Fo.exports),r=n&&n.isTypedArray,i=r?t(r):e;return gi=i}function Bo(){if(wi)return ji;wi=1;var e=Ar?Sr:(Ar=1,Sr=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),t=ri(),n=Nr(),r=di(),i=function(){if(ai)return ui;ai=1;var e=/^(?:0|[1-9]\d*)$/;return ui=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n},ui}(),o=qo(),s=Object.prototype.hasOwnProperty;return ji=function(u,a){var c=n(u),l=!c&&t(u),f=!c&&!l&&r(u),h=!c&&!l&&!f&&o(u),p=c||l||f||h,m=p?e(u.length,String):[],y=m.length;for(var d in u)!a&&!s.call(u,d)||p&&("length"==d||f&&("offset"==d||"parent"==d)||h&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||i(d,y))||m.push(d);return m}}function Lo(){if(Pi)return ki;Pi=1;var e=(_i?Ai:(_i=1,Ai=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return ki=e}function zo(){if(xi)return Mi;xi=1;var e=function(){if(Si)return Oi;Si=1;var e=Object.prototype;return Oi=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}(),t=Lo(),n=Object.prototype.hasOwnProperty;return Mi=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}function Do(){if(Ii)return Ri;Ii=1;var e=Bo(),t=zo(),n=function(){if(Ci)return Ti;Ci=1;var e=Dr(),t=vi();return Ti=function(n){return null!=n&&t(n.length)&&!e(n)}}();return Ri=function(r){return n(r)?e(r):t(r)}}function Go(){if(qi)return Fi;qi=1;var e=function(){if(Vi)return Ni;Vi=1;var e=ti(),t=ni(),n=Do();return Ni=function(r){return e(r,n,t)}}(),t=Object.prototype.hasOwnProperty;return Fi=function(n,r,i,o,s,u){var a=1&i,c=e(n),l=c.length;if(l!=e(r).length&&!a)return!1;for(var f=l;f--;){var h=c[f];if(!(a?h in r:t.call(r,h)))return!1}var p=u.get(n),m=u.get(r);if(p&&m)return p==r&&m==n;var y=!0;u.set(n,r),u.set(r,n);for(var d=a;++f<l;){var v=n[h=c[f]],b=r[h];if(o)var g=a?o(b,v,h,r,n,u):o(v,b,h,n,r,u);if(!(void 0===g?v===b||s(v,b,i,o,u):g)){y=!1;break}d||(d="constructor"==h)}if(y&&!d){var E=n.constructor,j=r.constructor;E==j||!("constructor"in n)||!("constructor"in r)||"function"==typeof E&&E instanceof E&&"function"==typeof j&&j instanceof j||(y=!1)}return u.delete(n),u.delete(r),y}}function Uo(){if(Hi)return Wi;Hi=1;var e=function(){if(Li)return Bi;Li=1;var e=Kr()(Cr(),"DataView");return Bi=e}(),t=$r(),n=function(){if(Di)return zi;Di=1;var e=Kr()(Cr(),"Promise");return zi=e}(),r=function(){if(Ui)return Gi;Ui=1;var e=Kr()(Cr(),"Set");return Gi=e}(),i=function(){if($i)return Ki;$i=1;var e=Kr()(Cr(),"WeakMap");return Ki=e}(),o=Ir(),s=Ur(),u="[object Map]",a="[object Promise]",c="[object Set]",l="[object WeakMap]",f="[object DataView]",h=s(e),p=s(t),m=s(n),y=s(r),d=s(i),v=o;return(e&&v(new e(new ArrayBuffer(1)))!=f||t&&v(new t)!=u||n&&v(n.resolve())!=a||r&&v(new r)!=c||i&&v(new i)!=l)&&(v=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return f;case p:return u;case m:return a;case y:return c;case d:return l}return t}),Wi=v}function Ko(){if(Zi)return Xi;Zi=1;var e=function(){if(Ji)return Yi;Ji=1;var e=Xr(),t=Qr(),n=ei(),r=Go(),i=Uo(),o=Nr(),s=di(),u=qo(),a="[object Arguments]",c="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return Yi=function(h,p,m,y,d,v){var b=o(h),g=o(p),E=b?c:i(h),j=g?c:i(p),w=(E=E==a?l:E)==l,O=(j=j==a?l:j)==l,S=E==j;if(S&&s(h)){if(!s(p))return!1;b=!0,w=!1}if(S&&!w)return v||(v=new e),b||u(h)?t(h,p,m,y,d,v):n(h,p,E,m,y,d,v);if(!(1&m)){var A=w&&f.call(h,"__wrapped__"),_=O&&f.call(p,"__wrapped__");if(A||_){var k=A?h.value():h,P=_?p.value():p;return v||(v=new e),d(k,P,m,y,v)}}return!!S&&(v||(v=new e),r(h,p,m,y,d,v))}}(),t=Vr();return Xi=function n(r,i,o,s,u){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,s,n,u))},Xi}function $o(){if(no)return to;no=1;class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}return to=e}function Wo(){if(io)return ro;io=1;return ro=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)}},ro}function Ho(){if(so)return oo;so=1;const e=Wo();function t(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class n{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 n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(e,r){return e=t(e),new n(this.elements.filter(e,r))}reject(r,i){return r=t(r),new n(this.elements.filter(e(r),i))}find(e,n){return e=t(e),this.elements.find(e,n)}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]}}return"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),oo=n}function Yo(){if(ao)return uo;ao=1;const e=function(){if(eo)return Qi;eo=1;var e=Ko();return Qi=function(t,n){return e(t,n)}}(),t=$o(),n=Ho();class r{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),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 r?this.content.toValue():this.content instanceof t?{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 r=e.pop();let i=new n;const o=(e,t)=>(e.push(t),e),s=(e,n)=>{n.element===r&&e.push(n);const i=n.findRecursive(r);return i&&i.reduce(o,e),n.content instanceof t&&(n.content.key&&s(e,n.content.key),n.content.value&&s(e,n.content.value)),e};return this.content&&(this.content.element&&s(i,this.content),Array.isArray(this.content)&&this.content.reduce(s,i)),e.isEmpty||(i=i.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],i=n.indexOf(r);if(-1===i)return!1;n=n.splice(0,i)}return!0}))),i}set(e){return this.content=e,this}equals(t){return e(this.toValue(),t)}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 r)this._content=e;else if(e instanceof n)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 t)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 n;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new n(this.content);if(this.content instanceof t){const e=new n([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof r?new n([this.content]):new n}get recursiveChildren(){const e=new n;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}return uo=r}function Jo(){if(go)return bo;go=1;const e=Wo(),t=Yo(),n=Ho();class r extends t{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(e,t){return new n(this.content.filter(e,t))}reject(t,n){return this.filter(e(t),n)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}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 n=t||{},r=!!n.recursive,i=void 0===n.results?[]:n.results;return this.forEach(((t,n,o)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:i,recursive:r}),e(t,n,o)&&i.push(t)})),i}find(e){return new n(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)}}return r.empty=function(){return new this},r["fantasy-land/empty"]=r.empty,"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),bo=r}function Xo(){if(jo)return Eo;jo=1;const e=$o(),t=Yo();return Eo=class extends t{constructor(t,n,r,i){super(new e,r,i),this.element="member",this.key=t,this.value=n}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)}}}function Zo(){if(Oo)return wo;Oo=1;const e=Wo(),t=Ho();class n extends t{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new n(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(t,n){return this.filter(e(t.bind(n)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}return wo=n}function Qo(){if(To)return xo;To=1;const e=Yo(),t=function(){if(lo)return co;lo=1;const e=Yo();return co=class extends e{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}(),n=function(){if(ho)return fo;ho=1;const e=Yo();return fo=class extends e{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}(),r=function(){if(mo)return po;mo=1;const e=Yo();return po=class extends e{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}}(),i=function(){if(vo)return yo;vo=1;const e=Yo();return yo=class extends e{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}}(),o=Jo(),s=Xo(),u=function(){if(Ao)return So;Ao=1;const e=Wo(),t=Fr(),n=Jo(),r=Xo(),i=Zo();return So=class extends n{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,n){if(t(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const i=e,o=this.getMember(i);return o?o.value=n:this.content.push(new r(i,n)),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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,i,o)=>{const s=e.bind(t)(r,i,o);s&&n.push(s)})),n}filter(e,t){return new i(this.content).filter(e,t)}reject(t,n){return this.filter(e(t),n)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}}(),a=function(){if(ko)return _o;ko=1;const e=Yo();return _o=class extends e{constructor(e,t,n){super(e||[],t,n),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)}}}(),c=function(){if(Mo)return Po;Mo=1;const e=Yo();return Po=class extends e{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}}(),l=Ho(),f=Zo(),h=$o();function p(s){if(s instanceof e)return s;if("string"==typeof s)return new n(s);if("number"==typeof s)return new r(s);if("boolean"==typeof s)return new i(s);if(null===s)return new t;if(Array.isArray(s))return new o(s.map(p));if("object"==typeof s){return new u(s)}return s}return e.prototype.ObjectElement=u,e.prototype.RefElement=c,e.prototype.MemberElement=s,e.prototype.refract=p,l.prototype.refract=p,xo={Element:e,NullElement:t,StringElement:n,NumberElement:r,BooleanElement:i,ArrayElement:o,MemberElement:s,ObjectElement:u,LinkElement:a,RefElement:c,refract:p,ArraySlice:l,ObjectSlice:f,KeyValuePair:h}}function es(){if(Ro)return Co;Ro=1;const e=et?Qe:(et=1,Qe=function(e){return null===e}),t=function(){if(bt)return vt;bt=1;var e=Ir(),t=Nr(),n=Vr();return vt=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),n=function(){if(Et)return gt;Et=1;var e=Ir(),t=Vr();return gt=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}(),r=function(){if(wt)return jt;wt=1;var e=Ir(),t=Vr();return jt=function(n){return!0===n||!1===n||t(n)&&"[object Boolean]"==e(n)}}(),i=Fr(),o=qr(),s=Qo();class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=s.Element,this.KeyValuePair=s.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",s.NullElement).register("string",s.StringElement).register("number",s.NumberElement).register("boolean",s.BooleanElement).register("array",s.ArrayElement).register("object",s.ObjectElement).register("member",s.MemberElement).register("ref",s.RefElement).register("link",s.LinkElement),this.detect(e,s.NullElement,!1).detect(t,s.StringElement,!1).detect(n,s.NumberElement,!1).detect(r,s.BooleanElement,!1).detect(Array.isArray,s.ArrayElement,!1).detect(i,s.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,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(e)){t=new i(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 o(this)}}return o.prototype.Namespace=u,Co=u}var ts=function(){if(Vo)return xr;Vo=1;const e=es(),t=Qo();return xr.Namespace=e,xr.namespace=function(t){return new e(t)},xr.KeyValuePair=$o(),xr.ArraySlice=t.ArraySlice,xr.ObjectSlice=t.ObjectSlice,xr.Element=t.Element,xr.StringElement=t.StringElement,xr.NumberElement=t.NumberElement,xr.BooleanElement=t.BooleanElement,xr.NullElement=t.NullElement,xr.ArrayElement=t.ArrayElement,xr.ObjectElement=t.ObjectElement,xr.MemberElement=t.MemberElement,xr.RefElement=t.RefElement,xr.LinkElement=t.LinkElement,xr.refract=t.refract,xr.JSONSerialiser=qr(),xr.JSON06Serialiser=function(){if(No)return Io;No=1;const e=qr();return Io=class extends e{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 n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let i=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),i.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&i.unshift(e.content),i=i.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),i.length&&t.set("samples",i),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),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const i=new t(r);i.element=n.element,e.push(i)}))}));const i=e.shift();n.content=i?i.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}}(),xr}();class ns extends ts.StringElement{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class rs extends ts.StringElement{constructor(e,t,n){super(e,t,n),this.element="comment"}}class is extends ts.ArrayElement{constructor(e,t,n){super(e,t,n),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(De(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const os=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],ss=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,us=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),as=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ts.ArrayElement)&&t.classes.includes(e),cs=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ls=e=>e({hasMethod:os,hasBasicElementProps:ss,primitiveEq:us,isElementType:cs,hasClass:as}),fs=ls((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ts.Element||e(n)&&t(void 0,n))),hs=ls((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ts.StringElement||e(n)&&t("string",n))),ps=ls((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ts.NumberElement||e(n)&&t("number",n))),ms=ls((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ts.NullElement||e(n)&&t("null",n))),ys=ls((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ts.BooleanElement||e(n)&&t("boolean",n))),ds=ls((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ts.ObjectElement||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),vs=ls((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ts.ArrayElement&&!(r instanceof ts.ObjectElement)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),bs=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ts.MemberElement||e(r)&&t("member",r)&&n(void 0,r))),gs=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ts.LinkElement||e(r)&&t("link",r)&&n(void 0,r))),Es=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ts.RefElement||e(r)&&t("ref",r)&&n(void 0,r))),js=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ns||e(r)&&t("annotation",r)&&n("array",r))),ws=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rs||e(r)&&t("comment",r)&&n("string",r))),Os=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof is||e(r)&&t("parseResult",r)&&n("array",r))),Ss=e=>!!fs(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)),As=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Ss,includesClasses:(e,t)=>0===e.length||y(Ye(t.classes.toValue()),e),includesSymbols:(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!vs(n)&&y(Ye(n.toValue()),e)},isAnnotationElement:js,isArrayElement:vs,isBooleanElement:ys,isCommentElement:ws,isElement:fs,isLinkElement:gs,isMemberElement:bs,isNullElement:ms,isNumberElement:ps,isObjectElement:ds,isParseResultElement:Os,isPrimitiveElement:e=>cs("object",e)||cs("array",e)||cs("boolean",e)||cs("number",e)||cs("string",e)||cs("null",e)||cs("member",e),isRefElement:Es,isStringElement:hs},Symbol.toStringTag,{value:"Module"}));class _s extends ts.Namespace{constructor(){super(),this.register("annotation",ns),this.register("comment",rs),this.register("parseResult",is)}}const ks=new _s,Ps=()=>({predicates:{...As},namespace:ks});var Ms,xs,Ts,Cs,Rs,Is,Ns,Vs,Fs,qs,Bs,Ls,zs,Ds,Gs,Us,Ks={},$s={},Ws={};function Hs(){if(xs)return Ms;xs=1;var e=function(e){return e&&e.Math===Math&&e};return Ms=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Xe&&Xe)||e("object"==typeof Ms&&Ms)||function(){return this}()||Function("return this")()}function Ys(){return Cs?Ts:(Cs=1,Ts=function(e){try{return!!e()}catch(e){return!0}})}function Js(){return Is?Rs:(Is=1,Rs=!Ys()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})))}function Xs(){if(Vs)return Ns;Vs=1;var e=Js(),t=Function.prototype,n=t.apply,r=t.call;return Ns="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),Ns}function Zs(){if(qs)return Fs;qs=1;var e=Js(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Fs=e?r:function(e){return function(){return n.apply(e,arguments)}},Fs}function Qs(){if(Ls)return Bs;Ls=1;var e=Zs(),t=e({}.toString),n=e("".slice);return Bs=function(e){return n(t(e),8,-1)}}function eu(){if(Ds)return zs;Ds=1;var e=Qs(),t=Zs();return zs=function(n){if("Function"===e(n))return t(n)}}function tu(){if(Us)return Gs;Us=1;var e="object"==typeof document&&document.all;return Gs=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var nu,ru,iu,ou,su={};function uu(){return ru?nu:(ru=1,nu=!Ys()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function au(){if(ou)return iu;ou=1;var e=Js(),t=Function.prototype.call;return iu=e?t.bind(t):function(){return t.apply(t,arguments)},iu}var cu,lu,fu,hu,pu,mu,yu,du,vu,bu,gu,Eu,ju,wu,Ou,Su,Au,_u,ku,Pu,Mu,xu,Tu,Cu,Ru,Iu,Nu,Vu,Fu,qu,Bu,Lu,zu,Du,Gu,Uu,Ku,$u={};function Wu(){if(cu)return $u;cu=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return $u.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,$u}function Hu(){return fu?lu:(fu=1,lu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Yu(){if(pu)return hu;pu=1;var e=Zs(),t=Ys(),n=Qs(),r=Object,i=e("".split);return hu=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function Ju(){return yu?mu:(yu=1,mu=function(e){return null==e})}function Xu(){if(vu)return du;vu=1;var e=Ju(),t=TypeError;return du=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function Zu(){if(gu)return bu;gu=1;var e=Yu(),t=Xu();return bu=function(n){return e(t(n))}}function Qu(){if(ju)return Eu;ju=1;var e=tu();return Eu=function(t){return"object"==typeof t?null!==t:e(t)}}function ea(){return Ou?wu:(Ou=1,wu={})}function ta(){if(Au)return Su;Au=1;var e=ea(),t=Hs(),n=tu(),r=function(e){return n(e)?e:void 0};return Su=function(n,i){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][i]||t[n]&&t[n][i]},Su}function na(){return ku?_u:(ku=1,_u=Zs()({}.isPrototypeOf))}function ra(){if(Mu)return Pu;Mu=1;var e=Hs().navigator,t=e&&e.userAgent;return Pu=t?String(t):""}function ia(){if(Tu)return xu;Tu=1;var e,t,n=Hs(),r=ra(),i=n.process,o=n.Deno,s=i&&i.versions||o&&o.version,u=s&&s.v8;return u&&(t=(e=u.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),xu=t}function oa(){if(Ru)return Cu;Ru=1;var e=ia(),t=Ys(),n=Hs().String;return Cu=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function sa(){return Nu?Iu:(Nu=1,Iu=oa()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function ua(){if(Fu)return Vu;Fu=1;var e=ta(),t=tu(),n=na(),r=Object;return Vu=sa()?function(e){return"symbol"==typeof e}:function(i){var o=e("Symbol");return t(o)&&n(o.prototype,r(i))}}function aa(){if(Bu)return qu;Bu=1;var e=String;return qu=function(t){try{return e(t)}catch(e){return"Object"}}}function ca(){if(zu)return Lu;zu=1;var e=tu(),t=aa(),n=TypeError;return Lu=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function la(){if(Gu)return Du;Gu=1;var e=ca(),t=Ju();return Du=function(n,r){var i=n[r];return t(i)?void 0:e(i)}}function fa(){if(Ku)return Uu;Ku=1;var e=au(),t=tu(),n=Qu(),r=TypeError;return Uu=function(i,o){var s,u;if("string"===o&&t(s=i.toString)&&!n(u=e(s,i)))return u;if(t(s=i.valueOf)&&!n(u=e(s,i)))return u;if("string"!==o&&t(s=i.toString)&&!n(u=e(s,i)))return u;throw new r("Can't convert object to primitive value")}}var ha,pa,ma,ya,da,va,ba,ga,Ea,ja,wa,Oa,Sa,Aa,_a,ka,Pa,Ma,xa,Ta,Ca,Ra,Ia,Na,Va,Fa,qa,Ba,La={exports:{}};function za(){return pa?ha:(pa=1,ha=!0)}function Da(){if(ya)return ma;ya=1;var e=Hs(),t=Object.defineProperty;return ma=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function Ga(){if(da)return La.exports;da=1;var e=za(),t=Hs(),n=Da(),r="__core-js_shared__",i=La.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:e?"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"}),La.exports}function Ua(){if(ba)return va;ba=1;var e=Ga();return va=function(t,n){return e[t]||(e[t]=n||{})}}function Ka(){if(Ea)return ga;Ea=1;var e=Xu(),t=Object;return ga=function(n){return t(e(n))}}function $a(){if(wa)return ja;wa=1;var e=Zs(),t=Ka(),n=e({}.hasOwnProperty);return ja=Object.hasOwn||function(e,r){return n(t(e),r)}}function Wa(){if(Sa)return Oa;Sa=1;var e=Zs(),t=0,n=Math.random(),r=e(1..toString);return Oa=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Ha(){if(_a)return Aa;_a=1;var e=Hs(),t=Ua(),n=$a(),r=Wa(),i=oa(),o=sa(),s=e.Symbol,u=t("wks"),a=o?s.for||s:s&&s.withoutSetter||r;return Aa=function(e){return n(u,e)||(u[e]=i&&n(s,e)?s[e]:a("Symbol."+e)),u[e]}}function Ya(){if(Pa)return ka;Pa=1;var e=au(),t=Qu(),n=ua(),r=la(),i=fa(),o=TypeError,s=Ha()("toPrimitive");return ka=function(u,a){if(!t(u)||n(u))return u;var c,l=r(u,s);if(l){if(void 0===a&&(a="default"),c=e(l,u,a),!t(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(u,a)}}function Ja(){if(xa)return Ma;xa=1;var e=Ya(),t=ua();return Ma=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Xa(){if(Ca)return Ta;Ca=1;var e=Hs(),t=Qu(),n=e.document,r=t(n)&&t(n.createElement);return Ta=function(e){return r?n.createElement(e):{}}}function Za(){if(Ia)return Ra;Ia=1;var e=uu(),t=Ys(),n=Xa();return Ra=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Qa(){if(Na)return su;Na=1;var e=uu(),t=au(),n=Wu(),r=Hu(),i=Zu(),o=Ja(),s=$a(),u=Za(),a=Object.getOwnPropertyDescriptor;return su.f=e?a:function(e,c){if(e=i(e),c=o(c),u)try{return a(e,c)}catch(e){}if(s(e,c))return r(!t(n.f,e,c),e[c])},su}function ec(){if(Fa)return Va;Fa=1;var e=Ys(),t=tu(),n=/#|\.prototype\./,r=function(n,r){var a=o[i(n)];return a===u||a!==s&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",u=r.POLYFILL="P";return Va=r}function tc(){if(Ba)return qa;Ba=1;var e=eu(),t=ca(),n=Js(),r=e(e.bind);return qa=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},qa}var nc,rc,ic,oc,sc,uc,ac,cc,lc,fc,hc,pc,mc,yc,dc,vc,bc,gc,Ec,jc,wc,Oc,Sc,Ac={};function _c(){return rc?nc:(rc=1,nc=uu()&&Ys()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function kc(){if(oc)return ic;oc=1;var e=Qu(),t=String,n=TypeError;return ic=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function Pc(){if(sc)return Ac;sc=1;var e=uu(),t=Za(),n=_c(),r=kc(),i=Ja(),o=TypeError,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",l="writable";return Ac.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var o=u(e,t);o&&o[l]&&(e[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return s(e,t,n)}:s:function(e,n,u){if(r(e),n=i(n),r(u),t)try{return s(e,n,u)}catch(e){}if("get"in u||"set"in u)throw new o("Accessors not supported");return"value"in u&&(e[n]=u.value),e},Ac}function Mc(){if(ac)return uc;ac=1;var e=uu(),t=Pc(),n=Hu();return uc=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}function xc(){if(lc)return cc;lc=1;var e=Hs(),t=Xs(),n=eu(),r=tu(),i=Qa().f,o=ec(),s=ea(),u=tc(),a=Mc(),c=$a(),l=function(e){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,i)}return new e(r,i,o)}return t(e,this,arguments)};return n.prototype=e.prototype,n};return cc=function(t,f){var h,p,m,y,d,v,b,g,E,j=t.target,w=t.global,O=t.stat,S=t.proto,A=w?e:O?e[j]:e[j]&&e[j].prototype,_=w?s:s[j]||a(s,j,{})[j],k=_.prototype;for(y in f)p=!(h=o(w?y:j+(O?".":"#")+y,t.forced))&&A&&c(A,y),v=_[y],p&&(b=t.dontCallGetSet?(E=i(A,y))&&E.value:A[y]),d=p&&b?b:f[y],(h||S||typeof v!=typeof d)&&(g=t.bind&&p?u(d,e):t.wrap&&p?l(d):S&&r(d)?n(d):d,(t.sham||d&&d.sham||v&&v.sham)&&a(g,"sham",!0),a(_,y,g),S&&(c(s,m=j+"Prototype")||a(s,m,{}),a(s[m],y,d),t.real&&k&&(h||!k[y])&&a(k,y,d)))}}function Tc(){if(hc)return fc;hc=1;var e=Ua(),t=Wa(),n=e("keys");return fc=function(e){return n[e]||(n[e]=t(e))}}function Cc(){return mc?pc:(mc=1,pc=!Ys()((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})))}function Rc(){if(dc)return yc;dc=1;var e=$a(),t=tu(),n=Ka(),r=Tc(),i=Cc(),o=r("IE_PROTO"),s=Object,u=s.prototype;return yc=i?s.getPrototypeOf:function(r){var i=n(r);if(e(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof s?u:null}}function Ic(){if(bc)return vc;bc=1;var e=Zs(),t=ca();return vc=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}function Nc(){if(Ec)return gc;Ec=1;var e=Qu();return gc=function(t){return e(t)||null===t}}function Vc(){if(wc)return jc;wc=1;var e=Nc(),t=String,n=TypeError;return jc=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function Fc(){if(Sc)return Oc;Sc=1;var e=Ic(),t=Qu(),n=Xu(),r=Vc();return Oc=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=e(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(e){}return function(e,s){return n(e),r(s),t(e)?(o?i(e,s):e.__proto__=s,e):e}}():void 0)}var qc,Bc,Lc,zc,Dc,Gc,Uc,Kc,$c,Wc,Hc,Yc,Jc,Xc,Zc,Qc,el,tl,nl,rl={};function il(){if(Bc)return qc;Bc=1;var e=Math.ceil,t=Math.floor;return qc=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}function ol(){if(zc)return Lc;zc=1;var e=il();return Lc=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function sl(){if(Gc)return Dc;Gc=1;var e=ol(),t=Math.max,n=Math.min;return Dc=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)}}function ul(){if(Kc)return Uc;Kc=1;var e=ol(),t=Math.min;return Uc=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function al(){if(Wc)return $c;Wc=1;var e=ul();return $c=function(t){return e(t.length)}}function cl(){if(Yc)return Hc;Yc=1;var e=Zu(),t=sl(),n=al(),r=function(r){return function(i,o,s){var u=e(i),a=n(u);if(0===a)return!r&&-1;var c,l=t(s,a);if(r&&o!=o){for(;a>l;)if((c=u[l++])!=c)return!0}else for(;a>l;l++)if((r||l in u)&&u[l]===o)return r||l||0;return!r&&-1}};return Hc={includes:r(!0),indexOf:r(!1)}}function ll(){return Xc?Jc:(Xc=1,Jc={})}function fl(){if(Qc)return Zc;Qc=1;var e=Zs(),t=$a(),n=Zu(),r=cl().indexOf,i=ll(),o=e([].push);return Zc=function(e,s){var u,a=n(e),c=0,l=[];for(u in a)!t(i,u)&&t(a,u)&&o(l,u);for(;s.length>c;)t(a,u=s[c++])&&(~r(l,u)||o(l,u));return l}}function hl(){return tl?el:(tl=1,el=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function pl(){if(nl)return rl;nl=1;var e=fl(),t=hl().concat("length","prototype");return rl.f=Object.getOwnPropertyNames||function(n){return e(n,t)},rl}var ml,yl,dl,vl,bl,gl={};function El(){return ml||(ml=1,gl.f=Object.getOwnPropertySymbols),gl}function jl(){if(dl)return yl;dl=1;var e=ta(),t=Zs(),n=pl(),r=El(),i=kc(),o=t([].concat);return yl=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),s=r.f;return s?o(t,s(e)):t},yl}function wl(){if(bl)return vl;bl=1;var e=$a(),t=jl(),n=Qa(),r=Pc();return vl=function(i,o,s){for(var u=t(o),a=r.f,c=n.f,l=0;l<u.length;l++){var f=u[l];e(i,f)||s&&e(s,f)||a(i,f,c(o,f))}},vl}var Ol,Sl,Al,_l,kl,Pl,Ml,xl,Tl,Cl,Rl,Il,Nl,Vl,Fl,ql,Bl,Ll,zl,Dl,Gl,Ul,Kl,$l,Wl,Hl,Yl,Jl,Xl,Zl,Ql,ef,tf,nf,rf,of,sf,uf,af={};function cf(){if(Sl)return Ol;Sl=1;var e=fl(),t=hl();return Ol=Object.keys||function(n){return e(n,t)}}function lf(){if(Al)return af;Al=1;var e=uu(),t=_c(),n=Pc(),r=kc(),i=Zu(),o=cf();return af.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var s,u=i(t),a=o(t),c=a.length,l=0;c>l;)n.f(e,s=a[l++],u[s]);return e},af}function ff(){return kl?_l:(kl=1,_l=ta()("document","documentElement"))}function hf(){if(Ml)return Pl;Ml=1;var e,t=kc(),n=lf(),r=hl(),i=ll(),o=ff(),s=Xa(),u="prototype",a="script",c=Tc()("IE_PROTO"),l=function(){},f=function(e){return"<"+a+">"+e+"</"+a+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,i;p="undefined"!=typeof document?document.domain&&e?h(e):(n=s("iframe"),i="java"+a+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):h(e);for(var c=r.length;c--;)delete p[u][r[c]];return p()};return i[c]=!0,Pl=Object.create||function(e,r){var i;return null!==e?(l[u]=t(e),i=new l,l[u]=null,i[c]=e):i=p(),void 0===r?i:n.f(i,r)}}function pf(){if(Tl)return xl;Tl=1;var e=Qu(),t=Mc();return xl=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)}}function mf(){if(Rl)return Cl;Rl=1;var e=Error,t=Zs()("".replace),n=String(new e("zxcasd").stack),r=/\n\s*at [^:]*:[^\n]*/,i=r.test(n);return Cl=function(n,o){if(i&&"string"==typeof n&&!e.prepareStackTrace)for(;o--;)n=t(n,r,"");return n}}function yf(){if(Nl)return Il;Nl=1;var e=Ys(),t=Hu();return Il=!e((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)}))}function df(){if(Fl)return Vl;Fl=1;var e=Mc(),t=mf(),n=yf(),r=Error.captureStackTrace;return Vl=function(i,o,s,u){n&&(r?r(i,o):e(i,"stack",t(s,u)))}}function vf(){return Bl?ql:(Bl=1,ql={})}function bf(){if(zl)return Ll;zl=1;var e=Ha(),t=vf(),n=e("iterator"),r=Array.prototype;return Ll=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function gf(){if(Gl)return Dl;Gl=1;var e={};return e[Ha()("toStringTag")]="z",Dl="[object z]"===String(e)}function Ef(){if(Kl)return Ul;Kl=1;var e=gf(),t=tu(),n=Qs(),r=Ha()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Ul=e?n:function(e){var s,u,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(u=function(e,t){try{return e[t]}catch(e){}}(s=i(e),r))?u:o?n(s):"Object"===(a=n(s))&&t(s.callee)?"Arguments":a}}function jf(){if(Wl)return $l;Wl=1;var e=Ef(),t=la(),n=Ju(),r=vf(),i=Ha()("iterator");return $l=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||r[e(o)]}}function wf(){if(Yl)return Hl;Yl=1;var e=au(),t=ca(),n=kc(),r=aa(),i=jf(),o=TypeError;return Hl=function(s,u){var a=arguments.length<2?i(s):u;if(t(a))return n(e(a,s));throw new o(r(s)+" is not iterable")},Hl}function Of(){if(Xl)return Jl;Xl=1;var e=au(),t=kc(),n=la();return Jl=function(r,i,o){var s,u;t(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=e(s,r)}catch(e){u=!0,s=e}if("throw"===i)throw o;if(u)throw s;return t(s),o}}function Sf(){if(Ql)return Zl;Ql=1;var e=tc(),t=au(),n=kc(),r=aa(),i=bf(),o=al(),s=na(),u=wf(),a=jf(),c=Of(),l=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;return Zl=function(p,m,y){var d,v,b,g,E,j,w,O=y&&y.that,S=!(!y||!y.AS_ENTRIES),A=!(!y||!y.IS_RECORD),_=!(!y||!y.IS_ITERATOR),k=!(!y||!y.INTERRUPTED),P=e(m,O),M=function(e){return d&&c(d,"normal",e),new f(!0,e)},x=function(e){return S?(n(e),k?P(e[0],e[1],M):P(e[0],e[1])):k?P(e,M):P(e)};if(A)d=p.iterator;else if(_)d=p;else{if(!(v=a(p)))throw new l(r(p)+" is not iterable");if(i(v)){for(b=0,g=o(p);g>b;b++)if((E=x(p[b]))&&s(h,E))return E;return new f(!1)}d=u(p,v)}for(j=A?p.next:d.next;!(w=t(j,d)).done;){try{E=x(w.value)}catch(e){c(d,"throw",e)}if("object"==typeof E&&E&&s(h,E))return E}return new f(!1)}}function Af(){if(tf)return ef;tf=1;var e=Ef(),t=String;return ef=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function _f(){if(rf)return nf;rf=1;var e=Af();return nf=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},nf}function kf(){return sf||(sf=1,function(){if(of)return Ws;of=1;var e=xc(),t=na(),n=Rc(),r=Fc(),i=wl(),o=hf(),s=Mc(),u=Hu(),a=pf(),c=df(),l=Sf(),f=_f(),h=Ha()("toStringTag"),p=Error,m=[].push,y=function(e,i){var u,v=t(d,this);r?u=r(new p,v?n(this):d):(u=v?this:o(d),s(u,h,"Error")),void 0!==i&&s(u,"message",f(i)),c(u,y,u.stack,1),arguments.length>2&&a(u,arguments[2]);var b=[];return l(e,m,{that:b}),s(u,"errors",b),u};r?r(y,p):i(y,p,{name:!0});var d=y.prototype=o(p.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:y})}()),$s}function Pf(){return uf||(uf=1,kf()),Ks}var Mf,xf,Tf,Cf,Rf,If,Nf,Vf={};function Ff(){if(xf)return Mf;xf=1;var e=Pc().f;return Mf=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function qf(){if(Cf)return Tf;Cf=1;var e=tu(),t=Qu(),n=Fc();return Tf=function(r,i,o){var s,u;return n&&e(s=i.constructor)&&s!==o&&t(u=s.prototype)&&u!==o.prototype&&n(r,u),r}}function Bf(){if(If)return Rf;If=1;var e=ta(),t=$a(),n=Mc(),r=na(),i=Fc(),o=wl(),s=Ff(),u=qf(),a=_f(),c=pf(),l=df(),f=uu(),h=za();return Rf=function(p,m,y,d){var v="stackTraceLimit",b=d?2:1,g=p.split("."),E=g[g.length-1],j=e.apply(null,g);if(j){var w=j.prototype;if(!h&&t(w,"cause")&&delete w.cause,!y)return j;var O=e("Error"),S=m((function(e,t){var i=a(d?t:e,void 0),o=d?new j(e):new j;return void 0!==i&&n(o,"message",i),l(o,S,o.stack,2),this&&r(w,this)&&u(o,this,S),arguments.length>b&&c(o,arguments[b]),o}));if(S.prototype=w,"Error"!==E?i?i(S,O):o(S,O,{name:!0}):f&&v in j&&(s(S,j,v),s(S,j,"prepareStackTrace")),o(S,j),!h)try{w.name!==E&&n(w,"name",E),w.constructor=S}catch(e){}return S}},Rf}var Lf,zf,Df,Gf,Uf,Kf,$f,Wf,Hf,Yf,Jf,Xf,Zf,Qf,eh,th,nh,rh,ih,oh,sh,uh,ah,ch,lh,fh={};function hh(){return Df?zf:(Df=1,zf=function(){})}function ph(){if(Uf)return Gf;Uf=1;var e=Hs(),t=tu(),n=e.WeakMap;return Gf=t(n)&&/native code/.test(String(n))}function mh(){if($f)return Kf;$f=1;var e,t,n,r=ph(),i=Hs(),o=Qu(),s=Mc(),u=$a(),a=Ga(),c=Tc(),l=ll(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(r||a.state){var m=a.state||(a.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,e=function(e,t){if(m.has(e))throw new h(f);return t.facade=e,m.set(e,t),t},t=function(e){return m.get(e)||{}},n=function(e){return m.has(e)}}else{var y=c("state");l[y]=!0,e=function(e,t){if(u(e,y))throw new h(f);return t.facade=e,s(e,y,t),t},t=function(e){return u(e,y)?e[y]:{}},n=function(e){return u(e,y)}}return Kf={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!o(n)||(r=t(n)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}}function yh(){if(Hf)return Wf;Hf=1;var e=uu(),t=$a(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!e||e&&r(n,"name").configurable);return Wf={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function dh(){if(Jf)return Yf;Jf=1;var e=Mc();return Yf=function(t,n,r,i){return i&&i.enumerable?t[n]=r:e(t,n,r),t}}function vh(){if(Zf)return Xf;Zf=1;var e,t,n,r=Ys(),i=tu(),o=Qu(),s=hf(),u=Rc(),a=dh(),c=Ha(),l=za(),f=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(t=u(u(n)))!==Object.prototype&&(e=t):h=!0),!o(e)||r((function(){var t={};return e[f].call(t)!==t}))?e={}:l&&(e=s(e)),i(e[f])||a(e,f,(function(){return this})),Xf={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function bh(){if(eh)return Qf;eh=1;var e=gf(),t=Ef();return Qf=e?{}.toString:function(){return"[object "+t(this)+"]"}}function gh(){if(nh)return th;nh=1;var e=gf(),t=Pc().f,n=Mc(),r=$a(),i=bh(),o=Ha()("toStringTag");return th=function(s,u,a,c){var l=a?s:s&&s.prototype;l&&(r(l,o)||t(l,o,{configurable:!0,value:u}),c&&!e&&n(l,"toString",i))}}function Eh(){if(ih)return rh;ih=1;var e=vh().IteratorPrototype,t=hf(),n=Hu(),r=gh(),i=vf(),o=function(){return this};return rh=function(s,u,a,c){var l=u+" Iterator";return s.prototype=t(e,{next:n(+!c,a)}),r(s,l,!1,!0),i[l]=o,s}}function jh(){if(sh)return oh;sh=1;var e=xc(),t=au(),n=za(),r=yh(),i=tu(),o=Eh(),s=Rc(),u=Fc(),a=gh(),c=Mc(),l=dh(),f=Ha(),h=vf(),p=vh(),m=r.PROPER,y=r.CONFIGURABLE,d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,b=f("iterator"),g="keys",E="values",j="entries",w=function(){return this};return oh=function(r,f,p,O,S,A,_){o(p,f,O);var k,P,M,x=function(e){if(e===S&&N)return N;if(!v&&e&&e in R)return R[e];switch(e){case g:case E:case j:return function(){return new p(this,e)}}return function(){return new p(this)}},T=f+" Iterator",C=!1,R=r.prototype,I=R[b]||R["@@iterator"]||S&&R[S],N=!v&&I||x(S),V="Array"===f&&R.entries||I;if(V&&(k=s(V.call(new r)))!==Object.prototype&&k.next&&(n||s(k)===d||(u?u(k,d):i(k[b])||l(k,b,w)),a(k,T,!0,!0),n&&(h[T]=w)),m&&S===E&&I&&I.name!==E&&(!n&&y?c(R,"name",E):(C=!0,N=function(){return t(I,this)})),S)if(P={values:x(E),keys:A?N:x(g),entries:x(j)},_)for(M in P)(v||C||!(M in R))&&l(R,M,P[M]);else e({target:f,proto:!0,forced:v||C},P);return n&&!_||R[b]===N||l(R,b,N,{name:S}),h[f]=N,P}}function wh(){return ah?uh:(ah=1,uh=function(e,t){return{value:e,done:t}})}function Oh(){if(lh)return ch;lh=1;var e=Zu(),t=hh(),n=vf(),r=mh(),i=Pc().f,o=jh(),s=wh(),u=za(),a=uu(),c="Array Iterator",l=r.set,f=r.getterFor(c);ch=o(Array,"Array",(function(t,n){l(this,{type:c,target:e(t),index:0,kind:n})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)}),"values");var h=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!u&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return ch}var Sh,Ah,_h,kh,Ph,Mh={};function xh(){if(Ah)return Sh;Ah=1;var e=Zs(),t=ol(),n=Af(),r=Xu(),i=e("".charAt),o=e("".charCodeAt),s=e("".slice),u=function(e){return function(u,a){var c,l,f=n(r(u)),h=t(a),p=f.length;return h<0||h>=p?e?"":void 0:(c=o(f,h))<55296||c>56319||h+1===p||(l=o(f,h+1))<56320||l>57343?e?i(f,h):c:e?s(f,h,h+2):l-56320+(c-55296<<10)+65536}};return Sh={codeAt:u(!1),charAt:u(!0)}}function Th(){return Ph?kh:(Ph=1,function(){if(Nf)return Vf;Nf=1;var e=xc(),t=Hs(),n=Xs(),r=Bf(),i="WebAssembly",o=t[i],s=7!==new Error("e",{cause:7}).cause,u=function(t,n){var i={};i[t]=r(t,n,s),e({global:!0,constructor:!0,arity:1,forced:s},i)},a=function(t,n){if(o&&o[t]){var u={};u[t]=r(i+"."+t,n,s),e({target:i,stat:!0,constructor:!0,arity:1,forced:s},u)}};u("Error",(function(e){return function(t){return n(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return n(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return n(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return n(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return n(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return n(e,this,arguments)}})),u("URIError",(function(e){return function(t){return n(e,this,arguments)}})),a("CompileError",(function(e){return function(t){return n(e,this,arguments)}})),a("LinkError",(function(e){return function(t){return n(e,this,arguments)}})),a("RuntimeError",(function(e){return function(t){return n(e,this,arguments)}}))}(),kf(),function(){if(Lf)return fh;Lf=1;var e=xc(),t=ta(),n=Xs(),r=Ys(),i=Bf(),o="AggregateError",s=t(o),u=!r((function(){return 1!==s([1]).errors[0]}))&&r((function(){return 7!==s([1],o,{cause:7}).cause}));e({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:i(o,(function(e){return function(t,r){return n(e,this,arguments)}}),u,!0)})}(),Oh(),function(){if(_h)return Mh;_h=1;var e=xh().charAt,t=Af(),n=mh(),r=jh(),i=wh(),o="String Iterator",s=n.set,u=n.getterFor(o);r(String,"String",(function(e){s(this,{type:o,string:t(e),index:0})}),(function(){var t,n=u(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(t=e(r,o),n.index+=t.length,i(t,!1))}))}(),kh=ea().AggregateError)}var Ch,Rh,Ih,Nh,Vh,Fh,qh,Bh,Lh,zh,Dh,Gh,Uh,Kh={};function $h(){return Rh?Ch:(Rh=1,Ch={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})}function Wh(){if(Vh)return Nh;Vh=1,Pf();var e=Th();return function(){if(Ih)return Kh;Ih=1,Oh();var e=$h(),t=Hs(),n=gh(),r=vf();for(var i in e)n(t[i],i),r[i]=r.Array}(),Nh=e}function Hh(){return qh?Fh:(qh=1,Fh=Wh())}function Yh(){return Lh?Bh:(Lh=1,Pf(),Bh=Hh())}function Jh(){return Dh?zh:(Dh=1,zh=Yh())}const Xh=Ze(Uh?Gh:(Uh=1,Gh=Jh()));class Zh extends Xh{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Qh extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Zh,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}`)}}}class ep extends Qh{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}class tp extends Qh{}class np extends tp{}const rp=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},ip={},op=e=>null==e?void 0:e.type,sp=e=>"string"==typeof op(e),up=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ap=(e,{visitFnGetter:t=rp,nodeTypeGetter:n=op,breakSymbol:r=ip,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const u=Symbol("skip"),a=new Array(e.length).fill(u);return{enter(c,l,f,h,p,m){let y=c,d=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),y=e}};for(let c=0;c<e.length;c+=1)if(a[c]===u){const u=t(e[c],n(y),!1);if("function"==typeof u){const t=u.call(e[c],y,l,f,h,p,v);if("function"==typeof(null==t?void 0:t.then))throw new ep("Async visitor not supported in sync mode",{visitor:e[c],visitFn:u});if(t===o)a[c]=y;else if(t===r)a[c]=r;else{if(t===i)return t;if(void 0!==t){if(!s)return t;y=t,d=!0}}}}return d?y:void 0},leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(a[i]===u){const u=t(e[i],n(p),!0);if("function"==typeof u){const t=u.call(e[i],p,s,c,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new ep("Async visitor not supported in sync mode",{visitor:e[i],visitFn:u});if(t===r)a[i]=r;else if(void 0!==t&&t!==o)return t}}else a[i]===p&&(a[i]=u)}}};ap[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=rp,nodeTypeGetter:n=op,breakSymbol:r=ip,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const u=Symbol("skip"),a=new Array(e.length).fill(u);return{async enter(c,l,f,h,p,m){let y=c,d=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),y=e}};for(let c=0;c<e.length;c+=1)if(a[c]===u){const u=t(e[c],n(y),!1);if("function"==typeof u){const t=await u.call(e[c],y,l,f,h,p,v);if(t===o)a[c]=y;else if(t===r)a[c]=r;else{if(t===i)return t;if(void 0!==t){if(!s)return t;y=t,d=!0}}}}return d?y:void 0},async leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(a[i]===u){const u=t(e[i],n(p),!0);if("function"==typeof u){const t=await u.call(e[i],p,s,c,l,f,m);if(t===r)a[i]=r;else if(void 0!==t&&t!==o)return t}}else a[i]===p&&(a[i]=u)}}};const cp=(e,t,{keyMap:n=null,state:r={},breakSymbol:i=ip,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:u=rp,nodeTypeGetter:a=op,nodePredicate:c=sp,nodeCloneFn:l=up,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(e),v=[e],b=-1,g=[],E=e;const j=[],w=[];do{b+=1;const e=b===v.length;let n;const A=e&&0!==g.length;if(e){if(n=0===w.length?void 0:j.pop(),E=y,y=w.pop(),A)if(d){E=E.slice();let e=0;for(const[t,n]of g){const r=t-e;n===o?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of g)E[e]=t}b=m.index,v=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?b:v[b],E=y[n],E===o||void 0===E)continue;j.push(n)}let _;if(!Array.isArray(E)){var O;if(!c(E))throw new ep(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&w.includes(E)){"function"==typeof h&&h(E,n,y,j,w),j.pop();continue}const o=u(t,a(E),e);if(o){for(const[e,n]of Object.entries(r))t[e]=n;const i={replaceWith(t,r){"function"==typeof r?r(t,E,n,y,j,w):y&&(y[n]=t),e||(E=t)}};_=o.call(t,E,n,y,j,w,i)}if("function"==typeof(null===(O=_)||void 0===O?void 0:O.then))throw new ep("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(_===i)break;if(_===s){if(!e){j.pop();continue}}else if(void 0!==_&&(g.push([n,_]),!e)){if(!c(_)){j.pop();continue}E=_}}var S;if(void 0===_&&A&&g.push([n,E]),!e)m={inArray:d,index:b,keys:v,edits:g,prev:m},d=Array.isArray(E),v=d?E:null!==(S=p[a(E)])&&void 0!==S?S:[],b=-1,g=[],y!==o&&void 0!==y&&w.push(y),y=E}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};cp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:i=ip,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:u=rp,nodeTypeGetter:a=op,nodePredicate:c=sp,nodeCloneFn:l=up,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(e),v=[e],b=-1,g=[],E=e;const j=[],w=[];do{b+=1;const e=b===v.length;let n;const S=e&&0!==g.length;if(e){if(n=0===w.length?void 0:j.pop(),E=y,y=w.pop(),S)if(d){E=E.slice();let e=0;for(const[t,n]of g){const r=t-e;n===o?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of g)E[e]=t}b=m.index,v=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?b:v[b],E=y[n],E===o||void 0===E)continue;j.push(n)}let A;if(!Array.isArray(E)){if(!c(E))throw new ep(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&w.includes(E)){"function"==typeof h&&h(E,n,y,j,w),j.pop();continue}const o=u(t,a(E),e);if(o){for(const[e,n]of Object.entries(r))t[e]=n;const i={replaceWith(t,r){"function"==typeof r?r(t,E,n,y,j,w):y&&(y[n]=t),e||(E=t)}};A=await o.call(t,E,n,y,j,w,i)}if(A===i)break;if(A===s){if(!e){j.pop();continue}}else if(void 0!==A&&(g.push([n,A]),!e)){if(!c(A)){j.pop();continue}E=A}}var O;if(void 0===A&&S&&g.push([n,E]),!e)m={inArray:d,index:b,keys:v,edits:g,prev:m},d=Array.isArray(E),v=d?E:null!==(O=p[a(E)])&&void 0!==O?O:[],b=-1,g=[],y!==o&&void 0!==y&&w.push(y),y=E}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};class lp extends ep{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class fp extends lp{}class hp extends lp{}const pp=(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),mp=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof ts.KeyValuePair){const{key:t,value:i}=e,o=fs(t)?mp(t,r):t,s=fs(i)?mp(i,r):i,u=new ts.KeyValuePair(o,s);return n.set(e,u),u}if(e instanceof ts.ObjectSlice){const t=e=>mp(e,r),i=[...e].map(t),o=new ts.ObjectSlice(i);return n.set(e,o),o}if(e instanceof ts.ArraySlice){const t=e=>mp(e,r),i=[...e].map(t),o=new ts.ArraySlice(i);return n.set(e,o),o}if(fs(e)){const t=vp(e);if(n.set(e,t),e.content)if(fs(e.content))t.content=mp(e.content,r);else if(e.content instanceof ts.KeyValuePair)t.content=mp(e.content,r);else if(Array.isArray(e.content)){const n=e=>mp(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new fp("Value provided to cloneDeep function couldn't be cloned",{value:e})};mp.safe=e=>{try{return mp(e)}catch{return e}};const yp=e=>{const{key:t,value:n}=e;return new ts.KeyValuePair(t,n)},dp=e=>{const t=new e.constructor;if(t.element=e.element,Ss(e)&&pp(t,e),e.meta.length>0&&(t._meta=mp(e.meta)),e.attributes.length>0&&(t._attributes=mp(e.attributes)),fs(e.content)){const n=e.content;t.content=dp(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ts.KeyValuePair?t.content=yp(e.content):t.content=e.content;return t},vp=e=>{if(e instanceof ts.KeyValuePair)return yp(e);if(e instanceof ts.ObjectSlice)return(e=>{const t=[...e];return new ts.ObjectSlice(t)})(e);if(e instanceof ts.ArraySlice)return(e=>{const t=[...e];return new ts.ArraySlice(t)})(e);if(fs(e))return dp(e);throw new hp("Value provided to cloneShallow function couldn't be cloned",{value:e})};vp.safe=e=>{try{return vp(e)}catch{return e}};const bp=e=>ds(e)?"ObjectElement":vs(e)?"ArrayElement":bs(e)?"MemberElement":hs(e)?"StringElement":ys(e)?"BooleanElement":ps(e)?"NumberElement":ms(e)?"NullElement":gs(e)?"LinkElement":Es(e)?"RefElement":void 0,gp=e=>fs(e)?vp(e):up(e),Ep=Se(bp,We),jp={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]},wp=(e,t,{keyMap:n=jp,...r}={})=>cp(e,t,{keyMap:n,nodeTypeGetter:bp,nodePredicate:Ep,nodeCloneFn:gp,...r});wp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=jp,...r}={})=>cp[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:bp,nodePredicate:Ep,nodeCloneFn:gp,...r});const Op={toolboxCreator:Ps,visitorOptions:{nodeTypeGetter:bp,exposeEdits:!0}},Sp=(e,t,n={})=>{if(0===t.length)return e;const r=Ve(Op,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),u=t.map((e=>e(s))),a=ap(u.map(Le({},"visitor")),{...o});u.forEach(Je(["pre"],[]));const c=wp(e,a,o);return u.forEach(Je(["post"],[])),c};Sp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=Ve(Op,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),u=t.map((e=>e(s))),a=ap[Symbol.for("nodejs.util.promisify.custom")],c=wp[Symbol.for("nodejs.util.promisify.custom")],l=a(u.map(Le({},"visitor")),{...o});await Promise.allSettled(u.map(Je(["pre"],[])));const f=await c(e,l,o);return await Promise.allSettled(u.map(Je(["post"],[]))),f};class Ap extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new np("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new np("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new np("latest method in MediaTypes class is not yet implemented.")}}const _p=e=>(t,n={})=>((e,{Type:t,plugins:n=[]})=>{const r=new t(e);return fs(e)&&(e.meta.length>0&&(r.meta=mp(e.meta)),e.attributes.length>0&&(r.attributes=mp(e.attributes))),Sp(r,n,{toolboxCreator:Ps,visitorOptions:{nodeTypeGetter:bp}})})(t,{...n,Type:e});ts.ObjectElement.refract=_p(ts.ObjectElement),ts.ArrayElement.refract=_p(ts.ArrayElement),ts.StringElement.refract=_p(ts.StringElement),ts.BooleanElement.refract=_p(ts.BooleanElement),ts.NullElement.refract=_p(ts.NullElement),ts.NumberElement.refract=_p(ts.NumberElement),ts.LinkElement.refract=_p(ts.LinkElement),ts.RefElement.refract=_p(ts.RefElement),ns.refract=_p(ns),rs.refract=_p(rs),is.refract=_p(is);const kp=e=>"string"==typeof(null==e?void 0:e.type)?e.type:bp(e),Pp={EphemeralObject:["content"],EphemeralArray:["content"],...jp},Mp=(e,n,{keyMap:r=Pp,...i}={})=>wp(e,n,{keyMap:r,nodeTypeGetter:kp,nodePredicate:t,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...i});Mp[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:n=Pp,...r}={})=>wp[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:n,nodeTypeGetter:kp,nodePredicate:t,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class xp{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}}class Tp{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))}}let Cp=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Tp(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 xp(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return hs(e.href)?e.href.toValue():""}};const Rp=e=>fs(e)?hs(e)||ps(e)||ys(e)||ms(e)?e.toValue():Mp(e,new Cp):e,Ip=e=>{const t=e.meta.length>0?mp(e.meta):void 0,n=e.attributes.length>0?mp(e.attributes):void 0;return new e.constructor(void 0,t,n)},Np=(e,t)=>t.clone&&t.isMergeableElement(e)?Fp(Ip(e),e,t):e,Vp={clone:!0,isMergeableElement:e=>ds(e)||vs(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>Np(e,n))),objectElementMerge:(e,t,n)=>{const r=ds(e)?Ip(e):Ip(t);return ds(e)&&e.forEach(((e,t,i)=>{const o=vp(i);o.value=Np(e,n),r.content.push(o)})),t.forEach(((t,i,o)=>{const s=Rp(i);let u;if(ds(e)&&e.hasKey(s)&&n.isMergeableElement(t)){const r=e.get(s);u=vp(o),u.value=((e,t)=>{if("function"!=typeof t.customMerge)return Fp;const n=t.customMerge(e,t);return"function"==typeof n?n:Fp})(i,n)(r,t,n)}else u=vp(o),u.value=Np(t,n);r.remove(s),r.content.push(u)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Fp=(e,t,n)=>{var r,i,o;const s={...Vp,...n};s.isMergeableElement=null!==(r=s.isMergeableElement)&&void 0!==r?r:Vp.isMergeableElement,s.arrayElementMerge=null!==(i=s.arrayElementMerge)&&void 0!==i?i:Vp.arrayElementMerge,s.objectElementMerge=null!==(o=s.objectElementMerge)&&void 0!==o?o:Vp.objectElementMerge;const u=vs(t);if(!(u===vs(e)))return Np(t,s);const a=u&&"function"==typeof s.arrayElementMerge?s.arrayElementMerge(e,t,s):s.objectElementMerge(e,t,s);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>mp(e):e.customMetaMerge)(s)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>mp(e):e.customAttributesMerge)(s)(e.attributes,t.attributes),a};Fp.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ts.ObjectElement:e.reduce(((e,n)=>Fp(e,n,t)),Ip(e[0]))};class qp extends Ap{filterByFormat(e="generic"){const t="generic"===e?"apidesignsystems;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2021-05-07",t="generic"){const n="generic"===t?`apidesignsystems;version=${e}`:`apidesignsystems+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return _e(this.filterByFormat(e))}}const Bp=new qp("application/vnd.aai.apidesignsystems;version=2021-05-07","application/vnd.aai.apidesignsystems+json;version=2021-05-07","application/vnd.aai.apidesignsystems+yaml;version=2021-05-07");class Lp extends ts.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="info"}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)}}class zp extends ts.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="main",this.classes.push("api")}get version(){return this.get("version")}set version(e){this.set("version",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get principles(){return this.get("principles")}set principles(e){this.set("principles",e)}get standards(){return this.get("standards")}set standards(e){this.set("standards",e)}get scenarios(){return this.get("scenarios")}set scenarios(e){this.set("scenarios",e)}}class Dp extends ts.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="principle"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}class Gp extends ts.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="requirement"}get subject(){return this.get("subject")}set subject(e){this.set("subject",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}get values(){return this.get("values")}set values(e){this.set("values",e)}get follows(){return this.get("follows")}set follows(e){this.set("follows",e)}}class Up extends ts.StringElement{constructor(e,t,n){super(e,t,n),this.element="requirementLevel"}}class Kp extends ts.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="scenario"}get description(){return this.get("description")}set description(e){this.set("description",e)}get when(){return this.get("when")}set when(e){this.set("when",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}}class $p extends ts.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="standard"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}class Wp extends ts.ArrayElement{constructor(e,t,n){super(e,t,n),this.element="standardIdentifier"}}const Hp={namespace:e=>{const{base:t}=e;return t.register("info",Lp),t.register("main",zp),t.register("principle",Dp),t.register("requirement",Gp),t.register("requirementLevel",Up),t.register("scenario",Kp),t.register("standard",$p),t.register("standardIdentifier",Wp),t}},Yp=e=>{if(fs(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Jp={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...jp},Xp={keyMap:Jp,nodeTypeGetter:Yp},Zp={keyMap:Jp,nodeTypeGetter:Yp},Qp=(e,t)=>{const n=[],{subject:r}=t;if(void 0===t.values)return n;if("may"===Rp(t.level)){const i=((e,t)=>null===e||t.includes(e))(Rp(e),Rp(t.values));if(!i){const i=((e,t,n)=>{const r=Rp(e),i=JSON.stringify(Rp(n));if("may"===Rp(t))return`"${r}" not allowed for subject ${i}`;throw new np('[Requirement levels] other than "may" are not yet implemented.')})(e,t.level,r),o=((e,t,n,r)=>{const i=new ns(e);return i.classes.push(n),i.attributes.set("value",mp(t)),i.attributes.set("standardIdentifier",mp(r)),i})(i,e,"error",r);n.push(o)}}return n},em=(e,t)=>{const{subject:n}=e,r=((e,t)=>{const n=String(Rp(t)),r=new ts.ArrayElement;return wp(e,{enter(e){e.meta.hasKey("ads-a-standard-identifier")&&e.meta.get("ads-a-standard-identifier").content.filter((e=>String(Rp(e.get("subject")))===n)).forEach((e=>{r.push(e.get("value"))}))}},Zp),r})(t,n),i=[];return r.forEach((t=>{i.push(...Qp(t,e))})),i},tm=(e,t)=>{const n=[],{when:r}=e,i=((e,t)=>{const n=[];return wp(e,{OperationElement(e){if(!e.meta.hasKey("ads-s-standard-identifier"))return;const r=Rp(e.meta.get("ads-s-standard-identifier"));xe(Rp(t),r)&&n.push(e)},ResponseElement(e){if(!e.meta.hasKey("ads-s-standard-identifier"))return;const r=Rp(e.meta.get("ads-s-standard-identifier"));xe(Rp(t),r)&&n.push(e)}},Xp),n})(t,r),{then:o}=e;return void 0===o||i.forEach((e=>{o.forEach((t=>{n.push(...em(t,e))}))})),n},nm=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zp||e(r)&&t("main",r)&&n("object",r))),rm=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Lp||e(r)&&t("info",r)&&n("object",r))),im=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Dp||e(r)&&t("principle",r)&&n("object",r))),om=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Gp||e(r)&&t("requirement",r)&&n("object",r))),sm=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Up||e(r)&&t("requirementLevel",r)&&n("string",r))),um=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Kp||e(r)&&t("scenario",r)&&n("object",r))),am=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $p||e(r)&&t("standard",r)&&n("object",r))),cm=ls((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Wp||e(r)&&t("standardIdentifier",r)&&n("array",r)));var lm=Object.defineProperty,fm=(e,t,n)=>((e,t,n)=>t in e?lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,t+"",n);class hm{constructor(e={}){fm(this,"element"),Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Fp(t.meta,e.meta)),Ss(e)&&pp(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Fp(t.attributes,e.attributes))}}class pm extends hm{enter(e){return this.element=mp(e),ip}}var mm=Object.defineProperty,ym=Object.getOwnPropertySymbols,dm=Object.prototype.hasOwnProperty,vm=Object.prototype.propertyIsEnumerable,bm=(e,t,n)=>t in e?mm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gm=(e,t)=>{for(var n in t||(t={}))dm.call(t,n)&&bm(e,n,t[n]);if(ym)for(var n of ym(t))vm.call(t,n)&&bm(e,n,t[n]);return e},Em=(e,t,n)=>bm(e,"symbol"!=typeof t?t+"":t,n);class jm extends hm{constructor(e){var t=e,{specObj:n}=t,r=((e,t)=>{var n={};for(var r in e)dm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ym)for(var r of ym(e))t.indexOf(r)<0&&vm.call(e,r)&&(n[r]=e[r]);return n})(t,["specObj"]);super(gm({},r)),Em(this,"specObj"),Em(this,"passingOptionsNames",["specObj"]),this.specObj=n}retrievePassingOptions(){return Be(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Fe(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return qe(Ke,["visitors",...e],this.specObj)?Fe(["visitors",...e],this.specObj):Fe(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))(gm(gm({},n),t))}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof pm&&(null==r?void 0:r.constructor)===pm?mp(t):(wp(t,r,n),r.element)}}var wm=Object.defineProperty,Om=Object.getOwnPropertySymbols,Sm=Object.prototype.hasOwnProperty,Am=Object.prototype.propertyIsEnumerable,_m=(e,t,n)=>t in e?wm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,km=(e,t,n)=>_m(e,"symbol"!=typeof t?t+"":t,n);var Pm=Object.defineProperty,Mm=Object.getOwnPropertySymbols,xm=Object.prototype.hasOwnProperty,Tm=Object.prototype.propertyIsEnumerable,Cm=(e,t,n)=>t in e?Pm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Rm=((e,t)=>{for(var n in t||(t={}))xm.call(t,n)&&Cm(e,n,t[n]);if(Mm)for(var n of Mm(t))Tm.call(t,n)&&Cm(e,n,t[n]);return e})({MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[]},jp);e.ApiDesignSystemsMediaTypes=qp,e.FallbackVisitor=pm,e.FixedFieldsVisitor=class extends jm{constructor(e){var t=e,{specPath:n,ignoredFields:r}=t,i=((e,t)=>{var n={};for(var r in e)Sm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Om)for(var r of Om(e))t.indexOf(r)<0&&Am.call(e,r)&&(n[r]=e[r]);return n})(t,["specPath","ignoredFields"]);super(((e,t)=>{for(var n in t||(t={}))Sm.call(t,n)&&_m(e,n,t[n]);if(Om)for(var n of Om(t))Am.call(t,n)&&_m(e,n,t[n]);return e})({},i)),km(this,"specPath"),km(this,"ignoredFields"),this.specPath=n,this.ignoredFields=r||[]}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,i)=>{if(hs(r)&&n.includes(Rp(r))&&!this.ignoredFields.includes(Rp(r))){const n=this.toRefractedElement([...t,"fixedFields",Rp(r)],e),o=new ts.MemberElement(mp(r),n);o.classes.push("fixed-field"),this.copyMetaAndAttributes(i,o),this.element.content.push(o)}else this.ignoredFields.includes(Rp(r))||this.element.content.push(mp(i))})),this.copyMetaAndAttributes(e,this.element),ip}},e.InfoElement=Lp,e.MainElement=zp,e.PrincipleElement=Dp,e.RequirementElement=Gp,e.RequirementLevelElement=Up,e.ScenarioElement=Kp,e.SpecificationVisitor=jm,e.StandardElement=$p,e.StandardIdentifierElement=Wp,e.Visitor=hm,e.default=Hp,e.getNodeType=e=>{if(fs(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},e.isArrayElement=vs,e.isBooleanElement=ys,e.isElement=fs,e.isInfoElement=rm,e.isLinkElement=gs,e.isMainElement=nm,e.isMemberElement=bs,e.isNullElement=ms,e.isNumberElement=ps,e.isObjectElement=ds,e.isPrincipleElement=im,e.isRefElement=Es,e.isRequirementElement=om,e.isRequirementLevelElement=sm,e.isScenarioElement=um,e.isStandardElement=am,e.isStandardIdentifierElement=cm,e.isStringElement=hs,e.keyMap=Rm,e.mediaTypes=Bp,e.refractPluginOpenApi3_1StandardIdentifierAccessors=()=>()=>({visitor:{OperationElement(e,...t){const[,,,n]=t,r=n[n.length-2],i=mp(e.meta.get("http-method"));i.content=Rp(i).toLowerCase();const o=[{subject:["http","request","url"],value:r.meta.get("path")},{subject:["http","request","method"],value:i}];void 0!==r.parameters&&vs(r.parameters)&&r.parameters.forEach((e=>{hs(e.in)&&hs(e.name)&&"header"===Rp(e.in)&&(o.push({subject:["http","request","header"],value:mp.safe(e.name)}),o.push({subject:["http","message","header"],value:mp.safe(e.name)}))})),e.setMetaProperty("ads-a-standard-identifier",o)},ParameterElement(e){hs(e.in)&&hs(e.name)&&"header"===Rp(e.in)&&e.setMetaProperty("ads-a-standard-identifier",[{subject:["http","request","header"],value:mp.safe(e.name)},{subject:["http","message","header"],value:mp.safe(e.name)}])},RequestBodyElement(e){if(void 0===e.contentProp||!ds(e.contentProp))return;const t=[];e.contentProp.forEach(((e,n)=>{t.push({subject:["http","request","header"],value:new ts.StringElement("Content-Type",mp(n.meta))},{subject:["http","message","header"],value:new ts.StringElement("Content-Type",mp(n.meta))},{subject:["http","request","header","Content-Type"],value:mp(n)},{subject:["http","message","header","Content-Type"],value:mp(n)})})),e.setMetaProperty("ads-a-standard-identifier",t)},ResponseElement(e){if(!e.meta.hasKey("http-status-code"))return;const t=[{subject:["http","response","status_code"],value:mp(e.meta.get("http-status-code"))}];e.setMetaProperty("ads-a-standard-identifier",t)}}}),e.refractPluginOpenApi3_1StandardIdentifierSelectors=()=>()=>{let e=[],t=[];return{visitor:{OperationElement:{enter(t,...n){var r;const[,,,i]=n,o=i[i.length-2];e.push(["http","transaction"],["http","request"],["http","request","url"],["http","request","url",Rp(o.meta.get("path"))],["http","request","method"],["http","request","method",Rp(t.meta.get("http-method")).toLowerCase()]),null==(r=null==o?void 0:o.parameters)||r.forEach((t=>{hs(t.in)&&hs(t.name)&&"header"===Rp(t.in)&&e.push(["http","request","header"],["http","request","header",Rp(t.name)],["http","message","header"],["http","message","header",Rp(t.name)])}))},leave(t){t.setMetaProperty("ads-s-standard-identifier",e),e=[]}},ParameterElement(t){hs(t.in)&&hs(t.name)&&"header"===Rp(t.in)&&e.push(["http","request","header"],["http","request","header",Rp(t.name)],["http","message","header"],["http","message","header",Rp(t.name)])},RequestBodyElement(t){ds(t.contentProp)&&(e.push(["http","request","body"],["http","message","body"]),void 0!==t.contentProp&&ds(t.contentProp)&&t.contentProp.forEach((()=>{e.push(["http","request","header"],["http","request","header","Content-Type"],["http","message","header"],["http","message","header","Content-Type"])})))},ResponseElement:{enter(e){if(t.push(["http","response"]),e.meta.hasKey("http-status-code")){const n=String(Rp(e.meta.get("http-status-code"))),r=n.startsWith("2")?"success":n.startsWith("3")?"redirect":n.startsWith("4")?"client_error":n.startsWith("5")?"sever_error":"unknown";t.push(["http","response","status_code"],["http","response","status_code",n],["http","response","status_code",r])}void 0!==e.headers&&ds(e.headers)&&e.headers.forEach(((e,n)=>{const r=Rp(n);t.push(["http","response","header"],["http","response","header",r],["http","message","header",r])})),void 0!==e.contentProp&&ds(e.contentProp)&&(t.push(["http","response","body"],["http","message","body"]),e.contentProp.forEach(((e,n)=>{const r=Rp(n);t.push(["http","response","header"],["http","response","header",r],["http","message","header",r])})))},leave(e){e.setMetaProperty("ads-s-standard-identifier",t),t=[]}}}}},e.validateOpenAPI3_1=(e,t)=>{const{scenarios:n}=e,r=[];return void 0!==n&&vs(n)?(n.forEach((e=>{r.push(...tm(e,t))})),r):[]},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
1
|
+
(function(e, t) {
|
|
2
|
+
"object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).apidomNsApiDesignSystems = {});
|
|
3
|
+
})(this, (function(e) {
|
|
4
|
+
Object.defineProperties(e, {
|
|
5
|
+
__esModule: { value: !0 },
|
|
6
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
7
|
+
});
|
|
8
|
+
var t = Object.create, r = Object.defineProperty, n = Object.getOwnPropertyDescriptor, i = Object.getOwnPropertyNames, s = Object.getPrototypeOf, o = Object.prototype.hasOwnProperty, a = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, t) => {
|
|
9
|
+
let n = {};
|
|
10
|
+
for (var i in e) r(n, i, {
|
|
11
|
+
get: e[i],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
return t || r(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
15
|
+
}, u = (e, a, c) => (c = null != e ? t(s(e)) : {}, ((e, t, s, a) => {
|
|
16
|
+
if (t && "object" == typeof t || "function" == typeof t) for (var c, u = i(t), l = 0, f = u.length; l < f; l++) c = u[l], o.call(e, c) || c === s || r(e, c, {
|
|
17
|
+
get: ((e) => t[e]).bind(null, c),
|
|
18
|
+
enumerable: !(a = n(t, c)) || a.enumerable
|
|
19
|
+
});
|
|
20
|
+
return e;
|
|
21
|
+
})(!a && e && e.__esModule ? c : r(c, "default", {
|
|
22
|
+
value: e,
|
|
23
|
+
enumerable: !0
|
|
24
|
+
}), e)), l = function() {
|
|
25
|
+
return !0;
|
|
26
|
+
};
|
|
27
|
+
function f(e) {
|
|
28
|
+
return null != e && "object" == typeof e && !0 === e["@@functional/placeholder"];
|
|
29
|
+
}
|
|
30
|
+
function p(e) {
|
|
31
|
+
return function t(r) {
|
|
32
|
+
return 0 === arguments.length || f(r) ? t : e.apply(this, arguments);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function h(e) {
|
|
36
|
+
return function t(r, n) {
|
|
37
|
+
switch (arguments.length) {
|
|
38
|
+
case 0: return t;
|
|
39
|
+
case 1: return f(r) ? t : p((function(t) {
|
|
40
|
+
return e(r, t);
|
|
41
|
+
}));
|
|
42
|
+
default: return f(r) && f(n) ? t : f(r) ? p((function(t) {
|
|
43
|
+
return e(t, n);
|
|
44
|
+
})) : f(n) ? p((function(t) {
|
|
45
|
+
return e(r, t);
|
|
46
|
+
})) : e(r, n);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function m(e, t) {
|
|
51
|
+
switch (e) {
|
|
52
|
+
case 0: return function() {
|
|
53
|
+
return t.apply(this, arguments);
|
|
54
|
+
};
|
|
55
|
+
case 1: return function(e) {
|
|
56
|
+
return t.apply(this, arguments);
|
|
57
|
+
};
|
|
58
|
+
case 2: return function(e, r) {
|
|
59
|
+
return t.apply(this, arguments);
|
|
60
|
+
};
|
|
61
|
+
case 3: return function(e, r, n) {
|
|
62
|
+
return t.apply(this, arguments);
|
|
63
|
+
};
|
|
64
|
+
case 4: return function(e, r, n, i) {
|
|
65
|
+
return t.apply(this, arguments);
|
|
66
|
+
};
|
|
67
|
+
case 5: return function(e, r, n, i, s) {
|
|
68
|
+
return t.apply(this, arguments);
|
|
69
|
+
};
|
|
70
|
+
case 6: return function(e, r, n, i, s, o) {
|
|
71
|
+
return t.apply(this, arguments);
|
|
72
|
+
};
|
|
73
|
+
case 7: return function(e, r, n, i, s, o, a) {
|
|
74
|
+
return t.apply(this, arguments);
|
|
75
|
+
};
|
|
76
|
+
case 8: return function(e, r, n, i, s, o, a, c) {
|
|
77
|
+
return t.apply(this, arguments);
|
|
78
|
+
};
|
|
79
|
+
case 9: return function(e, r, n, i, s, o, a, c, u) {
|
|
80
|
+
return t.apply(this, arguments);
|
|
81
|
+
};
|
|
82
|
+
case 10: return function(e, r, n, i, s, o, a, c, u, l) {
|
|
83
|
+
return t.apply(this, arguments);
|
|
84
|
+
};
|
|
85
|
+
default: throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function y(e, t, r) {
|
|
89
|
+
return function() {
|
|
90
|
+
for (var n = [], i = 0, s = e, o = 0, a = !1; o < t.length || i < arguments.length;) {
|
|
91
|
+
var c;
|
|
92
|
+
o < t.length && (!f(t[o]) || i >= arguments.length) ? c = t[o] : (c = arguments[i], i += 1), n[o] = c, f(c) ? a = !0 : s -= 1, o += 1;
|
|
93
|
+
}
|
|
94
|
+
return !a && s <= 0 ? r.apply(this, n) : m(Math.max(0, s), y(e, n, r));
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
var d = h((function(e, t) {
|
|
98
|
+
return 1 === e ? p(t) : m(e, y(e, [], t));
|
|
99
|
+
}));
|
|
100
|
+
function v(e) {
|
|
101
|
+
return function t(r, n, i) {
|
|
102
|
+
switch (arguments.length) {
|
|
103
|
+
case 0: return t;
|
|
104
|
+
case 1: return f(r) ? t : h((function(t, n) {
|
|
105
|
+
return e(r, t, n);
|
|
106
|
+
}));
|
|
107
|
+
case 2: return f(r) && f(n) ? t : f(r) ? h((function(t, r) {
|
|
108
|
+
return e(t, n, r);
|
|
109
|
+
})) : f(n) ? h((function(t, n) {
|
|
110
|
+
return e(r, t, n);
|
|
111
|
+
})) : p((function(t) {
|
|
112
|
+
return e(r, n, t);
|
|
113
|
+
}));
|
|
114
|
+
default: return f(r) && f(n) && f(i) ? t : f(r) && f(n) ? h((function(t, r) {
|
|
115
|
+
return e(t, r, i);
|
|
116
|
+
})) : f(r) && f(i) ? h((function(t, r) {
|
|
117
|
+
return e(t, n, r);
|
|
118
|
+
})) : f(n) && f(i) ? h((function(t, n) {
|
|
119
|
+
return e(r, t, n);
|
|
120
|
+
})) : f(r) ? p((function(t) {
|
|
121
|
+
return e(t, n, i);
|
|
122
|
+
})) : f(n) ? p((function(t) {
|
|
123
|
+
return e(r, t, i);
|
|
124
|
+
})) : f(i) ? p((function(t) {
|
|
125
|
+
return e(r, n, t);
|
|
126
|
+
})) : e(r, n, i);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
var b = Array.isArray || function(e) {
|
|
131
|
+
return null != e && e.length >= 0 && "[object Array]" === Object.prototype.toString.call(e);
|
|
132
|
+
};
|
|
133
|
+
function g(e, t, r) {
|
|
134
|
+
return function() {
|
|
135
|
+
if (0 === arguments.length) return r();
|
|
136
|
+
var n = arguments[arguments.length - 1];
|
|
137
|
+
if (!b(n)) {
|
|
138
|
+
for (var i = 0; i < e.length;) {
|
|
139
|
+
if ("function" == typeof n[e[i]]) return n[e[i]].apply(n, Array.prototype.slice.call(arguments, 0, -1));
|
|
140
|
+
i += 1;
|
|
141
|
+
}
|
|
142
|
+
if (function(e) {
|
|
143
|
+
return null != e && "function" == typeof e["@@transducer/step"];
|
|
144
|
+
}(n)) return t.apply(null, Array.prototype.slice.call(arguments, 0, -1))(n);
|
|
145
|
+
}
|
|
146
|
+
return r.apply(this, arguments);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
var E = function() {
|
|
150
|
+
return this.xf["@@transducer/init"]();
|
|
151
|
+
}, j = function(e) {
|
|
152
|
+
return this.xf["@@transducer/result"](e);
|
|
153
|
+
}, x = function() {
|
|
154
|
+
function e(e, t) {
|
|
155
|
+
this.xf = t, this.f = e, this.all = !0;
|
|
156
|
+
}
|
|
157
|
+
return e.prototype["@@transducer/init"] = E, e.prototype["@@transducer/result"] = function(e) {
|
|
158
|
+
return this.all && (e = this.xf["@@transducer/step"](e, !0)), this.xf["@@transducer/result"](e);
|
|
159
|
+
}, e.prototype["@@transducer/step"] = function(e, t) {
|
|
160
|
+
var r;
|
|
161
|
+
return this.f(t) || (this.all = !1, e = (r = this.xf["@@transducer/step"](e, !1)) && r["@@transducer/reduced"] ? r : {
|
|
162
|
+
"@@transducer/value": r,
|
|
163
|
+
"@@transducer/reduced": !0
|
|
164
|
+
}), e;
|
|
165
|
+
}, e;
|
|
166
|
+
}();
|
|
167
|
+
function w(e) {
|
|
168
|
+
return function(t) {
|
|
169
|
+
return new x(e, t);
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
var O = h(g(["all"], w, (function(e, t) {
|
|
173
|
+
for (var r = 0; r < t.length;) {
|
|
174
|
+
if (!e(t[r])) return !1;
|
|
175
|
+
r += 1;
|
|
176
|
+
}
|
|
177
|
+
return !0;
|
|
178
|
+
})));
|
|
179
|
+
function S(e) {
|
|
180
|
+
for (var t, r = []; !(t = e.next()).done;) r.push(t.value);
|
|
181
|
+
return r;
|
|
182
|
+
}
|
|
183
|
+
function A(e, t, r) {
|
|
184
|
+
for (var n = 0, i = r.length; n < i;) {
|
|
185
|
+
if (e(t, r[n])) return !0;
|
|
186
|
+
n += 1;
|
|
187
|
+
}
|
|
188
|
+
return !1;
|
|
189
|
+
}
|
|
190
|
+
function _(e, t) {
|
|
191
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
192
|
+
}
|
|
193
|
+
var k = "function" == typeof Object.is ? Object.is : function(e, t) {
|
|
194
|
+
return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
|
|
195
|
+
}, P = Object.prototype.toString, M = function() {
|
|
196
|
+
return "[object Arguments]" === P.call(arguments) ? function(e) {
|
|
197
|
+
return "[object Arguments]" === P.call(e);
|
|
198
|
+
} : function(e) {
|
|
199
|
+
return _("callee", e);
|
|
200
|
+
};
|
|
201
|
+
}(), T = !{ toString: null }.propertyIsEnumerable("toString"), C = [
|
|
202
|
+
"constructor",
|
|
203
|
+
"valueOf",
|
|
204
|
+
"isPrototypeOf",
|
|
205
|
+
"toString",
|
|
206
|
+
"propertyIsEnumerable",
|
|
207
|
+
"hasOwnProperty",
|
|
208
|
+
"toLocaleString"
|
|
209
|
+
], R = function() {
|
|
210
|
+
"use strict";
|
|
211
|
+
return arguments.propertyIsEnumerable("length");
|
|
212
|
+
}(), I = function(e, t) {
|
|
213
|
+
for (var r = 0; r < e.length;) {
|
|
214
|
+
if (e[r] === t) return !0;
|
|
215
|
+
r += 1;
|
|
216
|
+
}
|
|
217
|
+
return !1;
|
|
218
|
+
}, N = "function" != typeof Object.keys || R ? p((function(e) {
|
|
219
|
+
if (Object(e) !== e) return [];
|
|
220
|
+
var t, r, n = [], i = R && M(e);
|
|
221
|
+
for (t in e) !_(t, e) || i && "length" === t || (n[n.length] = t);
|
|
222
|
+
if (T) for (r = C.length - 1; r >= 0;) _(t = C[r], e) && !I(n, t) && (n[n.length] = t), r -= 1;
|
|
223
|
+
return n;
|
|
224
|
+
})) : p((function(e) {
|
|
225
|
+
return Object(e) !== e ? [] : Object.keys(e);
|
|
226
|
+
})), V = p((function(e) {
|
|
227
|
+
return null === e ? "Null" : void 0 === e ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
|
|
228
|
+
}));
|
|
229
|
+
function F(e, t, r, n) {
|
|
230
|
+
var i = S(e);
|
|
231
|
+
function s(e, t) {
|
|
232
|
+
return q(e, t, r.slice(), n.slice());
|
|
233
|
+
}
|
|
234
|
+
return !A((function(e, t) {
|
|
235
|
+
return !A(s, t, e);
|
|
236
|
+
}), S(t), i);
|
|
237
|
+
}
|
|
238
|
+
function q(e, t, r, n) {
|
|
239
|
+
if (k(e, t)) return !0;
|
|
240
|
+
var i, s, o = V(e);
|
|
241
|
+
if (o !== V(t)) return !1;
|
|
242
|
+
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);
|
|
243
|
+
if ("function" == typeof e.equals || "function" == typeof t.equals) return "function" == typeof e.equals && e.equals(t) && "function" == typeof t.equals && t.equals(e);
|
|
244
|
+
switch (o) {
|
|
245
|
+
case "Arguments":
|
|
246
|
+
case "Array":
|
|
247
|
+
case "Object":
|
|
248
|
+
if ("function" == typeof e.constructor && "Promise" === (i = e.constructor, null == (s = String(i).match(/^function (\w*)/)) ? "" : s[1])) return e === t;
|
|
249
|
+
break;
|
|
250
|
+
case "Boolean":
|
|
251
|
+
case "Number":
|
|
252
|
+
case "String":
|
|
253
|
+
if (typeof e != typeof t || !k(e.valueOf(), t.valueOf())) return !1;
|
|
254
|
+
break;
|
|
255
|
+
case "Date":
|
|
256
|
+
if (!k(e.valueOf(), t.valueOf())) return !1;
|
|
257
|
+
break;
|
|
258
|
+
case "Error": return e.name === t.name && e.message === t.message;
|
|
259
|
+
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;
|
|
260
|
+
}
|
|
261
|
+
for (var a = r.length - 1; a >= 0;) {
|
|
262
|
+
if (r[a] === e) return n[a] === t;
|
|
263
|
+
a -= 1;
|
|
264
|
+
}
|
|
265
|
+
switch (o) {
|
|
266
|
+
case "Map": return e.size === t.size && F(e.entries(), t.entries(), r.concat([e]), n.concat([t]));
|
|
267
|
+
case "Set": return e.size === t.size && F(e.values(), t.values(), r.concat([e]), n.concat([t]));
|
|
268
|
+
case "Arguments":
|
|
269
|
+
case "Array":
|
|
270
|
+
case "Object":
|
|
271
|
+
case "Boolean":
|
|
272
|
+
case "Number":
|
|
273
|
+
case "String":
|
|
274
|
+
case "Date":
|
|
275
|
+
case "Error":
|
|
276
|
+
case "RegExp":
|
|
277
|
+
case "Int8Array":
|
|
278
|
+
case "Uint8Array":
|
|
279
|
+
case "Uint8ClampedArray":
|
|
280
|
+
case "Int16Array":
|
|
281
|
+
case "Uint16Array":
|
|
282
|
+
case "Int32Array":
|
|
283
|
+
case "Uint32Array":
|
|
284
|
+
case "Float32Array":
|
|
285
|
+
case "Float64Array":
|
|
286
|
+
case "ArrayBuffer": break;
|
|
287
|
+
default: return !1;
|
|
288
|
+
}
|
|
289
|
+
var c = N(e);
|
|
290
|
+
if (c.length !== N(t).length) return !1;
|
|
291
|
+
var u = r.concat([e]), l = n.concat([t]);
|
|
292
|
+
for (a = c.length - 1; a >= 0;) {
|
|
293
|
+
var f = c[a];
|
|
294
|
+
if (!_(f, t) || !q(t[f], e[f], u, l)) return !1;
|
|
295
|
+
a -= 1;
|
|
296
|
+
}
|
|
297
|
+
return !0;
|
|
298
|
+
}
|
|
299
|
+
var B = h((function(e, t) {
|
|
300
|
+
return q(e, t, [], []);
|
|
301
|
+
}));
|
|
302
|
+
function L(e, t) {
|
|
303
|
+
return function(e, t, r) {
|
|
304
|
+
var n, i;
|
|
305
|
+
if ("function" == typeof e.indexOf) switch (typeof t) {
|
|
306
|
+
case "number":
|
|
307
|
+
if (0 === t) {
|
|
308
|
+
for (n = 1 / t; r < e.length;) {
|
|
309
|
+
if (0 === (i = e[r]) && 1 / i === n) return r;
|
|
310
|
+
r += 1;
|
|
311
|
+
}
|
|
312
|
+
return -1;
|
|
313
|
+
}
|
|
314
|
+
if (t != t) {
|
|
315
|
+
for (; r < e.length;) {
|
|
316
|
+
if ("number" == typeof (i = e[r]) && i != i) return r;
|
|
317
|
+
r += 1;
|
|
318
|
+
}
|
|
319
|
+
return -1;
|
|
320
|
+
}
|
|
321
|
+
return e.indexOf(t, r);
|
|
322
|
+
case "string":
|
|
323
|
+
case "boolean":
|
|
324
|
+
case "function":
|
|
325
|
+
case "undefined": return e.indexOf(t, r);
|
|
326
|
+
case "object": if (null === t) return e.indexOf(t, r);
|
|
327
|
+
}
|
|
328
|
+
for (; r < e.length;) {
|
|
329
|
+
if (B(e[r], t)) return r;
|
|
330
|
+
r += 1;
|
|
331
|
+
}
|
|
332
|
+
return -1;
|
|
333
|
+
}(t, e, 0) >= 0;
|
|
334
|
+
}
|
|
335
|
+
function z(e, t) {
|
|
336
|
+
for (var r = 0, n = t.length, i = Array(n); r < n;) i[r] = e(t[r]), r += 1;
|
|
337
|
+
return i;
|
|
338
|
+
}
|
|
339
|
+
function D(e) {
|
|
340
|
+
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, "\\\"") + "\"";
|
|
341
|
+
}
|
|
342
|
+
var G = function(e) {
|
|
343
|
+
return (e < 10 ? "0" : "") + e;
|
|
344
|
+
}, U = "function" == typeof Date.prototype.toISOString ? function(e) {
|
|
345
|
+
return e.toISOString();
|
|
346
|
+
} : function(e) {
|
|
347
|
+
return e.getUTCFullYear() + "-" + G(e.getUTCMonth() + 1) + "-" + G(e.getUTCDate()) + "T" + G(e.getUTCHours()) + ":" + G(e.getUTCMinutes()) + ":" + G(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
|
|
348
|
+
};
|
|
349
|
+
function K(e, t, r) {
|
|
350
|
+
for (var n = 0, i = r.length; n < i;) t = e(t, r[n]), n += 1;
|
|
351
|
+
return t;
|
|
352
|
+
}
|
|
353
|
+
function $(e) {
|
|
354
|
+
return "[object Object]" === Object.prototype.toString.call(e);
|
|
355
|
+
}
|
|
356
|
+
var W = function() {
|
|
357
|
+
function e(e, t) {
|
|
358
|
+
this.xf = t, this.f = e;
|
|
359
|
+
}
|
|
360
|
+
return e.prototype["@@transducer/init"] = E, e.prototype["@@transducer/result"] = j, e.prototype["@@transducer/step"] = function(e, t) {
|
|
361
|
+
return this.f(t) ? this.xf["@@transducer/step"](e, t) : e;
|
|
362
|
+
}, e;
|
|
363
|
+
}();
|
|
364
|
+
function H(e) {
|
|
365
|
+
return function(t) {
|
|
366
|
+
return new W(e, t);
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
var Y = h(g(["fantasy-land/filter", "filter"], H, (function(e, t) {
|
|
370
|
+
return $(t) ? K((function(r, n) {
|
|
371
|
+
return e(t[n]) && (r[n] = t[n]), r;
|
|
372
|
+
}), {}, N(t)) : function(e, t) {
|
|
373
|
+
for (var r = 0, n = t.length, i = []; r < n;) e(t[r]) && (i[i.length] = t[r]), r += 1;
|
|
374
|
+
return i;
|
|
375
|
+
}(e, t);
|
|
376
|
+
}))), J = h((function(e, t) {
|
|
377
|
+
return Y((r = e, function() {
|
|
378
|
+
return !r.apply(this, arguments);
|
|
379
|
+
}), t);
|
|
380
|
+
var r;
|
|
381
|
+
}));
|
|
382
|
+
function X(e, t) {
|
|
383
|
+
var r = function(r) {
|
|
384
|
+
var n = t.concat([e]);
|
|
385
|
+
return L(r, n) ? "<Circular>" : X(r, n);
|
|
386
|
+
}, n = function(e, t) {
|
|
387
|
+
return z((function(t) {
|
|
388
|
+
return D(t) + ": " + r(e[t]);
|
|
389
|
+
}), t.slice().sort());
|
|
390
|
+
};
|
|
391
|
+
switch (Object.prototype.toString.call(e)) {
|
|
392
|
+
case "[object Arguments]": return "(function() { return arguments; }(" + z(r, e).join(", ") + "))";
|
|
393
|
+
case "[object Array]": return "[" + z(r, e).concat(n(e, J((function(e) {
|
|
394
|
+
return /^\d+$/.test(e);
|
|
395
|
+
}), N(e)))).join(", ") + "]";
|
|
396
|
+
case "[object Boolean]": return "object" == typeof e ? "new Boolean(" + r(e.valueOf()) + ")" : e.toString();
|
|
397
|
+
case "[object Date]": return "new Date(" + (isNaN(e.valueOf()) ? r(NaN) : D(U(e))) + ")";
|
|
398
|
+
case "[object Map]": return "new Map(" + r(Array.from(e)) + ")";
|
|
399
|
+
case "[object Null]": return "null";
|
|
400
|
+
case "[object Number]": return "object" == typeof e ? "new Number(" + r(e.valueOf()) + ")" : 1 / e == -Infinity ? "-0" : e.toString(10);
|
|
401
|
+
case "[object Set]": return "new Set(" + r(Array.from(e).sort()) + ")";
|
|
402
|
+
case "[object String]": return "object" == typeof e ? "new String(" + r(e.valueOf()) + ")" : D(e);
|
|
403
|
+
case "[object Undefined]": return "undefined";
|
|
404
|
+
default:
|
|
405
|
+
if ("function" == typeof e.toString) {
|
|
406
|
+
var i = e.toString();
|
|
407
|
+
if ("[object Object]" !== i) return i;
|
|
408
|
+
}
|
|
409
|
+
return "{" + n(e, N(e)).join(", ") + "}";
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
var Z = p((function(e) {
|
|
413
|
+
return X(e, []);
|
|
414
|
+
})), Q = h((function(e, t) {
|
|
415
|
+
if (e === t) return t;
|
|
416
|
+
function r(e, t) {
|
|
417
|
+
if (e > t != t > e) return t > e ? t : e;
|
|
418
|
+
}
|
|
419
|
+
var n = r(e, t);
|
|
420
|
+
if (void 0 !== n) return n;
|
|
421
|
+
var i = r(typeof e, typeof t);
|
|
422
|
+
if (void 0 !== i) return i === typeof e ? e : t;
|
|
423
|
+
var s = Z(e), o = r(s, Z(t));
|
|
424
|
+
return void 0 !== o && o === s ? e : t;
|
|
425
|
+
})), ee = function() {
|
|
426
|
+
function e(e, t) {
|
|
427
|
+
this.xf = t, this.f = e;
|
|
428
|
+
}
|
|
429
|
+
return e.prototype["@@transducer/init"] = E, e.prototype["@@transducer/result"] = j, e.prototype["@@transducer/step"] = function(e, t) {
|
|
430
|
+
return this.xf["@@transducer/step"](e, this.f(t));
|
|
431
|
+
}, e;
|
|
432
|
+
}(), te = h(g(["fantasy-land/map", "map"], (function(e) {
|
|
433
|
+
return function(t) {
|
|
434
|
+
return new ee(e, t);
|
|
435
|
+
};
|
|
436
|
+
}), (function(e, t) {
|
|
437
|
+
switch (Object.prototype.toString.call(t)) {
|
|
438
|
+
case "[object Function]": return d(t.length, (function() {
|
|
439
|
+
return e.call(this, t.apply(this, arguments));
|
|
440
|
+
}));
|
|
441
|
+
case "[object Object]": return K((function(r, n) {
|
|
442
|
+
return r[n] = e(t[n]), r;
|
|
443
|
+
}), {}, N(t));
|
|
444
|
+
default: return z(e, t);
|
|
445
|
+
}
|
|
446
|
+
}))), re = Number.isInteger || function(e) {
|
|
447
|
+
return (e | 0) === e;
|
|
448
|
+
};
|
|
449
|
+
function ne(e) {
|
|
450
|
+
return "[object String]" === Object.prototype.toString.call(e);
|
|
451
|
+
}
|
|
452
|
+
function ie(e, t) {
|
|
453
|
+
var r = e < 0 ? t.length + e : e;
|
|
454
|
+
return ne(t) ? t.charAt(r) : t[r];
|
|
455
|
+
}
|
|
456
|
+
var se = h((function(e, t) {
|
|
457
|
+
if (null != t) return re(e) ? ie(e, t) : t[e];
|
|
458
|
+
})), oe = h((function(e, t) {
|
|
459
|
+
return te(se(e), t);
|
|
460
|
+
})), ae = p((function(e) {
|
|
461
|
+
return !!b(e) || !!e && "object" == typeof e && !ne(e) && (0 === e.length || e.length > 0 && e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1));
|
|
462
|
+
})), ce = "undefined" != typeof Symbol ? Symbol.iterator : "@@iterator";
|
|
463
|
+
function ue(e, t, r) {
|
|
464
|
+
return function(n, i, s) {
|
|
465
|
+
if (ae(s)) return e(n, i, s);
|
|
466
|
+
if (null == s) return i;
|
|
467
|
+
if ("function" == typeof s["fantasy-land/reduce"]) return t(n, i, s, "fantasy-land/reduce");
|
|
468
|
+
if (null != s[ce]) return r(n, i, s[ce]());
|
|
469
|
+
if ("function" == typeof s.next) return r(n, i, s);
|
|
470
|
+
if ("function" == typeof s.reduce) return t(n, i, s, "reduce");
|
|
471
|
+
throw new TypeError("reduce: list must be array or iterable");
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
function le(e, t, r) {
|
|
475
|
+
for (var n = 0, i = r.length; n < i;) {
|
|
476
|
+
if ((t = e["@@transducer/step"](t, r[n])) && t["@@transducer/reduced"]) {
|
|
477
|
+
t = t["@@transducer/value"];
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
n += 1;
|
|
481
|
+
}
|
|
482
|
+
return e["@@transducer/result"](t);
|
|
483
|
+
}
|
|
484
|
+
var fe = h((function(e, t) {
|
|
485
|
+
return m(e.length, (function() {
|
|
486
|
+
return e.apply(t, arguments);
|
|
487
|
+
}));
|
|
488
|
+
}));
|
|
489
|
+
function pe(e, t, r) {
|
|
490
|
+
for (var n = r.next(); !n.done;) {
|
|
491
|
+
if ((t = e["@@transducer/step"](t, n.value)) && t["@@transducer/reduced"]) {
|
|
492
|
+
t = t["@@transducer/value"];
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
n = r.next();
|
|
496
|
+
}
|
|
497
|
+
return e["@@transducer/result"](t);
|
|
498
|
+
}
|
|
499
|
+
function he(e, t, r, n) {
|
|
500
|
+
return e["@@transducer/result"](r[n](fe(e["@@transducer/step"], e), t));
|
|
501
|
+
}
|
|
502
|
+
var me = ue(le, he, pe), ye = function() {
|
|
503
|
+
function e(e) {
|
|
504
|
+
this.f = e;
|
|
505
|
+
}
|
|
506
|
+
return e.prototype["@@transducer/init"] = function() {
|
|
507
|
+
throw new Error("init not implemented on XWrap");
|
|
508
|
+
}, e.prototype["@@transducer/result"] = function(e) {
|
|
509
|
+
return e;
|
|
510
|
+
}, e.prototype["@@transducer/step"] = function(e, t) {
|
|
511
|
+
return this.f(e, t);
|
|
512
|
+
}, e;
|
|
513
|
+
}();
|
|
514
|
+
var de = v((function(e, t, r) {
|
|
515
|
+
return me("function" == typeof e ? new ye(e) : e, t, r);
|
|
516
|
+
})), ve = p((function(e) {
|
|
517
|
+
return function() {
|
|
518
|
+
return e;
|
|
519
|
+
};
|
|
520
|
+
})), be = h((function(e, t) {
|
|
521
|
+
return e && t;
|
|
522
|
+
})), ge = p((function(e) {
|
|
523
|
+
return d(de(Q, 0, oe("length", e)), (function() {
|
|
524
|
+
for (var t = 0, r = e.length; t < r;) {
|
|
525
|
+
if (e[t].apply(this, arguments)) return !0;
|
|
526
|
+
t += 1;
|
|
527
|
+
}
|
|
528
|
+
return !1;
|
|
529
|
+
}));
|
|
530
|
+
}));
|
|
531
|
+
function Ee(e, t, r) {
|
|
532
|
+
for (var n = r.next(); !n.done;) t = e(t, n.value), n = r.next();
|
|
533
|
+
return t;
|
|
534
|
+
}
|
|
535
|
+
function je(e, t, r, n) {
|
|
536
|
+
return r[n](e, t);
|
|
537
|
+
}
|
|
538
|
+
var xe = ue(K, je, Ee), we = h((function(e, t) {
|
|
539
|
+
return "function" == typeof t["fantasy-land/ap"] ? t["fantasy-land/ap"](e) : "function" == typeof e.ap ? e.ap(t) : "function" == typeof e ? function(r) {
|
|
540
|
+
return e(r)(t(r));
|
|
541
|
+
} : xe((function(e, r) {
|
|
542
|
+
return function(e, t) {
|
|
543
|
+
var r;
|
|
544
|
+
t = t || [];
|
|
545
|
+
var n = (e = e || []).length, i = t.length, s = [];
|
|
546
|
+
for (r = 0; r < n;) s[s.length] = e[r], r += 1;
|
|
547
|
+
for (r = 0; r < i;) s[s.length] = t[r], r += 1;
|
|
548
|
+
return s;
|
|
549
|
+
}(e, te(r, t));
|
|
550
|
+
}), [], e);
|
|
551
|
+
})), Oe = h((function(e, t) {
|
|
552
|
+
return e.apply(this, t);
|
|
553
|
+
}));
|
|
554
|
+
var Se = h((function(e, t) {
|
|
555
|
+
var r = d(e, t);
|
|
556
|
+
return d(e, (function() {
|
|
557
|
+
return K(we, te(r, arguments[0]), Array.prototype.slice.call(arguments, 1));
|
|
558
|
+
}));
|
|
559
|
+
})), Ae = p((function(e) {
|
|
560
|
+
return Se(e.length, e);
|
|
561
|
+
})), _e = h((function(e, t) {
|
|
562
|
+
return function(e) {
|
|
563
|
+
var t = Object.prototype.toString.call(e);
|
|
564
|
+
return "[object Function]" === t || "[object AsyncFunction]" === t || "[object GeneratorFunction]" === t || "[object AsyncGeneratorFunction]" === t;
|
|
565
|
+
}(e) ? function() {
|
|
566
|
+
return e.apply(this, arguments) && t.apply(this, arguments);
|
|
567
|
+
} : Ae(be)(e, t);
|
|
568
|
+
})), ke = Ae(p((function(e) {
|
|
569
|
+
return !e;
|
|
570
|
+
})));
|
|
571
|
+
function Pe(e, t) {
|
|
572
|
+
return function() {
|
|
573
|
+
return t.call(this, e.apply(this, arguments));
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
function Me(e, t) {
|
|
577
|
+
return function() {
|
|
578
|
+
var r = arguments.length;
|
|
579
|
+
if (0 === r) return t();
|
|
580
|
+
var n = arguments[r - 1];
|
|
581
|
+
return b(n) || "function" != typeof n[e] ? t.apply(this, arguments) : n[e].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
var Te = v(Me("slice", (function(e, t, r) {
|
|
585
|
+
return Array.prototype.slice.call(r, e, t);
|
|
586
|
+
}))), Ce = p(Me("tail", Te(1, Infinity)));
|
|
587
|
+
function Re() {
|
|
588
|
+
if (0 === arguments.length) throw new Error("pipe requires at least one argument");
|
|
589
|
+
return m(arguments[0].length, de(Pe, arguments[0], Ce(arguments)));
|
|
590
|
+
}
|
|
591
|
+
var Ie = h((function(e, t) {
|
|
592
|
+
return null == t || t != t ? e : t;
|
|
593
|
+
})), Ne = p((function(e) {
|
|
594
|
+
return ie(-1, e);
|
|
595
|
+
}));
|
|
596
|
+
var Ve = p((function(e) {
|
|
597
|
+
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() : b(e) ? [] : ne(e) ? "" : $(e) ? {} : M(e) ? function() {
|
|
598
|
+
return arguments;
|
|
599
|
+
}() : function(e) {
|
|
600
|
+
var t = Object.prototype.toString.call(e);
|
|
601
|
+
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;
|
|
602
|
+
}(e) ? e.constructor.from("") : void 0;
|
|
603
|
+
})), Fe = p((function(e) {
|
|
604
|
+
return d(e.length, (function(t, r) {
|
|
605
|
+
var n = Array.prototype.slice.call(arguments, 0);
|
|
606
|
+
return n[0] = r, n[1] = t, e.apply(this, n);
|
|
607
|
+
}));
|
|
608
|
+
})), qe = function(e, t) {
|
|
609
|
+
switch (arguments.length) {
|
|
610
|
+
case 0: return qe;
|
|
611
|
+
case 1: return function t(r) {
|
|
612
|
+
return 0 === arguments.length ? t : k(e, r);
|
|
613
|
+
};
|
|
614
|
+
default: return k(e, t);
|
|
615
|
+
}
|
|
616
|
+
}, Be = h(L), Le = Te(0, -1), ze = p((function(e) {
|
|
617
|
+
return null != e && B(e, Ve(e));
|
|
618
|
+
}));
|
|
619
|
+
function De(e, t) {
|
|
620
|
+
for (var r = t, n = 0; n < e.length; n += 1) {
|
|
621
|
+
if (null == r) return;
|
|
622
|
+
var i = e[n];
|
|
623
|
+
r = re(i) ? ie(i, r) : r[i];
|
|
624
|
+
}
|
|
625
|
+
return r;
|
|
626
|
+
}
|
|
627
|
+
var Ge = v((function(e, t, r) {
|
|
628
|
+
var n, i = {};
|
|
629
|
+
for (n in r = r || {}, t = t || {}) _(n, t) && (i[n] = _(n, r) ? e(n, t[n], r[n]) : t[n]);
|
|
630
|
+
for (n in r) _(n, r) && !_(n, i) && (i[n] = r[n]);
|
|
631
|
+
return i;
|
|
632
|
+
})), Ue = v((function e(t, r, n) {
|
|
633
|
+
return Ge((function(r, n, i) {
|
|
634
|
+
return $(n) && $(i) ? e(t, n, i) : t(r, n, i);
|
|
635
|
+
}), r, n);
|
|
636
|
+
})), Ke = h((function(e, t) {
|
|
637
|
+
return Ue((function(e, t, r) {
|
|
638
|
+
return r;
|
|
639
|
+
}), e, t);
|
|
640
|
+
})), $e = h(De), We = v((function(e, t, r) {
|
|
641
|
+
return e(De(t, r));
|
|
642
|
+
})), He = h((function(e, t) {
|
|
643
|
+
for (var r = {}, n = 0; n < e.length;) e[n] in t && (r[e[n]] = t[e[n]]), n += 1;
|
|
644
|
+
return r;
|
|
645
|
+
})), Ye = v((function(e, t, r) {
|
|
646
|
+
return Ie(e, se(t, r));
|
|
647
|
+
})), Xe = B(ve(void 0)()), Ze = d(1, Re(V, qe("GeneratorFunction"))), Qe = d(1, Re(V, qe("AsyncFunction"))), et = ge([
|
|
648
|
+
Re(V, qe("Function")),
|
|
649
|
+
Ze,
|
|
650
|
+
Qe
|
|
651
|
+
]), rt = _e(d(1, et(Array.isArray) ? Array.isArray : Re(V, qe("Array"))), ze), nt = d(1, Re(V, qe("String"))), it = ke(et), st = Fe(Be), ot = d(3, (function(e, t, r) {
|
|
652
|
+
var n = $e(e, r), i = $e(Le(e), r);
|
|
653
|
+
if (!it(n) && !rt(e)) return Oe(fe(n, i), t);
|
|
654
|
+
})), at = a(((e, t) => {
|
|
655
|
+
t.exports = function(e) {
|
|
656
|
+
return null === e;
|
|
657
|
+
};
|
|
658
|
+
})), ct = a(((e, t) => {
|
|
659
|
+
t.exports = "object" == typeof global && global && global.Object === Object && global;
|
|
660
|
+
})), ut = a(((e, t) => {
|
|
661
|
+
var r = ct(), n = "object" == typeof self && self && self.Object === Object && self;
|
|
662
|
+
t.exports = r || n || Function("return this")();
|
|
663
|
+
})), lt = a(((e, t) => {
|
|
664
|
+
t.exports = ut().Symbol;
|
|
665
|
+
})), ft = a(((e, t) => {
|
|
666
|
+
var r = lt(), n = Object.prototype, i = n.hasOwnProperty, s = n.toString, o = r ? r.toStringTag : void 0;
|
|
667
|
+
t.exports = function(e) {
|
|
668
|
+
var t = i.call(e, o), r = e[o];
|
|
669
|
+
try {
|
|
670
|
+
e[o] = void 0;
|
|
671
|
+
var n = !0;
|
|
672
|
+
} catch (e) {}
|
|
673
|
+
var a = s.call(e);
|
|
674
|
+
return n && (t ? e[o] = r : delete e[o]), a;
|
|
675
|
+
};
|
|
676
|
+
})), pt = a(((e, t) => {
|
|
677
|
+
var r = Object.prototype.toString;
|
|
678
|
+
t.exports = function(e) {
|
|
679
|
+
return r.call(e);
|
|
680
|
+
};
|
|
681
|
+
})), ht = a(((e, t) => {
|
|
682
|
+
var r = lt(), n = ft(), i = pt(), s = r ? r.toStringTag : void 0;
|
|
683
|
+
t.exports = function(e) {
|
|
684
|
+
return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : s && s in Object(e) ? n(e) : i(e);
|
|
685
|
+
};
|
|
686
|
+
})), mt = a(((e, t) => {
|
|
687
|
+
t.exports = Array.isArray;
|
|
688
|
+
})), yt = a(((e, t) => {
|
|
689
|
+
t.exports = function(e) {
|
|
690
|
+
return null != e && "object" == typeof e;
|
|
691
|
+
};
|
|
692
|
+
})), dt = a(((e, t) => {
|
|
693
|
+
var r = ht(), n = mt(), i = yt();
|
|
694
|
+
t.exports = function(e) {
|
|
695
|
+
return "string" == typeof e || !n(e) && i(e) && "[object String]" == r(e);
|
|
696
|
+
};
|
|
697
|
+
})), vt = a(((e, t) => {
|
|
698
|
+
var r = ht(), n = yt();
|
|
699
|
+
t.exports = function(e) {
|
|
700
|
+
return "number" == typeof e || n(e) && "[object Number]" == r(e);
|
|
701
|
+
};
|
|
702
|
+
})), bt = a(((e, t) => {
|
|
703
|
+
var r = ht(), n = yt();
|
|
704
|
+
t.exports = function(e) {
|
|
705
|
+
return !0 === e || !1 === e || n(e) && "[object Boolean]" == r(e);
|
|
706
|
+
};
|
|
707
|
+
})), gt = a(((e, t) => {
|
|
708
|
+
t.exports = function(e) {
|
|
709
|
+
var t = typeof e;
|
|
710
|
+
return null != e && ("object" == t || "function" == t);
|
|
711
|
+
};
|
|
712
|
+
})), Et = a(((e, t) => {
|
|
713
|
+
t.exports = class {
|
|
714
|
+
constructor(e) {
|
|
715
|
+
this.namespace = e || new this.Namespace();
|
|
716
|
+
}
|
|
717
|
+
serialise(e) {
|
|
718
|
+
if (!(e instanceof this.namespace.elements.Element)) throw new TypeError(`Given element \`${e}\` is not an Element instance`);
|
|
719
|
+
const t = { element: e.element };
|
|
720
|
+
e._meta && e._meta.length > 0 && (t.meta = this.serialiseObject(e.meta)), e._attributes && e._attributes.length > 0 && (t.attributes = this.serialiseObject(e.attributes));
|
|
721
|
+
const r = this.serialiseContent(e.content);
|
|
722
|
+
return void 0 !== r && (t.content = r), t;
|
|
723
|
+
}
|
|
724
|
+
deserialise(e) {
|
|
725
|
+
if (!e.element) throw new Error("Given value is not an object containing an element name");
|
|
726
|
+
const t = new (this.namespace.getElementClass(e.element))();
|
|
727
|
+
t.element !== e.element && (t.element = e.element), e.meta && this.deserialiseObject(e.meta, t.meta), e.attributes && this.deserialiseObject(e.attributes, t.attributes);
|
|
728
|
+
const r = this.deserialiseContent(e.content);
|
|
729
|
+
return void 0 === r && null !== t.content || (t.content = r), t;
|
|
730
|
+
}
|
|
731
|
+
serialiseContent(e) {
|
|
732
|
+
if (e instanceof this.namespace.elements.Element) return this.serialise(e);
|
|
733
|
+
if (e instanceof this.namespace.KeyValuePair) {
|
|
734
|
+
const t = { key: this.serialise(e.key) };
|
|
735
|
+
return e.value && (t.value = this.serialise(e.value)), t;
|
|
736
|
+
}
|
|
737
|
+
if (e && e.map) {
|
|
738
|
+
if (0 === e.length) return;
|
|
739
|
+
return e.map(this.serialise, this);
|
|
740
|
+
}
|
|
741
|
+
return e;
|
|
742
|
+
}
|
|
743
|
+
deserialiseContent(e) {
|
|
744
|
+
if (e) {
|
|
745
|
+
if (e.element) return this.deserialise(e);
|
|
746
|
+
if (e.key) {
|
|
747
|
+
const t = new this.namespace.KeyValuePair(this.deserialise(e.key));
|
|
748
|
+
return e.value && (t.value = this.deserialise(e.value)), t;
|
|
749
|
+
}
|
|
750
|
+
if (e.map) return e.map(this.deserialise, this);
|
|
751
|
+
}
|
|
752
|
+
return e;
|
|
753
|
+
}
|
|
754
|
+
serialiseObject(e) {
|
|
755
|
+
const t = {};
|
|
756
|
+
if (e.forEach(((e, r) => {
|
|
757
|
+
e && (t[r.toValue()] = this.serialise(e));
|
|
758
|
+
})), 0 !== Object.keys(t).length) return t;
|
|
759
|
+
}
|
|
760
|
+
deserialiseObject(e, t) {
|
|
761
|
+
Object.keys(e).forEach(((r) => {
|
|
762
|
+
t.set(r, this.deserialise(e[r]));
|
|
763
|
+
}));
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
})), jt = a(((e, t) => {
|
|
767
|
+
t.exports = function() {
|
|
768
|
+
this.__data__ = [], this.size = 0;
|
|
769
|
+
};
|
|
770
|
+
})), xt = a(((e, t) => {
|
|
771
|
+
t.exports = function(e, t) {
|
|
772
|
+
return e === t || e != e && t != t;
|
|
773
|
+
};
|
|
774
|
+
})), wt = a(((e, t) => {
|
|
775
|
+
var r = xt();
|
|
776
|
+
t.exports = function(e, t) {
|
|
777
|
+
for (var n = e.length; n--;) if (r(e[n][0], t)) return n;
|
|
778
|
+
return -1;
|
|
779
|
+
};
|
|
780
|
+
})), Ot = a(((e, t) => {
|
|
781
|
+
var r = wt(), n = Array.prototype.splice;
|
|
782
|
+
t.exports = function(e) {
|
|
783
|
+
var t = this.__data__, i = r(t, e);
|
|
784
|
+
return !(i < 0) && (i == t.length - 1 ? t.pop() : n.call(t, i, 1), --this.size, !0);
|
|
785
|
+
};
|
|
786
|
+
})), St = a(((e, t) => {
|
|
787
|
+
var r = wt();
|
|
788
|
+
t.exports = function(e) {
|
|
789
|
+
var t = this.__data__, n = r(t, e);
|
|
790
|
+
return n < 0 ? void 0 : t[n][1];
|
|
791
|
+
};
|
|
792
|
+
})), At = a(((e, t) => {
|
|
793
|
+
var r = wt();
|
|
794
|
+
t.exports = function(e) {
|
|
795
|
+
return r(this.__data__, e) > -1;
|
|
796
|
+
};
|
|
797
|
+
})), _t = a(((e, t) => {
|
|
798
|
+
var r = wt();
|
|
799
|
+
t.exports = function(e, t) {
|
|
800
|
+
var n = this.__data__, i = r(n, e);
|
|
801
|
+
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
802
|
+
};
|
|
803
|
+
})), kt = a(((e, t) => {
|
|
804
|
+
var r = jt(), n = Ot(), i = St(), s = At(), o = _t();
|
|
805
|
+
function a(e) {
|
|
806
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
807
|
+
for (this.clear(); ++t < r;) {
|
|
808
|
+
var n = e[t];
|
|
809
|
+
this.set(n[0], n[1]);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = i, a.prototype.has = s, a.prototype.set = o, t.exports = a;
|
|
813
|
+
})), Pt = a(((e, t) => {
|
|
814
|
+
var r = kt();
|
|
815
|
+
t.exports = function() {
|
|
816
|
+
this.__data__ = new r(), this.size = 0;
|
|
817
|
+
};
|
|
818
|
+
})), Mt = a(((e, t) => {
|
|
819
|
+
t.exports = function(e) {
|
|
820
|
+
var t = this.__data__, r = t.delete(e);
|
|
821
|
+
return this.size = t.size, r;
|
|
822
|
+
};
|
|
823
|
+
})), Tt = a(((e, t) => {
|
|
824
|
+
t.exports = function(e) {
|
|
825
|
+
return this.__data__.get(e);
|
|
826
|
+
};
|
|
827
|
+
})), Ct = a(((e, t) => {
|
|
828
|
+
t.exports = function(e) {
|
|
829
|
+
return this.__data__.has(e);
|
|
830
|
+
};
|
|
831
|
+
})), Rt = a(((e, t) => {
|
|
832
|
+
var r = ht(), n = gt();
|
|
833
|
+
t.exports = function(e) {
|
|
834
|
+
if (!n(e)) return !1;
|
|
835
|
+
var t = r(e);
|
|
836
|
+
return "[object Function]" == t || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t;
|
|
837
|
+
};
|
|
838
|
+
})), It = a(((e, t) => {
|
|
839
|
+
t.exports = ut()["__core-js_shared__"];
|
|
840
|
+
})), Nt = a(((e, t) => {
|
|
841
|
+
var r, n = It(), i = (r = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "")) ? "Symbol(src)_1." + r : "";
|
|
842
|
+
t.exports = function(e) {
|
|
843
|
+
return !!i && i in e;
|
|
844
|
+
};
|
|
845
|
+
})), Vt = a(((e, t) => {
|
|
846
|
+
var r = Function.prototype.toString;
|
|
847
|
+
t.exports = function(e) {
|
|
848
|
+
if (null != e) {
|
|
849
|
+
try {
|
|
850
|
+
return r.call(e);
|
|
851
|
+
} catch (e) {}
|
|
852
|
+
try {
|
|
853
|
+
return e + "";
|
|
854
|
+
} catch (e) {}
|
|
855
|
+
}
|
|
856
|
+
return "";
|
|
857
|
+
};
|
|
858
|
+
})), Ft = a(((e, t) => {
|
|
859
|
+
var r = Rt(), n = Nt(), i = gt(), s = Vt(), o = /^\[object .+?Constructor\]$/, a = Function.prototype, c = Object.prototype, u = a.toString, l = c.hasOwnProperty, f = RegExp("^" + u.call(l).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
860
|
+
t.exports = function(e) {
|
|
861
|
+
return !(!i(e) || n(e)) && (r(e) ? f : o).test(s(e));
|
|
862
|
+
};
|
|
863
|
+
})), qt = a(((e, t) => {
|
|
864
|
+
t.exports = function(e, t) {
|
|
865
|
+
return null == e ? void 0 : e[t];
|
|
866
|
+
};
|
|
867
|
+
})), Bt = a(((e, t) => {
|
|
868
|
+
var r = Ft(), n = qt();
|
|
869
|
+
t.exports = function(e, t) {
|
|
870
|
+
var i = n(e, t);
|
|
871
|
+
return r(i) ? i : void 0;
|
|
872
|
+
};
|
|
873
|
+
})), Lt = a(((e, t) => {
|
|
874
|
+
t.exports = Bt()(ut(), "Map");
|
|
875
|
+
})), zt = a(((e, t) => {
|
|
876
|
+
t.exports = Bt()(Object, "create");
|
|
877
|
+
})), Dt = a(((e, t) => {
|
|
878
|
+
var r = zt();
|
|
879
|
+
t.exports = function() {
|
|
880
|
+
this.__data__ = r ? r(null) : {}, this.size = 0;
|
|
881
|
+
};
|
|
882
|
+
})), Gt = a(((e, t) => {
|
|
883
|
+
t.exports = function(e) {
|
|
884
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
885
|
+
return this.size -= t ? 1 : 0, t;
|
|
886
|
+
};
|
|
887
|
+
})), Ut = a(((e, t) => {
|
|
888
|
+
var r = zt(), n = Object.prototype.hasOwnProperty;
|
|
889
|
+
t.exports = function(e) {
|
|
890
|
+
var t = this.__data__;
|
|
891
|
+
if (r) {
|
|
892
|
+
var i = t[e];
|
|
893
|
+
return "__lodash_hash_undefined__" === i ? void 0 : i;
|
|
894
|
+
}
|
|
895
|
+
return n.call(t, e) ? t[e] : void 0;
|
|
896
|
+
};
|
|
897
|
+
})), Kt = a(((e, t) => {
|
|
898
|
+
var r = zt(), n = Object.prototype.hasOwnProperty;
|
|
899
|
+
t.exports = function(e) {
|
|
900
|
+
var t = this.__data__;
|
|
901
|
+
return r ? void 0 !== t[e] : n.call(t, e);
|
|
902
|
+
};
|
|
903
|
+
})), $t = a(((e, t) => {
|
|
904
|
+
var r = zt();
|
|
905
|
+
t.exports = function(e, t) {
|
|
906
|
+
var n = this.__data__;
|
|
907
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = r && void 0 === t ? "__lodash_hash_undefined__" : t, this;
|
|
908
|
+
};
|
|
909
|
+
})), Wt = a(((e, t) => {
|
|
910
|
+
var r = Dt(), n = Gt(), i = Ut(), s = Kt(), o = $t();
|
|
911
|
+
function a(e) {
|
|
912
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
913
|
+
for (this.clear(); ++t < r;) {
|
|
914
|
+
var n = e[t];
|
|
915
|
+
this.set(n[0], n[1]);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = i, a.prototype.has = s, a.prototype.set = o, t.exports = a;
|
|
919
|
+
})), Ht = a(((e, t) => {
|
|
920
|
+
var r = Wt(), n = kt(), i = Lt();
|
|
921
|
+
t.exports = function() {
|
|
922
|
+
this.size = 0, this.__data__ = {
|
|
923
|
+
hash: new r(),
|
|
924
|
+
map: new (i || n)(),
|
|
925
|
+
string: new r()
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
})), Yt = a(((e, t) => {
|
|
929
|
+
t.exports = function(e) {
|
|
930
|
+
var t = typeof e;
|
|
931
|
+
return "string" == t || "number" == t || "symbol" == t || "boolean" == t ? "__proto__" !== e : null === e;
|
|
932
|
+
};
|
|
933
|
+
})), Jt = a(((e, t) => {
|
|
934
|
+
var r = Yt();
|
|
935
|
+
t.exports = function(e, t) {
|
|
936
|
+
var n = e.__data__;
|
|
937
|
+
return r(t) ? n["string" == typeof t ? "string" : "hash"] : n.map;
|
|
938
|
+
};
|
|
939
|
+
})), Xt = a(((e, t) => {
|
|
940
|
+
var r = Jt();
|
|
941
|
+
t.exports = function(e) {
|
|
942
|
+
var t = r(this, e).delete(e);
|
|
943
|
+
return this.size -= t ? 1 : 0, t;
|
|
944
|
+
};
|
|
945
|
+
})), Zt = a(((e, t) => {
|
|
946
|
+
var r = Jt();
|
|
947
|
+
t.exports = function(e) {
|
|
948
|
+
return r(this, e).get(e);
|
|
949
|
+
};
|
|
950
|
+
})), Qt = a(((e, t) => {
|
|
951
|
+
var r = Jt();
|
|
952
|
+
t.exports = function(e) {
|
|
953
|
+
return r(this, e).has(e);
|
|
954
|
+
};
|
|
955
|
+
})), er = a(((e, t) => {
|
|
956
|
+
var r = Jt();
|
|
957
|
+
t.exports = function(e, t) {
|
|
958
|
+
var n = r(this, e), i = n.size;
|
|
959
|
+
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
960
|
+
};
|
|
961
|
+
})), tr = a(((e, t) => {
|
|
962
|
+
var r = Ht(), n = Xt(), i = Zt(), s = Qt(), o = er();
|
|
963
|
+
function a(e) {
|
|
964
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
965
|
+
for (this.clear(); ++t < r;) {
|
|
966
|
+
var n = e[t];
|
|
967
|
+
this.set(n[0], n[1]);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = i, a.prototype.has = s, a.prototype.set = o, t.exports = a;
|
|
971
|
+
})), rr = a(((e, t) => {
|
|
972
|
+
var r = kt(), n = Lt(), i = tr();
|
|
973
|
+
t.exports = function(e, t) {
|
|
974
|
+
var s = this.__data__;
|
|
975
|
+
if (s instanceof r) {
|
|
976
|
+
var o = s.__data__;
|
|
977
|
+
if (!n || o.length < 199) return o.push([e, t]), this.size = ++s.size, this;
|
|
978
|
+
s = this.__data__ = new i(o);
|
|
979
|
+
}
|
|
980
|
+
return s.set(e, t), this.size = s.size, this;
|
|
981
|
+
};
|
|
982
|
+
})), nr = a(((e, t) => {
|
|
983
|
+
var r = kt(), n = Pt(), i = Mt(), s = Tt(), o = Ct(), a = rr();
|
|
984
|
+
function c(e) {
|
|
985
|
+
var t = this.__data__ = new r(e);
|
|
986
|
+
this.size = t.size;
|
|
987
|
+
}
|
|
988
|
+
c.prototype.clear = n, c.prototype.delete = i, c.prototype.get = s, c.prototype.has = o, c.prototype.set = a, t.exports = c;
|
|
989
|
+
})), ir = a(((e, t) => {
|
|
990
|
+
t.exports = function(e) {
|
|
991
|
+
return this.__data__.set(e, "__lodash_hash_undefined__"), this;
|
|
992
|
+
};
|
|
993
|
+
})), sr = a(((e, t) => {
|
|
994
|
+
t.exports = function(e) {
|
|
995
|
+
return this.__data__.has(e);
|
|
996
|
+
};
|
|
997
|
+
})), or = a(((e, t) => {
|
|
998
|
+
var r = tr(), n = ir(), i = sr();
|
|
999
|
+
function s(e) {
|
|
1000
|
+
var t = -1, n = null == e ? 0 : e.length;
|
|
1001
|
+
for (this.__data__ = new r(); ++t < n;) this.add(e[t]);
|
|
1002
|
+
}
|
|
1003
|
+
s.prototype.add = s.prototype.push = n, s.prototype.has = i, t.exports = s;
|
|
1004
|
+
})), ar = a(((e, t) => {
|
|
1005
|
+
t.exports = function(e, t) {
|
|
1006
|
+
for (var r = -1, n = null == e ? 0 : e.length; ++r < n;) if (t(e[r], r, e)) return !0;
|
|
1007
|
+
return !1;
|
|
1008
|
+
};
|
|
1009
|
+
})), cr = a(((e, t) => {
|
|
1010
|
+
t.exports = function(e, t) {
|
|
1011
|
+
return e.has(t);
|
|
1012
|
+
};
|
|
1013
|
+
})), ur = a(((e, t) => {
|
|
1014
|
+
var r = or(), n = ar(), i = cr();
|
|
1015
|
+
t.exports = function(e, t, s, o, a, c) {
|
|
1016
|
+
var u = 1 & s, l = e.length, f = t.length;
|
|
1017
|
+
if (l != f && !(u && f > l)) return !1;
|
|
1018
|
+
var p = c.get(e), h = c.get(t);
|
|
1019
|
+
if (p && h) return p == t && h == e;
|
|
1020
|
+
var m = -1, y = !0, d = 2 & s ? new r() : void 0;
|
|
1021
|
+
for (c.set(e, t), c.set(t, e); ++m < l;) {
|
|
1022
|
+
var v = e[m], b = t[m];
|
|
1023
|
+
if (o) var g = u ? o(b, v, m, t, e, c) : o(v, b, m, e, t, c);
|
|
1024
|
+
if (void 0 !== g) {
|
|
1025
|
+
if (g) continue;
|
|
1026
|
+
y = !1;
|
|
1027
|
+
break;
|
|
1028
|
+
}
|
|
1029
|
+
if (d) {
|
|
1030
|
+
if (!n(t, (function(e, t) {
|
|
1031
|
+
if (!i(d, t) && (v === e || a(v, e, s, o, c))) return d.push(t);
|
|
1032
|
+
}))) {
|
|
1033
|
+
y = !1;
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
} else if (v !== b && !a(v, b, s, o, c)) {
|
|
1037
|
+
y = !1;
|
|
1038
|
+
break;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
return c.delete(e), c.delete(t), y;
|
|
1042
|
+
};
|
|
1043
|
+
})), lr = a(((e, t) => {
|
|
1044
|
+
t.exports = ut().Uint8Array;
|
|
1045
|
+
})), fr = a(((e, t) => {
|
|
1046
|
+
t.exports = function(e) {
|
|
1047
|
+
var t = -1, r = Array(e.size);
|
|
1048
|
+
return e.forEach((function(e, n) {
|
|
1049
|
+
r[++t] = [n, e];
|
|
1050
|
+
})), r;
|
|
1051
|
+
};
|
|
1052
|
+
})), pr = a(((e, t) => {
|
|
1053
|
+
t.exports = function(e) {
|
|
1054
|
+
var t = -1, r = Array(e.size);
|
|
1055
|
+
return e.forEach((function(e) {
|
|
1056
|
+
r[++t] = e;
|
|
1057
|
+
})), r;
|
|
1058
|
+
};
|
|
1059
|
+
})), hr = a(((e, t) => {
|
|
1060
|
+
var r = lt(), n = lr(), i = xt(), s = ur(), o = fr(), a = pr(), c = r ? r.prototype : void 0, u = c ? c.valueOf : void 0;
|
|
1061
|
+
t.exports = function(e, t, r, c, l, f, p) {
|
|
1062
|
+
switch (r) {
|
|
1063
|
+
case "[object DataView]":
|
|
1064
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
1065
|
+
e = e.buffer, t = t.buffer;
|
|
1066
|
+
case "[object ArrayBuffer]": return !(e.byteLength != t.byteLength || !f(new n(e), new n(t)));
|
|
1067
|
+
case "[object Boolean]":
|
|
1068
|
+
case "[object Date]":
|
|
1069
|
+
case "[object Number]": return i(+e, +t);
|
|
1070
|
+
case "[object Error]": return e.name == t.name && e.message == t.message;
|
|
1071
|
+
case "[object RegExp]":
|
|
1072
|
+
case "[object String]": return e == t + "";
|
|
1073
|
+
case "[object Map]": var h = o;
|
|
1074
|
+
case "[object Set]":
|
|
1075
|
+
var m = 1 & c;
|
|
1076
|
+
if (h || (h = a), e.size != t.size && !m) return !1;
|
|
1077
|
+
var y = p.get(e);
|
|
1078
|
+
if (y) return y == t;
|
|
1079
|
+
c |= 2, p.set(e, t);
|
|
1080
|
+
var d = s(h(e), h(t), c, l, f, p);
|
|
1081
|
+
return p.delete(e), d;
|
|
1082
|
+
case "[object Symbol]": if (u) return u.call(e) == u.call(t);
|
|
1083
|
+
}
|
|
1084
|
+
return !1;
|
|
1085
|
+
};
|
|
1086
|
+
})), mr = a(((e, t) => {
|
|
1087
|
+
t.exports = function(e, t) {
|
|
1088
|
+
for (var r = -1, n = t.length, i = e.length; ++r < n;) e[i + r] = t[r];
|
|
1089
|
+
return e;
|
|
1090
|
+
};
|
|
1091
|
+
})), yr = a(((e, t) => {
|
|
1092
|
+
var r = mr(), n = mt();
|
|
1093
|
+
t.exports = function(e, t, i) {
|
|
1094
|
+
var s = t(e);
|
|
1095
|
+
return n(e) ? s : r(s, i(e));
|
|
1096
|
+
};
|
|
1097
|
+
})), dr = a(((e, t) => {
|
|
1098
|
+
t.exports = function(e, t) {
|
|
1099
|
+
for (var r = -1, n = null == e ? 0 : e.length, i = 0, s = []; ++r < n;) {
|
|
1100
|
+
var o = e[r];
|
|
1101
|
+
t(o, r, e) && (s[i++] = o);
|
|
1102
|
+
}
|
|
1103
|
+
return s;
|
|
1104
|
+
};
|
|
1105
|
+
})), vr = a(((e, t) => {
|
|
1106
|
+
t.exports = function() {
|
|
1107
|
+
return [];
|
|
1108
|
+
};
|
|
1109
|
+
})), br = a(((e, t) => {
|
|
1110
|
+
var r = dr(), n = vr(), i = Object.prototype.propertyIsEnumerable, s = Object.getOwnPropertySymbols;
|
|
1111
|
+
t.exports = s ? function(e) {
|
|
1112
|
+
return null == e ? [] : (e = Object(e), r(s(e), (function(t) {
|
|
1113
|
+
return i.call(e, t);
|
|
1114
|
+
})));
|
|
1115
|
+
} : n;
|
|
1116
|
+
})), gr = a(((e, t) => {
|
|
1117
|
+
t.exports = function(e, t) {
|
|
1118
|
+
for (var r = -1, n = Array(e); ++r < e;) n[r] = t(r);
|
|
1119
|
+
return n;
|
|
1120
|
+
};
|
|
1121
|
+
})), Er = a(((e, t) => {
|
|
1122
|
+
var r = ht(), n = yt();
|
|
1123
|
+
t.exports = function(e) {
|
|
1124
|
+
return n(e) && "[object Arguments]" == r(e);
|
|
1125
|
+
};
|
|
1126
|
+
})), jr = a(((e, t) => {
|
|
1127
|
+
var r = Er(), n = yt(), i = Object.prototype, s = i.hasOwnProperty, o = i.propertyIsEnumerable;
|
|
1128
|
+
t.exports = r(function() {
|
|
1129
|
+
return arguments;
|
|
1130
|
+
}()) ? r : function(e) {
|
|
1131
|
+
return n(e) && s.call(e, "callee") && !o.call(e, "callee");
|
|
1132
|
+
};
|
|
1133
|
+
})), xr = a(((e, t) => {
|
|
1134
|
+
t.exports = function() {
|
|
1135
|
+
return !1;
|
|
1136
|
+
};
|
|
1137
|
+
})), wr = a(((e, t) => {
|
|
1138
|
+
var r = ut(), n = xr(), i = "object" == typeof e && e && !e.nodeType && e, s = i && "object" == typeof t && t && !t.nodeType && t, o = s && s.exports === i ? r.Buffer : void 0;
|
|
1139
|
+
t.exports = (o ? o.isBuffer : void 0) || n;
|
|
1140
|
+
})), Or = a(((e, t) => {
|
|
1141
|
+
var r = /^(?:0|[1-9]\d*)$/;
|
|
1142
|
+
t.exports = function(e, t) {
|
|
1143
|
+
var n = typeof e;
|
|
1144
|
+
return !!(t = null == t ? 9007199254740991 : t) && ("number" == n || "symbol" != n && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1145
|
+
};
|
|
1146
|
+
})), Sr = a(((e, t) => {
|
|
1147
|
+
t.exports = function(e) {
|
|
1148
|
+
return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991;
|
|
1149
|
+
};
|
|
1150
|
+
})), Ar = a(((e, t) => {
|
|
1151
|
+
var r = ht(), n = Sr(), i = yt(), s = {};
|
|
1152
|
+
s["[object Float32Array]"] = s["[object Float64Array]"] = s["[object Int8Array]"] = s["[object Int16Array]"] = s["[object Int32Array]"] = s["[object Uint8Array]"] = s["[object Uint8ClampedArray]"] = s["[object Uint16Array]"] = s["[object Uint32Array]"] = !0, s["[object Arguments]"] = s["[object Array]"] = s["[object ArrayBuffer]"] = s["[object Boolean]"] = s["[object DataView]"] = s["[object Date]"] = s["[object Error]"] = s["[object Function]"] = s["[object Map]"] = s["[object Number]"] = s["[object Object]"] = s["[object RegExp]"] = s["[object Set]"] = s["[object String]"] = s["[object WeakMap]"] = !1, t.exports = function(e) {
|
|
1153
|
+
return i(e) && n(e.length) && !!s[r(e)];
|
|
1154
|
+
};
|
|
1155
|
+
})), _r = a(((e, t) => {
|
|
1156
|
+
t.exports = function(e) {
|
|
1157
|
+
return function(t) {
|
|
1158
|
+
return e(t);
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
})), kr = a(((e, t) => {
|
|
1162
|
+
var r = ct(), n = "object" == typeof e && e && !e.nodeType && e, i = n && "object" == typeof t && t && !t.nodeType && t, s = i && i.exports === n && r.process;
|
|
1163
|
+
t.exports = function() {
|
|
1164
|
+
try {
|
|
1165
|
+
return i && i.require && i.require("util").types || s && s.binding && s.binding("util");
|
|
1166
|
+
} catch (e) {}
|
|
1167
|
+
}();
|
|
1168
|
+
})), Pr = a(((e, t) => {
|
|
1169
|
+
var r = Ar(), n = _r(), i = kr(), s = i && i.isTypedArray;
|
|
1170
|
+
t.exports = s ? n(s) : r;
|
|
1171
|
+
})), Mr = a(((e, t) => {
|
|
1172
|
+
var r = gr(), n = jr(), i = mt(), s = wr(), o = Or(), a = Pr(), c = Object.prototype.hasOwnProperty;
|
|
1173
|
+
t.exports = function(e, t) {
|
|
1174
|
+
var u = i(e), l = !u && n(e), f = !u && !l && s(e), p = !u && !l && !f && a(e), h = u || l || f || p, m = h ? r(e.length, String) : [], y = m.length;
|
|
1175
|
+
for (var d in e) !t && !c.call(e, d) || h && ("length" == d || f && ("offset" == d || "parent" == d) || p && ("buffer" == d || "byteLength" == d || "byteOffset" == d) || o(d, y)) || m.push(d);
|
|
1176
|
+
return m;
|
|
1177
|
+
};
|
|
1178
|
+
})), Tr = a(((e, t) => {
|
|
1179
|
+
var r = Object.prototype;
|
|
1180
|
+
t.exports = function(e) {
|
|
1181
|
+
var t = e && e.constructor;
|
|
1182
|
+
return e === ("function" == typeof t && t.prototype || r);
|
|
1183
|
+
};
|
|
1184
|
+
})), Cr = a(((e, t) => {
|
|
1185
|
+
t.exports = function(e, t) {
|
|
1186
|
+
return function(r) {
|
|
1187
|
+
return e(t(r));
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
})), Rr = a(((e, t) => {
|
|
1191
|
+
t.exports = Cr()(Object.keys, Object);
|
|
1192
|
+
})), Ir = a(((e, t) => {
|
|
1193
|
+
var r = Tr(), n = Rr(), i = Object.prototype.hasOwnProperty;
|
|
1194
|
+
t.exports = function(e) {
|
|
1195
|
+
if (!r(e)) return n(e);
|
|
1196
|
+
var t = [];
|
|
1197
|
+
for (var s in Object(e)) i.call(e, s) && "constructor" != s && t.push(s);
|
|
1198
|
+
return t;
|
|
1199
|
+
};
|
|
1200
|
+
})), Nr = a(((e, t) => {
|
|
1201
|
+
var r = Rt(), n = Sr();
|
|
1202
|
+
t.exports = function(e) {
|
|
1203
|
+
return null != e && n(e.length) && !r(e);
|
|
1204
|
+
};
|
|
1205
|
+
})), Vr = a(((e, t) => {
|
|
1206
|
+
var r = Mr(), n = Ir(), i = Nr();
|
|
1207
|
+
t.exports = function(e) {
|
|
1208
|
+
return i(e) ? r(e) : n(e);
|
|
1209
|
+
};
|
|
1210
|
+
})), Fr = a(((e, t) => {
|
|
1211
|
+
var r = yr(), n = br(), i = Vr();
|
|
1212
|
+
t.exports = function(e) {
|
|
1213
|
+
return r(e, i, n);
|
|
1214
|
+
};
|
|
1215
|
+
})), qr = a(((e, t) => {
|
|
1216
|
+
var r = Fr(), n = Object.prototype.hasOwnProperty;
|
|
1217
|
+
t.exports = function(e, t, i, s, o, a) {
|
|
1218
|
+
var c = 1 & i, u = r(e), l = u.length;
|
|
1219
|
+
if (l != r(t).length && !c) return !1;
|
|
1220
|
+
for (var f = l; f--;) {
|
|
1221
|
+
var p = u[f];
|
|
1222
|
+
if (!(c ? p in t : n.call(t, p))) return !1;
|
|
1223
|
+
}
|
|
1224
|
+
var h = a.get(e), m = a.get(t);
|
|
1225
|
+
if (h && m) return h == t && m == e;
|
|
1226
|
+
var y = !0;
|
|
1227
|
+
a.set(e, t), a.set(t, e);
|
|
1228
|
+
for (var d = c; ++f < l;) {
|
|
1229
|
+
var v = e[p = u[f]], b = t[p];
|
|
1230
|
+
if (s) var g = c ? s(b, v, p, t, e, a) : s(v, b, p, e, t, a);
|
|
1231
|
+
if (!(void 0 === g ? v === b || o(v, b, i, s, a) : g)) {
|
|
1232
|
+
y = !1;
|
|
1233
|
+
break;
|
|
1234
|
+
}
|
|
1235
|
+
d || (d = "constructor" == p);
|
|
1236
|
+
}
|
|
1237
|
+
if (y && !d) {
|
|
1238
|
+
var E = e.constructor, j = t.constructor;
|
|
1239
|
+
E == j || !("constructor" in e) || !("constructor" in t) || "function" == typeof E && E instanceof E && "function" == typeof j && j instanceof j || (y = !1);
|
|
1240
|
+
}
|
|
1241
|
+
return a.delete(e), a.delete(t), y;
|
|
1242
|
+
};
|
|
1243
|
+
})), Br = a(((e, t) => {
|
|
1244
|
+
t.exports = Bt()(ut(), "DataView");
|
|
1245
|
+
})), Lr = a(((e, t) => {
|
|
1246
|
+
t.exports = Bt()(ut(), "Promise");
|
|
1247
|
+
})), zr = a(((e, t) => {
|
|
1248
|
+
t.exports = Bt()(ut(), "Set");
|
|
1249
|
+
})), Dr = a(((e, t) => {
|
|
1250
|
+
t.exports = Bt()(ut(), "WeakMap");
|
|
1251
|
+
})), Gr = a(((e, t) => {
|
|
1252
|
+
var r = Br(), n = Lt(), i = Lr(), s = zr(), o = Dr(), a = ht(), c = Vt(), u = "[object Map]", l = "[object Promise]", f = "[object Set]", p = "[object WeakMap]", h = "[object DataView]", m = c(r), y = c(n), d = c(i), v = c(s), b = c(o), g = a;
|
|
1253
|
+
(r && g(new r(/* @__PURE__ */ new ArrayBuffer(1))) != h || n && g(new n()) != u || i && g(i.resolve()) != l || s && g(new s()) != f || o && g(new o()) != p) && (g = function(e) {
|
|
1254
|
+
var t = a(e), r = "[object Object]" == t ? e.constructor : void 0, n = r ? c(r) : "";
|
|
1255
|
+
if (n) switch (n) {
|
|
1256
|
+
case m: return h;
|
|
1257
|
+
case y: return u;
|
|
1258
|
+
case d: return l;
|
|
1259
|
+
case v: return f;
|
|
1260
|
+
case b: return p;
|
|
1261
|
+
}
|
|
1262
|
+
return t;
|
|
1263
|
+
}), t.exports = g;
|
|
1264
|
+
})), Ur = a(((e, t) => {
|
|
1265
|
+
var r = nr(), n = ur(), i = hr(), s = qr(), o = Gr(), a = mt(), c = wr(), u = Pr(), l = "[object Arguments]", f = "[object Array]", p = "[object Object]", h = Object.prototype.hasOwnProperty;
|
|
1266
|
+
t.exports = function(e, t, m, y, d, v) {
|
|
1267
|
+
var b = a(e), g = a(t), E = b ? f : o(e), j = g ? f : o(t), x = (E = E == l ? p : E) == p, w = (j = j == l ? p : j) == p, O = E == j;
|
|
1268
|
+
if (O && c(e)) {
|
|
1269
|
+
if (!c(t)) return !1;
|
|
1270
|
+
b = !0, x = !1;
|
|
1271
|
+
}
|
|
1272
|
+
if (O && !x) return v || (v = new r()), b || u(e) ? n(e, t, m, y, d, v) : i(e, t, E, m, y, d, v);
|
|
1273
|
+
if (!(1 & m)) {
|
|
1274
|
+
var S = x && h.call(e, "__wrapped__"), A = w && h.call(t, "__wrapped__");
|
|
1275
|
+
if (S || A) {
|
|
1276
|
+
var _ = S ? e.value() : e, k = A ? t.value() : t;
|
|
1277
|
+
return v || (v = new r()), d(_, k, m, y, v);
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
return !!O && (v || (v = new r()), s(e, t, m, y, d, v));
|
|
1281
|
+
};
|
|
1282
|
+
})), Kr = a(((e, t) => {
|
|
1283
|
+
var r = Ur(), n = yt();
|
|
1284
|
+
t.exports = function e(t, i, s, o, a) {
|
|
1285
|
+
return t === i || (null == t || null == i || !n(t) && !n(i) ? t != t && i != i : r(t, i, s, o, e, a));
|
|
1286
|
+
};
|
|
1287
|
+
})), $r = a(((e, t) => {
|
|
1288
|
+
var r = Kr();
|
|
1289
|
+
t.exports = function(e, t) {
|
|
1290
|
+
return r(e, t);
|
|
1291
|
+
};
|
|
1292
|
+
})), Wr = a(((e, t) => {
|
|
1293
|
+
t.exports = class e {
|
|
1294
|
+
constructor(e, t) {
|
|
1295
|
+
this.key = e, this.value = t;
|
|
1296
|
+
}
|
|
1297
|
+
clone() {
|
|
1298
|
+
const t = new e();
|
|
1299
|
+
return this.key && (t.key = this.key.clone()), this.value && (t.value = this.value.clone()), t;
|
|
1300
|
+
}
|
|
1301
|
+
};
|
|
1302
|
+
})), Hr = a(((e, t) => {
|
|
1303
|
+
t.exports = function(e) {
|
|
1304
|
+
if ("function" != typeof e) throw new TypeError("Expected a function");
|
|
1305
|
+
return function() {
|
|
1306
|
+
var t = arguments;
|
|
1307
|
+
switch (t.length) {
|
|
1308
|
+
case 0: return !e.call(this);
|
|
1309
|
+
case 1: return !e.call(this, t[0]);
|
|
1310
|
+
case 2: return !e.call(this, t[0], t[1]);
|
|
1311
|
+
case 3: return !e.call(this, t[0], t[1], t[2]);
|
|
1312
|
+
}
|
|
1313
|
+
return !e.apply(this, t);
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
})), Yr = a(((e, t) => {
|
|
1317
|
+
var r = Hr();
|
|
1318
|
+
function n(e) {
|
|
1319
|
+
return "string" == typeof e ? (t) => t.element === e : e.constructor && e.extend ? (t) => t instanceof e : e;
|
|
1320
|
+
}
|
|
1321
|
+
var i = class e {
|
|
1322
|
+
constructor(e) {
|
|
1323
|
+
this.elements = e || [];
|
|
1324
|
+
}
|
|
1325
|
+
toValue() {
|
|
1326
|
+
return this.elements.map(((e) => e.toValue()));
|
|
1327
|
+
}
|
|
1328
|
+
map(e, t) {
|
|
1329
|
+
return this.elements.map(e, t);
|
|
1330
|
+
}
|
|
1331
|
+
flatMap(e, t) {
|
|
1332
|
+
return this.map(e, t).reduce(((e, t) => e.concat(t)), []);
|
|
1333
|
+
}
|
|
1334
|
+
compactMap(e, t) {
|
|
1335
|
+
const r = [];
|
|
1336
|
+
return this.forEach(((n) => {
|
|
1337
|
+
const i = e.bind(t)(n);
|
|
1338
|
+
i && r.push(i);
|
|
1339
|
+
})), r;
|
|
1340
|
+
}
|
|
1341
|
+
filter(t, r) {
|
|
1342
|
+
return t = n(t), new e(this.elements.filter(t, r));
|
|
1343
|
+
}
|
|
1344
|
+
reject(t, i) {
|
|
1345
|
+
return t = n(t), new e(this.elements.filter(r(t), i));
|
|
1346
|
+
}
|
|
1347
|
+
find(e, t) {
|
|
1348
|
+
return e = n(e), this.elements.find(e, t);
|
|
1349
|
+
}
|
|
1350
|
+
forEach(e, t) {
|
|
1351
|
+
this.elements.forEach(e, t);
|
|
1352
|
+
}
|
|
1353
|
+
reduce(e, t) {
|
|
1354
|
+
return this.elements.reduce(e, t);
|
|
1355
|
+
}
|
|
1356
|
+
includes(e) {
|
|
1357
|
+
return this.elements.some(((t) => t.equals(e)));
|
|
1358
|
+
}
|
|
1359
|
+
shift() {
|
|
1360
|
+
return this.elements.shift();
|
|
1361
|
+
}
|
|
1362
|
+
unshift(e) {
|
|
1363
|
+
this.elements.unshift(this.refract(e));
|
|
1364
|
+
}
|
|
1365
|
+
push(e) {
|
|
1366
|
+
return this.elements.push(this.refract(e)), this;
|
|
1367
|
+
}
|
|
1368
|
+
add(e) {
|
|
1369
|
+
this.push(e);
|
|
1370
|
+
}
|
|
1371
|
+
get(e) {
|
|
1372
|
+
return this.elements[e];
|
|
1373
|
+
}
|
|
1374
|
+
getValue(e) {
|
|
1375
|
+
const t = this.elements[e];
|
|
1376
|
+
if (t) return t.toValue();
|
|
1377
|
+
}
|
|
1378
|
+
get length() {
|
|
1379
|
+
return this.elements.length;
|
|
1380
|
+
}
|
|
1381
|
+
get isEmpty() {
|
|
1382
|
+
return 0 === this.elements.length;
|
|
1383
|
+
}
|
|
1384
|
+
get first() {
|
|
1385
|
+
return this.elements[0];
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1388
|
+
"undefined" != typeof Symbol && (i.prototype[Symbol.iterator] = function() {
|
|
1389
|
+
return this.elements[Symbol.iterator]();
|
|
1390
|
+
}), t.exports = i;
|
|
1391
|
+
})), Jr = a(((e, t) => {
|
|
1392
|
+
var r = $r(), n = Wr(), i = Yr();
|
|
1393
|
+
t.exports = class e {
|
|
1394
|
+
constructor(e, t, r) {
|
|
1395
|
+
t && (this.meta = t), r && (this.attributes = r), this.content = e;
|
|
1396
|
+
}
|
|
1397
|
+
freeze() {
|
|
1398
|
+
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) => {
|
|
1399
|
+
e.parent = this, e.freeze();
|
|
1400
|
+
}), this), this.content && Array.isArray(this.content) && Object.freeze(this.content), Object.freeze(this));
|
|
1401
|
+
}
|
|
1402
|
+
primitive() {}
|
|
1403
|
+
clone() {
|
|
1404
|
+
const e = new this.constructor();
|
|
1405
|
+
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;
|
|
1406
|
+
}
|
|
1407
|
+
toValue() {
|
|
1408
|
+
return this.content instanceof e ? this.content.toValue() : this.content instanceof n ? {
|
|
1409
|
+
key: this.content.key.toValue(),
|
|
1410
|
+
value: this.content.value ? this.content.value.toValue() : void 0
|
|
1411
|
+
} : this.content && this.content.map ? this.content.map(((e) => e.toValue()), this) : this.content;
|
|
1412
|
+
}
|
|
1413
|
+
toRef(e) {
|
|
1414
|
+
if ("" === this.id.toValue()) throw Error("Cannot create reference to an element that does not contain an ID");
|
|
1415
|
+
const t = new this.RefElement(this.id.toValue());
|
|
1416
|
+
return e && (t.path = e), t;
|
|
1417
|
+
}
|
|
1418
|
+
findRecursive(...e) {
|
|
1419
|
+
if (arguments.length > 1 && !this.isFrozen) throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");
|
|
1420
|
+
const t = e.pop();
|
|
1421
|
+
let r = new i();
|
|
1422
|
+
const s = (e, t) => (e.push(t), e), o = (e, r) => {
|
|
1423
|
+
r.element === t && e.push(r);
|
|
1424
|
+
const i = r.findRecursive(t);
|
|
1425
|
+
return i && i.reduce(s, e), r.content instanceof n && (r.content.key && o(e, r.content.key), r.content.value && o(e, r.content.value)), e;
|
|
1426
|
+
};
|
|
1427
|
+
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) => {
|
|
1428
|
+
let r = t.parents.map(((e) => e.element));
|
|
1429
|
+
for (const t in e) {
|
|
1430
|
+
const n = e[t], i = r.indexOf(n);
|
|
1431
|
+
if (-1 === i) return !1;
|
|
1432
|
+
r = r.splice(0, i);
|
|
1433
|
+
}
|
|
1434
|
+
return !0;
|
|
1435
|
+
}))), r;
|
|
1436
|
+
}
|
|
1437
|
+
set(e) {
|
|
1438
|
+
return this.content = e, this;
|
|
1439
|
+
}
|
|
1440
|
+
equals(e) {
|
|
1441
|
+
return r(this.toValue(), e);
|
|
1442
|
+
}
|
|
1443
|
+
getMetaProperty(e, t) {
|
|
1444
|
+
if (!this.meta.hasKey(e)) {
|
|
1445
|
+
if (this.isFrozen) {
|
|
1446
|
+
const e = this.refract(t);
|
|
1447
|
+
return e.freeze(), e;
|
|
1448
|
+
}
|
|
1449
|
+
this.meta.set(e, t);
|
|
1450
|
+
}
|
|
1451
|
+
return this.meta.get(e);
|
|
1452
|
+
}
|
|
1453
|
+
setMetaProperty(e, t) {
|
|
1454
|
+
this.meta.set(e, t);
|
|
1455
|
+
}
|
|
1456
|
+
get element() {
|
|
1457
|
+
return this._storedElement || "element";
|
|
1458
|
+
}
|
|
1459
|
+
set element(e) {
|
|
1460
|
+
this._storedElement = e;
|
|
1461
|
+
}
|
|
1462
|
+
get content() {
|
|
1463
|
+
return this._content;
|
|
1464
|
+
}
|
|
1465
|
+
set content(t) {
|
|
1466
|
+
if (t instanceof e) this._content = t;
|
|
1467
|
+
else if (t instanceof i) this.content = t.elements;
|
|
1468
|
+
else if ("string" == typeof t || "number" == typeof t || "boolean" == typeof t || "null" === t || null == t) this._content = t;
|
|
1469
|
+
else if (t instanceof n) this._content = t;
|
|
1470
|
+
else if (Array.isArray(t)) this._content = t.map(this.refract);
|
|
1471
|
+
else {
|
|
1472
|
+
if ("object" != typeof t) throw new Error("Cannot set content to given value");
|
|
1473
|
+
this._content = Object.keys(t).map(((e) => new this.MemberElement(e, t[e])));
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
get meta() {
|
|
1477
|
+
if (!this._meta) {
|
|
1478
|
+
if (this.isFrozen) {
|
|
1479
|
+
const e = new this.ObjectElement();
|
|
1480
|
+
return e.freeze(), e;
|
|
1481
|
+
}
|
|
1482
|
+
this._meta = new this.ObjectElement();
|
|
1483
|
+
}
|
|
1484
|
+
return this._meta;
|
|
1485
|
+
}
|
|
1486
|
+
set meta(e) {
|
|
1487
|
+
e instanceof this.ObjectElement ? this._meta = e : this.meta.set(e || {});
|
|
1488
|
+
}
|
|
1489
|
+
get attributes() {
|
|
1490
|
+
if (!this._attributes) {
|
|
1491
|
+
if (this.isFrozen) {
|
|
1492
|
+
const e = new this.ObjectElement();
|
|
1493
|
+
return e.freeze(), e;
|
|
1494
|
+
}
|
|
1495
|
+
this._attributes = new this.ObjectElement();
|
|
1496
|
+
}
|
|
1497
|
+
return this._attributes;
|
|
1498
|
+
}
|
|
1499
|
+
set attributes(e) {
|
|
1500
|
+
e instanceof this.ObjectElement ? this._attributes = e : this.attributes.set(e || {});
|
|
1501
|
+
}
|
|
1502
|
+
get id() {
|
|
1503
|
+
return this.getMetaProperty("id", "");
|
|
1504
|
+
}
|
|
1505
|
+
set id(e) {
|
|
1506
|
+
this.setMetaProperty("id", e);
|
|
1507
|
+
}
|
|
1508
|
+
get classes() {
|
|
1509
|
+
return this.getMetaProperty("classes", []);
|
|
1510
|
+
}
|
|
1511
|
+
set classes(e) {
|
|
1512
|
+
this.setMetaProperty("classes", e);
|
|
1513
|
+
}
|
|
1514
|
+
get title() {
|
|
1515
|
+
return this.getMetaProperty("title", "");
|
|
1516
|
+
}
|
|
1517
|
+
set title(e) {
|
|
1518
|
+
this.setMetaProperty("title", e);
|
|
1519
|
+
}
|
|
1520
|
+
get description() {
|
|
1521
|
+
return this.getMetaProperty("description", "");
|
|
1522
|
+
}
|
|
1523
|
+
set description(e) {
|
|
1524
|
+
this.setMetaProperty("description", e);
|
|
1525
|
+
}
|
|
1526
|
+
get links() {
|
|
1527
|
+
return this.getMetaProperty("links", []);
|
|
1528
|
+
}
|
|
1529
|
+
set links(e) {
|
|
1530
|
+
this.setMetaProperty("links", e);
|
|
1531
|
+
}
|
|
1532
|
+
get isFrozen() {
|
|
1533
|
+
return Object.isFrozen(this);
|
|
1534
|
+
}
|
|
1535
|
+
get parents() {
|
|
1536
|
+
let { parent: e } = this;
|
|
1537
|
+
const t = new i();
|
|
1538
|
+
for (; e;) t.push(e), e = e.parent;
|
|
1539
|
+
return t;
|
|
1540
|
+
}
|
|
1541
|
+
get children() {
|
|
1542
|
+
if (Array.isArray(this.content)) return new i(this.content);
|
|
1543
|
+
if (this.content instanceof n) {
|
|
1544
|
+
const e = new i([this.content.key]);
|
|
1545
|
+
return this.content.value && e.push(this.content.value), e;
|
|
1546
|
+
}
|
|
1547
|
+
return this.content instanceof e ? new i([this.content]) : new i();
|
|
1548
|
+
}
|
|
1549
|
+
get recursiveChildren() {
|
|
1550
|
+
const e = new i();
|
|
1551
|
+
return this.children.forEach(((t) => {
|
|
1552
|
+
e.push(t), t.recursiveChildren.forEach(((t) => {
|
|
1553
|
+
e.push(t);
|
|
1554
|
+
}));
|
|
1555
|
+
})), e;
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
})), Xr = a(((e, t) => {
|
|
1559
|
+
var r = Jr();
|
|
1560
|
+
t.exports = class extends r {
|
|
1561
|
+
constructor(e, t, r) {
|
|
1562
|
+
super(e || null, t, r), this.element = "null";
|
|
1563
|
+
}
|
|
1564
|
+
primitive() {
|
|
1565
|
+
return "null";
|
|
1566
|
+
}
|
|
1567
|
+
set() {
|
|
1568
|
+
return /* @__PURE__ */ new Error("Cannot set the value of null");
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
})), Zr = a(((e, t) => {
|
|
1572
|
+
var r = Jr();
|
|
1573
|
+
t.exports = class extends r {
|
|
1574
|
+
constructor(e, t, r) {
|
|
1575
|
+
super(e, t, r), this.element = "string";
|
|
1576
|
+
}
|
|
1577
|
+
primitive() {
|
|
1578
|
+
return "string";
|
|
1579
|
+
}
|
|
1580
|
+
get length() {
|
|
1581
|
+
return this.content.length;
|
|
1582
|
+
}
|
|
1583
|
+
};
|
|
1584
|
+
})), Qr = a(((e, t) => {
|
|
1585
|
+
var r = Jr();
|
|
1586
|
+
t.exports = class extends r {
|
|
1587
|
+
constructor(e, t, r) {
|
|
1588
|
+
super(e, t, r), this.element = "number";
|
|
1589
|
+
}
|
|
1590
|
+
primitive() {
|
|
1591
|
+
return "number";
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
})), en = a(((e, t) => {
|
|
1595
|
+
var r = Jr();
|
|
1596
|
+
t.exports = class extends r {
|
|
1597
|
+
constructor(e, t, r) {
|
|
1598
|
+
super(e, t, r), this.element = "boolean";
|
|
1599
|
+
}
|
|
1600
|
+
primitive() {
|
|
1601
|
+
return "boolean";
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
})), tn = a(((e, t) => {
|
|
1605
|
+
var r = Hr(), n = Jr(), i = Yr(), s = class extends n {
|
|
1606
|
+
constructor(e, t, r) {
|
|
1607
|
+
super(e || [], t, r), this.element = "array";
|
|
1608
|
+
}
|
|
1609
|
+
primitive() {
|
|
1610
|
+
return "array";
|
|
1611
|
+
}
|
|
1612
|
+
get(e) {
|
|
1613
|
+
return this.content[e];
|
|
1614
|
+
}
|
|
1615
|
+
getValue(e) {
|
|
1616
|
+
const t = this.get(e);
|
|
1617
|
+
if (t) return t.toValue();
|
|
1618
|
+
}
|
|
1619
|
+
getIndex(e) {
|
|
1620
|
+
return this.content[e];
|
|
1621
|
+
}
|
|
1622
|
+
set(e, t) {
|
|
1623
|
+
return this.content[e] = this.refract(t), this;
|
|
1624
|
+
}
|
|
1625
|
+
remove(e) {
|
|
1626
|
+
const t = this.content.splice(e, 1);
|
|
1627
|
+
return t.length ? t[0] : null;
|
|
1628
|
+
}
|
|
1629
|
+
map(e, t) {
|
|
1630
|
+
return this.content.map(e, t);
|
|
1631
|
+
}
|
|
1632
|
+
flatMap(e, t) {
|
|
1633
|
+
return this.map(e, t).reduce(((e, t) => e.concat(t)), []);
|
|
1634
|
+
}
|
|
1635
|
+
compactMap(e, t) {
|
|
1636
|
+
const r = [];
|
|
1637
|
+
return this.forEach(((n) => {
|
|
1638
|
+
const i = e.bind(t)(n);
|
|
1639
|
+
i && r.push(i);
|
|
1640
|
+
})), r;
|
|
1641
|
+
}
|
|
1642
|
+
filter(e, t) {
|
|
1643
|
+
return new i(this.content.filter(e, t));
|
|
1644
|
+
}
|
|
1645
|
+
reject(e, t) {
|
|
1646
|
+
return this.filter(r(e), t);
|
|
1647
|
+
}
|
|
1648
|
+
reduce(e, t) {
|
|
1649
|
+
let r, n;
|
|
1650
|
+
void 0 !== t ? (r = 0, n = this.refract(t)) : (r = 1, n = "object" === this.primitive() ? this.first.value : this.first);
|
|
1651
|
+
for (let t = r; t < this.length; t += 1) {
|
|
1652
|
+
const r = this.content[t];
|
|
1653
|
+
n = "object" === this.primitive() ? this.refract(e(n, r.value, r.key, r, this)) : this.refract(e(n, r, t, this));
|
|
1654
|
+
}
|
|
1655
|
+
return n;
|
|
1656
|
+
}
|
|
1657
|
+
forEach(e, t) {
|
|
1658
|
+
this.content.forEach(((r, n) => {
|
|
1659
|
+
e.bind(t)(r, this.refract(n));
|
|
1660
|
+
}));
|
|
1661
|
+
}
|
|
1662
|
+
shift() {
|
|
1663
|
+
return this.content.shift();
|
|
1664
|
+
}
|
|
1665
|
+
unshift(e) {
|
|
1666
|
+
this.content.unshift(this.refract(e));
|
|
1667
|
+
}
|
|
1668
|
+
push(e) {
|
|
1669
|
+
return this.content.push(this.refract(e)), this;
|
|
1670
|
+
}
|
|
1671
|
+
add(e) {
|
|
1672
|
+
this.push(e);
|
|
1673
|
+
}
|
|
1674
|
+
findElements(e, t) {
|
|
1675
|
+
const r = t || {}, n = !!r.recursive, i = void 0 === r.results ? [] : r.results;
|
|
1676
|
+
return this.forEach(((t, r, s) => {
|
|
1677
|
+
n && void 0 !== t.findElements && t.findElements(e, {
|
|
1678
|
+
results: i,
|
|
1679
|
+
recursive: n
|
|
1680
|
+
}), e(t, r, s) && i.push(t);
|
|
1681
|
+
})), i;
|
|
1682
|
+
}
|
|
1683
|
+
find(e) {
|
|
1684
|
+
return new i(this.findElements(e, { recursive: !0 }));
|
|
1685
|
+
}
|
|
1686
|
+
findByElement(e) {
|
|
1687
|
+
return this.find(((t) => t.element === e));
|
|
1688
|
+
}
|
|
1689
|
+
findByClass(e) {
|
|
1690
|
+
return this.find(((t) => t.classes.includes(e)));
|
|
1691
|
+
}
|
|
1692
|
+
getById(e) {
|
|
1693
|
+
return this.find(((t) => t.id.toValue() === e)).first;
|
|
1694
|
+
}
|
|
1695
|
+
includes(e) {
|
|
1696
|
+
return this.content.some(((t) => t.equals(e)));
|
|
1697
|
+
}
|
|
1698
|
+
contains(e) {
|
|
1699
|
+
return this.includes(e);
|
|
1700
|
+
}
|
|
1701
|
+
empty() {
|
|
1702
|
+
return new this.constructor([]);
|
|
1703
|
+
}
|
|
1704
|
+
"fantasy-land/empty"() {
|
|
1705
|
+
return this.empty();
|
|
1706
|
+
}
|
|
1707
|
+
concat(e) {
|
|
1708
|
+
return new this.constructor(this.content.concat(e.content));
|
|
1709
|
+
}
|
|
1710
|
+
"fantasy-land/concat"(e) {
|
|
1711
|
+
return this.concat(e);
|
|
1712
|
+
}
|
|
1713
|
+
"fantasy-land/map"(e) {
|
|
1714
|
+
return new this.constructor(this.map(e));
|
|
1715
|
+
}
|
|
1716
|
+
"fantasy-land/chain"(e) {
|
|
1717
|
+
return this.map(((t) => e(t)), this).reduce(((e, t) => e.concat(t)), this.empty());
|
|
1718
|
+
}
|
|
1719
|
+
"fantasy-land/filter"(e) {
|
|
1720
|
+
return new this.constructor(this.content.filter(e));
|
|
1721
|
+
}
|
|
1722
|
+
"fantasy-land/reduce"(e, t) {
|
|
1723
|
+
return this.content.reduce(e, t);
|
|
1724
|
+
}
|
|
1725
|
+
get length() {
|
|
1726
|
+
return this.content.length;
|
|
1727
|
+
}
|
|
1728
|
+
get isEmpty() {
|
|
1729
|
+
return 0 === this.content.length;
|
|
1730
|
+
}
|
|
1731
|
+
get first() {
|
|
1732
|
+
return this.getIndex(0);
|
|
1733
|
+
}
|
|
1734
|
+
get second() {
|
|
1735
|
+
return this.getIndex(1);
|
|
1736
|
+
}
|
|
1737
|
+
get last() {
|
|
1738
|
+
return this.getIndex(this.length - 1);
|
|
1739
|
+
}
|
|
1740
|
+
};
|
|
1741
|
+
s.empty = function() {
|
|
1742
|
+
return new this();
|
|
1743
|
+
}, s["fantasy-land/empty"] = s.empty, "undefined" != typeof Symbol && (s.prototype[Symbol.iterator] = function() {
|
|
1744
|
+
return this.content[Symbol.iterator]();
|
|
1745
|
+
}), t.exports = s;
|
|
1746
|
+
})), rn = a(((e, t) => {
|
|
1747
|
+
var r = Wr(), n = Jr();
|
|
1748
|
+
t.exports = class extends n {
|
|
1749
|
+
constructor(e, t, n, i) {
|
|
1750
|
+
super(new r(), n, i), this.element = "member", this.key = e, this.value = t;
|
|
1751
|
+
}
|
|
1752
|
+
get key() {
|
|
1753
|
+
return this.content.key;
|
|
1754
|
+
}
|
|
1755
|
+
set key(e) {
|
|
1756
|
+
this.content.key = this.refract(e);
|
|
1757
|
+
}
|
|
1758
|
+
get value() {
|
|
1759
|
+
return this.content.value;
|
|
1760
|
+
}
|
|
1761
|
+
set value(e) {
|
|
1762
|
+
this.content.value = this.refract(e);
|
|
1763
|
+
}
|
|
1764
|
+
};
|
|
1765
|
+
})), nn = a(((e, t) => {
|
|
1766
|
+
var r = Hr(), n = Yr();
|
|
1767
|
+
t.exports = class e extends n {
|
|
1768
|
+
map(e, t) {
|
|
1769
|
+
return this.elements.map(((r) => e.bind(t)(r.value, r.key, r)));
|
|
1770
|
+
}
|
|
1771
|
+
filter(t, r) {
|
|
1772
|
+
return new e(this.elements.filter(((e) => t.bind(r)(e.value, e.key, e))));
|
|
1773
|
+
}
|
|
1774
|
+
reject(e, t) {
|
|
1775
|
+
return this.filter(r(e.bind(t)));
|
|
1776
|
+
}
|
|
1777
|
+
forEach(e, t) {
|
|
1778
|
+
return this.elements.forEach(((r, n) => {
|
|
1779
|
+
e.bind(t)(r.value, r.key, r, n);
|
|
1780
|
+
}));
|
|
1781
|
+
}
|
|
1782
|
+
keys() {
|
|
1783
|
+
return this.map(((e, t) => t.toValue()));
|
|
1784
|
+
}
|
|
1785
|
+
values() {
|
|
1786
|
+
return this.map(((e) => e.toValue()));
|
|
1787
|
+
}
|
|
1788
|
+
};
|
|
1789
|
+
})), sn = a(((e, t) => {
|
|
1790
|
+
var r = Hr(), n = gt(), i = tn(), s = rn(), o = nn();
|
|
1791
|
+
t.exports = class extends i {
|
|
1792
|
+
constructor(e, t, r) {
|
|
1793
|
+
super(e || [], t, r), this.element = "object";
|
|
1794
|
+
}
|
|
1795
|
+
primitive() {
|
|
1796
|
+
return "object";
|
|
1797
|
+
}
|
|
1798
|
+
toValue() {
|
|
1799
|
+
return this.content.reduce(((e, t) => (e[t.key.toValue()] = t.value ? t.value.toValue() : void 0, e)), {});
|
|
1800
|
+
}
|
|
1801
|
+
get(e) {
|
|
1802
|
+
const t = this.getMember(e);
|
|
1803
|
+
if (t) return t.value;
|
|
1804
|
+
}
|
|
1805
|
+
getMember(e) {
|
|
1806
|
+
if (void 0 !== e) return this.content.find(((t) => t.key.toValue() === e));
|
|
1807
|
+
}
|
|
1808
|
+
remove(e) {
|
|
1809
|
+
let t = null;
|
|
1810
|
+
return this.content = this.content.filter(((r) => r.key.toValue() !== e || (t = r, !1))), t;
|
|
1811
|
+
}
|
|
1812
|
+
getKey(e) {
|
|
1813
|
+
const t = this.getMember(e);
|
|
1814
|
+
if (t) return t.key;
|
|
1815
|
+
}
|
|
1816
|
+
set(e, t) {
|
|
1817
|
+
if (n(e)) return Object.keys(e).forEach(((t) => {
|
|
1818
|
+
this.set(t, e[t]);
|
|
1819
|
+
})), this;
|
|
1820
|
+
const r = e, i = this.getMember(r);
|
|
1821
|
+
return i ? i.value = t : this.content.push(new s(r, t)), this;
|
|
1822
|
+
}
|
|
1823
|
+
keys() {
|
|
1824
|
+
return this.content.map(((e) => e.key.toValue()));
|
|
1825
|
+
}
|
|
1826
|
+
values() {
|
|
1827
|
+
return this.content.map(((e) => e.value.toValue()));
|
|
1828
|
+
}
|
|
1829
|
+
hasKey(e) {
|
|
1830
|
+
return this.content.some(((t) => t.key.equals(e)));
|
|
1831
|
+
}
|
|
1832
|
+
items() {
|
|
1833
|
+
return this.content.map(((e) => [e.key.toValue(), e.value.toValue()]));
|
|
1834
|
+
}
|
|
1835
|
+
map(e, t) {
|
|
1836
|
+
return this.content.map(((r) => e.bind(t)(r.value, r.key, r)));
|
|
1837
|
+
}
|
|
1838
|
+
compactMap(e, t) {
|
|
1839
|
+
const r = [];
|
|
1840
|
+
return this.forEach(((n, i, s) => {
|
|
1841
|
+
const o = e.bind(t)(n, i, s);
|
|
1842
|
+
o && r.push(o);
|
|
1843
|
+
})), r;
|
|
1844
|
+
}
|
|
1845
|
+
filter(e, t) {
|
|
1846
|
+
return new o(this.content).filter(e, t);
|
|
1847
|
+
}
|
|
1848
|
+
reject(e, t) {
|
|
1849
|
+
return this.filter(r(e), t);
|
|
1850
|
+
}
|
|
1851
|
+
forEach(e, t) {
|
|
1852
|
+
return this.content.forEach(((r) => e.bind(t)(r.value, r.key, r)));
|
|
1853
|
+
}
|
|
1854
|
+
};
|
|
1855
|
+
})), on = a(((e, t) => {
|
|
1856
|
+
var r = Jr();
|
|
1857
|
+
t.exports = class extends r {
|
|
1858
|
+
constructor(e, t, r) {
|
|
1859
|
+
super(e || [], t, r), this.element = "link";
|
|
1860
|
+
}
|
|
1861
|
+
get relation() {
|
|
1862
|
+
return this.attributes.get("relation");
|
|
1863
|
+
}
|
|
1864
|
+
set relation(e) {
|
|
1865
|
+
this.attributes.set("relation", e);
|
|
1866
|
+
}
|
|
1867
|
+
get href() {
|
|
1868
|
+
return this.attributes.get("href");
|
|
1869
|
+
}
|
|
1870
|
+
set href(e) {
|
|
1871
|
+
this.attributes.set("href", e);
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
})), an = a(((e, t) => {
|
|
1875
|
+
var r = Jr();
|
|
1876
|
+
t.exports = class extends r {
|
|
1877
|
+
constructor(e, t, r) {
|
|
1878
|
+
super(e || [], t, r), this.element = "ref", this.path || (this.path = "element");
|
|
1879
|
+
}
|
|
1880
|
+
get path() {
|
|
1881
|
+
return this.attributes.get("path");
|
|
1882
|
+
}
|
|
1883
|
+
set path(e) {
|
|
1884
|
+
this.attributes.set("path", e);
|
|
1885
|
+
}
|
|
1886
|
+
};
|
|
1887
|
+
})), cn = a(((e, t) => {
|
|
1888
|
+
var r = Jr(), n = Xr(), i = Zr(), s = Qr(), o = en(), a = tn(), c = rn(), u = sn(), l = on(), f = an(), p = Yr(), h = nn(), m = Wr();
|
|
1889
|
+
function y(e) {
|
|
1890
|
+
return e instanceof r ? e : "string" == typeof e ? new i(e) : "number" == typeof e ? new s(e) : "boolean" == typeof e ? new o(e) : null === e ? new n() : Array.isArray(e) ? new a(e.map(y)) : "object" == typeof e ? new u(e) : e;
|
|
1891
|
+
}
|
|
1892
|
+
r.prototype.ObjectElement = u, r.prototype.RefElement = f, r.prototype.MemberElement = c, r.prototype.refract = y, p.prototype.refract = y, t.exports = {
|
|
1893
|
+
Element: r,
|
|
1894
|
+
NullElement: n,
|
|
1895
|
+
StringElement: i,
|
|
1896
|
+
NumberElement: s,
|
|
1897
|
+
BooleanElement: o,
|
|
1898
|
+
ArrayElement: a,
|
|
1899
|
+
MemberElement: c,
|
|
1900
|
+
ObjectElement: u,
|
|
1901
|
+
LinkElement: l,
|
|
1902
|
+
RefElement: f,
|
|
1903
|
+
refract: y,
|
|
1904
|
+
ArraySlice: p,
|
|
1905
|
+
ObjectSlice: h,
|
|
1906
|
+
KeyValuePair: m
|
|
1907
|
+
};
|
|
1908
|
+
})), un = a(((e, t) => {
|
|
1909
|
+
var r = at(), n = dt(), i = vt(), s = bt(), o = gt(), a = Et(), c = cn(), u = class {
|
|
1910
|
+
constructor(e) {
|
|
1911
|
+
this.elementMap = {}, this.elementDetection = [], this.Element = c.Element, this.KeyValuePair = c.KeyValuePair, e && e.noDefault || this.useDefault(), this._attributeElementKeys = [], this._attributeElementArrayKeys = [];
|
|
1912
|
+
}
|
|
1913
|
+
use(e) {
|
|
1914
|
+
return e.namespace && e.namespace({ base: this }), e.load && e.load({ base: this }), this;
|
|
1915
|
+
}
|
|
1916
|
+
useDefault() {
|
|
1917
|
+
return this.register("null", c.NullElement).register("string", c.StringElement).register("number", c.NumberElement).register("boolean", c.BooleanElement).register("array", c.ArrayElement).register("object", c.ObjectElement).register("member", c.MemberElement).register("ref", c.RefElement).register("link", c.LinkElement), this.detect(r, c.NullElement, !1).detect(n, c.StringElement, !1).detect(i, c.NumberElement, !1).detect(s, c.BooleanElement, !1).detect(Array.isArray, c.ArrayElement, !1).detect(o, c.ObjectElement, !1), this;
|
|
1918
|
+
}
|
|
1919
|
+
register(e, t) {
|
|
1920
|
+
return this._elements = void 0, this.elementMap[e] = t, this;
|
|
1921
|
+
}
|
|
1922
|
+
unregister(e) {
|
|
1923
|
+
return this._elements = void 0, delete this.elementMap[e], this;
|
|
1924
|
+
}
|
|
1925
|
+
detect(e, t, r) {
|
|
1926
|
+
return void 0 === r || r ? this.elementDetection.unshift([e, t]) : this.elementDetection.push([e, t]), this;
|
|
1927
|
+
}
|
|
1928
|
+
toElement(e) {
|
|
1929
|
+
if (e instanceof this.Element) return e;
|
|
1930
|
+
let t;
|
|
1931
|
+
for (let r = 0; r < this.elementDetection.length; r += 1) {
|
|
1932
|
+
const n = this.elementDetection[r][0], i = this.elementDetection[r][1];
|
|
1933
|
+
if (n(e)) {
|
|
1934
|
+
t = new i(e);
|
|
1935
|
+
break;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
return t;
|
|
1939
|
+
}
|
|
1940
|
+
getElementClass(e) {
|
|
1941
|
+
const t = this.elementMap[e];
|
|
1942
|
+
return void 0 === t ? this.Element : t;
|
|
1943
|
+
}
|
|
1944
|
+
fromRefract(e) {
|
|
1945
|
+
return this.serialiser.deserialise(e);
|
|
1946
|
+
}
|
|
1947
|
+
toRefract(e) {
|
|
1948
|
+
return this.serialiser.serialise(e);
|
|
1949
|
+
}
|
|
1950
|
+
get elements() {
|
|
1951
|
+
return void 0 === this._elements && (this._elements = { Element: this.Element }, Object.keys(this.elementMap).forEach(((e) => {
|
|
1952
|
+
const t = e[0].toUpperCase() + e.substr(1);
|
|
1953
|
+
this._elements[t] = this.elementMap[e];
|
|
1954
|
+
}))), this._elements;
|
|
1955
|
+
}
|
|
1956
|
+
get serialiser() {
|
|
1957
|
+
return new a(this);
|
|
1958
|
+
}
|
|
1959
|
+
};
|
|
1960
|
+
a.prototype.Namespace = u, t.exports = u;
|
|
1961
|
+
})), ln = a(((e, t) => {
|
|
1962
|
+
var r = Et();
|
|
1963
|
+
t.exports = class extends r {
|
|
1964
|
+
serialise(e) {
|
|
1965
|
+
if (!(e instanceof this.namespace.elements.Element)) throw new TypeError(`Given element \`${e}\` is not an Element instance`);
|
|
1966
|
+
let t;
|
|
1967
|
+
e._attributes && e.attributes.get("variable") && (t = e.attributes.get("variable"));
|
|
1968
|
+
const r = { element: e.element };
|
|
1969
|
+
e._meta && e._meta.length > 0 && (r.meta = this.serialiseObject(e.meta));
|
|
1970
|
+
const n = "enum" === e.element || -1 !== e.attributes.keys().indexOf("enumerations");
|
|
1971
|
+
if (n) {
|
|
1972
|
+
const t = this.enumSerialiseAttributes(e);
|
|
1973
|
+
t && (r.attributes = t);
|
|
1974
|
+
} else if (e._attributes && e._attributes.length > 0) {
|
|
1975
|
+
let { attributes: n } = e;
|
|
1976
|
+
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));
|
|
1977
|
+
}
|
|
1978
|
+
if (n) r.content = this.enumSerialiseContent(e, r);
|
|
1979
|
+
else if (this[`${e.element}SerialiseContent`]) r.content = this[`${e.element}SerialiseContent`](e, r);
|
|
1980
|
+
else if (void 0 !== e.content) {
|
|
1981
|
+
let n;
|
|
1982
|
+
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);
|
|
1983
|
+
} else this.shouldSerialiseContent(e, e.content) && e instanceof this.namespace.elements.Array && (r.content = []);
|
|
1984
|
+
return r;
|
|
1985
|
+
}
|
|
1986
|
+
shouldSerialiseContent(e, t) {
|
|
1987
|
+
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);
|
|
1988
|
+
}
|
|
1989
|
+
refSerialiseContent(e, t) {
|
|
1990
|
+
return delete t.attributes, {
|
|
1991
|
+
href: e.toValue(),
|
|
1992
|
+
path: e.path.toValue()
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
sourceMapSerialiseContent(e) {
|
|
1996
|
+
return e.toValue();
|
|
1997
|
+
}
|
|
1998
|
+
dataStructureSerialiseContent(e) {
|
|
1999
|
+
return [this.serialiseContent(e.content)];
|
|
2000
|
+
}
|
|
2001
|
+
enumSerialiseAttributes(e) {
|
|
2002
|
+
const t = e.attributes.clone(), r = t.remove("enumerations") || new this.namespace.elements.Array([]), n = t.get("default");
|
|
2003
|
+
let i = t.get("samples") || new this.namespace.elements.Array([]);
|
|
2004
|
+
if (n && n.content && (n.content.attributes && n.content.attributes.remove("typeAttributes"), t.set("default", new this.namespace.elements.Array([n.content]))), i.forEach(((e) => {
|
|
2005
|
+
e.content && e.content.element && e.content.attributes.remove("typeAttributes");
|
|
2006
|
+
})), e.content && 0 !== r.length && i.unshift(e.content), i = i.map(((e) => e instanceof this.namespace.elements.Array ? [e] : new this.namespace.elements.Array([e.content]))), i.length && t.set("samples", i), t.length > 0) return this.serialiseObject(t);
|
|
2007
|
+
}
|
|
2008
|
+
enumSerialiseContent(e) {
|
|
2009
|
+
if (e._attributes) {
|
|
2010
|
+
const t = e.attributes.get("enumerations");
|
|
2011
|
+
if (t && t.length > 0) return t.content.map(((e) => {
|
|
2012
|
+
const t = e.clone();
|
|
2013
|
+
return t.attributes.remove("typeAttributes"), this.serialise(t);
|
|
2014
|
+
}));
|
|
2015
|
+
}
|
|
2016
|
+
if (e.content) {
|
|
2017
|
+
const t = e.content.clone();
|
|
2018
|
+
return t.attributes.remove("typeAttributes"), [this.serialise(t)];
|
|
2019
|
+
}
|
|
2020
|
+
return [];
|
|
2021
|
+
}
|
|
2022
|
+
deserialise(e) {
|
|
2023
|
+
if ("string" == typeof e) return new this.namespace.elements.String(e);
|
|
2024
|
+
if ("number" == typeof e) return new this.namespace.elements.Number(e);
|
|
2025
|
+
if ("boolean" == typeof e) return new this.namespace.elements.Boolean(e);
|
|
2026
|
+
if (null === e) return new this.namespace.elements.Null();
|
|
2027
|
+
if (Array.isArray(e)) return new this.namespace.elements.Array(e.map(this.deserialise, this));
|
|
2028
|
+
const t = this.namespace.getElementClass(e.element), r = new t();
|
|
2029
|
+
r.element !== e.element && (r.element = e.element), e.meta && this.deserialiseObject(e.meta, r.meta), e.attributes && this.deserialiseObject(e.attributes, r.attributes);
|
|
2030
|
+
const n = this.deserialiseContent(e.content);
|
|
2031
|
+
if (void 0 === n && null !== r.content || (r.content = n), "enum" === r.element) {
|
|
2032
|
+
r.content && r.attributes.set("enumerations", r.content);
|
|
2033
|
+
let e = r.attributes.get("samples");
|
|
2034
|
+
if (r.attributes.remove("samples"), e) {
|
|
2035
|
+
const n = e;
|
|
2036
|
+
e = new this.namespace.elements.Array(), n.forEach(((n) => {
|
|
2037
|
+
n.forEach(((n) => {
|
|
2038
|
+
const i = new t(n);
|
|
2039
|
+
i.element = r.element, e.push(i);
|
|
2040
|
+
}));
|
|
2041
|
+
}));
|
|
2042
|
+
const i = e.shift();
|
|
2043
|
+
r.content = i ? i.content : void 0, r.attributes.set("samples", e);
|
|
2044
|
+
} else r.content = void 0;
|
|
2045
|
+
let n = r.attributes.get("default");
|
|
2046
|
+
if (n && n.length > 0) {
|
|
2047
|
+
n = n.get(0);
|
|
2048
|
+
const e = new t(n);
|
|
2049
|
+
e.element = r.element, r.attributes.set("default", e);
|
|
2050
|
+
}
|
|
2051
|
+
} else if ("dataStructure" === r.element && Array.isArray(r.content)) [r.content] = r.content;
|
|
2052
|
+
else if ("category" === r.element) {
|
|
2053
|
+
const e = r.attributes.get("meta");
|
|
2054
|
+
e && (r.attributes.set("metadata", e), r.attributes.remove("meta"));
|
|
2055
|
+
} 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"));
|
|
2056
|
+
return r;
|
|
2057
|
+
}
|
|
2058
|
+
serialiseContent(e) {
|
|
2059
|
+
if (e instanceof this.namespace.elements.Element) return this.serialise(e);
|
|
2060
|
+
if (e instanceof this.namespace.KeyValuePair) {
|
|
2061
|
+
const t = { key: this.serialise(e.key) };
|
|
2062
|
+
return e.value && (t.value = this.serialise(e.value)), t;
|
|
2063
|
+
}
|
|
2064
|
+
return e && e.map ? e.map(this.serialise, this) : e;
|
|
2065
|
+
}
|
|
2066
|
+
deserialiseContent(e) {
|
|
2067
|
+
if (e) {
|
|
2068
|
+
if (e.element) return this.deserialise(e);
|
|
2069
|
+
if (e.key) {
|
|
2070
|
+
const t = new this.namespace.KeyValuePair(this.deserialise(e.key));
|
|
2071
|
+
return e.value && (t.value = this.deserialise(e.value)), t;
|
|
2072
|
+
}
|
|
2073
|
+
if (e.map) return e.map(this.deserialise, this);
|
|
2074
|
+
}
|
|
2075
|
+
return e;
|
|
2076
|
+
}
|
|
2077
|
+
shouldRefract(e) {
|
|
2078
|
+
return !!(e._attributes && e.attributes.keys().length || e._meta && e.meta.keys().length) || "enum" !== e.element && (e.element !== e.primitive() || "member" === e.element);
|
|
2079
|
+
}
|
|
2080
|
+
convertKeyToRefract(e, t) {
|
|
2081
|
+
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();
|
|
2082
|
+
}
|
|
2083
|
+
serialiseEnum(e) {
|
|
2084
|
+
return e.children.map(((e) => this.serialise(e)));
|
|
2085
|
+
}
|
|
2086
|
+
serialiseObject(e) {
|
|
2087
|
+
const t = {};
|
|
2088
|
+
return e.forEach(((e, r) => {
|
|
2089
|
+
if (e) {
|
|
2090
|
+
const n = r.toValue();
|
|
2091
|
+
t[n] = this.convertKeyToRefract(n, e);
|
|
2092
|
+
}
|
|
2093
|
+
})), t;
|
|
2094
|
+
}
|
|
2095
|
+
deserialiseObject(e, t) {
|
|
2096
|
+
Object.keys(e).forEach(((r) => {
|
|
2097
|
+
t.set(r, this.deserialise(e[r]));
|
|
2098
|
+
}));
|
|
2099
|
+
}
|
|
2100
|
+
};
|
|
2101
|
+
})), pn = a(((e) => {
|
|
2102
|
+
var t = un(), r = cn();
|
|
2103
|
+
e.Namespace = t, e.KeyValuePair = Wr(), e.ArraySlice = r.ArraySlice, e.ObjectSlice = r.ObjectSlice, e.Element = r.Element, e.StringElement = r.StringElement, e.NumberElement = r.NumberElement, e.BooleanElement = r.BooleanElement, e.NullElement = r.NullElement, e.ArrayElement = r.ArrayElement, e.ObjectElement = r.ObjectElement, e.MemberElement = r.MemberElement, e.RefElement = r.RefElement, e.LinkElement = r.LinkElement, e.refract = r.refract, e.JSONSerialiser = Et(), e.JSON06Serialiser = ln();
|
|
2104
|
+
}))(), hn = class extends pn.StringElement {
|
|
2105
|
+
constructor(e, t, r) {
|
|
2106
|
+
super(e, t, r), this.element = "annotation";
|
|
2107
|
+
}
|
|
2108
|
+
get code() {
|
|
2109
|
+
return this.attributes.get("code");
|
|
2110
|
+
}
|
|
2111
|
+
set code(e) {
|
|
2112
|
+
this.attributes.set("code", e);
|
|
2113
|
+
}
|
|
2114
|
+
}, mn = class extends pn.StringElement {
|
|
2115
|
+
constructor(e, t, r) {
|
|
2116
|
+
super(e, t, r), this.element = "comment";
|
|
2117
|
+
}
|
|
2118
|
+
}, yn = class extends pn.ArrayElement {
|
|
2119
|
+
constructor(e, t, r) {
|
|
2120
|
+
super(e, t, r), this.element = "parseResult";
|
|
2121
|
+
}
|
|
2122
|
+
get api() {
|
|
2123
|
+
return this.children.filter(((e) => e.classes.contains("api"))).first;
|
|
2124
|
+
}
|
|
2125
|
+
get results() {
|
|
2126
|
+
return this.children.filter(((e) => e.classes.contains("result")));
|
|
2127
|
+
}
|
|
2128
|
+
get result() {
|
|
2129
|
+
return this.results.first;
|
|
2130
|
+
}
|
|
2131
|
+
get annotations() {
|
|
2132
|
+
return this.children.filter(((e) => "annotation" === e.element));
|
|
2133
|
+
}
|
|
2134
|
+
get warnings() {
|
|
2135
|
+
return this.children.filter(((e) => "annotation" === e.element && e.classes.contains("warning")));
|
|
2136
|
+
}
|
|
2137
|
+
get errors() {
|
|
2138
|
+
return this.children.filter(((e) => "annotation" === e.element && e.classes.contains("error")));
|
|
2139
|
+
}
|
|
2140
|
+
get isEmpty() {
|
|
2141
|
+
return this.children.reject(((e) => "annotation" === e.element)).isEmpty;
|
|
2142
|
+
}
|
|
2143
|
+
replaceResult(e) {
|
|
2144
|
+
const { result: t } = this;
|
|
2145
|
+
if (Xe(t)) return !1;
|
|
2146
|
+
const r = this.content.findIndex(((e) => e === t));
|
|
2147
|
+
return -1 !== r && (this.content[r] = e, !0);
|
|
2148
|
+
}
|
|
2149
|
+
}, dn = (e, t) => "object" == typeof t && null !== t && e in t && "function" == typeof t[e], vn = (e) => "object" == typeof e && null != e && "_storedElement" in e && "string" == typeof e._storedElement && "_content" in e, bn = (e, t) => "object" == typeof t && null !== t && "primitive" in t && "function" == typeof t.primitive && t.primitive() === e, gn = (e, t) => "object" == typeof t && null !== t && "classes" in t && (Array.isArray(t.classes) || t.classes instanceof pn.ArrayElement) && t.classes.includes(e), En = (e, t) => "object" == typeof t && null !== t && "element" in t && t.element === e, jn = (e) => e({
|
|
2150
|
+
hasMethod: dn,
|
|
2151
|
+
hasBasicElementProps: vn,
|
|
2152
|
+
primitiveEq: bn,
|
|
2153
|
+
isElementType: En,
|
|
2154
|
+
hasClass: gn
|
|
2155
|
+
}), xn = c({
|
|
2156
|
+
hasElementSourceMap: () => Fn,
|
|
2157
|
+
includesClasses: () => Bn,
|
|
2158
|
+
includesSymbols: () => qn,
|
|
2159
|
+
isAnnotationElement: () => Rn,
|
|
2160
|
+
isArrayElement: () => Pn,
|
|
2161
|
+
isBooleanElement: () => _n,
|
|
2162
|
+
isCommentElement: () => In,
|
|
2163
|
+
isElement: () => wn,
|
|
2164
|
+
isLinkElement: () => Tn,
|
|
2165
|
+
isMemberElement: () => Mn,
|
|
2166
|
+
isNullElement: () => An,
|
|
2167
|
+
isNumberElement: () => Sn,
|
|
2168
|
+
isObjectElement: () => kn,
|
|
2169
|
+
isParseResultElement: () => Nn,
|
|
2170
|
+
isPrimitiveElement: () => Vn,
|
|
2171
|
+
isRefElement: () => Cn,
|
|
2172
|
+
isStringElement: () => On
|
|
2173
|
+
}), wn = jn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof pn.Element || e(r) && t(void 0, r))), On = jn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof pn.StringElement || e(r) && t("string", r))), Sn = jn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof pn.NumberElement || e(r) && t("number", r))), An = jn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof pn.NullElement || e(r) && t("null", r))), _n = jn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof pn.BooleanElement || e(r) && t("boolean", r))), kn = jn((({ hasBasicElementProps: e, primitiveEq: t, hasMethod: r }) => (n) => n instanceof pn.ObjectElement || e(n) && t("object", n) && r("keys", n) && r("values", n) && r("items", n))), Pn = jn((({ hasBasicElementProps: e, primitiveEq: t, hasMethod: r }) => (n) => n instanceof pn.ArrayElement && !(n instanceof pn.ObjectElement) || e(n) && t("array", n) && r("push", n) && r("unshift", n) && r("map", n) && r("reduce", n))), Mn = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof pn.MemberElement || e(n) && t("member", n) && r(void 0, n))), Tn = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof pn.LinkElement || e(n) && t("link", n) && r(void 0, n))), Cn = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof pn.RefElement || e(n) && t("ref", n) && r(void 0, n))), Rn = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof hn || e(n) && t("annotation", n) && r("array", n))), In = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof mn || e(n) && t("comment", n) && r("string", n))), Nn = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof yn || e(n) && t("parseResult", n) && r("array", n))), Vn = (e) => En("object", e) || En("array", e) || En("boolean", e) || En("number", e) || En("string", e) || En("null", e) || En("member", e), Fn = (e) => !!wn(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), qn = (e, t) => {
|
|
2174
|
+
if (0 === e.length) return !0;
|
|
2175
|
+
const r = t.attributes.get("symbols");
|
|
2176
|
+
return !!Pn(r) && O(st(r.toValue()), e);
|
|
2177
|
+
}, Bn = (e, t) => 0 === e.length || O(st(t.classes.toValue()), e), Ln = new class extends pn.Namespace {
|
|
2178
|
+
constructor() {
|
|
2179
|
+
super(), this.register("annotation", hn), this.register("comment", mn), this.register("parseResult", yn);
|
|
2180
|
+
}
|
|
2181
|
+
}(), zn = () => ({
|
|
2182
|
+
predicates: { ...xn },
|
|
2183
|
+
namespace: Ln
|
|
2184
|
+
}), Dn = a(((e, t) => {
|
|
2185
|
+
var r = function(e) {
|
|
2186
|
+
return e && e.Math === Math && e;
|
|
2187
|
+
};
|
|
2188
|
+
t.exports = r("object" == typeof globalThis && globalThis) || r("object" == typeof window && window) || r("object" == typeof self && self) || r("object" == typeof global && global) || r("object" == typeof e && e) || function() {
|
|
2189
|
+
return this;
|
|
2190
|
+
}() || Function("return this")();
|
|
2191
|
+
})), Gn = a(((e, t) => {
|
|
2192
|
+
t.exports = function(e) {
|
|
2193
|
+
try {
|
|
2194
|
+
return !!e();
|
|
2195
|
+
} catch (e) {
|
|
2196
|
+
return !0;
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
|
+
})), Un = a(((e, t) => {
|
|
2200
|
+
t.exports = !Gn()((function() {
|
|
2201
|
+
var e = function() {}.bind();
|
|
2202
|
+
return "function" != typeof e || e.hasOwnProperty("prototype");
|
|
2203
|
+
}));
|
|
2204
|
+
})), Kn = a(((e, t) => {
|
|
2205
|
+
var r = Un(), n = Function.prototype, i = n.apply, s = n.call;
|
|
2206
|
+
t.exports = "object" == typeof Reflect && Reflect.apply || (r ? s.bind(i) : function() {
|
|
2207
|
+
return s.apply(i, arguments);
|
|
2208
|
+
});
|
|
2209
|
+
})), $n = a(((e, t) => {
|
|
2210
|
+
var r = Un(), n = Function.prototype, i = n.call, s = r && n.bind.bind(i, i);
|
|
2211
|
+
t.exports = r ? s : function(e) {
|
|
2212
|
+
return function() {
|
|
2213
|
+
return i.apply(e, arguments);
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
})), Wn = a(((e, t) => {
|
|
2217
|
+
var r = $n(), n = r({}.toString), i = r("".slice);
|
|
2218
|
+
t.exports = function(e) {
|
|
2219
|
+
return i(n(e), 8, -1);
|
|
2220
|
+
};
|
|
2221
|
+
})), Hn = a(((e, t) => {
|
|
2222
|
+
var r = Wn(), n = $n();
|
|
2223
|
+
t.exports = function(e) {
|
|
2224
|
+
if ("Function" === r(e)) return n(e);
|
|
2225
|
+
};
|
|
2226
|
+
})), Yn = a(((e, t) => {
|
|
2227
|
+
var r = "object" == typeof document && document.all;
|
|
2228
|
+
t.exports = void 0 === r && void 0 !== r ? function(e) {
|
|
2229
|
+
return "function" == typeof e || e === r;
|
|
2230
|
+
} : function(e) {
|
|
2231
|
+
return "function" == typeof e;
|
|
2232
|
+
};
|
|
2233
|
+
})), Jn = a(((e, t) => {
|
|
2234
|
+
t.exports = !Gn()((function() {
|
|
2235
|
+
return 7 !== Object.defineProperty({}, 1, { get: function() {
|
|
2236
|
+
return 7;
|
|
2237
|
+
} })[1];
|
|
2238
|
+
}));
|
|
2239
|
+
})), Xn = a(((e, t) => {
|
|
2240
|
+
var r = Un(), n = Function.prototype.call;
|
|
2241
|
+
t.exports = r ? n.bind(n) : function() {
|
|
2242
|
+
return n.apply(n, arguments);
|
|
2243
|
+
};
|
|
2244
|
+
})), Zn = a(((e) => {
|
|
2245
|
+
var t = {}.propertyIsEnumerable, r = Object.getOwnPropertyDescriptor;
|
|
2246
|
+
e.f = r && !t.call({ 1: 2 }, 1) ? function(e) {
|
|
2247
|
+
var t = r(this, e);
|
|
2248
|
+
return !!t && t.enumerable;
|
|
2249
|
+
} : t;
|
|
2250
|
+
})), Qn = a(((e, t) => {
|
|
2251
|
+
t.exports = function(e, t) {
|
|
2252
|
+
return {
|
|
2253
|
+
enumerable: !(1 & e),
|
|
2254
|
+
configurable: !(2 & e),
|
|
2255
|
+
writable: !(4 & e),
|
|
2256
|
+
value: t
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
})), ei = a(((e, t) => {
|
|
2260
|
+
var r = $n(), n = Gn(), i = Wn(), s = Object, o = r("".split);
|
|
2261
|
+
t.exports = n((function() {
|
|
2262
|
+
return !s("z").propertyIsEnumerable(0);
|
|
2263
|
+
})) ? function(e) {
|
|
2264
|
+
return "String" === i(e) ? o(e, "") : s(e);
|
|
2265
|
+
} : s;
|
|
2266
|
+
})), ti = a(((e, t) => {
|
|
2267
|
+
t.exports = function(e) {
|
|
2268
|
+
return null == e;
|
|
2269
|
+
};
|
|
2270
|
+
})), ri = a(((e, t) => {
|
|
2271
|
+
var r = ti(), n = TypeError;
|
|
2272
|
+
t.exports = function(e) {
|
|
2273
|
+
if (r(e)) throw new n("Can't call method on " + e);
|
|
2274
|
+
return e;
|
|
2275
|
+
};
|
|
2276
|
+
})), ni = a(((e, t) => {
|
|
2277
|
+
var r = ei(), n = ri();
|
|
2278
|
+
t.exports = function(e) {
|
|
2279
|
+
return r(n(e));
|
|
2280
|
+
};
|
|
2281
|
+
})), ii = a(((e, t) => {
|
|
2282
|
+
var r = Yn();
|
|
2283
|
+
t.exports = function(e) {
|
|
2284
|
+
return "object" == typeof e ? null !== e : r(e);
|
|
2285
|
+
};
|
|
2286
|
+
})), si = a(((e, t) => {
|
|
2287
|
+
t.exports = {};
|
|
2288
|
+
})), oi = a(((e, t) => {
|
|
2289
|
+
var r = si(), n = Dn(), i = Yn(), s = function(e) {
|
|
2290
|
+
return i(e) ? e : void 0;
|
|
2291
|
+
};
|
|
2292
|
+
t.exports = function(e, t) {
|
|
2293
|
+
return arguments.length < 2 ? s(r[e]) || s(n[e]) : r[e] && r[e][t] || n[e] && n[e][t];
|
|
2294
|
+
};
|
|
2295
|
+
})), ai = a(((e, t) => {
|
|
2296
|
+
t.exports = $n()({}.isPrototypeOf);
|
|
2297
|
+
})), ci = a(((e, t) => {
|
|
2298
|
+
var r = Dn().navigator, n = r && r.userAgent;
|
|
2299
|
+
t.exports = n ? String(n) : "";
|
|
2300
|
+
})), ui = a(((e, t) => {
|
|
2301
|
+
var r, n, i = Dn(), s = ci(), o = i.process, a = i.Deno, c = o && o.versions || a && a.version, u = c && c.v8;
|
|
2302
|
+
u && (n = (r = u.split("."))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !n && s && (!(r = s.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = s.match(/Chrome\/(\d+)/)) && (n = +r[1]), t.exports = n;
|
|
2303
|
+
})), li = a(((e, t) => {
|
|
2304
|
+
var r = ui(), n = Gn(), i = Dn().String;
|
|
2305
|
+
t.exports = !!Object.getOwnPropertySymbols && !n((function() {
|
|
2306
|
+
var e = Symbol("symbol detection");
|
|
2307
|
+
return !i(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && r && r < 41;
|
|
2308
|
+
}));
|
|
2309
|
+
})), fi = a(((e, t) => {
|
|
2310
|
+
t.exports = li() && !Symbol.sham && "symbol" == typeof Symbol.iterator;
|
|
2311
|
+
})), pi = a(((e, t) => {
|
|
2312
|
+
var r = oi(), n = Yn(), i = ai(), s = fi(), o = Object;
|
|
2313
|
+
t.exports = s ? function(e) {
|
|
2314
|
+
return "symbol" == typeof e;
|
|
2315
|
+
} : function(e) {
|
|
2316
|
+
var t = r("Symbol");
|
|
2317
|
+
return n(t) && i(t.prototype, o(e));
|
|
2318
|
+
};
|
|
2319
|
+
})), hi = a(((e, t) => {
|
|
2320
|
+
var r = String;
|
|
2321
|
+
t.exports = function(e) {
|
|
2322
|
+
try {
|
|
2323
|
+
return r(e);
|
|
2324
|
+
} catch (e) {
|
|
2325
|
+
return "Object";
|
|
2326
|
+
}
|
|
2327
|
+
};
|
|
2328
|
+
})), mi = a(((e, t) => {
|
|
2329
|
+
var r = Yn(), n = hi(), i = TypeError;
|
|
2330
|
+
t.exports = function(e) {
|
|
2331
|
+
if (r(e)) return e;
|
|
2332
|
+
throw new i(n(e) + " is not a function");
|
|
2333
|
+
};
|
|
2334
|
+
})), yi = a(((e, t) => {
|
|
2335
|
+
var r = mi(), n = ti();
|
|
2336
|
+
t.exports = function(e, t) {
|
|
2337
|
+
var i = e[t];
|
|
2338
|
+
return n(i) ? void 0 : r(i);
|
|
2339
|
+
};
|
|
2340
|
+
})), di = a(((e, t) => {
|
|
2341
|
+
var r = Xn(), n = Yn(), i = ii(), s = TypeError;
|
|
2342
|
+
t.exports = function(e, t) {
|
|
2343
|
+
var o, a;
|
|
2344
|
+
if ("string" === t && n(o = e.toString) && !i(a = r(o, e))) return a;
|
|
2345
|
+
if (n(o = e.valueOf) && !i(a = r(o, e))) return a;
|
|
2346
|
+
if ("string" !== t && n(o = e.toString) && !i(a = r(o, e))) return a;
|
|
2347
|
+
throw new s("Can't convert object to primitive value");
|
|
2348
|
+
};
|
|
2349
|
+
})), vi = a(((e, t) => {
|
|
2350
|
+
t.exports = !0;
|
|
2351
|
+
})), bi = a(((e, t) => {
|
|
2352
|
+
var r = Dn(), n = Object.defineProperty;
|
|
2353
|
+
t.exports = function(e, t) {
|
|
2354
|
+
try {
|
|
2355
|
+
n(r, e, {
|
|
2356
|
+
value: t,
|
|
2357
|
+
configurable: !0,
|
|
2358
|
+
writable: !0
|
|
2359
|
+
});
|
|
2360
|
+
} catch (n) {
|
|
2361
|
+
r[e] = t;
|
|
2362
|
+
}
|
|
2363
|
+
return t;
|
|
2364
|
+
};
|
|
2365
|
+
})), gi = a(((e, t) => {
|
|
2366
|
+
var r = vi(), n = Dn(), i = bi(), s = "__core-js_shared__", o = t.exports = n[s] || i(s, {});
|
|
2367
|
+
(o.versions || (o.versions = [])).push({
|
|
2368
|
+
version: "3.42.0",
|
|
2369
|
+
mode: r ? "pure" : "global",
|
|
2370
|
+
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
|
2371
|
+
license: "https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",
|
|
2372
|
+
source: "https://github.com/zloirock/core-js"
|
|
2373
|
+
});
|
|
2374
|
+
})), Ei = a(((e, t) => {
|
|
2375
|
+
var r = gi();
|
|
2376
|
+
t.exports = function(e, t) {
|
|
2377
|
+
return r[e] || (r[e] = t || {});
|
|
2378
|
+
};
|
|
2379
|
+
})), ji = a(((e, t) => {
|
|
2380
|
+
var r = ri(), n = Object;
|
|
2381
|
+
t.exports = function(e) {
|
|
2382
|
+
return n(r(e));
|
|
2383
|
+
};
|
|
2384
|
+
})), xi = a(((e, t) => {
|
|
2385
|
+
var r = $n(), n = ji(), i = r({}.hasOwnProperty);
|
|
2386
|
+
t.exports = Object.hasOwn || function(e, t) {
|
|
2387
|
+
return i(n(e), t);
|
|
2388
|
+
};
|
|
2389
|
+
})), wi = a(((e, t) => {
|
|
2390
|
+
var r = $n(), n = 0, i = Math.random(), s = r(1 .toString);
|
|
2391
|
+
t.exports = function(e) {
|
|
2392
|
+
return "Symbol(" + (void 0 === e ? "" : e) + ")_" + s(++n + i, 36);
|
|
2393
|
+
};
|
|
2394
|
+
})), Oi = a(((e, t) => {
|
|
2395
|
+
var r = Dn(), n = Ei(), i = xi(), s = wi(), o = li(), a = fi(), c = r.Symbol, u = n("wks"), l = a ? c.for || c : c && c.withoutSetter || s;
|
|
2396
|
+
t.exports = function(e) {
|
|
2397
|
+
return i(u, e) || (u[e] = o && i(c, e) ? c[e] : l("Symbol." + e)), u[e];
|
|
2398
|
+
};
|
|
2399
|
+
})), Si = a(((e, t) => {
|
|
2400
|
+
var r = Xn(), n = ii(), i = pi(), s = yi(), o = di(), a = Oi(), c = TypeError, u = a("toPrimitive");
|
|
2401
|
+
t.exports = function(e, t) {
|
|
2402
|
+
if (!n(e) || i(e)) return e;
|
|
2403
|
+
var a, l = s(e, u);
|
|
2404
|
+
if (l) {
|
|
2405
|
+
if (void 0 === t && (t = "default"), a = r(l, e, t), !n(a) || i(a)) return a;
|
|
2406
|
+
throw new c("Can't convert object to primitive value");
|
|
2407
|
+
}
|
|
2408
|
+
return void 0 === t && (t = "number"), o(e, t);
|
|
2409
|
+
};
|
|
2410
|
+
})), Ai = a(((e, t) => {
|
|
2411
|
+
var r = Si(), n = pi();
|
|
2412
|
+
t.exports = function(e) {
|
|
2413
|
+
var t = r(e, "string");
|
|
2414
|
+
return n(t) ? t : t + "";
|
|
2415
|
+
};
|
|
2416
|
+
})), _i = a(((e, t) => {
|
|
2417
|
+
var r = Dn(), n = ii(), i = r.document, s = n(i) && n(i.createElement);
|
|
2418
|
+
t.exports = function(e) {
|
|
2419
|
+
return s ? i.createElement(e) : {};
|
|
2420
|
+
};
|
|
2421
|
+
})), ki = a(((e, t) => {
|
|
2422
|
+
var r = Jn(), n = Gn(), i = _i();
|
|
2423
|
+
t.exports = !r && !n((function() {
|
|
2424
|
+
return 7 !== Object.defineProperty(i("div"), "a", { get: function() {
|
|
2425
|
+
return 7;
|
|
2426
|
+
} }).a;
|
|
2427
|
+
}));
|
|
2428
|
+
})), Pi = a(((e) => {
|
|
2429
|
+
var t = Jn(), r = Xn(), n = Zn(), i = Qn(), s = ni(), o = Ai(), a = xi(), c = ki(), u = Object.getOwnPropertyDescriptor;
|
|
2430
|
+
e.f = t ? u : function(e, t) {
|
|
2431
|
+
if (e = s(e), t = o(t), c) try {
|
|
2432
|
+
return u(e, t);
|
|
2433
|
+
} catch (e) {}
|
|
2434
|
+
if (a(e, t)) return i(!r(n.f, e, t), e[t]);
|
|
2435
|
+
};
|
|
2436
|
+
})), Mi = a(((e, t) => {
|
|
2437
|
+
var r = Gn(), n = Yn(), i = /#|\.prototype\./, s = function(e, t) {
|
|
2438
|
+
var i = a[o(e)];
|
|
2439
|
+
return i === u || i !== c && (n(t) ? r(t) : !!t);
|
|
2440
|
+
}, o = s.normalize = function(e) {
|
|
2441
|
+
return String(e).replace(i, ".").toLowerCase();
|
|
2442
|
+
}, a = s.data = {}, c = s.NATIVE = "N", u = s.POLYFILL = "P";
|
|
2443
|
+
t.exports = s;
|
|
2444
|
+
})), Ti = a(((e, t) => {
|
|
2445
|
+
var r = Hn(), n = mi(), i = Un(), s = r(r.bind);
|
|
2446
|
+
t.exports = function(e, t) {
|
|
2447
|
+
return n(e), void 0 === t ? e : i ? s(e, t) : function() {
|
|
2448
|
+
return e.apply(t, arguments);
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
})), Ci = a(((e, t) => {
|
|
2452
|
+
var r = Jn(), n = Gn();
|
|
2453
|
+
t.exports = r && n((function() {
|
|
2454
|
+
return 42 !== Object.defineProperty((function() {}), "prototype", {
|
|
2455
|
+
value: 42,
|
|
2456
|
+
writable: !1
|
|
2457
|
+
}).prototype;
|
|
2458
|
+
}));
|
|
2459
|
+
})), Ri = a(((e, t) => {
|
|
2460
|
+
var r = ii(), n = String, i = TypeError;
|
|
2461
|
+
t.exports = function(e) {
|
|
2462
|
+
if (r(e)) return e;
|
|
2463
|
+
throw new i(n(e) + " is not an object");
|
|
2464
|
+
};
|
|
2465
|
+
})), Ii = a(((e) => {
|
|
2466
|
+
var t = Jn(), r = ki(), n = Ci(), i = Ri(), s = Ai(), o = TypeError, a = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = "enumerable", l = "configurable", f = "writable";
|
|
2467
|
+
e.f = t ? n ? function(e, t, r) {
|
|
2468
|
+
if (i(e), t = s(t), i(r), "function" == typeof e && "prototype" === t && "value" in r && f in r && !r[f]) {
|
|
2469
|
+
var n = c(e, t);
|
|
2470
|
+
n && n[f] && (e[t] = r.value, r = {
|
|
2471
|
+
configurable: l in r ? r[l] : n[l],
|
|
2472
|
+
enumerable: u in r ? r[u] : n[u],
|
|
2473
|
+
writable: !1
|
|
2474
|
+
});
|
|
2475
|
+
}
|
|
2476
|
+
return a(e, t, r);
|
|
2477
|
+
} : a : function(e, t, n) {
|
|
2478
|
+
if (i(e), t = s(t), i(n), r) try {
|
|
2479
|
+
return a(e, t, n);
|
|
2480
|
+
} catch (e) {}
|
|
2481
|
+
if ("get" in n || "set" in n) throw new o("Accessors not supported");
|
|
2482
|
+
return "value" in n && (e[t] = n.value), e;
|
|
2483
|
+
};
|
|
2484
|
+
})), Ni = a(((e, t) => {
|
|
2485
|
+
var r = Jn(), n = Ii(), i = Qn();
|
|
2486
|
+
t.exports = r ? function(e, t, r) {
|
|
2487
|
+
return n.f(e, t, i(1, r));
|
|
2488
|
+
} : function(e, t, r) {
|
|
2489
|
+
return e[t] = r, e;
|
|
2490
|
+
};
|
|
2491
|
+
})), Vi = a(((e, t) => {
|
|
2492
|
+
var r = Dn(), n = Kn(), i = Hn(), s = Yn(), o = Pi().f, a = Mi(), c = si(), u = Ti(), l = Ni(), f = xi();
|
|
2493
|
+
gi();
|
|
2494
|
+
var p = function(e) {
|
|
2495
|
+
var t = function(r, i, s) {
|
|
2496
|
+
if (this instanceof t) {
|
|
2497
|
+
switch (arguments.length) {
|
|
2498
|
+
case 0: return new e();
|
|
2499
|
+
case 1: return new e(r);
|
|
2500
|
+
case 2: return new e(r, i);
|
|
2501
|
+
}
|
|
2502
|
+
return new e(r, i, s);
|
|
2503
|
+
}
|
|
2504
|
+
return n(e, this, arguments);
|
|
2505
|
+
};
|
|
2506
|
+
return t.prototype = e.prototype, t;
|
|
2507
|
+
};
|
|
2508
|
+
t.exports = function(e, t) {
|
|
2509
|
+
var n, h, m, y, d, v, b, g, E, j = e.target, x = e.global, w = e.stat, O = e.proto, S = x ? r : w ? r[j] : r[j] && r[j].prototype, A = x ? c : c[j] || l(c, j, {})[j], _ = A.prototype;
|
|
2510
|
+
for (y in t) h = !(n = a(x ? y : j + (w ? "." : "#") + y, e.forced)) && S && f(S, y), v = A[y], h && (b = e.dontCallGetSet ? (E = o(S, y)) && E.value : S[y]), d = h && b ? b : t[y], (n || O || typeof v != typeof d) && (g = e.bind && h ? u(d, r) : e.wrap && h ? p(d) : O && s(d) ? i(d) : d, (e.sham || d && d.sham || v && v.sham) && l(g, "sham", !0), l(A, y, g), O && (f(c, m = j + "Prototype") || l(c, m, {}), l(c[m], y, d), e.real && _ && (n || !_[y]) && l(_, y, d)));
|
|
2511
|
+
};
|
|
2512
|
+
})), Fi = a(((e, t) => {
|
|
2513
|
+
var r = Ei(), n = wi(), i = r("keys");
|
|
2514
|
+
t.exports = function(e) {
|
|
2515
|
+
return i[e] || (i[e] = n(e));
|
|
2516
|
+
};
|
|
2517
|
+
})), qi = a(((e, t) => {
|
|
2518
|
+
t.exports = !Gn()((function() {
|
|
2519
|
+
function e() {}
|
|
2520
|
+
return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
|
|
2521
|
+
}));
|
|
2522
|
+
})), Bi = a(((e, t) => {
|
|
2523
|
+
var r = xi(), n = Yn(), i = ji(), s = Fi(), o = qi(), a = s("IE_PROTO"), c = Object, u = c.prototype;
|
|
2524
|
+
t.exports = o ? c.getPrototypeOf : function(e) {
|
|
2525
|
+
var t = i(e);
|
|
2526
|
+
if (r(t, a)) return t[a];
|
|
2527
|
+
var s = t.constructor;
|
|
2528
|
+
return n(s) && t instanceof s ? s.prototype : t instanceof c ? u : null;
|
|
2529
|
+
};
|
|
2530
|
+
})), Li = a(((e, t) => {
|
|
2531
|
+
var r = $n(), n = mi();
|
|
2532
|
+
t.exports = function(e, t, i) {
|
|
2533
|
+
try {
|
|
2534
|
+
return r(n(Object.getOwnPropertyDescriptor(e, t)[i]));
|
|
2535
|
+
} catch (e) {}
|
|
2536
|
+
};
|
|
2537
|
+
})), zi = a(((e, t) => {
|
|
2538
|
+
var r = ii();
|
|
2539
|
+
t.exports = function(e) {
|
|
2540
|
+
return r(e) || null === e;
|
|
2541
|
+
};
|
|
2542
|
+
})), Di = a(((e, t) => {
|
|
2543
|
+
var r = zi(), n = String, i = TypeError;
|
|
2544
|
+
t.exports = function(e) {
|
|
2545
|
+
if (r(e)) return e;
|
|
2546
|
+
throw new i("Can't set " + n(e) + " as a prototype");
|
|
2547
|
+
};
|
|
2548
|
+
})), Gi = a(((e, t) => {
|
|
2549
|
+
var r = Li(), n = ii(), i = ri(), s = Di();
|
|
2550
|
+
t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
2551
|
+
var e, t = !1, o = {};
|
|
2552
|
+
try {
|
|
2553
|
+
(e = r(Object.prototype, "__proto__", "set"))(o, []), t = o instanceof Array;
|
|
2554
|
+
} catch (e) {}
|
|
2555
|
+
return function(r, o) {
|
|
2556
|
+
return i(r), s(o), n(r) ? (t ? e(r, o) : r.__proto__ = o, r) : r;
|
|
2557
|
+
};
|
|
2558
|
+
}() : void 0);
|
|
2559
|
+
})), Ui = a(((e, t) => {
|
|
2560
|
+
var r = Math.ceil, n = Math.floor;
|
|
2561
|
+
t.exports = Math.trunc || function(e) {
|
|
2562
|
+
var t = +e;
|
|
2563
|
+
return (t > 0 ? n : r)(t);
|
|
2564
|
+
};
|
|
2565
|
+
})), Ki = a(((e, t) => {
|
|
2566
|
+
var r = Ui();
|
|
2567
|
+
t.exports = function(e) {
|
|
2568
|
+
var t = +e;
|
|
2569
|
+
return t != t || 0 === t ? 0 : r(t);
|
|
2570
|
+
};
|
|
2571
|
+
})), $i = a(((e, t) => {
|
|
2572
|
+
var r = Ki(), n = Math.max, i = Math.min;
|
|
2573
|
+
t.exports = function(e, t) {
|
|
2574
|
+
var s = r(e);
|
|
2575
|
+
return s < 0 ? n(s + t, 0) : i(s, t);
|
|
2576
|
+
};
|
|
2577
|
+
})), Wi = a(((e, t) => {
|
|
2578
|
+
var r = Ki(), n = Math.min;
|
|
2579
|
+
t.exports = function(e) {
|
|
2580
|
+
var t = r(e);
|
|
2581
|
+
return t > 0 ? n(t, 9007199254740991) : 0;
|
|
2582
|
+
};
|
|
2583
|
+
})), Hi = a(((e, t) => {
|
|
2584
|
+
var r = Wi();
|
|
2585
|
+
t.exports = function(e) {
|
|
2586
|
+
return r(e.length);
|
|
2587
|
+
};
|
|
2588
|
+
})), Yi = a(((e, t) => {
|
|
2589
|
+
var r = ni(), n = $i(), i = Hi(), s = function(e) {
|
|
2590
|
+
return function(t, s, o) {
|
|
2591
|
+
var a = r(t), c = i(a);
|
|
2592
|
+
if (0 === c) return !e && -1;
|
|
2593
|
+
var u, l = n(o, c);
|
|
2594
|
+
if (e && s != s) {
|
|
2595
|
+
for (; c > l;) if ((u = a[l++]) != u) return !0;
|
|
2596
|
+
} else for (; c > l; l++) if ((e || l in a) && a[l] === s) return e || l || 0;
|
|
2597
|
+
return !e && -1;
|
|
2598
|
+
};
|
|
2599
|
+
};
|
|
2600
|
+
t.exports = {
|
|
2601
|
+
includes: s(!0),
|
|
2602
|
+
indexOf: s(!1)
|
|
2603
|
+
};
|
|
2604
|
+
})), Ji = a(((e, t) => {
|
|
2605
|
+
t.exports = {};
|
|
2606
|
+
})), Xi = a(((e, t) => {
|
|
2607
|
+
var r = $n(), n = xi(), i = ni(), s = Yi().indexOf, o = Ji(), a = r([].push);
|
|
2608
|
+
t.exports = function(e, t) {
|
|
2609
|
+
var r, c = i(e), u = 0, l = [];
|
|
2610
|
+
for (r in c) !n(o, r) && n(c, r) && a(l, r);
|
|
2611
|
+
for (; t.length > u;) n(c, r = t[u++]) && (~s(l, r) || a(l, r));
|
|
2612
|
+
return l;
|
|
2613
|
+
};
|
|
2614
|
+
})), Zi = a(((e, t) => {
|
|
2615
|
+
t.exports = [
|
|
2616
|
+
"constructor",
|
|
2617
|
+
"hasOwnProperty",
|
|
2618
|
+
"isPrototypeOf",
|
|
2619
|
+
"propertyIsEnumerable",
|
|
2620
|
+
"toLocaleString",
|
|
2621
|
+
"toString",
|
|
2622
|
+
"valueOf"
|
|
2623
|
+
];
|
|
2624
|
+
})), Qi = a(((e) => {
|
|
2625
|
+
var t = Xi(), r = Zi().concat("length", "prototype");
|
|
2626
|
+
e.f = Object.getOwnPropertyNames || function(e) {
|
|
2627
|
+
return t(e, r);
|
|
2628
|
+
};
|
|
2629
|
+
})), es = a(((e) => {
|
|
2630
|
+
e.f = Object.getOwnPropertySymbols;
|
|
2631
|
+
})), ts = a(((e, t) => {
|
|
2632
|
+
var r = oi(), n = $n(), i = Qi(), s = es(), o = Ri(), a = n([].concat);
|
|
2633
|
+
t.exports = r("Reflect", "ownKeys") || function(e) {
|
|
2634
|
+
var t = i.f(o(e)), r = s.f;
|
|
2635
|
+
return r ? a(t, r(e)) : t;
|
|
2636
|
+
};
|
|
2637
|
+
})), rs = a(((e, t) => {
|
|
2638
|
+
var r = xi(), n = ts(), i = Pi(), s = Ii();
|
|
2639
|
+
t.exports = function(e, t, o) {
|
|
2640
|
+
for (var a = n(t), c = s.f, u = i.f, l = 0; l < a.length; l++) {
|
|
2641
|
+
var f = a[l];
|
|
2642
|
+
r(e, f) || o && r(o, f) || c(e, f, u(t, f));
|
|
2643
|
+
}
|
|
2644
|
+
};
|
|
2645
|
+
})), ns = a(((e, t) => {
|
|
2646
|
+
var r = Xi(), n = Zi();
|
|
2647
|
+
t.exports = Object.keys || function(e) {
|
|
2648
|
+
return r(e, n);
|
|
2649
|
+
};
|
|
2650
|
+
})), is = a(((e) => {
|
|
2651
|
+
var t = Jn(), r = Ci(), n = Ii(), i = Ri(), s = ni(), o = ns();
|
|
2652
|
+
e.f = t && !r ? Object.defineProperties : function(e, t) {
|
|
2653
|
+
i(e);
|
|
2654
|
+
for (var r, a = s(t), c = o(t), u = c.length, l = 0; u > l;) n.f(e, r = c[l++], a[r]);
|
|
2655
|
+
return e;
|
|
2656
|
+
};
|
|
2657
|
+
})), ss = a(((e, t) => {
|
|
2658
|
+
t.exports = oi()("document", "documentElement");
|
|
2659
|
+
})), os = a(((e, t) => {
|
|
2660
|
+
var r, n = Ri(), i = is(), s = Zi(), o = Ji(), a = ss(), c = _i(), u = Fi(), l = "prototype", f = "script", p = u("IE_PROTO"), h = function() {}, m = function(e) {
|
|
2661
|
+
return "<" + f + ">" + e + "</" + f + ">";
|
|
2662
|
+
}, y = function(e) {
|
|
2663
|
+
e.write(m("")), e.close();
|
|
2664
|
+
var t = e.parentWindow.Object;
|
|
2665
|
+
return e = null, t;
|
|
2666
|
+
}, d = function() {
|
|
2667
|
+
try {
|
|
2668
|
+
r = new ActiveXObject("htmlfile");
|
|
2669
|
+
} catch (e) {}
|
|
2670
|
+
var e, t, n;
|
|
2671
|
+
d = "undefined" != typeof document ? document.domain && r ? y(r) : (t = c("iframe"), n = "java" + f + ":", t.style.display = "none", a.appendChild(t), t.src = String(n), (e = t.contentWindow.document).open(), e.write(m("document.F=Object")), e.close(), e.F) : y(r);
|
|
2672
|
+
for (var i = s.length; i--;) delete d[l][s[i]];
|
|
2673
|
+
return d();
|
|
2674
|
+
};
|
|
2675
|
+
o[p] = !0, t.exports = Object.create || function(e, t) {
|
|
2676
|
+
var r;
|
|
2677
|
+
return null !== e ? (h[l] = n(e), r = new h(), h[l] = null, r[p] = e) : r = d(), void 0 === t ? r : i.f(r, t);
|
|
2678
|
+
};
|
|
2679
|
+
})), as = a(((e, t) => {
|
|
2680
|
+
var r = ii(), n = Ni();
|
|
2681
|
+
t.exports = function(e, t) {
|
|
2682
|
+
r(t) && "cause" in t && n(e, "cause", t.cause);
|
|
2683
|
+
};
|
|
2684
|
+
})), cs = a(((e, t) => {
|
|
2685
|
+
var r = $n(), n = Error, i = r("".replace), s = String(new n("zxcasd").stack), o = /\n\s*at [^:]*:[^\n]*/, a = o.test(s);
|
|
2686
|
+
t.exports = function(e, t) {
|
|
2687
|
+
if (a && "string" == typeof e && !n.prepareStackTrace) for (; t--;) e = i(e, o, "");
|
|
2688
|
+
return e;
|
|
2689
|
+
};
|
|
2690
|
+
})), us = a(((e, t) => {
|
|
2691
|
+
var r = Gn(), n = Qn();
|
|
2692
|
+
t.exports = !r((function() {
|
|
2693
|
+
var e = /* @__PURE__ */ new Error("a");
|
|
2694
|
+
return !("stack" in e) || (Object.defineProperty(e, "stack", n(1, 7)), 7 !== e.stack);
|
|
2695
|
+
}));
|
|
2696
|
+
})), ls = a(((e, t) => {
|
|
2697
|
+
var r = Ni(), n = cs(), i = us(), s = Error.captureStackTrace;
|
|
2698
|
+
t.exports = function(e, t, o, a) {
|
|
2699
|
+
i && (s ? s(e, t) : r(e, "stack", n(o, a)));
|
|
2700
|
+
};
|
|
2701
|
+
})), fs = a(((e, t) => {
|
|
2702
|
+
t.exports = {};
|
|
2703
|
+
})), ps = a(((e, t) => {
|
|
2704
|
+
var r = Oi(), n = fs(), i = r("iterator"), s = Array.prototype;
|
|
2705
|
+
t.exports = function(e) {
|
|
2706
|
+
return void 0 !== e && (n.Array === e || s[i] === e);
|
|
2707
|
+
};
|
|
2708
|
+
})), hs = a(((e, t) => {
|
|
2709
|
+
var r = {};
|
|
2710
|
+
r[Oi()("toStringTag")] = "z", t.exports = "[object z]" === String(r);
|
|
2711
|
+
})), ms = a(((e, t) => {
|
|
2712
|
+
var r = hs(), n = Yn(), i = Wn(), s = Oi()("toStringTag"), o = Object, a = "Arguments" === i(function() {
|
|
2713
|
+
return arguments;
|
|
2714
|
+
}());
|
|
2715
|
+
t.exports = r ? i : function(e) {
|
|
2716
|
+
var t, r, c;
|
|
2717
|
+
return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (r = function(e, t) {
|
|
2718
|
+
try {
|
|
2719
|
+
return e[t];
|
|
2720
|
+
} catch (e) {}
|
|
2721
|
+
}(t = o(e), s)) ? r : a ? i(t) : "Object" === (c = i(t)) && n(t.callee) ? "Arguments" : c;
|
|
2722
|
+
};
|
|
2723
|
+
})), ys = a(((e, t) => {
|
|
2724
|
+
var r = ms(), n = yi(), i = ti(), s = fs(), o = Oi()("iterator");
|
|
2725
|
+
t.exports = function(e) {
|
|
2726
|
+
if (!i(e)) return n(e, o) || n(e, "@@iterator") || s[r(e)];
|
|
2727
|
+
};
|
|
2728
|
+
})), ds = a(((e, t) => {
|
|
2729
|
+
var r = Xn(), n = mi(), i = Ri(), s = hi(), o = ys(), a = TypeError;
|
|
2730
|
+
t.exports = function(e, t) {
|
|
2731
|
+
var c = arguments.length < 2 ? o(e) : t;
|
|
2732
|
+
if (n(c)) return i(r(c, e));
|
|
2733
|
+
throw new a(s(e) + " is not iterable");
|
|
2734
|
+
};
|
|
2735
|
+
})), vs = a(((e, t) => {
|
|
2736
|
+
var r = Xn(), n = Ri(), i = yi();
|
|
2737
|
+
t.exports = function(e, t, s) {
|
|
2738
|
+
var o, a;
|
|
2739
|
+
n(e);
|
|
2740
|
+
try {
|
|
2741
|
+
if (!(o = i(e, "return"))) {
|
|
2742
|
+
if ("throw" === t) throw s;
|
|
2743
|
+
return s;
|
|
2744
|
+
}
|
|
2745
|
+
o = r(o, e);
|
|
2746
|
+
} catch (e) {
|
|
2747
|
+
a = !0, o = e;
|
|
2748
|
+
}
|
|
2749
|
+
if ("throw" === t) throw s;
|
|
2750
|
+
if (a) throw o;
|
|
2751
|
+
return n(o), s;
|
|
2752
|
+
};
|
|
2753
|
+
})), bs = a(((e, t) => {
|
|
2754
|
+
var r = Ti(), n = Xn(), i = Ri(), s = hi(), o = ps(), a = Hi(), c = ai(), u = ds(), l = ys(), f = vs(), p = TypeError, h = function(e, t) {
|
|
2755
|
+
this.stopped = e, this.result = t;
|
|
2756
|
+
}, m = h.prototype;
|
|
2757
|
+
t.exports = function(e, t, y) {
|
|
2758
|
+
var d, v, b, g, E, j, x, w = y && y.that, O = !(!y || !y.AS_ENTRIES), S = !(!y || !y.IS_RECORD), A = !(!y || !y.IS_ITERATOR), _ = !(!y || !y.INTERRUPTED), k = r(t, w), P = function(e) {
|
|
2759
|
+
return d && f(d, "normal", e), new h(!0, e);
|
|
2760
|
+
}, M = function(e) {
|
|
2761
|
+
return O ? (i(e), _ ? k(e[0], e[1], P) : k(e[0], e[1])) : _ ? k(e, P) : k(e);
|
|
2762
|
+
};
|
|
2763
|
+
if (S) d = e.iterator;
|
|
2764
|
+
else if (A) d = e;
|
|
2765
|
+
else {
|
|
2766
|
+
if (!(v = l(e))) throw new p(s(e) + " is not iterable");
|
|
2767
|
+
if (o(v)) {
|
|
2768
|
+
for (b = 0, g = a(e); g > b; b++) if ((E = M(e[b])) && c(m, E)) return E;
|
|
2769
|
+
return new h(!1);
|
|
2770
|
+
}
|
|
2771
|
+
d = u(e, v);
|
|
2772
|
+
}
|
|
2773
|
+
for (j = S ? e.next : d.next; !(x = n(j, d)).done;) {
|
|
2774
|
+
try {
|
|
2775
|
+
E = M(x.value);
|
|
2776
|
+
} catch (e) {
|
|
2777
|
+
f(d, "throw", e);
|
|
2778
|
+
}
|
|
2779
|
+
if ("object" == typeof E && E && c(m, E)) return E;
|
|
2780
|
+
}
|
|
2781
|
+
return new h(!1);
|
|
2782
|
+
};
|
|
2783
|
+
})), gs = a(((e, t) => {
|
|
2784
|
+
var r = ms(), n = String;
|
|
2785
|
+
t.exports = function(e) {
|
|
2786
|
+
if ("Symbol" === r(e)) throw new TypeError("Cannot convert a Symbol value to a string");
|
|
2787
|
+
return n(e);
|
|
2788
|
+
};
|
|
2789
|
+
})), Es = a(((e, t) => {
|
|
2790
|
+
var r = gs();
|
|
2791
|
+
t.exports = function(e, t) {
|
|
2792
|
+
return void 0 === e ? arguments.length < 2 ? "" : t : r(e);
|
|
2793
|
+
};
|
|
2794
|
+
})), js = a((() => {
|
|
2795
|
+
var e = Vi(), t = ai(), r = Bi(), n = Gi(), i = rs(), s = os(), o = Ni(), a = Qn(), c = as(), u = ls(), l = bs(), f = Es(), p = Oi()("toStringTag"), h = Error, m = [].push, y = function(e, i) {
|
|
2796
|
+
var a, v = t(d, this);
|
|
2797
|
+
n ? a = n(new h(), v ? r(this) : d) : (a = v ? this : s(d), o(a, p, "Error")), void 0 !== i && o(a, "message", f(i)), u(a, y, a.stack, 1), arguments.length > 2 && c(a, arguments[2]);
|
|
2798
|
+
var b = [];
|
|
2799
|
+
return l(e, m, { that: b }), o(a, "errors", b), a;
|
|
2800
|
+
};
|
|
2801
|
+
n ? n(y, h) : i(y, h, { name: !0 });
|
|
2802
|
+
var d = y.prototype = s(h.prototype, {
|
|
2803
|
+
constructor: a(1, y),
|
|
2804
|
+
message: a(1, ""),
|
|
2805
|
+
name: a(1, "AggregateError")
|
|
2806
|
+
});
|
|
2807
|
+
e({
|
|
2808
|
+
global: !0,
|
|
2809
|
+
constructor: !0,
|
|
2810
|
+
arity: 2
|
|
2811
|
+
}, { AggregateError: y });
|
|
2812
|
+
})), xs = a((() => {
|
|
2813
|
+
js();
|
|
2814
|
+
})), ws = a((() => {
|
|
2815
|
+
xs();
|
|
2816
|
+
})), Os = a(((e, t) => {
|
|
2817
|
+
var r = Ii().f;
|
|
2818
|
+
t.exports = function(e, t, n) {
|
|
2819
|
+
n in e || r(e, n, {
|
|
2820
|
+
configurable: !0,
|
|
2821
|
+
get: function() {
|
|
2822
|
+
return t[n];
|
|
2823
|
+
},
|
|
2824
|
+
set: function(e) {
|
|
2825
|
+
t[n] = e;
|
|
2826
|
+
}
|
|
2827
|
+
});
|
|
2828
|
+
};
|
|
2829
|
+
})), Ss = a(((e, t) => {
|
|
2830
|
+
var r = Yn(), n = ii(), i = Gi();
|
|
2831
|
+
t.exports = function(e, t, s) {
|
|
2832
|
+
var o, a;
|
|
2833
|
+
return i && r(o = t.constructor) && o !== s && n(a = o.prototype) && a !== s.prototype && i(e, a), e;
|
|
2834
|
+
};
|
|
2835
|
+
})), As = a(((e, t) => {
|
|
2836
|
+
var r = oi(), n = xi(), i = Ni(), s = ai(), o = Gi(), a = rs(), c = Os(), u = Ss(), l = Es(), f = as(), p = ls(), h = Jn(), m = vi();
|
|
2837
|
+
t.exports = function(e, t, y, d) {
|
|
2838
|
+
var v = "stackTraceLimit", b = d ? 2 : 1, g = e.split("."), E = g[g.length - 1], j = r.apply(null, g);
|
|
2839
|
+
if (j) {
|
|
2840
|
+
var x = j.prototype;
|
|
2841
|
+
if (!m && n(x, "cause") && delete x.cause, !y) return j;
|
|
2842
|
+
var w = r("Error"), O = t((function(e, t) {
|
|
2843
|
+
var r = l(d ? t : e, void 0), n = d ? new j(e) : new j();
|
|
2844
|
+
return void 0 !== r && i(n, "message", r), p(n, O, n.stack, 2), this && s(x, this) && u(n, this, O), arguments.length > b && f(n, arguments[b]), n;
|
|
2845
|
+
}));
|
|
2846
|
+
if (O.prototype = x, "Error" !== E ? o ? o(O, w) : a(O, w, { name: !0 }) : h && v in j && (c(O, j, v), c(O, j, "prepareStackTrace")), a(O, j), !m) try {
|
|
2847
|
+
x.name !== E && i(x, "name", E), x.constructor = O;
|
|
2848
|
+
} catch (e) {}
|
|
2849
|
+
return O;
|
|
2850
|
+
}
|
|
2851
|
+
};
|
|
2852
|
+
})), _s = a((() => {
|
|
2853
|
+
var e = Vi(), t = Dn(), r = Kn(), n = As(), i = "WebAssembly", s = t[i], o = 7 !== new Error("e", { cause: 7 }).cause, a = function(t, r) {
|
|
2854
|
+
var i = {};
|
|
2855
|
+
i[t] = n(t, r, o), e({
|
|
2856
|
+
global: !0,
|
|
2857
|
+
constructor: !0,
|
|
2858
|
+
arity: 1,
|
|
2859
|
+
forced: o
|
|
2860
|
+
}, i);
|
|
2861
|
+
}, c = function(t, r) {
|
|
2862
|
+
if (s && s[t]) {
|
|
2863
|
+
var a = {};
|
|
2864
|
+
a[t] = n(i + "." + t, r, o), e({
|
|
2865
|
+
target: i,
|
|
2866
|
+
stat: !0,
|
|
2867
|
+
constructor: !0,
|
|
2868
|
+
arity: 1,
|
|
2869
|
+
forced: o
|
|
2870
|
+
}, a);
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2873
|
+
a("Error", (function(e) {
|
|
2874
|
+
return function(t) {
|
|
2875
|
+
return r(e, this, arguments);
|
|
2876
|
+
};
|
|
2877
|
+
})), a("EvalError", (function(e) {
|
|
2878
|
+
return function(t) {
|
|
2879
|
+
return r(e, this, arguments);
|
|
2880
|
+
};
|
|
2881
|
+
})), a("RangeError", (function(e) {
|
|
2882
|
+
return function(t) {
|
|
2883
|
+
return r(e, this, arguments);
|
|
2884
|
+
};
|
|
2885
|
+
})), a("ReferenceError", (function(e) {
|
|
2886
|
+
return function(t) {
|
|
2887
|
+
return r(e, this, arguments);
|
|
2888
|
+
};
|
|
2889
|
+
})), a("SyntaxError", (function(e) {
|
|
2890
|
+
return function(t) {
|
|
2891
|
+
return r(e, this, arguments);
|
|
2892
|
+
};
|
|
2893
|
+
})), a("TypeError", (function(e) {
|
|
2894
|
+
return function(t) {
|
|
2895
|
+
return r(e, this, arguments);
|
|
2896
|
+
};
|
|
2897
|
+
})), a("URIError", (function(e) {
|
|
2898
|
+
return function(t) {
|
|
2899
|
+
return r(e, this, arguments);
|
|
2900
|
+
};
|
|
2901
|
+
})), c("CompileError", (function(e) {
|
|
2902
|
+
return function(t) {
|
|
2903
|
+
return r(e, this, arguments);
|
|
2904
|
+
};
|
|
2905
|
+
})), c("LinkError", (function(e) {
|
|
2906
|
+
return function(t) {
|
|
2907
|
+
return r(e, this, arguments);
|
|
2908
|
+
};
|
|
2909
|
+
})), c("RuntimeError", (function(e) {
|
|
2910
|
+
return function(t) {
|
|
2911
|
+
return r(e, this, arguments);
|
|
2912
|
+
};
|
|
2913
|
+
}));
|
|
2914
|
+
})), ks = a((() => {
|
|
2915
|
+
var e = Vi(), t = oi(), r = Kn(), n = Gn(), i = As(), s = "AggregateError", o = t(s), a = !n((function() {
|
|
2916
|
+
return 1 !== o([1]).errors[0];
|
|
2917
|
+
})) && n((function() {
|
|
2918
|
+
return 7 !== o([1], s, { cause: 7 }).cause;
|
|
2919
|
+
}));
|
|
2920
|
+
e({
|
|
2921
|
+
global: !0,
|
|
2922
|
+
constructor: !0,
|
|
2923
|
+
arity: 2,
|
|
2924
|
+
forced: a
|
|
2925
|
+
}, { AggregateError: i(s, (function(e) {
|
|
2926
|
+
return function(t, n) {
|
|
2927
|
+
return r(e, this, arguments);
|
|
2928
|
+
};
|
|
2929
|
+
}), a, !0) });
|
|
2930
|
+
})), Ps = a(((e, t) => {
|
|
2931
|
+
t.exports = function() {};
|
|
2932
|
+
})), Ms = a(((e, t) => {
|
|
2933
|
+
var r = Dn(), n = Yn(), i = r.WeakMap;
|
|
2934
|
+
t.exports = n(i) && /native code/.test(String(i));
|
|
2935
|
+
})), Ts = a(((e, t) => {
|
|
2936
|
+
var r, n, i, s = Ms(), o = Dn(), a = ii(), c = Ni(), u = xi(), l = gi(), f = Fi(), p = Ji(), h = "Object already initialized", m = o.TypeError, y = o.WeakMap;
|
|
2937
|
+
if (s || l.state) {
|
|
2938
|
+
var d = l.state || (l.state = new y());
|
|
2939
|
+
d.get = d.get, d.has = d.has, d.set = d.set, r = function(e, t) {
|
|
2940
|
+
if (d.has(e)) throw new m(h);
|
|
2941
|
+
return t.facade = e, d.set(e, t), t;
|
|
2942
|
+
}, n = function(e) {
|
|
2943
|
+
return d.get(e) || {};
|
|
2944
|
+
}, i = function(e) {
|
|
2945
|
+
return d.has(e);
|
|
2946
|
+
};
|
|
2947
|
+
} else {
|
|
2948
|
+
var v = f("state");
|
|
2949
|
+
p[v] = !0, r = function(e, t) {
|
|
2950
|
+
if (u(e, v)) throw new m(h);
|
|
2951
|
+
return t.facade = e, c(e, v, t), t;
|
|
2952
|
+
}, n = function(e) {
|
|
2953
|
+
return u(e, v) ? e[v] : {};
|
|
2954
|
+
}, i = function(e) {
|
|
2955
|
+
return u(e, v);
|
|
2956
|
+
};
|
|
2957
|
+
}
|
|
2958
|
+
t.exports = {
|
|
2959
|
+
set: r,
|
|
2960
|
+
get: n,
|
|
2961
|
+
has: i,
|
|
2962
|
+
enforce: function(e) {
|
|
2963
|
+
return i(e) ? n(e) : r(e, {});
|
|
2964
|
+
},
|
|
2965
|
+
getterFor: function(e) {
|
|
2966
|
+
return function(t) {
|
|
2967
|
+
var r;
|
|
2968
|
+
if (!a(t) || (r = n(t)).type !== e) throw new m("Incompatible receiver, " + e + " required");
|
|
2969
|
+
return r;
|
|
2970
|
+
};
|
|
2971
|
+
}
|
|
2972
|
+
};
|
|
2973
|
+
})), Cs = a(((e, t) => {
|
|
2974
|
+
var r = Jn(), n = xi(), i = Function.prototype, s = r && Object.getOwnPropertyDescriptor, o = n(i, "name");
|
|
2975
|
+
t.exports = {
|
|
2976
|
+
EXISTS: o,
|
|
2977
|
+
PROPER: o && "something" === function() {}.name,
|
|
2978
|
+
CONFIGURABLE: o && (!r || r && s(i, "name").configurable)
|
|
2979
|
+
};
|
|
2980
|
+
})), Rs = a(((e, t) => {
|
|
2981
|
+
var r = Ni();
|
|
2982
|
+
t.exports = function(e, t, n, i) {
|
|
2983
|
+
return i && i.enumerable ? e[t] = n : r(e, t, n), e;
|
|
2984
|
+
};
|
|
2985
|
+
})), Is = a(((e, t) => {
|
|
2986
|
+
var r, n, i, s = Gn(), o = Yn(), a = ii(), c = os(), u = Bi(), l = Rs(), f = Oi(), p = vi(), h = f("iterator"), m = !1;
|
|
2987
|
+
[].keys && ("next" in (i = [].keys()) ? (n = u(u(i))) !== Object.prototype && (r = n) : m = !0), !a(r) || s((function() {
|
|
2988
|
+
var e = {};
|
|
2989
|
+
return r[h].call(e) !== e;
|
|
2990
|
+
})) ? r = {} : p && (r = c(r)), o(r[h]) || l(r, h, (function() {
|
|
2991
|
+
return this;
|
|
2992
|
+
})), t.exports = {
|
|
2993
|
+
IteratorPrototype: r,
|
|
2994
|
+
BUGGY_SAFARI_ITERATORS: m
|
|
2995
|
+
};
|
|
2996
|
+
})), Ns = a(((e, t) => {
|
|
2997
|
+
var r = hs(), n = ms();
|
|
2998
|
+
t.exports = r ? {}.toString : function() {
|
|
2999
|
+
return "[object " + n(this) + "]";
|
|
3000
|
+
};
|
|
3001
|
+
})), Vs = a(((e, t) => {
|
|
3002
|
+
var r = hs(), n = Ii().f, i = Ni(), s = xi(), o = Ns(), a = Oi()("toStringTag");
|
|
3003
|
+
t.exports = function(e, t, c, u) {
|
|
3004
|
+
var l = c ? e : e && e.prototype;
|
|
3005
|
+
l && (s(l, a) || n(l, a, {
|
|
3006
|
+
configurable: !0,
|
|
3007
|
+
value: t
|
|
3008
|
+
}), u && !r && i(l, "toString", o));
|
|
3009
|
+
};
|
|
3010
|
+
})), Fs = a(((e, t) => {
|
|
3011
|
+
var r = Is().IteratorPrototype, n = os(), i = Qn(), s = Vs(), o = fs(), a = function() {
|
|
3012
|
+
return this;
|
|
3013
|
+
};
|
|
3014
|
+
t.exports = function(e, t, c, u) {
|
|
3015
|
+
var l = t + " Iterator";
|
|
3016
|
+
return e.prototype = n(r, { next: i(+!u, c) }), s(e, l, !1, !0), o[l] = a, e;
|
|
3017
|
+
};
|
|
3018
|
+
})), qs = a(((e, t) => {
|
|
3019
|
+
var r = Vi(), n = Xn(), i = vi(), s = Cs(), o = Yn(), a = Fs(), c = Bi(), u = Gi(), l = Vs(), f = Ni(), p = Rs(), h = Oi(), m = fs(), y = Is(), d = s.PROPER, v = s.CONFIGURABLE, b = y.IteratorPrototype, g = y.BUGGY_SAFARI_ITERATORS, E = h("iterator"), j = "keys", x = "values", w = "entries", O = function() {
|
|
3020
|
+
return this;
|
|
3021
|
+
};
|
|
3022
|
+
t.exports = function(e, t, s, h, y, S, A) {
|
|
3023
|
+
a(s, t, h);
|
|
3024
|
+
var _, k, P, M = function(e) {
|
|
3025
|
+
if (e === y && N) return N;
|
|
3026
|
+
if (!g && e && e in R) return R[e];
|
|
3027
|
+
switch (e) {
|
|
3028
|
+
case j:
|
|
3029
|
+
case x:
|
|
3030
|
+
case w: return function() {
|
|
3031
|
+
return new s(this, e);
|
|
3032
|
+
};
|
|
3033
|
+
}
|
|
3034
|
+
return function() {
|
|
3035
|
+
return new s(this);
|
|
3036
|
+
};
|
|
3037
|
+
}, T = t + " Iterator", C = !1, R = e.prototype, I = R[E] || R["@@iterator"] || y && R[y], N = !g && I || M(y), V = "Array" === t && R.entries || I;
|
|
3038
|
+
if (V && (_ = c(V.call(new e()))) !== Object.prototype && _.next && (i || c(_) === b || (u ? u(_, b) : o(_[E]) || p(_, E, O)), l(_, T, !0, !0), i && (m[T] = O)), d && y === x && I && I.name !== x && (!i && v ? f(R, "name", x) : (C = !0, N = function() {
|
|
3039
|
+
return n(I, this);
|
|
3040
|
+
})), y) if (k = {
|
|
3041
|
+
values: M(x),
|
|
3042
|
+
keys: S ? N : M(j),
|
|
3043
|
+
entries: M(w)
|
|
3044
|
+
}, A) for (P in k) (g || C || !(P in R)) && p(R, P, k[P]);
|
|
3045
|
+
else r({
|
|
3046
|
+
target: t,
|
|
3047
|
+
proto: !0,
|
|
3048
|
+
forced: g || C
|
|
3049
|
+
}, k);
|
|
3050
|
+
return i && !A || R[E] === N || p(R, E, N, { name: y }), m[t] = N, k;
|
|
3051
|
+
};
|
|
3052
|
+
})), Bs = a(((e, t) => {
|
|
3053
|
+
t.exports = function(e, t) {
|
|
3054
|
+
return {
|
|
3055
|
+
value: e,
|
|
3056
|
+
done: t
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
})), Ls = a(((e, t) => {
|
|
3060
|
+
var r = ni(), n = Ps(), i = fs(), s = Ts(), o = Ii().f, a = qs(), c = Bs(), u = vi(), l = Jn(), f = "Array Iterator", p = s.set, h = s.getterFor(f);
|
|
3061
|
+
t.exports = a(Array, "Array", (function(e, t) {
|
|
3062
|
+
p(this, {
|
|
3063
|
+
type: f,
|
|
3064
|
+
target: r(e),
|
|
3065
|
+
index: 0,
|
|
3066
|
+
kind: t
|
|
3067
|
+
});
|
|
3068
|
+
}), (function() {
|
|
3069
|
+
var e = h(this), t = e.target, r = e.index++;
|
|
3070
|
+
if (!t || r >= t.length) return e.target = null, c(void 0, !0);
|
|
3071
|
+
switch (e.kind) {
|
|
3072
|
+
case "keys": return c(r, !1);
|
|
3073
|
+
case "values": return c(t[r], !1);
|
|
3074
|
+
}
|
|
3075
|
+
return c([r, t[r]], !1);
|
|
3076
|
+
}), "values");
|
|
3077
|
+
var m = i.Arguments = i.Array;
|
|
3078
|
+
if (n("keys"), n("values"), n("entries"), !u && l && "values" !== m.name) try {
|
|
3079
|
+
o(m, "name", { value: "values" });
|
|
3080
|
+
} catch (e) {}
|
|
3081
|
+
})), zs = a(((e, t) => {
|
|
3082
|
+
var r = $n(), n = Ki(), i = gs(), s = ri(), o = r("".charAt), a = r("".charCodeAt), c = r("".slice), u = function(e) {
|
|
3083
|
+
return function(t, r) {
|
|
3084
|
+
var u, l, f = i(s(t)), p = n(r), h = f.length;
|
|
3085
|
+
return p < 0 || p >= h ? e ? "" : void 0 : (u = a(f, p)) < 55296 || u > 56319 || p + 1 === h || (l = a(f, p + 1)) < 56320 || l > 57343 ? e ? o(f, p) : u : e ? c(f, p, p + 2) : l - 56320 + (u - 55296 << 10) + 65536;
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
3088
|
+
t.exports = {
|
|
3089
|
+
codeAt: u(!1),
|
|
3090
|
+
charAt: u(!0)
|
|
3091
|
+
};
|
|
3092
|
+
})), Ds = a((() => {
|
|
3093
|
+
var e = zs().charAt, t = gs(), r = Ts(), n = qs(), i = Bs(), s = "String Iterator", o = r.set, a = r.getterFor(s);
|
|
3094
|
+
n(String, "String", (function(e) {
|
|
3095
|
+
o(this, {
|
|
3096
|
+
type: s,
|
|
3097
|
+
string: t(e),
|
|
3098
|
+
index: 0
|
|
3099
|
+
});
|
|
3100
|
+
}), (function() {
|
|
3101
|
+
var t, r = a(this), n = r.string, s = r.index;
|
|
3102
|
+
return s >= n.length ? i(void 0, !0) : (t = e(n, s), r.index += t.length, i(t, !1));
|
|
3103
|
+
}));
|
|
3104
|
+
})), Gs = a(((e, t) => {
|
|
3105
|
+
_s(), xs(), ks(), Ls(), Ds();
|
|
3106
|
+
t.exports = si().AggregateError;
|
|
3107
|
+
})), Us = a(((e, t) => {
|
|
3108
|
+
t.exports = {
|
|
3109
|
+
CSSRuleList: 0,
|
|
3110
|
+
CSSStyleDeclaration: 0,
|
|
3111
|
+
CSSValueList: 0,
|
|
3112
|
+
ClientRectList: 0,
|
|
3113
|
+
DOMRectList: 0,
|
|
3114
|
+
DOMStringList: 0,
|
|
3115
|
+
DOMTokenList: 1,
|
|
3116
|
+
DataTransferItemList: 0,
|
|
3117
|
+
FileList: 0,
|
|
3118
|
+
HTMLAllCollection: 0,
|
|
3119
|
+
HTMLCollection: 0,
|
|
3120
|
+
HTMLFormElement: 0,
|
|
3121
|
+
HTMLSelectElement: 0,
|
|
3122
|
+
MediaList: 0,
|
|
3123
|
+
MimeTypeArray: 0,
|
|
3124
|
+
NamedNodeMap: 0,
|
|
3125
|
+
NodeList: 1,
|
|
3126
|
+
PaintRequestList: 0,
|
|
3127
|
+
Plugin: 0,
|
|
3128
|
+
PluginArray: 0,
|
|
3129
|
+
SVGLengthList: 0,
|
|
3130
|
+
SVGNumberList: 0,
|
|
3131
|
+
SVGPathSegList: 0,
|
|
3132
|
+
SVGPointList: 0,
|
|
3133
|
+
SVGStringList: 0,
|
|
3134
|
+
SVGTransformList: 0,
|
|
3135
|
+
SourceBufferList: 0,
|
|
3136
|
+
StyleSheetList: 0,
|
|
3137
|
+
TextTrackCueList: 0,
|
|
3138
|
+
TextTrackList: 0,
|
|
3139
|
+
TouchList: 0
|
|
3140
|
+
};
|
|
3141
|
+
})), Ks = a((() => {
|
|
3142
|
+
Ls();
|
|
3143
|
+
var e = Us(), t = Dn(), r = Vs(), n = fs();
|
|
3144
|
+
for (var i in e) r(t[i], i), n[i] = n.Array;
|
|
3145
|
+
})), $s = a(((e, t) => {
|
|
3146
|
+
ws();
|
|
3147
|
+
var r = Gs();
|
|
3148
|
+
Ks(), t.exports = r;
|
|
3149
|
+
})), Ws = a(((e, t) => {
|
|
3150
|
+
t.exports = $s();
|
|
3151
|
+
})), Hs = a(((e, t) => {
|
|
3152
|
+
ws();
|
|
3153
|
+
t.exports = Ws();
|
|
3154
|
+
})), Ys = a(((e, t) => {
|
|
3155
|
+
t.exports = Hs();
|
|
3156
|
+
})), Js = u(a(((e, t) => {
|
|
3157
|
+
t.exports = Ys();
|
|
3158
|
+
}))(), 1), Xs = class extends Js.default {
|
|
3159
|
+
constructor(e, t, r) {
|
|
3160
|
+
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)) {
|
|
3161
|
+
const { cause: e } = r;
|
|
3162
|
+
this.cause = e, e instanceof Error && "stack" in e && (this.stack = `${this.stack}\nCAUSE: ${e.stack}`);
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
}, Zs = class extends Error {
|
|
3166
|
+
static [Symbol.hasInstance](e) {
|
|
3167
|
+
return super[Symbol.hasInstance](e) || Function.prototype[Symbol.hasInstance].call(Xs, e);
|
|
3168
|
+
}
|
|
3169
|
+
constructor(e, t) {
|
|
3170
|
+
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)) {
|
|
3171
|
+
const { cause: e } = t;
|
|
3172
|
+
this.cause = e, e instanceof Error && "stack" in e && (this.stack = `${this.stack}\nCAUSE: ${e.stack}`);
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
}, Qs = class extends Zs {
|
|
3176
|
+
constructor(e, t) {
|
|
3177
|
+
if (super(e, t), null != t && "object" == typeof t) {
|
|
3178
|
+
const { cause: e, ...r } = t;
|
|
3179
|
+
Object.assign(this, r);
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
}, eo = class extends Zs {}, to = class extends eo {}, ro = (e, t, r) => {
|
|
3183
|
+
const n = e[t];
|
|
3184
|
+
if (null != n) {
|
|
3185
|
+
if (!r && "function" == typeof n) return n;
|
|
3186
|
+
const e = r ? n.leave : n.enter;
|
|
3187
|
+
if ("function" == typeof e) return e;
|
|
3188
|
+
} else {
|
|
3189
|
+
const n = r ? e.leave : e.enter;
|
|
3190
|
+
if (null != n) {
|
|
3191
|
+
if ("function" == typeof n) return n;
|
|
3192
|
+
const e = n[t];
|
|
3193
|
+
if ("function" == typeof e) return e;
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
return null;
|
|
3197
|
+
}, no = {}, io = (e) => null == e ? void 0 : e.type, so = (e) => "string" == typeof io(e), oo = (e) => Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)), ao = (e, { visitFnGetter: t = ro, nodeTypeGetter: r = io, breakSymbol: n = no, deleteNodeSymbol: i = null, skipVisitingNodeSymbol: s = !1, exposeEdits: o = !1 } = {}) => {
|
|
3198
|
+
const a = Symbol("skip"), c = new Array(e.length).fill(a);
|
|
3199
|
+
return {
|
|
3200
|
+
enter(u, l, f, p, h, m) {
|
|
3201
|
+
let y = u, d = !1;
|
|
3202
|
+
const v = {
|
|
3203
|
+
...m,
|
|
3204
|
+
replaceWith(e, t) {
|
|
3205
|
+
m.replaceWith(e, t), y = e;
|
|
3206
|
+
}
|
|
3207
|
+
};
|
|
3208
|
+
for (let u = 0; u < e.length; u += 1) if (c[u] === a) {
|
|
3209
|
+
const a = t(e[u], r(y), !1);
|
|
3210
|
+
if ("function" == typeof a) {
|
|
3211
|
+
const t = a.call(e[u], y, l, f, p, h, v);
|
|
3212
|
+
if ("function" == typeof (null == t ? void 0 : t.then)) throw new Qs("Async visitor not supported in sync mode", {
|
|
3213
|
+
visitor: e[u],
|
|
3214
|
+
visitFn: a
|
|
3215
|
+
});
|
|
3216
|
+
if (t === s) c[u] = y;
|
|
3217
|
+
else if (t === n) c[u] = n;
|
|
3218
|
+
else {
|
|
3219
|
+
if (t === i) return t;
|
|
3220
|
+
if (void 0 !== t) {
|
|
3221
|
+
if (!o) return t;
|
|
3222
|
+
y = t, d = !0;
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
return d ? y : void 0;
|
|
3228
|
+
},
|
|
3229
|
+
leave(i, o, u, l, f, p) {
|
|
3230
|
+
let h = i;
|
|
3231
|
+
const m = {
|
|
3232
|
+
...p,
|
|
3233
|
+
replaceWith(e, t) {
|
|
3234
|
+
p.replaceWith(e, t), h = e;
|
|
3235
|
+
}
|
|
3236
|
+
};
|
|
3237
|
+
for (let i = 0; i < e.length; i += 1) if (c[i] === a) {
|
|
3238
|
+
const a = t(e[i], r(h), !0);
|
|
3239
|
+
if ("function" == typeof a) {
|
|
3240
|
+
const t = a.call(e[i], h, o, u, l, f, m);
|
|
3241
|
+
if ("function" == typeof (null == t ? void 0 : t.then)) throw new Qs("Async visitor not supported in sync mode", {
|
|
3242
|
+
visitor: e[i],
|
|
3243
|
+
visitFn: a
|
|
3244
|
+
});
|
|
3245
|
+
if (t === n) c[i] = n;
|
|
3246
|
+
else if (void 0 !== t && t !== s) return t;
|
|
3247
|
+
}
|
|
3248
|
+
} else c[i] === h && (c[i] = a);
|
|
3249
|
+
}
|
|
3250
|
+
};
|
|
3251
|
+
};
|
|
3252
|
+
ao[Symbol.for("nodejs.util.promisify.custom")] = (e, { visitFnGetter: t = ro, nodeTypeGetter: r = io, breakSymbol: n = no, deleteNodeSymbol: i = null, skipVisitingNodeSymbol: s = !1, exposeEdits: o = !1 } = {}) => {
|
|
3253
|
+
const a = Symbol("skip"), c = new Array(e.length).fill(a);
|
|
3254
|
+
return {
|
|
3255
|
+
async enter(u, l, f, p, h, m) {
|
|
3256
|
+
let y = u, d = !1;
|
|
3257
|
+
const v = {
|
|
3258
|
+
...m,
|
|
3259
|
+
replaceWith(e, t) {
|
|
3260
|
+
m.replaceWith(e, t), y = e;
|
|
3261
|
+
}
|
|
3262
|
+
};
|
|
3263
|
+
for (let u = 0; u < e.length; u += 1) if (c[u] === a) {
|
|
3264
|
+
const a = t(e[u], r(y), !1);
|
|
3265
|
+
if ("function" == typeof a) {
|
|
3266
|
+
const t = await a.call(e[u], y, l, f, p, h, v);
|
|
3267
|
+
if (t === s) c[u] = y;
|
|
3268
|
+
else if (t === n) c[u] = n;
|
|
3269
|
+
else {
|
|
3270
|
+
if (t === i) return t;
|
|
3271
|
+
if (void 0 !== t) {
|
|
3272
|
+
if (!o) return t;
|
|
3273
|
+
y = t, d = !0;
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
return d ? y : void 0;
|
|
3279
|
+
},
|
|
3280
|
+
async leave(i, o, u, l, f, p) {
|
|
3281
|
+
let h = i;
|
|
3282
|
+
const m = {
|
|
3283
|
+
...p,
|
|
3284
|
+
replaceWith(e, t) {
|
|
3285
|
+
p.replaceWith(e, t), h = e;
|
|
3286
|
+
}
|
|
3287
|
+
};
|
|
3288
|
+
for (let i = 0; i < e.length; i += 1) if (c[i] === a) {
|
|
3289
|
+
const a = t(e[i], r(h), !0);
|
|
3290
|
+
if ("function" == typeof a) {
|
|
3291
|
+
const t = await a.call(e[i], h, o, u, l, f, m);
|
|
3292
|
+
if (t === n) c[i] = n;
|
|
3293
|
+
else if (void 0 !== t && t !== s) return t;
|
|
3294
|
+
}
|
|
3295
|
+
} else c[i] === h && (c[i] = a);
|
|
3296
|
+
}
|
|
3297
|
+
};
|
|
3298
|
+
};
|
|
3299
|
+
var co = (e, t, { keyMap: r = null, state: n = {}, breakSymbol: i = no, deleteNodeSymbol: s = null, skipVisitingNodeSymbol: o = !1, visitFnGetter: a = ro, nodeTypeGetter: c = io, nodePredicate: u = so, nodeCloneFn: l = oo, detectCycles: f = !0, detectCyclesCallback: p = null } = {}) => {
|
|
3300
|
+
const h = r || {};
|
|
3301
|
+
let m, y, d = Array.isArray(e), v = [e], b = -1, g = [], E = e;
|
|
3302
|
+
const j = [], x = [];
|
|
3303
|
+
do {
|
|
3304
|
+
b += 1;
|
|
3305
|
+
const e = b === v.length;
|
|
3306
|
+
let r;
|
|
3307
|
+
const S = e && 0 !== g.length;
|
|
3308
|
+
if (e) {
|
|
3309
|
+
if (r = 0 === x.length ? void 0 : j.pop(), E = y, y = x.pop(), S) if (d) {
|
|
3310
|
+
E = E.slice();
|
|
3311
|
+
let e = 0;
|
|
3312
|
+
for (const [t, r] of g) {
|
|
3313
|
+
const n = t - e;
|
|
3314
|
+
r === s ? (E.splice(n, 1), e += 1) : E[n] = r;
|
|
3315
|
+
}
|
|
3316
|
+
} else {
|
|
3317
|
+
E = l(E);
|
|
3318
|
+
for (const [e, t] of g) E[e] = t;
|
|
3319
|
+
}
|
|
3320
|
+
b = m.index, v = m.keys, g = m.edits, d = m.inArray, m = m.prev;
|
|
3321
|
+
} else if (y !== s && void 0 !== y) {
|
|
3322
|
+
if (r = d ? b : v[b], E = y[r], E === s || void 0 === E) continue;
|
|
3323
|
+
j.push(r);
|
|
3324
|
+
}
|
|
3325
|
+
let A;
|
|
3326
|
+
if (!Array.isArray(E)) {
|
|
3327
|
+
var w;
|
|
3328
|
+
if (!u(E)) throw new Qs(`Invalid AST Node: ${String(E)}`, { node: E });
|
|
3329
|
+
if (f && x.includes(E)) {
|
|
3330
|
+
"function" == typeof p && p(E, r, y, j, x), j.pop();
|
|
3331
|
+
continue;
|
|
3332
|
+
}
|
|
3333
|
+
const s = a(t, c(E), e);
|
|
3334
|
+
if (s) {
|
|
3335
|
+
for (const [e, r] of Object.entries(n)) t[e] = r;
|
|
3336
|
+
A = s.call(t, E, r, y, j, x, { replaceWith(t, n) {
|
|
3337
|
+
"function" == typeof n ? n(t, E, r, y, j, x) : y && (y[r] = t), e || (E = t);
|
|
3338
|
+
} });
|
|
3339
|
+
}
|
|
3340
|
+
if ("function" == typeof (null === (w = A) || void 0 === w ? void 0 : w.then)) throw new Qs("Async visitor not supported in sync mode", {
|
|
3341
|
+
visitor: t,
|
|
3342
|
+
visitFn: s
|
|
3343
|
+
});
|
|
3344
|
+
if (A === i) break;
|
|
3345
|
+
if (A === o) {
|
|
3346
|
+
if (!e) {
|
|
3347
|
+
j.pop();
|
|
3348
|
+
continue;
|
|
3349
|
+
}
|
|
3350
|
+
} else if (void 0 !== A && (g.push([r, A]), !e)) {
|
|
3351
|
+
if (!u(A)) {
|
|
3352
|
+
j.pop();
|
|
3353
|
+
continue;
|
|
3354
|
+
}
|
|
3355
|
+
E = A;
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
var O;
|
|
3359
|
+
if (void 0 === A && S && g.push([r, E]), !e) m = {
|
|
3360
|
+
inArray: d,
|
|
3361
|
+
index: b,
|
|
3362
|
+
keys: v,
|
|
3363
|
+
edits: g,
|
|
3364
|
+
prev: m
|
|
3365
|
+
}, d = Array.isArray(E), v = d ? E : null !== (O = h[c(E)]) && void 0 !== O ? O : [], b = -1, g = [], y !== s && void 0 !== y && x.push(y), y = E;
|
|
3366
|
+
} while (void 0 !== m);
|
|
3367
|
+
return 0 !== g.length ? g[g.length - 1][1] : e;
|
|
3368
|
+
};
|
|
3369
|
+
co[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, { keyMap: r = null, state: n = {}, breakSymbol: i = no, deleteNodeSymbol: s = null, skipVisitingNodeSymbol: o = !1, visitFnGetter: a = ro, nodeTypeGetter: c = io, nodePredicate: u = so, nodeCloneFn: l = oo, detectCycles: f = !0, detectCyclesCallback: p = null } = {}) => {
|
|
3370
|
+
const h = r || {};
|
|
3371
|
+
let m, y, d = Array.isArray(e), v = [e], b = -1, g = [], E = e;
|
|
3372
|
+
const j = [], x = [];
|
|
3373
|
+
do {
|
|
3374
|
+
b += 1;
|
|
3375
|
+
const e = b === v.length;
|
|
3376
|
+
let r;
|
|
3377
|
+
const O = e && 0 !== g.length;
|
|
3378
|
+
if (e) {
|
|
3379
|
+
if (r = 0 === x.length ? void 0 : j.pop(), E = y, y = x.pop(), O) if (d) {
|
|
3380
|
+
E = E.slice();
|
|
3381
|
+
let e = 0;
|
|
3382
|
+
for (const [t, r] of g) {
|
|
3383
|
+
const n = t - e;
|
|
3384
|
+
r === s ? (E.splice(n, 1), e += 1) : E[n] = r;
|
|
3385
|
+
}
|
|
3386
|
+
} else {
|
|
3387
|
+
E = l(E);
|
|
3388
|
+
for (const [e, t] of g) E[e] = t;
|
|
3389
|
+
}
|
|
3390
|
+
b = m.index, v = m.keys, g = m.edits, d = m.inArray, m = m.prev;
|
|
3391
|
+
} else if (y !== s && void 0 !== y) {
|
|
3392
|
+
if (r = d ? b : v[b], E = y[r], E === s || void 0 === E) continue;
|
|
3393
|
+
j.push(r);
|
|
3394
|
+
}
|
|
3395
|
+
let S;
|
|
3396
|
+
if (!Array.isArray(E)) {
|
|
3397
|
+
if (!u(E)) throw new Qs(`Invalid AST Node: ${String(E)}`, { node: E });
|
|
3398
|
+
if (f && x.includes(E)) {
|
|
3399
|
+
"function" == typeof p && p(E, r, y, j, x), j.pop();
|
|
3400
|
+
continue;
|
|
3401
|
+
}
|
|
3402
|
+
const s = a(t, c(E), e);
|
|
3403
|
+
if (s) {
|
|
3404
|
+
for (const [e, r] of Object.entries(n)) t[e] = r;
|
|
3405
|
+
S = await s.call(t, E, r, y, j, x, { replaceWith(t, n) {
|
|
3406
|
+
"function" == typeof n ? n(t, E, r, y, j, x) : y && (y[r] = t), e || (E = t);
|
|
3407
|
+
} });
|
|
3408
|
+
}
|
|
3409
|
+
if (S === i) break;
|
|
3410
|
+
if (S === o) {
|
|
3411
|
+
if (!e) {
|
|
3412
|
+
j.pop();
|
|
3413
|
+
continue;
|
|
3414
|
+
}
|
|
3415
|
+
} else if (void 0 !== S && (g.push([r, S]), !e)) {
|
|
3416
|
+
if (!u(S)) {
|
|
3417
|
+
j.pop();
|
|
3418
|
+
continue;
|
|
3419
|
+
}
|
|
3420
|
+
E = S;
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
var w;
|
|
3424
|
+
if (void 0 === S && O && g.push([r, E]), !e) m = {
|
|
3425
|
+
inArray: d,
|
|
3426
|
+
index: b,
|
|
3427
|
+
keys: v,
|
|
3428
|
+
edits: g,
|
|
3429
|
+
prev: m
|
|
3430
|
+
}, d = Array.isArray(E), v = d ? E : null !== (w = h[c(E)]) && void 0 !== w ? w : [], b = -1, g = [], y !== s && void 0 !== y && x.push(y), y = E;
|
|
3431
|
+
} while (void 0 !== m);
|
|
3432
|
+
return 0 !== g.length ? g[g.length - 1][1] : e;
|
|
3433
|
+
};
|
|
3434
|
+
var uo = class extends Qs {
|
|
3435
|
+
value;
|
|
3436
|
+
constructor(e, t) {
|
|
3437
|
+
super(e, t), void 0 !== t && (this.value = t.value);
|
|
3438
|
+
}
|
|
3439
|
+
}, lo = class extends uo {}, fo = class extends uo {}, po = (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), ho = (e, t = {}) => {
|
|
3440
|
+
const { visited: r = /* @__PURE__ */ new WeakMap() } = t, n = {
|
|
3441
|
+
...t,
|
|
3442
|
+
visited: r
|
|
3443
|
+
};
|
|
3444
|
+
if (r.has(e)) return r.get(e);
|
|
3445
|
+
if (e instanceof pn.KeyValuePair) {
|
|
3446
|
+
const { key: t, value: i } = e, s = new pn.KeyValuePair(wn(t) ? ho(t, n) : t, wn(i) ? ho(i, n) : i);
|
|
3447
|
+
return r.set(e, s), s;
|
|
3448
|
+
}
|
|
3449
|
+
if (e instanceof pn.ObjectSlice) {
|
|
3450
|
+
const t = (e) => ho(e, n), i = new pn.ObjectSlice([...e].map(t));
|
|
3451
|
+
return r.set(e, i), i;
|
|
3452
|
+
}
|
|
3453
|
+
if (e instanceof pn.ArraySlice) {
|
|
3454
|
+
const t = (e) => ho(e, n), i = new pn.ArraySlice([...e].map(t));
|
|
3455
|
+
return r.set(e, i), i;
|
|
3456
|
+
}
|
|
3457
|
+
if (wn(e)) {
|
|
3458
|
+
const t = vo(e);
|
|
3459
|
+
if (r.set(e, t), e.content) if (wn(e.content)) t.content = ho(e.content, n);
|
|
3460
|
+
else if (e.content instanceof pn.KeyValuePair) t.content = ho(e.content, n);
|
|
3461
|
+
else if (Array.isArray(e.content)) {
|
|
3462
|
+
const r = (e) => ho(e, n);
|
|
3463
|
+
t.content = e.content.map(r);
|
|
3464
|
+
} else t.content = e.content;
|
|
3465
|
+
else t.content = e.content;
|
|
3466
|
+
return t;
|
|
3467
|
+
}
|
|
3468
|
+
throw new lo("Value provided to cloneDeep function couldn't be cloned", { value: e });
|
|
3469
|
+
};
|
|
3470
|
+
ho.safe = (e) => {
|
|
3471
|
+
try {
|
|
3472
|
+
return ho(e);
|
|
3473
|
+
} catch {
|
|
3474
|
+
return e;
|
|
3475
|
+
}
|
|
3476
|
+
};
|
|
3477
|
+
var mo = (e) => {
|
|
3478
|
+
const { key: t, value: r } = e;
|
|
3479
|
+
return new pn.KeyValuePair(t, r);
|
|
3480
|
+
}, yo = (e) => {
|
|
3481
|
+
const t = new e.constructor();
|
|
3482
|
+
if (t.element = e.element, Fn(e) && po(t, e), e.meta.length > 0 && (t._meta = ho(e.meta)), e.attributes.length > 0 && (t._attributes = ho(e.attributes)), wn(e.content)) {
|
|
3483
|
+
const r = e.content;
|
|
3484
|
+
t.content = yo(r);
|
|
3485
|
+
} else Array.isArray(e.content) ? t.content = [...e.content] : e.content instanceof pn.KeyValuePair ? t.content = mo(e.content) : t.content = e.content;
|
|
3486
|
+
return t;
|
|
3487
|
+
}, vo = (e) => {
|
|
3488
|
+
if (e instanceof pn.KeyValuePair) return mo(e);
|
|
3489
|
+
if (e instanceof pn.ObjectSlice) return t = e, new pn.ObjectSlice([...t]);
|
|
3490
|
+
var t, r;
|
|
3491
|
+
if (e instanceof pn.ArraySlice) return r = e, new pn.ArraySlice([...r]);
|
|
3492
|
+
if (wn(e)) return yo(e);
|
|
3493
|
+
throw new fo("Value provided to cloneShallow function couldn't be cloned", { value: e });
|
|
3494
|
+
};
|
|
3495
|
+
vo.safe = (e) => {
|
|
3496
|
+
try {
|
|
3497
|
+
return vo(e);
|
|
3498
|
+
} catch {
|
|
3499
|
+
return e;
|
|
3500
|
+
}
|
|
3501
|
+
};
|
|
3502
|
+
var bo = (e) => kn(e) ? "ObjectElement" : Pn(e) ? "ArrayElement" : Mn(e) ? "MemberElement" : On(e) ? "StringElement" : _n(e) ? "BooleanElement" : Sn(e) ? "NumberElement" : An(e) ? "NullElement" : Tn(e) ? "LinkElement" : Cn(e) ? "RefElement" : void 0, go = (e) => wn(e) ? vo(e) : oo(e), Eo = Re(bo, nt), jo = {
|
|
3503
|
+
ObjectElement: ["content"],
|
|
3504
|
+
ArrayElement: ["content"],
|
|
3505
|
+
MemberElement: ["key", "value"],
|
|
3506
|
+
StringElement: [],
|
|
3507
|
+
BooleanElement: [],
|
|
3508
|
+
NumberElement: [],
|
|
3509
|
+
NullElement: [],
|
|
3510
|
+
RefElement: [],
|
|
3511
|
+
LinkElement: [],
|
|
3512
|
+
Annotation: [],
|
|
3513
|
+
Comment: [],
|
|
3514
|
+
ParseResultElement: ["content"]
|
|
3515
|
+
}, xo = (e, t, { keyMap: r = jo, ...n } = {}) => co(e, t, {
|
|
3516
|
+
keyMap: r,
|
|
3517
|
+
nodeTypeGetter: bo,
|
|
3518
|
+
nodePredicate: Eo,
|
|
3519
|
+
nodeCloneFn: go,
|
|
3520
|
+
...n
|
|
3521
|
+
});
|
|
3522
|
+
xo[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, { keyMap: r = jo, ...n } = {}) => co[Symbol.for("nodejs.util.promisify.custom")](e, t, {
|
|
3523
|
+
keyMap: r,
|
|
3524
|
+
nodeTypeGetter: bo,
|
|
3525
|
+
nodePredicate: Eo,
|
|
3526
|
+
nodeCloneFn: go,
|
|
3527
|
+
...n
|
|
3528
|
+
});
|
|
3529
|
+
var wo = {
|
|
3530
|
+
toolboxCreator: zn,
|
|
3531
|
+
visitorOptions: {
|
|
3532
|
+
nodeTypeGetter: bo,
|
|
3533
|
+
exposeEdits: !0
|
|
3534
|
+
}
|
|
3535
|
+
}, Oo = (e, t, r = {}) => {
|
|
3536
|
+
if (0 === t.length) return e;
|
|
3537
|
+
const { toolboxCreator: n, visitorOptions: i } = Ke(wo, r), s = n(), o = t.map(((e) => e(s))), a = ao(o.map(Ye({}, "visitor")), { ...i });
|
|
3538
|
+
o.forEach(ot(["pre"], []));
|
|
3539
|
+
const c = xo(e, a, i);
|
|
3540
|
+
return o.forEach(ot(["post"], [])), c;
|
|
3541
|
+
};
|
|
3542
|
+
Oo[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, r = {}) => {
|
|
3543
|
+
if (0 === t.length) return e;
|
|
3544
|
+
const { toolboxCreator: n, visitorOptions: i } = Ke(wo, r), s = n(), o = t.map(((e) => e(s))), a = ao[Symbol.for("nodejs.util.promisify.custom")], c = xo[Symbol.for("nodejs.util.promisify.custom")], u = a(o.map(Ye({}, "visitor")), { ...i });
|
|
3545
|
+
await Promise.allSettled(o.map(ot(["pre"], [])));
|
|
3546
|
+
const l = await c(e, u, i);
|
|
3547
|
+
return await Promise.allSettled(o.map(ot(["post"], []))), l;
|
|
3548
|
+
};
|
|
3549
|
+
var So = class extends Array {
|
|
3550
|
+
unknownMediaType = "application/octet-stream";
|
|
3551
|
+
filterByFormat() {
|
|
3552
|
+
throw new to("filterByFormat method in MediaTypes class is not yet implemented.");
|
|
3553
|
+
}
|
|
3554
|
+
findBy() {
|
|
3555
|
+
throw new to("findBy method in MediaTypes class is not yet implemented.");
|
|
3556
|
+
}
|
|
3557
|
+
latest() {
|
|
3558
|
+
throw new to("latest method in MediaTypes class is not yet implemented.");
|
|
3559
|
+
}
|
|
3560
|
+
}, Ao = (e) => (t, r = {}) => ((e, { Type: t, plugins: r = [] }) => {
|
|
3561
|
+
const n = new t(e);
|
|
3562
|
+
return wn(e) && (e.meta.length > 0 && (n.meta = ho(e.meta)), e.attributes.length > 0 && (n.attributes = ho(e.attributes))), Oo(n, r, {
|
|
3563
|
+
toolboxCreator: zn,
|
|
3564
|
+
visitorOptions: { nodeTypeGetter: bo }
|
|
3565
|
+
});
|
|
3566
|
+
})(t, {
|
|
3567
|
+
...r,
|
|
3568
|
+
Type: e
|
|
3569
|
+
});
|
|
3570
|
+
pn.ObjectElement.refract = Ao(pn.ObjectElement), pn.ArrayElement.refract = Ao(pn.ArrayElement), pn.StringElement.refract = Ao(pn.StringElement), pn.BooleanElement.refract = Ao(pn.BooleanElement), pn.NullElement.refract = Ao(pn.NullElement), pn.NumberElement.refract = Ao(pn.NumberElement), pn.LinkElement.refract = Ao(pn.LinkElement), pn.RefElement.refract = Ao(pn.RefElement), hn.refract = Ao(hn), mn.refract = Ao(mn), yn.refract = Ao(yn);
|
|
3571
|
+
var _o = (e) => "string" == typeof (null == e ? void 0 : e.type) ? e.type : bo(e), ko = {
|
|
3572
|
+
EphemeralObject: ["content"],
|
|
3573
|
+
EphemeralArray: ["content"],
|
|
3574
|
+
...jo
|
|
3575
|
+
}, Po = (e, t, { keyMap: r = ko, ...n } = {}) => xo(e, t, {
|
|
3576
|
+
keyMap: r,
|
|
3577
|
+
nodeTypeGetter: _o,
|
|
3578
|
+
nodePredicate: l,
|
|
3579
|
+
detectCycles: !1,
|
|
3580
|
+
deleteNodeSymbol: Symbol.for("delete-node"),
|
|
3581
|
+
skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"),
|
|
3582
|
+
...n
|
|
3583
|
+
});
|
|
3584
|
+
Po[Symbol.for("nodejs.util.promisify.custom")] = async (e, { keyMap: t = ko, ...r } = {}) => xo[Symbol.for("nodejs.util.promisify.custom")](e, visitor, {
|
|
3585
|
+
keyMap: t,
|
|
3586
|
+
nodeTypeGetter: _o,
|
|
3587
|
+
nodePredicate: l,
|
|
3588
|
+
detectCycles: !1,
|
|
3589
|
+
deleteNodeSymbol: Symbol.for("delete-node"),
|
|
3590
|
+
skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"),
|
|
3591
|
+
...r
|
|
3592
|
+
});
|
|
3593
|
+
var Mo = class {
|
|
3594
|
+
type = "EphemeralArray";
|
|
3595
|
+
content = [];
|
|
3596
|
+
reference = void 0;
|
|
3597
|
+
constructor(e) {
|
|
3598
|
+
this.content = e, this.reference = [];
|
|
3599
|
+
}
|
|
3600
|
+
toReference() {
|
|
3601
|
+
return this.reference;
|
|
3602
|
+
}
|
|
3603
|
+
toArray() {
|
|
3604
|
+
return this.reference.push(...this.content), this.reference;
|
|
3605
|
+
}
|
|
3606
|
+
}, To = class {
|
|
3607
|
+
type = "EphemeralObject";
|
|
3608
|
+
content = [];
|
|
3609
|
+
reference = void 0;
|
|
3610
|
+
constructor(e) {
|
|
3611
|
+
this.content = e, this.reference = {};
|
|
3612
|
+
}
|
|
3613
|
+
toReference() {
|
|
3614
|
+
return this.reference;
|
|
3615
|
+
}
|
|
3616
|
+
toObject() {
|
|
3617
|
+
return Object.assign(this.reference, Object.fromEntries(this.content));
|
|
3618
|
+
}
|
|
3619
|
+
}, Co = class {
|
|
3620
|
+
ObjectElement = { enter: (e) => {
|
|
3621
|
+
if (this.references.has(e)) return this.references.get(e).toReference();
|
|
3622
|
+
const t = new To(e.content);
|
|
3623
|
+
return this.references.set(e, t), t;
|
|
3624
|
+
} };
|
|
3625
|
+
EphemeralObject = { leave: (e) => e.toObject() };
|
|
3626
|
+
MemberElement = { enter: (e) => [e.key, e.value] };
|
|
3627
|
+
ArrayElement = { enter: (e) => {
|
|
3628
|
+
if (this.references.has(e)) return this.references.get(e).toReference();
|
|
3629
|
+
const t = new Mo(e.content);
|
|
3630
|
+
return this.references.set(e, t), t;
|
|
3631
|
+
} };
|
|
3632
|
+
EphemeralArray = { leave: (e) => e.toArray() };
|
|
3633
|
+
references = /* @__PURE__ */ new WeakMap();
|
|
3634
|
+
BooleanElement(e) {
|
|
3635
|
+
return e.toValue();
|
|
3636
|
+
}
|
|
3637
|
+
NumberElement(e) {
|
|
3638
|
+
return e.toValue();
|
|
3639
|
+
}
|
|
3640
|
+
StringElement(e) {
|
|
3641
|
+
return e.toValue();
|
|
3642
|
+
}
|
|
3643
|
+
NullElement() {
|
|
3644
|
+
return null;
|
|
3645
|
+
}
|
|
3646
|
+
RefElement(e, ...t) {
|
|
3647
|
+
var r;
|
|
3648
|
+
const n = t[3];
|
|
3649
|
+
return "EphemeralObject" === (null === (r = n[n.length - 1]) || void 0 === r ? void 0 : r.type) ? Symbol.for("delete-node") : String(e.toValue());
|
|
3650
|
+
}
|
|
3651
|
+
LinkElement(e) {
|
|
3652
|
+
return On(e.href) ? e.href.toValue() : "";
|
|
3653
|
+
}
|
|
3654
|
+
}, Ro = (e) => wn(e) ? On(e) || Sn(e) || _n(e) || An(e) ? e.toValue() : Po(e, new Co()) : e, Io = (e) => {
|
|
3655
|
+
const t = e.meta.length > 0 ? ho(e.meta) : void 0, r = e.attributes.length > 0 ? ho(e.attributes) : void 0;
|
|
3656
|
+
return new e.constructor(void 0, t, r);
|
|
3657
|
+
}, No = (e, t) => t.clone && t.isMergeableElement(e) ? Fo(Io(e), e, t) : e, Vo = {
|
|
3658
|
+
clone: !0,
|
|
3659
|
+
isMergeableElement: (e) => kn(e) || Pn(e),
|
|
3660
|
+
arrayElementMerge: (e, t, r) => e.concat(t)["fantasy-land/map"](((e) => No(e, r))),
|
|
3661
|
+
objectElementMerge: (e, t, r) => {
|
|
3662
|
+
const n = kn(e) ? Io(e) : Io(t);
|
|
3663
|
+
return kn(e) && e.forEach(((e, t, i) => {
|
|
3664
|
+
const s = vo(i);
|
|
3665
|
+
s.value = No(e, r), n.content.push(s);
|
|
3666
|
+
})), t.forEach(((t, i, s) => {
|
|
3667
|
+
const o = Ro(i);
|
|
3668
|
+
let a;
|
|
3669
|
+
if (kn(e) && e.hasKey(o) && r.isMergeableElement(t)) {
|
|
3670
|
+
const n = e.get(o);
|
|
3671
|
+
a = vo(s), a.value = ((e, t) => {
|
|
3672
|
+
if ("function" != typeof t.customMerge) return Fo;
|
|
3673
|
+
const r = t.customMerge(e, t);
|
|
3674
|
+
return "function" == typeof r ? r : Fo;
|
|
3675
|
+
})(i, r)(n, t, r);
|
|
3676
|
+
} else a = vo(s), a.value = No(t, r);
|
|
3677
|
+
n.remove(o), n.content.push(a);
|
|
3678
|
+
})), n;
|
|
3679
|
+
},
|
|
3680
|
+
customMerge: void 0,
|
|
3681
|
+
customMetaMerge: void 0,
|
|
3682
|
+
customAttributesMerge: void 0
|
|
3683
|
+
}, Fo = (e, t, r) => {
|
|
3684
|
+
var n, i, s;
|
|
3685
|
+
const o = {
|
|
3686
|
+
...Vo,
|
|
3687
|
+
...r
|
|
3688
|
+
};
|
|
3689
|
+
o.isMergeableElement = null !== (n = o.isMergeableElement) && void 0 !== n ? n : Vo.isMergeableElement, o.arrayElementMerge = null !== (i = o.arrayElementMerge) && void 0 !== i ? i : Vo.arrayElementMerge, o.objectElementMerge = null !== (s = o.objectElementMerge) && void 0 !== s ? s : Vo.objectElementMerge;
|
|
3690
|
+
const a = Pn(t);
|
|
3691
|
+
if (a !== Pn(e)) return No(t, o);
|
|
3692
|
+
const c = a && "function" == typeof o.arrayElementMerge ? o.arrayElementMerge(e, t, o) : o.objectElementMerge(e, t, o);
|
|
3693
|
+
return c.meta = ((e) => "function" != typeof e.customMetaMerge ? (e) => ho(e) : e.customMetaMerge)(o)(e.meta, t.meta), c.attributes = ((e) => "function" != typeof e.customAttributesMerge ? (e) => ho(e) : e.customAttributesMerge)(o)(e.attributes, t.attributes), c;
|
|
3694
|
+
};
|
|
3695
|
+
Fo.all = (e, t) => {
|
|
3696
|
+
if (!Array.isArray(e)) throw new TypeError("First argument of deepmerge should be an array.");
|
|
3697
|
+
return 0 === e.length ? new pn.ObjectElement() : e.reduce(((e, r) => Fo(e, r, t)), Io(e[0]));
|
|
3698
|
+
};
|
|
3699
|
+
var qo = class extends So {
|
|
3700
|
+
filterByFormat(e = "generic") {
|
|
3701
|
+
const t = "generic" === e ? "apidesignsystems;version" : e;
|
|
3702
|
+
return this.filter(((e) => e.includes(t)));
|
|
3703
|
+
}
|
|
3704
|
+
findBy(e = "2021-05-07", t = "generic") {
|
|
3705
|
+
const r = "generic" === t ? `apidesignsystems;version=${e}` : `apidesignsystems+${t};version=${e}`;
|
|
3706
|
+
return this.find(((e) => e.includes(r))) || this.unknownMediaType;
|
|
3707
|
+
}
|
|
3708
|
+
latest(e = "generic") {
|
|
3709
|
+
return Ne(this.filterByFormat(e));
|
|
3710
|
+
}
|
|
3711
|
+
}, Bo = new qo("application/vnd.aai.apidesignsystems;version=2021-05-07", "application/vnd.aai.apidesignsystems+json;version=2021-05-07", "application/vnd.aai.apidesignsystems+yaml;version=2021-05-07"), Lo = class extends pn.ObjectElement {
|
|
3712
|
+
constructor(e, t, r) {
|
|
3713
|
+
super(e, t, r), this.element = "info";
|
|
3714
|
+
}
|
|
3715
|
+
get title() {
|
|
3716
|
+
return this.get("title");
|
|
3717
|
+
}
|
|
3718
|
+
set title(e) {
|
|
3719
|
+
this.set("title", e);
|
|
3720
|
+
}
|
|
3721
|
+
get description() {
|
|
3722
|
+
return this.get("description");
|
|
3723
|
+
}
|
|
3724
|
+
set description(e) {
|
|
3725
|
+
this.set("description", e);
|
|
3726
|
+
}
|
|
3727
|
+
}, zo = class extends pn.ObjectElement {
|
|
3728
|
+
constructor(e, t, r) {
|
|
3729
|
+
super(e, t, r), this.element = "main", this.classes.push("api");
|
|
3730
|
+
}
|
|
3731
|
+
get version() {
|
|
3732
|
+
return this.get("version");
|
|
3733
|
+
}
|
|
3734
|
+
set version(e) {
|
|
3735
|
+
this.set("version", e);
|
|
3736
|
+
}
|
|
3737
|
+
get info() {
|
|
3738
|
+
return this.get("info");
|
|
3739
|
+
}
|
|
3740
|
+
set info(e) {
|
|
3741
|
+
this.set("info", e);
|
|
3742
|
+
}
|
|
3743
|
+
get principles() {
|
|
3744
|
+
return this.get("principles");
|
|
3745
|
+
}
|
|
3746
|
+
set principles(e) {
|
|
3747
|
+
this.set("principles", e);
|
|
3748
|
+
}
|
|
3749
|
+
get standards() {
|
|
3750
|
+
return this.get("standards");
|
|
3751
|
+
}
|
|
3752
|
+
set standards(e) {
|
|
3753
|
+
this.set("standards", e);
|
|
3754
|
+
}
|
|
3755
|
+
get scenarios() {
|
|
3756
|
+
return this.get("scenarios");
|
|
3757
|
+
}
|
|
3758
|
+
set scenarios(e) {
|
|
3759
|
+
this.set("scenarios", e);
|
|
3760
|
+
}
|
|
3761
|
+
}, Do = class extends pn.ObjectElement {
|
|
3762
|
+
constructor(e, t, r) {
|
|
3763
|
+
super(e, t, r), this.element = "principle";
|
|
3764
|
+
}
|
|
3765
|
+
get name() {
|
|
3766
|
+
return this.get("name");
|
|
3767
|
+
}
|
|
3768
|
+
set name(e) {
|
|
3769
|
+
this.set("name", e);
|
|
3770
|
+
}
|
|
3771
|
+
get description() {
|
|
3772
|
+
return this.get("description");
|
|
3773
|
+
}
|
|
3774
|
+
set description(e) {
|
|
3775
|
+
this.set("description", e);
|
|
3776
|
+
}
|
|
3777
|
+
get iri() {
|
|
3778
|
+
return this.get("iri");
|
|
3779
|
+
}
|
|
3780
|
+
set iri(e) {
|
|
3781
|
+
this.set("iri", e);
|
|
3782
|
+
}
|
|
3783
|
+
get level() {
|
|
3784
|
+
return this.get("level");
|
|
3785
|
+
}
|
|
3786
|
+
set level(e) {
|
|
3787
|
+
this.set("level", e);
|
|
3788
|
+
}
|
|
3789
|
+
}, Go = class extends pn.ObjectElement {
|
|
3790
|
+
constructor(e, t, r) {
|
|
3791
|
+
super(e, t, r), this.element = "requirement";
|
|
3792
|
+
}
|
|
3793
|
+
get subject() {
|
|
3794
|
+
return this.get("subject");
|
|
3795
|
+
}
|
|
3796
|
+
set subject(e) {
|
|
3797
|
+
this.set("subject", e);
|
|
3798
|
+
}
|
|
3799
|
+
get level() {
|
|
3800
|
+
return this.get("level");
|
|
3801
|
+
}
|
|
3802
|
+
set level(e) {
|
|
3803
|
+
this.set("level", e);
|
|
3804
|
+
}
|
|
3805
|
+
get values() {
|
|
3806
|
+
return this.get("values");
|
|
3807
|
+
}
|
|
3808
|
+
set values(e) {
|
|
3809
|
+
this.set("values", e);
|
|
3810
|
+
}
|
|
3811
|
+
get follows() {
|
|
3812
|
+
return this.get("follows");
|
|
3813
|
+
}
|
|
3814
|
+
set follows(e) {
|
|
3815
|
+
this.set("follows", e);
|
|
3816
|
+
}
|
|
3817
|
+
}, Uo = class extends pn.StringElement {
|
|
3818
|
+
constructor(e, t, r) {
|
|
3819
|
+
super(e, t, r), this.element = "requirementLevel";
|
|
3820
|
+
}
|
|
3821
|
+
}, Ko = class extends pn.ObjectElement {
|
|
3822
|
+
constructor(e, t, r) {
|
|
3823
|
+
super(e, t, r), this.element = "scenario";
|
|
3824
|
+
}
|
|
3825
|
+
get description() {
|
|
3826
|
+
return this.get("description");
|
|
3827
|
+
}
|
|
3828
|
+
set description(e) {
|
|
3829
|
+
this.set("description", e);
|
|
3830
|
+
}
|
|
3831
|
+
get when() {
|
|
3832
|
+
return this.get("when");
|
|
3833
|
+
}
|
|
3834
|
+
set when(e) {
|
|
3835
|
+
this.set("when", e);
|
|
3836
|
+
}
|
|
3837
|
+
get then() {
|
|
3838
|
+
return this.get("then");
|
|
3839
|
+
}
|
|
3840
|
+
set then(e) {
|
|
3841
|
+
this.set("then", e);
|
|
3842
|
+
}
|
|
3843
|
+
}, $o = class extends pn.ObjectElement {
|
|
3844
|
+
constructor(e, t, r) {
|
|
3845
|
+
super(e, t, r), this.element = "standard";
|
|
3846
|
+
}
|
|
3847
|
+
get name() {
|
|
3848
|
+
return this.get("name");
|
|
3849
|
+
}
|
|
3850
|
+
set name(e) {
|
|
3851
|
+
this.set("name", e);
|
|
3852
|
+
}
|
|
3853
|
+
get description() {
|
|
3854
|
+
return this.get("description");
|
|
3855
|
+
}
|
|
3856
|
+
set description(e) {
|
|
3857
|
+
this.set("description", e);
|
|
3858
|
+
}
|
|
3859
|
+
get iri() {
|
|
3860
|
+
return this.get("iri");
|
|
3861
|
+
}
|
|
3862
|
+
set iri(e) {
|
|
3863
|
+
this.set("iri", e);
|
|
3864
|
+
}
|
|
3865
|
+
get level() {
|
|
3866
|
+
return this.get("level");
|
|
3867
|
+
}
|
|
3868
|
+
set level(e) {
|
|
3869
|
+
this.set("level", e);
|
|
3870
|
+
}
|
|
3871
|
+
}, Wo = class extends pn.ArrayElement {
|
|
3872
|
+
constructor(e, t, r) {
|
|
3873
|
+
super(e, t, r), this.element = "standardIdentifier";
|
|
3874
|
+
}
|
|
3875
|
+
}, Ho = { namespace: (e) => {
|
|
3876
|
+
const { base: t } = e;
|
|
3877
|
+
return t.register("info", Lo), t.register("main", zo), t.register("principle", Do), t.register("requirement", Go), t.register("requirementLevel", Uo), t.register("scenario", Ko), t.register("standard", $o), t.register("standardIdentifier", Wo), t;
|
|
3878
|
+
} }, Yo = (e) => {
|
|
3879
|
+
if (wn(e)) return `${e.element.charAt(0).toUpperCase() + e.element.slice(1)}Element`;
|
|
3880
|
+
}, Jo = {
|
|
3881
|
+
CallbackElement: ["content"],
|
|
3882
|
+
ComponentsElement: ["content"],
|
|
3883
|
+
ContactElement: ["content"],
|
|
3884
|
+
DiscriminatorElement: ["content"],
|
|
3885
|
+
Encoding: ["content"],
|
|
3886
|
+
Example: ["content"],
|
|
3887
|
+
ExternalDocumentationElement: ["content"],
|
|
3888
|
+
HeaderElement: ["content"],
|
|
3889
|
+
InfoElement: ["content"],
|
|
3890
|
+
LicenseElement: ["content"],
|
|
3891
|
+
MediaTypeElement: ["content"],
|
|
3892
|
+
OAuthFlowElement: ["content"],
|
|
3893
|
+
OAuthFlowsElement: ["content"],
|
|
3894
|
+
OpenApi3_1Element: ["content"],
|
|
3895
|
+
OperationElement: ["content"],
|
|
3896
|
+
ParameterElement: ["content"],
|
|
3897
|
+
PathItemElement: ["content"],
|
|
3898
|
+
PathsElement: ["content"],
|
|
3899
|
+
ReferenceElement: ["content"],
|
|
3900
|
+
RequestBodyElement: ["content"],
|
|
3901
|
+
ResponseElement: ["content"],
|
|
3902
|
+
ResponsesElement: ["content"],
|
|
3903
|
+
SchemaElement: ["content"],
|
|
3904
|
+
SecurityRequirementElement: ["content"],
|
|
3905
|
+
SecuritySchemeElement: ["content"],
|
|
3906
|
+
ServerElement: ["content"],
|
|
3907
|
+
ServerVariableElement: ["content"],
|
|
3908
|
+
TagElement: ["content"],
|
|
3909
|
+
...jo
|
|
3910
|
+
}, Xo = {
|
|
3911
|
+
keyMap: Jo,
|
|
3912
|
+
nodeTypeGetter: Yo
|
|
3913
|
+
}, Zo = {
|
|
3914
|
+
keyMap: Jo,
|
|
3915
|
+
nodeTypeGetter: Yo
|
|
3916
|
+
}, Qo = (e, t) => {
|
|
3917
|
+
const r = [], { subject: n } = t;
|
|
3918
|
+
if (void 0 === t.values) return r;
|
|
3919
|
+
if ("may" === Ro(t.level) && !((e, t) => null === e || t.includes(e))(Ro(e), Ro(t.values))) {
|
|
3920
|
+
const i = ((e, t, r, n) => {
|
|
3921
|
+
const i = new hn(e);
|
|
3922
|
+
return i.classes.push(r), i.attributes.set("value", ho(t)), i.attributes.set("standardIdentifier", ho(n)), i;
|
|
3923
|
+
})(((e, t, r) => {
|
|
3924
|
+
const n = Ro(e), i = JSON.stringify(Ro(r));
|
|
3925
|
+
if ("may" === Ro(t)) return `"${n}" not allowed for subject ${i}`;
|
|
3926
|
+
throw new to("[Requirement levels] other than \"may\" are not yet implemented.");
|
|
3927
|
+
})(e, t.level, n), e, "error", n);
|
|
3928
|
+
r.push(i);
|
|
3929
|
+
}
|
|
3930
|
+
return r;
|
|
3931
|
+
}, ea = (e, t) => {
|
|
3932
|
+
const { subject: r } = e, n = ((e, t) => {
|
|
3933
|
+
const r = String(Ro(t)), n = new pn.ArrayElement();
|
|
3934
|
+
return xo(e, { enter(e) {
|
|
3935
|
+
e.meta.hasKey("ads-a-standard-identifier") && e.meta.get("ads-a-standard-identifier").content.filter(((e) => String(Ro(e.get("subject"))) === r)).forEach(((e) => {
|
|
3936
|
+
n.push(e.get("value"));
|
|
3937
|
+
}));
|
|
3938
|
+
} }, Zo), n;
|
|
3939
|
+
})(t, r), i = [];
|
|
3940
|
+
return n.forEach(((t) => {
|
|
3941
|
+
i.push(...Qo(t, e));
|
|
3942
|
+
})), i;
|
|
3943
|
+
}, ta = (e, t) => {
|
|
3944
|
+
const r = [], { when: n } = e, i = ((e, t) => {
|
|
3945
|
+
const r = [];
|
|
3946
|
+
return xo(e, {
|
|
3947
|
+
OperationElement(e) {
|
|
3948
|
+
if (!e.meta.hasKey("ads-s-standard-identifier")) return;
|
|
3949
|
+
const n = Ro(e.meta.get("ads-s-standard-identifier"));
|
|
3950
|
+
Be(Ro(t), n) && r.push(e);
|
|
3951
|
+
},
|
|
3952
|
+
ResponseElement(e) {
|
|
3953
|
+
if (!e.meta.hasKey("ads-s-standard-identifier")) return;
|
|
3954
|
+
const n = Ro(e.meta.get("ads-s-standard-identifier"));
|
|
3955
|
+
Be(Ro(t), n) && r.push(e);
|
|
3956
|
+
}
|
|
3957
|
+
}, Xo), r;
|
|
3958
|
+
})(t, n), { then: s } = e;
|
|
3959
|
+
return void 0 === s || i.forEach(((e) => {
|
|
3960
|
+
s.forEach(((t) => {
|
|
3961
|
+
r.push(...ea(t, e));
|
|
3962
|
+
}));
|
|
3963
|
+
})), r;
|
|
3964
|
+
}, ra = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof zo || e(n) && t("main", n) && r("object", n))), na = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Lo || e(n) && t("info", n) && r("object", n))), ia = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Do || e(n) && t("principle", n) && r("object", n))), sa = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Go || e(n) && t("requirement", n) && r("object", n))), oa = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Uo || e(n) && t("requirementLevel", n) && r("string", n))), aa = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Ko || e(n) && t("scenario", n) && r("object", n))), ca = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof $o || e(n) && t("standard", n) && r("object", n))), ua = jn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Wo || e(n) && t("standardIdentifier", n) && r("array", n))), la = class {
|
|
3965
|
+
element;
|
|
3966
|
+
constructor(e = {}) {
|
|
3967
|
+
Object.assign(this, e);
|
|
3968
|
+
}
|
|
3969
|
+
copyMetaAndAttributes(e, t) {
|
|
3970
|
+
(e.meta.length > 0 || t.meta.length > 0) && (t.meta = Fo(t.meta, e.meta)), Fn(e) && po(t, e), (e.attributes.length > 0 || e.meta.length > 0) && (t.attributes = Fo(t.attributes, e.attributes));
|
|
3971
|
+
}
|
|
3972
|
+
}, fa = class extends la {
|
|
3973
|
+
enter(e) {
|
|
3974
|
+
return this.element = ho(e), no;
|
|
3975
|
+
}
|
|
3976
|
+
}, pa = class extends la {
|
|
3977
|
+
specObj;
|
|
3978
|
+
passingOptionsNames = ["specObj"];
|
|
3979
|
+
constructor({ specObj: e, ...t }) {
|
|
3980
|
+
super({ ...t }), this.specObj = e;
|
|
3981
|
+
}
|
|
3982
|
+
retrievePassingOptions() {
|
|
3983
|
+
return He(this.passingOptionsNames, this);
|
|
3984
|
+
}
|
|
3985
|
+
retrieveFixedFields(e) {
|
|
3986
|
+
const t = $e([
|
|
3987
|
+
"visitors",
|
|
3988
|
+
...e,
|
|
3989
|
+
"fixedFields"
|
|
3990
|
+
], this.specObj);
|
|
3991
|
+
return "object" == typeof t && null !== t ? Object.keys(t) : [];
|
|
3992
|
+
}
|
|
3993
|
+
retrieveVisitor(e) {
|
|
3994
|
+
return We(et, ["visitors", ...e], this.specObj) ? $e(["visitors", ...e], this.specObj) : $e([
|
|
3995
|
+
"visitors",
|
|
3996
|
+
...e,
|
|
3997
|
+
"$visitor"
|
|
3998
|
+
], this.specObj);
|
|
3999
|
+
}
|
|
4000
|
+
retrieveVisitorInstance(e, t = {}) {
|
|
4001
|
+
const r = this.retrievePassingOptions();
|
|
4002
|
+
return new (this.retrieveVisitor(e))({
|
|
4003
|
+
...r,
|
|
4004
|
+
...t
|
|
4005
|
+
});
|
|
4006
|
+
}
|
|
4007
|
+
toRefractedElement(e, t, r = {}) {
|
|
4008
|
+
const n = this.retrieveVisitorInstance(e, r);
|
|
4009
|
+
return n instanceof fa && n?.constructor === fa ? ho(t) : (xo(t, n, r), n.element);
|
|
4010
|
+
}
|
|
4011
|
+
}, ha = {
|
|
4012
|
+
MainElement: ["content"],
|
|
4013
|
+
InfoElement: ["content"],
|
|
4014
|
+
PrincipleElement: ["content"],
|
|
4015
|
+
StandardElement: ["content"],
|
|
4016
|
+
ScenarioElement: ["content"],
|
|
4017
|
+
RequirementElement: ["content"],
|
|
4018
|
+
StandardIdentifierElement: ["content"],
|
|
4019
|
+
RequirementLevelElement: [],
|
|
4020
|
+
...jo
|
|
4021
|
+
};
|
|
4022
|
+
e.ApiDesignSystemsMediaTypes = qo, e.FallbackVisitor = fa, e.FixedFieldsVisitor = class extends pa {
|
|
4023
|
+
specPath;
|
|
4024
|
+
ignoredFields;
|
|
4025
|
+
constructor({ specPath: e, ignoredFields: t, ...r }) {
|
|
4026
|
+
super({ ...r }), this.specPath = e, this.ignoredFields = t || [];
|
|
4027
|
+
}
|
|
4028
|
+
ObjectElement(e) {
|
|
4029
|
+
const t = this.specPath(e), r = this.retrieveFixedFields(t);
|
|
4030
|
+
return e.forEach(((e, n, i) => {
|
|
4031
|
+
if (On(n) && r.includes(Ro(n)) && !this.ignoredFields.includes(Ro(n))) {
|
|
4032
|
+
const r = this.toRefractedElement([
|
|
4033
|
+
...t,
|
|
4034
|
+
"fixedFields",
|
|
4035
|
+
Ro(n)
|
|
4036
|
+
], e), s = new pn.MemberElement(ho(n), r);
|
|
4037
|
+
s.classes.push("fixed-field"), this.copyMetaAndAttributes(i, s), this.element.content.push(s);
|
|
4038
|
+
} else this.ignoredFields.includes(Ro(n)) || this.element.content.push(ho(i));
|
|
4039
|
+
})), this.copyMetaAndAttributes(e, this.element), no;
|
|
4040
|
+
}
|
|
4041
|
+
}, e.InfoElement = Lo, e.MainElement = zo, e.PrincipleElement = Do, e.RequirementElement = Go, e.RequirementLevelElement = Uo, e.ScenarioElement = Ko, e.SpecificationVisitor = pa, e.StandardElement = $o, e.StandardIdentifierElement = Wo, e.Visitor = la, e.default = Ho, e.getNodeType = (e) => {
|
|
4042
|
+
if (wn(e)) return `${e.element.charAt(0).toUpperCase() + e.element.slice(1)}Element`;
|
|
4043
|
+
}, e.isArrayElement = Pn, e.isBooleanElement = _n, e.isElement = wn, e.isInfoElement = na, e.isLinkElement = Tn, e.isMainElement = ra, e.isMemberElement = Mn, e.isNullElement = An, e.isNumberElement = Sn, e.isObjectElement = kn, e.isPrincipleElement = ia, e.isRefElement = Cn, e.isRequirementElement = sa, e.isRequirementLevelElement = oa, e.isScenarioElement = aa, e.isStandardElement = ca, e.isStandardIdentifierElement = ua, e.isStringElement = On, e.keyMap = ha, e.mediaTypes = Bo, e.refractPluginOpenApi3_1StandardIdentifierAccessors = () => () => ({ visitor: {
|
|
4044
|
+
OperationElement(e, ...t) {
|
|
4045
|
+
const [, , , r] = t, n = r[r.length - 2], i = ho(e.meta.get("http-method"));
|
|
4046
|
+
i.content = Ro(i).toLowerCase();
|
|
4047
|
+
const s = [{
|
|
4048
|
+
subject: [
|
|
4049
|
+
"http",
|
|
4050
|
+
"request",
|
|
4051
|
+
"url"
|
|
4052
|
+
],
|
|
4053
|
+
value: n.meta.get("path")
|
|
4054
|
+
}, {
|
|
4055
|
+
subject: [
|
|
4056
|
+
"http",
|
|
4057
|
+
"request",
|
|
4058
|
+
"method"
|
|
4059
|
+
],
|
|
4060
|
+
value: i
|
|
4061
|
+
}];
|
|
4062
|
+
void 0 !== n.parameters && Pn(n.parameters) && n.parameters.forEach(((e) => {
|
|
4063
|
+
On(e.in) && On(e.name) && "header" === Ro(e.in) && (s.push({
|
|
4064
|
+
subject: [
|
|
4065
|
+
"http",
|
|
4066
|
+
"request",
|
|
4067
|
+
"header"
|
|
4068
|
+
],
|
|
4069
|
+
value: ho.safe(e.name)
|
|
4070
|
+
}), s.push({
|
|
4071
|
+
subject: [
|
|
4072
|
+
"http",
|
|
4073
|
+
"message",
|
|
4074
|
+
"header"
|
|
4075
|
+
],
|
|
4076
|
+
value: ho.safe(e.name)
|
|
4077
|
+
}));
|
|
4078
|
+
})), e.setMetaProperty("ads-a-standard-identifier", s);
|
|
4079
|
+
},
|
|
4080
|
+
ParameterElement(e) {
|
|
4081
|
+
On(e.in) && On(e.name) && "header" === Ro(e.in) && e.setMetaProperty("ads-a-standard-identifier", [{
|
|
4082
|
+
subject: [
|
|
4083
|
+
"http",
|
|
4084
|
+
"request",
|
|
4085
|
+
"header"
|
|
4086
|
+
],
|
|
4087
|
+
value: ho.safe(e.name)
|
|
4088
|
+
}, {
|
|
4089
|
+
subject: [
|
|
4090
|
+
"http",
|
|
4091
|
+
"message",
|
|
4092
|
+
"header"
|
|
4093
|
+
],
|
|
4094
|
+
value: ho.safe(e.name)
|
|
4095
|
+
}]);
|
|
4096
|
+
},
|
|
4097
|
+
RequestBodyElement(e) {
|
|
4098
|
+
if (void 0 === e.contentProp || !kn(e.contentProp)) return;
|
|
4099
|
+
const t = [];
|
|
4100
|
+
e.contentProp.forEach(((e, r) => {
|
|
4101
|
+
t.push({
|
|
4102
|
+
subject: [
|
|
4103
|
+
"http",
|
|
4104
|
+
"request",
|
|
4105
|
+
"header"
|
|
4106
|
+
],
|
|
4107
|
+
value: new pn.StringElement("Content-Type", ho(r.meta))
|
|
4108
|
+
}, {
|
|
4109
|
+
subject: [
|
|
4110
|
+
"http",
|
|
4111
|
+
"message",
|
|
4112
|
+
"header"
|
|
4113
|
+
],
|
|
4114
|
+
value: new pn.StringElement("Content-Type", ho(r.meta))
|
|
4115
|
+
}, {
|
|
4116
|
+
subject: [
|
|
4117
|
+
"http",
|
|
4118
|
+
"request",
|
|
4119
|
+
"header",
|
|
4120
|
+
"Content-Type"
|
|
4121
|
+
],
|
|
4122
|
+
value: ho(r)
|
|
4123
|
+
}, {
|
|
4124
|
+
subject: [
|
|
4125
|
+
"http",
|
|
4126
|
+
"message",
|
|
4127
|
+
"header",
|
|
4128
|
+
"Content-Type"
|
|
4129
|
+
],
|
|
4130
|
+
value: ho(r)
|
|
4131
|
+
});
|
|
4132
|
+
})), e.setMetaProperty("ads-a-standard-identifier", t);
|
|
4133
|
+
},
|
|
4134
|
+
ResponseElement(e) {
|
|
4135
|
+
if (!e.meta.hasKey("http-status-code")) return;
|
|
4136
|
+
const t = [{
|
|
4137
|
+
subject: [
|
|
4138
|
+
"http",
|
|
4139
|
+
"response",
|
|
4140
|
+
"status_code"
|
|
4141
|
+
],
|
|
4142
|
+
value: ho(e.meta.get("http-status-code"))
|
|
4143
|
+
}];
|
|
4144
|
+
e.setMetaProperty("ads-a-standard-identifier", t);
|
|
4145
|
+
}
|
|
4146
|
+
} }), e.refractPluginOpenApi3_1StandardIdentifierSelectors = () => () => {
|
|
4147
|
+
let e = [], t = [];
|
|
4148
|
+
return { visitor: {
|
|
4149
|
+
OperationElement: {
|
|
4150
|
+
enter(t, ...r) {
|
|
4151
|
+
const [, , , n] = r, i = n[n.length - 2];
|
|
4152
|
+
e.push(["http", "transaction"], ["http", "request"], [
|
|
4153
|
+
"http",
|
|
4154
|
+
"request",
|
|
4155
|
+
"url"
|
|
4156
|
+
], [
|
|
4157
|
+
"http",
|
|
4158
|
+
"request",
|
|
4159
|
+
"url",
|
|
4160
|
+
Ro(i.meta.get("path"))
|
|
4161
|
+
], [
|
|
4162
|
+
"http",
|
|
4163
|
+
"request",
|
|
4164
|
+
"method"
|
|
4165
|
+
], [
|
|
4166
|
+
"http",
|
|
4167
|
+
"request",
|
|
4168
|
+
"method",
|
|
4169
|
+
Ro(t.meta.get("http-method")).toLowerCase()
|
|
4170
|
+
]), i?.parameters?.forEach(((t) => {
|
|
4171
|
+
On(t.in) && On(t.name) && "header" === Ro(t.in) && e.push([
|
|
4172
|
+
"http",
|
|
4173
|
+
"request",
|
|
4174
|
+
"header"
|
|
4175
|
+
], [
|
|
4176
|
+
"http",
|
|
4177
|
+
"request",
|
|
4178
|
+
"header",
|
|
4179
|
+
Ro(t.name)
|
|
4180
|
+
], [
|
|
4181
|
+
"http",
|
|
4182
|
+
"message",
|
|
4183
|
+
"header"
|
|
4184
|
+
], [
|
|
4185
|
+
"http",
|
|
4186
|
+
"message",
|
|
4187
|
+
"header",
|
|
4188
|
+
Ro(t.name)
|
|
4189
|
+
]);
|
|
4190
|
+
}));
|
|
4191
|
+
},
|
|
4192
|
+
leave(t) {
|
|
4193
|
+
t.setMetaProperty("ads-s-standard-identifier", e), e = [];
|
|
4194
|
+
}
|
|
4195
|
+
},
|
|
4196
|
+
ParameterElement(t) {
|
|
4197
|
+
On(t.in) && On(t.name) && "header" === Ro(t.in) && e.push([
|
|
4198
|
+
"http",
|
|
4199
|
+
"request",
|
|
4200
|
+
"header"
|
|
4201
|
+
], [
|
|
4202
|
+
"http",
|
|
4203
|
+
"request",
|
|
4204
|
+
"header",
|
|
4205
|
+
Ro(t.name)
|
|
4206
|
+
], [
|
|
4207
|
+
"http",
|
|
4208
|
+
"message",
|
|
4209
|
+
"header"
|
|
4210
|
+
], [
|
|
4211
|
+
"http",
|
|
4212
|
+
"message",
|
|
4213
|
+
"header",
|
|
4214
|
+
Ro(t.name)
|
|
4215
|
+
]);
|
|
4216
|
+
},
|
|
4217
|
+
RequestBodyElement(t) {
|
|
4218
|
+
kn(t.contentProp) && (e.push([
|
|
4219
|
+
"http",
|
|
4220
|
+
"request",
|
|
4221
|
+
"body"
|
|
4222
|
+
], [
|
|
4223
|
+
"http",
|
|
4224
|
+
"message",
|
|
4225
|
+
"body"
|
|
4226
|
+
]), void 0 !== t.contentProp && kn(t.contentProp) && t.contentProp.forEach((() => {
|
|
4227
|
+
e.push([
|
|
4228
|
+
"http",
|
|
4229
|
+
"request",
|
|
4230
|
+
"header"
|
|
4231
|
+
], [
|
|
4232
|
+
"http",
|
|
4233
|
+
"request",
|
|
4234
|
+
"header",
|
|
4235
|
+
"Content-Type"
|
|
4236
|
+
], [
|
|
4237
|
+
"http",
|
|
4238
|
+
"message",
|
|
4239
|
+
"header"
|
|
4240
|
+
], [
|
|
4241
|
+
"http",
|
|
4242
|
+
"message",
|
|
4243
|
+
"header",
|
|
4244
|
+
"Content-Type"
|
|
4245
|
+
]);
|
|
4246
|
+
})));
|
|
4247
|
+
},
|
|
4248
|
+
ResponseElement: {
|
|
4249
|
+
enter(e) {
|
|
4250
|
+
if (t.push(["http", "response"]), e.meta.hasKey("http-status-code")) {
|
|
4251
|
+
const r = String(Ro(e.meta.get("http-status-code"))), n = r.startsWith("2") ? "success" : r.startsWith("3") ? "redirect" : r.startsWith("4") ? "client_error" : r.startsWith("5") ? "sever_error" : "unknown";
|
|
4252
|
+
t.push([
|
|
4253
|
+
"http",
|
|
4254
|
+
"response",
|
|
4255
|
+
"status_code"
|
|
4256
|
+
], [
|
|
4257
|
+
"http",
|
|
4258
|
+
"response",
|
|
4259
|
+
"status_code",
|
|
4260
|
+
r
|
|
4261
|
+
], [
|
|
4262
|
+
"http",
|
|
4263
|
+
"response",
|
|
4264
|
+
"status_code",
|
|
4265
|
+
n
|
|
4266
|
+
]);
|
|
4267
|
+
}
|
|
4268
|
+
void 0 !== e.headers && kn(e.headers) && e.headers.forEach(((e, r) => {
|
|
4269
|
+
const n = Ro(r);
|
|
4270
|
+
t.push([
|
|
4271
|
+
"http",
|
|
4272
|
+
"response",
|
|
4273
|
+
"header"
|
|
4274
|
+
], [
|
|
4275
|
+
"http",
|
|
4276
|
+
"response",
|
|
4277
|
+
"header",
|
|
4278
|
+
n
|
|
4279
|
+
], [
|
|
4280
|
+
"http",
|
|
4281
|
+
"message",
|
|
4282
|
+
"header",
|
|
4283
|
+
n
|
|
4284
|
+
]);
|
|
4285
|
+
})), void 0 !== e.contentProp && kn(e.contentProp) && (t.push([
|
|
4286
|
+
"http",
|
|
4287
|
+
"response",
|
|
4288
|
+
"body"
|
|
4289
|
+
], [
|
|
4290
|
+
"http",
|
|
4291
|
+
"message",
|
|
4292
|
+
"body"
|
|
4293
|
+
]), e.contentProp.forEach(((e, r) => {
|
|
4294
|
+
const n = Ro(r);
|
|
4295
|
+
t.push([
|
|
4296
|
+
"http",
|
|
4297
|
+
"response",
|
|
4298
|
+
"header"
|
|
4299
|
+
], [
|
|
4300
|
+
"http",
|
|
4301
|
+
"response",
|
|
4302
|
+
"header",
|
|
4303
|
+
n
|
|
4304
|
+
], [
|
|
4305
|
+
"http",
|
|
4306
|
+
"message",
|
|
4307
|
+
"header",
|
|
4308
|
+
n
|
|
4309
|
+
]);
|
|
4310
|
+
})));
|
|
4311
|
+
},
|
|
4312
|
+
leave(e) {
|
|
4313
|
+
e.setMetaProperty("ads-s-standard-identifier", t), t = [];
|
|
4314
|
+
}
|
|
4315
|
+
}
|
|
4316
|
+
} };
|
|
4317
|
+
}, e.validateOpenAPI3_1 = (e, t) => {
|
|
4318
|
+
const { scenarios: r } = e, n = [];
|
|
4319
|
+
return void 0 !== r && Pn(r) ? (r.forEach(((e) => {
|
|
4320
|
+
n.push(...ta(e, t));
|
|
4321
|
+
})), n) : [];
|
|
4322
|
+
};
|
|
4323
|
+
}));
|