@layers-app/editor 0.0.15-swagger → 0.0.16

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.
@@ -0,0 +1,310 @@
1
+ "use strict";var Mz=Object.defineProperty;var XR=e=>{throw TypeError(e)};var Dz=(e,t,r)=>t in e?Mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var z=(e,t,r)=>Dz(e,typeof t!="symbol"?t+"":t,r),ZR=(e,t,r)=>t.has(e)||XR("Cannot "+r);var Ai=(e,t,r)=>(ZR(e,t,"read from private field"),r?r.call(e):t.get(e)),Ro=(e,t,r)=>t.has(e)?XR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ym=(e,t,r,n)=>(ZR(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Nr=require("react/jsx-runtime"),jt=require("react"),qz=require("react-i18next"),Be=require("./layers.BK2HDr2t.js"),Vn=require("@mantine/core"),$z=require("react-dom");function yL(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function vL(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const ot=yL(jt),Fz=yL($z);var $f={exports:{}},Ff={exports:{}},Mt={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var QR;function Lz(){if(QR)return Mt;QR=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var A=_.$$typeof;switch(A){case t:switch(_=_.type,_){case u:case c:case n:case s:case i:case f:return _;default:switch(_=_&&_.$$typeof,_){case o:case l:case g:case d:case a:return _;default:return A}}case r:return A}}}function x(_){return S(_)===c}return Mt.AsyncMode=u,Mt.ConcurrentMode=c,Mt.ContextConsumer=o,Mt.ContextProvider=a,Mt.Element=t,Mt.ForwardRef=l,Mt.Fragment=n,Mt.Lazy=g,Mt.Memo=d,Mt.Portal=r,Mt.Profiler=s,Mt.StrictMode=i,Mt.Suspense=f,Mt.isAsyncMode=function(_){return x(_)||S(_)===u},Mt.isConcurrentMode=x,Mt.isContextConsumer=function(_){return S(_)===o},Mt.isContextProvider=function(_){return S(_)===a},Mt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Mt.isForwardRef=function(_){return S(_)===l},Mt.isFragment=function(_){return S(_)===n},Mt.isLazy=function(_){return S(_)===g},Mt.isMemo=function(_){return S(_)===d},Mt.isPortal=function(_){return S(_)===r},Mt.isProfiler=function(_){return S(_)===s},Mt.isStrictMode=function(_){return S(_)===i},Mt.isSuspense=function(_){return S(_)===f},Mt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===c||_===s||_===i||_===f||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===d||_.$$typeof===a||_.$$typeof===o||_.$$typeof===l||_.$$typeof===v||_.$$typeof===E||_.$$typeof===b||_.$$typeof===y)},Mt.typeOf=S,Mt}var Dt={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var eT;function Bz(){return eT||(eT=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(pe){return typeof pe=="string"||typeof pe=="function"||pe===n||pe===c||pe===s||pe===i||pe===f||pe===h||typeof pe=="object"&&pe!==null&&(pe.$$typeof===g||pe.$$typeof===d||pe.$$typeof===a||pe.$$typeof===o||pe.$$typeof===l||pe.$$typeof===v||pe.$$typeof===E||pe.$$typeof===b||pe.$$typeof===y)}function x(pe){if(typeof pe=="object"&&pe!==null){var Oe=pe.$$typeof;switch(Oe){case t:var We=pe.type;switch(We){case u:case c:case n:case s:case i:case f:return We;default:var he=We&&We.$$typeof;switch(he){case o:case l:case g:case d:case a:return he;default:return Oe}}case r:return Oe}}}var _=u,A=c,C=o,R=a,O=t,M=l,k=n,D=g,P=d,H=r,Z=s,V=i,G=f,Q=!1;function Y(pe){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(pe)||x(pe)===u}function L(pe){return x(pe)===c}function J(pe){return x(pe)===o}function ee(pe){return x(pe)===a}function ne(pe){return typeof pe=="object"&&pe!==null&&pe.$$typeof===t}function ae(pe){return x(pe)===l}function X(pe){return x(pe)===n}function B(pe){return x(pe)===g}function F(pe){return x(pe)===d}function ue(pe){return x(pe)===r}function fe(pe){return x(pe)===s}function Ae(pe){return x(pe)===i}function Ne(pe){return x(pe)===f}Dt.AsyncMode=_,Dt.ConcurrentMode=A,Dt.ContextConsumer=C,Dt.ContextProvider=R,Dt.Element=O,Dt.ForwardRef=M,Dt.Fragment=k,Dt.Lazy=D,Dt.Memo=P,Dt.Portal=H,Dt.Profiler=Z,Dt.StrictMode=V,Dt.Suspense=G,Dt.isAsyncMode=Y,Dt.isConcurrentMode=L,Dt.isContextConsumer=J,Dt.isContextProvider=ee,Dt.isElement=ne,Dt.isForwardRef=ae,Dt.isFragment=X,Dt.isLazy=B,Dt.isMemo=F,Dt.isPortal=ue,Dt.isProfiler=fe,Dt.isStrictMode=Ae,Dt.isSuspense=Ne,Dt.isValidElementType=S,Dt.typeOf=x}()),Dt}var tT;function bL(){return tT||(tT=1,process.env.NODE_ENV==="production"?Ff.exports=Lz():Ff.exports=Bz()),Ff.exports}/*
16
+ object-assign
17
+ (c) Sindre Sorhus
18
+ @license MIT
19
+ */var Xm,rT;function Uz(){if(rT)return Xm;rT=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var u=Object.getOwnPropertyNames(a).map(function(l){return a[l]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xm=i()?Object.assign:function(s,a){for(var o,u=n(s),c,l=1;l<arguments.length;l++){o=Object(arguments[l]);for(var f in o)t.call(o,f)&&(u[f]=o[f]);if(e){c=e(o);for(var h=0;h<c.length;h++)r.call(o,c[h])&&(u[c[h]]=o[c[h]])}}return u},Xm}var Zm,nT;function MA(){if(nT)return Zm;nT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zm=e,Zm}var Qm,iT;function _L(){return iT||(iT=1,Qm=Function.call.bind(Object.prototype.hasOwnProperty)),Qm}var eg,sT;function Vz(){if(sT)return eg;sT=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=MA(),r={},n=_L();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,u,c){if(process.env.NODE_ENV!=="production"){for(var l in s)if(n(s,l)){var f;try{if(typeof s[l]!="function"){var h=Error((u||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[l](a,l,u,o,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var d=c?c():"";e("Failed "+o+" type: "+f.message+(d??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},eg=i,eg}var tg,aT;function zz(){if(aT)return tg;aT=1;var e=bL(),t=Uz(),r=MA(),n=_L(),i=Vz(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return tg=function(o,u){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(L){var J=L&&(c&&L[c]||L[l]);if(typeof J=="function")return J}var h="<<anonymous>>",d={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:b(),arrayOf:S,element:x(),elementType:_(),instanceOf:A,node:M(),objectOf:R,oneOf:C,oneOfType:O,shape:D,exact:P};function g(L,J){return L===J?L!==0||1/L===1/J:L!==L&&J!==J}function y(L,J){this.message=L,this.data=J&&typeof J=="object"?J:{},this.stack=""}y.prototype=Error.prototype;function v(L){if(process.env.NODE_ENV!=="production")var J={},ee=0;function ne(X,B,F,ue,fe,Ae,Ne){if(ue=ue||h,Ae=Ae||F,Ne!==r){if(u){var pe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw pe.name="Invariant Violation",pe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=ue+":"+F;!J[Oe]&&ee<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),J[Oe]=!0,ee++)}}return B[F]==null?X?B[F]===null?new y("The "+fe+" `"+Ae+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new y("The "+fe+" `"+Ae+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:L(B,F,ue,fe,Ae)}var ae=ne.bind(null,!1);return ae.isRequired=ne.bind(null,!0),ae}function E(L){function J(ee,ne,ae,X,B,F){var ue=ee[ne],fe=V(ue);if(fe!==L){var Ae=G(ue);return new y("Invalid "+X+" `"+B+"` of type "+("`"+Ae+"` supplied to `"+ae+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return v(J)}function b(){return v(a)}function S(L){function J(ee,ne,ae,X,B){if(typeof L!="function")return new y("Property `"+B+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var F=ee[ne];if(!Array.isArray(F)){var ue=V(F);return new y("Invalid "+X+" `"+B+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected an array."))}for(var fe=0;fe<F.length;fe++){var Ae=L(F,fe,ae,X,B+"["+fe+"]",r);if(Ae instanceof Error)return Ae}return null}return v(J)}function x(){function L(J,ee,ne,ae,X){var B=J[ee];if(!o(B)){var F=V(B);return new y("Invalid "+ae+" `"+X+"` of type "+("`"+F+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return v(L)}function _(){function L(J,ee,ne,ae,X){var B=J[ee];if(!e.isValidElementType(B)){var F=V(B);return new y("Invalid "+ae+" `"+X+"` of type "+("`"+F+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return v(L)}function A(L){function J(ee,ne,ae,X,B){if(!(ee[ne]instanceof L)){var F=L.name||h,ue=Y(ee[ne]);return new y("Invalid "+X+" `"+B+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected ")+("instance of `"+F+"`."))}return null}return v(J)}function C(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function J(ee,ne,ae,X,B){for(var F=ee[ne],ue=0;ue<L.length;ue++)if(g(F,L[ue]))return null;var fe=JSON.stringify(L,function(Ne,pe){var Oe=G(pe);return Oe==="symbol"?String(pe):pe});return new y("Invalid "+X+" `"+B+"` of value `"+String(F)+"` "+("supplied to `"+ae+"`, expected one of "+fe+"."))}return v(J)}function R(L){function J(ee,ne,ae,X,B){if(typeof L!="function")return new y("Property `"+B+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var F=ee[ne],ue=V(F);if(ue!=="object")return new y("Invalid "+X+" `"+B+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected an object."));for(var fe in F)if(n(F,fe)){var Ae=L(F,fe,ae,X,B+"."+fe,r);if(Ae instanceof Error)return Ae}return null}return v(J)}function O(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var J=0;J<L.length;J++){var ee=L[J];if(typeof ee!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(ee)+" at index "+J+"."),a}function ne(ae,X,B,F,ue){for(var fe=[],Ae=0;Ae<L.length;Ae++){var Ne=L[Ae],pe=Ne(ae,X,B,F,ue,r);if(pe==null)return null;pe.data&&n(pe.data,"expectedType")&&fe.push(pe.data.expectedType)}var Oe=fe.length>0?", expected one of type ["+fe.join(", ")+"]":"";return new y("Invalid "+F+" `"+ue+"` supplied to "+("`"+B+"`"+Oe+"."))}return v(ne)}function M(){function L(J,ee,ne,ae,X){return H(J[ee])?null:new y("Invalid "+ae+" `"+X+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return v(L)}function k(L,J,ee,ne,ae){return new y((L||"React class")+": "+J+" type `"+ee+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function D(L){function J(ee,ne,ae,X,B){var F=ee[ne],ue=V(F);if(ue!=="object")return new y("Invalid "+X+" `"+B+"` of type `"+ue+"` "+("supplied to `"+ae+"`, expected `object`."));for(var fe in L){var Ae=L[fe];if(typeof Ae!="function")return k(ae,X,B,fe,G(Ae));var Ne=Ae(F,fe,ae,X,B+"."+fe,r);if(Ne)return Ne}return null}return v(J)}function P(L){function J(ee,ne,ae,X,B){var F=ee[ne],ue=V(F);if(ue!=="object")return new y("Invalid "+X+" `"+B+"` of type `"+ue+"` "+("supplied to `"+ae+"`, expected `object`."));var fe=t({},ee[ne],L);for(var Ae in fe){var Ne=L[Ae];if(n(L,Ae)&&typeof Ne!="function")return k(ae,X,B,Ae,G(Ne));if(!Ne)return new y("Invalid "+X+" `"+B+"` key `"+Ae+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(ee[ne],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var pe=Ne(F,Ae,ae,X,B+"."+Ae,r);if(pe)return pe}return null}return v(J)}function H(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(H);if(L===null||o(L))return!0;var J=f(L);if(J){var ee=J.call(L),ne;if(J!==L.entries){for(;!(ne=ee.next()).done;)if(!H(ne.value))return!1}else for(;!(ne=ee.next()).done;){var ae=ne.value;if(ae&&!H(ae[1]))return!1}}else return!1;return!0;default:return!1}}function Z(L,J){return L==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function V(L){var J=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":Z(J,L)?"symbol":J}function G(L){if(typeof L>"u"||L===null)return""+L;var J=V(L);if(J==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return J}function Q(L){var J=G(L);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function Y(L){return!L.constructor||!L.constructor.name?h:L.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},tg}var rg,oT;function Wz(){if(oT)return rg;oT=1;var e=MA();function t(){}function r(){}return r.resetWarningCache=t,rg=function(){function n(a,o,u,c,l,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},rg}var uT;function Jz(){if(uT)return $f.exports;if(uT=1,process.env.NODE_ENV!=="production"){var e=bL(),t=!0;$f.exports=zz()(e.isElement,t)}else $f.exports=Wz()();return $f.exports}var Kz=Jz();const Hz=Be.getDefaultExportFromCjs(Kz);var Lf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var cT;function Gz(){return cT||(cT=1,Lf.read=function(e,t,r,n,i){var s,a,o=i*8-n-1,u=(1<<o)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,s=d&(1<<-l)-1,d>>=-l,l+=o;l>0;s=s*256+e[t+f],f+=h,l-=8);for(a=s&(1<<-l)-1,s>>=-l,l+=n;l>0;a=a*256+e[t+f],f+=h,l-=8);if(s===0)s=1-c;else{if(s===u)return a?NaN:(d?-1:1)*(1/0);a=a+Math.pow(2,n),s=s-c}return(d?-1:1)*a*Math.pow(2,s-n)},Lf.write=function(e,t,r,n,i,s){var a,o,u,c=s*8-i-1,l=(1<<c)-1,f=l>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:s-1,g=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(o=0,a=l):a+f>=1?(o=(t*u-1)*Math.pow(2,i),a=a+f):(o=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=o&255,d+=g,o/=256,i-=8);for(a=a<<i|o,c+=i;c>0;e[r+d]=a&255,d+=g,a/=256,c-=8);e[r+d-g]|=y*128}),Lf}var EL=Gz();const Yz=Be.getDefaultExportFromCjs(EL),Xz=vL({__proto__:null,default:Yz},[EL]);var Lu={},lT;function Zz(){if(lT)return Lu;lT=1,Lu.byteLength=o,Lu.toByteArray=c,Lu.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i<s;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(d){var g=d.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=g);var v=y===g?0:4-y%4;return[y,v]}function o(d){var g=a(d),y=g[0],v=g[1];return(y+v)*3/4-v}function u(d,g,y){return(g+y)*3/4-y}function c(d){var g,y=a(d),v=y[0],E=y[1],b=new r(u(d,v,E)),S=0,x=E>0?v-4:v,_;for(_=0;_<x;_+=4)g=t[d.charCodeAt(_)]<<18|t[d.charCodeAt(_+1)]<<12|t[d.charCodeAt(_+2)]<<6|t[d.charCodeAt(_+3)],b[S++]=g>>16&255,b[S++]=g>>8&255,b[S++]=g&255;return E===2&&(g=t[d.charCodeAt(_)]<<2|t[d.charCodeAt(_+1)]>>4,b[S++]=g&255),E===1&&(g=t[d.charCodeAt(_)]<<10|t[d.charCodeAt(_+1)]<<4|t[d.charCodeAt(_+2)]>>2,b[S++]=g>>8&255,b[S++]=g&255),b}function l(d){return e[d>>18&63]+e[d>>12&63]+e[d>>6&63]+e[d&63]}function f(d,g,y){for(var v,E=[],b=g;b<y;b+=3)v=(d[b]<<16&16711680)+(d[b+1]<<8&65280)+(d[b+2]&255),E.push(l(v));return E.join("")}function h(d){for(var g,y=d.length,v=y%3,E=[],b=16383,S=0,x=y-v;S<x;S+=b)E.push(f(d,S,S+b>x?x:S+b));return v===1?(g=d[y-1],E.push(e[g>>2]+e[g<<4&63]+"==")):v===2&&(g=(d[y-2]<<8)+d[y-1],E.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),E.join("")}return Lu}var SL=Zz();const Qz=Be.getDefaultExportFromCjs(SL),eW=vL({__proto__:null,default:Qz},[SL]);function dn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var tW=typeof Symbol=="function"&&Symbol.observable||"@@observable",fT=tW,pT=()=>Math.random().toString(36).substring(7).split("").join("."),rW={INIT:`@@redux/INIT${pT()}`,REPLACE:`@@redux/REPLACE${pT()}`},dT=rW;function nW(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function iW(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(oW(e))return"date";if(aW(e))return"error";const r=sW(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function sW(e){return typeof e.constructor=="function"?e.constructor.name:null}function aW(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function oW(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ea(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=iW(e)),t}function wL(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?dn(2):`Expected the root reducer to be a function. Instead, received: '${ea(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?dn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?dn(1):`Expected the enhancer to be a function. Instead, received: '${ea(r)}'`);return r(wL)(e,t)}let n=e,i=t,s=new Map,a=s,o=0,u=!1;function c(){a===s&&(a=new Map,s.forEach((v,E)=>{a.set(E,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?dn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?dn(4):`Expected the listener to be a function. Instead, received: '${ea(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?dn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let E=!0;c();const b=o++;return a.set(b,v),function(){if(E){if(u)throw new Error(process.env.NODE_ENV==="production"?dn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");E=!1,c(),a.delete(b),s=null}}}function h(v){if(!nW(v))throw new Error(process.env.NODE_ENV==="production"?dn(7):`Actions must be plain objects. Instead, the actual type was: '${ea(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?dn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?dn(17):`Action "type" property must be a string. Instead, the actual type was: '${ea(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?dn(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,v)}finally{u=!1}return(s=a).forEach(b=>{b()}),v}function d(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?dn(10):`Expected the nextReducer to be a function. Instead, received: '${ea(v)}`);n=v,h({type:dT.REPLACE})}function g(){const v=f;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?dn(11):`Expected the observer to be an object. Instead, received: '${ea(E)}'`);function b(){const x=E;x.next&&x.next(l())}return b(),{unsubscribe:v(b)}},[fT](){return this}}}return h({type:dT.INIT}),{dispatch:h,subscribe:f,getState:l,replaceReducer:d,[fT]:g}}function hT(e,t){return function(...r){return t(e.apply(this,r))}}function uW(e,t){if(typeof e=="function")return hT(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?dn(16):`bindActionCreators expected an object or a function, but instead received: '${ea(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=hT(i,t))}return r}function xL(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function cW(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?dn(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(u,...c)=>s(u,...c)},o=e.map(u=>u(a));return s=xL(...o)(i.dispatch),{...i,dispatch:s}}}var pp={exports:{}},lW=pp.exports,mT;function DA(){return mT||(mT=1,function(e,t){(function(r,n){e.exports=n()})(lW,function(){var r=Array.prototype.slice;function n(m,w){w&&(m.prototype=Object.create(w.prototype)),m.prototype.constructor=m}function i(m){return u(m)?m:Oe(m)}n(s,i);function s(m){return c(m)?m:We(m)}n(a,i);function a(m){return l(m)?m:he(m)}n(o,i);function o(m){return u(m)&&!f(m)?m:ve(m)}function u(m){return!!(m&&m[d])}function c(m){return!!(m&&m[g])}function l(m){return!!(m&&m[y])}function f(m){return c(m)||l(m)}function h(m){return!!(m&&m[v])}i.isIterable=u,i.isKeyed=c,i.isIndexed=l,i.isAssociative=f,i.isOrdered=h,i.Keyed=s,i.Indexed=a,i.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",v="@@__IMMUTABLE_ORDERED__@@",E="delete",b=5,S=1<<b,x=S-1,_={},A={value:!1},C={value:!1};function R(m){return m.value=!1,m}function O(m){m&&(m.value=!0)}function M(){}function k(m,w){w=w||0;for(var I=Math.max(0,m.length-w),N=new Array(I),q=0;q<I;q++)N[q]=m[q+w];return N}function D(m){return m.size===void 0&&(m.size=m.__iterate(H)),m.size}function P(m,w){if(typeof w!="number"){var I=w>>>0;if(""+I!==w||I===4294967295)return NaN;w=I}return w<0?D(m)+w:w}function H(){return!0}function Z(m,w,I){return(m===0||I!==void 0&&m<=-I)&&(w===void 0||I!==void 0&&w>=I)}function V(m,w){return Q(m,w,0)}function G(m,w){return Q(m,w,w)}function Q(m,w,I){return m===void 0?I:m<0?Math.max(0,w+m):w===void 0?m:Math.min(w,m)}var Y=0,L=1,J=2,ee=typeof Symbol=="function"&&Symbol.iterator,ne="@@iterator",ae=ee||ne;function X(m){this.next=m}X.prototype.toString=function(){return"[Iterator]"},X.KEYS=Y,X.VALUES=L,X.ENTRIES=J,X.prototype.inspect=X.prototype.toSource=function(){return this.toString()},X.prototype[ae]=function(){return this};function B(m,w,I,N){var q=m===0?w:m===1?I:[w,I];return N?N.value=q:N={value:q,done:!1},N}function F(){return{value:void 0,done:!0}}function ue(m){return!!Ne(m)}function fe(m){return m&&typeof m.next=="function"}function Ae(m){var w=Ne(m);return w&&w.call(m)}function Ne(m){var w=m&&(ee&&m[ee]||m[ne]);if(typeof w=="function")return w}function pe(m){return m&&typeof m.length=="number"}n(Oe,i);function Oe(m){return m==null?le():u(m)?m.toSeq():Qe(m)}Oe.of=function(){return Oe(arguments)},Oe.prototype.toSeq=function(){return this},Oe.prototype.toString=function(){return this.__toString("Seq {","}")},Oe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Oe.prototype.__iterate=function(m,w){return ct(this,m,w,!0)},Oe.prototype.__iterator=function(m,w){return $n(this,m,w,!0)},n(We,Oe);function We(m){return m==null?le().toKeyedSeq():u(m)?c(m)?m.toSeq():m.fromEntrySeq():Ie(m)}We.prototype.toKeyedSeq=function(){return this},n(he,Oe);function he(m){return m==null?le():u(m)?c(m)?m.entrySeq():m.toIndexedSeq():Je(m)}he.of=function(){return he(arguments)},he.prototype.toIndexedSeq=function(){return this},he.prototype.toString=function(){return this.__toString("Seq [","]")},he.prototype.__iterate=function(m,w){return ct(this,m,w,!1)},he.prototype.__iterator=function(m,w){return $n(this,m,w,!1)},n(ve,Oe);function ve(m){return(m==null?le():u(m)?c(m)?m.entrySeq():m:Je(m)).toSetSeq()}ve.of=function(){return ve(arguments)},ve.prototype.toSetSeq=function(){return this},Oe.isSeq=re,Oe.Keyed=We,Oe.Set=ve,Oe.Indexed=he;var Se="@@__IMMUTABLE_SEQ__@@";Oe.prototype[Se]=!0,n($,he);function $(m){this._array=m,this.size=m.length}$.prototype.get=function(m,w){return this.has(m)?this._array[P(this,m)]:w},$.prototype.__iterate=function(m,w){for(var I=this._array,N=I.length-1,q=0;q<=N;q++)if(m(I[w?N-q:q],q,this)===!1)return q+1;return q},$.prototype.__iterator=function(m,w){var I=this._array,N=I.length-1,q=0;return new X(function(){return q>N?F():B(m,q,I[w?N-q++:q++])})},n(T,We);function T(m){var w=Object.keys(m);this._object=m,this._keys=w,this.size=w.length}T.prototype.get=function(m,w){return w!==void 0&&!this.has(m)?w:this._object[m]},T.prototype.has=function(m){return this._object.hasOwnProperty(m)},T.prototype.__iterate=function(m,w){for(var I=this._object,N=this._keys,q=N.length-1,K=0;K<=q;K++){var te=N[w?q-K:K];if(m(I[te],te,this)===!1)return K+1}return K},T.prototype.__iterator=function(m,w){var I=this._object,N=this._keys,q=N.length-1,K=0;return new X(function(){var te=N[w?q-K:K];return K++>q?F():B(m,te,I[te])})},T.prototype[v]=!0,n(j,he);function j(m){this._iterable=m,this.size=m.length||m.size}j.prototype.__iterateUncached=function(m,w){if(w)return this.cacheResult().__iterate(m,w);var I=this._iterable,N=Ae(I),q=0;if(fe(N))for(var K;!(K=N.next()).done&&m(K.value,q++,this)!==!1;);return q},j.prototype.__iteratorUncached=function(m,w){if(w)return this.cacheResult().__iterator(m,w);var I=this._iterable,N=Ae(I);if(!fe(N))return new X(F);var q=0;return new X(function(){var K=N.next();return K.done?K:B(m,q++,K.value)})},n(U,he);function U(m){this._iterator=m,this._iteratorCache=[]}U.prototype.__iterateUncached=function(m,w){if(w)return this.cacheResult().__iterate(m,w);for(var I=this._iterator,N=this._iteratorCache,q=0;q<N.length;)if(m(N[q],q++,this)===!1)return q;for(var K;!(K=I.next()).done;){var te=K.value;if(N[q]=te,m(te,q++,this)===!1)break}return q},U.prototype.__iteratorUncached=function(m,w){if(w)return this.cacheResult().__iterator(m,w);var I=this._iterator,N=this._iteratorCache,q=0;return new X(function(){if(q>=N.length){var K=I.next();if(K.done)return K;N[q]=K.value}return B(m,q,N[q++])})};function re(m){return!!(m&&m[Se])}var ie;function le(){return ie||(ie=new $([]))}function Ie(m){var w=Array.isArray(m)?new $(m).fromEntrySeq():fe(m)?new U(m).fromEntrySeq():ue(m)?new j(m).fromEntrySeq():typeof m=="object"?new T(m):void 0;if(!w)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return w}function Je(m){var w=tt(m);if(!w)throw new TypeError("Expected Array or iterable object of values: "+m);return w}function Qe(m){var w=tt(m)||typeof m=="object"&&new T(m);if(!w)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return w}function tt(m){return pe(m)?new $(m):fe(m)?new U(m):ue(m)?new j(m):void 0}function ct(m,w,I,N){var q=m._cache;if(q){for(var K=q.length-1,te=0;te<=K;te++){var oe=q[I?K-te:te];if(w(oe[1],N?oe[0]:te,m)===!1)return te+1}return te}return m.__iterateUncached(w,I)}function $n(m,w,I,N){var q=m._cache;if(q){var K=q.length-1,te=0;return new X(function(){var oe=q[I?K-te:te];return te++>K?F():B(w,N?oe[0]:te-1,oe[1])})}return m.__iteratorUncached(w,I)}function Si(m,w){return w?ar(w,m,"",{"":m}):br(m)}function ar(m,w,I,N){return Array.isArray(w)?m.call(N,I,he(w).map(function(q,K){return ar(m,q,K,w)})):lr(w)?m.call(N,I,We(w).map(function(q,K){return ar(m,q,K,w)})):w}function br(m){return Array.isArray(m)?he(m).map(br).toList():lr(m)?We(m).map(br).toMap():m}function lr(m){return m&&(m.constructor===Object||m.constructor===void 0)}function Pt(m,w){if(m===w||m!==m&&w!==w)return!0;if(!m||!w)return!1;if(typeof m.valueOf=="function"&&typeof w.valueOf=="function"){if(m=m.valueOf(),w=w.valueOf(),m===w||m!==m&&w!==w)return!0;if(!m||!w)return!1}return!!(typeof m.equals=="function"&&typeof w.equals=="function"&&m.equals(w))}function Bs(m,w){if(m===w)return!0;if(!u(w)||m.size!==void 0&&w.size!==void 0&&m.size!==w.size||m.__hash!==void 0&&w.__hash!==void 0&&m.__hash!==w.__hash||c(m)!==c(w)||l(m)!==l(w)||h(m)!==h(w))return!1;if(m.size===0&&w.size===0)return!0;var I=!f(m);if(h(m)){var N=m.entries();return w.every(function(ye,be){var xe=N.next().value;return xe&&Pt(xe[1],ye)&&(I||Pt(xe[0],be))})&&N.next().done}var q=!1;if(m.size===void 0)if(w.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{q=!0;var K=m;m=w,w=K}var te=!0,oe=w.__iterate(function(ye,be){if(I?!m.has(ye):q?!Pt(ye,m.get(be,_)):!Pt(m.get(be,_),ye))return te=!1,!1});return te&&m.size===oe}n(dr,he);function dr(m,w){if(!(this instanceof dr))return new dr(m,w);if(this._value=m,this.size=w===void 0?1/0:Math.max(0,w),this.size===0){if(de)return de;de=this}}dr.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},dr.prototype.get=function(m,w){return this.has(m)?this._value:w},dr.prototype.includes=function(m){return Pt(this._value,m)},dr.prototype.slice=function(m,w){var I=this.size;return Z(m,w,I)?this:new dr(this._value,G(w,I)-V(m,I))},dr.prototype.reverse=function(){return this},dr.prototype.indexOf=function(m){return Pt(this._value,m)?0:-1},dr.prototype.lastIndexOf=function(m){return Pt(this._value,m)?this.size:-1},dr.prototype.__iterate=function(m,w){for(var I=0;I<this.size;I++)if(m(this._value,I,this)===!1)return I+1;return I},dr.prototype.__iterator=function(m,w){var I=this,N=0;return new X(function(){return N<I.size?B(m,N++,I._value):F()})},dr.prototype.equals=function(m){return m instanceof dr?Pt(this._value,m._value):Bs(m)};var de;function Ee(m,w){if(!m)throw new Error(w)}n(Re,he);function Re(m,w,I){if(!(this instanceof Re))return new Re(m,w,I);if(Ee(I!==0,"Cannot step a Range by 0"),m=m||0,w===void 0&&(w=1/0),I=I===void 0?1:Math.abs(I),w<m&&(I=-I),this._start=m,this._end=w,this._step=I,this.size=Math.max(0,Math.ceil((w-m)/I-1)+1),this.size===0){if(Ge)return Ge;Ge=this}}Re.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},Re.prototype.get=function(m,w){return this.has(m)?this._start+P(this,m)*this._step:w},Re.prototype.includes=function(m){var w=(m-this._start)/this._step;return w>=0&&w<this.size&&w===Math.floor(w)},Re.prototype.slice=function(m,w){return Z(m,w,this.size)?this:(m=V(m,this.size),w=G(w,this.size),w<=m?new Re(0,0):new Re(this.get(m,this._end),this.get(w,this._end),this._step))},Re.prototype.indexOf=function(m){var w=m-this._start;if(w%this._step===0){var I=w/this._step;if(I>=0&&I<this.size)return I}return-1},Re.prototype.lastIndexOf=function(m){return this.indexOf(m)},Re.prototype.__iterate=function(m,w){for(var I=this.size-1,N=this._step,q=w?this._start+I*N:this._start,K=0;K<=I;K++){if(m(q,K,this)===!1)return K+1;q+=w?-N:N}return K},Re.prototype.__iterator=function(m,w){var I=this.size-1,N=this._step,q=w?this._start+I*N:this._start,K=0;return new X(function(){var te=q;return q+=w?-N:N,K>I?F():B(m,K++,te)})},Re.prototype.equals=function(m){return m instanceof Re?this._start===m._start&&this._end===m._end&&this._step===m._step:Bs(this,m)};var Ge;n(at,i);function at(){throw TypeError("Abstract")}n(mt,at);function mt(){}n(Lt,at);function Lt(){}n(Te,at);function Te(){}at.Keyed=mt,at.Indexed=Lt,at.Set=Te;var Fe=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(w,I){w=w|0,I=I|0;var N=w&65535,q=I&65535;return N*q+((w>>>16)*q+N*(I>>>16)<<16>>>0)|0};function nt(m){return m>>>1&1073741824|m&3221225471}function Ye(m){if(m===!1||m===null||m===void 0||typeof m.valueOf=="function"&&(m=m.valueOf(),m===!1||m===null||m===void 0))return 0;if(m===!0)return 1;var w=typeof m;if(w==="number"){if(m!==m||m===1/0)return 0;var I=m|0;for(I!==m&&(I^=m*4294967295);m>4294967295;)m/=4294967295,I^=m;return nt(I)}if(w==="string")return m.length>Fn?Bt(m):on(m);if(typeof m.hashCode=="function")return m.hashCode();if(w==="object")return Us(m);if(typeof m.toString=="function")return on(m.toString());throw new Error("Value type "+w+" cannot be hashed.")}function Bt(m){var w=Vi[m];return w===void 0&&(w=on(m),Hs===Ks&&(Hs=0,Vi={}),Hs++,Vi[m]=w),w}function on(m){for(var w=0,I=0;I<m.length;I++)w=31*w+m.charCodeAt(I)|0;return nt(w)}function Us(m){var w;if(Ws&&(w=Js.get(m),w!==void 0)||(w=m[cn],w!==void 0)||!un&&(w=m.propertyIsEnumerable&&m.propertyIsEnumerable[cn],w!==void 0||(w=zs(m),w!==void 0)))return w;if(w=++vs,vs&1073741824&&(vs=0),Ws)Js.set(m,w);else{if(Vs!==void 0&&Vs(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(un)Object.defineProperty(m,cn,{enumerable:!1,configurable:!1,writable:!1,value:w});else if(m.propertyIsEnumerable!==void 0&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[cn]=w;else if(m.nodeType!==void 0)m[cn]=w;else throw new Error("Unable to set a non-enumerable property on object.")}return w}var Vs=Object.isExtensible,un=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function zs(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var Ws=typeof WeakMap=="function",Js;Ws&&(Js=new WeakMap);var vs=0,cn="__immutablehash__";typeof Symbol=="function"&&(cn=Symbol(cn));var Fn=16,Ks=255,Hs=0,Vi={};function kr(m){Ee(m!==1/0,"Cannot perform this action with an infinite size.")}n(vt,mt);function vt(m){return m==null?qe():Ke(m)&&!h(m)?m:qe().withMutations(function(w){var I=s(m);kr(I.size),I.forEach(function(N,q){return w.set(q,N)})})}vt.of=function(){var m=r.call(arguments,0);return qe().withMutations(function(w){for(var I=0;I<m.length;I+=2){if(I+1>=m.length)throw new Error("Missing value for key: "+m[I]);w.set(m[I],m[I+1])}})},vt.prototype.toString=function(){return this.__toString("Map {","}")},vt.prototype.get=function(m,w){return this._root?this._root.get(0,void 0,m,w):w},vt.prototype.set=function(m,w){return _t(this,m,w)},vt.prototype.setIn=function(m,w){return this.updateIn(m,_,function(){return w})},vt.prototype.remove=function(m){return _t(this,m,_)},vt.prototype.deleteIn=function(m){return this.updateIn(m,function(){return _})},vt.prototype.update=function(m,w,I){return arguments.length===1?m(this):this.updateIn([m],w,I)},vt.prototype.updateIn=function(m,w,I){I||(I=w,w=void 0);var N=Rf(this,DR(m),w,I);return N===_?void 0:N},vt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):qe()},vt.prototype.merge=function(){return Ln(this,void 0,arguments)},vt.prototype.mergeWith=function(m){var w=r.call(arguments,1);return Ln(this,m,w)},vt.prototype.mergeIn=function(m){var w=r.call(arguments,1);return this.updateIn(m,qe(),function(I){return typeof I.merge=="function"?I.merge.apply(I,w):w[w.length-1]})},vt.prototype.mergeDeep=function(){return Ln(this,Af,arguments)},vt.prototype.mergeDeepWith=function(m){var w=r.call(arguments,1);return Ln(this,Of(m),w)},vt.prototype.mergeDeepIn=function(m){var w=r.call(arguments,1);return this.updateIn(m,qe(),function(I){return typeof I.mergeDeep=="function"?I.mergeDeep.apply(I,w):w[w.length-1]})},vt.prototype.sort=function(m){return Er(Oo(this,m))},vt.prototype.sortBy=function(m,w){return Er(Oo(this,w,m))},vt.prototype.withMutations=function(m){var w=this.asMutable();return m(w),w.wasAltered()?w.__ensureOwner(this.__ownerID):this},vt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},vt.prototype.asImmutable=function(){return this.__ensureOwner()},vt.prototype.wasAltered=function(){return this.__altered},vt.prototype.__iterator=function(m,w){return new Zr(this,m,w)},vt.prototype.__iterate=function(m,w){var I=this,N=0;return this._root&&this._root.iterate(function(q){return N++,m(q[1],q[0],I)},w),N},vt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Gs(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function Ke(m){return!!(m&&m[se])}vt.isMap=Ke;var se="@@__IMMUTABLE_MAP__@@",_e=vt.prototype;_e[se]=!0,_e[E]=_e.remove,_e.removeIn=_e.deleteIn;function Ue(m,w){this.ownerID=m,this.entries=w}Ue.prototype.get=function(m,w,I,N){for(var q=this.entries,K=0,te=q.length;K<te;K++)if(Pt(I,q[K][0]))return q[K][1];return N},Ue.prototype.update=function(m,w,I,N,q,K,te){for(var oe=q===_,ye=this.entries,be=0,xe=ye.length;be<xe&&!Pt(N,ye[be][0]);be++);var $e=be<xe;if($e?ye[be][1]===q:oe)return this;if(O(te),(oe||!$e)&&O(K),!(oe&&ye.length===1)){if(!$e&&!oe&&ye.length>=qu)return ti(m,ye,N,q);var ze=m&&m===this.ownerID,ut=ze?ye:k(ye);return $e?oe?be===xe-1?ut.pop():ut[be]=ut.pop():ut[be]=[N,q]:ut.push([N,q]),ze?(this.entries=ut,this):new Ue(m,ut)}};function lt(m,w,I){this.ownerID=m,this.bitmap=w,this.nodes=I}lt.prototype.get=function(m,w,I,N){w===void 0&&(w=Ye(I));var q=1<<((m===0?w:w>>>m)&x),K=this.bitmap;return(K&q)===0?N:this.nodes[Ra(K&q-1)].get(m+b,w,I,N)},lt.prototype.update=function(m,w,I,N,q,K,te){I===void 0&&(I=Ye(N));var oe=(w===0?I:I>>>w)&x,ye=1<<oe,be=this.bitmap,xe=(be&ye)!==0;if(!xe&&q===_)return this;var $e=Ra(be&ye-1),ze=this.nodes,ut=xe?ze[$e]:void 0,bt=Nt(ut,m,w+b,I,N,q,K,te);if(bt===ut)return this;if(!xe&&bt&&ze.length>=gt)return ni(m,ze,be,oe,bt);if(xe&&!bt&&ze.length===2&&_r(ze[$e^1]))return ze[$e^1];if(xe&&bt&&ze.length===1&&_r(bt))return bt;var ur=m&&m===this.ownerID,xi=xe?bt?be:be^ye:be|ye,Ki=xe?bt?Du(ze,$e,bt,ur):Fm(ze,$e,ur):Ys(ze,$e,bt,ur);return ur?(this.bitmap=xi,this.nodes=Ki,this):new lt(m,xi,Ki)};function rr(m,w,I){this.ownerID=m,this.count=w,this.nodes=I}rr.prototype.get=function(m,w,I,N){w===void 0&&(w=Ye(I));var q=(m===0?w:w>>>m)&x,K=this.nodes[q];return K?K.get(m+b,w,I,N):N},rr.prototype.update=function(m,w,I,N,q,K,te){I===void 0&&(I=Ye(N));var oe=(w===0?I:I>>>w)&x,ye=q===_,be=this.nodes,xe=be[oe];if(ye&&!xe)return this;var $e=Nt(xe,m,w+b,I,N,q,K,te);if($e===xe)return this;var ze=this.count;if(!xe)ze++;else if(!$e&&(ze--,ze<Tf))return ri(m,be,ze,oe);var ut=m&&m===this.ownerID,bt=Du(be,oe,$e,ut);return ut?(this.count=ze,this.nodes=bt,this):new rr(m,ze,bt)};function Wt(m,w,I){this.ownerID=m,this.keyHash=w,this.entries=I}Wt.prototype.get=function(m,w,I,N){for(var q=this.entries,K=0,te=q.length;K<te;K++)if(Pt(I,q[K][0]))return q[K][1];return N},Wt.prototype.update=function(m,w,I,N,q,K,te){I===void 0&&(I=Ye(N));var oe=q===_;if(I!==this.keyHash)return oe?this:(O(te),O(K),wi(this,m,w,I,[N,q]));for(var ye=this.entries,be=0,xe=ye.length;be<xe&&!Pt(N,ye[be][0]);be++);var $e=be<xe;if($e?ye[be][1]===q:oe)return this;if(O(te),(oe||!$e)&&O(K),oe&&xe===2)return new Yt(m,this.keyHash,ye[be^1]);var ze=m&&m===this.ownerID,ut=ze?ye:k(ye);return $e?oe?be===xe-1?ut.pop():ut[be]=ut.pop():ut[be]=[N,q]:ut.push([N,q]),ze?(this.entries=ut,this):new Wt(m,this.keyHash,ut)};function Yt(m,w,I){this.ownerID=m,this.keyHash=w,this.entry=I}Yt.prototype.get=function(m,w,I,N){return Pt(I,this.entry[0])?this.entry[1]:N},Yt.prototype.update=function(m,w,I,N,q,K,te){var oe=q===_,ye=Pt(N,this.entry[0]);if(ye?q===this.entry[1]:oe)return this;if(O(te),oe){O(K);return}return ye?m&&m===this.ownerID?(this.entry[1]=q,this):new Yt(m,this.keyHash,[N,q]):(O(K),wi(this,m,w,Ye(N),[N,q]))},Ue.prototype.iterate=Wt.prototype.iterate=function(m,w){for(var I=this.entries,N=0,q=I.length-1;N<=q;N++)if(m(I[w?q-N:N])===!1)return!1},lt.prototype.iterate=rr.prototype.iterate=function(m,w){for(var I=this.nodes,N=0,q=I.length-1;N<=q;N++){var K=I[w?q-N:N];if(K&&K.iterate(m,w)===!1)return!1}},Yt.prototype.iterate=function(m,w){return m(this.entry)},n(Zr,X);function Zr(m,w,I){this._type=w,this._reverse=I,this._stack=m._root&&xr(m._root)}Zr.prototype.next=function(){for(var m=this._type,w=this._stack;w;){var I=w.node,N=w.index++,q;if(I.entry){if(N===0)return An(m,I.entry)}else if(I.entries){if(q=I.entries.length-1,N<=q)return An(m,I.entries[this._reverse?q-N:N])}else if(q=I.nodes.length-1,N<=q){var K=I.nodes[this._reverse?q-N:N];if(K){if(K.entry)return An(m,K.entry);w=this._stack=xr(K,w)}continue}w=this._stack=this._stack.__prev}return F()};function An(m,w){return B(m,w[0],w[1])}function xr(m,w){return{node:m,index:0,__prev:w}}function Gs(m,w,I,N){var q=Object.create(_e);return q.size=m,q._root=w,q.__ownerID=I,q.__hash=N,q.__altered=!1,q}var Ce;function qe(){return Ce||(Ce=Gs(0))}function _t(m,w,I){var N,q;if(m._root){var K=R(A),te=R(C);if(N=Nt(m._root,m.__ownerID,0,void 0,w,I,K,te),!te.value)return m;q=m.size+(K.value?I===_?-1:1:0)}else{if(I===_)return m;q=1,N=new Ue(m.__ownerID,[[w,I]])}return m.__ownerID?(m.size=q,m._root=N,m.__hash=void 0,m.__altered=!0,m):N?Gs(q,N):qe()}function Nt(m,w,I,N,q,K,te,oe){return m?m.update(w,I,N,q,K,te,oe):K===_?m:(O(oe),O(te),new Yt(w,N,[q,K]))}function _r(m){return m.constructor===Yt||m.constructor===Wt}function wi(m,w,I,N,q){if(m.keyHash===N)return new Wt(w,N,[m.entry,q]);var K=(I===0?m.keyHash:m.keyHash>>>I)&x,te=(I===0?N:N>>>I)&x,oe,ye=K===te?[wi(m,w,I+b,N,q)]:(oe=new Yt(w,N,q),K<te?[m,oe]:[oe,m]);return new lt(w,1<<K|1<<te,ye)}function ti(m,w,I,N){m||(m=new M);for(var q=new Yt(m,Ye(I),[I,N]),K=0;K<w.length;K++){var te=w[K];q=q.update(m,0,void 0,te[0],te[1])}return q}function ri(m,w,I,N){for(var q=0,K=0,te=new Array(I),oe=0,ye=1,be=w.length;oe<be;oe++,ye<<=1){var xe=w[oe];xe!==void 0&&oe!==N&&(q|=ye,te[K++]=xe)}return new lt(m,q,te)}function ni(m,w,I,N,q){for(var K=0,te=new Array(S),oe=0;I!==0;oe++,I>>>=1)te[oe]=I&1?w[K++]:void 0;return te[N]=q,new rr(m,K+1,te)}function Ln(m,w,I){for(var N=[],q=0;q<I.length;q++){var K=I[q],te=s(K);u(K)||(te=te.map(function(oe){return Si(oe)})),N.push(te)}return Cf(m,w,N)}function Af(m,w,I){return m&&m.mergeDeep&&u(w)?m.mergeDeep(w):Pt(m,w)?m:w}function Of(m){return function(w,I,N){if(w&&w.mergeDeepWith&&u(I))return w.mergeDeepWith(m,I);var q=m(w,I,N);return Pt(w,q)?w:q}}function Cf(m,w,I){return I=I.filter(function(N){return N.size!==0}),I.length===0?m:m.size===0&&!m.__ownerID&&I.length===1?m.constructor(I[0]):m.withMutations(function(N){for(var q=w?function(te,oe){N.update(oe,_,function(ye){return ye===_?te:w(ye,te,oe)})}:function(te,oe){N.set(oe,te)},K=0;K<I.length;K++)I[K].forEach(q)})}function Rf(m,w,I,N){var q=m===_,K=w.next();if(K.done){var te=q?I:m,oe=N(te);return oe===te?m:oe}Ee(q||m&&m.set,"invalid keyPath");var ye=K.value,be=q?_:m.get(ye,_),xe=Rf(be,w,I,N);return xe===be?m:xe===_?m.remove(ye):(q?qe():m).set(ye,xe)}function Ra(m){return m=m-(m>>1&1431655765),m=(m&858993459)+(m>>2&858993459),m=m+(m>>4)&252645135,m=m+(m>>8),m=m+(m>>16),m&127}function Du(m,w,I,N){var q=N?m:k(m);return q[w]=I,q}function Ys(m,w,I,N){var q=m.length+1;if(N&&w+1===q)return m[w]=I,m;for(var K=new Array(q),te=0,oe=0;oe<q;oe++)oe===w?(K[oe]=I,te=-1):K[oe]=m[oe+te];return K}function Fm(m,w,I){var N=m.length-1;if(I&&w===N)return m.pop(),m;for(var q=new Array(N),K=0,te=0;te<N;te++)te===w&&(K=1),q[te]=m[te+K];return q}var qu=S/4,gt=S/2,Tf=S/4;n(ft,Lt);function ft(m){var w=Tt();if(m==null)return w;if(fr(m))return m;var I=a(m),N=I.size;return N===0?w:(kr(N),N>0&&N<S?Xe(0,N,b,null,new ii(I.toArray())):w.withMutations(function(q){q.setSize(N),I.forEach(function(K,te){return q.set(te,K)})}))}ft.of=function(){return this(arguments)},ft.prototype.toString=function(){return this.__toString("List [","]")},ft.prototype.get=function(m,w){if(m=P(this,m),m>=0&&m<this.size){m+=this._origin;var I=SR(this,m);return I&&I.array[m&x]}return w},ft.prototype.set=function(m,w){return Qr(this,m,w)},ft.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},ft.prototype.insert=function(m,w){return this.splice(m,0,w)},ft.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=b,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Tt()},ft.prototype.push=function(){var m=arguments,w=this.size;return this.withMutations(function(I){Qs(I,0,w+m.length);for(var N=0;N<m.length;N++)I.set(w+N,m[N])})},ft.prototype.pop=function(){return Qs(this,0,-1)},ft.prototype.unshift=function(){var m=arguments;return this.withMutations(function(w){Qs(w,-m.length);for(var I=0;I<m.length;I++)w.set(I,m[I])})},ft.prototype.shift=function(){return Qs(this,1)},ft.prototype.merge=function(){return If(this,void 0,arguments)},ft.prototype.mergeWith=function(m){var w=r.call(arguments,1);return If(this,m,w)},ft.prototype.mergeDeep=function(){return If(this,Af,arguments)},ft.prototype.mergeDeepWith=function(m){var w=r.call(arguments,1);return If(this,Of(m),w)},ft.prototype.setSize=function(m){return Qs(this,0,m)},ft.prototype.slice=function(m,w){var I=this.size;return Z(m,w,I)?this:Qs(this,V(m,I),G(w,I))},ft.prototype.__iterator=function(m,w){var I=0,N=He(this,w);return new X(function(){var q=N();return q===bs?F():B(m,I++,q)})},ft.prototype.__iterate=function(m,w){for(var I=0,N=He(this,w),q;(q=N())!==bs&&m(q,I++,this)!==!1;);return I},ft.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Xe(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function fr(m){return!!(m&&m[Ta])}ft.isList=fr;var Ta="@@__IMMUTABLE_LIST__@@",hr=ft.prototype;hr[Ta]=!0,hr[E]=hr.remove,hr.setIn=_e.setIn,hr.deleteIn=hr.removeIn=_e.removeIn,hr.update=_e.update,hr.updateIn=_e.updateIn,hr.mergeIn=_e.mergeIn,hr.mergeDeepIn=_e.mergeDeepIn,hr.withMutations=_e.withMutations,hr.asMutable=_e.asMutable,hr.asImmutable=_e.asImmutable,hr.wasAltered=_e.wasAltered;function ii(m,w){this.array=m,this.ownerID=w}ii.prototype.removeBefore=function(m,w,I){if(I===w?1<<w:this.array.length===0)return this;var N=I>>>w&x;if(N>=this.array.length)return new ii([],m);var q=N===0,K;if(w>0){var te=this.array[N];if(K=te&&te.removeBefore(m,w-b,I),K===te&&q)return this}if(q&&!K)return this;var oe=Zs(this,m);if(!q)for(var ye=0;ye<N;ye++)oe.array[ye]=void 0;return K&&(oe.array[N]=K),oe},ii.prototype.removeAfter=function(m,w,I){if(I===(w?1<<w:0)||this.array.length===0)return this;var N=I-1>>>w&x;if(N>=this.array.length)return this;var q;if(w>0){var K=this.array[N];if(q=K&&K.removeAfter(m,w-b,I),q===K&&N===this.array.length-1)return this}var te=Zs(this,m);return te.array.splice(N+1),q&&(te.array[N]=q),te};var bs={};function He(m,w){var I=m._origin,N=m._capacity,q=$u(N),K=m._tail;return te(m._root,m._level,0);function te(be,xe,$e){return xe===0?oe(be,$e):ye(be,xe,$e)}function oe(be,xe){var $e=xe===q?K&&K.array:be&&be.array,ze=xe>I?0:I-xe,ut=N-xe;return ut>S&&(ut=S),function(){if(ze===ut)return bs;var bt=w?--ut:ze++;return $e&&$e[bt]}}function ye(be,xe,$e){var ze,ut=be&&be.array,bt=$e>I?0:I-$e>>xe,ur=(N-$e>>xe)+1;return ur>S&&(ur=S),function(){do{if(ze){var xi=ze();if(xi!==bs)return xi;ze=null}if(bt===ur)return bs;var Ki=w?--ur:bt++;ze=te(ut&&ut[Ki],xe-b,$e+(Ki<<xe))}while(!0)}}}function Xe(m,w,I,N,q,K,te){var oe=Object.create(hr);return oe.size=w-m,oe._origin=m,oe._capacity=w,oe._level=I,oe._root=N,oe._tail=q,oe.__ownerID=K,oe.__hash=te,oe.__altered=!1,oe}var ht;function Tt(){return ht||(ht=Xe(0,0,b))}function Qr(m,w,I){if(w=P(m,w),w!==w)return m;if(w>=m.size||w<0)return m.withMutations(function(te){w<0?Qs(te,w).set(0,I):Qs(te,0,w+1).set(w,I)});w+=m._origin;var N=m._tail,q=m._root,K=R(C);return w>=$u(m._capacity)?N=Xs(N,m.__ownerID,0,w,I,K):q=Xs(q,m.__ownerID,m._level,w,I,K),K.value?m.__ownerID?(m._root=q,m._tail=N,m.__hash=void 0,m.__altered=!0,m):Xe(m._origin,m._capacity,m._level,q,N):m}function Xs(m,w,I,N,q,K){var te=N>>>I&x,oe=m&&te<m.array.length;if(!oe&&q===void 0)return m;var ye;if(I>0){var be=m&&m.array[te],xe=Xs(be,w,I-b,N,q,K);return xe===be?m:(ye=Zs(m,w),ye.array[te]=xe,ye)}return oe&&m.array[te]===q?m:(O(K),ye=Zs(m,w),q===void 0&&te===ye.array.length-1?ye.array.pop():ye.array[te]=q,ye)}function Zs(m,w){return w&&m&&w===m.ownerID?m:new ii(m?m.array.slice():[],w)}function SR(m,w){if(w>=$u(m._capacity))return m._tail;if(w<1<<m._level+b){for(var I=m._root,N=m._level;I&&N>0;)I=I.array[w>>>N&x],N-=b;return I}}function Qs(m,w,I){w!==void 0&&(w=w|0),I!==void 0&&(I=I|0);var N=m.__ownerID||new M,q=m._origin,K=m._capacity,te=q+w,oe=I===void 0?K:I<0?K+I:q+I;if(te===q&&oe===K)return m;if(te>=oe)return m.clear();for(var ye=m._level,be=m._root,xe=0;te+xe<0;)be=new ii(be&&be.array.length?[void 0,be]:[],N),ye+=b,xe+=1<<ye;xe&&(te+=xe,q+=xe,oe+=xe,K+=xe);for(var $e=$u(K),ze=$u(oe);ze>=1<<ye+b;)be=new ii(be&&be.array.length?[be]:[],N),ye+=b;var ut=m._tail,bt=ze<$e?SR(m,oe-1):ze>$e?new ii([],N):ut;if(ut&&ze>$e&&te<K&&ut.array.length){be=Zs(be,N);for(var ur=be,xi=ye;xi>b;xi-=b){var Ki=$e>>>xi&x;ur=ur.array[Ki]=Zs(ur.array[Ki],N)}ur.array[$e>>>b&x]=ut}if(oe<K&&(bt=bt&&bt.removeAfter(N,0,oe)),te>=ze)te-=ze,oe-=ze,ye=b,be=null,bt=bt&&bt.removeBefore(N,0,te);else if(te>q||ze<$e){for(xe=0;be;){var qf=te>>>ye&x;if(qf!==ze>>>ye&x)break;qf&&(xe+=(1<<ye)*qf),ye-=b,be=be.array[qf]}be&&te>q&&(be=be.removeBefore(N,ye,te-xe)),be&&ze<$e&&(be=be.removeAfter(N,ye,ze-xe)),xe&&(te-=xe,oe-=xe)}return m.__ownerID?(m.size=oe-te,m._origin=te,m._capacity=oe,m._level=ye,m._root=be,m._tail=bt,m.__hash=void 0,m.__altered=!0,m):Xe(te,oe,ye,be,bt)}function If(m,w,I){for(var N=[],q=0,K=0;K<I.length;K++){var te=I[K],oe=a(te);oe.size>q&&(q=oe.size),u(te)||(oe=oe.map(function(ye){return Si(ye)})),N.push(oe)}return q>m.size&&(m=m.setSize(q)),Cf(m,w,N)}function $u(m){return m<S?0:m-1>>>b<<b}n(Er,vt);function Er(m){return m==null?jf():wR(m)?m:jf().withMutations(function(w){var I=s(m);kr(I.size),I.forEach(function(N,q){return w.set(q,N)})})}Er.of=function(){return this(arguments)},Er.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Er.prototype.get=function(m,w){var I=this._map.get(m);return I!==void 0?this._list.get(I)[1]:w},Er.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):jf()},Er.prototype.set=function(m,w){return AR(this,m,w)},Er.prototype.remove=function(m){return AR(this,m,_)},Er.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Er.prototype.__iterate=function(m,w){var I=this;return this._list.__iterate(function(N){return N&&m(N[1],N[0],I)},w)},Er.prototype.__iterator=function(m,w){return this._list.fromEntrySeq().__iterator(m,w)},Er.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var w=this._map.__ensureOwner(m),I=this._list.__ensureOwner(m);return m?Lm(w,I,m,this.__hash):(this.__ownerID=m,this._map=w,this._list=I,this)};function wR(m){return Ke(m)&&h(m)}Er.isOrderedMap=wR,Er.prototype[v]=!0,Er.prototype[E]=Er.prototype.remove;function Lm(m,w,I,N){var q=Object.create(Er.prototype);return q.size=m?m.size:0,q._map=m,q._list=w,q.__ownerID=I,q.__hash=N,q}var xR;function jf(){return xR||(xR=Lm(qe(),Tt()))}function AR(m,w,I){var N=m._map,q=m._list,K=N.get(w),te=K!==void 0,oe,ye;if(I===_){if(!te)return m;q.size>=S&&q.size>=N.size*2?(ye=q.filter(function(be,xe){return be!==void 0&&K!==xe}),oe=ye.toKeyedSeq().map(function(be){return be[0]}).flip().toMap(),m.__ownerID&&(oe.__ownerID=ye.__ownerID=m.__ownerID)):(oe=N.remove(w),ye=K===q.size-1?q.pop():q.set(K,void 0))}else if(te){if(I===q.get(K)[1])return m;oe=N,ye=q.set(K,[w,I])}else oe=N.set(w,q.size),ye=q.set(q.size,[w,I]);return m.__ownerID?(m.size=oe.size,m._map=oe,m._list=ye,m.__hash=void 0,m):Lm(oe,ye)}n(si,We);function si(m,w){this._iter=m,this._useKeys=w,this.size=m.size}si.prototype.get=function(m,w){return this._iter.get(m,w)},si.prototype.has=function(m){return this._iter.has(m)},si.prototype.valueSeq=function(){return this._iter.valueSeq()},si.prototype.reverse=function(){var m=this,w=Bm(this,!0);return this._useKeys||(w.valueSeq=function(){return m._iter.toSeq().reverse()}),w},si.prototype.map=function(m,w){var I=this,N=CR(this,m,w);return this._useKeys||(N.valueSeq=function(){return I._iter.toSeq().map(m,w)}),N},si.prototype.__iterate=function(m,w){var I=this,N;return this._iter.__iterate(this._useKeys?function(q,K){return m(q,K,I)}:(N=w?PR(this):0,function(q){return m(q,w?--N:N++,I)}),w)},si.prototype.__iterator=function(m,w){if(this._useKeys)return this._iter.__iterator(m,w);var I=this._iter.__iterator(L,w),N=w?PR(this):0;return new X(function(){var q=I.next();return q.done?q:B(m,w?--N:N++,q.value,q)})},si.prototype[v]=!0,n(wo,he);function wo(m){this._iter=m,this.size=m.size}wo.prototype.includes=function(m){return this._iter.includes(m)},wo.prototype.__iterate=function(m,w){var I=this,N=0;return this._iter.__iterate(function(q){return m(q,N++,I)},w)},wo.prototype.__iterator=function(m,w){var I=this._iter.__iterator(L,w),N=0;return new X(function(){var q=I.next();return q.done?q:B(m,N++,q.value,q)})},n(xo,ve);function xo(m){this._iter=m,this.size=m.size}xo.prototype.has=function(m){return this._iter.includes(m)},xo.prototype.__iterate=function(m,w){var I=this;return this._iter.__iterate(function(N){return m(N,N,I)},w)},xo.prototype.__iterator=function(m,w){var I=this._iter.__iterator(L,w);return new X(function(){var N=I.next();return N.done?N:B(m,N.value,N.value,N)})},n(Ao,We);function Ao(m){this._iter=m,this.size=m.size}Ao.prototype.entrySeq=function(){return this._iter.toSeq()},Ao.prototype.__iterate=function(m,w){var I=this;return this._iter.__iterate(function(N){if(N){kR(N);var q=u(N);return m(q?N.get(1):N[1],q?N.get(0):N[0],I)}},w)},Ao.prototype.__iterator=function(m,w){var I=this._iter.__iterator(L,w);return new X(function(){for(;;){var N=I.next();if(N.done)return N;var q=N.value;if(q){kR(q);var K=u(q);return B(m,K?q.get(0):q[0],K?q.get(1):q[1],N)}}})},wo.prototype.cacheResult=si.prototype.cacheResult=xo.prototype.cacheResult=Ao.prototype.cacheResult=zm;function OR(m){var w=zi(m);return w._iter=m,w.size=m.size,w.flip=function(){return m},w.reverse=function(){var I=m.reverse.apply(this);return I.flip=function(){return m.reverse()},I},w.has=function(I){return m.includes(I)},w.includes=function(I){return m.has(I)},w.cacheResult=zm,w.__iterateUncached=function(I,N){var q=this;return m.__iterate(function(K,te){return I(te,K,q)!==!1},N)},w.__iteratorUncached=function(I,N){if(I===J){var q=m.__iterator(I,N);return new X(function(){var K=q.next();if(!K.done){var te=K.value[0];K.value[0]=K.value[1],K.value[1]=te}return K})}return m.__iterator(I===L?Y:L,N)},w}function CR(m,w,I){var N=zi(m);return N.size=m.size,N.has=function(q){return m.has(q)},N.get=function(q,K){var te=m.get(q,_);return te===_?K:w.call(I,te,q,m)},N.__iterateUncached=function(q,K){var te=this;return m.__iterate(function(oe,ye,be){return q(w.call(I,oe,ye,be),ye,te)!==!1},K)},N.__iteratorUncached=function(q,K){var te=m.__iterator(J,K);return new X(function(){var oe=te.next();if(oe.done)return oe;var ye=oe.value,be=ye[0];return B(q,be,w.call(I,ye[1],be,m),oe)})},N}function Bm(m,w){var I=zi(m);return I._iter=m,I.size=m.size,I.reverse=function(){return m},m.flip&&(I.flip=function(){var N=OR(m);return N.reverse=function(){return m.flip()},N}),I.get=function(N,q){return m.get(w?N:-1-N,q)},I.has=function(N){return m.has(w?N:-1-N)},I.includes=function(N){return m.includes(N)},I.cacheResult=zm,I.__iterate=function(N,q){var K=this;return m.__iterate(function(te,oe){return N(te,oe,K)},!q)},I.__iterator=function(N,q){return m.__iterator(N,!q)},I}function RR(m,w,I,N){var q=zi(m);return N&&(q.has=function(K){var te=m.get(K,_);return te!==_&&!!w.call(I,te,K,m)},q.get=function(K,te){var oe=m.get(K,_);return oe!==_&&w.call(I,oe,K,m)?oe:te}),q.__iterateUncached=function(K,te){var oe=this,ye=0;return m.__iterate(function(be,xe,$e){if(w.call(I,be,xe,$e))return ye++,K(be,N?xe:ye-1,oe)},te),ye},q.__iteratorUncached=function(K,te){var oe=m.__iterator(J,te),ye=0;return new X(function(){for(;;){var be=oe.next();if(be.done)return be;var xe=be.value,$e=xe[0],ze=xe[1];if(w.call(I,ze,$e,m))return B(K,N?$e:ye++,ze,be)}})},q}function Ez(m,w,I){var N=vt().asMutable();return m.__iterate(function(q,K){N.update(w.call(I,q,K,m),0,function(te){return te+1})}),N.asImmutable()}function Sz(m,w,I){var N=c(m),q=(h(m)?Er():vt()).asMutable();m.__iterate(function(te,oe){q.update(w.call(I,te,oe,m),function(ye){return ye=ye||[],ye.push(N?[oe,te]:te),ye})});var K=NR(m);return q.map(function(te){return Jt(m,K(te))})}function Um(m,w,I,N){var q=m.size;if(w!==void 0&&(w=w|0),I!==void 0&&(I===1/0?I=q:I=I|0),Z(w,I,q))return m;var K=V(w,q),te=G(I,q);if(K!==K||te!==te)return Um(m.toSeq().cacheResult(),w,I,N);var oe=te-K,ye;oe===oe&&(ye=oe<0?0:oe);var be=zi(m);return be.size=ye===0?ye:m.size&&ye||void 0,!N&&re(m)&&ye>=0&&(be.get=function(xe,$e){return xe=P(this,xe),xe>=0&&xe<ye?m.get(xe+K,$e):$e}),be.__iterateUncached=function(xe,$e){var ze=this;if(ye===0)return 0;if($e)return this.cacheResult().__iterate(xe,$e);var ut=0,bt=!0,ur=0;return m.__iterate(function(xi,Ki){if(!(bt&&(bt=ut++<K)))return ur++,xe(xi,N?Ki:ur-1,ze)!==!1&&ur!==ye}),ur},be.__iteratorUncached=function(xe,$e){if(ye!==0&&$e)return this.cacheResult().__iterator(xe,$e);var ze=ye!==0&&m.__iterator(xe,$e),ut=0,bt=0;return new X(function(){for(;ut++<K;)ze.next();if(++bt>ye)return F();var ur=ze.next();return N||xe===L?ur:xe===Y?B(xe,bt-1,void 0,ur):B(xe,bt-1,ur.value[1],ur)})},be}function wz(m,w,I){var N=zi(m);return N.__iterateUncached=function(q,K){var te=this;if(K)return this.cacheResult().__iterate(q,K);var oe=0;return m.__iterate(function(ye,be,xe){return w.call(I,ye,be,xe)&&++oe&&q(ye,be,te)}),oe},N.__iteratorUncached=function(q,K){var te=this;if(K)return this.cacheResult().__iterator(q,K);var oe=m.__iterator(J,K),ye=!0;return new X(function(){if(!ye)return F();var be=oe.next();if(be.done)return be;var xe=be.value,$e=xe[0],ze=xe[1];return w.call(I,ze,$e,te)?q===J?be:B(q,$e,ze,be):(ye=!1,F())})},N}function TR(m,w,I,N){var q=zi(m);return q.__iterateUncached=function(K,te){var oe=this;if(te)return this.cacheResult().__iterate(K,te);var ye=!0,be=0;return m.__iterate(function(xe,$e,ze){if(!(ye&&(ye=w.call(I,xe,$e,ze))))return be++,K(xe,N?$e:be-1,oe)}),be},q.__iteratorUncached=function(K,te){var oe=this;if(te)return this.cacheResult().__iterator(K,te);var ye=m.__iterator(J,te),be=!0,xe=0;return new X(function(){var $e,ze,ut;do{if($e=ye.next(),$e.done)return N||K===L?$e:K===Y?B(K,xe++,void 0,$e):B(K,xe++,$e.value[1],$e);var bt=$e.value;ze=bt[0],ut=bt[1],be&&(be=w.call(I,ut,ze,oe))}while(be);return K===J?$e:B(K,ze,ut,$e)})},q}function xz(m,w){var I=c(m),N=[m].concat(w).map(function(te){return u(te)?I&&(te=s(te)):te=I?Ie(te):Je(Array.isArray(te)?te:[te]),te}).filter(function(te){return te.size!==0});if(N.length===0)return m;if(N.length===1){var q=N[0];if(q===m||I&&c(q)||l(m)&&l(q))return q}var K=new $(N);return I?K=K.toKeyedSeq():l(m)||(K=K.toSetSeq()),K=K.flatten(!0),K.size=N.reduce(function(te,oe){if(te!==void 0){var ye=oe.size;if(ye!==void 0)return te+ye}},0),K}function IR(m,w,I){var N=zi(m);return N.__iterateUncached=function(q,K){var te=0,oe=!1;function ye(be,xe){var $e=this;be.__iterate(function(ze,ut){return(!w||xe<w)&&u(ze)?ye(ze,xe+1):q(ze,I?ut:te++,$e)===!1&&(oe=!0),!oe},K)}return ye(m,0),te},N.__iteratorUncached=function(q,K){var te=m.__iterator(q,K),oe=[],ye=0;return new X(function(){for(;te;){var be=te.next();if(be.done!==!1){te=oe.pop();continue}var xe=be.value;if(q===J&&(xe=xe[1]),(!w||oe.length<w)&&u(xe))oe.push(te),te=xe.__iterator(q,K);else return I?be:B(q,ye++,xe,be)}return F()})},N}function Az(m,w,I){var N=NR(m);return m.toSeq().map(function(q,K){return N(w.call(I,q,K,m))}).flatten(!0)}function Oz(m,w){var I=zi(m);return I.size=m.size&&m.size*2-1,I.__iterateUncached=function(N,q){var K=this,te=0;return m.__iterate(function(oe,ye){return(!te||N(w,te++,K)!==!1)&&N(oe,te++,K)!==!1},q),te},I.__iteratorUncached=function(N,q){var K=m.__iterator(L,q),te=0,oe;return new X(function(){return(!oe||te%2)&&(oe=K.next(),oe.done)?oe:te%2?B(N,te++,w):B(N,te++,oe.value,oe)})},I}function Oo(m,w,I){w||(w=MR);var N=c(m),q=0,K=m.toSeq().map(function(te,oe){return[oe,te,q++,I?I(te,oe,m):te]}).toArray();return K.sort(function(te,oe){return w(te[3],oe[3])||te[2]-oe[2]}).forEach(N?function(te,oe){K[oe].length=2}:function(te,oe){K[oe]=te[1]}),N?We(K):l(m)?he(K):ve(K)}function kf(m,w,I){if(w||(w=MR),I){var N=m.toSeq().map(function(q,K){return[q,I(q,K,m)]}).reduce(function(q,K){return jR(w,q[1],K[1])?K:q});return N&&N[0]}else return m.reduce(function(q,K){return jR(w,q,K)?K:q})}function jR(m,w,I){var N=m(I,w);return N===0&&I!==w&&(I==null||I!==I)||N>0}function Vm(m,w,I){var N=zi(m);return N.size=new $(I).map(function(q){return q.size}).min(),N.__iterate=function(q,K){for(var te=this.__iterator(L,K),oe,ye=0;!(oe=te.next()).done&&q(oe.value,ye++,this)!==!1;);return ye},N.__iteratorUncached=function(q,K){var te=I.map(function(be){return be=i(be),Ae(K?be.reverse():be)}),oe=0,ye=!1;return new X(function(){var be;return ye||(be=te.map(function(xe){return xe.next()}),ye=be.some(function(xe){return xe.done})),ye?F():B(q,oe++,w.apply(null,be.map(function(xe){return xe.value})))})},N}function Jt(m,w){return re(m)?w:m.constructor(w)}function kR(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function PR(m){return kr(m.size),D(m)}function NR(m){return c(m)?s:l(m)?a:o}function zi(m){return Object.create((c(m)?We:l(m)?he:ve).prototype)}function zm(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Oe.prototype.cacheResult.call(this)}function MR(m,w){return m>w?1:m<w?-1:0}function DR(m){var w=Ae(m);if(!w){if(!pe(m))throw new TypeError("Expected iterable or array-like: "+m);w=Ae(i(m))}return w}n(Bn,mt);function Bn(m,w){var I,N=function(te){if(te instanceof N)return te;if(!(this instanceof N))return new N(te);if(!I){I=!0;var oe=Object.keys(m);Cz(q,oe),q.size=oe.length,q._name=w,q._keys=oe,q._defaultValues=m}this._map=vt(te)},q=N.prototype=Object.create(Br);return q.constructor=N,N}Bn.prototype.toString=function(){return this.__toString(qR(this)+" {","}")},Bn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},Bn.prototype.get=function(m,w){if(!this.has(m))return w;var I=this._defaultValues[m];return this._map?this._map.get(m,I):I},Bn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Pf(this,qe()))},Bn.prototype.set=function(m,w){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+qR(this));if(this._map&&!this._map.has(m)){var I=this._defaultValues[m];if(w===I)return this}var N=this._map&&this._map.set(m,w);return this.__ownerID||N===this._map?this:Pf(this,N)},Bn.prototype.remove=function(m){if(!this.has(m))return this;var w=this._map&&this._map.remove(m);return this.__ownerID||w===this._map?this:Pf(this,w)},Bn.prototype.wasAltered=function(){return this._map.wasAltered()},Bn.prototype.__iterator=function(m,w){var I=this;return s(this._defaultValues).map(function(N,q){return I.get(q)}).__iterator(m,w)},Bn.prototype.__iterate=function(m,w){var I=this;return s(this._defaultValues).map(function(N,q){return I.get(q)}).__iterate(m,w)},Bn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var w=this._map&&this._map.__ensureOwner(m);return m?Pf(this,w,m):(this.__ownerID=m,this._map=w,this)};var Br=Bn.prototype;Br[E]=Br.remove,Br.deleteIn=Br.removeIn=_e.removeIn,Br.merge=_e.merge,Br.mergeWith=_e.mergeWith,Br.mergeIn=_e.mergeIn,Br.mergeDeep=_e.mergeDeep,Br.mergeDeepWith=_e.mergeDeepWith,Br.mergeDeepIn=_e.mergeDeepIn,Br.setIn=_e.setIn,Br.update=_e.update,Br.updateIn=_e.updateIn,Br.withMutations=_e.withMutations,Br.asMutable=_e.asMutable,Br.asImmutable=_e.asImmutable;function Pf(m,w,I){var N=Object.create(Object.getPrototypeOf(m));return N._map=w,N.__ownerID=I,N}function qR(m){return m._name||m.constructor.name||"Record"}function Cz(m,w){try{w.forEach(Rz.bind(void 0,m))}catch{}}function Rz(m,w){Object.defineProperty(m,w,{get:function(){return this.get(w)},set:function(I){Ee(this.__ownerID,"Cannot set on an immutable record."),this.set(w,I)}})}n(or,Te);function or(m){return m==null?Km():Wm(m)&&!h(m)?m:Km().withMutations(function(w){var I=o(m);kr(I.size),I.forEach(function(N){return w.add(N)})})}or.of=function(){return this(arguments)},or.fromKeys=function(m){return this(s(m).keySeq())},or.prototype.toString=function(){return this.__toString("Set {","}")},or.prototype.has=function(m){return this._map.has(m)},or.prototype.add=function(m){return Jm(this,this._map.set(m,!0))},or.prototype.remove=function(m){return Jm(this,this._map.remove(m))},or.prototype.clear=function(){return Jm(this,this._map.clear())},or.prototype.union=function(){var m=r.call(arguments,0);return m=m.filter(function(w){return w.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(w){for(var I=0;I<m.length;I++)o(m[I]).forEach(function(N){return w.add(N)})})},or.prototype.intersect=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return o(I)});var w=this;return this.withMutations(function(I){w.forEach(function(N){m.every(function(q){return q.includes(N)})||I.remove(N)})})},or.prototype.subtract=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return o(I)});var w=this;return this.withMutations(function(I){w.forEach(function(N){m.some(function(q){return q.includes(N)})&&I.remove(N)})})},or.prototype.merge=function(){return this.union.apply(this,arguments)},or.prototype.mergeWith=function(m){var w=r.call(arguments,1);return this.union.apply(this,w)},or.prototype.sort=function(m){return Wi(Oo(this,m))},or.prototype.sortBy=function(m,w){return Wi(Oo(this,w,m))},or.prototype.wasAltered=function(){return this._map.wasAltered()},or.prototype.__iterate=function(m,w){var I=this;return this._map.__iterate(function(N,q){return m(q,q,I)},w)},or.prototype.__iterator=function(m,w){return this._map.map(function(I,N){return N}).__iterator(m,w)},or.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var w=this._map.__ensureOwner(m);return m?this.__make(w,m):(this.__ownerID=m,this._map=w,this)};function Wm(m){return!!(m&&m[$R])}or.isSet=Wm;var $R="@@__IMMUTABLE_SET__@@",Un=or.prototype;Un[$R]=!0,Un[E]=Un.remove,Un.mergeDeep=Un.merge,Un.mergeDeepWith=Un.mergeWith,Un.withMutations=_e.withMutations,Un.asMutable=_e.asMutable,Un.asImmutable=_e.asImmutable,Un.__empty=Km,Un.__make=FR;function Jm(m,w){return m.__ownerID?(m.size=w.size,m._map=w,m):w===m._map?m:w.size===0?m.__empty():m.__make(w)}function FR(m,w){var I=Object.create(Un);return I.size=m?m.size:0,I._map=m,I.__ownerID=w,I}var LR;function Km(){return LR||(LR=FR(qe()))}n(Wi,or);function Wi(m){return m==null?Hm():BR(m)?m:Hm().withMutations(function(w){var I=o(m);kr(I.size),I.forEach(function(N){return w.add(N)})})}Wi.of=function(){return this(arguments)},Wi.fromKeys=function(m){return this(s(m).keySeq())},Wi.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function BR(m){return Wm(m)&&h(m)}Wi.isOrderedSet=BR;var Nf=Wi.prototype;Nf[v]=!0,Nf.__empty=Hm,Nf.__make=UR;function UR(m,w){var I=Object.create(Nf);return I.size=m?m.size:0,I._map=m,I.__ownerID=w,I}var VR;function Hm(){return VR||(VR=UR(jf()))}n(Ar,Lt);function Ar(m){return m==null?Gm():zR(m)?m:Gm().unshiftAll(m)}Ar.of=function(){return this(arguments)},Ar.prototype.toString=function(){return this.__toString("Stack [","]")},Ar.prototype.get=function(m,w){var I=this._head;for(m=P(this,m);I&&m--;)I=I.next;return I?I.value:w},Ar.prototype.peek=function(){return this._head&&this._head.value},Ar.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,w=this._head,I=arguments.length-1;I>=0;I--)w={value:arguments[I],next:w};return this.__ownerID?(this.size=m,this._head=w,this.__hash=void 0,this.__altered=!0,this):Fu(m,w)},Ar.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;kr(m.size);var w=this.size,I=this._head;return m.reverse().forEach(function(N){w++,I={value:N,next:I}}),this.__ownerID?(this.size=w,this._head=I,this.__hash=void 0,this.__altered=!0,this):Fu(w,I)},Ar.prototype.pop=function(){return this.slice(1)},Ar.prototype.unshift=function(){return this.push.apply(this,arguments)},Ar.prototype.unshiftAll=function(m){return this.pushAll(m)},Ar.prototype.shift=function(){return this.pop.apply(this,arguments)},Ar.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gm()},Ar.prototype.slice=function(m,w){if(Z(m,w,this.size))return this;var I=V(m,this.size),N=G(w,this.size);if(N!==this.size)return Lt.prototype.slice.call(this,m,w);for(var q=this.size-I,K=this._head;I--;)K=K.next;return this.__ownerID?(this.size=q,this._head=K,this.__hash=void 0,this.__altered=!0,this):Fu(q,K)},Ar.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Fu(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},Ar.prototype.__iterate=function(m,w){if(w)return this.reverse().__iterate(m);for(var I=0,N=this._head;N&&m(N.value,I++,this)!==!1;)N=N.next;return I},Ar.prototype.__iterator=function(m,w){if(w)return this.reverse().__iterator(m);var I=0,N=this._head;return new X(function(){if(N){var q=N.value;return N=N.next,B(m,I++,q)}return F()})};function zR(m){return!!(m&&m[WR])}Ar.isStack=zR;var WR="@@__IMMUTABLE_STACK__@@",Co=Ar.prototype;Co[WR]=!0,Co.withMutations=_e.withMutations,Co.asMutable=_e.asMutable,Co.asImmutable=_e.asImmutable,Co.wasAltered=_e.wasAltered;function Fu(m,w,I,N){var q=Object.create(Co);return q.size=m,q._head=w,q.__ownerID=I,q.__hash=N,q.__altered=!1,q}var JR;function Gm(){return JR||(JR=Fu(0))}function Ji(m,w){var I=function(N){m.prototype[N]=w[N]};return Object.keys(w).forEach(I),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(w).forEach(I),m}i.Iterator=X,Ji(i,{toArray:function(){kr(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(w,I){m[I]=w}),m},toIndexedSeq:function(){return new wo(this)},toJS:function(){return this.toSeq().map(function(m){return m&&typeof m.toJS=="function"?m.toJS():m}).__toJS()},toJSON:function(){return this.toSeq().map(function(m){return m&&typeof m.toJSON=="function"?m.toJSON():m}).__toJS()},toKeyedSeq:function(){return new si(this,!0)},toMap:function(){return vt(this.toKeyedSeq())},toObject:function(){kr(this.size);var m={};return this.__iterate(function(w,I){m[I]=w}),m},toOrderedMap:function(){return Er(this.toKeyedSeq())},toOrderedSet:function(){return Wi(c(this)?this.valueSeq():this)},toSet:function(){return or(c(this)?this.valueSeq():this)},toSetSeq:function(){return new xo(this)},toSeq:function(){return l(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ar(c(this)?this.valueSeq():this)},toList:function(){return ft(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,w){return this.size===0?m+w:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+w},concat:function(){var m=r.call(arguments,0);return Jt(this,xz(this,m))},includes:function(m){return this.some(function(w){return Pt(w,m)})},entries:function(){return this.__iterator(J)},every:function(m,w){kr(this.size);var I=!0;return this.__iterate(function(N,q,K){if(!m.call(w,N,q,K))return I=!1,!1}),I},filter:function(m,w){return Jt(this,RR(this,m,w,!0))},find:function(m,w,I){var N=this.findEntry(m,w);return N?N[1]:I},forEach:function(m,w){return kr(this.size),this.__iterate(w?m.bind(w):m)},join:function(m){kr(this.size),m=m!==void 0?""+m:",";var w="",I=!0;return this.__iterate(function(N){I?I=!1:w+=m,w+=N!=null?N.toString():""}),w},keys:function(){return this.__iterator(Y)},map:function(m,w){return Jt(this,CR(this,m,w))},reduce:function(m,w,I){kr(this.size);var N,q;return arguments.length<2?q=!0:N=w,this.__iterate(function(K,te,oe){q?(q=!1,N=K):N=m.call(I,N,K,te,oe)}),N},reduceRight:function(m,w,I){var N=this.toKeyedSeq().reverse();return N.reduce.apply(N,arguments)},reverse:function(){return Jt(this,Bm(this,!0))},slice:function(m,w){return Jt(this,Um(this,m,w,!0))},some:function(m,w){return!this.every(Df(m),w)},sort:function(m){return Jt(this,Oo(this,m))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(m,w){return D(m?this.toSeq().filter(m,w):this)},countBy:function(m,w){return Ez(this,m,w)},equals:function(m){return Bs(this,m)},entrySeq:function(){var m=this;if(m._cache)return new $(m._cache);var w=m.toSeq().map(Iz).toIndexedSeq();return w.fromEntrySeq=function(){return m.toSeq()},w},filterNot:function(m,w){return this.filter(Df(m),w)},findEntry:function(m,w,I){var N=I;return this.__iterate(function(q,K,te){if(m.call(w,q,K,te))return N=[K,q],!1}),N},findKey:function(m,w){var I=this.findEntry(m,w);return I&&I[0]},findLast:function(m,w,I){return this.toKeyedSeq().reverse().find(m,w,I)},findLastEntry:function(m,w,I){return this.toKeyedSeq().reverse().findEntry(m,w,I)},findLastKey:function(m,w){return this.toKeyedSeq().reverse().findKey(m,w)},first:function(){return this.find(H)},flatMap:function(m,w){return Jt(this,Az(this,m,w))},flatten:function(m){return Jt(this,IR(this,m,!0))},fromEntrySeq:function(){return new Ao(this)},get:function(m,w){return this.find(function(I,N){return Pt(N,m)},void 0,w)},getIn:function(m,w){for(var I=this,N=DR(m),q;!(q=N.next()).done;){var K=q.value;if(I=I&&I.get?I.get(K,_):_,I===_)return w}return I},groupBy:function(m,w){return Sz(this,m,w)},has:function(m){return this.get(m,_)!==_},hasIn:function(m){return this.getIn(m,_)!==_},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(w){return m.includes(w)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keyOf:function(m){return this.findKey(function(w){return Pt(w,m)})},keySeq:function(){return this.toSeq().map(Tz).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(m){return this.toKeyedSeq().reverse().keyOf(m)},max:function(m){return kf(this,m)},maxBy:function(m,w){return kf(this,w,m)},min:function(m){return kf(this,m?KR(m):GR)},minBy:function(m,w){return kf(this,w?KR(w):GR,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return Jt(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,w){return Jt(this,TR(this,m,w,!0))},skipUntil:function(m,w){return this.skipWhile(Df(m),w)},sortBy:function(m,w){return Jt(this,Oo(this,w,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return Jt(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,w){return Jt(this,wz(this,m,w))},takeUntil:function(m,w){return this.takeWhile(Df(m),w)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=kz(this))}});var ln=i.prototype;ln[d]=!0,ln[ae]=ln.values,ln.__toJS=ln.toArray,ln.__toStringMapper=HR,ln.inspect=ln.toSource=function(){return this.toString()},ln.chain=ln.flatMap,ln.contains=ln.includes,Ji(s,{flip:function(){return Jt(this,OR(this))},mapEntries:function(m,w){var I=this,N=0;return Jt(this,this.toSeq().map(function(q,K){return m.call(w,[K,q],N++,I)}).fromEntrySeq())},mapKeys:function(m,w){var I=this;return Jt(this,this.toSeq().flip().map(function(N,q){return m.call(w,N,q,I)}).flip())}});var Mf=s.prototype;Mf[g]=!0,Mf[ae]=ln.entries,Mf.__toJS=ln.toObject,Mf.__toStringMapper=function(m,w){return JSON.stringify(w)+": "+HR(m)},Ji(a,{toKeyedSeq:function(){return new si(this,!1)},filter:function(m,w){return Jt(this,RR(this,m,w,!1))},findIndex:function(m,w){var I=this.findEntry(m,w);return I?I[0]:-1},indexOf:function(m){var w=this.keyOf(m);return w===void 0?-1:w},lastIndexOf:function(m){var w=this.lastKeyOf(m);return w===void 0?-1:w},reverse:function(){return Jt(this,Bm(this,!1))},slice:function(m,w){return Jt(this,Um(this,m,w,!1))},splice:function(m,w){var I=arguments.length;if(w=Math.max(w|0,0),I===0||I===2&&!w)return this;m=V(m,m<0?this.count():this.size);var N=this.slice(0,m);return Jt(this,I===1?N:N.concat(k(arguments,2),this.slice(m+w)))},findLastIndex:function(m,w){var I=this.findLastEntry(m,w);return I?I[0]:-1},first:function(){return this.get(0)},flatten:function(m){return Jt(this,IR(this,m,!1))},get:function(m,w){return m=P(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?w:this.find(function(I,N){return N===m},void 0,w)},has:function(m){return m=P(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return Jt(this,Oz(this,m))},interleave:function(){var m=[this].concat(k(arguments)),w=Vm(this.toSeq(),he.of,m),I=w.flatten(!0);return w.size&&(I.size=w.size*m.length),Jt(this,I)},keySeq:function(){return Re(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(m,w){return Jt(this,TR(this,m,w,!1))},zip:function(){var m=[this].concat(k(arguments));return Jt(this,Vm(this,jz,m))},zipWith:function(m){var w=k(arguments);return w[0]=this,Jt(this,Vm(this,m,w))}}),a.prototype[y]=!0,a.prototype[v]=!0,Ji(o,{get:function(m,w){return this.has(m)?m:w},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=ln.includes,o.prototype.contains=o.prototype.includes,Ji(We,s.prototype),Ji(he,a.prototype),Ji(ve,o.prototype),Ji(mt,s.prototype),Ji(Lt,a.prototype),Ji(Te,o.prototype);function Tz(m,w){return w}function Iz(m,w){return[w,m]}function Df(m){return function(){return!m.apply(this,arguments)}}function KR(m){return function(){return-m.apply(this,arguments)}}function HR(m){return typeof m=="string"?JSON.stringify(m):String(m)}function jz(){return k(arguments)}function GR(m,w){return m<w?1:m>w?-1:0}function kz(m){if(m.size===1/0)return 0;var w=h(m),I=c(m),N=w?1:0,q=m.__iterate(I?w?function(K,te){N=31*N+YR(Ye(K),Ye(te))|0}:function(K,te){N=N+YR(Ye(K),Ye(te))|0}:w?function(K){N=31*N+Ye(K)|0}:function(K){N=N+Ye(K)|0});return Pz(q,N)}function Pz(m,w){return w=Fe(w,3432918353),w=Fe(w<<15|w>>>-15,461845907),w=Fe(w<<13|w>>>-13,5),w=(w+3864292196|0)^m,w=Fe(w^w>>>16,2246822507),w=Fe(w^w>>>13,3266489909),w=nt(w^w>>>16),w}function YR(m,w){return m^w+2654435769+(m<<6)+(m>>2)|0}var Nz={Iterable:i,Seq:Oe,Collection:at,Map:vt,OrderedMap:Er,List:ft,Stack:Ar,Set:or,OrderedSet:Wi,Record:Bn,Range:Re,Repeat:dr,is:Pt,fromJS:Si};return Nz})}(pp)),pp.exports}var Na=DA();const fW=Be.getDefaultExportFromCjs(Na);var Bu={},Bf={exports:{}},_s={},Uf={exports:{}},gT;function AL(){return gT||(gT=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){return r&&r.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},e.exports=t.default}(Uf,Uf.exports)),Uf.exports}var Vf={exports:{}},yT;function pW(){return yT||(yT=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=DA(),n=a(r),i=AL(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}t.default=function(o,u,c){var l=Object.keys(u);if(!l.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var f=(0,s.default)(c);if(n.default.isImmutable?!n.default.isImmutable(o):!n.default.Iterable.isIterable(o))return"The "+f+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+l.join('", "')+'".';var h=o.toSeq().keySeq().toArray().filter(function(d){return!u.hasOwnProperty(d)});return h.length>0?"Unexpected "+(h.length===1?"property":"properties")+' "'+h.join('", "')+'" found in '+f+'. Expected to find one of the known reducer property names instead: "'+l.join('", "')+'". Unexpected properties will be ignored.':null},e.exports=t.default}(Vf,Vf.exports)),Vf.exports}var zf={exports:{}},vT;function dW(){return vT||(vT=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,n,i){if(r===void 0)throw new Error('Reducer "'+n+'" returned undefined when handling "'+i.type+'" action. To ignore an action, you must explicitly return the previous state.')},e.exports=t.default}(zf,zf.exports)),zf.exports}var bT;function hW(){if(bT)return _s;bT=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.validateNextState=_s.getUnexpectedInvocationParameterMessage=_s.getStateName=void 0;var e=AL(),t=a(e),r=pW(),n=a(r),i=dW(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}return _s.getStateName=t.default,_s.getUnexpectedInvocationParameterMessage=n.default,_s.validateNextState=s.default,_s}var _T;function mW(){return _T||(_T=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=DA(),n=s(r),i=hW();function s(a){return a&&a.__esModule?a:{default:a}}t.default=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.Map,u=Object.keys(a);return function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),l=arguments[1];if(process.env.NODE_ENV!=="production"){var f=(0,i.getUnexpectedInvocationParameterMessage)(c,a,l);f&&console.error(f)}return c.withMutations(function(h){u.forEach(function(d){var g=a[d],y=h.get(d),v=g(y,l);(0,i.validateNextState)(v,d,l),h.set(d,v)})})}},e.exports=t.default}(Bf,Bf.exports)),Bf.exports}var ET;function gW(){if(ET)return Bu;ET=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.combineReducers=void 0;var e=mW(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Bu.combineReducers=t.default,Bu}var yW=gW(),ng,ST;function vW(){if(ST)return ng;ST=1;class e extends Error{constructor(u){super(e._prepareSuperMessage(u)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(u){try{return JSON.stringify(u)}catch{return String(u)}}}const t=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],r=Symbol(".toJSON called"),n=o=>{o[r]=!0;const u=o.toJSON();return delete o[r],u},i=({from:o,seen:u,to_:c,forceEnumerable:l,maxDepth:f,depth:h})=>{const d=c||(Array.isArray(o)?[]:{});if(u.push(o),h>=f)return d;if(typeof o.toJSON=="function"&&o[r]!==!0)return n(o);for(const[g,y]of Object.entries(o)){if(typeof Buffer=="function"&&Buffer.isBuffer(y)){d[g]="[object Buffer]";continue}if(typeof y!="function"){if(!y||typeof y!="object"){d[g]=y;continue}if(!u.includes(o[g])){h++,d[g]=i({from:o[g],seen:u.slice(),forceEnumerable:l,maxDepth:f,depth:h});continue}d[g]="[Circular]"}}for(const{property:g,enumerable:y}of t)typeof o[g]=="string"&&Object.defineProperty(d,g,{value:o[g],enumerable:l?!0:y,configurable:!0,writable:!0});return d};return ng={serializeError:(o,u={})=>{const{maxDepth:c=Number.POSITIVE_INFINITY}=u;return typeof o=="object"&&o!==null?i({from:o,seen:[],forceEnumerable:!0,maxDepth:c,depth:0}):typeof o=="function"?`[Function: ${o.name||"anonymous"}]`:o},deserializeError:(o,u={})=>{const{maxDepth:c=Number.POSITIVE_INFINITY}=u;if(o instanceof Error)return o;if(typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=new Error;return i({from:o,seen:[],to_:l,maxDepth:c,depth:0}),l}return new e(o)}},ng}var bW=vW(),ig,wT;function _W(){if(wT)return ig;wT=1;function e(){this.__data__=[],this.size=0}return ig=e,ig}var sg,xT;function pu(){if(xT)return sg;xT=1;function e(t,r){return t===r||t!==t&&r!==r}return sg=e,sg}var ag,AT;function Yd(){if(AT)return ag;AT=1;var e=pu();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return ag=t,ag}var og,OT;function EW(){if(OT)return og;OT=1;var e=Yd(),t=Array.prototype,r=t.splice;function n(i){var s=this.__data__,a=e(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():r.call(s,a,1),--this.size,!0}return og=n,og}var ug,CT;function SW(){if(CT)return ug;CT=1;var e=Yd();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ug=t,ug}var cg,RT;function wW(){if(RT)return cg;RT=1;var e=Yd();function t(r){return e(this.__data__,r)>-1}return cg=t,cg}var lg,TT;function xW(){if(TT)return lg;TT=1;var e=Yd();function t(r,n){var i=this.__data__,s=e(i,r);return s<0?(++this.size,i.push([r,n])):i[s][1]=n,this}return lg=t,lg}var fg,IT;function Xd(){if(IT)return fg;IT=1;var e=_W(),t=EW(),r=SW(),n=wW(),i=xW();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,fg=s,fg}var pg,jT;function AW(){if(jT)return pg;jT=1;var e=Xd();function t(){this.__data__=new e,this.size=0}return pg=t,pg}var dg,kT;function OW(){if(kT)return dg;kT=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return dg=e,dg}var hg,PT;function CW(){if(PT)return hg;PT=1;function e(t){return this.__data__.get(t)}return hg=e,hg}var mg,NT;function RW(){if(NT)return mg;NT=1;function e(t){return this.__data__.has(t)}return mg=e,mg}var gg,MT;function OL(){if(MT)return gg;MT=1;var e=typeof Be.commonjsGlobal=="object"&&Be.commonjsGlobal&&Be.commonjsGlobal.Object===Object&&Be.commonjsGlobal;return gg=e,gg}var yg,DT;function Sn(){if(DT)return yg;DT=1;var e=OL(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return yg=r,yg}var vg,qT;function du(){if(qT)return vg;qT=1;var e=Sn(),t=e.Symbol;return vg=t,vg}var bg,$T;function TW(){if($T)return bg;$T=1;var e=du(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=r.call(a,i),u=a[i];try{a[i]=void 0;var c=!0}catch{}var l=n.call(a);return c&&(o?a[i]=u:delete a[i]),l}return bg=s,bg}var _g,FT;function IW(){if(FT)return _g;FT=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return _g=r,_g}var Eg,LT;function us(){if(LT)return Eg;LT=1;var e=du(),t=TW(),r=IW(),n="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:n:s&&s in Object(o)?t(o):r(o)}return Eg=a,Eg}var Sg,BT;function wn(){if(BT)return Sg;BT=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Sg=e,Sg}var wg,UT;function Yc(){if(UT)return wg;UT=1;var e=us(),t=wn(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var u=e(o);return u==n||u==i||u==r||u==s}return wg=a,wg}var xg,VT;function jW(){if(VT)return xg;VT=1;var e=Sn(),t=e["__core-js_shared__"];return xg=t,xg}var Ag,zT;function kW(){if(zT)return Ag;zT=1;var e=jW(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return Ag=r,Ag}var Og,WT;function CL(){if(WT)return Og;WT=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Og=r,Og}var Cg,JT;function PW(){if(JT)return Cg;JT=1;var e=Yc(),t=kW(),r=wn(),n=CL(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,u=a.toString,c=o.hasOwnProperty,l=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var d=e(h)?l:s;return d.test(n(h))}return Cg=f,Cg}var Rg,KT;function NW(){if(KT)return Rg;KT=1;function e(t,r){return t==null?void 0:t[r]}return Rg=e,Rg}var Tg,HT;function Qa(){if(HT)return Tg;HT=1;var e=PW(),t=NW();function r(n,i){var s=t(n,i);return e(s)?s:void 0}return Tg=r,Tg}var Ig,GT;function qA(){if(GT)return Ig;GT=1;var e=Qa(),t=Sn(),r=e(t,"Map");return Ig=r,Ig}var jg,YT;function Zd(){if(YT)return jg;YT=1;var e=Qa(),t=e(Object,"create");return jg=t,jg}var kg,XT;function MW(){if(XT)return kg;XT=1;var e=Zd();function t(){this.__data__=e?e(null):{},this.size=0}return kg=t,kg}var Pg,ZT;function DW(){if(ZT)return Pg;ZT=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Pg=e,Pg}var Ng,QT;function qW(){if(QT)return Ng;QT=1;var e=Zd(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return n.call(a,s)?a[s]:void 0}return Ng=i,Ng}var Mg,eI;function $W(){if(eI)return Mg;eI=1;var e=Zd(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var s=this.__data__;return e?s[i]!==void 0:r.call(s,i)}return Mg=n,Mg}var Dg,tI;function FW(){if(tI)return Dg;tI=1;var e=Zd(),t="__lodash_hash_undefined__";function r(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&i===void 0?t:i,this}return Dg=r,Dg}var qg,rI;function LW(){if(rI)return qg;rI=1;var e=MW(),t=DW(),r=qW(),n=$W(),i=FW();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,qg=s,qg}var $g,nI;function BW(){if(nI)return $g;nI=1;var e=LW(),t=Xd(),r=qA();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return $g=n,$g}var Fg,iI;function UW(){if(iI)return Fg;iI=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Fg=e,Fg}var Lg,sI;function Qd(){if(sI)return Lg;sI=1;var e=UW();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Lg=t,Lg}var Bg,aI;function VW(){if(aI)return Bg;aI=1;var e=Qd();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Bg=t,Bg}var Ug,oI;function zW(){if(oI)return Ug;oI=1;var e=Qd();function t(r){return e(this,r).get(r)}return Ug=t,Ug}var Vg,uI;function WW(){if(uI)return Vg;uI=1;var e=Qd();function t(r){return e(this,r).has(r)}return Vg=t,Vg}var zg,cI;function JW(){if(cI)return zg;cI=1;var e=Qd();function t(r,n){var i=e(this,r),s=i.size;return i.set(r,n),this.size+=i.size==s?0:1,this}return zg=t,zg}var Wg,lI;function $A(){if(lI)return Wg;lI=1;var e=BW(),t=VW(),r=zW(),n=WW(),i=JW();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Wg=s,Wg}var Jg,fI;function KW(){if(fI)return Jg;fI=1;var e=Xd(),t=qA(),r=$A(),n=200;function i(s,a){var o=this.__data__;if(o instanceof e){var u=o.__data__;if(!t||u.length<n-1)return u.push([s,a]),this.size=++o.size,this;o=this.__data__=new r(u)}return o.set(s,a),this.size=o.size,this}return Jg=i,Jg}var Kg,pI;function eh(){if(pI)return Kg;pI=1;var e=Xd(),t=AW(),r=OW(),n=CW(),i=RW(),s=KW();function a(o){var u=this.__data__=new e(o);this.size=u.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=s,Kg=a,Kg}var Hg,dI;function RL(){if(dI)return Hg;dI=1;var e=Qa(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Hg=t,Hg}var Gg,hI;function FA(){if(hI)return Gg;hI=1;var e=RL();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Gg=t,Gg}var Yg,mI;function TL(){if(mI)return Yg;mI=1;var e=FA(),t=pu();function r(n,i,s){(s!==void 0&&!t(n[i],s)||s===void 0&&!(i in n))&&e(n,i,s)}return Yg=r,Yg}var Xg,gI;function HW(){if(gI)return Xg;gI=1;function e(t){return function(r,n,i){for(var s=-1,a=Object(r),o=i(r),u=o.length;u--;){var c=o[t?u:++s];if(n(a[c],c,a)===!1)break}return r}}return Xg=e,Xg}var Zg,yI;function IL(){if(yI)return Zg;yI=1;var e=HW(),t=e();return Zg=t,Zg}var Qu={exports:{}};Qu.exports;var vI;function jL(){return vI||(vI=1,function(e,t){var r=Sn(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===n,a=s?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var f=c.length,h=o?o(f):new c.constructor(f);return c.copy(h),h}e.exports=u}(Qu,Qu.exports)),Qu.exports}var Qg,bI;function kL(){if(bI)return Qg;bI=1;var e=Sn(),t=e.Uint8Array;return Qg=t,Qg}var ey,_I;function LA(){if(_I)return ey;_I=1;var e=kL();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return ey=t,ey}var ty,EI;function PL(){if(EI)return ty;EI=1;var e=LA();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return ty=t,ty}var ry,SI;function Xc(){if(SI)return ry;SI=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return ry=e,ry}var ny,wI;function th(){if(wI)return ny;wI=1;var e=wn(),t=Object.create,r=function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var s=new n;return n.prototype=void 0,s}}();return ny=r,ny}var iy,xI;function NL(){if(xI)return iy;xI=1;function e(t,r){return function(n){return t(r(n))}}return iy=e,iy}var sy,AI;function BA(){if(AI)return sy;AI=1;var e=NL(),t=e(Object.getPrototypeOf,Object);return sy=t,sy}var ay,OI;function rh(){if(OI)return ay;OI=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ay=t,ay}var oy,CI;function ML(){if(CI)return oy;CI=1;var e=th(),t=BA(),r=rh();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return oy=n,oy}var uy,RI;function xn(){if(RI)return uy;RI=1;function e(t){return t!=null&&typeof t=="object"}return uy=e,uy}var cy,TI;function GW(){if(TI)return cy;TI=1;var e=us(),t=xn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return cy=n,cy}var ly,II;function Zc(){if(II)return ly;II=1;var e=GW(),t=xn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(a){return t(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return ly=s,ly}var fy,jI;function Lr(){if(jI)return fy;jI=1;var e=Array.isArray;return fy=e,fy}var py,kI;function UA(){if(kI)return py;kI=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return py=t,py}var dy,PI;function eo(){if(PI)return dy;PI=1;var e=Yc(),t=UA();function r(n){return n!=null&&t(n.length)&&!e(n)}return dy=r,dy}var hy,NI;function YW(){if(NI)return hy;NI=1;var e=eo(),t=xn();function r(n){return t(n)&&e(n)}return hy=r,hy}var ec={exports:{}},my,MI;function XW(){if(MI)return my;MI=1;function e(){return!1}return my=e,my}ec.exports;var DI;function Qc(){return DI||(DI=1,function(e,t){var r=Sn(),n=XW(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?r.Buffer:void 0,u=o?o.isBuffer:void 0,c=u||n;e.exports=c}(ec,ec.exports)),ec.exports}var gy,qI;function nh(){if(qI)return gy;qI=1;var e=us(),t=BA(),r=xn(),n="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,u=a.call(Object);function c(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var h=o.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==u}return gy=c,gy}var yy,$I;function ZW(){if($I)return yy;$I=1;var e=us(),t=UA(),r=xn(),n="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",u="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",h="[object RegExp]",d="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",S="[object Float64Array]",x="[object Int8Array]",_="[object Int16Array]",A="[object Int32Array]",C="[object Uint8Array]",R="[object Uint8ClampedArray]",O="[object Uint16Array]",M="[object Uint32Array]",k={};k[b]=k[S]=k[x]=k[_]=k[A]=k[C]=k[R]=k[O]=k[M]=!0,k[n]=k[i]=k[v]=k[s]=k[E]=k[a]=k[o]=k[u]=k[c]=k[l]=k[f]=k[h]=k[d]=k[g]=k[y]=!1;function D(P){return r(P)&&t(P.length)&&!!k[e(P)]}return yy=D,yy}var vy,FI;function VA(){if(FI)return vy;FI=1;function e(t){return function(r){return t(r)}}return vy=e,vy}var tc={exports:{}};tc.exports;var LI;function zA(){return LI||(LI=1,function(e,t){var r=OL(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===n,a=s&&r.process,o=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=o}(tc,tc.exports)),tc.exports}var by,BI;function ih(){if(BI)return by;BI=1;var e=ZW(),t=VA(),r=zA(),n=r&&r.isTypedArray,i=n?t(n):e;return by=i,by}var _y,UI;function DL(){if(UI)return _y;UI=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return _y=e,_y}var Ey,VI;function sh(){if(VI)return Ey;VI=1;var e=FA(),t=pu(),r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o){var u=s[a];(!(n.call(s,a)&&t(u,o))||o===void 0&&!(a in s))&&e(s,a,o)}return Ey=i,Ey}var Sy,zI;function hu(){if(zI)return Sy;zI=1;var e=sh(),t=FA();function r(n,i,s,a){var o=!s;s||(s={});for(var u=-1,c=i.length;++u<c;){var l=i[u],f=a?a(s[l],n[l],l,s,n):void 0;f===void 0&&(f=n[l]),o?t(s,l,f):e(s,l,f)}return s}return Sy=r,Sy}var wy,WI;function QW(){if(WI)return wy;WI=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return wy=e,wy}var xy,JI;function el(){if(JI)return xy;JI=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var s=typeof n;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return xy=r,xy}var Ay,KI;function qL(){if(KI)return Ay;KI=1;var e=QW(),t=Zc(),r=Lr(),n=Qc(),i=el(),s=ih(),a=Object.prototype,o=a.hasOwnProperty;function u(c,l){var f=r(c),h=!f&&t(c),d=!f&&!h&&n(c),g=!f&&!h&&!d&&s(c),y=f||h||d||g,v=y?e(c.length,String):[],E=v.length;for(var b in c)(l||o.call(c,b))&&!(y&&(b=="length"||d&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,E)))&&v.push(b);return v}return Ay=u,Ay}var Oy,HI;function eJ(){if(HI)return Oy;HI=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Oy=e,Oy}var Cy,GI;function tJ(){if(GI)return Cy;GI=1;var e=wn(),t=rh(),r=eJ(),n=Object.prototype,i=n.hasOwnProperty;function s(a){if(!e(a))return r(a);var o=t(a),u=[];for(var c in a)c=="constructor"&&(o||!i.call(a,c))||u.push(c);return u}return Cy=s,Cy}var Ry,YI;function tl(){if(YI)return Ry;YI=1;var e=qL(),t=tJ(),r=eo();function n(i){return r(i)?e(i,!0):t(i)}return Ry=n,Ry}var Ty,XI;function rJ(){if(XI)return Ty;XI=1;var e=hu(),t=tl();function r(n){return e(n,t(n))}return Ty=r,Ty}var Iy,ZI;function nJ(){if(ZI)return Iy;ZI=1;var e=TL(),t=jL(),r=PL(),n=Xc(),i=ML(),s=Zc(),a=Lr(),o=YW(),u=Qc(),c=Yc(),l=wn(),f=nh(),h=ih(),d=DL(),g=rJ();function y(v,E,b,S,x,_,A){var C=d(v,b),R=d(E,b),O=A.get(R);if(O){e(v,b,O);return}var M=_?_(C,R,b+"",v,E,A):void 0,k=M===void 0;if(k){var D=a(R),P=!D&&u(R),H=!D&&!P&&h(R);M=R,D||P||H?a(C)?M=C:o(C)?M=n(C):P?(k=!1,M=t(R,!0)):H?(k=!1,M=r(R,!0)):M=[]:f(R)||s(R)?(M=C,s(C)?M=g(C):(!l(C)||c(C))&&(M=i(R))):k=!1}k&&(A.set(R,M),x(M,R,S,_,A),A.delete(R)),e(v,b,M)}return Iy=y,Iy}var jy,QI;function iJ(){if(QI)return jy;QI=1;var e=eh(),t=TL(),r=IL(),n=nJ(),i=wn(),s=tl(),a=DL();function o(u,c,l,f,h){u!==c&&r(c,function(d,g){if(h||(h=new e),i(d))n(u,c,g,l,o,f,h);else{var y=f?f(a(u,g),d,g+"",u,c,h):void 0;y===void 0&&(y=d),t(u,g,y)}},s)}return jy=o,jy}var ky,ej;function rl(){if(ej)return ky;ej=1;function e(t){return t}return ky=e,ky}var Py,tj;function WA(){if(tj)return Py;tj=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Py=e,Py}var Ny,rj;function $L(){if(rj)return Ny;rj=1;var e=WA(),t=Math.max;function r(n,i,s){return i=t(i===void 0?n.length-1:i,0),function(){for(var a=arguments,o=-1,u=t(a.length-i,0),c=Array(u);++o<u;)c[o]=a[i+o];o=-1;for(var l=Array(i+1);++o<i;)l[o]=a[o];return l[i]=s(c),e(n,this,l)}}return Ny=r,Ny}var My,nj;function FL(){if(nj)return My;nj=1;function e(t){return function(){return t}}return My=e,My}var Dy,ij;function sJ(){if(ij)return Dy;ij=1;var e=FL(),t=RL(),r=rl(),n=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return Dy=n,Dy}var qy,sj;function LL(){if(sj)return qy;sj=1;var e=800,t=16,r=Date.now;function n(i){var s=0,a=0;return function(){var o=r(),u=t-(o-a);if(a=o,u>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return qy=n,qy}var $y,aj;function JA(){if(aj)return $y;aj=1;var e=sJ(),t=LL(),r=t(e);return $y=r,$y}var Fy,oj;function aJ(){if(oj)return Fy;oj=1;var e=rl(),t=$L(),r=JA();function n(i,s){return r(t(i,s,e),i+"")}return Fy=n,Fy}var Ly,uj;function BL(){if(uj)return Ly;uj=1;var e=pu(),t=eo(),r=el(),n=wn();function i(s,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?t(o)&&r(a,o.length):u=="string"&&a in o)?e(o[a],s):!1}return Ly=i,Ly}var By,cj;function oJ(){if(cj)return By;cj=1;var e=aJ(),t=BL();function r(n){return e(function(i,s){var a=-1,o=s.length,u=o>1?s[o-1]:void 0,c=o>2?s[2]:void 0;for(u=n.length>3&&typeof u=="function"?(o--,u):void 0,c&&t(s[0],s[1],c)&&(u=o<3?void 0:u,o=1),i=Object(i);++a<o;){var l=s[a];l&&n(i,l,a,u)}return i})}return By=r,By}var Uy,lj;function uJ(){if(lj)return Uy;lj=1;var e=iJ(),t=oJ(),r=t(function(n,i,s){e(n,i,s)});return Uy=r,Uy}var cJ=uJ();const lJ=Be.getDefaultExportFromCjs(cJ);var Vy,fj;function KA(){if(fj)return Vy;fj=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=r(t[n],n,t);return s}return Vy=e,Vy}var zy,pj;function nl(){if(pj)return zy;pj=1;var e=us(),t=xn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return zy=n,zy}var Wy,dj;function fJ(){if(dj)return Wy;dj=1;var e=du(),t=KA(),r=Lr(),n=nl(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(r(o))return t(o,a)+"";if(n(o))return s?s.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return Wy=a,Wy}var Jy,hj;function ks(){if(hj)return Jy;hj=1;var e=fJ();function t(r){return r==null?"":e(r)}return Jy=t,Jy}var Ky,mj;function UL(){if(mj)return Ky;mj=1;function e(t,r,n){var i=-1,s=t.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(s);++i<s;)a[i]=t[i+r];return a}return Ky=e,Ky}var Hy,gj;function pJ(){if(gj)return Hy;gj=1;var e=UL();function t(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:e(r,n,i)}return Hy=t,Hy}var Gy,yj;function VL(){if(yj)return Gy;yj=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+e+i+s+"]");function u(c){return o.test(c)}return Gy=u,Gy}var Yy,vj;function dJ(){if(vj)return Yy;vj=1;function e(t){return t.split("")}return Yy=e,Yy}var Xy,bj;function hJ(){if(bj)return Xy;bj=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="["+e+"]",o="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+u+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",g=c+"?",y="["+s+"]?",v="(?:"+d+"(?:"+[l,f,h].join("|")+")"+y+g+")*",E=y+g+v,b="(?:"+[l+o+"?",o,f,h,a].join("|")+")",S=RegExp(u+"(?="+u+")|"+b+E,"g");function x(_){return _.match(S)||[]}return Xy=x,Xy}var Zy,_j;function mJ(){if(_j)return Zy;_j=1;var e=dJ(),t=VL(),r=hJ();function n(i){return t(i)?r(i):e(i)}return Zy=n,Zy}var Qy,Ej;function gJ(){if(Ej)return Qy;Ej=1;var e=pJ(),t=VL(),r=mJ(),n=ks();function i(s){return function(a){a=n(a);var o=t(a)?r(a):void 0,u=o?o[0]:a.charAt(0),c=o?e(o,1).join(""):a.slice(1);return u[s]()+c}}return Qy=i,Qy}var ev,Sj;function zL(){if(Sj)return ev;Sj=1;var e=gJ(),t=e("toUpperCase");return ev=t,ev}var tv,wj;function yJ(){if(wj)return tv;wj=1;var e=ks(),t=zL();function r(n){return t(e(n).toLowerCase())}return tv=r,tv}var rv,xj;function WL(){if(xj)return rv;xj=1;function e(t,r,n,i){var s=-1,a=t==null?0:t.length;for(i&&a&&(n=t[++s]);++s<a;)n=r(n,t[s],s,t);return n}return rv=e,rv}var nv,Aj;function vJ(){if(Aj)return nv;Aj=1;function e(t){return function(r){return t==null?void 0:t[r]}}return nv=e,nv}var iv,Oj;function bJ(){if(Oj)return iv;Oj=1;var e=vJ(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=e(t);return iv=r,iv}var sv,Cj;function _J(){if(Cj)return sv;Cj=1;var e=bJ(),t=ks(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",a=n+i+s,o="["+a+"]",u=RegExp(o,"g");function c(l){return l=t(l),l&&l.replace(r,e).replace(u,"")}return sv=c,sv}var av,Rj;function EJ(){if(Rj)return av;Rj=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return av=t,av}var ov,Tj;function SJ(){if(Tj)return ov;Tj=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return ov=t,ov}var uv,Ij;function wJ(){if(Ij)return uv;Ij=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",o="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",l=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",d=o+u+c+l,g="['’]",y="["+d+"]",v="["+i+"]",E="\\d+",b="["+s+"]",S="["+a+"]",x="[^"+e+d+E+s+a+f+"]",_="\\ud83c[\\udffb-\\udfff]",A="(?:"+v+"|"+_+")",C="[^"+e+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+f+"]",k="\\u200d",D="(?:"+S+"|"+x+")",P="(?:"+M+"|"+x+")",H="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",Z="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",V=A+"?",G="["+h+"]?",Q="(?:"+k+"(?:"+[C,R,O].join("|")+")"+G+V+")*",Y="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",L="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=G+V+Q,ee="(?:"+[b,R,O].join("|")+")"+J,ne=RegExp([M+"?"+S+"+"+H+"(?="+[y,M,"$"].join("|")+")",P+"+"+Z+"(?="+[y,M+D,"$"].join("|")+")",M+"?"+D+"+"+H,M+"+"+Z,L,Y,E,ee].join("|"),"g");function ae(X){return X.match(ne)||[]}return uv=ae,uv}var cv,jj;function xJ(){if(jj)return cv;jj=1;var e=EJ(),t=SJ(),r=ks(),n=wJ();function i(s,a,o){return s=r(s),a=o?void 0:a,a===void 0?t(s)?n(s):e(s):s.match(a)||[]}return cv=i,cv}var lv,kj;function AJ(){if(kj)return lv;kj=1;var e=WL(),t=_J(),r=xJ(),n="['’]",i=RegExp(n,"g");function s(a){return function(o){return e(r(t(o).replace(i,"")),a,"")}}return lv=s,lv}var fv,Pj;function OJ(){if(Pj)return fv;Pj=1;var e=yJ(),t=AJ(),r=t(function(n,i,s){return i=i.toLowerCase(),n+(s?e(i):i)});return fv=r,fv}OJ();zL();var pv,Nj;function JL(){if(Nj)return pv;Nj=1;var e=$A(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],u=s.cache;if(u.has(o))return u.get(o);var c=n.apply(this,a);return s.cache=u.set(o,c)||u,c};return s.cache=new(r.Cache||e),s}return r.Cache=e,pv=r,pv}var CJ=JL();const RJ=Be.getDefaultExportFromCjs(CJ);var dv,Mj;function TJ(){if(Mj)return dv;Mj=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return dv=t,dv}var hv,Dj;function IJ(){if(Dj)return hv;Dj=1;function e(t){return this.__data__.has(t)}return hv=e,hv}var mv,qj;function jJ(){if(qj)return mv;qj=1;var e=$A(),t=TJ(),r=IJ();function n(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,mv=n,mv}var gv,$j;function KL(){if($j)return gv;$j=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return gv=e,gv}var yv,Fj;function kJ(){if(Fj)return yv;Fj=1;function e(t,r){return t.has(r)}return yv=e,yv}var vv,Lj;function HL(){if(Lj)return vv;Lj=1;var e=jJ(),t=KL(),r=kJ(),n=1,i=2;function s(a,o,u,c,l,f){var h=u&n,d=a.length,g=o.length;if(d!=g&&!(h&&g>d))return!1;var y=f.get(a),v=f.get(o);if(y&&v)return y==o&&v==a;var E=-1,b=!0,S=u&i?new e:void 0;for(f.set(a,o),f.set(o,a);++E<d;){var x=a[E],_=o[E];if(c)var A=h?c(_,x,E,o,a,f):c(x,_,E,a,o,f);if(A!==void 0){if(A)continue;b=!1;break}if(S){if(!t(o,function(C,R){if(!r(S,R)&&(x===C||l(x,C,u,c,f)))return S.push(R)})){b=!1;break}}else if(!(x===_||l(x,_,u,c,f))){b=!1;break}}return f.delete(a),f.delete(o),b}return vv=s,vv}var bv,Bj;function PJ(){if(Bj)return bv;Bj=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,s){n[++r]=[s,i]}),n}return bv=e,bv}var _v,Uj;function NJ(){if(Uj)return _v;Uj=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return _v=e,_v}var Ev,Vj;function MJ(){if(Vj)return Ev;Vj=1;var e=du(),t=kL(),r=pu(),n=HL(),i=PJ(),s=NJ(),a=1,o=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",h="[object Number]",d="[object RegExp]",g="[object Set]",y="[object String]",v="[object Symbol]",E="[object ArrayBuffer]",b="[object DataView]",S=e?e.prototype:void 0,x=S?S.valueOf:void 0;function _(A,C,R,O,M,k,D){switch(R){case b:if(A.byteLength!=C.byteLength||A.byteOffset!=C.byteOffset)return!1;A=A.buffer,C=C.buffer;case E:return!(A.byteLength!=C.byteLength||!k(new t(A),new t(C)));case u:case c:case h:return r(+A,+C);case l:return A.name==C.name&&A.message==C.message;case d:case y:return A==C+"";case f:var P=i;case g:var H=O&a;if(P||(P=s),A.size!=C.size&&!H)return!1;var Z=D.get(A);if(Z)return Z==C;O|=o,D.set(A,C);var V=n(P(A),P(C),O,M,k,D);return D.delete(A),V;case v:if(x)return x.call(A)==x.call(C)}return!1}return Ev=_,Ev}var Sv,zj;function HA(){if(zj)return Sv;zj=1;function e(t,r){for(var n=-1,i=r.length,s=t.length;++n<i;)t[s+n]=r[n];return t}return Sv=e,Sv}var wv,Wj;function GL(){if(Wj)return wv;Wj=1;var e=HA(),t=Lr();function r(n,i,s){var a=i(n);return t(n)?a:e(a,s(n))}return wv=r,wv}var xv,Jj;function DJ(){if(Jj)return xv;Jj=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=0,a=[];++n<i;){var o=t[n];r(o,n,t)&&(a[s++]=o)}return a}return xv=e,xv}var Av,Kj;function YL(){if(Kj)return Av;Kj=1;function e(){return[]}return Av=e,Av}var Ov,Hj;function GA(){if(Hj)return Ov;Hj=1;var e=DJ(),t=YL(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return n.call(a,o)}))}:t;return Ov=s,Ov}var Cv,Gj;function qJ(){if(Gj)return Cv;Gj=1;var e=NL(),t=e(Object.keys,Object);return Cv=t,Cv}var Rv,Yj;function YA(){if(Yj)return Rv;Yj=1;var e=rh(),t=qJ(),r=Object.prototype,n=r.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))n.call(s,o)&&o!="constructor"&&a.push(o);return a}return Rv=i,Rv}var Tv,Xj;function mu(){if(Xj)return Tv;Xj=1;var e=qL(),t=YA(),r=eo();function n(i){return r(i)?e(i):t(i)}return Tv=n,Tv}var Iv,Zj;function XL(){if(Zj)return Iv;Zj=1;var e=GL(),t=GA(),r=mu();function n(i){return e(i,r,t)}return Iv=n,Iv}var jv,Qj;function $J(){if(Qj)return jv;Qj=1;var e=XL(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o,u,c,l){var f=o&t,h=e(s),d=h.length,g=e(a),y=g.length;if(d!=y&&!f)return!1;for(var v=d;v--;){var E=h[v];if(!(f?E in a:n.call(a,E)))return!1}var b=l.get(s),S=l.get(a);if(b&&S)return b==a&&S==s;var x=!0;l.set(s,a),l.set(a,s);for(var _=f;++v<d;){E=h[v];var A=s[E],C=a[E];if(u)var R=f?u(C,A,E,a,s,l):u(A,C,E,s,a,l);if(!(R===void 0?A===C||c(A,C,o,u,l):R)){x=!1;break}_||(_=E=="constructor")}if(x&&!_){var O=s.constructor,M=a.constructor;O!=M&&"constructor"in s&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof M=="function"&&M instanceof M)&&(x=!1)}return l.delete(s),l.delete(a),x}return jv=i,jv}var kv,ek;function FJ(){if(ek)return kv;ek=1;var e=Qa(),t=Sn(),r=e(t,"DataView");return kv=r,kv}var Pv,tk;function LJ(){if(tk)return Pv;tk=1;var e=Qa(),t=Sn(),r=e(t,"Promise");return Pv=r,Pv}var Nv,rk;function BJ(){if(rk)return Nv;rk=1;var e=Qa(),t=Sn(),r=e(t,"Set");return Nv=r,Nv}var Mv,nk;function ZL(){if(nk)return Mv;nk=1;var e=Qa(),t=Sn(),r=e(t,"WeakMap");return Mv=r,Mv}var Dv,ik;function gu(){if(ik)return Dv;ik=1;var e=FJ(),t=qA(),r=LJ(),n=BJ(),i=ZL(),s=us(),a=CL(),o="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",d=a(e),g=a(t),y=a(r),v=a(n),E=a(i),b=s;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=o||r&&b(r.resolve())!=c||n&&b(new n)!=l||i&&b(new i)!=f)&&(b=function(S){var x=s(S),_=x==u?S.constructor:void 0,A=_?a(_):"";if(A)switch(A){case d:return h;case g:return o;case y:return c;case v:return l;case E:return f}return x}),Dv=b,Dv}var qv,sk;function UJ(){if(sk)return qv;sk=1;var e=eh(),t=HL(),r=MJ(),n=$J(),i=gu(),s=Lr(),a=Qc(),o=ih(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function g(y,v,E,b,S,x){var _=s(y),A=s(v),C=_?l:i(y),R=A?l:i(v);C=C==c?f:C,R=R==c?f:R;var O=C==f,M=R==f,k=C==R;if(k&&a(y)){if(!a(v))return!1;_=!0,O=!1}if(k&&!O)return x||(x=new e),_||o(y)?t(y,v,E,b,S,x):r(y,v,C,E,b,S,x);if(!(E&u)){var D=O&&d.call(y,"__wrapped__"),P=M&&d.call(v,"__wrapped__");if(D||P){var H=D?y.value():y,Z=P?v.value():v;return x||(x=new e),S(H,Z,E,b,x)}}return k?(x||(x=new e),n(y,v,E,b,S,x)):!1}return qv=g,qv}var $v,ak;function XA(){if(ak)return $v;ak=1;var e=UJ(),t=xn();function r(n,i,s,a,o){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,s,a,r,o)}return $v=r,$v}var Fv,ok;function VJ(){if(ok)return Fv;ok=1;var e=eh(),t=XA(),r=1,n=2;function i(s,a,o,u){var c=o.length,l=c,f=!u;if(s==null)return!l;for(s=Object(s);c--;){var h=o[c];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++c<l;){h=o[c];var d=h[0],g=s[d],y=h[1];if(f&&h[2]){if(g===void 0&&!(d in s))return!1}else{var v=new e;if(u)var E=u(g,y,d,s,a,v);if(!(E===void 0?t(y,g,r|n,u,v):E))return!1}}return!0}return Fv=i,Fv}var Lv,uk;function QL(){if(uk)return Lv;uk=1;var e=wn();function t(r){return r===r&&!e(r)}return Lv=t,Lv}var Bv,ck;function zJ(){if(ck)return Bv;ck=1;var e=QL(),t=mu();function r(n){for(var i=t(n),s=i.length;s--;){var a=i[s],o=n[a];i[s]=[a,o,e(o)]}return i}return Bv=r,Bv}var Uv,lk;function eB(){if(lk)return Uv;lk=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Uv=e,Uv}var Vv,fk;function WJ(){if(fk)return Vv;fk=1;var e=VJ(),t=zJ(),r=eB();function n(i){var s=t(i);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return Vv=n,Vv}var zv,pk;function ZA(){if(pk)return zv;pk=1;var e=Lr(),t=nl(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return zv=i,zv}var Wv,dk;function JJ(){if(dk)return Wv;dk=1;var e=JL(),t=500;function r(n){var i=e(n,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return Wv=r,Wv}var Jv,hk;function tB(){if(hk)return Jv;hk=1;var e=JJ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(a,o,u,c){s.push(u?c.replace(r,"$1"):o||a)}),s});return Jv=n,Jv}var Kv,mk;function il(){if(mk)return Kv;mk=1;var e=Lr(),t=ZA(),r=tB(),n=ks();function i(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return Kv=i,Kv}var Hv,gk;function to(){if(gk)return Hv;gk=1;var e=nl();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Hv=t,Hv}var Gv,yk;function QA(){if(yk)return Gv;yk=1;var e=il(),t=to();function r(n,i){i=e(i,n);for(var s=0,a=i.length;n!=null&&s<a;)n=n[t(i[s++])];return s&&s==a?n:void 0}return Gv=r,Gv}var Yv,vk;function rB(){if(vk)return Yv;vk=1;var e=QA();function t(r,n,i){var s=r==null?void 0:e(r,n);return s===void 0?i:s}return Yv=t,Yv}var Xv,bk;function KJ(){if(bk)return Xv;bk=1;function e(t,r){return t!=null&&r in Object(t)}return Xv=e,Xv}var Zv,_k;function nB(){if(_k)return Zv;_k=1;var e=il(),t=Zc(),r=Lr(),n=el(),i=UA(),s=to();function a(o,u,c){u=e(u,o);for(var l=-1,f=u.length,h=!1;++l<f;){var d=s(u[l]);if(!(h=o!=null&&c(o,d)))break;o=o[d]}return h||++l!=f?h:(f=o==null?0:o.length,!!f&&i(f)&&n(d,f)&&(r(o)||t(o)))}return Zv=a,Zv}var Qv,Ek;function HJ(){if(Ek)return Qv;Ek=1;var e=KJ(),t=nB();function r(n,i){return n!=null&&t(n,i,e)}return Qv=r,Qv}var e0,Sk;function GJ(){if(Sk)return e0;Sk=1;var e=XA(),t=rB(),r=HJ(),n=ZA(),i=QL(),s=eB(),a=to(),o=1,u=2;function c(l,f){return n(l)&&i(f)?s(a(l),f):function(h){var d=t(h,l);return d===void 0&&d===f?r(h,l):e(f,d,o|u)}}return e0=c,e0}var t0,wk;function YJ(){if(wk)return t0;wk=1;function e(t){return function(r){return r==null?void 0:r[t]}}return t0=e,t0}var r0,xk;function XJ(){if(xk)return r0;xk=1;var e=QA();function t(r){return function(n){return e(n,r)}}return r0=t,r0}var n0,Ak;function ZJ(){if(Ak)return n0;Ak=1;var e=YJ(),t=XJ(),r=ZA(),n=to();function i(s){return r(s)?e(n(s)):t(s)}return n0=i,n0}var i0,Ok;function sl(){if(Ok)return i0;Ok=1;var e=WJ(),t=GJ(),r=rl(),n=Lr(),i=ZJ();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):i(a)}return i0=s,i0}var s0,Ck;function QJ(){if(Ck)return s0;Ck=1;var e=sl(),t=eo(),r=mu();function n(i){return function(s,a,o){var u=Object(s);if(!t(s)){var c=e(a,3);s=r(s),a=function(f){return c(u[f],f,u)}}var l=i(s,a,o);return l>-1?u[c?s[l]:l]:void 0}}return s0=n,s0}var a0,Rk;function iB(){if(Rk)return a0;Rk=1;function e(t,r,n,i){for(var s=t.length,a=n+(i?1:-1);i?a--:++a<s;)if(r(t[a],a,t))return a;return-1}return a0=e,a0}var o0,Tk;function eK(){if(Tk)return o0;Tk=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return o0=t,o0}var u0,Ik;function tK(){if(Ik)return u0;Ik=1;var e=eK(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return u0=r,u0}var c0,jk;function sB(){if(jk)return c0;jk=1;var e=tK(),t=wn(),r=nl(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=t(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=s.test(c);return f||a.test(c)?o(c.slice(2),f?2:8):i.test(c)?n:+c}return c0=u,c0}var l0,kk;function rK(){if(kk)return l0;kk=1;var e=sB(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var s=i<0?-1:1;return s*r}return i===i?i:0}return l0=n,l0}var f0,Pk;function eO(){if(Pk)return f0;Pk=1;var e=rK();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return f0=t,f0}var p0,Nk;function nK(){if(Nk)return p0;Nk=1;var e=iB(),t=sl(),r=eO(),n=Math.max;function i(s,a,o){var u=s==null?0:s.length;if(!u)return-1;var c=o==null?0:r(o);return c<0&&(c=n(u+c,0)),e(s,t(a,3),c)}return p0=i,p0}var d0,Mk;function iK(){if(Mk)return d0;Mk=1;var e=QJ(),t=nK(),r=e(t);return d0=r,d0}var sK=iK();const aK=Be.getDefaultExportFromCjs(sK);var h0,Dk;function oK(){if(Dk)return h0;Dk=1;var e=IL(),t=mu();function r(n,i){return n&&e(n,i,t)}return h0=r,h0}var m0,qk;function uK(){if(qk)return m0;qk=1;var e=eo();function t(r,n){return function(i,s){if(i==null)return i;if(!e(i))return r(i,s);for(var a=i.length,o=n?a:-1,u=Object(i);(n?o--:++o<a)&&s(u[o],o,u)!==!1;);return i}}return m0=t,m0}var g0,$k;function aB(){if($k)return g0;$k=1;var e=oK(),t=uK(),r=t(e);return g0=r,g0}var y0,Fk;function cK(){if(Fk)return y0;Fk=1;var e=aB();function t(r,n){var i;return e(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return y0=t,y0}var v0,Lk;function lK(){if(Lk)return v0;Lk=1;var e=KL(),t=sl(),r=cK(),n=Lr(),i=BL();function s(a,o,u){var c=n(a)?e:r;return u&&i(a,o,u)&&(o=void 0),c(a,t(o,3))}return v0=s,v0}var fK=lK();const pK=Be.getDefaultExportFromCjs(fK);var dK=pu();const hK=Be.getDefaultExportFromCjs(dK);var mK=Yc();const gK=Be.getDefaultExportFromCjs(mK);var dp={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var yK=dp.exports,Bk;function vK(){return Bk||(Bk=1,function(e,t){(function(r,n){e.exports=n(r)})(typeof Be.commonjsGlobal<"u"?Be.commonjsGlobal:yK,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var s=String(i),a=s.length,o=-1,u,c="",l=s.charCodeAt(0);++o<a;){if(u=s.charCodeAt(o),u==0){c+="�";continue}if(u>=1&&u<=31||u==127||o==0&&u>=48&&u<=57||o==1&&u>=48&&u<=57&&l==45){c+="\\"+u.toString(16)+" ";continue}if(o==0&&a==1&&u==45){c+="\\"+s.charAt(o);continue}if(u>=128||u==45||u==95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122){c+=s.charAt(o);continue}c+="\\"+s.charAt(o)}return c};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}(dp)),dp.exports}var bK=vK();const _K=Be.getDefaultExportFromCjs(bK);var b0,Uk;function EK(){return Uk||(Uk=1,b0=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),b0}var Wf={},Vk;function SK(){if(Vk)return Wf;Vk=1;var e=Object.prototype.hasOwnProperty,t;function r(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return null}}function n(a){try{return encodeURIComponent(a)}catch{return null}}function i(a){for(var o=/([^=?#&]+)=?([^&]*)/g,u={},c;c=o.exec(a);){var l=r(c[1]),f=r(c[2]);l===null||f===null||l in u||(u[l]=f)}return u}function s(a,o){o=o||"";var u=[],c,l;typeof o!="string"&&(o="?");for(l in a)if(e.call(a,l)){if(c=a[l],!c&&(c===null||c===t||isNaN(c))&&(c=""),l=n(l),c=n(c),l===null||c===null)continue;u.push(l+"="+c)}return u.length?o+u.join("&"):""}return Wf.stringify=s,Wf.parse=i,Wf}var _0,zk;function wK(){if(zk)return _0;zk=1;var e=EK(),t=SK(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,o=/^[a-zA-Z]:/;function u(b){return(b||"").toString().replace(r,"")}var c=[["#","hash"],["?","query"],function(S,x){return h(x.protocol)?S.replace(/\\/g,"/"):S},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function f(b){var S;typeof window<"u"?S=window:typeof Be.commonjsGlobal<"u"?S=Be.commonjsGlobal:typeof self<"u"?S=self:S={};var x=S.location||{};b=b||x;var _={},A=typeof b,C;if(b.protocol==="blob:")_=new y(unescape(b.pathname),{});else if(A==="string"){_=new y(b,{});for(C in l)delete _[C]}else if(A==="object"){for(C in b)C in l||(_[C]=b[C]);_.slashes===void 0&&(_.slashes=i.test(b.href))}return _}function h(b){return b==="file:"||b==="ftp:"||b==="http:"||b==="https:"||b==="ws:"||b==="wss:"}function d(b,S){b=u(b),b=b.replace(n,""),S=S||{};var x=a.exec(b),_=x[1]?x[1].toLowerCase():"",A=!!x[2],C=!!x[3],R=0,O;return A?C?(O=x[2]+x[3]+x[4],R=x[2].length+x[3].length):(O=x[2]+x[4],R=x[2].length):C?(O=x[3]+x[4],R=x[3].length):O=x[4],_==="file:"?R>=2&&(O=O.slice(2)):h(_)?O=x[4]:_?A&&(O=O.slice(2)):R>=2&&h(S.protocol)&&(O=x[4]),{protocol:_,slashes:A||h(_),slashesCount:R,rest:O}}function g(b,S){if(b==="")return S;for(var x=(S||"/").split("/").slice(0,-1).concat(b.split("/")),_=x.length,A=x[_-1],C=!1,R=0;_--;)x[_]==="."?x.splice(_,1):x[_]===".."?(x.splice(_,1),R++):R&&(_===0&&(C=!0),x.splice(_,1),R--);return C&&x.unshift(""),(A==="."||A==="..")&&x.push(""),x.join("/")}function y(b,S,x){if(b=u(b),b=b.replace(n,""),!(this instanceof y))return new y(b,S,x);var _,A,C,R,O,M,k=c.slice(),D=typeof S,P=this,H=0;for(D!=="object"&&D!=="string"&&(x=S,S=null),x&&typeof x!="function"&&(x=t.parse),S=f(S),A=d(b||"",S),_=!A.protocol&&!A.slashes,P.slashes=A.slashes||_&&S.slashes,P.protocol=A.protocol||S.protocol||"",b=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||o.test(b))||!A.slashes&&(A.protocol||A.slashesCount<2||!h(P.protocol)))&&(k[3]=[/(.*)/,"pathname"]);H<k.length;H++){if(R=k[H],typeof R=="function"){b=R(b,P);continue}C=R[0],M=R[1],C!==C?P[M]=b:typeof C=="string"?(O=C==="@"?b.lastIndexOf(C):b.indexOf(C),~O&&(typeof R[2]=="number"?(P[M]=b.slice(0,O),b=b.slice(O+R[2])):(P[M]=b.slice(O),b=b.slice(0,O)))):(O=C.exec(b))&&(P[M]=O[1],b=b.slice(0,O.index)),P[M]=P[M]||_&&R[3]&&S[M]||"",R[4]&&(P[M]=P[M].toLowerCase())}x&&(P.query=x(P.query)),_&&S.slashes&&P.pathname.charAt(0)!=="/"&&(P.pathname!==""||S.pathname!=="")&&(P.pathname=g(P.pathname,S.pathname)),P.pathname.charAt(0)!=="/"&&h(P.protocol)&&(P.pathname="/"+P.pathname),e(P.port,P.protocol)||(P.host=P.hostname,P.port=""),P.username=P.password="",P.auth&&(O=P.auth.indexOf(":"),~O?(P.username=P.auth.slice(0,O),P.username=encodeURIComponent(decodeURIComponent(P.username)),P.password=P.auth.slice(O+1),P.password=encodeURIComponent(decodeURIComponent(P.password))):P.username=encodeURIComponent(decodeURIComponent(P.auth)),P.auth=P.password?P.username+":"+P.password:P.username),P.origin=P.protocol!=="file:"&&h(P.protocol)&&P.host?P.protocol+"//"+P.host:"null",P.href=P.toString()}function v(b,S,x){var _=this;switch(b){case"query":typeof S=="string"&&S.length&&(S=(x||t.parse)(S)),_[b]=S;break;case"port":_[b]=S,e(S,_.protocol)?S&&(_.host=_.hostname+":"+S):(_.host=_.hostname,_[b]="");break;case"hostname":_[b]=S,_.port&&(S+=":"+_.port),_.host=S;break;case"host":_[b]=S,s.test(S)?(S=S.split(":"),_.port=S.pop(),_.hostname=S.join(":")):(_.hostname=S,_.port="");break;case"protocol":_.protocol=S.toLowerCase(),_.slashes=!x;break;case"pathname":case"hash":if(S){var A=b==="pathname"?"/":"#";_[b]=S.charAt(0)!==A?A+S:S}else _[b]=S;break;case"username":case"password":_[b]=encodeURIComponent(S);break;case"auth":var C=S.indexOf(":");~C?(_.username=S.slice(0,C),_.username=encodeURIComponent(decodeURIComponent(_.username)),_.password=S.slice(C+1),_.password=encodeURIComponent(decodeURIComponent(_.password))):_.username=encodeURIComponent(decodeURIComponent(S))}for(var R=0;R<c.length;R++){var O=c[R];O[4]&&(_[O[1]]=_[O[1]].toLowerCase())}return _.auth=_.password?_.username+":"+_.password:_.username,_.origin=_.protocol!=="file:"&&h(_.protocol)&&_.host?_.protocol+"//"+_.host:"null",_.href=_.toString(),_}function E(b){(!b||typeof b!="function")&&(b=t.stringify);var S,x=this,_=x.host,A=x.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var C=A+(x.protocol&&x.slashes||h(x.protocol)?"//":"");return x.username?(C+=x.username,x.password&&(C+=":"+x.password),C+="@"):x.password?(C+=":"+x.password,C+="@"):x.protocol!=="file:"&&h(x.protocol)&&!_&&x.pathname!=="/"&&(C+="@"),(_[_.length-1]===":"||s.test(x.hostname)&&!x.port)&&(_+=":"),C+=_+x.pathname,S=typeof x.query=="object"?b(x.query):x.query,S&&(C+=S.charAt(0)!=="?"?"?"+S:S),x.hash&&(C+=x.hash),C}return y.prototype={set:v,toString:E},y.extractProtocol=d,y.location=f,y.trimLeft=u,y.qs=t,_0=y,_0}var xK=wK();const AK=Be.getDefaultExportFromCjs(xK);var OK=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
21
+ \`createSelector([state => state.todos], todos => todos)\`
22
+ This could lead to inefficient memoization and unnecessary re-renders.
23
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},CK=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,o=n(()=>({}),...i);if(!(o.apply(null,s)===o.apply(null,a))){let c;try{throw new Error}catch(l){({stack:c}=l)}console.warn(`An input selector returned a different result when passed same arguments.
24
+ This means your output selector will likely run more frequently than intended.
25
+ Avoid returning a new reference inside your input selector, e.g.
26
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:a,stack:c})}},RK={inputStabilityCheck:"once",identityFunctionCheck:"once"};function TK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function IK(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function jK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Wk=e=>Array.isArray(e)?e:[e];function kK(e){const t=Array.isArray(e[0])?e[0]:e;return jK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Jk(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var PK=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...RK,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:OK},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:CK}}},NK=class{constructor(e){this.value=e}deref(){return this.value}},MK=typeof WeakRef<"u"?WeakRef:NK,DK=0,Kk=1;function Jf(){return{s:DK,v:void 0,o:null,p:null}}function oB(e,t={}){let r=Jf();const{resultEqualityCheck:n}=t;let i,s=0;function a(){var f;let o=r;const{length:u}=arguments;for(let h=0,d=u;h<d;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=o.o;y===null&&(o.o=y=new WeakMap);const v=y.get(g);v===void 0?(o=Jf(),y.set(g,o)):o=v}else{let y=o.p;y===null&&(o.p=y=new Map);const v=y.get(g);v===void 0?(o=Jf(),y.set(g,o)):o=v}}const c=o;let l;if(o.s===Kk)l=o.v;else if(l=e.apply(null,arguments),s++,n){const h=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;h!=null&&n(h,l)&&(l=h,s!==0&&s--),i=typeof l=="object"&&l!==null||typeof l=="function"?new MK(l):l}return c.s=Kk,c.v=l,l}return a.clearCache=()=>{r=Jf(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function qK(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let s=0,a=0,o,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),TK(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:d=oB,argsMemoizeOptions:g=[],devModeChecks:y={}}=l,v=Wk(h),E=Wk(g),b=kK(i),S=f(function(){return s++,c.apply(null,arguments)},...v);let x=!0;const _=d(function(){a++;const C=Jk(b,arguments);if(o=S.apply(null,C),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:R,inputStabilityCheck:O}=PK(x,y);if(R.shouldRun&&R.run(c,C,o),O.shouldRun){const M=Jk(b,arguments);O.run({inputSelectorResults:C,inputSelectorResultsCopy:M},{memoize:f,memoizeOptions:v},arguments)}x&&(x=!1)}return o},...E);return Object.assign(_,{resultFunc:c,memoizedResultFunc:S,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>o,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var uB=qK(oB),$K=Object.assign((e,t=uB)=>{IK(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(s=>e[s]);return t(n,(...s)=>s.reduce((a,o,u)=>(a[r[u]]=o,a),{}))},{withTypes:()=>$K}),E0,Hk;function tO(){if(Hk)return E0;Hk=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return E0=e,E0}var S0,Gk;function cB(){if(Gk)return S0;Gk=1;var e=hu(),t=mu();function r(n,i){return n&&e(i,t(i),n)}return S0=r,S0}var w0,Yk;function FK(){if(Yk)return w0;Yk=1;var e=hu(),t=tl();function r(n,i){return n&&e(i,t(i),n)}return w0=r,w0}var x0,Xk;function LK(){if(Xk)return x0;Xk=1;var e=hu(),t=GA();function r(n,i){return e(n,t(n),i)}return x0=r,x0}var A0,Zk;function lB(){if(Zk)return A0;Zk=1;var e=HA(),t=BA(),r=GA(),n=YL(),i=Object.getOwnPropertySymbols,s=i?function(a){for(var o=[];a;)e(o,r(a)),a=t(a);return o}:n;return A0=s,A0}var O0,Qk;function BK(){if(Qk)return O0;Qk=1;var e=hu(),t=lB();function r(n,i){return e(n,t(n),i)}return O0=r,O0}var C0,eP;function fB(){if(eP)return C0;eP=1;var e=GL(),t=lB(),r=tl();function n(i){return e(i,r,t)}return C0=n,C0}var R0,tP;function UK(){if(tP)return R0;tP=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(s.index=n.index,s.input=n.input),s}return R0=r,R0}var T0,rP;function VK(){if(rP)return T0;rP=1;var e=LA();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return T0=t,T0}var I0,nP;function zK(){if(nP)return I0;nP=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return I0=t,I0}var j0,iP;function WK(){if(iP)return j0;iP=1;var e=du(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return j0=n,j0}var k0,sP;function JK(){if(sP)return k0;sP=1;var e=LA(),t=VK(),r=zK(),n=WK(),i=PL(),s="[object Boolean]",a="[object Date]",o="[object Map]",u="[object Number]",c="[object RegExp]",l="[object Set]",f="[object String]",h="[object Symbol]",d="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",E="[object Int8Array]",b="[object Int16Array]",S="[object Int32Array]",x="[object Uint8Array]",_="[object Uint8ClampedArray]",A="[object Uint16Array]",C="[object Uint32Array]";function R(O,M,k){var D=O.constructor;switch(M){case d:return e(O);case s:case a:return new D(+O);case g:return t(O,k);case y:case v:case E:case b:case S:case x:case _:case A:case C:return i(O,k);case o:return new D;case u:case f:return new D(O);case c:return r(O);case l:return new D;case h:return n(O)}}return k0=R,k0}var P0,aP;function KK(){if(aP)return P0;aP=1;var e=gu(),t=xn(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return P0=n,P0}var N0,oP;function HK(){if(oP)return N0;oP=1;var e=KK(),t=VA(),r=zA(),n=r&&r.isMap,i=n?t(n):e;return N0=i,N0}var M0,uP;function GK(){if(uP)return M0;uP=1;var e=gu(),t=xn(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return M0=n,M0}var D0,cP;function YK(){if(cP)return D0;cP=1;var e=GK(),t=VA(),r=zA(),n=r&&r.isSet,i=n?t(n):e;return D0=i,D0}var q0,lP;function rO(){if(lP)return q0;lP=1;var e=eh(),t=tO(),r=sh(),n=cB(),i=FK(),s=jL(),a=Xc(),o=LK(),u=BK(),c=XL(),l=fB(),f=gu(),h=UK(),d=JK(),g=ML(),y=Lr(),v=Qc(),E=HK(),b=wn(),S=YK(),x=mu(),_=tl(),A=1,C=2,R=4,O="[object Arguments]",M="[object Array]",k="[object Boolean]",D="[object Date]",P="[object Error]",H="[object Function]",Z="[object GeneratorFunction]",V="[object Map]",G="[object Number]",Q="[object Object]",Y="[object RegExp]",L="[object Set]",J="[object String]",ee="[object Symbol]",ne="[object WeakMap]",ae="[object ArrayBuffer]",X="[object DataView]",B="[object Float32Array]",F="[object Float64Array]",ue="[object Int8Array]",fe="[object Int16Array]",Ae="[object Int32Array]",Ne="[object Uint8Array]",pe="[object Uint8ClampedArray]",Oe="[object Uint16Array]",We="[object Uint32Array]",he={};he[O]=he[M]=he[ae]=he[X]=he[k]=he[D]=he[B]=he[F]=he[ue]=he[fe]=he[Ae]=he[V]=he[G]=he[Q]=he[Y]=he[L]=he[J]=he[ee]=he[Ne]=he[pe]=he[Oe]=he[We]=!0,he[P]=he[H]=he[ne]=!1;function ve(Se,$,T,j,U,re){var ie,le=$&A,Ie=$&C,Je=$&R;if(T&&(ie=U?T(Se,j,U,re):T(Se)),ie!==void 0)return ie;if(!b(Se))return Se;var Qe=y(Se);if(Qe){if(ie=h(Se),!le)return a(Se,ie)}else{var tt=f(Se),ct=tt==H||tt==Z;if(v(Se))return s(Se,le);if(tt==Q||tt==O||ct&&!U){if(ie=Ie||ct?{}:g(Se),!le)return Ie?u(Se,i(ie,Se)):o(Se,n(ie,Se))}else{if(!he[tt])return U?Se:{};ie=d(Se,tt,le)}}re||(re=new e);var $n=re.get(Se);if($n)return $n;re.set(Se,ie),S(Se)?Se.forEach(function(br){ie.add(ve(br,$,T,br,Se,re))}):E(Se)&&Se.forEach(function(br,lr){ie.set(lr,ve(br,$,T,lr,Se,re))});var Si=Je?Ie?l:c:Ie?_:x,ar=Qe?void 0:Si(Se);return t(ar||Se,function(br,lr){ar&&(lr=br,br=Se[lr]),r(ie,lr,ve(br,$,T,lr,Se,re))}),ie}return q0=ve,q0}var $0,fP;function XK(){if(fP)return $0;fP=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return $0=e,$0}var F0,pP;function ZK(){if(pP)return F0;pP=1;var e=QA(),t=UL();function r(n,i){return i.length<2?n:e(n,t(i,0,-1))}return F0=r,F0}var L0,dP;function QK(){if(dP)return L0;dP=1;var e=il(),t=XK(),r=ZK(),n=to();function i(s,a){return a=e(a,s),s=r(s,a),s==null||delete s[n(t(a))]}return L0=i,L0}var B0,hP;function eH(){if(hP)return B0;hP=1;var e=nh();function t(r){return e(r)?void 0:r}return B0=t,B0}var U0,mP;function tH(){if(mP)return U0;mP=1;var e=du(),t=Zc(),r=Lr(),n=e?e.isConcatSpreadable:void 0;function i(s){return r(s)||t(s)||!!(n&&s&&s[n])}return U0=i,U0}var V0,gP;function rH(){if(gP)return V0;gP=1;var e=HA(),t=tH();function r(n,i,s,a,o){var u=-1,c=n.length;for(s||(s=t),o||(o=[]);++u<c;){var l=n[u];i>0&&s(l)?i>1?r(l,i-1,s,a,o):e(o,l):a||(o[o.length]=l)}return o}return V0=r,V0}var z0,yP;function nH(){if(yP)return z0;yP=1;var e=rH();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return z0=t,z0}var W0,vP;function pB(){if(vP)return W0;vP=1;var e=nH(),t=$L(),r=JA();function n(i){return r(t(i,void 0,e),i+"")}return W0=n,W0}var J0,bP;function iH(){if(bP)return J0;bP=1;var e=KA(),t=rO(),r=QK(),n=il(),i=hu(),s=eH(),a=pB(),o=fB(),u=1,c=2,l=4,f=a(function(h,d){var g={};if(h==null)return g;var y=!1;d=e(d,function(E){return E=n(E,h),y||(y=E.length>1),E}),i(h,o(h),g),y&&(g=t(g,u|c|l,s));for(var v=d.length;v--;)r(g,d[v]);return g});return J0=f,J0}var sH=iH();const aH=Be.getDefaultExportFromCjs(sH);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function dB(e){return typeof e>"u"||e===null}function oH(e){return typeof e=="object"&&e!==null}function uH(e){return Array.isArray(e)?e:dB(e)?[]:[e]}function cH(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function lH(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function fH(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var pH=dB,dH=oH,hH=uH,mH=lH,gH=fH,yH=cH,Dr={isNothing:pH,isObject:dH,toArray:hH,repeat:mH,isNegativeZero:gH,extend:yH};function hB(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
27
+
28
+ `+e.mark.snippet),n+" "+r):n}function wc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=hB(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}wc.prototype=Object.create(Error.prototype);wc.prototype.constructor=wc;wc.prototype.toString=function(t){return this.name+": "+hB(this,t)};var mn=wc;function K0(e,t,r,n,i){var s="",a="",o=Math.floor(i/2)-1;return n-t>o&&(s=" ... ",t=n-o+s.length),r-n>o&&(a=" ...",r=n+o-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+s.length}}function H0(e,t){return Dr.repeat(" ",t-e.length)+e}function vH(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,a=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",u,c,l=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)c=K0(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),o=Dr.repeat(" ",t.indent)+H0((e.line-u+1).toString(),l)+" | "+c.str+`
29
+ `+o;for(c=K0(e.buffer,n[a],i[a],e.position,f),o+=Dr.repeat(" ",t.indent)+H0((e.line+1).toString(),l)+" | "+c.str+`
30
+ `,o+=Dr.repeat("-",t.indent+l+3+c.pos)+`^
31
+ `,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)c=K0(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),o+=Dr.repeat(" ",t.indent)+H0((e.line+u+1).toString(),l)+" | "+c.str+`
32
+ `;return o.replace(/\n$/,"")}var bH=vH,_H=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],EH=["scalar","sequence","mapping"];function SH(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function wH(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(_H.indexOf(r)===-1)throw new mn('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=SH(t.styleAliases||null),EH.indexOf(this.kind)===-1)throw new mn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Gr=wH;function _P(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,a){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=a)}),r[i]=n}),r}function xH(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function bw(e){return this.extend(e)}bw.prototype.extend=function(t){var r=[],n=[];if(t instanceof Gr)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new mn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Gr))throw new mn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new mn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new mn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Gr))throw new mn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(bw.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=_P(i,"implicit"),i.compiledExplicit=_P(i,"explicit"),i.compiledTypeMap=xH(i.compiledImplicit,i.compiledExplicit),i};var mB=bw,gB=new Gr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),yB=new Gr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),vB=new Gr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),bB=new mB({explicit:[gB,yB,vB]});function AH(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function OH(){return null}function CH(e){return e===null}var _B=new Gr("tag:yaml.org,2002:null",{kind:"scalar",resolve:AH,construct:OH,predicate:CH,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function RH(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function TH(e){return e==="true"||e==="True"||e==="TRUE"}function IH(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var EB=new Gr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:RH,construct:TH,predicate:IH,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function jH(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function kH(e){return 48<=e&&e<=55}function PH(e){return 48<=e&&e<=57}function NH(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!jH(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!kH(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!PH(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function MH(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function DH(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Dr.isNegativeZero(e)}var SB=new Gr("tag:yaml.org,2002:int",{kind:"scalar",resolve:NH,construct:MH,predicate:DH,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qH=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $H(e){return!(e===null||!qH.test(e)||e[e.length-1]==="_")}function FH(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var LH=/^[-+]?[0-9]+e/;function BH(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Dr.isNegativeZero(e))return"-0.0";return r=e.toString(10),LH.test(r)?r.replace("e",".e"):r}function UH(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Dr.isNegativeZero(e))}var wB=new Gr("tag:yaml.org,2002:float",{kind:"scalar",resolve:$H,construct:FH,predicate:UH,represent:BH,defaultStyle:"lowercase"}),xB=bB.extend({implicit:[_B,EB,SB,wB]}),AB=xB,OB=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),CB=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function VH(e){return e===null?!1:OB.exec(e)!==null||CB.exec(e)!==null}function zH(e){var t,r,n,i,s,a,o,u=0,c=null,l,f,h;if(t=OB.exec(e),t===null&&(t=CB.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],o=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,a,o,u)),c&&h.setTime(h.getTime()-c),h}function WH(e){return e.toISOString()}var RB=new Gr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:VH,construct:zH,instanceOf:Date,represent:WH});function JH(e){return e==="<<"||e===null}var TB=new Gr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:JH}),nO=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
33
+ \r`;function KH(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=nO;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function HH(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=nO,a=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):r===18?(o.push(a>>10&255),o.push(a>>2&255)):r===12&&o.push(a>>4&255),new Uint8Array(o)}function GH(e){var t="",r=0,n,i,s=e.length,a=nO;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function YH(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var IB=new Gr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:KH,construct:HH,predicate:YH,represent:GH}),XH=Object.prototype.hasOwnProperty,ZH=Object.prototype.toString;function QH(e){if(e===null)return!0;var t=[],r,n,i,s,a,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],a=!1,ZH.call(i)!=="[object Object]")return!1;for(s in i)if(XH.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function eG(e){return e!==null?e:[]}var jB=new Gr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:QH,construct:eG}),tG=Object.prototype.toString;function rG(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],tG.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function nG(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var kB=new Gr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:rG,construct:nG}),iG=Object.prototype.hasOwnProperty;function sG(e){if(e===null)return!0;var t,r=e;for(t in r)if(iG.call(r,t)&&r[t]!==null)return!1;return!0}function aG(e){return e!==null?e:{}}var PB=new Gr("tag:yaml.org,2002:set",{kind:"mapping",resolve:sG,construct:aG}),iO=AB.extend({implicit:[RB,TB],explicit:[IB,jB,kB,PB]}),pa=Object.prototype.hasOwnProperty,Tp=1,NB=2,MB=3,Ip=4,G0=1,oG=2,EP=3,uG=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cG=/[\x85\u2028\u2029]/,lG=/[,\[\]\{\}]/,DB=/^(?:!|!!|![a-z\-]+!)$/i,qB=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function SP(e){return Object.prototype.toString.call(e)}function rs(e){return e===10||e===13}function Ua(e){return e===9||e===32}function In(e){return e===9||e===32||e===10||e===13}function Fo(e){return e===44||e===91||e===93||e===123||e===125}function fG(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function pG(e){return e===120?2:e===117?4:e===85?8:0}function dG(e){return 48<=e&&e<=57?e-48:-1}function wP(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
34
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function hG(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var $B=new Array(256),FB=new Array(256);for(var To=0;To<256;To++)$B[To]=wP(To)?1:0,FB[To]=wP(To);function mG(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||iO,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function LB(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=bH(r),new mn(t,r)}function Ze(e,t){throw LB(e,t)}function jp(e,t){e.onWarning&&e.onWarning.call(null,LB(e,t))}var xP={YAML:function(t,r,n){var i,s,a;t.version!==null&&Ze(t,"duplication of %YAML directive"),n.length!==1&&Ze(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Ze(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&Ze(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&jp(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&Ze(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],DB.test(i)||Ze(t,"ill-formed tag handle (first argument) of the TAG directive"),pa.call(t.tagMap,i)&&Ze(t,'there is a previously declared suffix for "'+i+'" tag handle'),qB.test(s)||Ze(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Ze(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ca(e,t,r,n){var i,s,a,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,s=o.length;i<s;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Ze(e,"expected valid JSON character");else uG.test(o)&&Ze(e,"the stream contains non-printable characters");e.result+=o}}function AP(e,t,r,n){var i,s,a,o;for(Dr.isObject(r)||Ze(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,o=i.length;a<o;a+=1)s=i[a],pa.call(t,s)||(t[s]=r[s],n[s]=!0)}function Lo(e,t,r,n,i,s,a,o,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&Ze(e,"nested arrays are not supported inside keys"),typeof i=="object"&&SP(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&SP(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)AP(e,t,s[c],r);else AP(e,t,s,r);else!e.json&&!pa.call(r,i)&&pa.call(t,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,Ze(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function sO(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Ze(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Cr(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ua(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(rs(i))for(sO(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&jp(e,"deficient indentation"),n}function ah(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||In(r)))}function aO(e,t){t===1?e.result+=" ":t>1&&(e.result+=Dr.repeat(`
35
+ `,t-1))}function gG(e,t,r){var n,i,s,a,o,u,c,l,f=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),In(d)||Fo(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),In(i)||r&&Fo(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,o=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),In(i)||r&&Fo(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),In(n))break}else{if(e.position===e.lineStart&&ah(e)||r&&Fo(d))break;if(rs(d))if(u=e.line,c=e.lineStart,l=e.lineIndent,Cr(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=c,e.lineIndent=l;break}}o&&(ca(e,s,a,!1),aO(e,e.line-u),s=a=e.position,o=!1),Ua(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return ca(e,s,a,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function yG(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ca(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else rs(r)?(ca(e,n,i,!0),aO(e,Cr(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ah(e)?Ze(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Ze(e,"unexpected end of the stream within a single quoted scalar")}function vG(e,t){var r,n,i,s,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return ca(e,r,e.position,!0),e.position++,!0;if(o===92){if(ca(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),rs(o))Cr(e,!1,t);else if(o<256&&$B[o])e.result+=FB[o],e.position++;else if((a=pG(o))>0){for(i=a,s=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=fG(o))>=0?s=(s<<4)+a:Ze(e,"expected hexadecimal character");e.result+=hG(s),e.position++}else Ze(e,"unknown escape sequence");r=n=e.position}else rs(o)?(ca(e,r,n,!0),aO(e,Cr(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ah(e)?Ze(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Ze(e,"unexpected end of the stream within a double quoted scalar")}function bG(e,t){var r=!0,n,i,s,a=e.tag,o,u=e.anchor,c,l,f,h,d,g=Object.create(null),y,v,E,b;if(b=e.input.charCodeAt(e.position),b===91)l=93,d=!1,o=[];else if(b===123)l=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(Cr(e,!0,t),b=e.input.charCodeAt(e.position),b===l)return e.position++,e.tag=a,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=o,!0;r?b===44&&Ze(e,"expected the node content, but found ','"):Ze(e,"missed comma between flow collection entries"),v=y=E=null,f=h=!1,b===63&&(c=e.input.charCodeAt(e.position+1),In(c)&&(f=h=!0,e.position++,Cr(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Ho(e,t,Tp,!1,!0),v=e.tag,y=e.result,Cr(e,!0,t),b=e.input.charCodeAt(e.position),(h||e.line===n)&&b===58&&(f=!0,b=e.input.charCodeAt(++e.position),Cr(e,!0,t),Ho(e,t,Tp,!1,!0),E=e.result),d?Lo(e,o,g,v,y,E,n,i,s):f?o.push(Lo(e,null,g,v,y,E,n,i,s)):o.push(y),Cr(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Ze(e,"unexpected end of the stream within a flow collection")}function _G(e,t){var r,n,i=G0,s=!1,a=!1,o=t,u=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)G0===i?i=f===43?EP:oG:Ze(e,"repeat of a chomping mode identifier");else if((l=dG(f))>=0)l===0?Ze(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Ze(e,"repeat of an indentation width identifier"):(o=t+l-1,a=!0);else break;if(Ua(f)){do f=e.input.charCodeAt(++e.position);while(Ua(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!rs(f)&&f!==0)}for(;f!==0;){for(sO(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),rs(f)){u++;continue}if(e.lineIndent<o){i===EP?e.result+=Dr.repeat(`
36
+ `,s?1+u:u):i===G0&&s&&(e.result+=`
37
+ `);break}for(n?Ua(f)?(c=!0,e.result+=Dr.repeat(`
38
+ `,s?1+u:u)):c?(c=!1,e.result+=Dr.repeat(`
39
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=Dr.repeat(`
40
+ `,u):e.result+=Dr.repeat(`
41
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!rs(f)&&f!==0;)f=e.input.charCodeAt(++e.position);ca(e,r,e.position,!1)}return!0}function OP(e,t){var r,n=e.tag,i=e.anchor,s=[],a,o=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ze(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!In(a))));){if(o=!0,e.position++,Cr(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Ho(e,t,MB,!1,!0),s.push(e.result),Cr(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Ze(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function EG(e,t,r){var n,i,s,a,o,u,c=e.tag,l=e.anchor,f={},h=Object.create(null),d=null,g=null,y=null,v=!1,E=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),b=e.input.charCodeAt(e.position);b!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ze(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(b===63||b===58)&&In(n))b===63?(v&&(Lo(e,f,h,d,g,null,a,o,u),d=g=y=null),E=!0,v=!0,i=!0):v?(v=!1,i=!0):Ze(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=n;else{if(a=e.line,o=e.lineStart,u=e.position,!Ho(e,r,NB,!1,!0))break;if(e.line===s){for(b=e.input.charCodeAt(e.position);Ua(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),In(b)||Ze(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Lo(e,f,h,d,g,null,a,o,u),d=g=y=null),E=!0,v=!1,i=!1,d=e.tag,g=e.result;else if(E)Ze(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(E)Ze(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===s||e.lineIndent>t)&&(v&&(a=e.line,o=e.lineStart,u=e.position),Ho(e,t,Ip,!0,i)&&(v?g=e.result:y=e.result),v||(Lo(e,f,h,d,g,y,a,o,u),d=g=y=null),Cr(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&b!==0)Ze(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Lo(e,f,h,d,g,null,a,o,u),E&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),E}function SG(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Ze(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Ze(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!In(a);)a===33&&(n?Ze(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),DB.test(i)||Ze(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),lG.test(s)&&Ze(e,"tag suffix cannot contain flow indicator characters")}s&&!qB.test(s)&&Ze(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Ze(e,"tag name is malformed: "+s)}return r?e.tag=s:pa.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Ze(e,'undeclared tag handle "'+i+'"'),!0}function wG(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Ze(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!In(r)&&!Fo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ze(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function xG(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!In(n)&&!Fo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Ze(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),pa.call(e.anchorMap,r)||Ze(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Cr(e,!0,-1),!0}function Ho(e,t,r,n,i){var s,a,o,u=1,c=!1,l=!1,f,h,d,g,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=o=Ip===r||MB===r,n&&Cr(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;SG(e)||wG(e);)Cr(e,!0,-1)?(c=!0,o=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):o=!1;if(o&&(o=c||i),(u===1||Ip===r)&&(Tp===r||NB===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?o&&(OP(e,v)||EG(e,v,y))||bG(e,y)?l=!0:(a&&_G(e,y)||yG(e,y)||vG(e,y)?l=!0:xG(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Ze(e,"alias node should not have any properties")):gG(e,y,Tp===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=o&&OP(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Ze(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(pa.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(e.tag.slice(0,d[f].tag.length)===d[f].tag){g=d[f];break}g||Ze(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Ze(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ze(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function AG(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Cr(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!In(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Ze(e,"directive name must not be less than one character in length");a!==0;){for(;Ua(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!rs(a));break}if(rs(a))break;for(r=e.position;a!==0&&!In(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&sO(e),pa.call(xP,n)?xP[n](e,n,i):jp(e,'unknown document directive "'+n+'"')}if(Cr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Cr(e,!0,-1)):s&&Ze(e,"directives end mark is expected"),Ho(e,e.lineIndent-1,Ip,!1,!0),Cr(e,!0,-1),e.checkLineBreaks&&cG.test(e.input.slice(t,e.position))&&jp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ah(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Cr(e,!0,-1));return}if(e.position<e.length-1)Ze(e,"end of the stream or a document separator is expected");else return}function BB(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
42
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new mG(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Ze(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)AG(r);return r.documents}function OG(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=BB(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function CG(e,t){var r=BB(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new mn("expected a single document in the stream, but found more")}}var RG=OG,TG=CG,UB={loadAll:RG,load:TG},VB=Object.prototype.toString,zB=Object.prototype.hasOwnProperty,oO=65279,IG=9,xc=10,jG=13,kG=32,PG=33,NG=34,_w=35,MG=37,DG=38,qG=39,$G=42,WB=44,FG=45,kp=58,LG=61,BG=62,UG=63,VG=64,JB=91,KB=93,zG=96,HB=123,WG=124,GB=125,sn={};sn[0]="\\0";sn[7]="\\a";sn[8]="\\b";sn[9]="\\t";sn[10]="\\n";sn[11]="\\v";sn[12]="\\f";sn[13]="\\r";sn[27]="\\e";sn[34]='\\"';sn[92]="\\\\";sn[133]="\\N";sn[160]="\\_";sn[8232]="\\L";sn[8233]="\\P";var JG=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],KG=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function HG(e,t){var r,n,i,s,a,o,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],o=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&zB.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}function GG(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new mn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Dr.repeat("0",n-t.length)+t}var YG=1,Ac=2;function XG(e){this.schema=e.schema||iO,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Dr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=HG(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ac:YG,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function CP(e,t){for(var r=Dr.repeat(" ",t),n=0,i=-1,s="",a,o=e.length;n<o;)i=e.indexOf(`
43
+ `,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
44
+ `&&(s+=r),s+=a;return s}function Ew(e,t){return`
45
+ `+Dr.repeat(" ",e.indent*t)}function ZG(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Pp(e){return e===kG||e===IG}function Oc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==oO||65536<=e&&e<=1114111}function RP(e){return Oc(e)&&e!==oO&&e!==jG&&e!==xc}function TP(e,t,r){var n=RP(e),i=n&&!Pp(e);return(r?n:n&&e!==WB&&e!==JB&&e!==KB&&e!==HB&&e!==GB)&&e!==_w&&!(t===kp&&!i)||RP(t)&&!Pp(t)&&e===_w||t===kp&&i}function QG(e){return Oc(e)&&e!==oO&&!Pp(e)&&e!==FG&&e!==UG&&e!==kp&&e!==WB&&e!==JB&&e!==KB&&e!==HB&&e!==GB&&e!==_w&&e!==DG&&e!==$G&&e!==PG&&e!==WG&&e!==LG&&e!==BG&&e!==qG&&e!==NG&&e!==MG&&e!==VG&&e!==zG}function eY(e){return!Pp(e)&&e!==kp}function rc(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function YB(e){var t=/^\n* /;return t.test(e)}var XB=1,Sw=2,ZB=3,QB=4,Do=5;function tY(e,t,r,n,i,s,a,o){var u,c=0,l=null,f=!1,h=!1,d=n!==-1,g=-1,y=QG(rc(e,0))&&eY(rc(e,e.length-1));if(t||a)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=rc(e,u),!Oc(c))return Do;y=y&&TP(c,l,o),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=rc(e,u),c===xc)f=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!Oc(c))return Do;y=y&&TP(c,l,o),l=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!f&&!h?y&&!a&&!i(e)?XB:s===Ac?Do:Sw:r>9&&YB(e)?Do:a?s===Ac?Do:Sw:h?QB:ZB}function rY(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Ac?'""':"''";if(!e.noCompatMode&&(JG.indexOf(t)!==-1||KG.test(t)))return e.quotingType===Ac?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),o=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return ZG(e,c)}switch(tY(t,o,e.indent,a,u,e.quotingType,e.forceQuotes&&!n,i)){case XB:return t;case Sw:return"'"+t.replace(/'/g,"''")+"'";case ZB:return"|"+IP(t,e.indent)+jP(CP(t,s));case QB:return">"+IP(t,e.indent)+jP(CP(nY(t,a),s));case Do:return'"'+iY(t)+'"';default:throw new mn("impossible error: invalid scalar style")}}()}function IP(e,t){var r=YB(e)?String(t):"",n=e[e.length-1]===`
46
+ `,i=n&&(e[e.length-2]===`
47
+ `||e===`
48
+ `),s=i?"+":n?"":"-";return r+s+`
49
+ `}function jP(e){return e[e.length-1]===`
50
+ `?e.slice(0,-1):e}function nY(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
51
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,kP(e.slice(0,c),t)}(),i=e[0]===`
52
+ `||e[0]===" ",s,a;a=r.exec(e);){var o=a[1],u=a[2];s=u[0]===" ",n+=o+(!i&&!s&&u!==""?`
53
+ `:"")+kP(u,t),i=s}return n}function kP(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,o=0,u="";n=r.exec(e);)o=n.index,o-i>t&&(s=a>i?a:o,u+=`
54
+ `+e.slice(i,s),i=s+1),a=o;return u+=`
55
+ `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
56
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}function iY(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=rc(e,i),n=sn[r],!n&&Oc(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||GG(r);return t}function sY(e,t,r){var n="",i=e.tag,s,a,o;for(s=0,a=r.length;s<a;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(Cs(e,t,o,!1,!1)||typeof o>"u"&&Cs(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function PP(e,t,r,n){var i="",s=e.tag,a,o,u;for(a=0,o=r.length;a<o;a+=1)u=r[a],e.replacer&&(u=e.replacer.call(r,String(a),u)),(Cs(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Cs(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Ew(e,t)),e.dump&&xc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function aY(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,o,u,c,l;for(a=0,o=s.length;a<o;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=s[a],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),Cs(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Cs(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function oY(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),o,u,c,l,f,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new mn("sortKeys must be a boolean or a function");for(o=0,u=a.length;o<u;o+=1)h="",(!n||i!=="")&&(h+=Ew(e,t)),c=a[o],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),Cs(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&xc===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=Ew(e,t)),Cs(e,t+1,l,!0,f)&&(e.dump&&xc===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function NP(e,t,r){var n,i,s,a,o,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(o=i[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(u=e.styleMap[o.tag]||o.defaultStyle,VB.call(o.represent)==="[object Function]")n=o.represent(t,u);else if(zB.call(o.represent,u))n=o.represent[u](t,u);else throw new mn("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function Cs(e,t,r,n,i,s,a){e.tag=null,e.dump=r,NP(e,r,!1)||NP(e,r,!0);var o=VB.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var l=o==="[object Object]"||o==="[object Array]",f,h;if(l&&(f=e.duplicates.indexOf(r),h=f!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(l&&h&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(oY(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(aY(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?PP(e,t-1,e.dump,i):PP(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(sY(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&rY(e,e.dump,t,s,u);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new mn("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function uY(e,t){var r=[],n=[],i,s;for(ww(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function ww(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)ww(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)ww(e[n[i]],t,r)}function cY(e,t){t=t||{};var r=new XG(t);r.noRefs||uY(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Cs(r,0,n,!0,!0)?r.dump+`
57
+ `:""}var lY=cY,fY={dump:lY};function uO(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var pY=Gr,dY=mB,hY=bB,Cc=xB,mY=AB,gY=iO,yY=UB.load,vY=UB.loadAll,bY=fY.dump,_Y=mn,EY={binary:IB,float:wB,map:vB,null:_B,pairs:kB,set:PB,timestamp:RB,bool:EB,int:SB,merge:TB,omap:jB,seq:yB,str:gB},SY=uO("safeLoad","load"),wY=uO("safeLoadAll","loadAll"),xY=uO("safeDump","dump"),Ja={Type:pY,Schema:dY,FAILSAFE_SCHEMA:hY,JSON_SCHEMA:Cc,CORE_SCHEMA:mY,DEFAULT_SCHEMA:gY,load:yY,loadAll:vY,dump:bY,YAMLException:_Y,types:EY,safeLoad:SY,safeLoadAll:wY,safeDump:xY},hp={exports:{}},AY=hp.exports,MP;function OY(){return MP||(MP=1,function(e){(function(t,r){e.exports?e.exports=r():function n(){document&&document.body?t.zenscroll=r():setTimeout(n,9)}()})(AY,function(){var t=function(c){return c&&"getComputedStyle"in window&&window.getComputedStyle(c)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var r=function(c,l,f){l=l||999,!f&&f!==0&&(f=9);var h,d=function(_){h=_},g=function(){clearTimeout(h),d(0)},y=function(_){return Math.max(0,c.getTopOf(_)-f)},v=function(_,A,C){if(g(),A===0||A&&A<0||t(c.body))c.toY(_),C&&C();else{var R=c.getY(),O=Math.max(0,_)-R,M=new Date().getTime();A=A||Math.min(Math.abs(O),l),function k(){d(setTimeout(function(){var D=Math.min(1,(new Date().getTime()-M)/A),P=Math.max(0,Math.floor(R+O*(D<.5?2*D*D:D*(4-D*2)-1)));c.toY(P),D<1&&c.getHeight()+P<c.body.scrollHeight?k():(setTimeout(g,99),C&&C())},9))}()}},E=function(_,A,C){v(y(_),A,C)},b=function(_,A,C){var R=_.getBoundingClientRect().height,O=c.getTopOf(_)+R,M=c.getHeight(),k=c.getY(),D=k+M;y(_)<k||R+f>M?E(_,A,C):O+f>D?v(O-M+f,A,C):C&&C()},S=function(_,A,C,R){v(Math.max(0,c.getTopOf(_)-c.getHeight()/2+(C||_.getBoundingClientRect().height/2)),A,R)},x=function(_,A){return(_===0||_)&&(l=_),(A===0||A)&&(f=A),{defaultDuration:l,edgeOffset:f}};return{setup:x,to:E,toY:v,intoView:b,center:S,stop:g,moving:function(){return!!h},getY:c.getY,getTopOf:c.getTopOf}},n=document.documentElement,i=function(){return window.scrollY||n.scrollTop},s=r({body:document.scrollingElement||document.body,toY:function(c){window.scrollTo(0,c)},getY:i,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(c){return c.getBoundingClientRect().top+i()-n.offsetTop}});if(s.createScroller=function(c,l,f){return r({body:c,toY:function(h){c.scrollTop=h},getY:function(){return c.scrollTop},getHeight:function(){return Math.min(c.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(h){return h.offsetTop}},l,f)},"addEventListener"in window&&!window.noZensmooth&&!t(document.body)){var a="history"in window&&"pushState"in history,o=a&&"scrollRestoration"in history;o&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){o&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(c){c.state&&"zenscrollY"in c.state&&s.toY(c.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var c=s.setup().edgeOffset;if(c){var l=document.getElementById(window.location.href.split("#")[1]);if(l){var f=Math.max(0,s.getTopOf(l)-c),h=s.getY()-f;0<=h&&h<9&&window.scrollTo(0,f)}}},9)},!1);var u=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(c){for(var l=c.target;l&&l.tagName!=="A";)l=l.parentNode;if(!(!l||c.which!==1||c.shiftKey||c.metaKey||c.ctrlKey||c.altKey)){if(o){var f=history.state&&typeof history.state=="object"?history.state:{};f.zenscrollY=s.getY();try{history.replaceState(f,"")}catch{}}var h=l.getAttribute("href")||"";if(h.indexOf("#")===0&&!u.test(l.className)){var d=0,g=document.getElementById(h.substring(1));if(h!=="#"){if(!g)return;d=s.getTopOf(g)}c.preventDefault();var y=function(){window.location=h},v=s.setup().edgeOffset;v&&(d=Math.max(0,d-v),a&&(y=function(){history.pushState({},"",h)})),s.toY(d,null,y)}}},!1)}return s})}(hp)),hp.exports}var CY=OY();const RY=Be.getDefaultExportFromCjs(CY);/**
58
+ * @license
59
+ * MIT License
60
+ *
61
+ * Copyright (c) 2014-present, Lee Byron and other contributors.
62
+ *
63
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
64
+ * of this software and associated documentation files (the "Software"), to deal
65
+ * in the Software without restriction, including without limitation the rights
66
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
67
+ * copies of the Software, and to permit persons to whom the Software is
68
+ * furnished to do so, subject to the following conditions:
69
+ *
70
+ * The above copyright notice and this permission notice shall be included in all
71
+ * copies or substantial portions of the Software.
72
+ *
73
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
76
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
78
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
79
+ * SOFTWARE.
80
+ */var al="delete",Gt=5,Jn=1<<Gt,gn=Jn-1,xt={};function xw(){return{value:!1}}function li(e){e&&(e.value=!0)}function cO(){}function Go(e){return e.size===void 0&&(e.size=e.__iterate(e6)),e.size}function da(e,t){if(typeof t!="number"){var r=t>>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?Go(e)+t:t}function e6(){return!0}function ol(e,t,r){return(e===0&&!r6(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function yu(e,t){return t6(e,t,0)}function ul(e,t){return t6(e,t,t)}function t6(e,t,r){return e===void 0?r:r6(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function r6(e){return e<0||e===0&&1/e===-1/0}var n6="@@__IMMUTABLE_ITERABLE__@@";function kn(e){return!!(e&&e[n6])}var Np="@@__IMMUTABLE_KEYED__@@";function Xt(e){return!!(e&&e[Np])}var Mp="@@__IMMUTABLE_INDEXED__@@";function Pn(e){return!!(e&&e[Mp])}function oh(e){return Xt(e)||Pn(e)}var $r=function(t){return kn(t)?t:rn(t)},mi=function(e){function t(r){return Xt(r)?r:va(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}($r),ro=function(e){function t(r){return Pn(r)?r:yi(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}($r),vu=function(e){function t(r){return kn(r)&&!oh(r)?r:Eu(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}($r);$r.Keyed=mi;$r.Indexed=ro;$r.Set=vu;var i6="@@__IMMUTABLE_SEQ__@@";function uh(e){return!!(e&&e[i6])}var s6="@@__IMMUTABLE_RECORD__@@";function no(e){return!!(e&&e[s6])}function gi(e){return kn(e)||no(e)}var ha="@@__IMMUTABLE_ORDERED__@@";function ji(e){return!!(e&&e[ha])}var bu=0,Gn=1,Yn=2,Aw=typeof Symbol=="function"&&Symbol.iterator,a6="@@iterator",ch=Aw||a6,Ct=function(t){this.next=t};Ct.prototype.toString=function(){return"[Iterator]"};Ct.KEYS=bu;Ct.VALUES=Gn;Ct.ENTRIES=Yn;Ct.prototype.inspect=Ct.prototype.toSource=function(){return this.toString()};Ct.prototype[ch]=function(){return this};function ir(e,t,r,n){var i=e===bu?t:e===Gn?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function tn(){return{value:void 0,done:!0}}function lO(e){return Array.isArray(e)?!0:!!lh(e)}function DP(e){return e&&typeof e.next=="function"}function Ow(e){var t=lh(e);return t&&t.call(e)}function lh(e){var t=e&&(Aw&&e[Aw]||e[a6]);if(typeof t=="function")return t}function TY(e){var t=lh(e);return t&&t===e.entries}function IY(e){var t=lh(e);return t&&t===e.keys}var _u=Object.prototype.hasOwnProperty;function fO(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var rn=function(e){function t(r){return r==null?dO():gi(r)?r.toSeq():kY(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,i){var s=this._cache;if(s){for(var a=s.length,o=0;o!==a;){var u=s[i?a-++o:o++];if(n(u[1],u[0],this)===!1)break}return o}return this.__iterateUncached(n,i)},t.prototype.__iterator=function(n,i){var s=this._cache;if(s){var a=s.length,o=0;return new Ct(function(){if(o===a)return tn();var u=s[i?a-++o:o++];return ir(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},t}($r),va=function(e){function t(r){return r==null?dO().toKeyedSeq():kn(r)?Xt(r)?r.toSeq():r.fromEntrySeq():no(r)?r.toSeq():hO(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(rn),yi=function(e){function t(r){return r==null?dO():kn(r)?Xt(r)?r.entrySeq():r.toIndexedSeq():no(r)?r.toSeq().entrySeq():o6(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(rn),Eu=function(e){function t(r){return(kn(r)&&!oh(r)?r:yi(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(rn);rn.isSeq=uh;rn.Keyed=va;rn.Set=Eu;rn.Indexed=yi;rn.prototype[i6]=!0;var Yo=function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this.has(n)?this._array[da(this,n)]:i},t.prototype.__iterate=function(n,i){for(var s=this._array,a=s.length,o=0;o!==a;){var u=i?a-++o:o++;if(n(s[u],u,this)===!1)break}return o},t.prototype.__iterator=function(n,i){var s=this._array,a=s.length,o=0;return new Ct(function(){if(o===a)return tn();var u=i?a-++o:o++;return ir(n,u,s[u])})},t}(yi),pO=function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return i!==void 0&&!this.has(n)?i:this._object[n]},t.prototype.has=function(n){return _u.call(this._object,n)},t.prototype.__iterate=function(n,i){for(var s=this._object,a=this._keys,o=a.length,u=0;u!==o;){var c=a[i?o-++u:u++];if(n(s[c],c,this)===!1)break}return u},t.prototype.__iterator=function(n,i){var s=this._object,a=this._keys,o=a.length,u=0;return new Ct(function(){if(u===o)return tn();var c=a[i?o-++u:u++];return ir(n,c,s[c])})},t}(va);pO.prototype[ha]=!0;var jY=function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(i)return this.cacheResult().__iterate(n,i);var s=this._collection,a=Ow(s),o=0;if(DP(a))for(var u;!(u=a.next()).done&&n(u.value,o++,this)!==!1;);return o},t.prototype.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var s=this._collection,a=Ow(s);if(!DP(a))return new Ct(tn);var o=0;return new Ct(function(){var u=a.next();return u.done?u:ir(n,o++,u.value)})},t}(yi),qP;function dO(){return qP||(qP=new Yo([]))}function hO(e){var t=mO(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new pO(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function o6(e){var t=mO(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function kY(e){var t=mO(e);if(t)return TY(e)?t.fromEntrySeq():IY(e)?t.toSetSeq():t;if(typeof e=="object")return new pO(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function mO(e){return fO(e)?new Yo(e):lO(e)?new jY(e):void 0}var u6="@@__IMMUTABLE_MAP__@@";function fh(e){return!!(e&&e[u6])}function gO(e){return fh(e)&&ji(e)}function Cw(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function Rr(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(Cw(e)&&Cw(t)&&e.equals(t))}var Uu=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,i=r&65535;return n*i+((t>>>16)*i+n*(r>>>16)<<16>>>0)|0};function ph(e){return e>>>1&1073741824|e&3221225471}var PY=Object.prototype.valueOf;function Tn(e){if(e==null)return $P(e);if(typeof e.hashCode=="function")return ph(e.hashCode(e));var t=FY(e);if(t==null)return $P(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return NY(t);case"string":return t.length>LY?MY(t):Rw(t);case"object":case"function":return qY(t);case"symbol":return DY(t);default:if(typeof t.toString=="function")return Rw(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function $P(e){return e===null?1108378658:1108378659}function NY(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return ph(t)}function MY(e){var t=Z0[e];return t===void 0&&(t=Rw(e),X0===BY&&(X0=0,Z0={}),X0++,Z0[e]=t),t}function Rw(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return ph(t)}function DY(e){var t=BP[e];return t!==void 0||(t=c6(),BP[e]=t),t}function qY(e){var t;if(Tw&&(t=Iw.get(e),t!==void 0)||(t=e[qa],t!==void 0)||!LP&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[qa],t!==void 0||(t=$Y(e),t!==void 0)))return t;if(t=c6(),Tw)Iw.set(e,t);else{if(FP!==void 0&&FP(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(LP)Object.defineProperty(e,qa,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[qa]=t;else if(e.nodeType!==void 0)e[qa]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var FP=Object.isExtensible,LP=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function $Y(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function FY(e){return e.valueOf!==PY&&typeof e.valueOf=="function"?e.valueOf(e):e}function c6(){var e=++Y0;return Y0&1073741824&&(Y0=0),e}var Tw=typeof WeakMap=="function",Iw;Tw&&(Iw=new WeakMap);var BP=Object.create(null),Y0=0,qa="__immutablehash__";typeof Symbol=="function"&&(qa=Symbol(qa));var LY=16,BY=255,X0=0,Z0={},dh=function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this._iter.get(n,i)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,i=yO(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},t.prototype.map=function(n,i){var s=this,a=h6(this,n,i);return this._useKeys||(a.valueSeq=function(){return s._iter.toSeq().map(n,i)}),a},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a,o){return n(a,o,s)},i)},t.prototype.__iterator=function(n,i){return this._iter.__iterator(n,i)},t}(va);dh.prototype[ha]=!0;var l6=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this,a=0;return i&&Go(this),this._iter.__iterate(function(o){return n(o,i?s.size-++a:a++,s)},i)},t.prototype.__iterator=function(n,i){var s=this,a=this._iter.__iterator(Gn,i),o=0;return i&&Go(this),new Ct(function(){var u=a.next();return u.done?u:ir(n,i?s.size-++o:o++,u.value,u)})},t}(yi),f6=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a){return n(a,a,s)},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(Gn,i);return new Ct(function(){var a=s.next();return a.done?a:ir(n,a.value,a.value,a)})},t}(Eu),p6=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a){if(a){VP(a);var o=kn(a);return n(o?a.get(1):a[1],o?a.get(0):a[0],s)}},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(Gn,i);return new Ct(function(){for(;;){var a=s.next();if(a.done)return a;var o=a.value;if(o){VP(o);var u=kn(o);return ir(n,u?o.get(0):o[0],u?o.get(1):o[1],a)}}})},t}(va);l6.prototype.cacheResult=dh.prototype.cacheResult=f6.prototype.cacheResult=p6.prototype.cacheResult=_O;function d6(e){var t=cs(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=_O,t.__iterateUncached=function(r,n){var i=this;return e.__iterate(function(s,a){return r(a,s,i)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===Yn){var i=e.__iterator(r,n);return new Ct(function(){var s=i.next();if(!s.done){var a=s.value[0];s.value[0]=s.value[1],s.value[1]=a}return s})}return e.__iterator(r===Gn?bu:Gn,n)},t}function h6(e,t,r){var n=cs(e);return n.size=e.size,n.has=function(i){return e.has(i)},n.get=function(i,s){var a=e.get(i,xt);return a===xt?s:t.call(r,a,i,e)},n.__iterateUncached=function(i,s){var a=this;return e.__iterate(function(o,u,c){return i(t.call(r,o,u,c),u,a)!==!1},s)},n.__iteratorUncached=function(i,s){var a=e.__iterator(Yn,s);return new Ct(function(){var o=a.next();if(o.done)return o;var u=o.value,c=u[0];return ir(i,c,t.call(r,u[1],c,e),o)})},n}function yO(e,t){var r=this,n=cs(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var i=d6(e);return i.reverse=function(){return e.flip()},i}),n.get=function(i,s){return e.get(t?i:-1-i,s)},n.has=function(i){return e.has(t?i:-1-i)},n.includes=function(i){return e.includes(i)},n.cacheResult=_O,n.__iterate=function(i,s){var a=this,o=0;return s&&Go(e),e.__iterate(function(u,c){return i(u,t?c:s?a.size-++o:o++,a)},!s)},n.__iterator=function(i,s){var a=0;s&&Go(e);var o=e.__iterator(Yn,!s);return new Ct(function(){var u=o.next();if(u.done)return u;var c=u.value;return ir(i,t?c[0]:s?r.size-++a:a++,c[1],u)})},n}function m6(e,t,r,n){var i=cs(e);return n&&(i.has=function(s){var a=e.get(s,xt);return a!==xt&&!!t.call(r,a,s,e)},i.get=function(s,a){var o=e.get(s,xt);return o!==xt&&t.call(r,o,s,e)?o:a}),i.__iterateUncached=function(s,a){var o=this,u=0;return e.__iterate(function(c,l,f){if(t.call(r,c,l,f))return u++,s(c,n?l:u-1,o)},a),u},i.__iteratorUncached=function(s,a){var o=e.__iterator(Yn,a),u=0;return new Ct(function(){for(;;){var c=o.next();if(c.done)return c;var l=c.value,f=l[0],h=l[1];if(t.call(r,h,f,e))return ir(s,n?f:u++,h,c)}})},i}function UY(e,t,r){var n=so().asMutable();return e.__iterate(function(i,s){n.update(t.call(r,i,s,e),0,function(a){return a+1})}),n.asImmutable()}function VY(e,t,r){var n=Xt(e),i=(ji(e)?is():so()).asMutable();e.__iterate(function(a,o){i.update(t.call(r,a,o,e),function(u){return u=u||[],u.push(n?[o,a]:a),u})});var s=bO(e);return i.map(function(a){return Ht(e,s(a))}).asImmutable()}function zY(e,t,r){var n=Xt(e),i=[[],[]];e.__iterate(function(a,o){i[t.call(r,a,o,e)?1:0].push(n?[o,a]:a)});var s=bO(e);return i.map(function(a){return Ht(e,s(a))})}function vO(e,t,r,n){var i=e.size;if(ol(t,r,i))return e;if(typeof i>"u"&&(t<0||r<0))return vO(e.toSeq().cacheResult(),t,r,n);var s=yu(t,i),a=ul(r,i),o=a-s,u;o===o&&(u=o<0?0:o);var c=cs(e);return c.size=u===0?u:e.size&&u||void 0,!n&&uh(e)&&u>=0&&(c.get=function(l,f){return l=da(this,l),l>=0&&l<u?e.get(l+s,f):f}),c.__iterateUncached=function(l,f){var h=this;if(u===0)return 0;if(f)return this.cacheResult().__iterate(l,f);var d=0,g=!0,y=0;return e.__iterate(function(v,E){if(!(g&&(g=d++<s)))return y++,l(v,n?E:y-1,h)!==!1&&y!==u}),y},c.__iteratorUncached=function(l,f){if(u!==0&&f)return this.cacheResult().__iterator(l,f);if(u===0)return new Ct(tn);var h=e.__iterator(l,f),d=0,g=0;return new Ct(function(){for(;d++<s;)h.next();if(++g>u)return tn();var y=h.next();return n||l===Gn||y.done?y:l===bu?ir(l,g-1,void 0,y):ir(l,g-1,y.value[1],y)})},c}function WY(e,t,r){var n=cs(e);return n.__iterateUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterate(i,s);var o=0;return e.__iterate(function(u,c,l){return t.call(r,u,c,l)&&++o&&i(u,c,a)}),o},n.__iteratorUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterator(i,s);var o=e.__iterator(Yn,s),u=!0;return new Ct(function(){if(!u)return tn();var c=o.next();if(c.done)return c;var l=c.value,f=l[0],h=l[1];return t.call(r,h,f,a)?i===Yn?c:ir(i,f,h,c):(u=!1,tn())})},n}function g6(e,t,r,n){var i=cs(e);return i.__iterateUncached=function(s,a){var o=this;if(a)return this.cacheResult().__iterate(s,a);var u=!0,c=0;return e.__iterate(function(l,f,h){if(!(u&&(u=t.call(r,l,f,h))))return c++,s(l,n?f:c-1,o)}),c},i.__iteratorUncached=function(s,a){var o=this;if(a)return this.cacheResult().__iterator(s,a);var u=e.__iterator(Yn,a),c=!0,l=0;return new Ct(function(){var f,h,d;do{if(f=u.next(),f.done)return n||s===Gn?f:s===bu?ir(s,l++,void 0,f):ir(s,l++,f.value[1],f);var g=f.value;h=g[0],d=g[1],c&&(c=t.call(r,d,h,o))}while(c);return s===Yn?f:ir(s,h,d,f)})},i}var JY=function(e){function t(r){this._wrappedIterables=r.flatMap(function(n){return n._wrappedIterables?n._wrappedIterables:[n]}),this.size=this._wrappedIterables.reduce(function(n,i){if(n!==void 0){var s=i.size;if(s!==void 0)return n+s}},0),this[Np]=this._wrappedIterables[0][Np],this[Mp]=this._wrappedIterables[0][Mp],this[ha]=this._wrappedIterables[0][ha]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(this._wrappedIterables.length!==0){if(i)return this.cacheResult().__iterate(n,i);for(var s=0,a=Xt(this),o=a?Yn:Gn,u=this._wrappedIterables[s].__iterator(o,i),c=!0,l=0;c;){for(var f=u.next();f.done;){if(s++,s===this._wrappedIterables.length)return l;u=this._wrappedIterables[s].__iterator(o,i),f=u.next()}var h=a?n(f.value[1],f.value[0],this):n(f.value,l,this);c=h!==!1,l++}return l}},t.prototype.__iteratorUncached=function(n,i){var s=this;if(this._wrappedIterables.length===0)return new Ct(tn);if(i)return this.cacheResult().__iterator(n,i);var a=0,o=this._wrappedIterables[a].__iterator(n,i);return new Ct(function(){for(var u=o.next();u.done;){if(a++,a===s._wrappedIterables.length)return u;o=s._wrappedIterables[a].__iterator(n,i),u=o.next()}return u})},t}(rn);function KY(e,t){var r=Xt(e),n=[e].concat(t).map(function(s){return kn(s)?r&&(s=mi(s)):s=r?hO(s):o6(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var i=n[0];if(i===e||r&&Xt(i)||Pn(e)&&Pn(i))return i}return new JY(n)}function y6(e,t,r){var n=cs(e);return n.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var a=0,o=!1;function u(c,l){c.__iterate(function(f,h){return(!t||l<t)&&kn(f)?u(f,l+1):(a++,i(f,r?h:a-1,n)===!1&&(o=!0)),!o},s)}return u(e,0),a},n.__iteratorUncached=function(i,s){if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(i,s),o=[],u=0;return new Ct(function(){for(;a;){var c=a.next();if(c.done!==!1){a=o.pop();continue}var l=c.value;if(i===Yn&&(l=l[1]),(!t||o.length<t)&&kn(l))o.push(a),a=l.__iterator(i,s);else return r?c:ir(i,u++,l,c)}return tn()})},n}function HY(e,t,r){var n=bO(e);return e.toSeq().map(function(i,s){return n(t.call(r,i,s,e))}).flatten(!0)}function GY(e,t){var r=cs(e);return r.size=e.size&&e.size*2-1,r.__iterateUncached=function(n,i){var s=this,a=0;return e.__iterate(function(o){return(!a||n(t,a++,s)!==!1)&&n(o,a++,s)!==!1},i),a},r.__iteratorUncached=function(n,i){var s=e.__iterator(Gn,i),a=0,o;return new Ct(function(){return(!o||a%2)&&(o=s.next(),o.done)?o:a%2?ir(n,a++,t):ir(n,a++,o.value,o)})},r}function Xo(e,t,r){t||(t=v6);var n=Xt(e),i=0,s=e.toSeq().map(function(a,o){return[o,a,i++,r?r(a,o,e):a]}).valueSeq().toArray();return s.sort(function(a,o){return t(a[3],o[3])||a[2]-o[2]}).forEach(n?function(a,o){s[o].length=2}:function(a,o){s[o]=a[1]}),n?va(s):Pn(e)?yi(s):Eu(s)}function Kf(e,t,r){if(t||(t=v6),r){var n=e.toSeq().map(function(i,s){return[i,r(i,s,e)]}).reduce(function(i,s){return UP(t,i[1],s[1])?s:i});return n&&n[0]}return e.reduce(function(i,s){return UP(t,i,s)?s:i})}function UP(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r==null||r!==r)||n>0}function Hf(e,t,r,n){var i=cs(e),s=new Yo(r).map(function(a){return a.size});return i.size=n?s.max():s.min(),i.__iterate=function(a,o){for(var u=this.__iterator(Gn,o),c,l=0;!(c=u.next()).done&&a(c.value,l++,this)!==!1;);return l},i.__iteratorUncached=function(a,o){var u=r.map(function(f){return f=$r(f),Ow(o?f.reverse():f)}),c=0,l=!1;return new Ct(function(){var f;return l||(f=u.map(function(h){return h.next()}),l=n?f.every(function(h){return h.done}):f.some(function(h){return h.done})),l?tn():ir(a,c++,t.apply(null,f.map(function(h){return h.value})))})},i}function Ht(e,t){return e===t?e:uh(e)?t:e.constructor(t)}function VP(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function bO(e){return Xt(e)?mi:Pn(e)?ro:vu}function cs(e){return Object.create((Xt(e)?va:Pn(e)?yi:Eu).prototype)}function _O(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):rn.prototype.cacheResult.call(this)}function v6(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function Qi(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),i=0;i<r;i++)n[i]=e[i+t];return n}function mc(e,t){if(!e)throw new Error(t)}function zn(e){mc(e!==1/0,"Cannot perform this action with an infinite size.")}function b6(e){if(fO(e)&&typeof e!="string")return e;if(ji(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var YY=Object.prototype.toString;function EO(e){if(!e||typeof e!="object"||YY.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t,n=Object.getPrototypeOf(t);n!==null;)r=n,n=Object.getPrototypeOf(r);return r===t}function ma(e){return typeof e=="object"&&(gi(e)||Array.isArray(e)||EO(e))}function Rc(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function _6(e,t){return gi(e)?e.has(t):ma(e)&&_u.call(e,t)}function SO(e,t,r){return gi(e)?e.get(t,r):_6(e,t)?typeof e.get=="function"?e.get(t):e[t]:r}function Dp(e){if(Array.isArray(e))return Qi(e);var t={};for(var r in e)_u.call(e,r)&&(t[r]=e[r]);return t}function E6(e,t){if(!ma(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(gi(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!_u.call(e,t))return e;var r=Dp(e);return Array.isArray(r)?r.splice(t,1):delete r[t],r}function S6(e,t,r){if(!ma(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(gi(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,r)}if(_u.call(e,t)&&r===e[t])return e;var n=Dp(e);return n[t]=r,n}function io(e,t,r,n){n||(n=r,r=void 0);var i=w6(gi(e),e,b6(t),0,r,n);return i===xt?r:i}function w6(e,t,r,n,i,s){var a=t===xt;if(n===r.length){var o=a?i:t,u=s(o);return u===o?t:u}if(!a&&!ma(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(r).slice(0,n).map(Rc)+"]: "+t);var c=r[n];if(typeof c>"u")throw new TypeError("Index can not be undefined in updateIn(). This should not happen");var l=a?xt:SO(t,c,xt),f=w6(l===xt?e:gi(l),l,r,n+1,i,s);return f===l?t:f===xt?E6(t,c):S6(a?e?ts():{}:t,c,f)}function x6(e,t,r){return io(e,t,xt,function(){return r})}function wO(e,t){return x6(this,e,t)}function A6(e,t){return io(e,t,function(){return xt})}function xO(e){return A6(this,e)}function AO(e,t,r,n){return io(e,[t],r,n)}function OO(e,t,r){return arguments.length===1?e(this):AO(this,e,t,r)}function CO(e,t,r){return io(this,e,t,r)}function O6(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return R6(this,e)}function C6(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return R6(this,t,e)}function R6(e,t,r){for(var n=[],i=0;i<t.length;i++){var s=mi(t[i]);s.size!==0&&n.push(s)}return n.length===0?e:e.toSeq().size===0&&!e.__ownerID&&n.length===1?e.constructor(n[0]):e.withMutations(function(a){for(var o=r?function(c,l){AO(a,l,xt,function(f){return f===xt?c:r(f,c,l)})}:function(c,l){a.set(l,c)},u=0;u<n.length;u++)n[u].forEach(o)})}function XY(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return ll(e,t)}function ZY(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return ll(t,r,e)}function QY(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return cl(e,t)}function eX(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return cl(t,r,e)}function cl(e,t,r){return ll(e,t,tX(r))}function ll(e,t,r){if(!ma(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(gi(e))return typeof r=="function"&&e.mergeWith?e.mergeWith.apply(e,[r].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var n=Array.isArray(e),i=e,s=n?ro:mi,a=n?function(u){i===e&&(i=Dp(i)),i.push(u)}:function(u,c){var l=_u.call(i,c),f=l&&r?r(i[c],u,c):u;(!l||f!==i[c])&&(i===e&&(i=Dp(i)),i[c]=f)},o=0;o<t.length;o++)s(t[o]).forEach(a);return i}function tX(e){function t(r,n,i){return ma(r)&&ma(n)&&rX(r,n)?ll(r,[n],t):e?e(r,n,i):n}return t}function rX(e,t){var r=rn(e),n=rn(t);return Pn(r)===Pn(n)&&Xt(r)===Xt(n)}function T6(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return cl(this,e)}function I6(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return cl(this,t,e)}function RO(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return io(this,e,ts(),function(n){return ll(n,t)})}function TO(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return io(this,e,ts(),function(n){return cl(n,t)})}function fl(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function pl(){return this.__ownerID?this:this.__ensureOwner(new cO)}function dl(){return this.__ensureOwner()}function IO(){return this.__altered}var so=function(e){function t(r){return r==null?ts():fh(r)&&!ji(r)?r:ts().withMutations(function(n){var i=e(r);zn(i.size),i.forEach(function(s,a){return n.set(a,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,i){return this._root?this._root.get(0,void 0,n,i):i},t.prototype.set=function(n,i){return JP(this,n,i)},t.prototype.remove=function(n){return JP(this,n,xt)},t.prototype.deleteAll=function(n){var i=$r(n);return i.size===0?this:this.withMutations(function(s){i.forEach(function(a){return s.remove(a)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ts()},t.prototype.sort=function(n){return is(Xo(this,n))},t.prototype.sortBy=function(n,i){return is(Xo(this,i,n))},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(a){a.forEach(function(o,u){a.set(u,n.call(i,o,u,s))})})},t.prototype.__iterator=function(n,i){return new nX(this,n,i)},t.prototype.__iterate=function(n,i){var s=this,a=0;return this._root&&this._root.iterate(function(o){return a++,n(o[1],o[0],s)},i),a},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?jO(this.size,this._root,n,this.__hash):this.size===0?ts():(this.__ownerID=n,this.__altered=!1,this)},t}(mi);so.isMap=fh;var sr=so.prototype;sr[u6]=!0;sr[al]=sr.remove;sr.removeAll=sr.deleteAll;sr.setIn=wO;sr.removeIn=sr.deleteIn=xO;sr.update=OO;sr.updateIn=CO;sr.merge=sr.concat=O6;sr.mergeWith=C6;sr.mergeDeep=T6;sr.mergeDeepWith=I6;sr.mergeIn=RO;sr.mergeDeepIn=TO;sr.withMutations=fl;sr.wasAltered=IO;sr.asImmutable=dl;sr["@@transducer/init"]=sr.asMutable=pl;sr["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};sr["@@transducer/result"]=function(e){return e.asImmutable()};var Tc=function(t,r){this.ownerID=t,this.entries=r};Tc.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Rr(n,s[a][0]))return s[a][1];return i};Tc.prototype.update=function(t,r,n,i,s,a,o){for(var u=s===xt,c=this.entries,l=0,f=c.length;l<f&&!Rr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(li(o),(u||!h)&&li(a),!(u&&c.length===1)){if(!h&&!u&&c.length>=cX)return iX(t,c,i,s);var d=t&&t===this.ownerID,g=d?c:Qi(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),d?(this.entries=g,this):new Tc(t,g)}};var Zo=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};Zo.prototype.get=function(t,r,n,i){r===void 0&&(r=Tn(n));var s=1<<((t===0?r:r>>>t)&gn),a=this.bitmap;return(a&s)===0?i:this.nodes[j6(a&s-1)].get(t+Gt,r,n,i)};Zo.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=Tn(i));var u=(r===0?n:n>>>r)&gn,c=1<<u,l=this.bitmap,f=(l&c)!==0;if(!f&&s===xt)return this;var h=j6(l&c-1),d=this.nodes,g=f?d[h]:void 0,y=kO(g,t,r+Gt,n,i,s,a,o);if(y===g)return this;if(!f&&y&&d.length>=lX)return aX(t,d,l,u,y);if(f&&!y&&d.length===2&&KP(d[h^1]))return d[h^1];if(f&&y&&d.length===1&&KP(y))return y;var v=t&&t===this.ownerID,E=f?y?l:l^c:l|c,b=f?y?k6(d,h,y,v):uX(d,h,v):oX(d,h,y,v);return v?(this.bitmap=E,this.nodes=b,this):new Zo(t,E,b)};var Ic=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};Ic.prototype.get=function(t,r,n,i){r===void 0&&(r=Tn(n));var s=(t===0?r:r>>>t)&gn,a=this.nodes[s];return a?a.get(t+Gt,r,n,i):i};Ic.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=Tn(i));var u=(r===0?n:n>>>r)&gn,c=s===xt,l=this.nodes,f=l[u];if(c&&!f)return this;var h=kO(f,t,r+Gt,n,i,s,a,o);if(h===f)return this;var d=this.count;if(!f)d++;else if(!h&&(d--,d<fX))return sX(t,l,d,u);var g=t&&t===this.ownerID,y=k6(l,u,h,g);return g?(this.count=d,this.nodes=y,this):new Ic(t,d,y)};var Qo=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entries=n};Qo.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Rr(n,s[a][0]))return s[a][1];return i};Qo.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=Tn(i));var u=s===xt;if(n!==this.keyHash)return u?this:(li(o),li(a),PO(this,t,r,n,[i,s]));for(var c=this.entries,l=0,f=c.length;l<f&&!Rr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(li(o),(u||!h)&&li(a),u&&f===2)return new Rs(t,this.keyHash,c[l^1]);var d=t&&t===this.ownerID,g=d?c:Qi(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),d?(this.entries=g,this):new Qo(t,this.keyHash,g)};var Rs=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entry=n};Rs.prototype.get=function(t,r,n,i){return Rr(n,this.entry[0])?this.entry[1]:i};Rs.prototype.update=function(t,r,n,i,s,a,o){var u=s===xt,c=Rr(i,this.entry[0]);if(c?s===this.entry[1]:u)return this;if(li(o),u){li(a);return}return c?t&&t===this.ownerID?(this.entry[1]=s,this):new Rs(t,this.keyHash,[i,s]):(li(a),PO(this,t,r,Tn(i),[i,s]))};Tc.prototype.iterate=Qo.prototype.iterate=function(e,t){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(e(r[t?i-n:n])===!1)return!1};Zo.prototype.iterate=Ic.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var s=r[t?i-n:n];if(s&&s.iterate(e,t)===!1)return!1}};Rs.prototype.iterate=function(e,t){return e(this.entry)};var nX=function(e){function t(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&zP(r._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var n=this._type,i=this._stack;i;){var s=i.node,a=i.index++,o=void 0;if(s.entry){if(a===0)return Q0(n,s.entry)}else if(s.entries){if(o=s.entries.length-1,a<=o)return Q0(n,s.entries[this._reverse?o-a:a])}else if(o=s.nodes.length-1,a<=o){var u=s.nodes[this._reverse?o-a:a];if(u){if(u.entry)return Q0(n,u.entry);i=this._stack=zP(u,i)}continue}i=this._stack=this._stack.__prev}return tn()},t}(Ct);function Q0(e,t){return ir(e,t[0],t[1])}function zP(e,t){return{node:e,index:0,__prev:t}}function jO(e,t,r,n){var i=Object.create(sr);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var WP;function ts(){return WP||(WP=jO(0))}function JP(e,t,r){var n,i;if(e._root){var s=xw(),a=xw();if(n=kO(e._root,e.__ownerID,0,void 0,t,r,s,a),!a.value)return e;i=e.size+(s.value?r===xt?-1:1:0)}else{if(r===xt)return e;i=1,n=new Tc(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?jO(i,n):ts()}function kO(e,t,r,n,i,s,a,o){return e?e.update(t,r,n,i,s,a,o):s===xt?e:(li(o),li(a),new Rs(t,n,[i,s]))}function KP(e){return e.constructor===Rs||e.constructor===Qo}function PO(e,t,r,n,i){if(e.keyHash===n)return new Qo(t,n,[e.entry,i]);var s=(r===0?e.keyHash:e.keyHash>>>r)&gn,a=(r===0?n:n>>>r)&gn,o,u=s===a?[PO(e,t,r+Gt,n,i)]:(o=new Rs(t,n,i),s<a?[e,o]:[o,e]);return new Zo(t,1<<s|1<<a,u)}function iX(e,t,r,n){e||(e=new cO);for(var i=new Rs(e,Tn(r),[r,n]),s=0;s<t.length;s++){var a=t[s];i=i.update(e,0,void 0,a[0],a[1])}return i}function sX(e,t,r,n){for(var i=0,s=0,a=new Array(r),o=0,u=1,c=t.length;o<c;o++,u<<=1){var l=t[o];l!==void 0&&o!==n&&(i|=u,a[s++]=l)}return new Zo(e,i,a)}function aX(e,t,r,n,i){for(var s=0,a=new Array(Jn),o=0;r!==0;o++,r>>>=1)a[o]=r&1?t[s++]:void 0;return a[n]=i,new Ic(e,s+1,a)}function j6(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function k6(e,t,r,n){var i=n?e:Qi(e);return i[t]=r,i}function oX(e,t,r,n){var i=e.length+1;if(n&&t+1===i)return e[t]=r,e;for(var s=new Array(i),a=0,o=0;o<i;o++)o===t?(s[o]=r,a=-1):s[o]=e[o+a];return s}function uX(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var i=new Array(n),s=0,a=0;a<n;a++)a===t&&(s=1),i[a]=e[a+s];return i}var cX=Jn/4,lX=Jn/2,fX=Jn/4,P6="@@__IMMUTABLE_LIST__@@";function NO(e){return!!(e&&e[P6])}var hl=function(e){function t(r){var n=mp();if(r==null)return n;if(NO(r))return r;var i=e(r),s=i.size;return s===0?n:(zn(s),s>0&&s<Jn?jc(0,s,Gt,null,new la(i.toArray())):n.withMutations(function(a){a.setSize(s),i.forEach(function(o,u){return a.set(u,o)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(n,i){if(n=da(this,n),n>=0&&n<this.size){n+=this._origin;var s=N6(this,n);return s&&s.array[n&gn]}return i},t.prototype.set=function(n,i){return pX(this,n,i)},t.prototype.remove=function(n){return this.has(n)?n===0?this.shift():n===this.size-1?this.pop():this.splice(n,1):this},t.prototype.insert=function(n,i){return this.splice(n,0,i)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Gt,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):mp()},t.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(s){ia(s,0,i+n.length);for(var a=0;a<n.length;a++)s.set(i+a,n[a])})},t.prototype.pop=function(){return ia(this,0,-1)},t.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){ia(i,-n.length);for(var s=0;s<n.length;s++)i.set(s,n[s])})},t.prototype.shift=function(){return ia(this,1)},t.prototype.shuffle=function(n){return n===void 0&&(n=Math.random),this.withMutations(function(i){for(var s=i.size,a,o;s;)a=Math.floor(n()*s--),o=i.get(a),i.set(a,i.get(s)),i.set(s,o)})},t.prototype.concat=function(){for(var n=arguments,i=[],s=0;s<arguments.length;s++){var a=n[s],o=e(typeof a!="string"&&lO(a)?a:[a]);o.size!==0&&i.push(o)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(u){i.forEach(function(c){return c.forEach(function(l){return u.push(l)})})})},t.prototype.setSize=function(n){return ia(this,0,n)},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(a){for(var o=0;o<s.size;o++)a.set(o,n.call(i,a.get(o),o,s))})},t.prototype.slice=function(n,i){var s=this.size;return ol(n,i,s)?this:ia(this,yu(n,s),ul(i,s))},t.prototype.__iterator=function(n,i){var s=i?this.size:0,a=HP(this,i);return new Ct(function(){var o=a();return o===gc?tn():ir(n,i?--s:s++,o)})},t.prototype.__iterate=function(n,i){for(var s=i?this.size:0,a=HP(this,i),o;(o=a())!==gc&&n(o,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?jc(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?mp():(this.__ownerID=n,this.__altered=!1,this)},t}(ro);hl.isList=NO;var Tr=hl.prototype;Tr[P6]=!0;Tr[al]=Tr.remove;Tr.merge=Tr.concat;Tr.setIn=wO;Tr.deleteIn=Tr.removeIn=xO;Tr.update=OO;Tr.updateIn=CO;Tr.mergeIn=RO;Tr.mergeDeepIn=TO;Tr.withMutations=fl;Tr.wasAltered=IO;Tr.asImmutable=dl;Tr["@@transducer/init"]=Tr.asMutable=pl;Tr["@@transducer/step"]=function(e,t){return e.push(t)};Tr["@@transducer/result"]=function(e){return e.asImmutable()};var la=function(t,r){this.array=t,this.ownerID=r};la.prototype.removeBefore=function(t,r,n){if((n&(1<<r+Gt)-1)===0||this.array.length===0)return this;var i=n>>>r&gn;if(i>=this.array.length)return new la([],t);var s=i===0,a;if(r>0){var o=this.array[i];if(a=o&&o.removeBefore(t,r-Gt,n),a===o&&s)return this}if(s&&!a)return this;var u=eu(this,t);if(!s)for(var c=0;c<i;c++)u.array[c]=void 0;return a&&(u.array[i]=a),u};la.prototype.removeAfter=function(t,r,n){if(n===(r?1<<r+Gt:Jn)||this.array.length===0)return this;var i=n-1>>>r&gn;if(i>=this.array.length)return this;var s;if(r>0){var a=this.array[i];if(s=a&&a.removeAfter(t,r-Gt,n),s===a&&i===this.array.length-1)return this}var o=eu(this,t);return o.array.splice(i+1),s&&(o.array[i]=s),o};var gc={};function HP(e,t){var r=e._origin,n=e._capacity,i=kc(n),s=e._tail;return a(e._root,e._level,0);function a(c,l,f){return l===0?o(c,f):u(c,l,f)}function o(c,l){var f=l===i?s&&s.array:c&&c.array,h=l>r?0:r-l,d=n-l;return d>Jn&&(d=Jn),function(){if(h===d)return gc;var g=t?--d:h++;return f&&f[g]}}function u(c,l,f){var h,d=c&&c.array,g=f>r?0:r-f>>l,y=(n-f>>l)+1;return y>Jn&&(y=Jn),function(){for(;;){if(h){var v=h();if(v!==gc)return v;h=null}if(g===y)return gc;var E=t?--y:g++;h=a(d&&d[E],l-Gt,f+(E<<l))}}}}function jc(e,t,r,n,i,s,a){var o=Object.create(Tr);return o.size=t-e,o._origin=e,o._capacity=t,o._level=r,o._root=n,o._tail=i,o.__ownerID=s,o.__hash=a,o.__altered=!1,o}function mp(){return jc(0,0,Gt)}function pX(e,t,r){if(t=da(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(a){t<0?ia(a,t).set(0,r):ia(a,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,s=xw();return t>=kc(e._capacity)?n=jw(n,e.__ownerID,0,t,r,s):i=jw(i,e.__ownerID,e._level,t,r,s),s.value?e.__ownerID?(e._root=i,e._tail=n,e.__hash=void 0,e.__altered=!0,e):jc(e._origin,e._capacity,e._level,i,n):e}function jw(e,t,r,n,i,s){var a=n>>>r&gn,o=e&&a<e.array.length;if(!o&&i===void 0)return e;var u;if(r>0){var c=e&&e.array[a],l=jw(c,t,r-Gt,n,i,s);return l===c?e:(u=eu(e,t),u.array[a]=l,u)}return o&&e.array[a]===i?e:(s&&li(s),u=eu(e,t),i===void 0&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function eu(e,t){return t&&e&&t===e.ownerID?e:new la(e?e.array.slice():[],t)}function N6(e,t){if(t>=kc(e._capacity))return e._tail;if(t<1<<e._level+Gt){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&gn],n-=Gt;return r}}function ia(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new cO,i=e._origin,s=e._capacity,a=i+t,o=r===void 0?s:r<0?s+r:i+r;if(a===i&&o===s)return e;if(a>=o)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new la(c&&c.array.length?[void 0,c]:[],n),u+=Gt,l+=1<<u;l&&(a+=l,i+=l,o+=l,s+=l);for(var f=kc(s),h=kc(o);h>=1<<u+Gt;)c=new la(c&&c.array.length?[c]:[],n),u+=Gt;var d=e._tail,g=h<f?N6(e,o-1):h>f?new la([],n):d;if(d&&h>f&&a<s&&d.array.length){c=eu(c,n);for(var y=c,v=u;v>Gt;v-=Gt){var E=f>>>v&gn;y=y.array[E]=eu(y.array[E],n)}y.array[f>>>Gt&gn]=d}if(o<s&&(g=g&&g.removeAfter(n,0,o)),a>=h)a-=h,o-=h,u=Gt,c=null,g=g&&g.removeBefore(n,0,a);else if(a>i||h<f){for(l=0;c;){var b=a>>>u&gn;if(b!==h>>>u&gn)break;b&&(l+=(1<<u)*b),u-=Gt,c=c.array[b]}c&&a>i&&(c=c.removeBefore(n,u,a-l)),c&&h<f&&(c=c.removeAfter(n,u,h-l)),l&&(a-=l,o-=l)}return e.__ownerID?(e.size=o-a,e._origin=a,e._capacity=o,e._level=u,e._root=c,e._tail=g,e.__hash=void 0,e.__altered=!0,e):jc(a,o,u,c,g)}function kc(e){return e<Jn?0:e-1>>>Gt<<Gt}var is=function(e){function t(r){return r==null?nc():gO(r)?r:nc().withMutations(function(n){var i=mi(r);zn(i.size),i.forEach(function(s,a){return n.set(a,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(n,i){var s=this._map.get(n);return s!==void 0?this._list.get(s)[1]:i},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):nc()},t.prototype.set=function(n,i){return YP(this,n,i)},t.prototype.remove=function(n){return YP(this,n,xt)},t.prototype.__iterate=function(n,i){var s=this;return this._list.__iterate(function(a){return a&&n(a[1],a[0],s)},i)},t.prototype.__iterator=function(n,i){return this._list.fromEntrySeq().__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n),s=this._list.__ensureOwner(n);return n?MO(i,s,n,this.__hash):this.size===0?nc():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=s,this)},t}(so);is.isOrderedMap=gO;is.prototype[ha]=!0;is.prototype[al]=is.prototype.remove;function MO(e,t,r,n){var i=Object.create(is.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var GP;function nc(){return GP||(GP=MO(ts(),mp()))}function YP(e,t,r){var n=e._map,i=e._list,s=n.get(t),a=s!==void 0,o,u;if(r===xt){if(!a)return e;i.size>=Jn&&i.size>=n.size*2?(u=i.filter(function(c,l){return c!==void 0&&s!==l}),o=u.toKeyedSeq().map(function(c){return c[0]}).flip().toMap(),e.__ownerID&&(o.__ownerID=u.__ownerID=e.__ownerID)):(o=n.remove(t),u=s===i.size-1?i.pop():i.set(s,void 0))}else if(a){if(r===i.get(s)[1])return e;o=n,u=i.set(s,[t,r])}else o=n.set(t,i.size),u=i.set(i.size,[t,r]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=u,e.__hash=void 0,e.__altered=!0,e):MO(o,u)}var M6="@@__IMMUTABLE_STACK__@@";function qp(e){return!!(e&&e[M6])}var hh=function(e){function t(r){return r==null?Gf():qp(r)?r:Gf().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,i){var s=this._head;for(n=da(this,n);s&&n--;)s=s.next;return s?s.value:i},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,s=this._head,a=arguments.length-1;a>=0;a--)s={value:n[a],next:s};return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):ic(i,s)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&qp(n))return n;zn(n.size);var i=this.size,s=this._head;return n.__iterate(function(a){i++,s={value:a,next:s}},!0),this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):ic(i,s)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gf()},t.prototype.slice=function(n,i){if(ol(n,i,this.size))return this;var s=yu(n,this.size),a=ul(i,this.size);if(a!==this.size)return e.prototype.slice.call(this,n,i);for(var o=this.size-s,u=this._head;s--;)u=u.next;return this.__ownerID?(this.size=o,this._head=u,this.__hash=void 0,this.__altered=!0,this):ic(o,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?ic(this.size,this._head,n,this.__hash):this.size===0?Gf():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,i){var s=this;if(i)return new Yo(this.toArray()).__iterate(function(u,c){return n(u,c,s)},i);for(var a=0,o=this._head;o&&n(o.value,a++,this)!==!1;)o=o.next;return a},t.prototype.__iterator=function(n,i){if(i)return new Yo(this.toArray()).__iterator(n,i);var s=0,a=this._head;return new Ct(function(){if(a){var o=a.value;return a=a.next,ir(n,s++,o)}return tn()})},t}(ro);hh.isStack=qp;var yn=hh.prototype;yn[M6]=!0;yn.shift=yn.pop;yn.unshift=yn.push;yn.unshiftAll=yn.pushAll;yn.withMutations=fl;yn.wasAltered=IO;yn.asImmutable=dl;yn["@@transducer/init"]=yn.asMutable=pl;yn["@@transducer/step"]=function(e,t){return e.unshift(t)};yn["@@transducer/result"]=function(e){return e.asImmutable()};function ic(e,t,r,n){var i=Object.create(yn);return i.size=e,i._head=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var XP;function Gf(){return XP||(XP=ic(0))}var D6="@@__IMMUTABLE_SET__@@";function mh(e){return!!(e&&e[D6])}function DO(e){return mh(e)&&ji(e)}function qO(e,t){if(e===t)return!0;if(!kn(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Xt(e)!==Xt(t)||Pn(e)!==Pn(t)||ji(e)!==ji(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!oh(e);if(ji(e)){var n=e.entries();return t.every(function(u,c){var l=n.next().value;return l&&Rr(l[1],u)&&(r||Rr(l[0],c))})&&n.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var a=!0,o=t.__iterate(function(u,c){if(r?!e.has(u):i?!Rr(u,e.get(c,xt)):!Rr(e.get(c,xt),u))return a=!1,!1});return a&&e.size===o}function ao(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function $p(e){if(!e||typeof e!="object")return e;if(!kn(e)){if(!ma(e))return e;e=rn(e)}if(Xt(e)){var t={};return e.__iterate(function(n,i){t[i]=$p(n)}),t}var r=[];return e.__iterate(function(n){r.push($p(n))}),r}var ml=function(e){function t(r){return r==null?sc():mh(r)&&!ji(r)?r:sc().withMutations(function(n){var i=e(r);zn(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(mi(n).keySeq())},t.intersect=function(n){return n=$r(n).toArray(),n.length?Yr.intersect.apply(t(n.pop()),n):sc()},t.union=function(n){return n=$r(n).toArray(),n.length?Yr.union.apply(t(n.pop()),n):sc()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Yf(this,this._map.set(n,n))},t.prototype.remove=function(n){return Yf(this,this._map.remove(n))},t.prototype.clear=function(){return Yf(this,this._map.clear())},t.prototype.map=function(n,i){var s=this,a=!1,o=Yf(this,this._map.mapEntries(function(u){var c=u[1],l=n.call(i,c,c,s);return l!==c&&(a=!0),[l,l]},i));return a?o:this},t.prototype.union=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return n=n.filter(function(s){return s.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(s){for(var a=0;a<n.length;a++)typeof n[a]=="string"?s.add(n[a]):e(n[a]).forEach(function(o){return s.add(o)})})},t.prototype.intersect=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(a){return e(a)});var s=[];return this.forEach(function(a){n.every(function(o){return o.includes(a)})||s.push(a)}),this.withMutations(function(a){s.forEach(function(o){a.remove(o)})})},t.prototype.subtract=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(a){return e(a)});var s=[];return this.forEach(function(a){n.some(function(o){return o.includes(a)})&&s.push(a)}),this.withMutations(function(a){s.forEach(function(o){a.remove(o)})})},t.prototype.sort=function(n){return ru(Xo(this,n))},t.prototype.sortBy=function(n,i){return ru(Xo(this,i,n))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(n,i){var s=this;return this._map.__iterate(function(a){return n(a,a,s)},i)},t.prototype.__iterator=function(n,i){return this._map.__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n);return n?this.__make(i,n):this.size===0?this.__empty():(this.__ownerID=n,this._map=i,this)},t}(vu);ml.isSet=mh;var Yr=ml.prototype;Yr[D6]=!0;Yr[al]=Yr.remove;Yr.merge=Yr.concat=Yr.union;Yr.withMutations=fl;Yr.asImmutable=dl;Yr["@@transducer/init"]=Yr.asMutable=pl;Yr["@@transducer/step"]=function(e,t){return e.add(t)};Yr["@@transducer/result"]=function(e){return e.asImmutable()};Yr.__empty=sc;Yr.__make=q6;function Yf(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function q6(e,t){var r=Object.create(Yr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var ZP;function sc(){return ZP||(ZP=q6(ts()))}var $6=function(e){function t(r,n,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(r,n,i);if(mc(i!==0,"Cannot step a Range by 0"),mc(r!==void 0,"You must define a start value when using Range"),mc(n!==void 0,"You must define an end value when using Range"),i=Math.abs(i),n<r&&(i=-i),this._start=r,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-r)/i-1)+1),this.size===0){if(eb)return eb;eb=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(n,i){return this.has(n)?this._start+da(this,n)*this._step:i},t.prototype.includes=function(n){var i=(n-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},t.prototype.slice=function(n,i){return ol(n,i,this.size)?this:(n=yu(n,this.size),i=ul(i,this.size),i<=n?new t(0,0):new t(this.get(n,this._end),this.get(i,this._end),this._step))},t.prototype.indexOf=function(n){var i=n-this._start;if(i%this._step===0){var s=i/this._step;if(s>=0&&s<this.size)return s}return-1},t.prototype.lastIndexOf=function(n){return this.indexOf(n)},t.prototype.__iterate=function(n,i){for(var s=this.size,a=this._step,o=i?this._start+(s-1)*a:this._start,u=0;u!==s&&n(o,i?s-++u:u++,this)!==!1;)o+=i?-a:a;return u},t.prototype.__iterator=function(n,i){var s=this.size,a=this._step,o=i?this._start+(s-1)*a:this._start,u=0;return new Ct(function(){if(u===s)return tn();var c=o;return o+=i?-a:a,ir(n,i?s-++u:u++,c)})},t.prototype.equals=function(n){return n instanceof t?this._start===n._start&&this._end===n._end&&this._step===n._step:qO(this,n)},t}(yi),eb;function $O(e,t,r){for(var n=b6(t),i=0;i!==n.length;)if(e=SO(e,n[i++],xt),e===xt)return r;return e}function F6(e,t){return $O(this,e,t)}function L6(e,t){return $O(e,t,xt)!==xt}function dX(e){return L6(this,e)}function B6(){zn(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}$r.Iterator=Ct;ao($r,{toArray:function(){zn(this.size);var t=new Array(this.size||0),r=Xt(this),n=0;return this.__iterate(function(i,s){t[n++]=r?[s,i]:i}),t},toIndexedSeq:function(){return new l6(this)},toJS:function(){return $p(this)},toKeyedSeq:function(){return new dh(this,!0)},toMap:function(){return so(this.toKeyedSeq())},toObject:B6,toOrderedMap:function(){return is(this.toKeyedSeq())},toOrderedSet:function(){return ru(Xt(this)?this.valueSeq():this)},toSet:function(){return ml(Xt(this)?this.valueSeq():this)},toSetSeq:function(){return new f6(this)},toSeq:function(){return Pn(this)?this.toIndexedSeq():Xt(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return hh(Xt(this)?this.valueSeq():this)},toList:function(){return hl(Xt(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,r){return this.size===0?t+r:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Ht(this,KY(this,t))},includes:function(t){return this.some(function(r){return Rr(r,t)})},entries:function(){return this.__iterator(Yn)},every:function(t,r){zn(this.size);var n=!0;return this.__iterate(function(i,s,a){if(!t.call(r,i,s,a))return n=!1,!1}),n},filter:function(t,r){return Ht(this,m6(this,t,r,!0))},partition:function(t,r){return zY(this,t,r)},find:function(t,r,n){var i=this.findEntry(t,r);return i?i[1]:n},forEach:function(t,r){return zn(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){zn(this.size),t=t!==void 0?""+t:",";var r="",n=!0;return this.__iterate(function(i){n?n=!1:r+=t,r+=i!=null?i.toString():""}),r},keys:function(){return this.__iterator(bu)},map:function(t,r){return Ht(this,h6(this,t,r))},reduce:function(t,r,n){return QP(this,t,r,n,arguments.length<2,!1)},reduceRight:function(t,r,n){return QP(this,t,r,n,arguments.length<2,!0)},reverse:function(){return Ht(this,yO(this,!0))},slice:function(t,r){return Ht(this,vO(this,t,r,!0))},some:function(t,r){zn(this.size);var n=!1;return this.__iterate(function(i,s,a){if(t.call(r,i,s,a))return n=!0,!1}),n},sort:function(t){return Ht(this,Xo(this,t))},values:function(){return this.__iterator(Gn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,r){return Go(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return UY(this,t,r)},equals:function(t){return qO(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Yo(t._cache);var r=t.toSeq().map(mX).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(tb(t),r)},findEntry:function(t,r,n){var i=n;return this.__iterate(function(s,a,o){if(t.call(r,s,a,o))return i=[a,s],!1}),i},findKey:function(t,r){var n=this.findEntry(t,r);return n&&n[0]},findLast:function(t,r,n){return this.toKeyedSeq().reverse().find(t,r,n)},findLastEntry:function(t,r,n){return this.toKeyedSeq().reverse().findEntry(t,r,n)},findLastKey:function(t,r){return this.toKeyedSeq().reverse().findKey(t,r)},first:function(t){return this.find(e6,null,t)},flatMap:function(t,r){return Ht(this,HY(this,t,r))},flatten:function(t){return Ht(this,y6(this,t,!0))},fromEntrySeq:function(){return new p6(this)},get:function(t,r){return this.find(function(n,i){return Rr(i,t)},void 0,r)},getIn:F6,groupBy:function(t,r){return VY(this,t,r)},has:function(t){return this.get(t,xt)!==xt},hasIn:dX,isSubset:function(t){return t=typeof t.includes=="function"?t:$r(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:$r(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return Rr(r,t)})},keySeq:function(){return this.toSeq().map(hX).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Kf(this,t)},maxBy:function(t,r){return Kf(this,r,t)},min:function(t){return Kf(this,t?eN(t):rN)},minBy:function(t,r){return Kf(this,r?eN(r):rN,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,r){return Ht(this,g6(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(tb(t),r)},sortBy:function(t,r){return Ht(this,Xo(this,r,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,r){return Ht(this,WY(this,t,r))},takeUntil:function(t,r){return this.takeWhile(tb(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=gX(this))}});var nn=$r.prototype;nn[n6]=!0;nn[ch]=nn.values;nn.toJSON=nn.toArray;nn.__toStringMapper=Rc;nn.inspect=nn.toSource=function(){return this.toString()};nn.chain=nn.flatMap;nn.contains=nn.includes;ao(mi,{flip:function(){return Ht(this,d6(this))},mapEntries:function(t,r){var n=this,i=0;return Ht(this,this.toSeq().map(function(s,a){return t.call(r,[a,s],i++,n)}).fromEntrySeq())},mapKeys:function(t,r){var n=this;return Ht(this,this.toSeq().flip().map(function(i,s){return t.call(r,i,s,n)}).flip())}});var gl=mi.prototype;gl[Np]=!0;gl[ch]=nn.entries;gl.toJSON=B6;gl.__toStringMapper=function(e,t){return Rc(t)+": "+Rc(e)};ao(ro,{toKeyedSeq:function(){return new dh(this,!1)},filter:function(t,r){return Ht(this,m6(this,t,r,!1))},findIndex:function(t,r){var n=this.findEntry(t,r);return n?n[0]:-1},indexOf:function(t){var r=this.keyOf(t);return r===void 0?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return r===void 0?-1:r},reverse:function(){return Ht(this,yO(this,!1))},slice:function(t,r){return Ht(this,vO(this,t,r,!1))},splice:function(t,r){var n=arguments.length;if(r=Math.max(r||0,0),n===0||n===2&&!r)return this;t=yu(t,t<0?this.count():this.size);var i=this.slice(0,t);return Ht(this,n===1?i:i.concat(Qi(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var n=this.findLastEntry(t,r);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Ht(this,y6(this,t,!1))},get:function(t,r){return t=da(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?r:this.find(function(n,i){return i===t},void 0,r)},has:function(t){return t=da(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return Ht(this,GY(this,t))},interleave:function(){var t=[this].concat(Qi(arguments)),r=Hf(this.toSeq(),yi.of,t),n=r.flatten(!0);return r.size&&(n.size=r.size*t.length),Ht(this,n)},keySeq:function(){return $6(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return Ht(this,g6(this,t,r,!1))},zip:function(){var t=[this].concat(Qi(arguments));return Ht(this,Hf(this,tN,t))},zipAll:function(){var t=[this].concat(Qi(arguments));return Ht(this,Hf(this,tN,t,!0))},zipWith:function(t){var r=Qi(arguments);return r[0]=this,Ht(this,Hf(this,t,r))}});var Su=ro.prototype;Su[Mp]=!0;Su[ha]=!0;ao(vu,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var tu=vu.prototype;tu.has=nn.includes;tu.contains=tu.includes;tu.keys=tu.values;ao(va,gl);ao(yi,Su);ao(Eu,tu);function QP(e,t,r,n,i,s){return zn(e.size),e.__iterate(function(a,o,u){i?(i=!1,r=a):r=t.call(n,r,a,o,u)},s),r}function hX(e,t){return t}function mX(e,t){return[t,e]}function tb(e){return function(){return!e.apply(this,arguments)}}function eN(e){return function(){return-e.apply(this,arguments)}}function tN(){return Qi(arguments)}function rN(e,t){return e<t?1:e>t?-1:0}function gX(e){if(e.size===1/0)return 0;var t=ji(e),r=Xt(e),n=t?1:0;return e.__iterate(r?t?function(i,s){n=31*n+nN(Tn(i),Tn(s))|0}:function(i,s){n=n+nN(Tn(i),Tn(s))|0}:t?function(i){n=31*n+Tn(i)|0}:function(i){n=n+Tn(i)|0}),yX(e.size,n)}function yX(e,t){return t=Uu(t,3432918353),t=Uu(t<<15|t>>>-15,461845907),t=Uu(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Uu(t^t>>>16,2246822507),t=Uu(t^t>>>13,3266489909),t=ph(t^t>>>16),t}function nN(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ru=function(e){function t(r){return r==null?kw():DO(r)?r:kw().withMutations(function(n){var i=vu(r);zn(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(mi(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(ml);ru.isOrderedSet=DO;var oo=ru.prototype;oo[ha]=!0;oo.zip=Su.zip;oo.zipWith=Su.zipWith;oo.zipAll=Su.zipAll;oo.__empty=kw;oo.__make=U6;function U6(e,t){var r=Object.create(oo);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var iN;function kw(){return iN||(iN=U6(nc()))}var vX={LeftThenRight:-1,RightThenLeft:1};function bX(e){if(no(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(gi(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var qr=function(t,r){var n;bX(t);var i=function(o){var u=this;if(o instanceof i)return o;if(!(this instanceof i))return new i(o);if(!n){n=!0;var c=Object.keys(t),l=s._indices={};s._name=r,s._keys=c,s._defaultValues=t;for(var f=0;f<c.length;f++){var h=c[f];l[h]=f,s[h]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+LO(this)+' with property "'+h+'" since that property name is part of the Record API.'):_X(s,h)}}return this.__ownerID=void 0,this._values=hl().withMutations(function(d){d.setSize(u._keys.length),mi(o).forEach(function(g,y){d.set(u._indices[y],g===u._defaultValues[y]?void 0:g)})}),this},s=i.prototype=Object.create(Qt);return s.constructor=i,r&&(i.displayName=r),i};qr.prototype.toString=function(){for(var t=LO(this)+" { ",r=this._keys,n,i=0,s=r.length;i!==s;i++)n=r[i],t+=(i?", ":"")+n+": "+Rc(this.get(n));return t+" }"};qr.prototype.equals=function(t){return this===t||no(t)&&nu(this).equals(nu(t))};qr.prototype.hashCode=function(){return nu(this).hashCode()};qr.prototype.has=function(t){return this._indices.hasOwnProperty(t)};qr.prototype.get=function(t,r){if(!this.has(t))return r;var n=this._indices[t],i=this._values.get(n);return i===void 0?this._defaultValues[t]:i};qr.prototype.set=function(t,r){if(this.has(t)){var n=this._values.set(this._indices[t],r===this._defaultValues[t]?void 0:r);if(n!==this._values&&!this.__ownerID)return FO(this,n)}return this};qr.prototype.remove=function(t){return this.set(t)};qr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:FO(this,t)};qr.prototype.wasAltered=function(){return this._values.wasAltered()};qr.prototype.toSeq=function(){return nu(this)};qr.prototype.toJS=function(){return $p(this)};qr.prototype.entries=function(){return this.__iterator(Yn)};qr.prototype.__iterator=function(t,r){return nu(this).__iterator(t,r)};qr.prototype.__iterate=function(t,r){return nu(this).__iterate(t,r)};qr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?FO(this,r,t):(this.__ownerID=t,this._values=r,this)};qr.isRecord=no;qr.getDescriptiveName=LO;var Qt=qr.prototype;Qt[s6]=!0;Qt[al]=Qt.remove;Qt.deleteIn=Qt.removeIn=xO;Qt.getIn=F6;Qt.hasIn=nn.hasIn;Qt.merge=O6;Qt.mergeWith=C6;Qt.mergeIn=RO;Qt.mergeDeep=T6;Qt.mergeDeepWith=I6;Qt.mergeDeepIn=TO;Qt.setIn=wO;Qt.update=OO;Qt.updateIn=CO;Qt.withMutations=fl;Qt.asMutable=pl;Qt.asImmutable=dl;Qt[ch]=Qt.entries;Qt.toJSON=Qt.toObject=nn.toObject;Qt.inspect=Qt.toSource=function(){return this.toString()};function FO(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._values=t,n.__ownerID=r,n}function LO(e){return e.constructor.displayName||e.constructor.name||"Record"}function nu(e){return hO(e._keys.map(function(t){return[t,e.get(t)]}))}function _X(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(r){mc(this.__ownerID,"Cannot set on an immutable record."),this.set(t,r)}})}catch{}}var EX=function(e){function t(r,n){if(!(this instanceof t))return new t(r,n);if(this._value=r,this.size=n===void 0?1/0:Math.max(0,n),this.size===0){if(rb)return rb;rb=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(n,i){return this.has(n)?this._value:i},t.prototype.includes=function(n){return Rr(this._value,n)},t.prototype.slice=function(n,i){var s=this.size;return ol(n,i,s)?this:new t(this._value,ul(i,s)-yu(n,s))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(n){return Rr(this._value,n)?0:-1},t.prototype.lastIndexOf=function(n){return Rr(this._value,n)?this.size:-1},t.prototype.__iterate=function(n,i){for(var s=this.size,a=0;a!==s&&n(this._value,i?s-++a:a++,this)!==!1;);return a},t.prototype.__iterator=function(n,i){var s=this,a=this.size,o=0;return new Ct(function(){return o===a?tn():ir(n,i?a-++o:o++,s._value)})},t.prototype.equals=function(n){return n instanceof t?Rr(this._value,n._value):qO(this,n)},t}(yi),rb;function SX(e,t){return V6([],t||wX,e,"",t&&t.length>2?[]:void 0,{"":e})}function V6(e,t,r,n,i,s){if(typeof r!="string"&&!gi(r)&&(fO(r)||lO(r)||EO(r))){if(~e.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");e.push(r),i&&n!==""&&i.push(n);var a=t.call(s,n,rn(r).map(function(o,u){return V6(e,t,o,u,i,r)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return r}function wX(e,t){return Pn(t)?t.toList():Xt(t)?t.toMap():t.toSet()}var xX="5.1.1",AX=$r;const OX=Object.freeze(Object.defineProperty({__proto__:null,Collection:$r,Iterable:AX,List:hl,Map:so,OrderedMap:is,OrderedSet:ru,PairSorting:vX,Range:$6,Record:qr,Repeat:EX,Seq:rn,Set:ml,Stack:hh,fromJS:SX,get:SO,getIn:$O,has:_6,hasIn:L6,hash:Tn,is:Rr,isAssociative:oh,isCollection:kn,isImmutable:gi,isIndexed:Pn,isKeyed:Xt,isList:NO,isMap:fh,isOrdered:ji,isOrderedMap:gO,isOrderedSet:DO,isPlainObject:EO,isRecord:no,isSeq:uh,isSet:mh,isStack:qp,isValueObject:Cw,merge:XY,mergeDeep:QY,mergeDeepWith:eX,mergeWith:ZY,remove:E6,removeIn:A6,set:S6,setIn:x6,update:AO,updateIn:io,version:xX},Symbol.toStringTag,{value:"Module"})),CX=Be.getAugmentedNamespace(OX);var nb,sN;function RX(){if(sN)return nb;sN=1;var e=CX,t="<<anonymous>>",r;if(process.env.NODE_ENV!=="production")r={listOf:f,mapOf:d,orderedMapOf:g,setOf:y,orderedSetOf:v,stackOf:E,iterableOf:b,recordOf:S,shape:_,contains:_,mapContains:A,orderedMapContains:C,list:o("List",e.List.isList),map:o("Map",e.Map.isMap),orderedMap:o("OrderedMap",e.OrderedMap.isOrderedMap),set:o("Set",e.Set.isSet),orderedSet:o("OrderedSet",e.OrderedSet.isOrderedSet),stack:o("Stack",e.Stack.isStack),seq:o("Seq",e.Seq.isSeq),record:o("Record",function(R){return R instanceof e.Record}),iterable:o("Iterable",e.Iterable.isIterable)};else{var n=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};n.isRequired=n;var i=function(){return n};r={listOf:i,mapOf:i,orderedMapOf:i,setOf:i,orderedSetOf:i,stackOf:i,iterableOf:i,recordOf:i,shape:i,contains:i,mapContains:i,orderedMapContains:i,list:n,map:n,orderedMap:n,set:n,orderedSet:n,stack:n,seq:n,record:n,iterable:n}}r.iterable.indexed=u("Indexed",e.Iterable.isIndexed),r.iterable.keyed=u("Keyed",e.Iterable.isKeyed);function s(R){var O=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":R instanceof e.Iterable?"Immutable."+R.toSource().split(" ")[0]:O}function a(R){function O(k,D,P,H,Z,V){for(var G=arguments.length,Q=Array(G>6?G-6:0),Y=6;Y<G;Y++)Q[Y-6]=arguments[Y];if(V=V||P,H=H||t,D[P]==null){var L=Z;if(k)return new Error("Required "+L+" `"+V+"` was not specified in "+("`"+H+"`."))}else return R.apply(void 0,[D,P,H,Z,V].concat(Q))}var M=O.bind(null,!1);return M.isRequired=O.bind(null,!0),M}function o(R,O){function M(k,D,P,H,Z){var V=k[D];if(!O(V)){var G=s(V);return new Error("Invalid "+H+" `"+Z+"` of type `"+G+"` "+("supplied to `"+P+"`, expected `"+R+"`."))}return null}return a(M)}function u(R,O){return o("Iterable."+R,function(M){return e.Iterable.isIterable(M)&&O(M)})}function c(R,O,M){function k(D,P,H,Z,V){for(var G=arguments.length,Q=Array(G>5?G-5:0),Y=5;Y<G;Y++)Q[Y-5]=arguments[Y];var L=D[P];if(!M(L)){var J=Z,ee=s(L);return new Error("Invalid "+J+" `"+V+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected an Immutable.js "+O+"."))}if(typeof R!="function")return new Error("Invalid typeChecker supplied to `"+H+"` "+("for propType `"+V+"`, expected a function."));for(var ne=L.valueSeq().toArray(),ae=0,X=ne.length;ae<X;ae++){var B=R.apply(void 0,[ne,ae,H,Z,""+V+"["+ae+"]"].concat(Q));if(B instanceof Error)return B}}return a(k)}function l(R){function O(M,k,D,P,H){for(var Z=arguments.length,V=Array(Z>5?Z-5:0),G=5;G<Z;G++)V[G-5]=arguments[G];var Q=M[k];if(typeof R!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+D+"` "+("for propType `"+H+"`, expected a function."));for(var Y=Q.keySeq().toArray(),L=0,J=Y.length;L<J;L++){var ee=R.apply(void 0,[Y,L,D,P,""+H+" -> key("+Y[L]+")"].concat(V));if(ee instanceof Error)return ee}}return a(O)}function f(R){return c(R,"List",e.List.isList)}function h(R,O,M,k){function D(){for(var P=arguments.length,H=Array(P),Z=0;Z<P;Z++)H[Z]=arguments[Z];return c(R,M,k).apply(void 0,H)||O&&l(O).apply(void 0,H)}return a(D)}function d(R,O){return h(R,O,"Map",e.Map.isMap)}function g(R,O){return h(R,O,"OrderedMap",e.OrderedMap.isOrderedMap)}function y(R){return c(R,"Set",e.Set.isSet)}function v(R){return c(R,"OrderedSet",e.OrderedSet.isOrderedSet)}function E(R){return c(R,"Stack",e.Stack.isStack)}function b(R){return c(R,"Iterable",e.Iterable.isIterable)}function S(R){function O(M,k,D,P,H){for(var Z=arguments.length,V=Array(Z>5?Z-5:0),G=5;G<Z;G++)V[G-5]=arguments[G];var Q=M[k];if(!(Q instanceof e.Record)){var Y=s(Q),L=P;return new Error("Invalid "+L+" `"+H+"` of type `"+Y+"` "+("supplied to `"+D+"`, expected an Immutable.js Record."))}for(var J in R){var ee=R[J];if(ee){var ne=Q.toObject(),ae=ee.apply(void 0,[ne,J,D,P,""+H+"."+J].concat(V));if(ae)return ae}}}return a(O)}function x(R){var O=arguments[1]===void 0?"Iterable":arguments[1],M=arguments[2]===void 0?e.Iterable.isIterable:arguments[2];function k(D,P,H,Z,V){for(var G=arguments.length,Q=Array(G>5?G-5:0),Y=5;Y<G;Y++)Q[Y-5]=arguments[Y];var L=D[P];if(!M(L)){var J=s(L),ee=Z;return new Error("Invalid "+ee+" `"+V+"` of type `"+J+"` "+("supplied to `"+H+"`, expected an Immutable.js "+O+"."))}var ne=L.toObject();for(var ae in R){var X=R[ae];if(X){var B=X.apply(void 0,[ne,ae,H,Z,""+V+"."+ae].concat(Q));if(B)return B}}}return a(k)}function _(R){return x(R)}function A(R){return x(R,"Map",e.Map.isMap)}function C(R){return x(R,"OrderedMap",e.OrderedMap.isOrderedMap)}return nb=r,nb}var TX=RX();const IX=Be.getDefaultExportFromCjs(TX);var ib,aN;function jX(){if(aN)return ib;aN=1;function e(t,r,n,i,s){return s(t,function(a,o,u){n=i?(i=!1,a):r(n,a,o,u)}),n}return ib=e,ib}var sb,oN;function kX(){if(oN)return sb;oN=1;var e=WL(),t=aB(),r=sl(),n=jX(),i=Lr();function s(a,o,u){var c=i(a)?e:n,l=arguments.length<3;return c(a,r(o,4),u,l,t)}return sb=s,sb}var PX=kX();const NX=Be.getDefaultExportFromCjs(PX);var MX=rB();const DX=Be.getDefaultExportFromCjs(MX);var uN={},Vu,cN;function Nn(){if(cN)return Vu;cN=1;var e=function(t){return t&&t.Math===Math&&t};return Vu=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Be.commonjsGlobal=="object"&&Be.commonjsGlobal)||e(typeof Vu=="object"&&Vu)||function(){return this}()||Function("return this")(),Vu}var ab,lN;function vi(){return lN||(lN=1,ab=function(e){try{return!!e()}catch{return!0}}),ab}var ob,fN;function yl(){if(fN)return ob;fN=1;var e=vi();return ob=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),ob}var ub,pN;function BO(){if(pN)return ub;pN=1;var e=yl(),t=Function.prototype,r=t.apply,n=t.call;return ub=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),ub}var cb,dN;function Mn(){if(dN)return cb;dN=1;var e=yl(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return cb=e?n:function(i){return function(){return r.apply(i,arguments)}},cb}var lb,hN;function UO(){if(hN)return lb;hN=1;var e=Mn(),t=e({}.toString),r=e("".slice);return lb=function(n){return r(t(n),8,-1)},lb}var fb,mN;function z6(){if(mN)return fb;mN=1;var e=UO(),t=Mn();return fb=function(r){if(e(r)==="Function")return t(r)},fb}var pb,gN;function Zn(){if(gN)return pb;gN=1;var e=typeof document=="object"&&document.all;return pb=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},pb}var db={},hb,yN;function ls(){if(yN)return hb;yN=1;var e=vi();return hb=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),hb}var mb,vN;function ba(){if(vN)return mb;vN=1;var e=yl(),t=Function.prototype.call;return mb=e?t.bind(t):function(){return t.apply(t,arguments)},mb}var gb={},bN;function W6(){if(bN)return gb;bN=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return gb.f=r?function(i){var s=t(this,i);return!!s&&s.enumerable}:e,gb}var yb,_N;function vl(){return _N||(_N=1,yb=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),yb}var vb,EN;function J6(){if(EN)return vb;EN=1;var e=Mn(),t=vi(),r=UO(),n=Object,i=e("".split);return vb=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?i(s,""):n(s)}:n,vb}var bb,SN;function VO(){return SN||(SN=1,bb=function(e){return e==null}),bb}var _b,wN;function gh(){if(wN)return _b;wN=1;var e=VO(),t=TypeError;return _b=function(r){if(e(r))throw new t("Can't call method on "+r);return r},_b}var Eb,xN;function bl(){if(xN)return Eb;xN=1;var e=J6(),t=gh();return Eb=function(r){return e(t(r))},Eb}var Sb,AN;function Di(){if(AN)return Sb;AN=1;var e=Zn();return Sb=function(t){return typeof t=="object"?t!==null:e(t)},Sb}var wb,ON;function _l(){return ON||(ON=1,wb={}),wb}var xb,CN;function El(){if(CN)return xb;CN=1;var e=_l(),t=Nn(),r=Zn(),n=function(i){return r(i)?i:void 0};return xb=function(i,s){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][s]||t[i]&&t[i][s]},xb}var Ab,RN;function Sl(){if(RN)return Ab;RN=1;var e=Mn();return Ab=e({}.isPrototypeOf),Ab}var Ob,TN;function qX(){if(TN)return Ob;TN=1;var e=Nn(),t=e.navigator,r=t&&t.userAgent;return Ob=r?String(r):"",Ob}var Cb,IN;function $X(){if(IN)return Cb;IN=1;var e=Nn(),t=qX(),r=e.process,n=e.Deno,i=r&&r.versions||n&&n.version,s=i&&i.v8,a,o;return s&&(a=s.split("."),o=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&t&&(a=t.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=t.match(/Chrome\/(\d+)/),a&&(o=+a[1]))),Cb=o,Cb}var Rb,jN;function K6(){if(jN)return Rb;jN=1;var e=$X(),t=vi(),r=Nn(),n=r.String;return Rb=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Rb}var Tb,kN;function H6(){if(kN)return Tb;kN=1;var e=K6();return Tb=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Tb}var Ib,PN;function G6(){if(PN)return Ib;PN=1;var e=El(),t=Zn(),r=Sl(),n=H6(),i=Object;return Ib=n?function(s){return typeof s=="symbol"}:function(s){var a=e("Symbol");return t(a)&&r(a.prototype,i(s))},Ib}var jb,NN;function zO(){if(NN)return jb;NN=1;var e=String;return jb=function(t){try{return e(t)}catch{return"Object"}},jb}var kb,MN;function wl(){if(MN)return kb;MN=1;var e=Zn(),t=zO(),r=TypeError;return kb=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},kb}var Pb,DN;function WO(){if(DN)return Pb;DN=1;var e=wl(),t=VO();return Pb=function(r,n){var i=r[n];return t(i)?void 0:e(i)},Pb}var Nb,qN;function FX(){if(qN)return Nb;qN=1;var e=ba(),t=Zn(),r=Di(),n=TypeError;return Nb=function(i,s){var a,o;if(s==="string"&&t(a=i.toString)&&!r(o=e(a,i))||t(a=i.valueOf)&&!r(o=e(a,i))||s!=="string"&&t(a=i.toString)&&!r(o=e(a,i)))return o;throw new n("Can't convert object to primitive value")},Nb}var Mb={exports:{}},Db,$N;function xl(){return $N||($N=1,Db=!0),Db}var qb,FN;function LX(){if(FN)return qb;FN=1;var e=Nn(),t=Object.defineProperty;return qb=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},qb}var LN;function Y6(){if(LN)return Mb.exports;LN=1;var e=xl(),t=Nn(),r=LX(),n="__core-js_shared__",i=Mb.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.41.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Mb.exports}var $b,BN;function X6(){if(BN)return $b;BN=1;var e=Y6();return $b=function(t,r){return e[t]||(e[t]=r||{})},$b}var Fb,UN;function JO(){if(UN)return Fb;UN=1;var e=gh(),t=Object;return Fb=function(r){return t(e(r))},Fb}var Lb,VN;function qi(){if(VN)return Lb;VN=1;var e=Mn(),t=JO(),r=e({}.hasOwnProperty);return Lb=Object.hasOwn||function(i,s){return r(t(i),s)},Lb}var Bb,zN;function Z6(){if(zN)return Bb;zN=1;var e=Mn(),t=0,r=Math.random(),n=e(1 .toString);return Bb=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},Bb}var Ub,WN;function Ps(){if(WN)return Ub;WN=1;var e=Nn(),t=X6(),r=qi(),n=Z6(),i=K6(),s=H6(),a=e.Symbol,o=t("wks"),u=s?a.for||a:a&&a.withoutSetter||n;return Ub=function(c){return r(o,c)||(o[c]=i&&r(a,c)?a[c]:u("Symbol."+c)),o[c]},Ub}var Vb,JN;function BX(){if(JN)return Vb;JN=1;var e=ba(),t=Di(),r=G6(),n=WO(),i=FX(),s=Ps(),a=TypeError,o=s("toPrimitive");return Vb=function(u,c){if(!t(u)||r(u))return u;var l=n(u,o),f;if(l){if(c===void 0&&(c="default"),f=e(l,u,c),!t(f)||r(f))return f;throw new a("Can't convert object to primitive value")}return c===void 0&&(c="number"),i(u,c)},Vb}var zb,KN;function Q6(){if(KN)return zb;KN=1;var e=BX(),t=G6();return zb=function(r){var n=e(r,"string");return t(n)?n:n+""},zb}var Wb,HN;function e4(){if(HN)return Wb;HN=1;var e=Nn(),t=Di(),r=e.document,n=t(r)&&t(r.createElement);return Wb=function(i){return n?r.createElement(i):{}},Wb}var Jb,GN;function t4(){if(GN)return Jb;GN=1;var e=ls(),t=vi(),r=e4();return Jb=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Jb}var YN;function r4(){if(YN)return db;YN=1;var e=ls(),t=ba(),r=W6(),n=vl(),i=bl(),s=Q6(),a=qi(),o=t4(),u=Object.getOwnPropertyDescriptor;return db.f=e?u:function(l,f){if(l=i(l),f=s(f),o)try{return u(l,f)}catch{}if(a(l,f))return n(!t(r.f,l,f),l[f])},db}var Kb,XN;function UX(){if(XN)return Kb;XN=1;var e=vi(),t=Zn(),r=/#|\.prototype\./,n=function(u,c){var l=s[i(u)];return l===o?!0:l===a?!1:t(c)?e(c):!!c},i=n.normalize=function(u){return String(u).replace(r,".").toLowerCase()},s=n.data={},a=n.NATIVE="N",o=n.POLYFILL="P";return Kb=n,Kb}var Hb,ZN;function n4(){if(ZN)return Hb;ZN=1;var e=z6(),t=wl(),r=yl(),n=e(e.bind);return Hb=function(i,s){return t(i),s===void 0?i:r?n(i,s):function(){return i.apply(s,arguments)}},Hb}var Gb={},Yb,QN;function i4(){if(QN)return Yb;QN=1;var e=ls(),t=vi();return Yb=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Yb}var Xb,eM;function uo(){if(eM)return Xb;eM=1;var e=Di(),t=String,r=TypeError;return Xb=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},Xb}var tM;function wu(){if(tM)return Gb;tM=1;var e=ls(),t=t4(),r=i4(),n=uo(),i=Q6(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return Gb.f=e?r?function(h,d,g){if(n(h),d=i(d),n(g),typeof h=="function"&&d==="prototype"&&"value"in g&&l in g&&!g[l]){var y=o(h,d);y&&y[l]&&(h[d]=g.value,g={configurable:c in g?g[c]:y[c],enumerable:u in g?g[u]:y[u],writable:!1})}return a(h,d,g)}:a:function(h,d,g){if(n(h),d=i(d),n(g),t)try{return a(h,d,g)}catch{}if("get"in g||"set"in g)throw new s("Accessors not supported");return"value"in g&&(h[d]=g.value),h},Gb}var Zb,rM;function Ns(){if(rM)return Zb;rM=1;var e=ls(),t=wu(),r=vl();return Zb=e?function(n,i,s){return t.f(n,i,r(1,s))}:function(n,i,s){return n[i]=s,n},Zb}var Qb,nM;function xu(){if(nM)return Qb;nM=1;var e=Nn(),t=BO(),r=z6(),n=Zn(),i=r4().f,s=UX(),a=_l(),o=n4(),u=Ns(),c=qi(),l=function(f){var h=function(d,g,y){if(this instanceof h){switch(arguments.length){case 0:return new f;case 1:return new f(d);case 2:return new f(d,g)}return new f(d,g,y)}return t(f,this,arguments)};return h.prototype=f.prototype,h};return Qb=function(f,h){var d=f.target,g=f.global,y=f.stat,v=f.proto,E=g?e:y?e[d]:e[d]&&e[d].prototype,b=g?a:a[d]||u(a,d,{})[d],S=b.prototype,x,_,A,C,R,O,M,k,D;for(C in h)x=s(g?C:d+(y?".":"#")+C,f.forced),_=!x&&E&&c(E,C),O=b[C],_&&(f.dontCallGetSet?(D=i(E,C),M=D&&D.value):M=E[C]),R=_&&M?M:h[C],!(!x&&!v&&typeof O==typeof R)&&(f.bind&&_?k=o(R,e):f.wrap&&_?k=l(R):v&&n(R)?k=r(R):k=R,(f.sham||R&&R.sham||O&&O.sham)&&u(k,"sham",!0),u(b,C,k),v&&(A=d+"Prototype",c(a,A)||u(a,A,{}),u(a[A],C,R),f.real&&S&&(x||!S[C])&&u(S,C,R)))},Qb}var e_,iM;function VX(){if(iM)return e_;iM=1;var e=Math.ceil,t=Math.floor;return e_=Math.trunc||function(n){var i=+n;return(i>0?t:e)(i)},e_}var t_,sM;function KO(){if(sM)return t_;sM=1;var e=VX();return t_=function(t){var r=+t;return r!==r||r===0?0:e(r)},t_}var r_,aM;function zX(){if(aM)return r_;aM=1;var e=KO(),t=Math.max,r=Math.min;return r_=function(n,i){var s=e(n);return s<0?t(s+i,0):r(s,i)},r_}var n_,oM;function WX(){if(oM)return n_;oM=1;var e=KO(),t=Math.min;return n_=function(r){var n=e(r);return n>0?t(n,9007199254740991):0},n_}var i_,uM;function s4(){if(uM)return i_;uM=1;var e=WX();return i_=function(t){return e(t.length)},i_}var s_,cM;function JX(){if(cM)return s_;cM=1;var e=bl(),t=zX(),r=s4(),n=function(i){return function(s,a,o){var u=e(s),c=r(u);if(c===0)return!i&&-1;var l=t(o,c),f;if(i&&a!==a){for(;c>l;)if(f=u[l++],f!==f)return!0}else for(;c>l;l++)if((i||l in u)&&u[l]===a)return i||l||0;return!i&&-1}};return s_={includes:n(!0),indexOf:n(!1)},s_}var a_,lM;function HO(){return lM||(lM=1,a_={}),a_}var o_,fM;function a4(){if(fM)return o_;fM=1;var e=Mn(),t=qi(),r=bl(),n=JX().indexOf,i=HO(),s=e([].push);return o_=function(a,o){var u=r(a),c=0,l=[],f;for(f in u)!t(i,f)&&t(u,f)&&s(l,f);for(;o.length>c;)t(u,f=o[c++])&&(~n(l,f)||s(l,f));return l},o_}var u_,pM;function GO(){return pM||(pM=1,u_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),u_}var c_,dM;function o4(){if(dM)return c_;dM=1;var e=a4(),t=GO();return c_=Object.keys||function(n){return e(n,t)},c_}var l_={},hM;function u4(){return hM||(hM=1,l_.f=Object.getOwnPropertySymbols),l_}var f_,mM;function KX(){if(mM)return f_;mM=1;var e=ls(),t=Mn(),r=ba(),n=vi(),i=o4(),s=u4(),a=W6(),o=JO(),u=J6(),c=Object.assign,l=Object.defineProperty,f=t([].concat);return f_=!c||n(function(){if(e&&c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},d={},g=Symbol("assign detection"),y="abcdefghijklmnopqrst";return h[g]=7,y.split("").forEach(function(v){d[v]=v}),c({},h)[g]!==7||i(c({},d)).join("")!==y})?function(d,g){for(var y=o(d),v=arguments.length,E=1,b=s.f,S=a.f;v>E;)for(var x=u(arguments[E++]),_=b?f(i(x),b(x)):i(x),A=_.length,C=0,R;A>C;)R=_[C++],(!e||r(S,x,R))&&(y[R]=x[R]);return y}:c,f_}var gM;function HX(){if(gM)return uN;gM=1;var e=xu(),t=KX();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t}),uN}var p_,yM;function GX(){if(yM)return p_;yM=1,HX();var e=_l();return p_=e.Object.assign,p_}var d_,vM;function YX(){if(vM)return d_;vM=1;var e=GX();return d_=e,d_}var h_,bM;function XX(){if(bM)return h_;bM=1;var e=YX();return h_=e,h_}var m_,_M;function ZX(){if(_M)return m_;_M=1;var e=XX();return m_=e,m_}var g_,EM;function QX(){return EM||(EM=1,g_=ZX()),g_}var eZ=QX();const SM=Be.getDefaultExportFromCjs(eZ);var wM={},y_,xM;function tZ(){if(xM)return y_;xM=1;var e=Mn();return y_=e([].slice),y_}var v_,AM;function rZ(){if(AM)return v_;AM=1;var e=Mn(),t=wl(),r=Di(),n=qi(),i=tZ(),s=yl(),a=Function,o=e([].concat),u=e([].join),c={},l=function(f,h,d){if(!n(c,h)){for(var g=[],y=0;y<h;y++)g[y]="a["+y+"]";c[h]=a("C,a","return new C("+u(g,",")+")")}return c[h](f,d)};return v_=s?a.bind:function(h){var d=t(this),g=d.prototype,y=i(arguments,1),v=function(){var b=o(y,i(arguments));return this instanceof v?l(d,b.length,b):d.apply(h,b)};return r(g)&&(v.prototype=g),v},v_}var OM;function nZ(){if(OM)return wM;OM=1;var e=xu(),t=rZ();return e({target:"Function",proto:!0,forced:Function.bind!==t},{bind:t}),wM}var b_,CM;function iZ(){if(CM)return b_;CM=1;var e=Nn(),t=_l();return b_=function(r,n){var i=t[r+"Prototype"],s=i&&i[n];if(s)return s;var a=e[r],o=a&&a.prototype;return o&&o[n]},b_}var __,RM;function sZ(){if(RM)return __;RM=1,nZ();var e=iZ();return __=e("Function","bind"),__}var E_,TM;function aZ(){if(TM)return E_;TM=1;var e=Sl(),t=sZ(),r=Function.prototype;return E_=function(n){var i=n.bind;return n===r||e(r,n)&&i===r.bind?t:i},E_}var S_,IM;function oZ(){if(IM)return S_;IM=1;var e=aZ();return S_=e,S_}var w_,jM;function uZ(){if(jM)return w_;jM=1;var e=oZ();return w_=e,w_}var x_,kM;function cZ(){if(kM)return x_;kM=1;var e=uZ();return x_=e,x_}var A_,PM;function lZ(){return PM||(PM=1,A_=cZ()),A_}var fZ=lZ();const pZ=Be.getDefaultExportFromCjs(fZ);function Pw(){var e;return Pw=SM?pZ(e=SM).call(e):function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Pw.apply(null,arguments)}var O_={exports:{}};/*!
81
+ Copyright (c) 2018 Jed Watson.
82
+ Licensed under the MIT License (MIT), see
83
+ http://jedwatson.github.io/classnames
84
+ */var NM;function dZ(){return NM||(NM=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,n(o)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)t.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(O_)),O_.exports}var hZ=dZ();const mZ=Be.getDefaultExportFromCjs(hZ);var zu={},C_,MM;function gZ(){return MM||(MM=1,C_=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),C_}var R_,DM;function yZ(){if(DM)return R_;DM=1;var e=gZ(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(s){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,a)}function i(s,a){var o,u,c,l,f,h,d=!1;a||(a={}),o=a.debug||!1;try{c=e(),l=document.createRange(),f=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(y){if(y.stopPropagation(),a.format)if(y.preventDefault(),typeof y.clipboardData>"u"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=t[a.format]||t.default;window.clipboardData.setData(v,s)}else y.clipboardData.clearData(),y.clipboardData.setData(a.format,s);a.onCopy&&(y.preventDefault(),a.onCopy(y.clipboardData))}),document.body.appendChild(h),l.selectNodeContents(h),f.addRange(l);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");d=!0}catch(y){o&&console.error("unable to copy using execCommand: ",y),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",s),a.onCopy&&a.onCopy(window.clipboardData),d=!0}catch(v){o&&console.error("unable to copy using clipboardData: ",v),o&&console.error("falling back to prompt"),u=n("message"in a?a.message:r),window.prompt(u,s)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(l):f.removeAllRanges()),h&&document.body.removeChild(h),c()}return d}return R_=i,R_}var qM;function vZ(){if(qM)return zu;qM=1;function e(_){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(_)}Object.defineProperty(zu,"__esModule",{value:!0}),zu.CopyToClipboard=void 0;var t=i(jt),r=i(yZ()),n=["text","onCopy","options","children"];function i(_){return _&&_.__esModule?_:{default:_}}function s(_,A){var C=Object.keys(_);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(_);A&&(R=R.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),C.push.apply(C,R)}return C}function a(_){for(var A=1;A<arguments.length;A++){var C=arguments[A]!=null?arguments[A]:{};A%2?s(Object(C),!0).forEach(function(R){S(_,R,C[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(C)):s(Object(C)).forEach(function(R){Object.defineProperty(_,R,Object.getOwnPropertyDescriptor(C,R))})}return _}function o(_,A){if(_==null)return{};var C=u(_,A),R,O;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(_);for(O=0;O<M.length;O++)R=M[O],!(A.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(C[R]=_[R])}return C}function u(_,A){if(_==null)return{};var C={},R=Object.keys(_),O,M;for(M=0;M<R.length;M++)O=R[M],!(A.indexOf(O)>=0)&&(C[O]=_[O]);return C}function c(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}function l(_,A){for(var C=0;C<A.length;C++){var R=A[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}function f(_,A,C){return A&&l(_.prototype,A),Object.defineProperty(_,"prototype",{writable:!1}),_}function h(_,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(A&&A.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),A&&d(_,A)}function d(_,A){return d=Object.setPrototypeOf||function(R,O){return R.__proto__=O,R},d(_,A)}function g(_){var A=E();return function(){var R=b(_),O;if(A){var M=b(this).constructor;O=Reflect.construct(R,arguments,M)}else O=R.apply(this,arguments);return y(this,O)}}function y(_,A){if(A&&(e(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(_)}function v(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},b(_)}function S(_,A,C){return A in _?Object.defineProperty(_,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):_[A]=C,_}var x=function(_){h(C,_);var A=g(C);function C(){var R;c(this,C);for(var O=arguments.length,M=new Array(O),k=0;k<O;k++)M[k]=arguments[k];return R=A.call.apply(A,[this].concat(M)),S(v(R),"onClick",function(D){var P=R.props,H=P.text,Z=P.onCopy,V=P.children,G=P.options,Q=t.default.Children.only(V),Y=(0,r.default)(H,G);Z&&Z(H,Y),Q&&Q.props&&typeof Q.props.onClick=="function"&&Q.props.onClick(D)}),R}return f(C,[{key:"render",value:function(){var O=this.props;O.text,O.onCopy,O.options;var M=O.children,k=o(O,n),D=t.default.Children.only(M);return t.default.cloneElement(D,a(a({},k),{},{onClick:this.onClick}))}}]),C}(t.default.PureComponent);return zu.CopyToClipboard=x,S(x,"defaultProps",{onCopy:void 0,options:void 0}),zu}var T_,$M;function bZ(){if($M)return T_;$M=1;var e=vZ(),t=e.CopyToClipboard;return t.CopyToClipboard=t,T_=t,T_}var _Z=bZ();function gp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gp=function(t){return typeof t}:gp=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gp(e)}function EZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wZ(e,t,r){return t&&SZ(e.prototype,t),e}function xZ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function AZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FM(r,!0).forEach(function(n){xZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FM(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mw(e,t)}function Nw(e){return Nw=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nw(e)}function Mw(e,t){return Mw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Mw(e,t)}function CZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RZ(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:CZ(e)}var LM={};function TZ(e){return e!==null&&gp(e)==="object"&&typeof e.get=="function"&&typeof e.has=="function"}function IZ(e){return e==null}function jZ(e,t,r){return IZ(e)?r:TZ(e)?e.has(t)?e.get(t):r:hasOwnProperty.call(e,t)?e[t]:r}function BM(e,t,r){for(var n=0;n!==t.length;)if(e=jZ(e,t[n++],LM),e===LM)return r;return e}function UM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=kZ(t,r),i=e||Object.keys(AZ({},r,{},t));return i.every(n)}function kZ(e,t){return function(r){if(typeof r=="string")return Rr(t[r],e[r]);if(Array.isArray(r))return Rr(BM(t,r),BM(e,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var PZ=function(e){OZ(t,e);function t(){return EZ(this,t),RZ(this,Nw(t).apply(this,arguments))}return wZ(t,[{key:"shouldComponentUpdate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!UM(this.updateOnProps,this.props,n,"updateOnProps")||!UM(this.updateOnStates,this.state,i,"updateOnStates")}}]),t}(jt.Component),Wu={},I_,VM;function NZ(){if(VM)return I_;VM=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,u=typeof Be.commonjsGlobal=="object"&&Be.commonjsGlobal&&Be.commonjsGlobal.Object===Object&&Be.commonjsGlobal,c=typeof self=="object"&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Object.prototype,h=f.toString,d=Math.max,g=Math.min,y=function(){return l.Date.now()};function v(_,A,C){var R,O,M,k,D,P,H=0,Z=!1,V=!1,G=!0;if(typeof _!="function")throw new TypeError(e);A=x(A)||0,E(C)&&(Z=!!C.leading,V="maxWait"in C,M=V?d(x(C.maxWait)||0,A):M,G="trailing"in C?!!C.trailing:G);function Q(F){var ue=R,fe=O;return R=O=void 0,H=F,k=_.apply(fe,ue),k}function Y(F){return H=F,D=setTimeout(ee,A),Z?Q(F):k}function L(F){var ue=F-P,fe=F-H,Ae=A-ue;return V?g(Ae,M-fe):Ae}function J(F){var ue=F-P,fe=F-H;return P===void 0||ue>=A||ue<0||V&&fe>=M}function ee(){var F=y();if(J(F))return ne(F);D=setTimeout(ee,L(F))}function ne(F){return D=void 0,G&&R?Q(F):(R=O=void 0,k)}function ae(){D!==void 0&&clearTimeout(D),H=0,R=P=O=D=void 0}function X(){return D===void 0?k:ne(y())}function B(){var F=y(),ue=J(F);if(R=arguments,O=this,P=F,ue){if(D===void 0)return Y(P);if(V)return D=setTimeout(ee,A),Q(P)}return D===void 0&&(D=setTimeout(ee,A)),k}return B.cancel=ae,B.flush=X,B}function E(_){var A=typeof _;return!!_&&(A=="object"||A=="function")}function b(_){return!!_&&typeof _=="object"}function S(_){return typeof _=="symbol"||b(_)&&h.call(_)==r}function x(_){if(typeof _=="number")return _;if(S(_))return t;if(E(_)){var A=typeof _.valueOf=="function"?_.valueOf():_;_=E(A)?A+"":A}if(typeof _!="string")return _===0?_:+_;_=_.replace(n,"");var C=s.test(_);return C||a.test(_)?o(_.slice(2),C?2:8):i.test(_)?t:+_}return I_=v,I_}var zM;function MZ(){if(zM)return Wu;zM=1;function e(_){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(_)}Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.DebounceInput=void 0;var t=i(jt),r=i(NZ()),n=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function i(_){return _&&_.__esModule?_:{default:_}}function s(_,A){if(_==null)return{};var C=a(_,A),R,O;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(_);for(O=0;O<M.length;O++)R=M[O],!(A.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(C[R]=_[R])}return C}function a(_,A){if(_==null)return{};var C={},R=Object.keys(_),O,M;for(M=0;M<R.length;M++)O=R[M],!(A.indexOf(O)>=0)&&(C[O]=_[O]);return C}function o(_,A){var C=Object.keys(_);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(_);A&&(R=R.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),C.push.apply(C,R)}return C}function u(_){for(var A=1;A<arguments.length;A++){var C=arguments[A]!=null?arguments[A]:{};A%2?o(Object(C),!0).forEach(function(R){S(_,R,C[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(C)):o(Object(C)).forEach(function(R){Object.defineProperty(_,R,Object.getOwnPropertyDescriptor(C,R))})}return _}function c(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}function l(_,A){for(var C=0;C<A.length;C++){var R=A[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}function f(_,A,C){return A&&l(_.prototype,A),Object.defineProperty(_,"prototype",{writable:!1}),_}function h(_,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(A&&A.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),A&&d(_,A)}function d(_,A){return d=Object.setPrototypeOf||function(R,O){return R.__proto__=O,R},d(_,A)}function g(_){var A=E();return function(){var R=b(_),O;if(A){var M=b(this).constructor;O=Reflect.construct(R,arguments,M)}else O=R.apply(this,arguments);return y(this,O)}}function y(_,A){if(A&&(e(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(_)}function v(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},b(_)}function S(_,A,C){return A in _?Object.defineProperty(_,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):_[A]=C,_}var x=function(_){h(C,_);var A=g(C);function C(R){var O;c(this,C),O=A.call(this,R),S(v(O),"onChange",function(k){k.persist();var D=O.state.value,P=O.props.minLength;O.setState({value:k.target.value},function(){var H=O.state.value;if(H.length>=P){O.notify(k);return}D.length>H.length&&O.notify(u(u({},k),{},{target:u(u({},k.target),{},{value:""})}))})}),S(v(O),"onKeyDown",function(k){k.key==="Enter"&&O.forceNotify(k);var D=O.props.onKeyDown;D&&(k.persist(),D(k))}),S(v(O),"onBlur",function(k){O.forceNotify(k);var D=O.props.onBlur;D&&(k.persist(),D(k))}),S(v(O),"createNotifier",function(k){if(k<0)O.notify=function(){return null};else if(k===0)O.notify=O.doNotify;else{var D=(0,r.default)(function(P){O.isDebouncing=!1,O.doNotify(P)},k);O.notify=function(P){O.isDebouncing=!0,D(P)},O.flush=function(){return D.flush()},O.cancel=function(){O.isDebouncing=!1,D.cancel()}}}),S(v(O),"doNotify",function(){var k=O.props.onChange;k.apply(void 0,arguments)}),S(v(O),"forceNotify",function(k){var D=O.props.debounceTimeout;if(!(!O.isDebouncing&&D>0)){O.cancel&&O.cancel();var P=O.state.value,H=O.props.minLength;P.length>=H?O.doNotify(k):O.doNotify(u(u({},k),{},{target:u(u({},k.target),{},{value:P})}))}}),O.isDebouncing=!1,O.state={value:typeof R.value>"u"||R.value===null?"":R.value};var M=O.props.debounceTimeout;return O.createNotifier(M),O}return f(C,[{key:"componentDidUpdate",value:function(O){if(!this.isDebouncing){var M=this.props,k=M.value,D=M.debounceTimeout,P=O.debounceTimeout,H=O.value,Z=this.state.value;typeof k<"u"&&H!==k&&Z!==k&&this.setState({value:k}),D!==P&&this.createNotifier(D)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var O=this.props,M=O.element;O.onChange,O.value,O.minLength,O.debounceTimeout;var k=O.forceNotifyByEnter,D=O.forceNotifyOnBlur,P=O.onKeyDown,H=O.onBlur,Z=O.inputRef,V=s(O,n),G=this.state.value,Q;k?Q={onKeyDown:this.onKeyDown}:P?Q={onKeyDown:P}:Q={};var Y;D?Y={onBlur:this.onBlur}:H?Y={onBlur:H}:Y={};var L=Z?{ref:Z}:{};return t.default.createElement(M,u(u(u(u({},V),{},{onChange:this.onChange,value:G},Q),Y),L))}}]),C}(t.default.PureComponent);return Wu.DebounceInput=x,S(x,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0}),Wu}var j_,WM;function DZ(){if(WM)return j_;WM=1;var e=MZ(),t=e.DebounceInput;return t.DebounceInput=t,j_=t,j_}var qZ=DZ();const $Z=Be.getDefaultExportFromCjs(qZ);var FZ=nh();const LZ=Be.getDefaultExportFromCjs(FZ);var Xf={exports:{}},k_={},P_,JM;function yh(){return JM||(JM=1,P_={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}),P_}var Es={},KM;function c4(){if(KM)return Es;KM=1;const e=yh(),t=()=>[{type:e.RANGE,from:48,to:57}],r=()=>[{type:e.CHAR,value:95},{type:e.RANGE,from:97,to:122},{type:e.RANGE,from:65,to:90}].concat(t()),n=()=>[{type:e.CHAR,value:9},{type:e.CHAR,value:10},{type:e.CHAR,value:11},{type:e.CHAR,value:12},{type:e.CHAR,value:13},{type:e.CHAR,value:32},{type:e.CHAR,value:160},{type:e.CHAR,value:5760},{type:e.RANGE,from:8192,to:8202},{type:e.CHAR,value:8232},{type:e.CHAR,value:8233},{type:e.CHAR,value:8239},{type:e.CHAR,value:8287},{type:e.CHAR,value:12288},{type:e.CHAR,value:65279}],i=()=>[{type:e.CHAR,value:10},{type:e.CHAR,value:13},{type:e.CHAR,value:8232},{type:e.CHAR,value:8233}];return Es.words=()=>({type:e.SET,set:r(),not:!1}),Es.notWords=()=>({type:e.SET,set:r(),not:!0}),Es.ints=()=>({type:e.SET,set:t(),not:!1}),Es.notInts=()=>({type:e.SET,set:t(),not:!0}),Es.whitespace=()=>({type:e.SET,set:n(),not:!1}),Es.notWhitespace=()=>({type:e.SET,set:n(),not:!0}),Es.anyChar=()=>({type:e.SET,set:i(),not:!0}),Es}var HM;function BZ(){return HM||(HM=1,function(e){const t=yh(),r=c4(),n="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",i={0:0,t:9,n:10,v:11,f:12,r:13};e.strToChars=function(s){var a=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return s=s.replace(a,function(o,u,c,l,f,h,d,g){if(c)return o;var y=u?8:l?parseInt(l,16):f?parseInt(f,16):h?parseInt(h,8):d?n.indexOf(d):i[g],v=String.fromCharCode(y);return/[[\]{}^$.|?*+()]/.test(v)&&(v="\\"+v),v}),s},e.tokenizeClass=(s,a)=>{for(var o=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,c,l;(c=u.exec(s))!=null;)if(c[1])o.push(r.words());else if(c[2])o.push(r.ints());else if(c[3])o.push(r.whitespace());else if(c[4])o.push(r.notWords());else if(c[5])o.push(r.notInts());else if(c[6])o.push(r.notWhitespace());else if(c[7])o.push({type:t.RANGE,from:(c[8]||c[9]).charCodeAt(0),to:c[10].charCodeAt(0)});else if(l=c[12])o.push({type:t.CHAR,value:l.charCodeAt(0)});else return[o,u.lastIndex];e.error(a,"Unterminated character class")},e.error=(s,a)=>{throw new SyntaxError("Invalid regular expression: /"+s+"/: "+a)}}(k_)),k_}var Io={},GM;function UZ(){if(GM)return Io;GM=1;const e=yh();return Io.wordBoundary=()=>({type:e.POSITION,value:"b"}),Io.nonWordBoundary=()=>({type:e.POSITION,value:"B"}),Io.begin=()=>({type:e.POSITION,value:"^"}),Io.end=()=>({type:e.POSITION,value:"$"}),Io}var YM;function VZ(){if(YM)return Xf.exports;YM=1;const e=BZ(),t=yh(),r=c4(),n=UZ();return Xf.exports=i=>{var s=0,a,o,u={type:t.ROOT,stack:[]},c=u,l=u.stack,f=[],h=_=>{e.error(i,`Nothing to repeat at column ${_-1}`)},d=e.strToChars(i);for(a=d.length;s<a;)switch(o=d[s++],o){case"\\":switch(o=d[s++],o){case"b":l.push(n.wordBoundary());break;case"B":l.push(n.nonWordBoundary());break;case"w":l.push(r.words());break;case"W":l.push(r.notWords());break;case"d":l.push(r.ints());break;case"D":l.push(r.notInts());break;case"s":l.push(r.whitespace());break;case"S":l.push(r.notWhitespace());break;default:/\d/.test(o)?l.push({type:t.REFERENCE,value:parseInt(o,10)}):l.push({type:t.CHAR,value:o.charCodeAt(0)})}break;case"^":l.push(n.begin());break;case"$":l.push(n.end());break;case"[":var g;d[s]==="^"?(g=!0,s++):g=!1;var y=e.tokenizeClass(d.slice(s),i);s+=y[1],l.push({type:t.SET,set:y[0],not:g});break;case".":l.push(r.anyChar());break;case"(":var v={type:t.GROUP,stack:[],remember:!0};o=d[s],o==="?"&&(o=d[s+1],s+=2,o==="="?v.followedBy=!0:o==="!"?v.notFollowedBy=!0:o!==":"&&e.error(i,`Invalid group, character '${o}' after '?' at column ${s-1}`),v.remember=!1),l.push(v),f.push(c),c=v,l=v.stack;break;case")":f.length===0&&e.error(i,`Unmatched ) at column ${s-1}`),c=f.pop(),l=c.options?c.options[c.options.length-1]:c.stack;break;case"|":c.options||(c.options=[c.stack],delete c.stack);var E=[];c.options.push(E),l=E;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(s)),S,x;b!==null?(l.length===0&&h(s),S=parseInt(b[1],10),x=b[2]?b[3]?parseInt(b[3],10):1/0:S,s+=b[0].length,l.push({type:t.REPETITION,min:S,max:x,value:l.pop()})):l.push({type:t.CHAR,value:123});break;case"?":l.length===0&&h(s),l.push({type:t.REPETITION,min:0,max:1,value:l.pop()});break;case"+":l.length===0&&h(s),l.push({type:t.REPETITION,min:1,max:1/0,value:l.pop()});break;case"*":l.length===0&&h(s),l.push({type:t.REPETITION,min:0,max:1/0,value:l.pop()});break;default:l.push({type:t.CHAR,value:o.charCodeAt(0)})}return f.length!==0&&e.error(i,"Unterminated group"),u},Xf.exports.types=t,Xf.exports}var N_,XM;function zZ(){if(XM)return N_;XM=1;class e{constructor(n,i){this.low=n,this.high=i,this.length=1+i-n}overlaps(n){return!(this.high<n.low||this.low>n.high)}touches(n){return!(this.high+1<n.low||this.low-1>n.high)}add(n){return new e(Math.min(this.low,n.low),Math.max(this.high,n.high))}subtract(n){return n.low<=this.low&&n.high>=this.high?[]:n.low>this.low&&n.high<this.high?[new e(this.low,n.low-1),new e(n.high+1,this.high)]:n.low<=this.low?[new e(n.high+1,this.high)]:[new e(this.low,n.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class t{constructor(n,i){this.ranges=[],this.length=0,n!=null&&this.add(n,i)}_update_length(){this.length=this.ranges.reduce((n,i)=>n+i.length,0)}add(n,i){var s=a=>{for(var o=0;o<this.ranges.length&&!a.touches(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.touches(this.ranges[o]);)a=a.add(this.ranges[o]),o++;u.push(a),this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof t?n.ranges.forEach(s):(i==null&&(i=n),s(new e(n,i))),this}subtract(n,i){var s=a=>{for(var o=0;o<this.ranges.length&&!a.overlaps(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.overlaps(this.ranges[o]);)u=u.concat(this.ranges[o].subtract(a)),o++;this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof t?n.ranges.forEach(s):(i==null&&(i=n),s(new e(n,i))),this}intersect(n,i){var s=[],a=o=>{for(var u=0;u<this.ranges.length&&!o.overlaps(this.ranges[u]);)u++;for(;u<this.ranges.length&&o.overlaps(this.ranges[u]);){var c=Math.max(this.ranges[u].low,o.low),l=Math.min(this.ranges[u].high,o.high);s.push(new e(c,l)),u++}};return n instanceof t?n.ranges.forEach(a):(i==null&&(i=n),a(new e(n,i))),this.ranges=s,this._update_length(),this}index(n){for(var i=0;i<this.ranges.length&&this.ranges[i].length<=n;)n-=this.ranges[i].length,i++;return this.ranges[i].low+n}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new t(this)}numbers(){return this.ranges.reduce((n,i)=>{for(var s=i.low;s<=i.high;)n.push(s),s++;return n},[])}subranges(){return this.ranges.map(n=>({low:n.low,high:n.high,length:1+n.high-n.low}))}}return N_=t,N_}var M_,ZM;function WZ(){if(ZM)return M_;ZM=1;const e=VZ(),t=zZ(),r=e.types;return M_=class ac{constructor(i,s){if(this._setDefaults(i),i instanceof RegExp)this.ignoreCase=i.ignoreCase,this.multiline=i.multiline,i=i.source;else if(typeof i=="string")this.ignoreCase=s&&s.indexOf("i")!==-1,this.multiline=s&&s.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=e(i)}_setDefaults(i){this.max=i.max!=null?i.max:ac.prototype.max!=null?ac.prototype.max:100,this.defaultRange=i.defaultRange?i.defaultRange:this.defaultRange.clone(),i.randInt&&(this.randInt=i.randInt)}gen(){return this._gen(this.tokens,[])}_gen(i,s){var a,o,u,c,l;switch(i.type){case r.ROOT:case r.GROUP:if(i.followedBy||i.notFollowedBy)return"";for(i.remember&&i.groupNumber===void 0&&(i.groupNumber=s.push(null)-1),a=i.options?this._randSelect(i.options):i.stack,o="",c=0,l=a.length;c<l;c++)o+=this._gen(a[c],s);return i.remember&&(s[i.groupNumber]=o),o;case r.POSITION:return"";case r.SET:var f=this._expand(i);return f.length?String.fromCharCode(this._randSelect(f)):"";case r.REPETITION:for(u=this.randInt(i.min,i.max===1/0?i.min+this.max:i.max),o="",c=0;c<u;c++)o+=this._gen(i.value,s);return o;case r.REFERENCE:return s[i.value-1]||"";case r.CHAR:var h=this.ignoreCase&&this._randBool()?this._toOtherCase(i.value):i.value;return String.fromCharCode(h)}}_toOtherCase(i){return i+(97<=i&&i<=122?-32:65<=i&&i<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(i){return i instanceof t?i.index(this.randInt(0,i.length-1)):i[this.randInt(0,i.length-1)]}_expand(i){if(i.type===e.types.CHAR)return new t(i.value);if(i.type===e.types.RANGE)return new t(i.from,i.to);{let s=new t;for(let a=0;a<i.set.length;a++){let o=this._expand(i.set[a]);if(s.add(o),this.ignoreCase)for(let u=0;u<o.length;u++){let c=o.index(u),l=this._toOtherCase(c);c!==l&&s.add(l)}}return i.not?this.defaultRange.clone().subtract(s):this.defaultRange.clone().intersect(s)}}randInt(i,s){return i+Math.floor(Math.random()*(1+s-i))}get defaultRange(){return this._range=this._range||new t(32,126)}set defaultRange(i){this._range=i}static randexp(i,s){var a;return typeof i=="string"&&(i=new RegExp(i,s)),i._randexp===void 0?(a=new ac(i,s),i._randexp=a):(a=i._randexp,a._setDefaults(i)),a.gen()}static sugar(){RegExp.prototype.gen=function(){return ac.randexp(this)}}},M_}var JZ=WZ();const KZ=Be.getDefaultExportFromCjs(JZ);var D_,QM;function HZ(){if(QM)return D_;QM=1;var e=YA(),t=gu(),r=Zc(),n=Lr(),i=eo(),s=Qc(),a=rh(),o=ih(),u="[object Map]",c="[object Set]",l=Object.prototype,f=l.hasOwnProperty;function h(d){if(d==null)return!0;if(i(d)&&(n(d)||typeof d=="string"||typeof d.splice=="function"||s(d)||o(d)||r(d)))return!d.length;var g=t(d);if(g==u||g==c)return!d.size;if(a(d))return!e(d).length;for(var y in d)if(f.call(d,y))return!1;return!0}return D_=h,D_}var GZ=HZ();const YZ=Be.getDefaultExportFromCjs(GZ);var XZ=FL();const ZZ=Be.getDefaultExportFromCjs(XZ);var q_,eD;function l4(){if(eD)return q_;eD=1;var e=us(),t=Lr(),r=xn(),n="[object String]";function i(s){return typeof s=="string"||!t(s)&&r(s)&&e(s)==n}return q_=i,q_}var QZ=l4();const eQ=Be.getDefaultExportFromCjs(QZ);var $_,tD;function tQ(){if(tD)return $_;tD=1;var e=Sn(),t=function(){return e.Date.now()};return $_=t,$_}var F_,rD;function rQ(){if(rD)return F_;rD=1;var e=wn(),t=tQ(),r=sB(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,c){var l,f,h,d,g,y,v=0,E=!1,b=!1,S=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(E=!!c.leading,b="maxWait"in c,h=b?i(r(c.maxWait)||0,u):h,S="trailing"in c?!!c.trailing:S);function x(P){var H=l,Z=f;return l=f=void 0,v=P,d=o.apply(Z,H),d}function _(P){return v=P,g=setTimeout(R,u),E?x(P):d}function A(P){var H=P-y,Z=P-v,V=u-H;return b?s(V,h-Z):V}function C(P){var H=P-y,Z=P-v;return y===void 0||H>=u||H<0||b&&Z>=h}function R(){var P=t();if(C(P))return O(P);g=setTimeout(R,A(P))}function O(P){return g=void 0,S&&l?x(P):(l=f=void 0,d)}function M(){g!==void 0&&clearTimeout(g),v=0,l=y=f=g=void 0}function k(){return g===void 0?d:O(t())}function D(){var P=t(),H=C(P);if(l=arguments,f=this,y=P,H){if(g===void 0)return _(y);if(b)return clearTimeout(g),g=setTimeout(R,u),x(y)}return g===void 0&&(g=setTimeout(R,u)),d}return D.cancel=M,D.flush=k,D}return F_=a,F_}var nQ=rQ();const iQ=Be.getDefaultExportFromCjs(nQ);var L_,nD;function sQ(){if(nD)return L_;nD=1;var e=sh(),t=il(),r=el(),n=wn(),i=to();function s(a,o,u,c){if(!n(a))return a;o=t(o,a);for(var l=-1,f=o.length,h=f-1,d=a;d!=null&&++l<f;){var g=i(o[l]),y=u;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(l!=h){var v=d[g];y=c?c(v,g,d):void 0,y===void 0&&(y=n(v)?v:r(o[l+1])?[]:{})}e(d,g,y),d=d[g]}return a}return L_=s,L_}var B_,iD;function f4(){if(iD)return B_;iD=1;var e=sQ();function t(r,n,i){return r==null?r:e(r,n,i)}return B_=t,B_}var aQ=f4();const oQ=Be.getDefaultExportFromCjs(aQ);var U_={},sD;function uQ(){return sD||(sD=1,function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var i in r){var s=r[i];t.call(n,s)?n[s].push(i):n[s]=[i]}return n}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}}(U_)),U_}var V_,aD;function p4(){return aD||(aD=1,V_={}),V_}var z_,oD;function cQ(){if(oD)return z_;oD=1;var e=uQ(),t=p4(),r=Array.prototype.push;function n(l,f){return f==2?function(h,d){return l.apply(void 0,arguments)}:function(h){return l.apply(void 0,arguments)}}function i(l,f){return f==2?function(h,d){return l(h,d)}:function(h){return l(h)}}function s(l){for(var f=l?l.length:0,h=Array(f);f--;)h[f]=l[f];return h}function a(l){return function(f){return l({},f)}}function o(l,f){return function(){for(var h=arguments.length,d=h-1,g=Array(h);h--;)g[h]=arguments[h];var y=g[f],v=g.slice(0,f);return y&&r.apply(v,y),f!=d&&r.apply(v,g.slice(f+1)),l.apply(this,v)}}function u(l,f){return function(){var h=arguments.length;if(h){for(var d=Array(h);h--;)d[h]=arguments[h];var g=d[0]=f.apply(void 0,d);return l.apply(void 0,d),g}}}function c(l,f,h,d){var g=typeof f=="function",y=f===Object(f);if(y&&(d=h,h=f,f=void 0),h==null)throw new TypeError;d||(d={});var v={cap:"cap"in d?d.cap:!0,curry:"curry"in d?d.curry:!0,fixed:"fixed"in d?d.fixed:!0,immutable:"immutable"in d?d.immutable:!0,rearg:"rearg"in d?d.rearg:!0},E=g?h:t,b="curry"in d&&d.curry,S="fixed"in d&&d.fixed,x="rearg"in d&&d.rearg,_=g?h.runInContext():void 0,A=g?h:{ary:l.ary,assign:l.assign,clone:l.clone,curry:l.curry,forEach:l.forEach,isArray:l.isArray,isError:l.isError,isFunction:l.isFunction,isWeakMap:l.isWeakMap,iteratee:l.iteratee,keys:l.keys,rearg:l.rearg,toInteger:l.toInteger,toPath:l.toPath},C=A.ary,R=A.assign,O=A.clone,M=A.curry,k=A.forEach,D=A.isArray,P=A.isError,H=A.isFunction,Z=A.isWeakMap,V=A.keys,G=A.rearg,Q=A.toInteger,Y=A.toPath,L=V(e.aryMethod),J={castArray:function(he){return function(){var ve=arguments[0];return D(ve)?he(s(ve)):he.apply(void 0,arguments)}},iteratee:function(he){return function(){var ve=arguments[0],Se=arguments[1],$=he(ve,Se),T=$.length;return v.cap&&typeof Se=="number"?(Se=Se>2?Se-2:1,T&&T<=Se?$:i($,Se)):$}},mixin:function(he){return function(ve){var Se=this;if(!H(Se))return he(Se,Object(ve));var $=[];return k(V(ve),function(T){H(ve[T])&&$.push([T,Se.prototype[T]])}),he(Se,Object(ve)),k($,function(T){var j=T[1];H(j)?Se.prototype[T[0]]=j:delete Se.prototype[T[0]]}),Se}},nthArg:function(he){return function(ve){var Se=ve<0?1:Q(ve)+1;return M(he(ve),Se)}},rearg:function(he){return function(ve,Se){var $=Se?Se.length:0;return M(he(ve,Se),$)}},runInContext:function(he){return function(ve){return c(l,he(ve),d)}}};function ee(he,ve){if(v.cap){var Se=e.iterateeRearg[he];if(Se)return Ae(ve,Se);var $=!g&&e.iterateeAry[he];if($)return fe(ve,$)}return ve}function ne(he,ve,Se){return b||v.curry&&Se>1?M(ve,Se):ve}function ae(he,ve,Se){if(v.fixed&&(S||!e.skipFixed[he])){var $=e.methodSpread[he],T=$&&$.start;return T===void 0?C(ve,Se):o(ve,T)}return ve}function X(he,ve,Se){return v.rearg&&Se>1&&(x||!e.skipRearg[he])?G(ve,e.methodRearg[he]||e.aryRearg[Se]):ve}function B(he,ve){ve=Y(ve);for(var Se=-1,$=ve.length,T=$-1,j=O(Object(he)),U=j;U!=null&&++Se<$;){var re=ve[Se],ie=U[re];ie!=null&&!(H(ie)||P(ie)||Z(ie))&&(U[re]=O(Se==T?ie:Object(ie))),U=U[re]}return j}function F(he){return Oe.runInContext.convert(he)(void 0)}function ue(he,ve){var Se=e.aliasToReal[he]||he,$=e.remap[Se]||Se,T=d;return function(j){var U=g?_:A,re=g?_[$]:ve,ie=R(R({},T),j);return c(U,Se,re,ie)}}function fe(he,ve){return Ne(he,function(Se){return typeof Se=="function"?i(Se,ve):Se})}function Ae(he,ve){return Ne(he,function(Se){var $=ve.length;return n(G(i(Se,$),ve),$)})}function Ne(he,ve){return function(){var Se=arguments.length;if(!Se)return he();for(var $=Array(Se);Se--;)$[Se]=arguments[Se];var T=v.rearg?0:Se-1;return $[T]=ve($[T]),he.apply(void 0,$)}}function pe(he,ve,Se){var $,T=e.aliasToReal[he]||he,j=ve,U=J[T];return U?j=U(ve):v.immutable&&(e.mutate.array[T]?j=u(ve,s):e.mutate.object[T]?j=u(ve,a(ve)):e.mutate.set[T]&&(j=u(ve,B))),k(L,function(re){return k(e.aryMethod[re],function(ie){if(T==ie){var le=e.methodSpread[T],Ie=le&&le.afterRearg;return $=Ie?ae(T,X(T,j,re),re):X(T,ae(T,j,re),re),$=ee(T,$),$=ne(T,$,re),!1}}),!$}),$||($=j),$==ve&&($=b?M($,1):function(){return ve.apply(this,arguments)}),$.convert=ue(T,ve),$.placeholder=ve.placeholder=Se,$}if(!y)return pe(f,h,E);var Oe=h,We=[];return k(L,function(he){k(e.aryMethod[he],function(ve){var Se=Oe[e.remap[ve]||ve];Se&&We.push([ve,pe(ve,Se,Oe)])})}),k(V(Oe),function(he){var ve=Oe[he];if(typeof ve=="function"){for(var Se=We.length;Se--;)if(We[Se][0]==he)return;ve.convert=ue(he,ve),We.push([he,ve])}}),k(We,function(he){Oe[he[0]]=he[1]}),Oe.convert=F,Oe.placeholder=Oe,k(V(Oe),function(he){k(e.realToAlias[he]||[],function(ve){Oe[ve]=Oe[he]})}),Oe}return z_=c,z_}var W_,uD;function d4(){if(uD)return W_;uD=1;var e=ZL(),t=e&&new e;return W_=t,W_}var J_,cD;function h4(){if(cD)return J_;cD=1;var e=rl(),t=d4(),r=t?function(n,i){return t.set(n,i),n}:e;return J_=r,J_}var K_,lD;function vh(){if(lD)return K_;lD=1;var e=th(),t=wn();function r(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=e(n.prototype),a=n.apply(s,i);return t(a)?a:s}}return K_=r,K_}var H_,fD;function lQ(){if(fD)return H_;fD=1;var e=vh(),t=Sn(),r=1;function n(i,s,a){var o=s&r,u=e(i);function c(){var l=this&&this!==t&&this instanceof c?u:i;return l.apply(o?a:this,arguments)}return c}return H_=n,H_}var G_,pD;function m4(){if(pD)return G_;pD=1;var e=Math.max;function t(r,n,i,s){for(var a=-1,o=r.length,u=i.length,c=-1,l=n.length,f=e(o-u,0),h=Array(l+f),d=!s;++c<l;)h[c]=n[c];for(;++a<u;)(d||a<o)&&(h[i[a]]=r[a]);for(;f--;)h[c++]=r[a++];return h}return G_=t,G_}var Y_,dD;function g4(){if(dD)return Y_;dD=1;var e=Math.max;function t(r,n,i,s){for(var a=-1,o=r.length,u=-1,c=i.length,l=-1,f=n.length,h=e(o-c,0),d=Array(h+f),g=!s;++a<h;)d[a]=r[a];for(var y=a;++l<f;)d[y+l]=n[l];for(;++u<c;)(g||a<o)&&(d[y+i[u]]=r[a++]);return d}return Y_=t,Y_}var X_,hD;function fQ(){if(hD)return X_;hD=1;function e(t,r){for(var n=t.length,i=0;n--;)t[n]===r&&++i;return i}return X_=e,X_}var Z_,mD;function YO(){if(mD)return Z_;mD=1;function e(){}return Z_=e,Z_}var Q_,gD;function XO(){if(gD)return Q_;gD=1;var e=th(),t=YO(),r=4294967295;function n(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=r,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,Q_=n,Q_}var eE,yD;function pQ(){if(yD)return eE;yD=1;function e(){}return eE=e,eE}var tE,vD;function y4(){if(vD)return tE;vD=1;var e=d4(),t=pQ(),r=e?function(n){return e.get(n)}:t;return tE=r,tE}var rE,bD;function dQ(){if(bD)return rE;bD=1;var e={};return rE=e,rE}var nE,_D;function hQ(){if(_D)return nE;_D=1;var e=dQ(),t=Object.prototype,r=t.hasOwnProperty;function n(i){for(var s=i.name+"",a=e[s],o=r.call(e,s)?a.length:0;o--;){var u=a[o],c=u.func;if(c==null||c==i)return u.name}return s}return nE=n,nE}var iE,ED;function v4(){if(ED)return iE;ED=1;var e=th(),t=YO();function r(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=void 0}return r.prototype=e(t.prototype),r.prototype.constructor=r,iE=r,iE}var sE,SD;function mQ(){if(SD)return sE;SD=1;var e=XO(),t=v4(),r=Xc();function n(i){if(i instanceof e)return i.clone();var s=new t(i.__wrapped__,i.__chain__);return s.__actions__=r(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}return sE=n,sE}var aE,wD;function gQ(){if(wD)return aE;wD=1;var e=XO(),t=v4(),r=YO(),n=Lr(),i=xn(),s=mQ(),a=Object.prototype,o=a.hasOwnProperty;function u(c){if(i(c)&&!n(c)&&!(c instanceof e)){if(c instanceof t)return c;if(o.call(c,"__wrapped__"))return s(c)}return new t(c)}return u.prototype=r.prototype,u.prototype.constructor=u,aE=u,aE}var oE,xD;function yQ(){if(xD)return oE;xD=1;var e=XO(),t=y4(),r=hQ(),n=gQ();function i(s){var a=r(s),o=n[a];if(typeof o!="function"||!(a in e.prototype))return!1;if(s===o)return!0;var u=t(o);return!!u&&s===u[0]}return oE=i,oE}var uE,AD;function b4(){if(AD)return uE;AD=1;var e=h4(),t=LL(),r=t(e);return uE=r,uE}var cE,OD;function vQ(){if(OD)return cE;OD=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;function r(n){var i=n.match(e);return i?i[1].split(t):[]}return cE=r,cE}var lE,CD;function bQ(){if(CD)return lE;CD=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function t(r,n){var i=n.length;if(!i)return r;var s=i-1;return n[s]=(i>1?"& ":"")+n[s],n=n.join(i>2?", ":" "),r.replace(e,`{
85
+ /* [wrapped with `+n+`] */
86
+ `)}return lE=t,lE}var fE,RD;function _Q(){if(RD)return fE;RD=1;function e(t){return t!==t}return fE=e,fE}var pE,TD;function EQ(){if(TD)return pE;TD=1;function e(t,r,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===r)return i;return-1}return pE=e,pE}var dE,ID;function SQ(){if(ID)return dE;ID=1;var e=iB(),t=_Q(),r=EQ();function n(i,s,a){return s===s?r(i,s,a):e(i,t,a)}return dE=n,dE}var hE,jD;function wQ(){if(jD)return hE;jD=1;var e=SQ();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return hE=t,hE}var mE,kD;function xQ(){if(kD)return mE;kD=1;var e=tO(),t=wQ(),r=1,n=2,i=8,s=16,a=32,o=64,u=128,c=256,l=512,f=[["ary",u],["bind",r],["bindKey",n],["curry",i],["curryRight",s],["flip",l],["partial",a],["partialRight",o],["rearg",c]];function h(d,g){return e(f,function(y){var v="_."+y[0];g&y[1]&&!t(d,v)&&d.push(v)}),d.sort()}return mE=h,mE}var gE,PD;function _4(){if(PD)return gE;PD=1;var e=vQ(),t=bQ(),r=JA(),n=xQ();function i(s,a,o){var u=a+"";return r(s,t(u,n(e(u),o)))}return gE=i,gE}var yE,ND;function E4(){if(ND)return yE;ND=1;var e=yQ(),t=b4(),r=_4(),n=4,i=8,s=32,a=64;function o(u,c,l,f,h,d,g,y,v,E){var b=c&i,S=b?g:void 0,x=b?void 0:g,_=b?d:void 0,A=b?void 0:d;c|=b?s:a,c&=~(b?a:s),c&n||(c&=-4);var C=[u,c,h,_,S,A,x,y,v,E],R=l.apply(void 0,C);return e(u)&&t(R,C),R.placeholder=f,r(R,u,c)}return yE=o,yE}var vE,MD;function S4(){if(MD)return vE;MD=1;function e(t){var r=t;return r.placeholder}return vE=e,vE}var bE,DD;function AQ(){if(DD)return bE;DD=1;var e=Xc(),t=el(),r=Math.min;function n(i,s){for(var a=i.length,o=r(s.length,a),u=e(i);o--;){var c=s[o];i[o]=t(c,a)?u[c]:void 0}return i}return bE=n,bE}var _E,qD;function ZO(){if(qD)return _E;qD=1;var e="__lodash_placeholder__";function t(r,n){for(var i=-1,s=r.length,a=0,o=[];++i<s;){var u=r[i];(u===n||u===e)&&(r[i]=e,o[a++]=i)}return o}return _E=t,_E}var EE,$D;function w4(){if($D)return EE;$D=1;var e=m4(),t=g4(),r=fQ(),n=vh(),i=E4(),s=S4(),a=AQ(),o=ZO(),u=Sn(),c=1,l=2,f=8,h=16,d=128,g=512;function y(v,E,b,S,x,_,A,C,R,O){var M=E&d,k=E&c,D=E&l,P=E&(f|h),H=E&g,Z=D?void 0:n(v);function V(){for(var G=arguments.length,Q=Array(G),Y=G;Y--;)Q[Y]=arguments[Y];if(P)var L=s(V),J=r(Q,L);if(S&&(Q=e(Q,S,x,P)),_&&(Q=t(Q,_,A,P)),G-=J,P&&G<O){var ee=o(Q,L);return i(v,E,y,V.placeholder,b,Q,ee,C,R,O-G)}var ne=k?b:this,ae=D?ne[v]:v;return G=Q.length,C?Q=a(Q,C):H&&G>1&&Q.reverse(),M&&R<G&&(Q.length=R),this&&this!==u&&this instanceof V&&(ae=Z||n(ae)),ae.apply(ne,Q)}return V}return EE=y,EE}var SE,FD;function OQ(){if(FD)return SE;FD=1;var e=WA(),t=vh(),r=w4(),n=E4(),i=S4(),s=ZO(),a=Sn();function o(u,c,l){var f=t(u);function h(){for(var d=arguments.length,g=Array(d),y=d,v=i(h);y--;)g[y]=arguments[y];var E=d<3&&g[0]!==v&&g[d-1]!==v?[]:s(g,v);if(d-=E.length,d<l)return n(u,c,r,h.placeholder,void 0,g,E,void 0,void 0,l-d);var b=this&&this!==a&&this instanceof h?f:u;return e(b,this,g)}return h}return SE=o,SE}var wE,LD;function CQ(){if(LD)return wE;LD=1;var e=WA(),t=vh(),r=Sn(),n=1;function i(s,a,o,u){var c=a&n,l=t(s);function f(){for(var h=-1,d=arguments.length,g=-1,y=u.length,v=Array(y+d),E=this&&this!==r&&this instanceof f?l:s;++g<y;)v[g]=u[g];for(;d--;)v[g++]=arguments[++h];return e(E,c?o:this,v)}return f}return wE=i,wE}var xE,BD;function RQ(){if(BD)return xE;BD=1;var e=m4(),t=g4(),r=ZO(),n="__lodash_placeholder__",i=1,s=2,a=4,o=8,u=128,c=256,l=Math.min;function f(h,d){var g=h[1],y=d[1],v=g|y,E=v<(i|s|u),b=y==u&&g==o||y==u&&g==c&&h[7].length<=d[8]||y==(u|c)&&d[7].length<=d[8]&&g==o;if(!(E||b))return h;y&i&&(h[2]=d[2],v|=g&i?0:a);var S=d[3];if(S){var x=h[3];h[3]=x?e(x,S,d[4]):S,h[4]=x?r(h[3],n):d[4]}return S=d[5],S&&(x=h[5],h[5]=x?t(x,S,d[6]):S,h[6]=x?r(h[5],n):d[6]),S=d[7],S&&(h[7]=S),y&u&&(h[8]=h[8]==null?d[8]:l(h[8],d[8])),h[9]==null&&(h[9]=d[9]),h[0]=d[0],h[1]=v,h}return xE=f,xE}var AE,UD;function QO(){if(UD)return AE;UD=1;var e=h4(),t=lQ(),r=OQ(),n=w4(),i=CQ(),s=y4(),a=RQ(),o=b4(),u=_4(),c=eO(),l="Expected a function",f=1,h=2,d=8,g=16,y=32,v=64,E=Math.max;function b(S,x,_,A,C,R,O,M){var k=x&h;if(!k&&typeof S!="function")throw new TypeError(l);var D=A?A.length:0;if(D||(x&=-97,A=C=void 0),O=O===void 0?O:E(c(O),0),M=M===void 0?M:c(M),D-=C?C.length:0,x&v){var P=A,H=C;A=C=void 0}var Z=k?void 0:s(S),V=[S,x,_,A,C,P,H,R,O,M];if(Z&&a(V,Z),S=V[0],x=V[1],_=V[2],A=V[3],C=V[4],M=V[9]=V[9]===void 0?k?0:S.length:E(V[9]-D,0),!M&&x&(d|g)&&(x&=-25),!x||x==f)var G=t(S,x,_);else x==d||x==g?G=r(S,x,M):(x==y||x==(f|y))&&!C.length?G=i(S,x,_,A):G=n.apply(void 0,V);var Q=Z?e:o;return u(Q(G,V),S,x)}return AE=b,AE}var OE,VD;function TQ(){if(VD)return OE;VD=1;var e=QO(),t=128;function r(n,i,s){return i=s?void 0:i,i=n&&i==null?n.length:i,e(n,t,void 0,void 0,void 0,void 0,i)}return OE=r,OE}var CE,zD;function IQ(){if(zD)return CE;zD=1;var e=rO(),t=4;function r(n){return e(n,t)}return CE=r,CE}var RE,WD;function jQ(){if(WD)return RE;WD=1;var e=QO(),t=8;function r(n,i,s){i=s?void 0:i;var a=e(n,t,void 0,void 0,void 0,void 0,void 0,i);return a.placeholder=r.placeholder,a}return r.placeholder={},RE=r,RE}var TE,JD;function kQ(){if(JD)return TE;JD=1;var e=us(),t=xn(),r=nh(),n="[object DOMException]",i="[object Error]";function s(a){if(!t(a))return!1;var o=e(a);return o==i||o==n||typeof a.message=="string"&&typeof a.name=="string"&&!r(a)}return TE=s,TE}var IE,KD;function PQ(){if(KD)return IE;KD=1;var e=gu(),t=xn(),r="[object WeakMap]";function n(i){return t(i)&&e(i)==r}return IE=n,IE}var jE,HD;function NQ(){if(HD)return jE;HD=1;var e=rO(),t=sl(),r=1;function n(i){return t(typeof i=="function"?i:e(i,r))}return jE=n,jE}var kE,GD;function MQ(){if(GD)return kE;GD=1;var e=QO(),t=pB(),r=256,n=t(function(i,s){return e(i,r,void 0,void 0,void 0,s)});return kE=n,kE}var PE,YD;function DQ(){if(YD)return PE;YD=1;var e=KA(),t=Xc(),r=Lr(),n=nl(),i=tB(),s=to(),a=ks();function o(u){return r(u)?e(u,s):n(u)?[u]:t(i(a(u)))}return PE=o,PE}var NE,XD;function qQ(){return XD||(XD=1,NE={ary:TQ(),assign:cB(),clone:IQ(),curry:jQ(),forEach:tO(),isArray:Lr(),isError:kQ(),isFunction:Yc(),isWeakMap:PQ(),iteratee:NQ(),keys:YA(),rearg:MQ(),toInteger:eO(),toPath:DQ()}),NE}var ME,ZD;function $Q(){if(ZD)return ME;ZD=1;var e=cQ(),t=qQ();function r(n,i,s){return e(t,n,i,s)}return ME=r,ME}var DE,QD;function x4(){if(QD)return DE;QD=1;var e=$Q(),t=e("set",f4());return t.placeholder=p4(),DE=t,DE}var qE,eq;function FQ(){return eq||(eq=1,qE=x4()),qE}var LQ=FQ();const BQ=Be.getDefaultExportFromCjs(LQ);/*!
87
+ * https://github.com/Starcounter-Jack/JSON-Patch
88
+ * (c) 2017-2022 Joachim Wester
89
+ * MIT licensed
90
+ */var UQ=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),VQ=Object.prototype.hasOwnProperty;function Dw(e,t){return VQ.call(e,t)}function qw(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var i in e)Dw(e,i)&&n.push(i);return n}function Kn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function $w(e){for(var t=0,r=e.length,n;t<r;){if(n=e.charCodeAt(t),n>=48&&n<=57){t++;continue}return!1}return!0}function Ma(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function A4(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Fw(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Fw(e[t]))return!0}else if(typeof e=="object"){for(var n=qw(e),i=n.length,s=0;s<i;s++)if(Fw(e[n[s]]))return!0}}return!1}function tq(e,t){var r=[e];for(var n in t){var i=typeof t[n]=="object"?JSON.stringify(t[n],null,2):t[n];typeof i<"u"&&r.push(n+": "+i)}return r.join(`
91
+ `)}var O4=function(e){UQ(t,e);function t(r,n,i,s,a){var o=this.constructor,u=e.call(this,tq(r,{name:n,index:i,operation:s,tree:a}))||this;return u.name=n,u.index=i,u.operation=s,u.tree=a,Object.setPrototypeOf(u,o.prototype),u.message=tq(r,{name:n,index:i,operation:s,tree:a}),u}return t}(Error),gr=O4,zQ=Kn,Bo={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=Pc(r,this.path);n&&(n=Kn(n));var i=Va(r,{op:"remove",path:this.from}).removed;return Va(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=Pc(r,this.from);return Va(r,{op:"add",path:this.path,value:Kn(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Nc(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},WQ={add:function(e,t,r){return $w(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){var n=e.splice(t,1);return{newDocument:r,removed:n[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:Bo.move,copy:Bo.copy,test:Bo.test,_get:Bo._get};function Pc(e,t){if(t=="")return e;var r={op:"_get",path:t};return Va(e,r),r.value}function Va(e,t,r,n,i,s){if(r===void 0&&(r=!1),n===void 0&&(n=!0),i===void 0&&(i=!0),s===void 0&&(s=0),r&&(typeof r=="function"?r(t,0,e,t.path):Fp(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=Pc(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=Nc(e,t.value),a.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(r)throw new gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e);return a}}else{n||(e=Kn(e));var o=t.path||"",u=o.split("/"),c=e,l=1,f=u.length,h=void 0,d=void 0,g=void 0;for(typeof r=="function"?g=r:g=Fp;;){if(d=u[l],d&&d.indexOf("~")!=-1&&(d=A4(d)),i&&(d=="__proto__"||d=="prototype"&&l>0&&u[l-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&h===void 0&&(c[d]===void 0?h=u.slice(0,l).join("/"):l==f-1&&(h=t.path),h!==void 0&&g(t,0,e,h)),l++,Array.isArray(c)){if(d==="-")d=c.length;else{if(r&&!$w(d))throw new gr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s,t,e);$w(d)&&(d=~~d)}if(l>=f){if(r&&t.op==="add"&&d>c.length)throw new gr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,t,e);var a=WQ[t.op].call(t,c,d,e);if(a.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}}else if(l>=f){var a=Bo[t.op].call(t,c,d,e);if(a.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}if(c=c[d],r&&l<f&&(!c||typeof c!="object"))throw new gr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}}function aa(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Kn(e));for(var s=new Array(t.length),a=0,o=t.length;a<o;a++)s[a]=Va(e,t[a],r,!0,i,a),e=s[a].newDocument;return s.newDocument=e,s}function JQ(e,t,r){var n=Va(e,t);if(n.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Fp(e,t,r,n){if(typeof e!="object"||e===null||Array.isArray(e))throw new gr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(Bo[e.op]){if(typeof e.path!="string")throw new gr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new gr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new gr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Fw(e.value))throw new gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var i=e.path.split("/").length,s=n.split("/").length;if(i!==s+1&&i!==s)throw new gr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new gr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},o=C4([a],r);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new gr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function C4(e,t,r){try{if(!Array.isArray(e))throw new gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)aa(Kn(t),Kn(e),r||!0);else{r=r||Fp;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(i){if(i instanceof gr)return i;throw i}}function Nc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Array.isArray(e),n=Array.isArray(t),i,s,a;if(r&&n){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!Nc(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var o=Object.keys(e);if(s=o.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(o[i]))return!1;for(i=s;i--!==0;)if(a=o[i],!Nc(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}const KQ=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:gr,_areEquals:Nc,applyOperation:Va,applyPatch:aa,applyReducer:JQ,deepClone:zQ,getValueByPointer:Pc,validate:C4,validator:Fp},Symbol.toStringTag,{value:"Module"}));/*!
92
+ * https://github.com/Starcounter-Jack/JSON-Patch
93
+ * (c) 2017-2021 Joachim Wester
94
+ * MIT license
95
+ */var e2=new WeakMap,HQ=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),GQ=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function YQ(e){return e2.get(e)}function XQ(e,t){return e.observers.get(t)}function ZQ(e,t){e.observers.delete(t.callback)}function QQ(e,t){t.unobserve()}function eee(e,t){var r=[],n,i=YQ(e);if(!i)i=new HQ(e),e2.set(e,i);else{var s=XQ(i,t);n=s&&s.observer}if(n)return n;if(n={},i.value=Kn(e),t){n.callback=t,n.next=null;var a=function(){Lw(n)},o=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return n.patches=r,n.object=e,n.unobserve=function(){Lw(n),clearTimeout(n.next),ZQ(i,n),typeof window<"u"&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},i.observers.set(t,new GQ(t,n)),n}function Lw(e,t){t===void 0&&(t=!1);var r=e2.get(e.object);t2(r.value,e.object,e.patches,"",t),e.patches.length&&aa(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function t2(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var s=qw(t),a=qw(e),o=!1,u=a.length-1;u>=0;u--){var c=a[u],l=e[c];if(Dw(t,c)&&!(t[c]===void 0&&l!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof l=="object"&&l!=null&&typeof f=="object"&&f!=null&&Array.isArray(l)===Array.isArray(f)?t2(l,f,r,n+"/"+Ma(c),i):l!==f&&(i&&r.push({op:"test",path:n+"/"+Ma(c),value:Kn(l)}),r.push({op:"replace",path:n+"/"+Ma(c),value:Kn(f)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+Ma(c),value:Kn(l)}),r.push({op:"remove",path:n+"/"+Ma(c)}),o=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!o&&s.length==a.length))for(var u=0;u<s.length;u++){var c=s[u];!Dw(e,c)&&t[c]!==void 0&&r.push({op:"add",path:n+"/"+Ma(c),value:Kn(t[c])})}}}function tee(e,t,r){r===void 0&&(r=!1);var n=[];return t2(e,t,n,"",r),n}const ree=Object.freeze(Object.defineProperty({__proto__:null,compare:tee,generate:Lw,observe:eee,unobserve:QQ},Symbol.toStringTag,{value:"Module"}));Object.assign({},KQ,ree,{JsonPatchError:O4,deepClone:Kn,escapePathComponent:Ma,unescapePathComponent:A4});var $E,rq;function nee(){if(rq)return $E;rq=1;var e=function(b){return t(b)&&!r(b)};function t(E){return!!E&&typeof E=="object"}function r(E){var b=Object.prototype.toString.call(E);return b==="[object RegExp]"||b==="[object Date]"||s(E)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function s(E){return E.$$typeof===i}function a(E){return Array.isArray(E)?[]:{}}function o(E,b){return b.clone!==!1&&b.isMergeableObject(E)?y(a(E),E,b):E}function u(E,b,S){return E.concat(b).map(function(x){return o(x,S)})}function c(E,b){if(!b.customMerge)return y;var S=b.customMerge(E);return typeof S=="function"?S:y}function l(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(b){return Object.propertyIsEnumerable.call(E,b)}):[]}function f(E){return Object.keys(E).concat(l(E))}function h(E,b){try{return b in E}catch{return!1}}function d(E,b){return h(E,b)&&!(Object.hasOwnProperty.call(E,b)&&Object.propertyIsEnumerable.call(E,b))}function g(E,b,S){var x={};return S.isMergeableObject(E)&&f(E).forEach(function(_){x[_]=o(E[_],S)}),f(b).forEach(function(_){d(E,_)||(h(E,_)&&S.isMergeableObject(b[_])?x[_]=c(_,S)(E[_],b[_],S):x[_]=o(b[_],S))}),x}function y(E,b,S){S=S||{},S.arrayMerge=S.arrayMerge||u,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var x=Array.isArray(b),_=Array.isArray(E),A=x===_;return A?x?S.arrayMerge(E,b,S):g(E,b,S):o(b,S)}y.all=function(b,S){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(x,_){return y(x,_,S)},{})};var v=y;return $E=v,$E}var iee=nee();const see=Be.getDefaultExportFromCjs(iee),qt={add:oee,replace:yp,remove:uee,merge:cee,mergeDeep:lee,context:fee,getIn:mee,applyPatch:aee,parentPathMatch:hee,flatten:Al,fullyNormalizeArray:gee,normalizeArray:T4,isPromise:yee,forEachNew:pee,forEachNewPrimitive:dee,isJsonPatch:k4,isContextPatch:_ee,isPatch:bh,isMutation:P4,isAdditiveMutation:Lp,isGenerator:bee,isFunction:j4,isObject:za,isError:vee};function aee(e,t,r){if(r=r||{},t={...t,path:t.path&&nq(t.path)},t.op==="merge"){const n=FE(e,t.path);Object.assign(n,t.value),aa(e,[yp(t.path,n)])}else if(t.op==="mergeDeep"){const n=FE(e,t.path),i=see(n,t.value);e=aa(e,[yp(t.path,i)]).newDocument}else if(t.op==="add"&&t.path===""&&za(t.value)){const n=Object.keys(t.value).reduce((i,s)=>(i.push({op:"add",path:`/${nq(s)}`,value:t.value[s]}),i),[]);aa(e,n)}else if(t.op==="replace"&&t.path===""){let{value:n}=t;r.allowMetaPatches&&t.meta&&Lp(t)&&(Array.isArray(t.value)||za(t.value))&&(n={...n,...t.meta}),e=n}else if(aa(e,[t]),r.allowMetaPatches&&t.meta&&Lp(t)&&(Array.isArray(t.value)||za(t.value))){const i={...FE(e,t.path),...t.meta};aa(e,[yp(t.path,i)])}return e}function nq(e){return Array.isArray(e)?e.length<1?"":`/${e.map(t=>(t+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function oee(e,t){return{op:"add",path:e,value:t}}function yp(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function uee(e){return{op:"remove",path:e}}function cee(e,t){return{type:"mutation",op:"merge",path:e,value:t}}function lee(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}}function fee(e,t){return{type:"context",path:e,value:t}}function pee(e,t){try{return R4(e,Uw,t)}catch(r){return r}}function dee(e,t){try{return R4(e,Bw,t)}catch(r){return r}}function R4(e,t,r){const n=e.filter(Lp).map(a=>t(a.value,r,a.path))||[],i=Al(n);return I4(i)}function Bw(e,t,r){return r=r||[],Array.isArray(e)?e.map((n,i)=>Bw(n,t,r.concat(i))):za(e)?Object.keys(e).map(n=>Bw(e[n],t,r.concat(n))):t(e,r[r.length-1],r)}function Uw(e,t,r){r=r||[];let n=[];if(r.length>0){const i=t(e,r[r.length-1],r);i&&(n=n.concat(i))}if(Array.isArray(e)){const i=e.map((s,a)=>Uw(s,t,r.concat(a)));i&&(n=n.concat(i))}else if(za(e)){const i=Object.keys(e).map(s=>Uw(e[s],t,r.concat(s)));i&&(n=n.concat(i))}return n=Al(n),n}function hee(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0}function mee(e,t){return t.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,e)}function gee(e){return I4(Al(T4(e)))}function T4(e){return Array.isArray(e)?e:[e]}function Al(e){return[].concat(...e.map(t=>Array.isArray(t)?Al(t):t))}function I4(e){return e.filter(t=>typeof t<"u")}function za(e){return e&&typeof e=="object"}function yee(e){return za(e)&&j4(e.then)}function j4(e){return e&&typeof e=="function"}function vee(e){return e instanceof Error}function k4(e){if(bh(e)){const{op:t}=e;return t==="add"||t==="remove"||t==="replace"}return!1}function bee(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function P4(e){return k4(e)||bh(e)&&e.type==="mutation"}function Lp(e){return P4(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function _ee(e){return bh(e)&&e.type==="context"}function bh(e){return e&&typeof e=="object"}function FE(e,t){try{return Pc(e,t)}catch(r){return console.error(r),{}}}var iq={},sq={},aq={},LE,oq;function r2(){if(oq)return LE;oq=1;var e=X6(),t=Z6(),r=e("keys");return LE=function(n){return r[n]||(r[n]=t(n))},LE}var BE,uq;function Eee(){if(uq)return BE;uq=1;var e=vi();return BE=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),BE}var UE,cq;function n2(){if(cq)return UE;cq=1;var e=qi(),t=Zn(),r=JO(),n=r2(),i=Eee(),s=n("IE_PROTO"),a=Object,o=a.prototype;return UE=i?a.getPrototypeOf:function(u){var c=r(u);if(e(c,s))return c[s];var l=c.constructor;return t(l)&&c instanceof l?l.prototype:c instanceof a?o:null},UE}var VE,lq;function See(){if(lq)return VE;lq=1;var e=Mn(),t=wl();return VE=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},VE}var zE,fq;function wee(){if(fq)return zE;fq=1;var e=Di();return zE=function(t){return e(t)||t===null},zE}var WE,pq;function xee(){if(pq)return WE;pq=1;var e=wee(),t=String,r=TypeError;return WE=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")},WE}var JE,dq;function _h(){if(dq)return JE;dq=1;var e=See(),t=Di(),r=gh(),n=xee();return JE=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,s={},a;try{a=e(Object.prototype,"__proto__","set"),a(s,[]),i=s instanceof Array}catch{}return function(u,c){return r(u),n(c),t(u)&&(i?a(u,c):u.__proto__=c),u}}():void 0),JE}var KE={},hq;function Aee(){if(hq)return KE;hq=1;var e=a4(),t=GO(),r=t.concat("length","prototype");return KE.f=Object.getOwnPropertyNames||function(i){return e(i,r)},KE}var HE,mq;function Oee(){if(mq)return HE;mq=1;var e=El(),t=Mn(),r=Aee(),n=u4(),i=uo(),s=t([].concat);return HE=e("Reflect","ownKeys")||function(o){var u=r.f(i(o)),c=n.f;return c?s(u,c(o)):u},HE}var GE,gq;function N4(){if(gq)return GE;gq=1;var e=qi(),t=Oee(),r=r4(),n=wu();return GE=function(i,s,a){for(var o=t(s),u=n.f,c=r.f,l=0;l<o.length;l++){var f=o[l];!e(i,f)&&!(a&&e(a,f))&&u(i,f,c(s,f))}},GE}var YE={},yq;function Cee(){if(yq)return YE;yq=1;var e=ls(),t=i4(),r=wu(),n=uo(),i=bl(),s=o4();return YE.f=e&&!t?Object.defineProperties:function(o,u){n(o);for(var c=i(u),l=s(u),f=l.length,h=0,d;f>h;)r.f(o,d=l[h++],c[d]);return o},YE}var XE,vq;function Ree(){if(vq)return XE;vq=1;var e=El();return XE=e("document","documentElement"),XE}var ZE,bq;function i2(){if(bq)return ZE;bq=1;var e=uo(),t=Cee(),r=GO(),n=HO(),i=Ree(),s=e4(),a=r2(),o=">",u="<",c="prototype",l="script",f=a("IE_PROTO"),h=function(){},d=function(b){return u+l+o+b+u+"/"+l+o},g=function(b){b.write(d("")),b.close();var S=b.parentWindow.Object;return b=null,S},y=function(){var b=s("iframe"),S="java"+l+":",x;return b.style.display="none",i.appendChild(b),b.src=String(S),x=b.contentWindow.document,x.open(),x.write(d("document.F=Object")),x.close(),x.F},v,E=function(){try{v=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&v?g(v):y():g(v);for(var b=r.length;b--;)delete E[c][r[b]];return E()};return n[f]=!0,ZE=Object.create||function(S,x){var _;return S!==null?(h[c]=e(S),_=new h,h[c]=null,_[f]=S):_=E(),x===void 0?_:t.f(_,x)},ZE}var QE,_q;function M4(){if(_q)return QE;_q=1;var e=Di(),t=Ns();return QE=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},QE}var eS,Eq;function Tee(){if(Eq)return eS;Eq=1;var e=Mn(),t=Error,r=e("".replace),n=function(a){return String(new t(a).stack)}("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,s=i.test(n);return eS=function(a,o){if(s&&typeof a=="string"&&!t.prepareStackTrace)for(;o--;)a=r(a,i,"");return a},eS}var tS,Sq;function Iee(){if(Sq)return tS;Sq=1;var e=vi(),t=vl();return tS=!e(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",t(1,7)),r.stack!==7):!0}),tS}var rS,wq;function D4(){if(wq)return rS;wq=1;var e=Ns(),t=Tee(),r=Iee(),n=Error.captureStackTrace;return rS=function(i,s,a,o){r&&(n?n(i,s):e(i,"stack",t(a,o)))},rS}var nS,xq;function Au(){return xq||(xq=1,nS={}),nS}var iS,Aq;function jee(){if(Aq)return iS;Aq=1;var e=Ps(),t=Au(),r=e("iterator"),n=Array.prototype;return iS=function(i){return i!==void 0&&(t.Array===i||n[r]===i)},iS}var sS,Oq;function s2(){if(Oq)return sS;Oq=1;var e=Ps(),t=e("toStringTag"),r={};return r[t]="z",sS=String(r)==="[object z]",sS}var aS,Cq;function a2(){if(Cq)return aS;Cq=1;var e=s2(),t=Zn(),r=UO(),n=Ps(),i=n("toStringTag"),s=Object,a=r(function(){return arguments}())==="Arguments",o=function(u,c){try{return u[c]}catch{}};return aS=e?r:function(u){var c,l,f;return u===void 0?"Undefined":u===null?"Null":typeof(l=o(c=s(u),i))=="string"?l:a?r(c):(f=r(c))==="Object"&&t(c.callee)?"Arguments":f},aS}var oS,Rq;function q4(){if(Rq)return oS;Rq=1;var e=a2(),t=WO(),r=VO(),n=Au(),i=Ps(),s=i("iterator");return oS=function(a){if(!r(a))return t(a,s)||t(a,"@@iterator")||n[e(a)]},oS}var uS,Tq;function kee(){if(Tq)return uS;Tq=1;var e=ba(),t=wl(),r=uo(),n=zO(),i=q4(),s=TypeError;return uS=function(a,o){var u=arguments.length<2?i(a):o;if(t(u))return r(e(u,a));throw new s(n(a)+" is not iterable")},uS}var cS,Iq;function Pee(){if(Iq)return cS;Iq=1;var e=ba(),t=uo(),r=WO();return cS=function(n,i,s){var a,o;t(n);try{if(a=r(n,"return"),!a){if(i==="throw")throw s;return s}a=e(a,n)}catch(u){o=!0,a=u}if(i==="throw")throw s;if(o)throw a;return t(a),s},cS}var lS,jq;function Nee(){if(jq)return lS;jq=1;var e=n4(),t=ba(),r=uo(),n=zO(),i=jee(),s=s4(),a=Sl(),o=kee(),u=q4(),c=Pee(),l=TypeError,f=function(d,g){this.stopped=d,this.result=g},h=f.prototype;return lS=function(d,g,y){var v=y&&y.that,E=!!(y&&y.AS_ENTRIES),b=!!(y&&y.IS_RECORD),S=!!(y&&y.IS_ITERATOR),x=!!(y&&y.INTERRUPTED),_=e(g,v),A,C,R,O,M,k,D,P=function(Z){return A&&c(A,"normal",Z),new f(!0,Z)},H=function(Z){return E?(r(Z),x?_(Z[0],Z[1],P):_(Z[0],Z[1])):x?_(Z,P):_(Z)};if(b)A=d.iterator;else if(S)A=d;else{if(C=u(d),!C)throw new l(n(d)+" is not iterable");if(i(C)){for(R=0,O=s(d);O>R;R++)if(M=H(d[R]),M&&a(h,M))return M;return new f(!1)}A=o(d,C)}for(k=b?d.next:A.next;!(D=t(k,A)).done;){try{M=H(D.value)}catch(Z){c(A,"throw",Z)}if(typeof M=="object"&&M&&a(h,M))return M}return new f(!1)},lS}var fS,kq;function o2(){if(kq)return fS;kq=1;var e=a2(),t=String;return fS=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(r)},fS}var pS,Pq;function $4(){if(Pq)return pS;Pq=1;var e=o2();return pS=function(t,r){return t===void 0?arguments.length<2?"":r:e(t)},pS}var Nq;function Mee(){if(Nq)return aq;Nq=1;var e=xu(),t=Sl(),r=n2(),n=_h(),i=N4(),s=i2(),a=Ns(),o=vl(),u=M4(),c=D4(),l=Nee(),f=$4(),h=Ps(),d=h("toStringTag"),g=Error,y=[].push,v=function(S,x){var _=t(E,this),A;n?A=n(new g,_?r(this):E):(A=_?this:s(E),a(A,d,"Error")),x!==void 0&&a(A,"message",f(x)),c(A,v,A.stack,1),arguments.length>2&&u(A,arguments[2]);var C=[];return l(S,y,{that:C}),a(A,"errors",C),A};n?n(v,g):i(v,g,{name:!0});var E=v.prototype=s(g.prototype,{constructor:o(1,v),message:o(1,""),name:o(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:v}),aq}var Mq;function F4(){return Mq||(Mq=1,Mee()),sq}var Dq;function L4(){return Dq||(Dq=1,F4()),iq}var qq={},dS,$q;function Dee(){if($q)return dS;$q=1;var e=wu().f;return dS=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(i){r[n]=i}})},dS}var hS,Fq;function qee(){if(Fq)return hS;Fq=1;var e=Zn(),t=Di(),r=_h();return hS=function(n,i,s){var a,o;return r&&e(a=i.constructor)&&a!==s&&t(o=a.prototype)&&o!==s.prototype&&r(n,o),n},hS}var mS,Lq;function B4(){if(Lq)return mS;Lq=1;var e=El(),t=qi(),r=Ns(),n=Sl(),i=_h(),s=N4(),a=Dee(),o=qee(),u=$4(),c=M4(),l=D4(),f=ls(),h=xl();return mS=function(d,g,y,v){var E="stackTraceLimit",b=v?2:1,S=d.split("."),x=S[S.length-1],_=e.apply(null,S);if(_){var A=_.prototype;if(!h&&t(A,"cause")&&delete A.cause,!y)return _;var C=e("Error"),R=g(function(O,M){var k=u(v?M:O,void 0),D=v?new _(O):new _;return k!==void 0&&r(D,"message",k),l(D,R,D.stack,2),this&&n(A,this)&&o(D,this,R),arguments.length>b&&c(D,arguments[b]),D});if(R.prototype=A,x!=="Error"?i?i(R,C):s(R,C,{name:!0}):f&&E in _&&(a(R,_,E),a(R,_,"prepareStackTrace")),s(R,_),!h)try{A.name!==x&&r(A,"name",x),A.constructor=R}catch{}return R}},mS}var Bq;function $ee(){if(Bq)return qq;Bq=1;var e=xu(),t=Nn(),r=BO(),n=B4(),i="WebAssembly",s=t[i],a=new Error("e",{cause:7}).cause!==7,o=function(c,l){var f={};f[c]=n(c,l,a),e({global:!0,constructor:!0,arity:1,forced:a},f)},u=function(c,l){if(s&&s[c]){var f={};f[c]=n(i+"."+c,l,a),e({target:i,stat:!0,constructor:!0,arity:1,forced:a},f)}};return o("Error",function(c){return function(f){return r(c,this,arguments)}}),o("EvalError",function(c){return function(f){return r(c,this,arguments)}}),o("RangeError",function(c){return function(f){return r(c,this,arguments)}}),o("ReferenceError",function(c){return function(f){return r(c,this,arguments)}}),o("SyntaxError",function(c){return function(f){return r(c,this,arguments)}}),o("TypeError",function(c){return function(f){return r(c,this,arguments)}}),o("URIError",function(c){return function(f){return r(c,this,arguments)}}),u("CompileError",function(c){return function(f){return r(c,this,arguments)}}),u("LinkError",function(c){return function(f){return r(c,this,arguments)}}),u("RuntimeError",function(c){return function(f){return r(c,this,arguments)}}),qq}var Uq={},Vq;function Fee(){if(Vq)return Uq;Vq=1;var e=xu(),t=El(),r=BO(),n=vi(),i=B4(),s="AggregateError",a=t(s),o=!n(function(){return a([1]).errors[0]!==1})&&n(function(){return a([1],s,{cause:7}).cause!==7});return e({global:!0,constructor:!0,arity:2,forced:o},{AggregateError:i(s,function(u){return function(l,f){return r(u,this,arguments)}},o,!0)}),Uq}var gS,zq;function Lee(){return zq||(zq=1,gS=function(){}),gS}var yS,Wq;function Bee(){if(Wq)return yS;Wq=1;var e=Nn(),t=Zn(),r=e.WeakMap;return yS=t(r)&&/native code/.test(String(r)),yS}var vS,Jq;function U4(){if(Jq)return vS;Jq=1;var e=Bee(),t=Nn(),r=Di(),n=Ns(),i=qi(),s=Y6(),a=r2(),o=HO(),u="Object already initialized",c=t.TypeError,l=t.WeakMap,f,h,d,g=function(b){return d(b)?h(b):f(b,{})},y=function(b){return function(S){var x;if(!r(S)||(x=h(S)).type!==b)throw new c("Incompatible receiver, "+b+" required");return x}};if(e||s.state){var v=s.state||(s.state=new l);v.get=v.get,v.has=v.has,v.set=v.set,f=function(b,S){if(v.has(b))throw new c(u);return S.facade=b,v.set(b,S),S},h=function(b){return v.get(b)||{}},d=function(b){return v.has(b)}}else{var E=a("state");o[E]=!0,f=function(b,S){if(i(b,E))throw new c(u);return S.facade=b,n(b,E,S),S},h=function(b){return i(b,E)?b[E]:{}},d=function(b){return i(b,E)}}return vS={set:f,get:h,has:d,enforce:g,getterFor:y},vS}var bS,Kq;function Uee(){if(Kq)return bS;Kq=1;var e=ls(),t=qi(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),s=i&&(function(){}).name==="something",a=i&&(!e||e&&n(r,"name").configurable);return bS={EXISTS:i,PROPER:s,CONFIGURABLE:a},bS}var _S,Hq;function V4(){if(Hq)return _S;Hq=1;var e=Ns();return _S=function(t,r,n,i){return i&&i.enumerable?t[r]=n:e(t,r,n),t},_S}var ES,Gq;function z4(){if(Gq)return ES;Gq=1;var e=vi(),t=Zn(),r=Di(),n=i2(),i=n2(),s=V4(),a=Ps(),o=xl(),u=a("iterator"),c=!1,l,f,h;[].keys&&(h=[].keys(),"next"in h?(f=i(i(h)),f!==Object.prototype&&(l=f)):c=!0);var d=!r(l)||e(function(){var g={};return l[u].call(g)!==g});return d?l={}:o&&(l=n(l)),t(l[u])||s(l,u,function(){return this}),ES={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:c},ES}var SS,Yq;function Vee(){if(Yq)return SS;Yq=1;var e=s2(),t=a2();return SS=e?{}.toString:function(){return"[object "+t(this)+"]"},SS}var wS,Xq;function u2(){if(Xq)return wS;Xq=1;var e=s2(),t=wu().f,r=Ns(),n=qi(),i=Vee(),s=Ps(),a=s("toStringTag");return wS=function(o,u,c,l){var f=c?o:o&&o.prototype;f&&(n(f,a)||t(f,a,{configurable:!0,value:u}),l&&!e&&r(f,"toString",i))},wS}var xS,Zq;function zee(){if(Zq)return xS;Zq=1;var e=z4().IteratorPrototype,t=i2(),r=vl(),n=u2(),i=Au(),s=function(){return this};return xS=function(a,o,u,c){var l=o+" Iterator";return a.prototype=t(e,{next:r(+!c,u)}),n(a,l,!1,!0),i[l]=s,a},xS}var AS,Qq;function W4(){if(Qq)return AS;Qq=1;var e=xu(),t=ba(),r=xl(),n=Uee(),i=Zn(),s=zee(),a=n2(),o=_h(),u=u2(),c=Ns(),l=V4(),f=Ps(),h=Au(),d=z4(),g=n.PROPER,y=n.CONFIGURABLE,v=d.IteratorPrototype,E=d.BUGGY_SAFARI_ITERATORS,b=f("iterator"),S="keys",x="values",_="entries",A=function(){return this};return AS=function(C,R,O,M,k,D,P){s(O,R,M);var H=function(ae){if(ae===k&&Y)return Y;if(!E&&ae&&ae in G)return G[ae];switch(ae){case S:return function(){return new O(this,ae)};case x:return function(){return new O(this,ae)};case _:return function(){return new O(this,ae)}}return function(){return new O(this)}},Z=R+" Iterator",V=!1,G=C.prototype,Q=G[b]||G["@@iterator"]||k&&G[k],Y=!E&&Q||H(k),L=R==="Array"&&G.entries||Q,J,ee,ne;if(L&&(J=a(L.call(new C)),J!==Object.prototype&&J.next&&(!r&&a(J)!==v&&(o?o(J,v):i(J[b])||l(J,b,A)),u(J,Z,!0,!0),r&&(h[Z]=A))),g&&k===x&&Q&&Q.name!==x&&(!r&&y?c(G,"name",x):(V=!0,Y=function(){return t(Q,this)})),k)if(ee={values:H(x),keys:D?Y:H(S),entries:H(_)},P)for(ne in ee)(E||V||!(ne in G))&&l(G,ne,ee[ne]);else e({target:R,proto:!0,forced:E||V},ee);return(!r||P)&&G[b]!==Y&&l(G,b,Y,{name:k}),h[R]=Y,ee},AS}var OS,e$;function J4(){return e$||(e$=1,OS=function(e,t){return{value:e,done:t}}),OS}var CS,t$;function K4(){if(t$)return CS;t$=1;var e=bl(),t=Lee(),r=Au(),n=U4(),i=wu().f,s=W4(),a=J4(),o=xl(),u=ls(),c="Array Iterator",l=n.set,f=n.getterFor(c);CS=s(Array,"Array",function(d,g){l(this,{type:c,target:e(d),index:0,kind:g})},function(){var d=f(this),g=d.target,y=d.index++;if(!g||y>=g.length)return d.target=null,a(void 0,!0);switch(d.kind){case"keys":return a(y,!1);case"values":return a(g[y],!1)}return a([y,g[y]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!o&&u&&h.name!=="values")try{i(h,"name",{value:"values"})}catch{}return CS}var r$={},RS,n$;function Wee(){if(n$)return RS;n$=1;var e=Mn(),t=KO(),r=o2(),n=gh(),i=e("".charAt),s=e("".charCodeAt),a=e("".slice),o=function(u){return function(c,l){var f=r(n(c)),h=t(l),d=f.length,g,y;return h<0||h>=d?u?"":void 0:(g=s(f,h),g<55296||g>56319||h+1===d||(y=s(f,h+1))<56320||y>57343?u?i(f,h):g:u?a(f,h,h+2):(g-55296<<10)+(y-56320)+65536)}};return RS={codeAt:o(!1),charAt:o(!0)},RS}var i$;function Jee(){if(i$)return r$;i$=1;var e=Wee().charAt,t=o2(),r=U4(),n=W4(),i=J4(),s="String Iterator",a=r.set,o=r.getterFor(s);return n(String,"String",function(u){a(this,{type:s,string:t(u),index:0})},function(){var c=o(this),l=c.string,f=c.index,h;return f>=l.length?i(void 0,!0):(h=e(l,f),c.index+=h.length,i(h,!1))}),r$}var TS,s$;function Kee(){if(s$)return TS;s$=1,$ee(),F4(),Fee(),K4(),Jee();var e=_l();return TS=e.AggregateError,TS}var a$={},IS,o$;function Hee(){return o$||(o$=1,IS={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}),IS}var u$;function Gee(){if(u$)return a$;u$=1,K4();var e=Hee(),t=Nn(),r=u2(),n=Au();for(var i in e)r(t[i],i),n[i]=n.Array;return a$}var jS,c$;function Yee(){if(c$)return jS;c$=1,L4();var e=Kee();return Gee(),jS=e,jS}var kS,l$;function Xee(){if(l$)return kS;l$=1;var e=Yee();return kS=e,kS}var PS,f$;function Zee(){if(f$)return PS;f$=1,L4();var e=Xee();return PS=e,PS}var NS,p$;function Qee(){return p$||(p$=1,NS=Zee()),NS}var MS,d$;function ete(){return d$||(d$=1,MS=Qee()),MS}var tte=ete();const rte=Be.getDefaultExportFromCjs(tte);class nte extends rte{constructor(t,r,n){if(super(t,r,n),this.name=this.constructor.name,typeof r=="string"&&(this.message=r),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,n!=null&&typeof n=="object"&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:i}=n;this.cause=i,i instanceof Error&&"stack"in i&&(this.stack=`${this.stack}
96
+ CAUSE: ${i.stack}`)}}}class pr extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(nte,t)}constructor(t,r){if(super(t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
97
+ CAUSE: ${n.stack}`)}}}class Pi extends pr{constructor(t,r){if(super(t,r),r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class yt extends pr{}class DS extends yt{}var c2=function(){return!1},Ms=function(){return!0};function nr(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function $t(e){return function t(r){return arguments.length===0||nr(r)?t:e.apply(this,arguments)}}function st(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return nr(r)?t:$t(function(i){return e(r,i)});default:return nr(r)&&nr(n)?t:nr(r)?$t(function(i){return e(i,n)}):nr(n)?$t(function(i){return e(r,i)}):e(r,n)}}}function ite(e,t){e=e||[],t=t||[];var r,n=e.length,i=t.length,s=[];for(r=0;r<n;)s[s.length]=e[r],r+=1;for(r=0;r<i;)s[s.length]=t[r],r+=1;return s}function Eh(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,i){return t.apply(this,arguments)};case 4:return function(r,n,i,s){return t.apply(this,arguments)};case 5:return function(r,n,i,s,a){return t.apply(this,arguments)};case 6:return function(r,n,i,s,a,o){return t.apply(this,arguments)};case 7:return function(r,n,i,s,a,o,u){return t.apply(this,arguments)};case 8:return function(r,n,i,s,a,o,u,c){return t.apply(this,arguments)};case 9:return function(r,n,i,s,a,o,u,c,l){return t.apply(this,arguments)};case 10:return function(r,n,i,s,a,o,u,c,l,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function l2(e,t,r){return function(){for(var n=[],i=0,s=e,a=0,o=!1;a<t.length||i<arguments.length;){var u;a<t.length&&(!nr(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,nr(u)?o=!0:s-=1,a+=1}return!o&&s<=0?r.apply(this,n):Eh(Math.max(0,s),l2(e,n,r))}}var er=st(function(t,r){return t===1?$t(r):Eh(t,l2(t,[],r))});function an(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return nr(r)?t:st(function(s,a){return e(r,s,a)});case 2:return nr(r)&&nr(n)?t:nr(r)?st(function(s,a){return e(s,n,a)}):nr(n)?st(function(s,a){return e(r,s,a)}):$t(function(s){return e(r,n,s)});default:return nr(r)&&nr(n)&&nr(i)?t:nr(r)&&nr(n)?st(function(s,a){return e(s,a,i)}):nr(r)&&nr(i)?st(function(s,a){return e(s,n,a)}):nr(n)&&nr(i)?st(function(s,a){return e(r,s,a)}):nr(r)?$t(function(s){return e(s,n,i)}):nr(n)?$t(function(s){return e(r,s,i)}):nr(i)?$t(function(s){return e(r,n,s)}):e(r,n,i)}}}const co=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function ste(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _a(e,t,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!co(n)){for(var i=0;i<e.length;){if(typeof n[e[i]]=="function")return n[e[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=1}if(ste(n)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(n)}}return r.apply(this,arguments)}}function Sh(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Xn={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var ate=function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=Sh(this.xf["@@transducer/step"](t,!1))),t},e}();function ote(e){return function(t){return new ate(e,t)}}var f2=st(_a(["all"],ote,function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));function h$(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}function Bp(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}function ute(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function fi(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function cte(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const yc=typeof Object.is=="function"?Object.is:cte;var m$=Object.prototype.toString,H4=function(){return m$.call(arguments)==="[object Arguments]"?function(t){return m$.call(t)==="[object Arguments]"}:function(t){return fi("callee",t)}}(),lte=!{toString:null}.propertyIsEnumerable("toString"),g$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],y$=function(){return arguments.propertyIsEnumerable("length")}(),fte=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},Ka=$t(typeof Object.keys=="function"&&!y$?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var r,n,i=[],s=y$&&H4(t);for(r in t)fi(r,t)&&(!s||r!=="length")&&(i[i.length]=r);if(lte)for(n=g$.length-1;n>=0;)r=g$[n],fi(r,t)&&!fte(i,r)&&(i[i.length]=r),n-=1;return i}),pi=$t(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function v$(e,t,r,n){var i=h$(e),s=h$(t);function a(o,u){return p2(o,u,r.slice(),n.slice())}return!Bp(function(o,u){return!Bp(a,u,o)},s,i)}function p2(e,t,r,n){if(yc(e,t))return!0;var i=pi(e);if(i!==pi(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&ute(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&yc(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!yc(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;break}for(var s=r.length-1;s>=0;){if(r[s]===e)return n[s]===t;s-=1}switch(i){case"Map":return e.size!==t.size?!1:v$(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:v$(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=Ka(e);if(a.length!==Ka(t).length)return!1;var o=r.concat([e]),u=n.concat([t]);for(s=a.length-1;s>=0;){var c=a[s];if(!(fi(c,t)&&p2(t[c],e[c],o,u)))return!1;s-=1}return!0}var Ds=st(function(t,r){return p2(t,r,[],[])});function pte(e,t,r){var n,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(n=1/t;r<e.length;){if(i=e[r],i===0&&1/i===n)return r;r+=1}return-1}else if(t!==t){for(;r<e.length;){if(i=e[r],typeof i=="number"&&i!==i)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(t===null)return e.indexOf(t,r)}for(;r<e.length;){if(Ds(e[r],t))return r;r+=1}return-1}function Up(e,t){return pte(t,e,0)>=0}function vc(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}function qS(e){var t=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");return'"'+t.replace(/"/g,'\\"')+'"'}var Ju=function(t){return(t<10?"0":"")+t},dte=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Ju(t.getUTCMonth()+1)+"-"+Ju(t.getUTCDate())+"T"+Ju(t.getUTCHours())+":"+Ju(t.getUTCMinutes())+":"+Ju(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function G4(e){return function(){return!e.apply(this,arguments)}}function Ol(e,t,r){for(var n=0,i=r.length;n<i;)t=e(t,r[n]),n+=1;return t}function hte(e,t){for(var r=0,n=t.length,i=[];r<n;)e(t[r])&&(i[i.length]=t[r]),r+=1;return i}function Vp(e){return Object.prototype.toString.call(e)==="[object Object]"}var mte=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=Xn.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e}();function gte(e){return function(t){return new mte(e,t)}}var yte=st(_a(["fantasy-land/filter","filter"],gte,function(e,t){return Vp(t)?Ol(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},Ka(t)):hte(e,t)})),vte=st(function(t,r){return yte(G4(t),r)});function Y4(e,t){var r=function(a){var o=t.concat([e]);return Up(a,o)?"<Circular>":Y4(a,o)},n=function(s,a){return vc(function(o){return qS(o)+": "+r(s[o])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+vc(r,e).join(", ")+"))";case"[object Array]":return"["+vc(r,e).concat(n(e,vte(function(s){return/^\d+$/.test(s)},Ka(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):qS(dte(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":qS(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+n(e,Ka(e)).join(", ")+"}"}}var iu=$t(function(t){return Y4(t,[])}),d2=st(function(t,r){if(t===r)return r;function n(u,c){if(u>c!=c>u)return c>u?c:u}var i=n(t,r);if(i!==void 0)return i;var s=n(typeof t,typeof r);if(s!==void 0)return s===typeof t?t:r;var a=iu(t),o=n(a,iu(r));return o!==void 0&&o===a?t:r}),bte=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=Xn.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),_te=function(t){return function(r){return new bte(t,r)}},Cl=st(_a(["fantasy-land/map","map"],_te,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return er(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return Ol(function(n,i){return n[i]=t(r[i]),n},{},Ka(r));default:return vc(t,r)}}));const Ou=Number.isInteger||function(t){return t<<0===t};function h2(e){return Object.prototype.toString.call(e)==="[object String]"}function wh(e,t){var r=e<0?t.length+e:e;return h2(t)?t.charAt(r):t[r]}var Rl=st(function(t,r){if(r!=null)return Ou(t)?wh(t,r):r[t]}),m2=st(function(t,r){return Cl(Rl(t),r)}),Ete=$t(function(t){return co(t)?!0:!t||typeof t!="object"||h2(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),b$=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function X4(e,t,r){return function(i,s,a){if(Ete(a))return e(i,s,a);if(a==null)return s;if(typeof a["fantasy-land/reduce"]=="function")return t(i,s,a,"fantasy-land/reduce");if(a[b$]!=null)return r(i,s,a[b$]());if(typeof a.next=="function")return r(i,s,a);if(typeof a.reduce=="function")return t(i,s,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ste(e,t,r){for(var n=0,i=r.length;n<i;){if(t=e["@@transducer/step"](t,r[n]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var xh=st(function(t,r){return Eh(t.length,function(){return t.apply(r,arguments)})});function wte(e,t,r){for(var n=r.next();!n.done;){if(t=e["@@transducer/step"](t,n.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function xte(e,t,r,n){return e["@@transducer/result"](r[n](xh(e["@@transducer/step"],e),t))}var g2=X4(Ste,xte,wte),Ate=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function Z4(e){return new Ate(e)}var lo=an(function(e,t,r){return g2(typeof e=="function"?Z4(e):e,t,r)}),Ote=$t(function(t){return er(lo(d2,0,m2("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})}),rt=$t(function(t){return function(){return t}}),Cte=st(function(t,r){return t&&r}),Rte=$t(function(t){return er(lo(d2,0,m2("length",t)),function(){for(var r=0,n=t.length;r<n;){if(t[r].apply(this,arguments))return!0;r+=1}return!1})});function Tte(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Ite(e,t,r,n){return r[n](e,t)}var jte=X4(Ol,Ite,Tte),kte=st(function(t,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(r):typeof t=="function"?function(n){return t(n)(r(n))}:jte(function(n,i){return ite(n,Cl(i,r))},[],t)}),Pte=st(function(t,r){return t.apply(this,r)}),y2=$t(function(t){return er(t.length,t)});function Nte(e,t,r){if(Ou(e)&&co(r)){var n=[].concat(r);return n[e]=t,n}var i={};for(var s in r)i[s]=r[s];return i[e]=t,i}var zp=$t(function(t){return t==null}),Pe=an(function e(t,r,n){if(t.length===0)return r;var i=t[0];if(t.length>1){var s=!zp(n)&&fi(i,n)&&typeof n[i]=="object"?n[i]:Ou(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,s)}return Nte(i,r,n)}),Mte=an(function(t,r,n){return Pe([t],r,n)});function v2(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var Dte=st(function(t,r){var n=er(t,r);return er(t,function(){return Ol(kte,Cl(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),b2=$t(function(t){return Dte(t.length,t)}),fo=st(function(t,r){return v2(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:b2(Cte)(t,r)});function Q4(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function e8(e,t,r){if(r||(r=new $te),qte(e))return e;var n=function(s){var a=r.get(e);if(a)return a;r.set(e,s);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=e[o]);return s};switch(pi(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return Q4(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}function qte(e){var t=typeof e;return e==null||t!="object"&&t!="function"}var $te=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(t,r){var n=this.hash(t),i=this.map[n];i||(this.map[n]=i=[]),i.push([t,r]),this.length+=1},e.prototype.hash=function(t){var r=[];for(var n in t)r.push(Object.prototype.toString.call(t[n]));return r.join()},e.prototype.get=function(t){if(this.length<=180){for(var r in this.map)for(var a=this.map[r],n=0;n<a.length;n+=1){var i=a[n];if(i[0]===t)return i[1]}return}var s=this.hash(t),a=this.map[s];if(a)for(var n=0;n<a.length;n+=1){var i=a[n];if(i[0]===t)return i[1]}},e}(),Fte=$t(function(t){return function(r,n){return t(r,n)?-1:t(n,r)?1:0}}),Lte=$t(function(t){return!t}),Tl=b2(Lte);function Bte(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function _2(e,t){return function(){var r=arguments.length;if(r===0)return t();var n=arguments[r-1];return co(n)||typeof n[e]!="function"?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Il=an(_2("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)})),t8=$t(_2("tail",Il(1,1/0)));function wr(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Eh(arguments[0].length,lo(Bte,arguments[0],t8(arguments)))}var Ute=$t(function(e){return wh(0,e)});function Vte(e){return e}var E2=$t(Vte),zte=st(function(t,r){return er(lo(d2,0,m2("length",r)),function(){var n=arguments,i=this;return t.apply(i,vc(function(s){return s.apply(i,n)},r))})}),Wte=function(){function e(t,r,n,i){this.valueFn=t,this.valueAcc=r,this.keyFn=n,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(fi(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,e8(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t},e}();function Jte(e,t,r){return function(n){return new Wte(e,t,r,n)}}var Kte=l2(4,[],_a([],Jte,function(t,r,n,i){var s=Z4(function(a,o){var u=n(o),c=t(fi(u,a)?a[u]:e8(r),o);return c&&c["@@transducer/reduced"]?Sh(a):(a[u]=c,a)});return g2(s,{},i)})),su=st(function(t,r){return r==null||r!==r?t:r}),Hte=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!_$(t,!0,this)},e.prototype.has=function(t){return _$(t,!1,this)},e}();function _$(e,t,r){var n=typeof e,i,s;switch(n){case"string":case"number":return e===0&&1/e===-1/0?r._items["-0"]?!0:(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?e in r._items[n]?!0:(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var a=e?1:0;return r._items[n][a]?!0:(t&&(r._items[n][a]=!0),!1)}else return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?Up(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return r._items[n]?!0:(t&&(r._items[n]=!0),!1);case"object":if(e===null)return r._items.null?!0:(t&&(r._items.null=!0),!1);default:return n=Object.prototype.toString.call(e),n in r._items?Up(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}var Gte=st(function(t,r){for(var n=[],i=0,s=t.length,a=r.length,o=new Hte,u=0;u<a;u+=1)o.add(r[u]);for(;i<s;)o.add(t[i])&&(n[n.length]=t[i]),i+=1;return n}),Yte=an(function(t,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(t,r),i});function Xte(e,t){if(t==null)return t;if(Ou(e)&&co(t))return Yte(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}function Zte(e,t){if(Ou(e)&&co(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}var Hn=st(function e(t,r){if(r==null)return r;switch(t.length){case 0:return r;case 1:return Xte(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return r[n]==null?Zte(n,r):Mte(n,e(i,r[n]),r)}}),Qte=function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=Xn.result,e.prototype["@@transducer/step"]=function(t,r){this.i+=1;var n=this.n===0?t:this.xf["@@transducer/step"](t,r);return this.n>=0&&this.i>=this.n?Sh(n):n},e}();function ere(e){return function(t){return new Qte(e,t)}}var tre=st(_a(["take"],ere,function(t,r){return Il(0,t<0?1/0:t,r)}));function rre(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Il(0,r+1,t)}var nre=function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.retain(t,r):this.flush(t,r)},e.prototype.flush=function(t,r){return t=g2(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,r)},e.prototype.retain=function(t,r){return this.retained.push(r),t},e}();function ire(e){return function(t){return new nre(e,t)}}var sre=st(_a([],ire,rre)),Ah=$t(function(e){return wh(-1,e)}),are=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=Xn.result,e.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)},e}();function ore(e){return function(t){return new are(e,t)}}var ure=st(_a(["dropWhile"],ore,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return Il(n,1/0,r)})),cre=st(function(t,r){return t||r}),lre=st(function(t,r){return v2(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:b2(cre)(t,r)});function fre(e){var t=Object.prototype.toString.call(e);return t==="[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]"}var pre=$t(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():co(t)?[]:h2(t)?"":Vp(t)?{}:H4(t)?function(){return arguments}():fre(t)?t.constructor.from(""):void 0}),dre=$t(function(t){return er(t.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,t.apply(this,i)})}),hre=st(_2("groupBy",Kte(function(e,t){return e.push(t),e},[]))),mre=st(function(t,r){if(t.length===0||zp(r))return!1;for(var n=r,i=0;i<t.length;)if(!zp(n)&&fi(t[i],n))n=n[t[i]],i+=1;else return!1;return!0}),bc=st(function(t,r){return mre([t],r)}),qs=function(e,t){switch(arguments.length){case 0:return qs;case 1:return function(){return function r(n){switch(arguments.length){case 0:return r;default:return yc(e,n)}}}();default:return yc(e,t)}},S2=an(function(t,r,n){return er(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),gre=st(Up),yre=Il(0,-1),w2=st(function(t,r){return er(t+1,function(){var n=arguments[t];if(n!=null&&v2(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(iu(n)+' does not have a method named "'+r+'"')})}),jl=$t(function(t){return t!=null&&Ds(t,pre(t))}),r8=$t(function(t){return!jl(t)}),n8=w2(1,"join");function E$(e){return Object.prototype.toString.call(e)==="[object Number]"}var vre=st(function(t,r){return function(n){return function(i){return Cl(function(s){return r(s,i)},n(t(i)))}}});function x2(e,t){for(var r=t,n=0;n<e.length;n+=1){if(r==null)return;var i=e[n];Ou(i)?r=wh(i,r):r=r[i]}return r}var bre=st(function(t,r){return Ol(function(n,i){return n[i]=t(r[i],i,r),n},{},Ka(r))}),_re=an(function(t,r,n){var i={},s;r=r||{},n=n||{};for(s in r)fi(s,r)&&(i[s]=fi(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)fi(s,n)&&!fi(s,i)&&(i[s]=n[s]);return i}),Ere=an(function e(t,r,n){return _re(function(i,s,a){return Vp(s)&&Vp(a)?e(t,s,a):t(i,s,a)},r,n)}),Oh=st(function(t,r){return Ere(function(n,i,s){return s},t,r)}),Sre=st(function(t,r){return f2(G4(t),r)}),i8=function(e){return{value:e,map:function(t){return i8(t(e))}}},wre=an(function(t,r,n){return t(function(i){return i8(r(i))})(n).value}),Fr=st(x2),s8=an(function(t,r,n){return su(t,x2(r,n))}),Ch=an(function(t,r,n){return t(x2(r,n))}),a8=st(function(t,r){for(var n={},i=0;i<t.length;)t[i]in r&&(n[t[i]]=r[t[i]]),i+=1;return n}),o8=an(function(t,r,n){return Ds(t,Rl(r,n))}),Wp=an(function(t,r,n){return su(t,Rl(r,n))}),xre=an(function(t,r,n){return t(Rl(r,n))}),Are=st(function(t,r){if(!(E$(t)&&E$(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(t<r?r-t:0),i=t<0?r+Math.abs(t):r-t,s=0;s<i;)n[s]=s+t,s+=1;return n}),Ore=$t(Sh),au=an(function(t,r,n){return n.replace(t,r)}),Cre=st(function(t,r){return Array.prototype.slice.call(r,0).sort(t)}),A2=w2(1,"split"),u8=st(function(e,t){return Ds(tre(e.length,t),e)});function Rre(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Tre=st(function(t,r){if(!Rre(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+iu(t));return Q4(t).test(r)}),Ire=function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=Xn.init,e.prototype["@@transducer/result"]=Xn.result,e.prototype["@@transducer/step"]=function(t,r){return Bp(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e}();function jre(e){return function(t){return new Ire(e,t)}}var kre=st(_a([],jre,function(e,t){for(var r=0,n=t.length,i=[],s;r<n;)s=t[r],Bp(e,s,i)||(i[i.length]=s),r+=1;return i})),Pre=an(function(t,r,n){return t(n)?r(n):n}),Rh=rt(void 0),Ea=Ds(Rh()),c8=Tl(Ea),l8=Ds(null),f8=Tl(l8),Nre=Tl(zp),Mre=er(1,wr(pi,qs("GeneratorFunction"))),Dre=er(1,wr(pi,qs("AsyncFunction"))),$s=Rte([wr(pi,qs("Function")),Mre,Dre]),p8=er(1,$s(Array.isArray)?Array.isArray:wr(pi,qs("Array"))),qre=fo(p8,jl),$re=fo(p8,r8),po=er(1,wr(pi,qs("String"))),d8=Ds("");function Vw(e){"@babel/helpers - typeof";return Vw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vw(e)}var h8=function(t){return Vw(t)==="object"},Fre=er(1,fo(f8,lre(h8,$s))),Lre=Tl(Fre),Th=Ote([po,Lre,r8]),Bre=Tl($s),Ure=er(1,fo(f8,h8)),Vre=wr(pi,qs("Object")),zre=wr(iu,Ds(iu(Object))),Wre=Ch(fo($s,zre),["constructor"]),Ts=er(1,function(e){if(!Ure(e)||!Vre(e))return!1;var t=Object.getPrototypeOf(e);return l8(t)?!0:Wre(t)}),Jre=er(1,wr(pi,qs("Number"))),Kre=fo(Jre,isFinite),Hre=er(1,Kre),Gre=$s(Number.isFinite)?er(1,xh(Number.isFinite,Number)):Hre,Yre=fo(Gre,zte(Ds,[Math.floor,E2])),Xre=er(1,Yre),Zre=$s(Number.isInteger)?er(1,xh(Number.isInteger,Number)):Xre,Qre=er(1,wr(pi,qs("RegExp")));function ene(e){return ine(e)||nne(e)||rne(e)||tne()}function tne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rne(e,t){if(e){if(typeof e=="string")return zw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zw(e,t):void 0}}function nne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ine(e){if(Array.isArray(e))return zw(e)}function zw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var sne=Fte(function(e,t){return e.length>t.length}),ane=wr(Cre(sne),Ute,Rl("length")),one=y2(function(e,t,r){var n=r.apply(void 0,ene(e));return Nre(n)?Ore(n):t}),une=function(t){var r=ane(t);return er(r,function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return lo(one(i),void 0,t)})},m8=S2($re,une,Rh),Ih=dre(gre),Mc=er(3,function(e,t,r){var n=Fr(e,r),i=Fr(yre(e),r);if(!Bre(n)&&!qre(e)){var s=xh(n,i);return Pte(s,t)}}),cne=Pre(po,au(/[.*+?^${}()|[\]\\-]/g,"\\$&")),lne=function(t,r,n){if(n==null||t==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},S$=function(t,r){if(typeof t!="string"&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))},fne=function(t){if(typeof t!="string"&&!(t instanceof String)&&!(t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},pne=function(t,r,n){lne(t,r,n),S$(n,"str"),S$(r,"replaceValue"),fne(t);var i=new RegExp(Qre(t)?t:cne(t),"g");return au(i,r,n)},dne=er(3,pne),hne=w2(2,"replaceAll"),mne=$s(String.prototype.replaceAll)?hne:dne,gne=y2(function(e,t){return wr(A2(""),sre(Ih(e)),n8(""))(t)}),O2=y2(function(e,t){return wr(A2(""),ure(Ih(e)),n8(""))(t)}),$S={exports:{}},w$;function yne(){if(w$)return $S.exports;w$=1;var e=$S.exports={},t,r;function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=i}catch{r=i}})();function s(y){if(t===setTimeout)return setTimeout(y,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(y,0);try{return t(y,0)}catch{try{return t.call(null,y,0)}catch{return t.call(this,y,0)}}}function a(y){if(r===clearTimeout)return clearTimeout(y);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(y);try{return r(y)}catch{try{return r.call(null,y)}catch{return r.call(this,y)}}}var o=[],u=!1,c,l=-1;function f(){!u||!c||(u=!1,c.length?o=c.concat(o):l=-1,o.length&&h())}function h(){if(!u){var y=s(f);u=!0;for(var v=o.length;v;){for(c=o,o=[];++l<v;)c&&c[l].run();l=-1,v=o.length}c=null,u=!1,a(y)}}e.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)v[E-1]=arguments[E];o.push(new d(y,v)),o.length===1&&!u&&s(h)};function d(y,v){this.fun=y,this.array=v}d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function g(){}return e.on=g,e.addListener=g,e.once=g,e.off=g,e.removeListener=g,e.removeAllListeners=g,e.emit=g,e.prependListener=g,e.prependOnceListener=g,e.listeners=function(y){return[]},e.binding=function(y){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(y){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},$S.exports}var vne=yne();const Jp=Be.getDefaultExportFromCjs(vne),C2=()=>Ch(Tre(/^win/),["platform"],Jp),R2=e=>{try{const t=new URL(e);return gne(":",t.protocol)}catch{return}};wr(R2,c8);const bne=e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""},g8=e=>{if(Jp.browser)return!1;const t=R2(e);return Ea(t)||t==="file"||/^[a-zA-Z]$/.test(t)},T2=e=>{const t=R2(e);return t==="http"||t==="https"},y8=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Wp(!1,"keepFileProtocol",t),i=Wp(C2,"isWindows",t);let s=decodeURI(e);for(let o=0;o<r.length;o+=2)s=s.replace(r[o],r[o+1]);let a=s.substring(0,7).toLowerCase()==="file://";return a&&(s=s[7]==="/"?s.substring(8):s.substring(7),i()&&s[1]==="/"&&(s=`${s[0]}:${s.substring(1)}`),n?s=`file:///${s}`:(a=!1,s=i()?s:`/${s}`)),i()&&!a&&(s=mne("/","\\",s),s.substring(1,3)===":\\"&&(s=s[0].toUpperCase()+s.substring(1))),s},_ne=e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;C2()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let n=0;n<t.length;n+=2)r=r.replace(t[n],t[n+1]);return r},v8=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},Ut=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Ww=()=>{if(Jp.browser)return Ut(globalThis.location.href);const e=Jp.cwd(),t=Ah(e);return["/","\\"].includes(t)?e:e+(C2()?"\\":"/")},Kr=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:i,hash:s}=r;return n+i+s}return r.toString()},jh=e=>{if(g8(e))return _ne(y8(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Yi=e=>g8(e)?y8(e):decodeURI(e);let Dc=class{constructor({uri:t,mediaType:r="text/plain",data:n,parseResult:i}){z(this,"uri");z(this,"mediaType");z(this,"data");z(this,"parseResult");this.uri=t,this.mediaType=r,this.data=n,this.parseResult=i}get extension(){return po(this.uri)?bne(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(pi(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class ou{constructor({refs:t=[],circular:r=!1}={}){z(this,"rootRef");z(this,"refs");z(this,"circular");this.refs=[],this.circular=r,t.forEach(this.add.bind(this))}get size(){return this.refs.length}add(t){return this.has(t)||(this.refs.push(t),this.rootRef=this.rootRef===void 0?t:this.rootRef,t.refSet=this),this}merge(t){for(const r of t.values())this.add(r);return this}has(t){const r=po(t)?t:t.uri;return c8(this.find(n=>n.uri===r))}find(t){return this.refs.find(t)}*values(){yield*this.refs}clean(){this.refs.forEach(t=>{t.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}}const b8={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:E2,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},Ene=vre(Fr(["resolve","baseURI"]),Pe(["resolve","baseURI"])),Sne=e=>d8(e)?Ww():e,_8=(e,t)=>{const r=Oh(e,t);return wre(Ene,Sne,r)};class wne extends pr{constructor(r,n){super(r,{cause:n.cause});z(this,"plugin");this.plugin=n.plugin}}const I2=async(e,t,r)=>{const n=await Promise.all(r.map(Mc([e],t)));return r.filter((i,s)=>n[s])},j2=async(e,t,r)=>{let n;for(const i of r)try{const s=await i[e].call(i,...t);return{plugin:i,result:s}}catch(s){n=new wne("Error while running plugin",{cause:s,plugin:i})}return Promise.reject(n)};class Jw extends pr{}class k2 extends pr{}class E8 extends k2{}class S8 extends E8{}const xne=async(e,t)=>{const r=t.resolve.resolvers.map(i=>{const s=Object.create(i);return Object.assign(s,t.resolve.resolverOpts)}),n=await I2("canRead",[e,t],r);if(jl(n))throw new S8(e.uri);try{const{result:i}=await j2("read",[e],n);return i}catch(i){throw new k2(`Error while reading file "${e.uri}"`,{cause:i})}},Ane=async(e,t)=>{const r=t.parse.parsers.map(i=>{const s=Object.create(i);return Object.assign(s,t.parse.parserOpts)}),n=await I2("canParse",[e,t],r);if(jl(n))throw new S8(e.uri);try{const{plugin:i,result:s}=await j2("parse",[e,t],n);return!i.allowEmpty&&s.isEmpty?Promise.reject(new Jw(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(i){throw new Jw(`Error while parsing file "${e.uri}"`,{cause:i})}},One=async(e,t)=>{const r=new Dc({uri:jh(Ut(e)),mediaType:t.parse.mediaType}),n=await xne(r,t);return Ane(new Dc({...r,data:n}),t)};var Or={},FS,x$;function Cne(){if(x$)return FS;x$=1;function e(t){return t===null}return FS=e,FS}var LS,A$;function Rne(){if(A$)return LS;A$=1;var e=us(),t=xn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return LS=n,LS}var BS,O$;function Tne(){if(O$)return BS;O$=1;var e=us(),t=xn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return BS=n,BS}var US,C$;function P2(){if(C$)return US;C$=1;class e{constructor(r){this.namespace=r||new this.Namespace}serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);const n={element:r.element};r._meta&&r._meta.length>0&&(n.meta=this.serialiseObject(r.meta)),r._attributes&&r._attributes.length>0&&(n.attributes=this.serialiseObject(r.attributes));const i=this.serialiseContent(r.content);return i!==void 0&&(n.content=i),n}deserialise(r){if(!r.element)throw new Error("Given value is not an object containing an element name");const n=this.namespace.getElementClass(r.element),i=new n;i.element!==r.element&&(i.element=r.element),r.meta&&this.deserialiseObject(r.meta,i.meta),r.attributes&&this.deserialiseObject(r.attributes,i.attributes);const s=this.deserialiseContent(r.content);return(s!==void 0||i.content===null)&&(i.content=s),i}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.length===0?void 0:r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}serialiseObject(r){const n={};if(r.forEach((i,s)=>{i&&(n[s.toValue()]=this.serialise(i))}),Object.keys(n).length!==0)return n}deserialiseObject(r,n){Object.keys(r).forEach(i=>{n.set(i,this.deserialise(r[i]))})}}return US=e,US}var VS,R$;function Ine(){if(R$)return VS;R$=1;var e=XA();function t(r,n){return e(r,n)}return VS=t,VS}var zS,T$;function kh(){if(T$)return zS;T$=1;class e{constructor(r,n){this.key=r,this.value=n}clone(){const r=new e;return this.key&&(r.key=this.key.clone()),this.value&&(r.value=this.value.clone()),r}}return zS=e,zS}var WS,I$;function Ph(){if(I$)return WS;I$=1;var e="Expected a function";function t(r){if(typeof r!="function")throw new TypeError(e);return function(){var n=arguments;switch(n.length){case 0:return!r.call(this);case 1:return!r.call(this,n[0]);case 2:return!r.call(this,n[0],n[1]);case 3:return!r.call(this,n[0],n[1],n[2])}return!r.apply(this,n)}}return WS=t,WS}var JS,j$;function Nh(){if(j$)return JS;j$=1;const e=Ph();function t(n){return typeof n=="string"?i=>i.element===n:n.constructor&&n.extend?i=>i instanceof n:n}class r{constructor(i){this.elements=i||[]}toValue(){return this.elements.map(i=>i.toValue())}map(i,s){return this.elements.map(i,s)}flatMap(i,s){return this.map(i,s).reduce((a,o)=>a.concat(o),[])}compactMap(i,s){const a=[];return this.forEach(o=>{const u=i.bind(s)(o);u&&a.push(u)}),a}filter(i,s){return i=t(i),new r(this.elements.filter(i,s))}reject(i,s){return i=t(i),new r(this.elements.filter(e(i),s))}find(i,s){return i=t(i),this.elements.find(i,s)}forEach(i,s){this.elements.forEach(i,s)}reduce(i,s){return this.elements.reduce(i,s)}includes(i){return this.elements.some(s=>s.equals(i))}shift(){return this.elements.shift()}unshift(i){this.elements.unshift(this.refract(i))}push(i){return this.elements.push(this.refract(i)),this}add(i){this.push(i)}get(i){return this.elements[i]}getValue(i){const s=this.elements[i];if(s)return s.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}}return typeof Symbol<"u"&&(r.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),JS=r,JS}var KS,k$;function Fs(){if(k$)return KS;k$=1;const e=Ine(),t=kh(),r=Nh();class n{constructor(s,a,o){a&&(this.meta=a),o&&(this.attributes=o),this.content=s}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(s=>{s.parent=this,s.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const s=new this.constructor;return s.element=this.element,this.meta.length&&(s._meta=this.meta.clone()),this.attributes.length&&(s._attributes=this.attributes.clone()),this.content?this.content.clone?s.content=this.content.clone():Array.isArray(this.content)?s.content=this.content.map(a=>a.clone()):s.content=this.content:s.content=this.content,s}toValue(){return this.content instanceof n?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(s=>s.toValue(),this):this.content}toRef(s){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const a=new this.RefElement(this.id.toValue());return s&&(a.path=s),a}findRecursive(...s){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 a=s.pop();let o=new r;const u=(l,f)=>(l.push(f),l),c=(l,f)=>{f.element===a&&l.push(f);const h=f.findRecursive(a);return h&&h.reduce(u,l),f.content instanceof t&&(f.content.key&&c(l,f.content.key),f.content.value&&c(l,f.content.value)),l};return this.content&&(this.content.element&&c(o,this.content),Array.isArray(this.content)&&this.content.reduce(c,o)),s.isEmpty||(o=o.filter(l=>{let f=l.parents.map(h=>h.element);for(const h in s){const d=s[h],g=f.indexOf(d);if(g!==-1)f=f.splice(0,g);else return!1}return!0})),o}set(s){return this.content=s,this}equals(s){return e(this.toValue(),s)}getMetaProperty(s,a){if(!this.meta.hasKey(s)){if(this.isFrozen){const o=this.refract(a);return o.freeze(),o}this.meta.set(s,a)}return this.meta.get(s)}setMetaProperty(s,a){this.meta.set(s,a)}get element(){return this._storedElement||"element"}set element(s){this._storedElement=s}get content(){return this._content}set content(s){if(s instanceof n)this._content=s;else if(s instanceof r)this.content=s.elements;else if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"||s==="null"||s==null)this._content=s;else if(s instanceof t)this._content=s;else if(Array.isArray(s))this._content=s.map(this.refract);else if(typeof s=="object")this._content=Object.keys(s).map(a=>new this.MemberElement(a,s[a]));else throw new Error("Cannot set content to given value")}get meta(){if(!this._meta){if(this.isFrozen){const s=new this.ObjectElement;return s.freeze(),s}this._meta=new this.ObjectElement}return this._meta}set meta(s){s instanceof this.ObjectElement?this._meta=s:this.meta.set(s||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const s=new this.ObjectElement;return s.freeze(),s}this._attributes=new this.ObjectElement}return this._attributes}set attributes(s){s instanceof this.ObjectElement?this._attributes=s:this.attributes.set(s||{})}get id(){return this.getMetaProperty("id","")}set id(s){this.setMetaProperty("id",s)}get classes(){return this.getMetaProperty("classes",[])}set classes(s){this.setMetaProperty("classes",s)}get title(){return this.getMetaProperty("title","")}set title(s){this.setMetaProperty("title",s)}get description(){return this.getMetaProperty("description","")}set description(s){this.setMetaProperty("description",s)}get links(){return this.getMetaProperty("links",[])}set links(s){this.setMetaProperty("links",s)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:s}=this;const a=new r;for(;s;)a.push(s),s=s.parent;return a}get children(){if(Array.isArray(this.content))return new r(this.content);if(this.content instanceof t){const s=new r([this.content.key]);return this.content.value&&s.push(this.content.value),s}return this.content instanceof n?new r([this.content]):new r}get recursiveChildren(){const s=new r;return this.children.forEach(a=>{s.push(a),a.recursiveChildren.forEach(o=>{s.push(o)})}),s}}return KS=n,KS}var HS,P$;function jne(){if(P$)return HS;P$=1;const e=Fs();class t extends e{constructor(n,i,s){super(n||null,i,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}return HS=t,HS}var GS,N$;function kne(){if(N$)return GS;N$=1;const e=Fs();return GS=class extends e{constructor(r,n,i){super(r,n,i),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},GS}var YS,M$;function Pne(){if(M$)return YS;M$=1;const e=Fs();return YS=class extends e{constructor(r,n,i){super(r,n,i),this.element="number"}primitive(){return"number"}},YS}var XS,D$;function Nne(){if(D$)return XS;D$=1;const e=Fs();return XS=class extends e{constructor(r,n,i){super(r,n,i),this.element="boolean"}primitive(){return"boolean"}},XS}var ZS,q$;function w8(){if(q$)return ZS;q$=1;const e=Ph(),t=Fs(),r=Nh();class n extends t{constructor(s,a,o){super(s||[],a,o),this.element="array"}primitive(){return"array"}get(s){return this.content[s]}getValue(s){const a=this.get(s);if(a)return a.toValue()}getIndex(s){return this.content[s]}set(s,a){return this.content[s]=this.refract(a),this}remove(s){const a=this.content.splice(s,1);return a.length?a[0]:null}map(s,a){return this.content.map(s,a)}flatMap(s,a){return this.map(s,a).reduce((o,u)=>o.concat(u),[])}compactMap(s,a){const o=[];return this.forEach(u=>{const c=s.bind(a)(u);c&&o.push(c)}),o}filter(s,a){return new r(this.content.filter(s,a))}reject(s,a){return this.filter(e(s),a)}reduce(s,a){let o,u;a!==void 0?(o=0,u=this.refract(a)):(o=1,u=this.primitive()==="object"?this.first.value:this.first);for(let c=o;c<this.length;c+=1){const l=this.content[c];this.primitive()==="object"?u=this.refract(s(u,l.value,l.key,l,this)):u=this.refract(s(u,l,c,this))}return u}forEach(s,a){this.content.forEach((o,u)=>{s.bind(a)(o,this.refract(u))})}shift(){return this.content.shift()}unshift(s){this.content.unshift(this.refract(s))}push(s){return this.content.push(this.refract(s)),this}add(s){this.push(s)}findElements(s,a){const o=a||{},u=!!o.recursive,c=o.results===void 0?[]:o.results;return this.forEach((l,f,h)=>{u&&l.findElements!==void 0&&l.findElements(s,{results:c,recursive:u}),s(l,f,h)&&c.push(l)}),c}find(s){return new r(this.findElements(s,{recursive:!0}))}findByElement(s){return this.find(a=>a.element===s)}findByClass(s){return this.find(a=>a.classes.includes(s))}getById(s){return this.find(a=>a.id.toValue()===s).first}includes(s){return this.content.some(a=>a.equals(s))}contains(s){return this.includes(s)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(s){return new this.constructor(this.content.concat(s.content))}"fantasy-land/concat"(s){return this.concat(s)}"fantasy-land/map"(s){return new this.constructor(this.map(s))}"fantasy-land/chain"(s){return this.map(a=>s(a),this).reduce((a,o)=>a.concat(o),this.empty())}"fantasy-land/filter"(s){return new this.constructor(this.content.filter(s))}"fantasy-land/reduce"(s,a){return this.content.reduce(s,a)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}return n.empty=function(){return new this},n["fantasy-land/empty"]=n.empty,typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),ZS=n,ZS}var QS,$$;function x8(){if($$)return QS;$$=1;const e=kh(),t=Fs();return QS=class extends t{constructor(n,i,s,a){super(new e,s,a),this.element="member",this.key=n,this.value=i}get key(){return this.content.key}set key(n){this.content.key=this.refract(n)}get value(){return this.content.value}set value(n){this.content.value=this.refract(n)}},QS}var e1,F$;function A8(){if(F$)return e1;F$=1;const e=Ph(),t=Nh();class r extends t{map(i,s){return this.elements.map(a=>i.bind(s)(a.value,a.key,a))}filter(i,s){return new r(this.elements.filter(a=>i.bind(s)(a.value,a.key,a)))}reject(i,s){return this.filter(e(i.bind(s)))}forEach(i,s){return this.elements.forEach((a,o)=>{i.bind(s)(a.value,a.key,a,o)})}keys(){return this.map((i,s)=>s.toValue())}values(){return this.map(i=>i.toValue())}}return e1=r,e1}var t1,L$;function Mne(){if(L$)return t1;L$=1;const e=Ph(),t=wn(),r=w8(),n=x8(),i=A8();class s extends r{constructor(o,u,c){super(o||[],u,c),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((o,u)=>(o[u.key.toValue()]=u.value?u.value.toValue():void 0,o),{})}get(o){const u=this.getMember(o);if(u)return u.value}getMember(o){if(o!==void 0)return this.content.find(u=>u.key.toValue()===o)}remove(o){let u=null;return this.content=this.content.filter(c=>c.key.toValue()===o?(u=c,!1):!0),u}getKey(o){const u=this.getMember(o);if(u)return u.key}set(o,u){if(t(o))return Object.keys(o).forEach(f=>{this.set(f,o[f])}),this;const c=o,l=this.getMember(c);return l?l.value=u:this.content.push(new n(c,u)),this}keys(){return this.content.map(o=>o.key.toValue())}values(){return this.content.map(o=>o.value.toValue())}hasKey(o){return this.content.some(u=>u.key.equals(o))}items(){return this.content.map(o=>[o.key.toValue(),o.value.toValue()])}map(o,u){return this.content.map(c=>o.bind(u)(c.value,c.key,c))}compactMap(o,u){const c=[];return this.forEach((l,f,h)=>{const d=o.bind(u)(l,f,h);d&&c.push(d)}),c}filter(o,u){return new i(this.content).filter(o,u)}reject(o,u){return this.filter(e(o),u)}forEach(o,u){return this.content.forEach(c=>o.bind(u)(c.value,c.key,c))}}return t1=s,t1}var r1,B$;function Dne(){if(B$)return r1;B$=1;const e=Fs();return r1=class extends e{constructor(r,n,i){super(r||[],n,i),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(r){this.attributes.set("relation",r)}get href(){return this.attributes.get("href")}set href(r){this.attributes.set("href",r)}},r1}var n1,U$;function qne(){if(U$)return n1;U$=1;const e=Fs();return n1=class extends e{constructor(r,n,i){super(r||[],n,i),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(r){this.attributes.set("path",r)}},n1}var i1,V$;function O8(){if(V$)return i1;V$=1;const e=Fs(),t=jne(),r=kne(),n=Pne(),i=Nne(),s=w8(),a=x8(),o=Mne(),u=Dne(),c=qne(),l=Nh(),f=A8(),h=kh();function d(g){return g instanceof e?g:typeof g=="string"?new r(g):typeof g=="number"?new n(g):typeof g=="boolean"?new i(g):g===null?new t:Array.isArray(g)?new s(g.map(d)):typeof g=="object"?new o(g):g}return e.prototype.ObjectElement=o,e.prototype.RefElement=c,e.prototype.MemberElement=a,e.prototype.refract=d,l.prototype.refract=d,i1={Element:e,NullElement:t,StringElement:r,NumberElement:n,BooleanElement:i,ArrayElement:s,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:c,refract:d,ArraySlice:l,ObjectSlice:f,KeyValuePair:h},i1}var s1,z$;function $ne(){if(z$)return s1;z$=1;const e=Cne(),t=l4(),r=Rne(),n=Tne(),i=wn(),s=P2(),a=O8();class o{constructor(c){this.elementMap={},this.elementDetection=[],this.Element=a.Element,this.KeyValuePair=a.KeyValuePair,(!c||!c.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(c){return c.namespace&&c.namespace({base:this}),c.load&&c.load({base:this}),this}useDefault(){return this.register("null",a.NullElement).register("string",a.StringElement).register("number",a.NumberElement).register("boolean",a.BooleanElement).register("array",a.ArrayElement).register("object",a.ObjectElement).register("member",a.MemberElement).register("ref",a.RefElement).register("link",a.LinkElement),this.detect(e,a.NullElement,!1).detect(t,a.StringElement,!1).detect(r,a.NumberElement,!1).detect(n,a.BooleanElement,!1).detect(Array.isArray,a.ArrayElement,!1).detect(i,a.ObjectElement,!1),this}register(c,l){return this._elements=void 0,this.elementMap[c]=l,this}unregister(c){return this._elements=void 0,delete this.elementMap[c],this}detect(c,l,f){return(f===void 0?!0:f)?this.elementDetection.unshift([c,l]):this.elementDetection.push([c,l]),this}toElement(c){if(c instanceof this.Element)return c;let l;for(let f=0;f<this.elementDetection.length;f+=1){const h=this.elementDetection[f][0],d=this.elementDetection[f][1];if(h(c)){l=new d(c);break}}return l}getElementClass(c){const l=this.elementMap[c];return l===void 0?this.Element:l}fromRefract(c){return this.serialiser.deserialise(c)}toRefract(c){return this.serialiser.serialise(c)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(c=>{const l=c[0].toUpperCase()+c.substr(1);this._elements[l]=this.elementMap[c]})),this._elements}get serialiser(){return new s(this)}}return s.prototype.Namespace=o,s1=o,s1}var a1,W$;function Fne(){if(W$)return a1;W$=1;const e=P2();return a1=class extends e{serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);let n;r._attributes&&r.attributes.get("variable")&&(n=r.attributes.get("variable"));const i={element:r.element};r._meta&&r._meta.length>0&&(i.meta=this.serialiseObject(r.meta));const s=r.element==="enum"||r.attributes.keys().indexOf("enumerations")!==-1;if(s){const a=this.enumSerialiseAttributes(r);a&&(i.attributes=a)}else if(r._attributes&&r._attributes.length>0){let{attributes:a}=r;a.get("metadata")&&(a=a.clone(),a.set("meta",a.get("metadata")),a.remove("metadata")),r.element==="member"&&n&&(a=a.clone(),a.remove("variable")),a.length>0&&(i.attributes=this.serialiseObject(a))}if(s)i.content=this.enumSerialiseContent(r,i);else if(this[`${r.element}SerialiseContent`])i.content=this[`${r.element}SerialiseContent`](r,i);else if(r.content!==void 0){let a;n&&r.content.key?(a=r.content.clone(),a.key.attributes.set("variable",n),a=this.serialiseContent(a)):a=this.serialiseContent(r.content),this.shouldSerialiseContent(r,a)&&(i.content=a)}else this.shouldSerialiseContent(r,r.content)&&r instanceof this.namespace.elements.Array&&(i.content=[]);return i}shouldSerialiseContent(r,n){return r.element==="parseResult"||r.element==="httpRequest"||r.element==="httpResponse"||r.element==="category"||r.element==="link"?!0:!(n===void 0||Array.isArray(n)&&n.length===0)}refSerialiseContent(r,n){return delete n.attributes,{href:r.toValue(),path:r.path.toValue()}}sourceMapSerialiseContent(r){return r.toValue()}dataStructureSerialiseContent(r){return[this.serialiseContent(r.content)]}enumSerialiseAttributes(r){const n=r.attributes.clone(),i=n.remove("enumerations")||new this.namespace.elements.Array([]),s=n.get("default");let a=n.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),n.set("default",new this.namespace.elements.Array([s.content]))),a.forEach(o=>{o.content&&o.content.element&&o.content.attributes.remove("typeAttributes")}),r.content&&i.length!==0&&a.unshift(r.content),a=a.map(o=>o instanceof this.namespace.elements.Array?[o]:new this.namespace.elements.Array([o.content])),a.length&&n.set("samples",a),n.length>0)return this.serialiseObject(n)}enumSerialiseContent(r){if(r._attributes){const n=r.attributes.get("enumerations");if(n&&n.length>0)return n.content.map(i=>{const s=i.clone();return s.attributes.remove("typeAttributes"),this.serialise(s)})}if(r.content){const n=r.content.clone();return n.attributes.remove("typeAttributes"),[this.serialise(n)]}return[]}deserialise(r){if(typeof r=="string")return new this.namespace.elements.String(r);if(typeof r=="number")return new this.namespace.elements.Number(r);if(typeof r=="boolean")return new this.namespace.elements.Boolean(r);if(r===null)return new this.namespace.elements.Null;if(Array.isArray(r))return new this.namespace.elements.Array(r.map(this.deserialise,this));const n=this.namespace.getElementClass(r.element),i=new n;i.element!==r.element&&(i.element=r.element),r.meta&&this.deserialiseObject(r.meta,i.meta),r.attributes&&this.deserialiseObject(r.attributes,i.attributes);const s=this.deserialiseContent(r.content);if((s!==void 0||i.content===null)&&(i.content=s),i.element==="enum"){i.content&&i.attributes.set("enumerations",i.content);let a=i.attributes.get("samples");if(i.attributes.remove("samples"),a){const u=a;a=new this.namespace.elements.Array,u.forEach(l=>{l.forEach(f=>{const h=new n(f);h.element=i.element,a.push(h)})});const c=a.shift();c?i.content=c.content:i.content=void 0,i.attributes.set("samples",a)}else i.content=void 0;let o=i.attributes.get("default");if(o&&o.length>0){o=o.get(0);const u=new n(o);u.element=i.element,i.attributes.set("default",u)}}else if(i.element==="dataStructure"&&Array.isArray(i.content))[i.content]=i.content;else if(i.element==="category"){const a=i.attributes.get("meta");a&&(i.attributes.set("metadata",a),i.attributes.remove("meta"))}else i.element==="member"&&i.key&&i.key._attributes&&i.key._attributes.getValue("variable")&&(i.attributes.set("variable",i.key.attributes.get("variable")),i.key.attributes.remove("variable"));return i}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}shouldRefract(r){return r._attributes&&r.attributes.keys().length||r._meta&&r.meta.keys().length?!0:r.element==="enum"?!1:r.element!==r.primitive()||r.element==="member"}convertKeyToRefract(r,n){return this.shouldRefract(n)?this.serialise(n):n.element==="enum"?this.serialiseEnum(n):n.element==="array"?n.map(i=>this.shouldRefract(i)||r==="default"?this.serialise(i):i.element==="array"||i.element==="object"||i.element==="enum"?i.children.map(s=>this.serialise(s)):i.toValue()):n.element==="object"?(n.content||[]).map(this.serialise,this):n.toValue()}serialiseEnum(r){return r.children.map(n=>this.serialise(n))}serialiseObject(r){const n={};return r.forEach((i,s)=>{if(i){const a=s.toValue();n[a]=this.convertKeyToRefract(a,i)}}),n}deserialiseObject(r,n){Object.keys(r).forEach(i=>{n.set(i,this.deserialise(r[i]))})}},a1}var J$;function Lne(){if(J$)return Or;J$=1;const e=$ne(),t=O8();return Or.Namespace=e,Or.namespace=function(n){return new e(n)},Or.KeyValuePair=kh(),Or.ArraySlice=t.ArraySlice,Or.ObjectSlice=t.ObjectSlice,Or.Element=t.Element,Or.StringElement=t.StringElement,Or.NumberElement=t.NumberElement,Or.BooleanElement=t.BooleanElement,Or.NullElement=t.NullElement,Or.ArrayElement=t.ArrayElement,Or.ObjectElement=t.ObjectElement,Or.MemberElement=t.MemberElement,Or.RefElement=t.RefElement,Or.LinkElement=t.LinkElement,Or.refract=t.refract,Or.JSONSerialiser=P2(),Or.JSON06Serialiser=Fne(),Or}var ce=Lne();class Kp extends ce.StringElement{constructor(t,r,n){super(t,r,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}class Hp extends ce.StringElement{constructor(t,r,n){super(t,r,n),this.element="comment"}}class Ni extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.element="parseResult"}get api(){return this.children.filter(t=>t.classes.contains("api")).first}get results(){return this.children.filter(t=>t.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(t=>t.element==="annotation")}get warnings(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("warning"))}get errors(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("error"))}get isEmpty(){return this.children.reject(t=>t.element==="annotation").isEmpty}replaceResult(t){const{result:r}=this;if(Ea(r))return!1;const n=this.content.findIndex(i=>i===r);return n===-1?!1:(this.content[n]=t,!0)}}class Gp extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.element="sourceMap"}get positionStart(){return this.children.filter(t=>t.classes.contains("position")).get(0)}get positionEnd(){return this.children.filter(t=>t.classes.contains("position")).get(1)}set position(t){if(typeof t>"u")return;const r=new ce.ArrayElement([t.start.row,t.start.column,t.start.char]),n=new ce.ArrayElement([t.end.row,t.end.column,t.end.char]);r.classes.push("position"),n.classes.push("position"),this.push(r).push(n)}}const Bne=(e,t)=>typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="function",Une=e=>typeof e=="object"&&e!=null&&"_storedElement"in e&&typeof e._storedElement=="string"&&"_content"in e,Vne=(e,t)=>typeof t=="object"&&t!==null&&"primitive"in t?typeof t.primitive=="function"&&t.primitive()===e:!1,zne=(e,t)=>typeof t=="object"&&t!==null&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.ArrayElement)&&t.classes.includes(e),ta=(e,t)=>typeof t=="object"&&t!==null&&"element"in t&&t.element===e,Me=e=>e({hasMethod:Bne,hasBasicElementProps:Une,primitiveEq:Vne,isElementType:ta,hasClass:zne}),Sr=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.Element||e(r)&&t(void 0,r)),it=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.StringElement||e(r)&&t("string",r)),N2=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.NumberElement||e(r)&&t("number",r)),M2=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.NullElement||e(r)&&t("null",r)),kl=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.BooleanElement||e(r)&&t("boolean",r)),Ft=Me(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ce.ObjectElement||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),vn=Me(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ce.ArrayElement&&!(n instanceof ce.ObjectElement)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),$i=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ce.MemberElement||e(n)&&t("member",n)&&r(void 0,n)),C8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ce.LinkElement||e(n)&&t("link",n)&&r(void 0,n)),R8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ce.RefElement||e(n)&&t("ref",n)&&r(void 0,n)),Wne=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kp||e(n)&&t("annotation",n)&&r("array",n)),Jne=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hp||e(n)&&t("comment",n)&&r("string",n)),T8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ni||e(n)&&t("parseResult",n)&&r("array",n)),I8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gp||e(n)&&t("sourceMap",n)&&r("array",n)),Wa=e=>ta("object",e)||ta("array",e)||ta("boolean",e)||ta("number",e)||ta("string",e)||ta("null",e)||ta("member",e),Pl=e=>I8(e.meta.get("sourceMap")),Kne=(e,t)=>{if(e.length===0)return!0;const r=t.attributes.get("symbols");return vn(r)?f2(Ih(r.toValue()),e):!1},Mh=(e,t)=>e.length===0?!0:f2(Ih(t.classes.toValue()),e),Hne=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Pl,includesClasses:Mh,includesSymbols:Kne,isAnnotationElement:Wne,isArrayElement:vn,isBooleanElement:kl,isCommentElement:Jne,isElement:Sr,isLinkElement:C8,isMemberElement:$i,isNullElement:M2,isNumberElement:N2,isObjectElement:Ft,isParseResultElement:T8,isPrimitiveElement:Wa,isRefElement:R8,isSourceMapElement:I8,isStringElement:it},Symbol.toStringTag,{value:"Module"}));class j8 extends ce.Namespace{constructor(){super(),this.register("annotation",Kp),this.register("comment",Hp),this.register("parseResult",Ni),this.register("sourceMap",Gp)}}const k8=new j8,Ls=e=>{const t=new j8;return Ts(e)&&t.use(e),t},P8=()=>({predicates:{...Hne},namespace:k8}),Dh=(e,t,r)=>{const n=e[t];if(n!=null){if(!r&&typeof n=="function")return n;const i=r?n.leave:n.enter;if(typeof i=="function")return i}else{const i=r?e.leave:e.enter;if(i!=null){if(typeof i=="function")return i;const s=i[t];if(typeof s=="function")return s}}return null},wt={},Nl=e=>e==null?void 0:e.type,N8=e=>typeof Nl(e)=="string",D2=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),qh=(e,{visitFnGetter:t=Dh,nodeTypeGetter:r=Nl,breakSymbol:n=wt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{enter(c,l,f,h,d,g){let y=c,v=!1;const E={...g,replaceWith(b,S){g.replaceWith(b,S),y=b}};for(let b=0;b<e.length;b+=1)if(u[b]===o){const S=t(e[b],r(y),!1);if(typeof S=="function"){const x=S.call(e[b],y,l,f,h,d,E);if(typeof(x==null?void 0:x.then)=="function")throw new Pi("Async visitor not supported in sync mode",{visitor:e[b],visitFn:S});if(x===s)u[b]=y;else if(x===n)u[b]=n;else{if(x===i)return x;if(x!==void 0)if(a)y=x,v=!0;else return x}}}return v?y:void 0},leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<e.length;E+=1)if(u[E]===o){const b=t(e[E],r(y),!0);if(typeof b=="function"){const S=b.call(e[E],y,l,f,h,d,v);if(typeof(S==null?void 0:S.then)=="function")throw new Pi("Async visitor not supported in sync mode",{visitor:e[E],visitFn:b});if(S===n)u[E]=n;else if(S!==void 0&&S!==s)return S}}else u[E]===y&&(u[E]=o)}}},Gne=(e,{visitFnGetter:t=Dh,nodeTypeGetter:r=Nl,breakSymbol:n=wt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{async enter(c,l,f,h,d,g){let y=c,v=!1;const E={...g,replaceWith(b,S){g.replaceWith(b,S),y=b}};for(let b=0;b<e.length;b+=1)if(u[b]===o){const S=t(e[b],r(y),!1);if(typeof S=="function"){const x=await S.call(e[b],y,l,f,h,d,E);if(x===s)u[b]=y;else if(x===n)u[b]=n;else{if(x===i)return x;if(x!==void 0)if(a)y=x,v=!0;else return x}}}return v?y:void 0},async leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<e.length;E+=1)if(u[E]===o){const b=t(e[E],r(y),!0);if(typeof b=="function"){const S=await b.call(e[E],y,l,f,h,d,v);if(S===n)u[E]=n;else if(S!==void 0&&S!==s)return S}}else u[E]===y&&(u[E]=o)}}};qh[Symbol.for("nodejs.util.promisify.custom")]=Gne;const q2=(e,t,{keyMap:r=null,state:n={},breakSymbol:i=wt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Dh,nodeTypeGetter:u=Nl,nodePredicate:c=N8,nodeCloneFn:l=D2,detectCycles:f=!0}={})=>{const h=r||{};let d,g=Array.isArray(e),y=[e],v=-1,E,b=[],S=e;const x=[],_=[];do{v+=1;const R=v===y.length;let O;const M=R&&b.length!==0;if(R){if(O=_.length===0?void 0:x.pop(),S=E,E=_.pop(),M)if(g){S=S.slice();let D=0;for(const[P,H]of b){const Z=P-D;H===s?(S.splice(Z,1),D+=1):S[Z]=H}}else{S=l(S);for(const[D,P]of b)S[D]=P}v=d.index,y=d.keys,b=d.edits,g=d.inArray,d=d.prev}else if(E!==s&&E!==void 0){if(O=g?v:y[v],S=E[O],S===s||S===void 0)continue;x.push(O)}let k;if(!Array.isArray(S)){var A;if(!c(S))throw new Pi(`Invalid AST Node: ${String(S)}`,{node:S});if(f&&_.includes(S)){x.pop();continue}const D=o(t,u(S),R);if(D){for(const[H,Z]of Object.entries(n))t[H]=Z;const P={replaceWith(H,Z){typeof Z=="function"?Z(H,S,O,E,x,_):E&&(E[O]=H),R||(S=H)}};k=D.call(t,S,O,E,x,_,P)}if(typeof((A=k)===null||A===void 0?void 0:A.then)=="function")throw new Pi("Async visitor not supported in sync mode",{visitor:t,visitFn:D});if(k===i)break;if(k===a){if(!R){x.pop();continue}}else if(k!==void 0&&(b.push([O,k]),!R))if(c(k))S=k;else{x.pop();continue}}if(k===void 0&&M&&b.push([O,S]),!R){var C;d={inArray:g,index:v,keys:y,edits:b,prev:d},g=Array.isArray(S),y=g?S:(C=h[u(S)])!==null&&C!==void 0?C:[],v=-1,b=[],E!==s&&E!==void 0&&_.push(E),E=S}}while(d!==void 0);return b.length!==0?b[b.length-1][1]:e};q2[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:i=wt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Dh,nodeTypeGetter:u=Nl,nodePredicate:c=N8,nodeCloneFn:l=D2,detectCycles:f=!0}={})=>{const h=r||{};let d,g=Array.isArray(e),y=[e],v=-1,E,b=[],S=e;const x=[],_=[];do{v+=1;const C=v===y.length;let R;const O=C&&b.length!==0;if(C){if(R=_.length===0?void 0:x.pop(),S=E,E=_.pop(),O)if(g){S=S.slice();let k=0;for(const[D,P]of b){const H=D-k;P===s?(S.splice(H,1),k+=1):S[H]=P}}else{S=l(S);for(const[k,D]of b)S[k]=D}v=d.index,y=d.keys,b=d.edits,g=d.inArray,d=d.prev}else if(E!==s&&E!==void 0){if(R=g?v:y[v],S=E[R],S===s||S===void 0)continue;x.push(R)}let M;if(!Array.isArray(S)){if(!c(S))throw new Pi(`Invalid AST Node: ${String(S)}`,{node:S});if(f&&_.includes(S)){x.pop();continue}const k=o(t,u(S),C);if(k){for(const[P,H]of Object.entries(n))t[P]=H;const D={replaceWith(P,H){typeof H=="function"?H(P,S,R,E,x,_):E&&(E[R]=P),C||(S=P)}};M=await k.call(t,S,R,E,x,_,D)}if(M===i)break;if(M===a){if(!C){x.pop();continue}}else if(M!==void 0&&(b.push([R,M]),!C))if(c(M))S=M;else{x.pop();continue}}if(M===void 0&&O&&b.push([R,S]),!C){var A;d={inArray:g,index:v,keys:y,edits:b,prev:d},g=Array.isArray(S),y=g?S:(A=h[u(S)])!==null&&A!==void 0?A:[],v=-1,b=[],E!==s&&E!==void 0&&_.push(E),E=S}}while(d!==void 0);return b.length!==0?b[b.length-1][1]:e};class M8 extends Pi{constructor(r,n){super(r,n);z(this,"value");typeof n<"u"&&(this.value=n.value)}}class Yne extends M8{}class Xne extends M8{}const Le=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ce.KeyValuePair){const{key:i,value:s}=e,a=Sr(i)?Le(i,n):i,o=Sr(s)?Le(s,n):s,u=new ce.KeyValuePair(a,o);return r.set(e,u),u}if(e instanceof ce.ObjectSlice){const i=o=>Le(o,n),s=[...e].map(i),a=new ce.ObjectSlice(s);return r.set(e,a),a}if(e instanceof ce.ArraySlice){const i=o=>Le(o,n),s=[...e].map(i),a=new ce.ArraySlice(s);return r.set(e,a),a}if(Sr(e)){const i=hn(e);if(r.set(e,i),e.content)if(Sr(e.content))i.content=Le(e.content,n);else if(e.content instanceof ce.KeyValuePair)i.content=Le(e.content,n);else if(Array.isArray(e.content)){const s=a=>Le(a,n);i.content=e.content.map(s)}else i.content=e.content;else i.content=e.content;return i}throw new Yne("Value provided to cloneDeep function couldn't be cloned",{value:e})};Le.safe=e=>{try{return Le(e)}catch{return e}};const D8=e=>{const{key:t,value:r}=e;return new ce.KeyValuePair(t,r)},Zne=e=>{const t=[...e];return new ce.ArraySlice(t)},Qne=e=>{const t=[...e];return new ce.ObjectSlice(t)},q8=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Le(e.meta)),e.attributes.length>0&&(t._attributes=Le(e.attributes)),Sr(e.content)){const r=e.content;t.content=q8(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=D8(e.content):t.content=e.content;return t},hn=e=>{if(e instanceof ce.KeyValuePair)return D8(e);if(e instanceof ce.ObjectSlice)return Qne(e);if(e instanceof ce.ArraySlice)return Zne(e);if(Sr(e))return q8(e);throw new Xne("Value provided to cloneShallow function couldn't be cloned",{value:e})};hn.safe=e=>{try{return hn(e)}catch{return e}};const Cu=e=>Ft(e)?"ObjectElement":vn(e)?"ArrayElement":$i(e)?"MemberElement":it(e)?"StringElement":kl(e)?"BooleanElement":N2(e)?"NumberElement":M2(e)?"NullElement":C8(e)?"LinkElement":R8(e)?"RefElement":void 0,$8=e=>Sr(e)?hn(e):D2(e),F8=wr(Cu,po),fs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class L8{constructor({predicate:t=c2,returnOnTrue:r,returnOnFalse:n}={}){z(this,"result");z(this,"predicate");z(this,"returnOnTrue");z(this,"returnOnFalse");this.result=[],this.predicate=t,this.returnOnTrue=r,this.returnOnFalse=n}enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}const Ir=(e,t,{keyMap:r=fs,...n}={})=>q2(e,t,{keyMap:r,nodeTypeGetter:Cu,nodePredicate:F8,nodeCloneFn:$8,...n});Ir[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=fs,...n}={})=>q2[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Cu,nodePredicate:F8,nodeCloneFn:$8,...n});const B8={toolboxCreator:P8,visitorOptions:{nodeTypeGetter:Cu,exposeEdits:!0}},ps=(e,t,r={})=>{if(t.length===0)return e;const n=Oh(B8,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(l=>l(a)),u=qh(o.map(Wp({},"visitor")),{...s});o.forEach(Mc(["pre"],[]));const c=Ir(e,u,s);return o.forEach(Mc(["post"],[])),c},eie=async(e,t,r={})=>{if(t.length===0)return e;const n=Oh(B8,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(h=>h(a)),u=qh[Symbol.for("nodejs.util.promisify.custom")],c=Ir[Symbol.for("nodejs.util.promisify.custom")],l=u(o.map(Wp({},"visitor")),{...s});await Promise.allSettled(o.map(Mc(["pre"],[])));const f=await c(e,l,s);return await Promise.allSettled(o.map(Mc(["post"],[]))),f};ps[Symbol.for("nodejs.util.promisify.custom")]=eie;var o1={exports:{}},K$;function tie(){return K$||(K$=1,function(e){var t=(()=>{var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,u=(x,_,A)=>_ in x?r(x,_,{enumerable:!0,configurable:!0,writable:!0,value:A}):x[_]=A,c=(x,_)=>{for(var A in _||(_={}))a.call(_,A)&&u(x,A,_[A]);if(s)for(var A of s(_))o.call(_,A)&&u(x,A,_[A]);return x},l=(x,_)=>{for(var A in _)r(x,A,{get:_[A],enumerable:!0})},f=(x,_,A,C)=>{if(_&&typeof _=="object"||typeof _=="function")for(let R of i(_))!a.call(x,R)&&R!==A&&r(x,R,{get:()=>_[R],enumerable:!(C=n(_,R))||C.enumerable});return x},h=x=>f(r({},"__esModule",{value:!0}),x),d=(x,_,A)=>u(x,typeof _!="symbol"?_+"":_,A),g={};l(g,{DEFAULT_OPTIONS:()=>E,DEFAULT_UUID_LENGTH:()=>v,default:()=>S});var y="5.2.2",v=6,E={dictionary:"alphanum",shuffle:!0,debug:!1,length:v,counter:0},b=class{constructor(_={}){d(this,"counter"),d(this,"debug"),d(this,"dict"),d(this,"version"),d(this,"dictIndex",0),d(this,"dictRange",[]),d(this,"lowerBound",0),d(this,"upperBound",0),d(this,"dictLength",0),d(this,"uuidLength"),d(this,"_digit_first_ascii",48),d(this,"_digit_last_ascii",58),d(this,"_alpha_lower_first_ascii",97),d(this,"_alpha_lower_last_ascii",123),d(this,"_hex_last_ascii",103),d(this,"_alpha_upper_first_ascii",65),d(this,"_alpha_upper_last_ascii",91),d(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),d(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),d(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),d(this,"log",(...k)=>{const D=[...k];if(D[0]="[short-unique-id] ".concat(k[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...D);return}}),d(this,"_normalizeDictionary",(k,D)=>{let P;if(k&&Array.isArray(k)&&k.length>1)P=k;else{P=[],this.dictIndex=0;const H="_".concat(k,"_dict_ranges"),Z=this._dict_ranges[H];let V=0;for(const[,Q]of Object.entries(Z)){const[Y,L]=Q;V+=Math.abs(L-Y)}P=new Array(V);let G=0;for(const[,Q]of Object.entries(Z)){this.dictRange=Q,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const Y=this.lowerBound<=this.upperBound,L=this.lowerBound,J=this.upperBound;if(Y)for(let ee=L;ee<J;ee++)P[G++]=String.fromCharCode(ee),this.dictIndex=ee;else for(let ee=L;ee>J;ee--)P[G++]=String.fromCharCode(ee),this.dictIndex=ee}P.length=G}if(D){const H=P.length;for(let Z=H-1;Z>0;Z--){const V=Math.floor(Math.random()*(Z+1));[P[Z],P[V]]=[P[V],P[Z]]}}return P}),d(this,"setDictionary",(k,D)=>{this.dict=this._normalizeDictionary(k,D),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,"seq",()=>this.sequentialUUID()),d(this,"sequentialUUID",()=>{const k=this.dictLength,D=this.dict;let P=this.counter;const H=[];do{const V=P%k;P=Math.trunc(P/k),H.push(D[V])}while(P!==0);const Z=H.join("");return this.counter+=1,Z}),d(this,"rnd",(k=this.uuidLength||v)=>this.randomUUID(k)),d(this,"randomUUID",(k=this.uuidLength||v)=>{if(k===null||typeof k>"u"||k<1)throw new Error("Invalid UUID Length Provided");const D=new Array(k),P=this.dictLength,H=this.dict;for(let Z=0;Z<k;Z++){const V=Math.floor(Math.random()*P);D[Z]=H[V]}return D.join("")}),d(this,"fmt",(k,D)=>this.formattedUUID(k,D)),d(this,"formattedUUID",(k,D)=>{const P={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return k.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,Z=>{const V=Z.slice(0,2),G=Number.parseInt(Z.slice(2),10);return V==="$s"?P[V]().padStart(G,"0"):V==="$t"&&D?P[V](G,D):P[V](G)})}),d(this,"availableUUIDs",(k=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**k).toFixed(0))),d(this,"_collisionCache",new Map),d(this,"approxMaxBeforeCollision",(k=this.availableUUIDs(this.uuidLength))=>{const D=k,P=this._collisionCache.get(D);if(P!==void 0)return P;const H=Number.parseFloat(Math.sqrt(Math.PI/2*k).toFixed(20));return this._collisionCache.set(D,H),H}),d(this,"collisionProbability",(k=this.availableUUIDs(this.uuidLength),D=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(k)/this.availableUUIDs(D)).toFixed(20))),d(this,"uniqueness",(k=this.availableUUIDs(this.uuidLength))=>{const D=Number.parseFloat((1-this.approxMaxBeforeCollision(k)/k).toFixed(20));return D>1?1:D<0?0:D}),d(this,"getVersion",()=>this.version),d(this,"stamp",(k,D)=>{const P=Math.floor(+(D||new Date)/1e3).toString(16);if(typeof k=="number"&&k===0)return P;if(typeof k!="number"||k<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(`
99
+ `));const H=k-9,Z=Math.round(Math.random()*(H>15?15:H)),V=this.randomUUID(H);return"".concat(V.substring(0,Z)).concat(P).concat(V.substring(Z)).concat(Z.toString(16))}),d(this,"parseStamp",(k,D)=>{if(D&&!/t0|t[1-9]\d{1,}/.test(D))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const P=D?D.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,Z=>{const V={$r:Y=>[...Array(Y)].map(()=>"r").join(""),$s:Y=>[...Array(Y)].map(()=>"s").join(""),$t:Y=>[...Array(Y)].map(()=>"t").join("")},G=Z.slice(0,2),Q=Number.parseInt(Z.slice(2),10);return V[G](Q)}).replace(/^(.*?)(t{8,})(.*)$/g,(Z,V,G)=>k.substring(V.length,V.length+G.length)):k;if(P.length===8)return new Date(Number.parseInt(P,16)*1e3);if(P.length<10)throw new Error("Stamp length invalid");const H=Number.parseInt(P.substring(P.length-1),16);return new Date(Number.parseInt(P.substring(H,H+8),16)*1e3)}),d(this,"setCounter",k=>{this.counter=k}),d(this,"validate",(k,D)=>{const P=D?this._normalizeDictionary(D):this.dict;return k.split("").every(H=>P.includes(H))});const A=c(c({},E),_);this.counter=0,this.debug=!1,this.dict=[],this.version=y;const{dictionary:C,shuffle:R,length:O,counter:M}=A;this.uuidLength=O,this.setDictionary(C,R),this.setCounter(M),this.debug=A.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};d(b,"default",b);var S=b;return h(g)})();e.exports=t.default,typeof window<"u"&&(t=t.default)}(o1)),o1.exports}var rie=tie();const nie=Be.getDefaultExportFromCjs(rie);class iie extends Pi{constructor(r,n){super(r,n);z(this,"value");typeof n<"u"&&(this.value=n.value)}}class $2{constructor({length:t=6}={}){z(this,"uuid");z(this,"identityMap");this.uuid=new nie({length:t}),this.identityMap=new WeakMap}identify(t){if(!Sr(t))throw new iie("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&it(t.meta.get("id"))&&!t.meta.get("id").equals(""))return t.id;if(this.identityMap.has(t))return this.identityMap.get(t);const r=new ce.StringElement(this.generateId());return this.identityMap.set(t,r),r}forget(t){return this.identityMap.has(t)?(this.identityMap.delete(t),!0):!1}generateId(){return this.uuid.randomUUID()}}new $2;class sie extends Array{constructor(){super(...arguments);z(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new DS("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new DS("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new DS("latest method in MediaTypes class is not yet implemented.")}}const aie=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Sr(e)&&(e.meta.length>0&&(n.meta=Le(e.meta)),e.attributes.length>0&&(n.attributes=Le(e.attributes))),ps(n,r,{toolboxCreator:P8,visitorOptions:{nodeTypeGetter:Cu}})},bi=e=>(t,r={})=>aie(t,{...r,Type:e});ce.ObjectElement.refract=bi(ce.ObjectElement);ce.ArrayElement.refract=bi(ce.ArrayElement);ce.StringElement.refract=bi(ce.StringElement);ce.BooleanElement.refract=bi(ce.BooleanElement);ce.NullElement.refract=bi(ce.NullElement);ce.NumberElement.refract=bi(ce.NumberElement);ce.LinkElement.refract=bi(ce.LinkElement);ce.RefElement.refract=bi(ce.RefElement);Kp.refract=bi(Kp);Hp.refract=bi(Hp);Ni.refract=bi(Ni);Gp.refract=bi(Gp);const oie=(e,t)=>{const r=new L8({predicate:e});return Ir(t,r),new ce.ArraySlice(r.result)},U8=(e,t)=>{const r=new L8({predicate:e,returnOnTrue:wt});return Ir(t,r),s8(void 0,[0],r.result)},V8=e=>typeof(e==null?void 0:e.type)=="string"?e.type:Cu(e),z8={EphemeralObject:["content"],EphemeralArray:["content"],...fs},W8=(e,t,{keyMap:r=z8,...n}={})=>Ir(e,t,{keyMap:r,nodeTypeGetter:V8,nodePredicate:Ms,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});W8[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=z8,...r}={})=>Ir[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:V8,nodePredicate:Ms,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class uie{constructor(t){z(this,"type","EphemeralArray");z(this,"content",[]);z(this,"reference");this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class cie{constructor(t){z(this,"type","EphemeralObject");z(this,"content",[]);z(this,"reference");this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let lie=class{constructor(){z(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new cie(t.content);return this.references.set(t,r),r}});z(this,"EphemeralObject",{leave:t=>t.toObject()});z(this,"MemberElement",{enter:t=>[t.key,t.value]});z(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new uie(t.content);return this.references.set(t,r),r}});z(this,"EphemeralArray",{leave:t=>t.toArray()});z(this,"references",new WeakMap)}BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}RefElement(t,...r){var n;const i=r[3];return((n=i[i.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(t.toValue())}LinkElement(t){return it(t.href)?t.href.toValue():""}};const we=e=>Sr(e)?it(e)||N2(e)||kl(e)||M2(e)?e.toValue():W8(e,new lie):e,vp=(e,t=new WeakMap)=>($i(e)?(t.set(e.key,e),vp(e.key,t),t.set(e.value,e),vp(e.value,t)):e.children.forEach(r=>{t.set(r,e),vp(r,t)}),t),fie=(e,t,r)=>{const n=r.get(e);$i(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))},pie=(e,t,r)=>{const n=r.get(e);Ft(n)&&(n.content=n.map((i,s,a)=>a===e?(r.delete(e),r.set(t,n),t):a))},die=(e,t,r)=>{const n=r.get(e);vn(n)&&(n.content=n.map(i=>i===e?(r.delete(e),r.set(t,n),t):i))};class hie{constructor({element:t}){z(this,"element");z(this,"edges");this.element=t}transclude(t,r){var n;if(t===this.element)return r;if(t===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:vp(this.element);const i=this.edges.get(t);if(!Ea(i))return Ft(i)?pie(t,r,this.edges):vn(i)?die(t,r,this.edges):$i(i)&&fie(t,r,this.edges),this.element}}const mie=(e,t,r)=>new hie({element:r}).transclude(e,t),Sa=(e,t)=>{const r=su(e,t);return bre(n=>{if(Ts(n)&&bc("$ref",n)&&xre(po,"$ref",n)){const i=Fr(["$ref"],n),s=O2("#/",i);return Fr(s.split("/"),r)}return Ts(n)?Sa(n,r):n},e)},J8=(e,t=k8)=>{if(po(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Ts(e)&&bc("element",e)?t.fromRefract(e):t.toElement(e)},Yp=e=>{const t=e.meta.length>0?Le(e.meta):void 0,r=e.attributes.length>0?Le(e.attributes):void 0;return new e.constructor(void 0,t,r)},Xp=(e,t)=>t.clone&&t.isMergeableElement(e)?ss(Yp(e),e,t):e,gie=(e,t)=>{if(typeof t.customMerge!="function")return ss;const r=t.customMerge(e,t);return typeof r=="function"?r:ss},yie=e=>typeof e.customMetaMerge!="function"?t=>Le(t):e.customMetaMerge,vie=e=>typeof e.customAttributesMerge!="function"?t=>Le(t):e.customAttributesMerge,bie=(e,t,r)=>e.concat(t)["fantasy-land/map"](n=>Xp(n,r)),_ie=(e,t,r)=>{const n=Ft(e)?Yp(e):Yp(t);return Ft(e)&&e.forEach((i,s,a)=>{const o=hn(a);o.value=Xp(i,r),n.content.push(o)}),t.forEach((i,s,a)=>{const o=we(s);let u;if(Ft(e)&&e.hasKey(o)&&r.isMergeableElement(i)){const c=e.get(o);u=hn(a),u.value=gie(s,r)(c,i)}else u=hn(a),u.value=Xp(i,r);n.remove(o),n.content.push(u)}),n},Zf={clone:!0,isMergeableElement:e=>Ft(e)||vn(e),arrayElementMerge:bie,objectElementMerge:_ie,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ss=(e,t,r)=>{var n,i,s;const a={...Zf,...r};a.isMergeableElement=(n=a.isMergeableElement)!==null&&n!==void 0?n:Zf.isMergeableElement,a.arrayElementMerge=(i=a.arrayElementMerge)!==null&&i!==void 0?i:Zf.arrayElementMerge,a.objectElementMerge=(s=a.objectElementMerge)!==null&&s!==void 0?s:Zf.objectElementMerge;const o=vn(t),u=vn(e);if(!(o===u))return Xp(t,a);const l=o&&typeof a.arrayElementMerge=="function"?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a);return l.meta=yie(a)(e.meta,t.meta),l.attributes=vie(a)(e.attributes,t.attributes),l};ss.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new ce.ObjectElement:e.reduce((r,n)=>ss(r,n,t),Yp(e[0]))};class F2 extends pr{}class K8 extends F2{}const Eie=async(e,t)=>{let r=e,n=!1;if(!T8(e)){const a=hn(e);a.classes.push("result"),r=new Ni([a]),n=!0}const i=new Dc({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),s=await I2("canDereference",[i,t],t.dereference.strategies);if(jl(s))throw new K8(i.uri);try{const{result:a}=await j2("dereference",[i,t],s);return n?a.get(0):a}catch(a){throw new F2(`Error while dereferencing file "${i.uri}"`,{cause:a})}};let Ml=class{constructor({name:t,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:i=[],mediaTypes:s=[]}){z(this,"name");z(this,"allowEmpty");z(this,"sourceMap");z(this,"fileExtensions");z(this,"mediaTypes");this.name=t,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=i,this.mediaTypes=s}};class Sie{constructor({name:t}){z(this,"name");this.name=t}}class wie extends Sie{constructor(r){const{name:n="http-resolver",timeout:i=5e3,redirects:s=5,withCredentials:a=!1}=r??{};super({name:n});z(this,"timeout");z(this,"redirects");z(this,"withCredentials");this.timeout=i,this.redirects=s,this.withCredentials=a}canRead(r){return T2(r.uri)}}class xie{constructor({name:t}){z(this,"name");this.name=t}}class Aie{constructor({name:t}){z(this,"name");this.name=t}}class u1 extends Array{includesCycle(t){return this.filter(r=>r.has(t)).length>1}includes(t,r){return t instanceof Set?super.includes(t,r):this.some(n=>n.has(t))}findItem(t){for(const r of this)for(const n of r)if(Sr(n)&&t(n))return n}}let As=class{constructor({uri:t,depth:r=0,refSet:n,value:i}){z(this,"uri");z(this,"depth");z(this,"value");z(this,"refSet");z(this,"errors");this.uri=t,this.value=i,this.depth=r,this.refSet=n,this.errors=[]}};class H8 extends pr{}class Oie extends H8{}class Cie extends pr{}class L2 extends Cie{}class Rie extends H8{constructor(t){super(`Invalid JSON Schema $anchor "${t}".`)}}class zo extends F2{}class Tie extends k2{}class Is extends Jw{}const Iie=async(e,t={})=>{const r=_8(b8,t);return Eie(e,r)},{fetch:jie,Response:kie,Headers:Pie,Request:Nie,FormData:Mie,File:Die,Blob:qie}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=jie);typeof globalThis.Headers>"u"&&(globalThis.Headers=Pie);typeof globalThis.Request>"u"&&(globalThis.Request=Nie);typeof globalThis.Response>"u"&&(globalThis.Response=kie);typeof globalThis.FormData>"u"&&(globalThis.FormData=Mie);typeof globalThis.File>"u"&&(globalThis.File=Die);typeof globalThis.Blob>"u"&&(globalThis.Blob=qie);function H$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $ie(e){if(Array.isArray(e))return e}function Fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bie(e,t,r){return t&&Lie(e.prototype,t),e}function G8(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Uie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,s=!1,a,o;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){s=!0,o=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}return n}}function Vie(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zie(e,t){return $ie(e)||Uie(e,t)||Wie(e,t)||Vie()}function Wo(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Wie(e,t){if(e){if(typeof e=="string")return H$(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H$(e,t)}}var Y8=function(e){throw TypeError(e)},X8=function(e,t,r){return t.has(e)||Y8("Cannot "+r)},fn=function(e,t,r){return X8(e,t,"read from private field"),r?r.call(e):t.get(e)},G$=function(e,t,r){return t.has(e)?Y8("Cannot add the same private member more than once"):G8(t,WeakSet)?t.add(e):t.set(e,r)},c1=function(e,t,r,n){return X8(e,t,"write to private field"),t.set(e,r),r},Ru=function(e){return Object.prototype.toString.call(e)},Z8=function(e){return ArrayBuffer.isView(e)&&!G8(e,DataView)},Jie=function(e){return Ru(e)==="[object Date]"},Kie=function(e){return Ru(e)==="[object RegExp]"},Hie=function(e){return Ru(e)==="[object Error]"},Gie=function(e){return Ru(e)==="[object Boolean]"},Yie=function(e){return Ru(e)==="[object Number]"},Xie=function(e){return Ru(e)==="[object String]"},Q8=Array.isArray,Zie=Object.getOwnPropertyDescriptor,Qie=Object.prototype.propertyIsEnumerable,ese=Object.getOwnPropertySymbols,bp=Object.prototype.hasOwnProperty;function B2(e){for(var t=Object.keys(e),r=ese(e),n=0;n<r.length;n++)Qie.call(e,r[n])&&t.push(r[n]);return t}function tse(e,t){var r;return!(!((r=Zie(e,t))===null||r===void 0)&&r.writable)}function e9(e,t){if((typeof e>"u"?"undefined":Wo(e))==="object"&&e!==null){var r;if(Q8(e))r=[];else if(Jie(e))r=new Date(e.getTime?e.getTime():e);else if(Kie(e))r=new RegExp(e);else if(Hie(e))r={message:e.message};else if(Gie(e)||Yie(e)||Xie(e))r=Object(e);else{if(Z8(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var n=t.includeSymbols?B2:Object.keys,i=!0,s=!1,a=void 0;try{for(var o=n(e)[Symbol.iterator](),u;!(i=(u=o.next()).done);i=!0){var c=u.value;r[c]=e[c]}}catch(l){s=!0,a=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(s)throw a}}return r}return e}var t9={includeSymbols:!1,immutable:!1};function Y$(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t9,n=[],i=[],s=!0,a=r.includeSymbols?B2:Object.keys,o=!!r.immutable;return function u(c){var l=o?e9(c,r):c,f={},h=!0,d={node:l,node_:c,path:[].concat(n),parent:i[i.length-1],parents:i,key:n[n.length-1],isRoot:n.length===0,level:n.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.isRoot||(d.parent.node[d.key]=D),d.node=D,P&&(h=!1)},delete:function(D){delete d.parent.node[d.key],D&&(h=!1)},remove:function(D){Q8(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],D&&(h=!1)},keys:null,before:function(D){f.before=D},after:function(D){f.after=D},pre:function(D){f.pre=D},post:function(D){f.post=D},stop:function(){s=!1},block:function(){h=!1}};if(!s)return d;function g(){if(Wo(d.node)==="object"&&d.node!==null){(!d.keys||d.node_!==d.node)&&(d.keys=a(d.node)),d.isLeaf=d.keys.length===0;for(var k=0;k<i.length;k++)if(i[k].node_===c){d.circular=i[k];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var y=t.call(d,d.node);if(y!==void 0&&d.update&&d.update(y),f.before&&f.before.call(d,d.node),!h)return d;if(Wo(d.node)==="object"&&d.node!==null&&!d.circular){i.push(d),g();var v,E=!0,b=!1,S=void 0;try{for(var x=Object.entries((v=d.keys)!==null&&v!==void 0?v:[])[Symbol.iterator](),_;!(E=(_=x.next()).done);E=!0){var A=zie(_.value,2),C=A[0],R=A[1],O;n.push(R),f.pre&&f.pre.call(d,d.node[R],R);var M=u(d.node[R]);o&&bp.call(d.node,R)&&!tse(d.node,R)&&(d.node[R]=M.node),M.isLast=!((O=d.keys)===null||O===void 0)&&O.length?+C===d.keys.length-1:!1,M.isFirst=+C==0,f.post&&f.post.call(d,M),n.pop()}}catch(k){b=!0,S=k}finally{try{!E&&x.return!=null&&x.return()}finally{if(b)throw S}}i.pop()}return f.after&&f.after.call(d,d.node),d}(e).node}var On,ra,ds=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t9;Fie(this,e),G$(this,On),G$(this,ra),c1(this,On,t),c1(this,ra,r)}return Bie(e,[{key:"get",value:function(r){for(var n=fn(this,On),i=0;n&&i<r.length;i++){var s=r[i];if(!bp.call(n,s)||!fn(this,ra).includeSymbols&&(typeof s>"u"?"undefined":Wo(s))==="symbol")return;n=n[s]}return n}},{key:"has",value:function(r){for(var n=fn(this,On),i=0;n&&i<r.length;i++){var s=r[i];if(!bp.call(n,s)||!fn(this,ra).includeSymbols&&(typeof s>"u"?"undefined":Wo(s))==="symbol")return!1;n=n[s]}return!0}},{key:"set",value:function(r,n){var i=fn(this,On),s=0;for(s=0;s<r.length-1;s++){var a=r[s];bp.call(i,a)||(i[a]={}),i=i[a]}return i[r[s]]=n,n}},{key:"map",value:function(r){return Y$(fn(this,On),r,{immutable:!0,includeSymbols:!!fn(this,ra).includeSymbols})}},{key:"forEach",value:function(r){return c1(this,On,Y$(fn(this,On),r,fn(this,ra))),fn(this,On)}},{key:"reduce",value:function(r,n){var i=arguments.length===1,s=i?fn(this,On):n;return this.forEach(function(a){(!this.isRoot||!i)&&(s=r.call(this,s,a))}),s}},{key:"paths",value:function(){var r=[];return this.forEach(function(){r.push(this.path)}),r}},{key:"nodes",value:function(){var r=[];return this.forEach(function(){r.push(this.node)}),r}},{key:"clone",value:function(){var r=[],n=[],i=fn(this,ra);return Z8(fn(this,On))?fn(this,On).slice():function s(a){for(var o=0;o<r.length;o++)if(r[o]===a)return n[o];if((typeof a>"u"?"undefined":Wo(a))==="object"&&a!==null){var u=e9(a,i);r.push(a),n.push(u);var c=i.includeSymbols?B2:Object.keys,l=!0,f=!1,h=void 0;try{for(var d=c(a)[Symbol.iterator](),g;!(l=(g=d.next()).done);l=!0){var y=g.value;u[y]=s(a[y])}}catch(v){f=!0,h=v}finally{try{!l&&d.return!=null&&d.return()}finally{if(f)throw h}}return r.pop(),n.pop(),u}return a}(fn(this,On))}}]),e}();On=new WeakMap;ra=new WeakMap;var hs=function(e,t){return new ds(e,t)};hs.get=function(e,t,r){return new ds(e,r).get(t)};hs.set=function(e,t,r,n){return new ds(e,n).set(t,r)};hs.has=function(e,t,r){return new ds(e,r).has(t)};hs.map=function(e,t,r){return new ds(e,r).map(t)};hs.forEach=function(e,t,r){return new ds(e,r).forEach(t)};hs.reduce=function(e,t,r,n){return new ds(e,n).reduce(t,r)};hs.paths=function(e,t){return new ds(e,t).paths()};hs.nodes=function(e,t){return new ds(e,t).nodes()};hs.clone=function(e,t){return new ds(e,t).clone()};var rse=hs;const r9="application/json, application/yaml",Zp="https://swagger.io",nse=Object.freeze({url:"/"}),n9=3e3,ise=["properties"],sse=["properties"],ase=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],ose=["schema/example","items/example"];function i9(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return ise.indexOf(t)>-1&&sse.indexOf(r)===-1||ase.indexOf(n)>-1||ose.some(i=>n.indexOf(i)>-1)}function use(e,t,{specmap:r,getBaseUrlForNodePath:n=s=>r.getContext([...t,...s]).baseDoc,targetKeys:i=["$ref","$$ref"]}={}){const s=[];return rse(e).forEach(function(){if(i.includes(this.key)&&typeof this.node=="string"){const o=this.path,u=t.concat(this.path),c=Kw(this.node,n(o));s.push(r.replace(u,c))}}),s}function Kw(e,t){const[r,n]=e.split("#"),i=t??"",s=r??"";let a;if(T2(i))a=Kr(i,s);else{const o=Kr(Zp,i),c=Kr(o,s).replace(Zp,"");a=s.startsWith("/")?c:c.substring(1)}return n?`${a}#${n}`:a}const cse=/^([a-z]+:\/\/|\/\/)/i;class uu extends Pi{}const xs={},X$=new WeakMap,lse=[e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"],fse=e=>lse.some(t=>t(e)),pse={key:"$ref",plugin:(e,t,r,n)=>{const i=n.getInstance(),s=r.slice(0,-1);if(i9(s)||fse(s))return;const{baseDoc:a}=n.getContext(r);if(typeof e!="string")return new uu("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:r});const o=a9(e),u=o[0],c=o[1]||"";let l;try{l=a||u?s9(u,a):null}catch(y){return Hw(y,{pointer:c,$ref:e,basePath:l,fullPath:r})}let f,h;if(yse(c,l,s,n)&&!i.useCircularStructures){const y=Kw(e,l);return e===y?null:qt.replace(r,y)}if(l==null?(h=V2(c),f=n.get(h),typeof f>"u"&&(f=new uu(`Could not resolve reference: ${e}`,{pointer:c,$ref:e,baseDoc:a,fullPath:r}))):(f=o9(l,c),f.__value!=null?f=f.__value:f=f.catch(y=>{throw Hw(y,{pointer:c,$ref:e,baseDoc:a,fullPath:r})})),f instanceof Error)return[qt.remove(r),f];const d=Kw(e,l),g=qt.replace(s,f,{$$ref:d});if(l&&l!==a)return[g,qt.context(s,{baseDoc:l})];try{if(!vse(n.state,g)||i.useCircularStructures)return g}catch{return null}}},U2=Object.assign(pse,{docCache:xs,absoluteify:s9,clearCache:dse,JSONRefError:uu,wrapError:Hw,getDoc:u9,split:a9,extractFromDoc:o9,fetchJSON:hse,extract:Gw,jsonPointerToArray:V2,unescapeJsonPointerToken:c9});function s9(e,t){if(!cse.test(e)){if(!t)throw new uu(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Kr(t,e)}return e}function Hw(e,t){let r;return e&&e.response&&e.response.body?r=`${e.response.body.code} ${e.response.body.message}`:r=e.message,new uu(`Could not resolve reference: ${r}`,{...t,cause:e})}function a9(e){return(e+"").split("#")}function o9(e,t){const r=xs[e];if(r&&!qt.isPromise(r))try{const n=Gw(t,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return u9(e).then(n=>Gw(t,n))}function dse(e){typeof e<"u"?delete xs[e]:Object.keys(xs).forEach(t=>{delete xs[t]})}function u9(e){const t=xs[e];return t?qt.isPromise(t)?t:Promise.resolve(t):(xs[e]=U2.fetchJSON(e).then(r=>(xs[e]=r,r)),xs[e])}function hse(e){return fetch(e,{headers:{Accept:r9},loadSpec:!0}).then(t=>t.text()).then(t=>Ja.load(t))}function Gw(e,t){const r=V2(e);if(r.length<1)return t;const n=qt.getIn(t,r);if(typeof n>"u")throw new uu(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function V2(e){if(typeof e!="string")throw new TypeError(`Expected a string, got a ${typeof e}`);return e[0]==="/"&&(e=e.substr(1)),e===""?[]:e.split("/").map(c9)}function c9(e){return typeof e!="string"?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function l9(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function mse(e){return e.length===0?"":`/${e.map(l9).join("/")}`}const gse=e=>!e||e==="/"||e==="#";function l1(e,t){if(gse(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return e.indexOf(t)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function yse(e,t,r,n){let i=X$.get(n);i||(i={},X$.set(n,i));const s=mse(r),a=`${t||"<specmap-base>"}#${e}`,o=s.replace(/allOf\/\d+\/?/g,""),u=n.contextTree.get([]).baseDoc;if(t===u&&l1(o,e))return!0;let c="";if(r.some(f=>(c=`${c}/${l9(f)}`,i[c]&&i[c].some(h=>l1(h,a)||l1(a,h)))))return!0;i[o]=(i[o]||[]).concat(a)}function vse(e,t){const r=[e];return t.path.reduce((i,s)=>(r.push(i[s]),i[s]),e),n(t.value);function n(i){return qt.isObject(i)&&(r.indexOf(i)>=0||Object.keys(i).some(s=>n(i[s])))}}const bse={key:"allOf",plugin:(e,t,r,n,i)=>{if(i.meta&&i.meta.$$ref)return;const s=r.slice(0,-1);if(i9(s))return;if(!Array.isArray(e)){const c=new TypeError("allOf must be an array");return c.fullPath=r,c}let a=!1,o=i.value;if(s.forEach(c=>{o&&(o=o[c])}),o={...o},Object.keys(o).length===0)return;delete o.allOf;const u=[];return u.push(n.replace(s,{})),e.forEach((c,l)=>{if(!n.isObject(c)){if(a)return null;a=!0;const d=new TypeError("Elements in allOf must be objects");return d.fullPath=r,u.push(d)}u.push(n.mergeDeep(s,c));const f=r.slice(0,-1),h=use(c,f,{getBaseUrlForNodePath:d=>n.getContext([...r,l,...d]).baseDoc,specmap:n});u.push(...h)}),o.example&&u.push(n.remove([].concat(s,"example"))),u.push(n.mergeDeep(s,o)),o.$$ref||u.push(n.remove([].concat(s,"$$ref"))),u}},_se={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const i=Object.assign([],e),s=r.slice(0,-1),a={...qt.getIn(n.spec,s)};for(let o=0;o<e.length;o+=1){const u=e[o];try{i[o].default=n.parameterMacro(a,u)}catch(c){const l=new Error(c);return l.fullPath=r,l}}return qt.replace(r,i)}return qt.replace(r,e)}},Ese={key:"properties",plugin:(e,t,r,n)=>{const i={...e};for(const a in e)try{i[a].default=n.modelPropertyMacro(i[a])}catch(o){const u=new Error(o);return u.fullPath=r,u}return qt.replace(r,i)}};class Sse{constructor(t){this.root=f1(t||{})}set(t,r){const n=this.getParent(t,!0);if(!n){Qp(this.root,r,null);return}const i=t[t.length-1],{children:s}=n;if(s[i]){Qp(s[i],r,n);return}s[i]=f1(r,n)}get(t){if(t=t||[],t.length<1)return this.root.value;let r=this.root,n,i;for(let s=0;s<t.length&&(i=t[s],n=r.children,!!n[i]);s+=1)r=n[i];return r&&r.protoValue}getParent(t,r){return!t||t.length<1?null:t.length<2?this.root:t.slice(0,-1).reduce((n,i)=>{if(!n)return n;const{children:s}=n;return!s[i]&&r&&(s[i]=f1(null,n)),s[i]},this.root)}}function f1(e,t){return Qp({children:{}},e,t)}function Qp(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach(n=>{const i=e.children[n];e.children[n]=Qp(i,i.value,e)}),e}const Z$=100,Q$=()=>{};class wse{static getPluginName(t){return t.pluginName}static getPatchesOfType(t,r){return t.filter(r)}constructor(t){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Sse,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),qt,{getInstance:()=>this}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(qt.isFunction),this.patches.push(qt.add([],this.spec)),this.patches.push(qt.context([],this.context)),this.updatePatches(this.patches)}debug(t,...r){this.debugLevel===t&&console.log(...r)}verbose(t,...r){this.debugLevel==="verbose"&&console.log(`[${t}] `,...r)}wrapPlugin(t,r){const{pathDiscriminator:n}=this;let i=null,s;return t[this.pluginProp]?(i=t,s=t[this.pluginProp]):qt.isFunction(t)?s=t:qt.isObject(t)&&(s=a(t)),Object.assign(s.bind(i),{pluginName:t.name||r,isGenerator:qt.isGenerator(s)});function a(o){const u=(c,l)=>Array.isArray(c)?c.every((f,h)=>f===l[h]):!0;return function*(l,f){const h={};for(const[g,y]of l.filter(qt.isAdditiveMutation).entries())if(g<n9)yield*d(y.value,y.path,y);else return;function*d(g,y,v){if(!qt.isObject(g))o.key===y[y.length-1]&&(yield o.plugin(g,o.key,y,f));else{const E=y.length-1,b=y[E],S=y.indexOf("properties"),x=b==="properties"&&E===S,_=f.allowMetaPatches&&h[g.$$ref];for(const A of Object.keys(g)){const C=g[A],R=y.concat(A),O=qt.isObject(C),M=g.$$ref;if(_||O&&(f.allowMetaPatches&&M&&u(n,R)&&(h[M]=!0),yield*d(C,R,v)),!x&&A===o.key){const k=u(n,y);(!n||k)&&(yield o.plugin(C,A,R,f,v))}}}}}}}nextPlugin(){return this.wrappedPlugins.find(t=>this.getMutationsForPlugin(t).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(t=>t.value))}getPluginHistory(t){const r=this.constructor.getPluginName(t);return this.pluginHistory[r]||[]}getPluginRunCount(t){return this.getPluginHistory(t).length}getPluginHistoryTip(t){const r=this.getPluginHistory(t);return r&&r[r.length-1]||{}}getPluginMutationIndex(t){const r=this.getPluginHistoryTip(t).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(t,r){const n=this.constructor.getPluginName(t);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(t){qt.normalizeArray(t).forEach(r=>{if(r instanceof Error){this.errors.push(r);return}try{if(!qt.isObject(r)){this.debug("updatePatches","Got a non-object patch",r);return}if(this.showDebug&&this.allPatches.push(r),qt.isPromise(r.value)){this.promisedPatches.push(r),this.promisedPatchThen(r);return}if(qt.isContextPatch(r)){this.setContext(r.path,r.value);return}qt.isMutation(r)&&this.updateMutations(r)}catch(n){console.error(n),this.errors.push(n)}})}updateMutations(t){typeof t.value=="object"&&!Array.isArray(t.value)&&this.allowMetaPatches&&(t.value={...t.value});const r=qt.applyPatch(this.state,t,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(t),this.state=r)}removePromisedPatch(t){const r=this.promisedPatches.indexOf(t);if(r<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}this.promisedPatches.splice(r,1)}promisedPatchThen(t){return t.value=t.value.then(r=>{const n={...t,value:r};this.removePromisedPatch(t),this.updatePatches(n)}).catch(r=>{this.removePromisedPatch(t),this.updatePatches(r)}),t.value}getMutations(t,r){return t=t||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(t,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(t){const r=this.getPluginMutationIndex(t);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(t){return qt.getIn(this.state,t)}_getContext(t){return this.contextTree.get(t)}setContext(t,r){return this.contextTree.set(t,r)}_hasRun(t){return this.getPluginRunCount(this.getCurrentPlugin())>(t||0)}dispatch(){const t=this,r=this.nextPlugin();if(!r){const s=this.nextPromisedPatch();if(s)return s.then(()=>this.dispatch()).catch(()=>this.dispatch());const a={spec:this.state,errors:this.errors};return this.showDebug&&(a.patches=this.allPatches),Promise.resolve(a)}if(t.pluginCount=t.pluginCount||new WeakMap,t.pluginCount.set(r,(t.pluginCount.get(r)||0)+1),t.pluginCount[r]>Z$)return Promise.resolve({spec:t.state,errors:t.errors.concat(new Error(`We've reached a hard limit of ${Z$} plugin runs`))});if(r!==this.currentPlugin&&this.promisedPatches.length){const s=this.promisedPatches.map(a=>a.value);return Promise.all(s.map(a=>a.then(Q$,Q$))).then(()=>this.dispatch())}return n();function n(){t.currentPlugin=r;const s=t.getCurrentMutations(),a=t.mutations.length-1;try{if(r.isGenerator)for(const o of r(s,t.getLib()))i(o);else{const o=r(s,t.getLib());i(o)}}catch(o){console.error(o),i([Object.assign(Object.create(o),{plugin:r})])}finally{t.updatePluginHistory(r,{mutationIndex:a})}return t.dispatch()}function i(s){s&&(s=qt.fullyNormalizeArray(s),t.updatePatches(s,r))}}}function xse(e){return new wse(e).dispatch()}const jo={refs:U2,allOf:bse,parameters:_se,properties:Ese};function f9(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,i=e.withCredentials?"include":"same-origin";return s=>e({url:s,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:r9},credentials:i}).then(a=>a.body)}function z2(e,t){return!t&&typeof navigator<"u"&&(t=navigator),t&&t.product==="ReactNative"?!!(e&&typeof e=="object"&&typeof e.uri=="string"):typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob||ArrayBuffer.isView(e)?!0:e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function p9(e,t){return Array.isArray(e)&&e.some(r=>z2(r,t))}class Yw extends File{constructor(t,r="",n={}){super([t],r,n),this.data=t}valueOf(){return this.data}toString(){return this.valueOf()}}const Ase=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Ose=e=>/^[a-z0-9\-._~]+$/i.test(e);function d9(e,t="reserved"){return[...e].map(r=>{if(Ose(r)||Ase(r)&&t==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map(s=>`0${s.toString(16).toUpperCase()}`.slice(-2)).map(s=>`%${s}`).join("")}).join("")}function W2(e){const{value:t}=e;return Array.isArray(t)?Cse(e):typeof t=="object"?Rse(e):Tse(e)}function Hr(e,t=!1){return Array.isArray(e)||e!==null&&typeof e=="object"?e=JSON.stringify(e):(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),t&&typeof e=="string"&&e.length>0?d9(e,t):e??""}function Cse({key:e,value:t,style:r,explode:n,escape:i}){if(r==="simple")return t.map(s=>Hr(s,i)).join(",");if(r==="label")return`.${t.map(s=>Hr(s,i)).join(".")}`;if(r==="matrix")return t.map(s=>Hr(s,i)).reduce((s,a)=>!s||n?`${s||""};${e}=${a}`:`${s},${a}`,"");if(r==="form"){const s=n?`&${e}=`:",";return t.map(a=>Hr(a,i)).join(s)}if(r==="spaceDelimited"){const s=n?`${e}=`:"";return t.map(a=>Hr(a,i)).join(` ${s}`)}if(r==="pipeDelimited"){const s=n?`${e}=`:"";return t.map(a=>Hr(a,i)).join(`|${s}`)}}function Rse({key:e,value:t,style:r,explode:n,escape:i}){const s=Object.keys(t);if(r==="simple")return s.reduce((a,o)=>{const u=Hr(t[o],i),c=n?"=":",";return`${a?`${a},`:""}${o}${c}${u}`},"");if(r==="label")return s.reduce((a,o)=>{const u=Hr(t[o],i),c=n?"=":".";return`${a?`${a}.`:"."}${o}${c}${u}`},"");if(r==="matrix"&&n)return s.reduce((a,o)=>{const u=Hr(t[o],i);return`${a?`${a};`:";"}${o}=${u}`},"");if(r==="matrix")return s.reduce((a,o)=>{const u=Hr(t[o],i);return`${a?`${a},`:`;${e}=`}${o},${u}`},"");if(r==="form")return s.reduce((a,o)=>{const u=Hr(t[o],i);return`${a?`${a}${n?"&":","}`:""}${o}${n?"=":","}${u}`},"")}function Tse({key:e,value:t,style:r,escape:n}){if(r==="simple")return Hr(t,n);if(r==="label")return`.${Hr(t,n)}`;if(r==="matrix")return`;${e}=${Hr(t,n)}`;if(r==="form"||r==="deepObject")return Hr(t,n)}const Ise={form:",",spaceDelimited:"%20",pipeDelimited:"|"},jse={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function h9(e,t,r=!1){const{collectionFormat:n,allowEmptyValue:i,serializationOption:s,encoding:a}=t,o=typeof t=="object"&&!Array.isArray(t)?t.value:t,u=r?l=>l.toString():l=>encodeURIComponent(l),c=u(e);if(typeof o>"u"&&i)return[[c,""]];if(z2(o)||p9(o))return[[c,o]];if(s)return eF(e,o,r,s);if(a){if([typeof a.style,typeof a.explode,typeof a.allowReserved].some(l=>l!=="undefined")){const{style:l,explode:f,allowReserved:h}=a;return eF(e,o,r,{style:l,explode:f,allowReserved:h})}if(typeof a.contentType=="string"){if(a.contentType.startsWith("application/json")){const h=typeof o=="string"?o:JSON.stringify(o),d=u(h),g=new Yw(d,"blob",{type:a.contentType});return[[c,g]]}const l=u(String(o)),f=new Yw(l,"blob",{type:a.contentType});return[[c,f]]}return typeof o!="object"?[[c,u(o)]]:Array.isArray(o)&&o.every(l=>typeof l!="object")?[[c,o.map(u).join(",")]]:[[c,u(JSON.stringify(o))]]}return typeof o!="object"?[[c,u(o)]]:Array.isArray(o)?n==="multi"?[[c,o.map(u)]]:[[c,o.map(u).join(jse[n||"csv"])]]:[[c,""]]}function eF(e,t,r,n){const i=n.style||"form",s=typeof n.explode>"u"?i==="form":n.explode,a=r?!1:n&&n.allowReserved?"unsafe":"reserved",o=c=>Hr(c,a),u=r?c=>c:c=>o(c);return typeof t!="object"?[[u(e),o(t)]]:Array.isArray(t)?s?[[u(e),t.map(o)]]:[[u(e),t.map(o).join(Ise[i])]]:i==="deepObject"?Object.keys(t).map(c=>[u(`${e}[${c}]`),o(t[c])]):s?Object.keys(t).map(c=>[u(c),o(t[c])]):[[u(e),Object.keys(t).map(c=>[`${u(c)},${o(t[c])}`]).join(",")]]}function kse(e){return Object.entries(e).reduce((t,[r,n])=>{for(const[i,s]of h9(r,n,!0))if(Array.isArray(s))for(const a of s)if(ArrayBuffer.isView(a)){const o=new Blob([a]);t.append(i,o)}else t.append(i,a);else if(ArrayBuffer.isView(s)){const a=new Blob([s]);t.append(i,a)}else t.append(i,s);return t},new FormData)}const Pse=(e,{encode:t=!0}={})=>{const r=(s,a,o)=>(Array.isArray(o)?o.reduce((u,c)=>r(s,a,c),s):o instanceof Date?s.append(a,o.toISOString()):typeof o=="object"?Object.entries(o).reduce((u,[c,l])=>r(s,`${a}[${c}]`,l),s):s.append(a,o),s),n=Object.entries(e).reduce((s,[a,o])=>r(s,a,o),new URLSearchParams),i=String(n);return t?i:decodeURIComponent(i)};function tF(e){const t=Object.keys(e).reduce((r,n)=>{for(const[i,s]of h9(n,e[n]))s instanceof Yw?r[i]=s.valueOf():r[i]=s;return r},{});return Pse(t,{encode:!1})}function J2(e={}){const{url:t="",query:r,form:n}=e,i=(...s)=>{const a=s.filter(o=>o).join("&");return a?`?${a}`:""};if(n){const s=Object.keys(n).some(o=>{const{value:u}=n[o];return z2(u)||p9(u)}),a=e.headers["content-type"]||e.headers["Content-Type"];if(s||/multipart\/form-data/i.test(a)){const o=kse(e.form);e.formdata=o,e.body=o}else e.body=tF(n);delete e.form}if(r){const[s,a]=t.split("?");let o="";if(a){const c=new URLSearchParams(a);Object.keys(r).forEach(f=>c.delete(f)),o=String(c)}const u=i(o,tF(r));e.url=s+u,delete e.query}return e}const Nse=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Mse(e,t){return t&&(t.indexOf("application/json")===0||t.indexOf("+json")>0)?JSON.parse(e):Ja.load(e)}function Dse(e){return e.includes(", ")?e.split(", "):e}function qse(e={}){return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((t,[r,n])=>(t[r]=Dse(n),t),{})}function m9(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:qse(e.headers)},i=n.headers["content-type"],s=r||Nse(i);return(s?e.text:e.blob||e.buffer).call(e).then(o=>{if(n.text=o,n.data=o,s)try{const u=Mse(o,i);n.body=u,n.obj=u}catch(u){n.parseError=u}return n})}async function qc(e,t={}){typeof e=="object"&&(t=e,e=t.url),t.headers=t.headers||{},t=J2(t),t.headers&&Object.keys(t.headers).forEach(i=>{const s=t.headers[i];typeof s=="string"&&(t.headers[i]=s.replace(/\n+/g," "))}),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);let n;try{n=await(t.userFetch||fetch)(t.url,t),n=await m9(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(i){if(!n)throw i;const s=new Error(n.statusText||`response status is ${n.status}`);throw s.status=n.status,s.statusCode=n.status,s.responseError=i,s}if(!n.ok){const i=new Error(n.statusText||`response status is ${n.status}`);throw i.status=n.status,i.statusCode=n.status,i.response=n,i}return n}function $se(e,t,r){return r=r||(n=>n),t=t||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=J2(n),n=t(n),r(e(n)))}const K2=e=>{var t,r;const{baseDoc:n,url:i}=e,s=(t=n??i)!==null&&t!==void 0?t:"";return typeof((r=globalThis.document)===null||r===void 0?void 0:r.baseURI)=="string"?String(new URL(s,globalThis.document.baseURI)):s},g9=e=>{const{fetch:t,http:r}=e;return t||r||qc};async function H2(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:i,modelPropertyMacro:s,parameterMacro:a,requestInterceptor:o,responseInterceptor:u,skipNormalization:c=!1,useCircularStructures:l,strategies:f}=e,h=K2(e),d=g9(e),g=f.find(v=>v.match(t));return y(t);async function y(v){h&&(jo.refs.docCache[h]=v),jo.refs.fetchJSON=f9(d,{requestInterceptor:o,responseInterceptor:u});const E=[jo.refs];typeof a=="function"&&E.push(jo.parameters),typeof s=="function"&&E.push(jo.properties),r!=="strict"&&E.push(jo.allOf);const b=await xse({spec:v,context:{baseDoc:h},plugins:E,allowMetaPatches:n,pathDiscriminator:i,parameterMacro:a,modelPropertyMacro:s,useCircularStructures:l});return c||(b.spec=g.normalize(b.spec)),b}}const y9=e=>e.replace(/\W/gi,"_");function Fse(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${y9(e)}`}function $h(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?y9(e.operationId):Fse(t,r,{v2OperationIdCompatibilityMode:n})}function G2(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;for(const i in r){const s=r[i];if(s==null||!["object","function"].includes(typeof s))continue;const a=s.parameters;for(const o in s){const u=s[o];if(u==null||!["object","function"].includes(typeof u))continue;const c=$h(u,i,o);if(c){n[c]?n[c].push(u):n[c]=[u];const l=n[c];if(l.length>1)l.forEach((f,h)=>{f.__originalOperationId=f.__originalOperationId||f.operationId,f.operationId=`${c}${h+1}`});else if(typeof u.operationId<"u"){const f=l[0];f.__originalOperationId=f.__originalOperationId||u.operationId,f.operationId=c}}if(o!=="parameters"){const l=[],f={};for(const h in t)(h==="produces"||h==="consumes"||h==="security")&&(f[h]=t[h],l.push(f));if(a&&(f.parameters=a,l.push(f)),l.length){for(const h of l)for(const d in h)if(!u[d])u[d]=h[d];else if(d==="parameters")for(const g of h[d])u[d].some(v=>v.name&&v.name===g.name||v.$ref&&v.$ref===g.$ref||v.$$ref&&v.$$ref===g.$$ref||v===g)||u[d].push(g)}}}}return t.$$normalized=!0,e}const v9={name:"generic",match(){return!0},normalize(e){const{spec:t}=G2({spec:e});return t},async resolve(e){return H2(e)}};async function Lse(e){return H2(e)}const Bse=e=>{try{const{swagger:t}=e;return t==="2.0"}catch{return!1}},b9=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Y2=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},_9=e=>b9(e)||Y2(e),E9={name:"openapi-2",match(e){return Bse(e)},normalize(e){const{spec:t}=G2({spec:e});return t},async resolve(e){return Lse(e)}};async function Use(e){return H2(e)}const S9={name:"openapi-3-0",match(e){return b9(e)},normalize(e){const{spec:t}=G2({spec:e});return t},async resolve(e){return Use(e)}};class X2 extends Pi{}class Xw extends X2{constructor(r,n){super(r,n);z(this,"pointer");typeof n<"u"&&(this.pointer=n.pointer)}}class Vse extends X2{constructor(r,n){super(r,n);z(this,"tokens");typeof n<"u"&&(this.tokens=[...n.tokens])}}class oc extends X2{constructor(r,n){super(r,n);z(this,"pointer");z(this,"tokens");z(this,"failedToken");z(this,"failedTokenPosition");z(this,"element");typeof n<"u"&&(this.pointer=n.pointer,Array.isArray(n.tokens)&&(this.tokens=[...n.tokens]),this.failedToken=n.failedToken,this.failedTokenPosition=n.failedTokenPosition,this.element=n.element)}}const zse=wr(au(/~/g,"~0"),au(/\//g,"~1"),encodeURIComponent),Wse=e=>{try{return decodeURIComponent(e)}catch{return e}},Jse=wr(au(/~1/g,"/"),au(/~0/g,"~"),Wse),Kse=e=>{if(d8(e))return[];if(!u8("/",e))throw new Xw(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=wr(A2("/"),Cl(Jse))(e);return t8(t)}catch(t){throw new Xw(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}},Hse=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},ci=e=>{const t=Hse(e);return O2("#",t)},w9=e=>{try{return e.length===0?"":`/${e.map(zse).join("/")}`}catch(t){throw new Vse("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}},Ii=(e,t)=>{let r;try{r=Kse(e)}catch(n){throw new oc(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Le(t),cause:n})}return r.reduce((n,i,s)=>{if(Ft(n)){if(!n.hasKey(i))throw new oc(`JSON Pointer evaluation failed while evaluating token "${i}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:s,element:Le(n)});return n.get(i)}if(vn(n)){if(!(i in n.content)||!Zre(Number(i)))throw new oc(`JSON Pointer evaluation failed while evaluating token "${i}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:s,element:Le(n)});return n.get(Number(i))}throw new oc(`JSON Pointer evaluation failed while evaluating token "${i}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:s,element:Le(n)})},t)};class Z2 extends sie{filterByFormat(t="generic"){const r=t==="generic"?"openapi;version":t;return this.filter(n=>n.includes(r))}findBy(t="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${r};version=${t}`;return this.find(s=>s.includes(n))||this.unknownMediaType}latest(t="generic"){return Ah(this.filterByFormat(t))}}const cu=new Z2("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");let Dl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="callback"}},ql=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(t){this.set("schemas",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get requestBodies(){return this.get("requestBodies")}set requestBodies(t){this.set("requestBodies",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(t){this.set("securitySchemes",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}},$l=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="contact"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}get email(){return this.get("email")}set email(t){this.set("email",t)}},Fh=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(t){this.set("propertyName",t)}get mapping(){return this.get("mapping")}set mapping(t){this.set("mapping",t)}},Lh=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(t){this.set("contentType",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(t){this.set("allowedReserved",t)}},Fl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get value(){return this.get("value")}set value(t){this.set("value",t)}get externalValue(){return this.get("externalValue")}set externalValue(t){this.set("externalValue",t)}},Ll=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(t){this.set("description",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}},Tu=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ce.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}};Object.defineProperty(Tu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Bl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get termsOfService(){return this.get("termsOfService")}set termsOfService(t){this.set("termsOfService",t)}get contact(){return this.get("contact")}set contact(t){this.set("contact",t)}get license(){return this.get("license")}set license(t){this.set("license",t)}get version(){return this.get("version")}set version(t){this.set("version",t)}},Ul=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="license"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}},Vl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(t){this.set("operationRef",t)}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get operation(){if(it(this.operationRef)){var t;return(t=this.operationRef)===null||t===void 0?void 0:t.meta.get("operation")}if(it(this.operationId)){var r;return(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation")}}set operation(t){this.set("operation",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get server(){return this.get("server")}set server(t){this.set("server",t)}},zl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get encoding(){return this.get("encoding")}set encoding(t){this.set("encoding",t)}},Bh=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(t){this.set("authorizationUrl",t)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(t){this.set("tokenUrl",t)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(t){this.set("refreshUrl",t)}get scopes(){return this.get("scopes")}set scopes(t){this.set("scopes",t)}},Uh=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(t){this.set("implicit",t)}get password(){return this.get("password")}set password(t){this.set("password",t)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(t){this.set("clientCredentials",t)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(t){this.set("authorizationCode",t)}},Wl=class extends ce.StringElement{constructor(t,r,n){super(t,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class Vh extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}let Jl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}set externalDocs(t){this.set("externalDocs",t)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get servers(){return this.get("severs")}set servers(t){this.set("servers",t)}},Iu=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="parameter"}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get required(){return this.hasKey("required")?this.get("required"):new ce.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}};Object.defineProperty(Iu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Kl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}},Hl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="paths"}},Gl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}},Yl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(t){this.set("description",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get required(){return this.hasKey("required")?this.get("required"):new ce.BooleanElement(!1)}set required(t){this.set("required",t)}},Xl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="response"}get description(){return this.get("description")}set description(t){this.set("description",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}},Zl=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="responses"}get default(){return this.get("default")}set default(t){this.set("default",t)}},ju=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(t){this.set("id",t)}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get dependencies(){return this.get("dependencies")}set dependencies(t){this.set("dependencies",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){return this.get("definitions")}set definitions(t){this.set("definitions",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get base(){return this.get("base")}set base(t){this.set("base",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get media(){return this.get("media")}set media(t){this.set("media",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}};class ku extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}class Ql extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(t){this.set("binaryEncoding",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}}let ef=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(t){this.set("href",t)}get rel(){return this.get("rel")}set rel(t){this.set("rel",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){return this.get("mediaType")}set mediaType(t){this.set("mediaType",t)}get method(){return this.get("method")}set method(t){this.set("method",t)}get encType(){return this.get("encType")}set encType(t){this.set("encType",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}};const Gse={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ju),t.register("jSONReference",ku),t.register("media",Ql),t.register("linkDescription",ef),t}},tf=e=>{if(Sr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Yse={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fs};let x9=class{constructor(t){z(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=ss(r.meta,t.meta),Pl(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=ss(r.attributes,t.attributes))}},Rt=class extends x9{enter(t){return this.element=Le(t),wt}};const A9=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let i of r)delete n[i];Object.defineProperties(e,n)},$c=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return r===null?t:$c(r,[...t,r])},Xse=(...e)=>{if(e.length===0)return;let t;const r=e.map(n=>$c(n));for(;r.every(n=>n.length>0);){const n=r.map(s=>s.pop()),i=n[0];if(n.every(s=>s===i))t=i;else break}return t},rF=(e,t,r=[])=>{var n;const i=(n=Xse(...e))!==null&&n!==void 0?n:Object.prototype,s=Object.create(i),a=$c(i);for(let o of e){let u=$c(o);for(let c=u.length-1;c>=0;c--){let l=u[c];a.indexOf(l)===-1&&(A9(s,l,["constructor",...r]),a.push(l))}}return s.constructor=t,s},Zw=e=>e.filter((t,r)=>e.indexOf(t)==r),O9=new WeakMap,Zse=e=>O9.get(e),Qse=(e,t)=>O9.set(e,t),nF=(e,t)=>{var r,n;const i=Zw([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of i)s[a]=Zw([...(r=e==null?void 0:e[a])!==null&&r!==void 0?r:[],...(n=t==null?void 0:t[a])!==null&&n!==void 0?n:[]]);return s},iF=(e,t)=>{var r,n,i,s;return{property:nF((r=e==null?void 0:e.property)!==null&&r!==void 0?r:{},(n=t==null?void 0:t.property)!==null&&n!==void 0?n:{}),method:nF((i=e==null?void 0:e.method)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.method)!==null&&s!==void 0?s:{})}},eae=(e,t)=>{var r,n,i,s,a,o;return{class:Zw([...(r=e==null?void 0:e.class)!==null&&r!==void 0?r:[],...(n=t==null?void 0:t.class)!==null&&n!==void 0?n:[]]),static:iF((i=e==null?void 0:e.static)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.static)!==null&&s!==void 0?s:{}),instance:iF((a=e==null?void 0:e.instance)!==null&&a!==void 0?a:{},(o=t==null?void 0:t.instance)!==null&&o!==void 0?o:{})}},tae=new Map,rae=(...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let i of n){const s=$c(i.prototype).map(c=>c.constructor),a=(t=Zse(i))!==null&&t!==void 0?t:[],u=[...s,...a].filter(c=>!r.has(c));for(let c of u)n.add(c);r.add(i),n.delete(i)}return[...r]},nae=(...e)=>{const t=rae(...e).map(r=>tae.get(r)).filter(r=>!!r);return t.length==0?{}:t.length==1?t[0]:t.reduce((r,n)=>eae(r,n))};function ke(...e){var t,r,n;const i=e.map(o=>o.prototype);function s(...o){for(const u of e)A9(this,new u(...o))}s.prototype=rF(i,s),Object.setPrototypeOf(s,rF(e,null,["prototype"]));let a=s;{const o=nae(...e);for(let u of(t=o==null?void 0:o.class)!==null&&t!==void 0?t:[]){const c=u(a);c&&(a=c)}sF((r=o==null?void 0:o.static)!==null&&r!==void 0?r:{},a),sF((n=o==null?void 0:o.instance)!==null&&n!==void 0?n:{},a.prototype)}return Qse(a,e),a}const sF=(e,t)=>{const r=e.property,n=e.method;if(r)for(let i in r)for(let s of r[i])s(t,i);if(n)for(let i in n)for(let s of n[i])s(t,i,Object.getOwnPropertyDescriptor(t,i))};let Qn=class extends x9{constructor({specObj:r,...n}){super({...n});z(this,"specObj");z(this,"passingOptionsNames",["specObj","parent"]);this.specObj=r}retrievePassingOptions(){return a8(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=Fr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return Ch($s,["visitors",...r],this.specObj)?Fr(["visitors",...r],this.specObj):Fr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const i=this.retrievePassingOptions(),s=this.retrieveVisitor(r),a={...i,...n};return new s(a)}toRefractedElement(r,n,i={}){const s=this.retrieveVisitorInstance(r,i);return s instanceof Rt&&(s==null?void 0:s.constructor)===Rt?Le(n):(Ir(n,s,i),s.element)}},Ha=class extends Qn{constructor({specPath:r,ignoredFields:n,...i}){super({...i});z(this,"specPath");z(this,"ignoredFields");this.specPath=r,this.ignoredFields=n||[]}ObjectElement(r){const n=this.specPath(r),i=this.retrieveFixedFields(n);return r.forEach((s,a,o)=>{if(it(a)&&i.includes(we(a))&&!this.ignoredFields.includes(we(a))){const u=this.toRefractedElement([...n,"fixedFields",we(a)],s),c=new ce.MemberElement(Le(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else this.ignoredFields.includes(we(a))||this.element.content.push(Le(o))}),this.copyMetaAndAttributes(r,this.element),wt}};class jr{constructor({parent:t}){z(this,"parent");this.parent=t}}const C9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ju||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n)),Q2=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ku||e(n)&&t("JSONReference",n)&&r("object",n)),R9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("media",n)&&r("object",n)),iae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ef||e(n)&&t("linkDescription",n)&&r("object",n)),sae=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:Q2,isJSONSchemaElement:C9,isLinkDescriptionElement:iae,isMediaElement:R9},Symbol.toStringTag,{value:"Module"}));let T9=class extends ke(Ha,jr,Rt){constructor(t){super(t),this.element=new ju,this.specPath=rt(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(t){return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,Ha.prototype.ObjectElement.call(this,t)}handleDialectIdentifier(t){if(Ea(this.parent)&&!it(t.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(C9(this.parent)&&!it(t.get("$schema"))){const r=su(we(this.parent.meta.get("inheritedDialectIdentifier")),we(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(t,r="id"){const n=this.parent!==void 0?Le(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.ArrayElement,i=we(t.get(r));Th(i)&&n.push(i),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const as=e=>Ft(e)&&e.hasKey("$ref");let I9=class extends ke(Qn,jr,Rt){ObjectElement(t){const r=as(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,t),wt}ArrayElement(t){return this.element=new ce.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}};class aae extends Rt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-required"),r}}let oae=class extends Qn{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,...s}){super({...s});z(this,"specPath");z(this,"ignoredFields");z(this,"fieldPatternPredicate",c2);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i)}ObjectElement(r){return r.forEach((n,i,s)=>{if(!this.ignoredFields.includes(we(i))&&this.fieldPatternPredicate(we(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ce.MemberElement(Le(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(we(i))||this.element.content.push(Le(s))}),this.copyMetaAndAttributes(r,this.element),wt}},wa=class extends oae{constructor(t){super(t),this.fieldPatternPredicate=Th}},uae=class extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},cae=class extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class lae extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class fae extends Rt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-enum"),r}}let pae=class extends Rt{StringElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-type"),r}ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-type"),r}},dae=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},hae=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},mae=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}};class gae extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let yae=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-links")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}};class vae extends ke(Ha,Rt){constructor(t){super(t),this.element=new ku,this.specPath=rt(["document","objects","JSONReference"])}ObjectElement(t){const r=Ha.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let bae=class extends Rt{StringElement(t){const r=this.enter(t);return this.element.classes.push("reference-value"),r}},_ae=class extends Qn{constructor({alternator:r,...n}){super({...n});z(this,"alternator");this.alternator=r}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>S2(s,rt(a),Rh)),i=m8(n)(r);return this.element=this.toRefractedElement(i,r),wt}},ko=class extends _ae{constructor(t){super(t),this.alternator=[{predicate:as,specPath:["document","objects","JSONReference"]},{predicate:Ms,specPath:["document","objects","JSONSchema"]}]}};class Eae extends ke(Ha,Rt){constructor(t){super(t),this.element=new Ql,this.specPath=rt(["document","objects","Media"])}}let j9=class extends ke(Ha,Rt){constructor(t){super(t),this.element=new ef,this.specPath=rt(["document","objects","LinkDescription"])}};const Jr={visitors:{value:Rt,JSONSchemaOrJSONReferenceVisitor:ko,document:{objects:{JSONSchema:{$visitor:T9,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:ko,items:I9,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:aae,properties:uae,additionalProperties:ko,patternProperties:cae,dependencies:lae,enum:fae,type:pae,allOf:dae,anyOf:hae,oneOf:mae,not:ko,definitions:gae,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:yae,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:vae,fixedFields:{$ref:bae}},Media:{$visitor:Eae,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:j9,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:ko,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:ko}}}}}},Sae=()=>{const e=Ls(Gse);return{predicates:{...sae,isStringElement:it},namespace:e}},wae=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Jr}={})=>{const i=ce.refract(e),s=Sa(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ps(o.element,r,{toolboxCreator:Sae,visitorOptions:{keyMap:Yse,nodeTypeGetter:tf}})},zh=e=>(t,r={})=>wae(t,{specPath:e,...r});ju.refract=zh(["visitors","document","objects","JSONSchema","$visitor"]);ku.refract=zh(["visitors","document","objects","JSONReference","$visitor"]);Ql.refract=zh(["visitors","document","objects","Media","$visitor"]);ef.refract=zh(["visitors","document","objects","LinkDescription","$visitor"]);let Wh=class extends ju{constructor(t,r,n){super(t,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new yt("idProp getter in Schema class is not not supported.")}set idProp(t){throw new yt("idProp setter in Schema class is not not supported.")}get $schema(){throw new yt("$schema getter in Schema class is not not supported.")}set $schema(t){throw new yt("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){throw new yt("patternProperties getter in Schema class is not not supported.")}set patternProperties(t){throw new yt("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new yt("dependencies getter in Schema class is not not supported.")}set dependencies(t){throw new yt("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(t){this.set("type",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){throw new yt("definitions getter in Schema class is not not supported.")}set definitions(t){throw new yt("definitions setter in Schema class is not not supported.")}get base(){throw new yt("base getter in Schema class is not not supported.")}set base(t){throw new yt("base setter in Schema class is not not supported.")}get links(){throw new yt("links getter in Schema class is not not supported.")}set links(t){throw new yt("links setter in Schema class is not not supported.")}get media(){throw new yt("media getter in Schema class is not not supported.")}set media(t){throw new yt("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(t){this.set("nullable",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}},rf=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityRequirement"}},nf=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}},sf=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}set variables(t){this.set("variables",t)}},af=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}},Jh=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}},Kh=class extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}};const xae={namespace:e=>{const{base:t}=e;return t.register("callback",Dl),t.register("components",ql),t.register("contact",$l),t.register("discriminator",Fh),t.register("encoding",Lh),t.register("example",Fl),t.register("externalDocumentation",Ll),t.register("header",Tu),t.register("info",Bl),t.register("license",Ul),t.register("link",Vl),t.register("mediaType",zl),t.register("oAuthFlow",Bh),t.register("oAuthFlows",Uh),t.register("openapi",Wl),t.register("openApi3_0",Vh),t.register("operation",Jl),t.register("parameter",Iu),t.register("pathItem",Kl),t.register("paths",Hl),t.register("reference",Gl),t.register("requestBody",Yl),t.register("response",Xl),t.register("responses",Zl),t.register("schema",Wh),t.register("securityRequirement",rf),t.register("securityScheme",nf),t.register("server",sf),t.register("serverVariable",af),t.register("tag",Jh),t.register("xml",Kh),t}},fd=class fd extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(fd.primaryClass)}};z(fd,"primaryClass","servers");let ed=fd;const pd=class pd extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(pd.primaryClass)}};z(pd,"primaryClass","security");let Qw=pd;const dd=class dd extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(dd.primaryClass)}};z(dd,"primaryClass","tags");let ex=dd;const hd=class hd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(hd.primaryClass)}};z(hd,"primaryClass","server-variables");let tx=hd;const md=class md extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(md.primaryClass)}};z(md,"primaryClass","components-schemas");let td=md;const gd=class gd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(gd.primaryClass)}};z(gd,"primaryClass","components-responses");let rx=gd;const yd=class yd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(yd.primaryClass),this.classes.push("parameters")}};z(yd,"primaryClass","components-parameters");let nx=yd;const vd=class vd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(vd.primaryClass),this.classes.push("examples")}};z(vd,"primaryClass","components-examples");let ix=vd;const bd=class bd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(bd.primaryClass)}};z(bd,"primaryClass","components-request-bodies");let sx=bd;const _d=class _d extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(_d.primaryClass)}};z(_d,"primaryClass","components-headers");let ax=_d;const Ed=class Ed extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ed.primaryClass)}};z(Ed,"primaryClass","components-security-schemes");let ox=Ed;const Sd=class Sd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Sd.primaryClass)}};z(Sd,"primaryClass","components-links");let ux=Sd;const wd=class wd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(wd.primaryClass)}};z(wd,"primaryClass","components-callbacks");let cx=wd;const xd=class xd extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(xd.primaryClass),this.classes.push("servers")}};z(xd,"primaryClass","path-item-servers");let lx=xd;const Ad=class Ad extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ad.primaryClass),this.classes.push("parameters")}};z(Ad,"primaryClass","path-item-parameters");let fx=Ad;const Od=class Od extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Od.primaryClass),this.classes.push("parameters")}};z(Od,"primaryClass","operation-parameters");let rd=Od;const Cd=class Cd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Cd.primaryClass),this.classes.push("examples")}};z(Cd,"primaryClass","parameter-examples");let px=Cd;const Rd=class Rd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Rd.primaryClass),this.classes.push("content")}};z(Rd,"primaryClass","parameter-content");let dx=Rd;const Td=class Td extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Td.primaryClass)}};z(Td,"primaryClass","operation-tags");let hx=Td;const Id=class Id extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Id.primaryClass)}};z(Id,"primaryClass","operation-callbacks");let mx=Id;const jd=class jd extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(jd.primaryClass),this.classes.push("security")}};z(jd,"primaryClass","operation-security");let nd=jd;var La;let Aae=(La=class extends ce.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(La.primaryClass),this.classes.push("servers")}},z(La,"primaryClass","operation-servers"),La);const kd=class kd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(kd.primaryClass),this.classes.push("content")}};z(kd,"primaryClass","request-body-content");let gx=kd;const Pd=class Pd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Pd.primaryClass),this.classes.push("examples")}};z(Pd,"primaryClass","media-type-examples");let yx=Pd;const Nd=class Nd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Nd.primaryClass)}};z(Nd,"primaryClass","media-type-encoding");let vx=Nd;const Md=class Md extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Md.primaryClass)}};z(Md,"primaryClass","encoding-headers");let bx=Md;const Dd=class Dd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Dd.primaryClass)}};z(Dd,"primaryClass","response-headers");let _x=Dd;const qd=class qd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(qd.primaryClass),this.classes.push("content")}};z(qd,"primaryClass","response-content");let Ex=qd;const $d=class $d extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push($d.primaryClass)}};z($d,"primaryClass","response-links");let Sx=$d;const Fd=class Fd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Fd.primaryClass)}};z(Fd,"primaryClass","discriminator-mapping");let wx=Fd;const Ld=class Ld extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ld.primaryClass)}};z(Ld,"primaryClass","oauth-flow-scopes");let xx=Ld;const Bd=class Bd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Bd.primaryClass)}};z(Bd,"primaryClass","link-parameters");let Ax=Bd;const Ud=class Ud extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ud.primaryClass),this.classes.push("examples")}};z(Ud,"primaryClass","header-examples");let Ox=Ud;const Vd=class Vd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Vd.primaryClass),this.classes.push("content")}};z(Vd,"primaryClass","header-content");let Cx=Vd;const Oae=e=>{if(Sr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Cae={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_0Element:["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"],...fs};class k9{constructor(t={}){z(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=ss(r.meta,t.meta),Pl(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=ss(r.attributes,t.attributes))}}class De extends k9{enter(t){return this.element=Le(t),wt}}class Fi extends k9{constructor({specObj:r,passingOptionsNames:n,openApiGenericElement:i,openApiSemanticElement:s,...a}){super({...a});z(this,"specObj");z(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);z(this,"openApiGenericElement");z(this,"openApiSemanticElement");this.specObj=r,this.openApiGenericElement=i,this.openApiSemanticElement=s,Array.isArray(n)&&(this.passingOptionsNames=n)}retrievePassingOptions(){return a8(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=Fr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return Ch($s,["visitors",...r],this.specObj)?Fr(["visitors",...r],this.specObj):Fr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const i=this.retrievePassingOptions(),s=this.retrieveVisitor(r),a={...i,...n};return new s(a)}toRefractedElement(r,n,i={}){const s=this.retrieveVisitorInstance(r,i);return s instanceof De&&(s==null?void 0:s.constructor)===De?Le(n):(Ir(n,s,i),s.element)}}const tr=e=>Ft(e)&&e.hasKey("$ref"),Rae=Ft,Tae=Ft,P9=e=>it(e.key)&&u8("x-",we(e.key));class pt extends Fi{constructor({specPath:r,ignoredFields:n,canSupportSpecificationExtensions:i,specificationExtensionPredicate:s,...a}){super({...a});z(this,"specPath");z(this,"ignoredFields");z(this,"canSupportSpecificationExtensions",!0);z(this,"specificationExtensionPredicate",P9);this.specPath=r,this.ignoredFields=n||[],typeof i=="boolean"&&(this.canSupportSpecificationExtensions=i),typeof s=="function"&&(this.specificationExtensionPredicate=s)}ObjectElement(r){const n=this.specPath(r),i=this.retrieveFixedFields(n);return r.forEach((s,a,o)=>{if(it(a)&&i.includes(we(a))&&!this.ignoredFields.includes(we(a))){const u=this.toRefractedElement([...n,"fixedFields",we(a)],s),c=new ce.MemberElement(Le(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(o)){const u=this.toRefractedElement(["document","extension"],o);this.element.content.push(u)}else this.ignoredFields.includes(we(a))||this.element.content.push(Le(o))}),this.copyMetaAndAttributes(r,this.element),wt}}class Iae extends ke(pt,De){constructor(t){super(t),this.element=new Vh,this.specPath=rt(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){return pt.prototype.ObjectElement.call(this,t)}}class jae extends ke(Fi,De){StringElement(t){const r=new Wl(we(t));return this.copyMetaAndAttributes(t,r),this.element=r,wt}}class kae extends Fi{MemberElement(t){return this.element=Le(t),this.element.classes.push("specification-extension"),wt}}let Pae=class extends ke(pt,De){constructor(t){super(t),this.element=new Bl,this.specPath=rt(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class Nae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let Mae=class extends ke(pt,De){constructor(t){super(t),this.element=new $l,this.specPath=rt(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},Dae=class extends ke(pt,De){constructor(t){super(t),this.element=new Ul,this.specPath=rt(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},qae=class extends ke(pt,De){constructor(t){super(t),this.element=new Vl,this.specPath=rt(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return(it(this.element.operationId)||it(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class $ae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class Fae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class lu extends Fi{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,canSupportSpecificationExtensions:s,specificationExtensionPredicate:a,...o}){super({...o});z(this,"specPath");z(this,"ignoredFields");z(this,"fieldPatternPredicate",c2);z(this,"canSupportSpecificationExtensions",!1);z(this,"specificationExtensionPredicate",P9);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i),typeof s=="boolean"&&(this.canSupportSpecificationExtensions=s),typeof a=="function"&&(this.specificationExtensionPredicate=a)}ObjectElement(r){return r.forEach((n,i,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const a=this.toRefractedElement(["document","extension"],s);this.element.content.push(a)}else if(!this.ignoredFields.includes(we(i))&&this.fieldPatternPredicate(we(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ce.MemberElement(Le(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(we(i))||this.element.content.push(Le(s))}),this.copyMetaAndAttributes(r,this.element),wt}}class dt extends lu{constructor(t){super(t),this.fieldPatternPredicate=Th}}let Lae=class extends ke(dt,De){constructor(t){super(t),this.element=new Ax,this.specPath=rt(["value"])}},Bae=class extends ke(pt,De){constructor(t){super(t),this.element=new sf,this.specPath=rt(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class Uae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("server-url"),r}}let eC=class extends ke(Fi,De){constructor(t){super(t),this.element=new ed}ArrayElement(t){return t.forEach(r=>{const n=Rae(r)?["document","objects","Server"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},Vae=class extends ke(pt,De){constructor(t){super(t),this.element=new af,this.specPath=rt(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class zae extends ke(dt,De){constructor(t){super(t),this.element=new tx,this.specPath=rt(["document","objects","ServerVariable"])}}let Wae=class extends ke(pt,De){constructor(t){super(t),this.element=new zl,this.specPath=rt(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class os extends Fi{constructor({alternator:r,...n}){super({...n});z(this,"alternator");this.alternator=r||[]}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>S2(s,rt(a),Rh)),i=m8(n)(r);return this.element=this.toRefractedElement(i,r),wt}}const Jae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dl||e(n)&&t("callback",n)&&r("object",n)),Kae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ql||e(n)&&t("components",n)&&r("object",n)),Hae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $l||e(n)&&t("contact",n)&&r("object",n)),Gae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fl||e(n)&&t("example",n)&&r("object",n)),Yae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ll||e(n)&&t("externalDocumentation",n)&&r("object",n)),Pu=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tu||e(n)&&t("header",n)&&r("object",n)),Xae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bl||e(n)&&t("info",n)&&r("object",n)),Zae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ul||e(n)&&t("license",n)&&r("object",n)),Qae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vl||e(n)&&t("link",n)&&r("object",n)),eoe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wl||e(n)&&t("openapi",n)&&r("string",n)),toe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof Vh||e(i)&&t("openApi3_0",i)&&r("object",i)&&n("api",i)),N9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jl||e(n)&&t("operation",n)&&r("object",n)),roe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Iu||e(n)&&t("parameter",n)&&r("object",n)),tC=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kl||e(n)&&t("pathItem",n)&&r("object",n)),noe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("paths",n)&&r("object",n)),zt=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("reference",n)&&r("object",n)),ioe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yl||e(n)&&t("requestBody",n)&&r("object",n)),Hh=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xl||e(n)&&t("response",n)&&r("object",n)),soe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zl||e(n)&&t("responses",n)&&r("object",n)),aoe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wh||e(n)&&t("schema",n)&&r("object",n)),ooe=e=>kl(e)&&e.classes.includes("boolean-json-schema"),uoe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rf||e(n)&&t("securityRequirement",n)&&r("object",n)),coe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nf||e(n)&&t("securityScheme",n)&&r("object",n)),loe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sf||e(n)&&t("server",n)&&r("object",n)),foe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof af||e(n)&&t("serverVariable",n)&&r("object",n)),Gh=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zl||e(n)&&t("mediaType",n)&&r("object",n)),M9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof ed||e(i)&&t("array",i)&&r("array",i)&&n("servers",i)),poe=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:ooe,isCallbackElement:Jae,isComponentsElement:Kae,isContactElement:Hae,isExampleElement:Gae,isExternalDocumentationElement:Yae,isHeaderElement:Pu,isInfoElement:Xae,isLicenseElement:Zae,isLinkElement:Qae,isMediaTypeElement:Gh,isOpenApi3_0Element:toe,isOpenapiElement:eoe,isOperationElement:N9,isParameterElement:roe,isPathItemElement:tC,isPathsElement:noe,isReferenceElement:zt,isRequestBodyElement:ioe,isResponseElement:Hh,isResponsesElement:soe,isSchemaElement:aoe,isSecurityRequirementElement:uoe,isSecuritySchemeElement:coe,isServerElement:loe,isServerVariableElement:foe,isServersElement:M9},Symbol.toStringTag,{value:"Module"}));let doe=class extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:tr,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},rC=class extends ke(dt,De){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("examples"),this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},hoe=class extends rC{constructor(t){super(t),this.element=new yx}},moe=class extends ke(dt,De){constructor(t){super(t),this.element=new vx,this.specPath=rt(["document","objects","Encoding"])}},goe=class extends ke(dt,De){constructor(t){super(t),this.element=new rf,this.specPath=rt(["value"])}},yoe=class extends ke(Fi,De){constructor(t){super(t),this.element=new Qw}ArrayElement(t){return t.forEach(r=>{if(Ft(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Le(r))}),this.copyMetaAndAttributes(t,this.element),wt}},voe=class extends ke(pt,De){constructor(t){super(t),this.element=new ql,this.specPath=rt(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},boe=class extends ke(pt,De){constructor(t){super(t),this.element=new Jh,this.specPath=rt(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},_oe=class extends ke(pt,De){constructor(t){super(t),this.element=new Gl,this.specPath=rt(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&this.element.classes.push("reference-element"),r}},Eoe=class extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}},Soe=class extends ke(pt,De){constructor(t){super(t),this.element=new Iu,this.specPath=rt(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return Ft(this.element.contentProp)&&this.element.contentProp.filter(Gh).forEach((n,i)=>{n.setMetaProperty("media-type",we(i))}),r}},woe=class extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:tr,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},xoe=class extends ke(pt,De){constructor(t){super(t),this.element=new Tu,this.specPath=rt(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},Aoe=class extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:tr,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Ooe=class extends rC{constructor(t){super(t),this.element=new Ox}},Yh=class extends ke(dt,De){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("content"),this.specPath=rt(["document","objects","MediaType"])}},Coe=class extends Yh{constructor(t){super(t),this.element=new Cx}},Roe=class extends ke(pt,De){constructor(t){super(t),this.element=new Wh,this.specPath=rt(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const aF=Jr.visitors.document.objects.JSONSchema.fixedFields.allOf;let Toe=class extends aF{ArrayElement(t){const r=aF.prototype.ArrayElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const oF=Jr.visitors.document.objects.JSONSchema.fixedFields.anyOf;let Ioe=class extends oF{ArrayElement(t){const r=oF.prototype.ArrayElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const uF=Jr.visitors.document.objects.JSONSchema.fixedFields.oneOf;let joe=class extends uF{ArrayElement(t){const r=uF.prototype.ArrayElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const cF=Jr.visitors.document.objects.JSONSchema.fixedFields.items;let koe=class extends cF{ObjectElement(t){const r=cF.prototype.ObjectElement.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(t){return this.enter(t)}};const lF=Jr.visitors.document.objects.JSONSchema.fixedFields.properties;let Poe=class extends lF{ObjectElement(t){const r=lF.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const Noe=Jr.visitors.document.objects.JSONSchema.fixedFields.type;class Moe extends Noe{ArrayElement(t){return this.enter(t)}}const fF=Jr.visitors.JSONSchemaOrJSONReferenceVisitor;class pF extends fF{ObjectElement(t){const r=fF.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let Doe=class extends ke(pt,De){constructor(t){super(t),this.element=new Fh,this.specPath=rt(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class qoe extends ke(dt,De){constructor(t){super(t),this.element=new wx,this.specPath=rt(["value"])}}let $oe=class extends ke(pt,De){constructor(t){super(t),this.element=new Kh,this.specPath=rt(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},Foe=class extends rC{constructor(t){super(t),this.element=new px}},Loe=class extends Yh{constructor(t){super(t),this.element=new dx}},Boe=class extends ke(dt,De){constructor(t){super(t),this.element=new td,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},Uoe=class extends ke(dt,De){constructor(t){super(t),this.element=new rx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(Hh).forEach((n,i)=>{n.setMetaProperty("http-status-code",we(i))}),r}},Voe=class extends ke(dt,De){constructor(t){super(t),this.element=new nx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},zoe=class extends ke(dt,De){constructor(t){super(t),this.element=new ix,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class Woe extends ke(dt,De){constructor(t){super(t),this.element=new sx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let Joe=class extends ke(dt,De){constructor(t){super(t),this.element=new ax,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter(Pu).forEach((n,i)=>{n.setMetaProperty("header-name",we(i))}),r}};class Koe extends ke(dt,De){constructor(t){super(t),this.element=new ox,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let Hoe=class extends ke(dt,De){constructor(t){super(t),this.element=new ux,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},Goe=class extends ke(dt,De){constructor(t){super(t),this.element=new cx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},Yoe=class extends ke(pt,De){constructor(t){super(t),this.element=new Fl,this.specPath=rt(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return it(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class Xoe extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let Zoe=class extends ke(pt,De){constructor(t){super(t),this.element=new Ll,this.specPath=rt(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},Qoe=class extends ke(pt,De){constructor(t){super(t),this.element=new Lh,this.specPath=rt(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return Ft(this.element.headers)&&this.element.headers.filter(Pu).forEach((n,i)=>{n.setMetaProperty("header-name",we(i))}),r}},eue=class extends ke(dt,De){constructor(t){super(t),this.element=new bx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!Pu(n))return;const s=we(i);n.setMetaProperty("headerName",s)}),r}},tue=class extends ke(lu,De){constructor(t){super(t),this.element=new Hl,this.specPath=rt(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ms}ObjectElement(t){const r=lu.prototype.ObjectElement.call(this,t);return this.element.filter(tC).forEach((n,i)=>{i.classes.push("openapi-path-template"),i.classes.push("path-template"),n.setMetaProperty("path",Le(i))}),r}},rue=class extends ke(pt,De){constructor(t){super(t),this.element=new Yl,this.specPath=rt(["document","objects","RequestBody"])}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return Ft(this.element.contentProp)&&this.element.contentProp.filter(Gh).forEach((n,i)=>{n.setMetaProperty("media-type",we(i))}),r}},nue=class extends Yh{constructor(t){super(t),this.element=new gx}},iue=class extends ke(lu,De){constructor(t){super(t),this.element=new Dl,this.specPath=rt(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(tC).forEach((n,i)=>{n.setMetaProperty("runtime-expression",we(i))}),r}},sue=class extends ke(pt,De){constructor(t){super(t),this.element=new Xl,this.specPath=rt(["document","objects","Response"])}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return Ft(this.element.contentProp)&&this.element.contentProp.filter(Gh).forEach((n,i)=>{n.setMetaProperty("media-type",we(i))}),Ft(this.element.headers)&&this.element.headers.filter(Pu).forEach((n,i)=>{n.setMetaProperty("header-name",we(i))}),r}};class aue extends ke(dt,De){constructor(t){super(t),this.element=new _x,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!Pu(n))return;const s=we(i);n.setMetaProperty("header-name",s)}),r}}class oue extends Yh{constructor(t){super(t),this.element=new Ex}}class uue extends ke(dt,De){constructor(t){super(t),this.element=new Sx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class dF extends ke(pt,lu){constructor({specPathFixedFields:r,specPathPatternedFields:n,...i}){super({...i});z(this,"specPathFixedFields");z(this,"specPathPatternedFields");this.specPathFixedFields=r,this.specPathPatternedFields=n}ObjectElement(r){const{specPath:n,ignoredFields:i}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(r));this.ignoredFields=[...i,...Gte(r.keys(),s)],pt.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,lu.prototype.ObjectElement.call(this,r)}catch(s){throw this.specPath=n,s}return wt}}let cue=class extends ke(dF,De){constructor(t){super(t),this.element=new Zl,this.specPathFixedFields=rt(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>tr(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Are(100,600).join("|")})$`).test(String(r))}ObjectElement(t){const r=dF.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(Hh).forEach((n,i)=>{const s=Le(i);this.fieldPatternPredicate(we(s))&&n.setMetaProperty("http-status-code",s)}),r}};class lue extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:tr,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Response"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)?this.element.setMetaProperty("referenced-element","response"):Hh(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let fue=class extends ke(pt,De){constructor(t){super(t),this.element=new Jl,this.specPath=rt(["document","objects","Operation"])}},pue=class extends De{constructor(t){super(t),this.element=new hx}ArrayElement(t){return this.element=this.element.concat(Le(t)),wt}},D9=class extends ke(Fi,De){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("parameters")}ArrayElement(t){return t.forEach(r=>{const n=tr(r)?["document","objects","Reference"]:["document","objects","Parameter"],i=this.toRefractedElement(n,r);zt(i)&&i.setMetaProperty("referenced-element","parameter"),this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},due=class extends D9{constructor(t){super(t),this.element=new rd}},hue=class extends os{constructor(t){super(t),this.alternator=[{predicate:tr,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","RequestBody"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class mue extends ke(dt,De){constructor(r){super(r);z(this,"specPath");this.element=new mx,this.specPath=n=>tr(n)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const n=dt.prototype.ObjectElement.call(this,r);return this.element.filter(zt).forEach(i=>{i.setMetaProperty("referenced-element","callback")}),n}}class gue extends ke(Fi,De){constructor(t){super(t),this.element=new nd}ArrayElement(t){return t.forEach(r=>{const n=Ft(r)?["document","objects","SecurityRequirement"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}}let yue=class extends eC{constructor(t){super(t),this.element=new Aae}},vue=class extends ke(pt,De){constructor(t){super(t),this.element=new Kl,this.specPath=rt(["document","objects","PathItem"])}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(N9).forEach((n,i)=>{const s=Le(i);s.content=we(s).toUpperCase(),n.setMetaProperty("http-method",s)}),it(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class bue extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class _ue extends eC{constructor(t){super(t),this.element=new lx}}class Eue extends D9{constructor(t){super(t),this.element=new fx}}let Sue=class extends ke(pt,De){constructor(t){super(t),this.element=new nf,this.specPath=rt(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},wue=class extends ke(pt,De){constructor(t){super(t),this.element=new Uh,this.specPath=rt(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},xue=class extends ke(pt,De){constructor(t){super(t),this.element=new Bh,this.specPath=rt(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class Aue extends ke(dt,De){constructor(t){super(t),this.element=new xx,this.specPath=rt(["value"])}}class Oue extends ke(Fi,De){constructor(t){super(t),this.element=new ex}ArrayElement(t){return t.forEach(r=>{const n=Tae(r)?["document","objects","Tag"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}}const{fixedFields:Pr}=Jr.visitors.document.objects.JSONSchema,ge={visitors:{value:De,document:{objects:{OpenApi:{$visitor:Iae,fixedFields:{openapi:jae,info:{$ref:"#/visitors/document/objects/Info"},servers:eC,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:yoe,tags:Oue,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Pae,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Nae}},Contact:{$visitor:Mae,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Dae,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Bae,fixedFields:{url:Uae,description:{$ref:"#/visitors/value"},variables:zae}},ServerVariable:{$visitor:Vae,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:voe,fixedFields:{schemas:Boe,responses:Uoe,parameters:Voe,examples:zoe,requestBodies:Woe,headers:Joe,securitySchemes:Koe,links:Hoe,callbacks:Goe}},Paths:{$visitor:tue},PathItem:{$visitor:vue,fixedFields:{$ref:bue,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:_ue,parameters:Eue}},Operation:{$visitor:fue,fixedFields:{tags:pue,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:due,requestBody:hue,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:mue,deprecated:{$ref:"#/visitors/value"},security:gue,servers:yue}},ExternalDocumentation:{$visitor:Zoe,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Soe,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:woe,example:{$ref:"#/visitors/value"},examples:Foe,content:Loe}},RequestBody:{$visitor:rue,fixedFields:{description:{$ref:"#/visitors/value"},content:nue,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Wae,fixedFields:{schema:doe,example:{$ref:"#/visitors/value"},examples:hoe,encoding:moe}},Encoding:{$visitor:Qoe,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:eue,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:cue,fixedFields:{default:lue}},Response:{$visitor:sue,fixedFields:{description:{$ref:"#/visitors/value"},headers:aue,content:oue,links:uue}},Callback:{$visitor:iue},Example:{$visitor:Yoe,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Xoe}},Link:{$visitor:qae,fixedFields:{operationRef:$ae,operationId:Fae,parameters:Lae,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:xoe,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Aoe,example:{$ref:"#/visitors/value"},examples:Ooe,content:Coe}},Tag:{$visitor:boe,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:_oe,fixedFields:{$ref:Eoe}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Roe,fixedFields:{title:Pr.title,multipleOf:Pr.multipleOf,maximum:Pr.maximum,exclusiveMaximum:Pr.exclusiveMaximum,minimum:Pr.minimum,exclusiveMinimum:Pr.exclusiveMinimum,maxLength:Pr.maxLength,minLength:Pr.minLength,pattern:Pr.pattern,maxItems:Pr.maxItems,minItems:Pr.minItems,uniqueItems:Pr.uniqueItems,maxProperties:Pr.maxProperties,minProperties:Pr.minProperties,required:Pr.required,enum:Pr.enum,type:Moe,allOf:Toe,anyOf:Ioe,oneOf:joe,not:pF,items:koe,properties:Poe,additionalProperties:pF,description:Pr.description,format:Pr.format,default:Pr.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Doe,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:qoe}},XML:{$visitor:$oe,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Sue,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:wue,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:xue,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Aue}},SecurityRequirement:{$visitor:goe}},extension:{$visitor:kae}}}},Cue=()=>{const e=Ls(xae);return{predicates:{...poe,isElement:Sr,isStringElement:it,isArrayElement:vn,isObjectElement:Ft,isMemberElement:$i,includesClasses:Mh,hasElementSourceMap:Pl},namespace:e}},Rue=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ce.refract(e),i=Sa(ge),s=Fr(t,i),a=new s({specObj:i});return Ir(n,a),ps(a.element,r,{toolboxCreator:Cue,visitorOptions:{keyMap:Cae,nodeTypeGetter:Oae}})},kt=e=>(t,r={})=>Rue(t,{specPath:e,...r});Dl.refract=kt(["visitors","document","objects","Callback","$visitor"]);ql.refract=kt(["visitors","document","objects","Components","$visitor"]);$l.refract=kt(["visitors","document","objects","Contact","$visitor"]);Fl.refract=kt(["visitors","document","objects","Example","$visitor"]);Fh.refract=kt(["visitors","document","objects","Discriminator","$visitor"]);Lh.refract=kt(["visitors","document","objects","Encoding","$visitor"]);Ll.refract=kt(["visitors","document","objects","ExternalDocumentation","$visitor"]);Tu.refract=kt(["visitors","document","objects","Header","$visitor"]);Bl.refract=kt(["visitors","document","objects","Info","$visitor"]);Ul.refract=kt(["visitors","document","objects","License","$visitor"]);Vl.refract=kt(["visitors","document","objects","Link","$visitor"]);zl.refract=kt(["visitors","document","objects","MediaType","$visitor"]);Bh.refract=kt(["visitors","document","objects","OAuthFlow","$visitor"]);Uh.refract=kt(["visitors","document","objects","OAuthFlows","$visitor"]);Wl.refract=kt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Vh.refract=kt(["visitors","document","objects","OpenApi","$visitor"]);Jl.refract=kt(["visitors","document","objects","Operation","$visitor"]);Iu.refract=kt(["visitors","document","objects","Parameter","$visitor"]);Kl.refract=kt(["visitors","document","objects","PathItem","$visitor"]);Hl.refract=kt(["visitors","document","objects","Paths","$visitor"]);Gl.refract=kt(["visitors","document","objects","Reference","$visitor"]);Yl.refract=kt(["visitors","document","objects","RequestBody","$visitor"]);Xl.refract=kt(["visitors","document","objects","Response","$visitor"]);Zl.refract=kt(["visitors","document","objects","Responses","$visitor"]);Wh.refract=kt(["visitors","document","objects","Schema","$visitor"]);rf.refract=kt(["visitors","document","objects","SecurityRequirement","$visitor"]);nf.refract=kt(["visitors","document","objects","SecurityScheme","$visitor"]);sf.refract=kt(["visitors","document","objects","Server","$visitor"]);af.refract=kt(["visitors","document","objects","ServerVariable","$visitor"]);Jh.refract=kt(["visitors","document","objects","Tag","$visitor"]);Kh.refract=kt(["visitors","document","objects","XML","$visitor"]);class Xh extends Dl{}class Zh extends ql{get pathItems(){return this.get("pathItems")}set pathItems(t){this.set("pathItems",t)}}let Qh=class extends $l{};class nC extends Fh{}class iC extends Lh{}let em=class extends Fl{};class tm extends Ll{}class rm extends Tu{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}let nm=class extends Bl{get license(){return this.get("license")}set license(t){this.set("license",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}};const zd=class zd extends ce.StringElement{constructor(t,r,n){super(t,r,n),this.element="jsonSchemaDialect"}};z(zd,"default",new zd("https://spec.openapis.org/oas/3.1/dialect/base"));let Ga=zd,im=class extends Ul{get identifier(){return this.get("identifier")}set identifier(t){this.set("identifier",t)}},sm=class extends Vl{};class am extends zl{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class sC extends Bh{}class aC extends Uh{}class oC extends Wl{}class xa extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}let of=class extends Jl{get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}};class om extends Iu{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class ga extends Kl{get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}}class um extends Hl{}class Aa extends Gl{}Object.defineProperty(Aa.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});Object.defineProperty(Aa.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});class cm extends Yl{}let lm=class extends Xl{},fm=class extends Zl{},uf=class extends ju{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new yt("id keyword from Core vocabulary has been renamed to $id.")}set idProp(t){throw new yt("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}},cf=class extends ef{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get schema(){throw new yt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(t){throw new yt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}get method(){throw new yt("method keyword from Hyper-Schema vocabulary has been removed.")}set method(t){throw new yt("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new yt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(t){throw new yt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(t){this.set("submissionEncType",t)}};const Tue={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",uf),t.register("jSONReference",ku),t.register("media",Ql),t.register("linkDescription",cf),t}},Iue={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fs};let q9=class extends T9{constructor(t){super(t),this.element=new uf}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(t){const r=this.enter(t);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(t,r="$id"){return super.handleSchemaIdentifier(t,r)}},jue=class extends I9{BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),wt}};class kue extends Rt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-examples"),r}}let $9=class extends j9{constructor(t){super(t),this.element=new cf}};const Vr=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],q9),Hn(["visitors","document","objects","JSONSchema","fixedFields","id"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$id"],Jr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],jue),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","const"],Jr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","examples"],kue),Pe(["visitors","document","objects","LinkDescription","$visitor"],$9),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","LinkDescription","fixedFields","method"]),Hn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Jr.visitors.value))(Jr),Pue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uf||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n)),Nue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cf||e(n)&&t("linkDescription",n)&&r("object",n)),Mue=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:Q2,isJSONSchemaElement:Pue,isLinkDescriptionElement:Nue,isMediaElement:R9},Symbol.toStringTag,{value:"Module"})),Due=()=>{const e=Ls(Tue);return{predicates:{...Mue,isStringElement:it},namespace:e}},que=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Vr}={})=>{const i=ce.refract(e),s=Sa(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ps(o.element,r,{toolboxCreator:Due,visitorOptions:{keyMap:Iue,nodeTypeGetter:tf}})},F9=e=>(t,r={})=>que(t,{specPath:e,...r});uf.refract=F9(["visitors","document","objects","JSONSchema","$visitor"]);cf.refract=F9(["visitors","document","objects","LinkDescription","$visitor"]);let lf=class extends uf{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get media(){throw new yt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(t){throw new yt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}},ff=class extends cf{get anchor(){return this.get("anchor")}set anchor(t){this.set("anchor",t)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(t){this.set("anchorPointer",t)}get templatePointers(){return this.get("templatePointers")}set templatePointers(t){this.set("templatePointers",t)}get templateRequired(){return this.get("templateRequired")}set templateRequired(t){this.set("templateRequired",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){throw new yt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(t){throw new yt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(t){this.set("targetMediaType",t)}get targetHints(){return this.get("targetHints")}set targetHints(t){this.set("targetHints",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}get submissionEncType(){throw new yt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(t){throw new yt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(t){this.set("submissionMediaType",t)}};const $ue={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",lf),t.register("jSONReference",ku),t.register("linkDescription",ff),t}},Fue={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...fs};let L9=class extends q9{constructor(t){super(t),this.element=new lf}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},B9=class extends $9{constructor(t){super(t),this.element=new ff}};const na=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],L9),Pe(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Vr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","JSONSchema","fixedFields","media"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Vr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Vr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","$visitor"],B9),Pe(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Vr.visitors.value),Hn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","description"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Vr.visitors.value))(Vr),Lue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lf||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n)),Bue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ff||e(n)&&t("linkDescription",n)&&r("object",n)),Uue=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:Q2,isJSONSchemaElement:Lue,isLinkDescriptionElement:Bue},Symbol.toStringTag,{value:"Module"})),Vue=()=>{const e=Ls($ue);return{predicates:{...Uue,isStringElement:it},namespace:e}},zue=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=na}={})=>{const i=ce.refract(e),s=Sa(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ps(o.element,r,{toolboxCreator:Vue,visitorOptions:{keyMap:Fue,nodeTypeGetter:tf}})},U9=e=>(t,r={})=>zue(t,{specPath:e,...r});lf.refract=U9(["visitors","document","objects","JSONSchema","$visitor"]);ff.refract=U9(["visitors","document","objects","LinkDescription","$visitor"]);let pf=class extends lf{constructor(t,r,n){super(t,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(t){this.set("$recursiveAnchor",t)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(t){this.set("$recursiveRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get definitions(){throw new yt("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(t){throw new yt("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get dependencies(){throw new yt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(t){throw new yt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}},df=class extends ff{get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}};const Wue={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",pf),t.register("linkDescription",df),t}},Jue={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...fs};let zr=class extends L9{constructor(t){super(t),this.element=new pf}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=Ha.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class Kue extends Rt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-$vocabulary"),r}}class Hue extends Rt{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let V9=class extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-$defs"),this.specPath=rt(["document","objects","JSONSchema"])}},z9=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},W9=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},J9=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},K9=class extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=rt(["document","objects","JSONSchema"])}};class Gue extends ke(Qn,jr,Rt){ObjectElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),wt}ArrayElement(t){return this.element=new ce.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),wt}}let H9=class extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=rt(["document","objects","JSONSchema"])}},G9=class extends ke(wa,jr,Rt){constructor(t){super(t),this.element=new ce.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=rt(["document","objects","JSONSchema"])}};class Yue extends Rt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-dependentRequired"),r}}let Y9=class extends B9{constructor(t){super(t),this.element=new df}};const _p=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Kue),Pe(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],na.visitors.value),Hn(["visitors","document","objects","JSONReference","$visitor"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Hue),Hn(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$defs"],V9),Pe(["visitors","document","objects","JSONSchema","fixedFields","allOf"],z9),Pe(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],W9),Pe(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],J9),Pe(["visitors","document","objects","JSONSchema","fixedFields","not"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],zr),Hn(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],K9),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],Gue),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","properties"],H9),Pe(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],G9),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","minContains"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Yue),Pe(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],zr),Pe(["visitors","document","objects","LinkDescription","$visitor"],Y9),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],zr),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],zr),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],zr),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],zr))(na),Xue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pf||e(n)&&t("JSONSchema201909",n)&&r("object",n)),Zue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof df||e(n)&&t("linkDescription",n)&&r("object",n)),Que=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Xue,isLinkDescriptionElement:Zue},Symbol.toStringTag,{value:"Module"})),ece=()=>{const e=Ls(Wue);return{predicates:{...Que,isStringElement:it},namespace:e}},tce=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=_p}={})=>{const i=ce.refract(e),s=Sa(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ps(o.element,r,{toolboxCreator:ece,visitorOptions:{keyMap:Jue,nodeTypeGetter:tf}})},X9=e=>(t,r={})=>tce(t,{specPath:e,...r});pf.refract=X9(["visitors","document","objects","JSONSchema","$visitor"]);df.refract=X9(["visitors","document","objects","LinkDescription","$visitor"]);class hf extends pf{constructor(t,r,n){super(t,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $recursiveAnchor(){throw new yt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(t){throw new yt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $recursiveRef(){throw new yt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(t){throw new yt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}}class pm extends df{get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}}const rce={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",hf),t.register("linkDescription",pm),t}},nce={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...fs};let Mr=class extends zr{constructor(t){super(t),this.element=new hf}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},Z9=class extends ke(Qn,jr,Rt){constructor(t){super(t),this.element=new ce.ArrayElement,this.element.classes.push("json-schema-prefixItems")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},ice=class extends Y9{constructor(t){super(t),this.element=new pm}};const Q9=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],Mr),Hn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],_p.visitors.value),Hn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],_p.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","not"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Z9),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Mr),Hn(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","$visitor"],ice),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Mr))(_p),sce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hf||e(n)&&t("JSONSchema202012",n)&&r("object",n)),ace=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pm||e(n)&&t("linkDescription",n)&&r("object",n)),oce=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:sce,isLinkDescriptionElement:ace},Symbol.toStringTag,{value:"Module"})),uce=()=>{const e=Ls(rce);return{predicates:{...oce,isStringElement:it},namespace:e}},cce=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Q9}={})=>{const i=ce.refract(e),s=Sa(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ps(o.element,r,{toolboxCreator:uce,visitorOptions:{keyMap:nce,nodeTypeGetter:tf}})},eU=e=>(t,r={})=>cce(t,{specPath:e,...r});hf.refract=eU(["visitors","document","objects","JSONSchema","$visitor"]);pm.refract=eU(["visitors","document","objects","LinkDescription","$visitor"]);class ho extends hf{constructor(t,r,n){super(t,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}class dm extends rf{}class hm extends nf{}class mm extends sf{}class gm extends af{}class uC extends Jh{}class cC extends Kh{}const lC={namespace:e=>{const{base:t}=e;return t.register("callback",Xh),t.register("components",Zh),t.register("contact",Qh),t.register("discriminator",nC),t.register("encoding",iC),t.register("example",em),t.register("externalDocumentation",tm),t.register("header",rm),t.register("info",nm),t.register("jsonSchemaDialect",Ga),t.register("license",im),t.register("link",sm),t.register("mediaType",am),t.register("oAuthFlow",sC),t.register("oAuthFlows",aC),t.register("openapi",oC),t.register("openApi3_1",xa),t.register("operation",of),t.register("parameter",om),t.register("pathItem",ga),t.register("paths",um),t.register("reference",Aa),t.register("requestBody",cm),t.register("response",lm),t.register("responses",fm),t.register("schema",ho),t.register("securityRequirement",dm),t.register("securityScheme",hm),t.register("server",mm),t.register("serverVariable",gm),t.register("tag",uC),t.register("xml",cC),t}},Wd=class Wd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Wd.primaryClass)}};z(Wd,"primaryClass","components-path-items");let Rx=Wd;const Jd=class Jd extends ce.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Jd.primaryClass)}};z(Jd,"primaryClass","webhooks");let Tx=Jd;const ki=e=>{if(Sr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ns={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"],...fs};class mf{constructor(t,r,n){z(this,"internalStore");this.storageElement=t,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let t=this.storageElement.get(this.storageField);Ft(t)||(t=new ce.ObjectElement,this.storageElement.set(this.storageField,t));let r=t.get(this.storageSubField);vn(r)||(r=new ce.ArrayElement,t.set(this.storageSubField,r)),this.internalStore=r}return this.internalStore}append(t){this.includes(t)||this.store.push(t)}includes(t){return this.store.includes(t)}}const lce=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t,i=(o,u)=>!r.isParameterElement(o)||!r.isParameterElement(u)||!r.isStringElement(o.name)||!r.isStringElement(o.in)||!r.isStringElement(u.name)||!r.isStringElement(u.in)?!1:we(o.name)===we(u.name)&&we(o.in)===we(u.in),s=[];let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new mf(o,e,"parameters")},leave(){a=void 0}},PathItemElement:{enter(o,u,c,l,f){if(f.some(r.isComponentsElement))return;const{parameters:h}=o;r.isArrayElement(h)?s.push([...h.content]):s.push([])},leave(){s.pop()}},OperationElement:{leave(o,u,c,l,f){const h=Ah(s);if(!Array.isArray(h)||h.length===0)return;const d=n([...f,c,o]);if(a.includes(d))return;const g=s8([],["parameters","content"],o),y=kre(i,[...g,...h]);o.parameters=new rd(y),a.append(d)}}}}},fce=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i,s;return{visitor:{OpenApi3_1Element:{enter(a){s=new mf(a,e,"security-requirements"),r.isArrayElement(a.security)&&(i=a.security)},leave(){s=void 0,i=void 0}},OperationElement:{leave(a,o,u,c,l){if(l.some(r.isComponentsElement))return;const f=n([...l,u,a]);if(s.includes(f))return;if(typeof a.security>"u"&&typeof i<"u"){var g;a.security=new nd((g=i)===null||g===void 0?void 0:g.content),s.append(f)}}}}}},Ix=e=>e.replace(/\s/g,""),jx=e=>e.replace(/\W/gi,"_"),pce=(e,t)=>{const r=jx(Ix(t.toLowerCase())),n=jx(Ix(e));return`${r}${n}`},dce=(e,t,r)=>{const n=Ix(e);return n.length>0?jx(n):pce(t,r)},hce=({storageField:e="x-normalized",operationIdNormalizer:t=dce}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:i,namespace:s}=r,a=[],o=[],u=[];let c;return{visitor:{OpenApi3_1Element:{enter(l){c=new mf(l,e,"operation-ids")},leave(){const l=hre(f=>we(f.operationId),o);Object.entries(l).forEach(([f,h])=>{Array.isArray(h)&&(h.length<=1||h.forEach((d,g)=>{const y=`${f}${g+1}`;d.operationId=new s.elements.String(y)}))}),u.forEach(f=>{if(typeof f.operationId>"u")return;const h=String(we(f.operationId)),d=o.find(g=>we(g.meta.get("originalOperationId"))===h);typeof d>"u"||(f.operationId=Le.safe(d.operationId),f.meta.set("originalOperationId",h),f.set("__originalOperationId",h))}),o.length=0,u.length=0,c=void 0}},PathItemElement:{enter(l){const f=su("path",we(l.meta.get("path")));a.push(f)},leave(){a.pop()}},OperationElement:{enter(l,f,h,d,g){if(typeof l.operationId>"u")return;const y=i([...g,h,l]);if(c.includes(y))return;const v=String(we(l.operationId)),E=Ah(a),b=su("method",we(l.meta.get("http-method"))),S=t(v,E,b);v!==S&&(l.operationId=new s.elements.String(S),l.set("__originalOperationId",v),l.meta.set("originalOperationId",v),o.push(l),c.append(y))}},LinkElement:{leave(l){n.isLinkElement(l)&&(typeof l.operationId>"u"||u.push(l))}}}}},mce=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new mf(s,e,"parameter-examples")},leave(){i=void 0}},ParameterElement:{leave(s,a,o,u,c){var l,f;if(c.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((l=s.schema)===null||l===void 0?void 0:l.example)>"u"&&typeof((f=s.schema)===null||f===void 0?void 0:f.examples)>"u")return;const h=n([...c,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const d=s.examples.map(g=>Le.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Le(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Le(s.example)),i.append(h)))}}}}}},gce=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new mf(s,e,"header-examples")},leave(){i=void 0}},HeaderElement:{leave(s,a,o,u,c){var l,f;if(c.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((l=s.schema)===null||l===void 0?void 0:l.example)>"u"&&typeof((f=s.schema)===null||f===void 0?void 0:f.examples)>"u")return;const h=n([...c,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const d=s.examples.map(g=>Le.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Le(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Le(s.example)),i.append(h)))}}}}}},yce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xh||e(n)&&t("callback",n)&&r("object",n)),vce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zh||e(n)&&t("components",n)&&r("object",n)),bce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qh||e(n)&&t("contact",n)&&r("object",n)),_ce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof em||e(n)&&t("example",n)&&r("object",n)),Ece=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tm||e(n)&&t("externalDocumentation",n)&&r("object",n)),Sce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rm||e(n)&&t("header",n)&&r("object",n)),wce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nm||e(n)&&t("info",n)&&r("object",n)),tU=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ga||e(n)&&t("jsonSchemaDialect",n)&&r("string",n)),xce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof im||e(n)&&t("license",n)&&r("object",n)),Ace=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sm||e(n)&&t("link",n)&&r("object",n)),Oce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oC||e(n)&&t("openapi",n)&&r("string",n)),rU=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof xa||e(i)&&t("openApi3_1",i)&&r("object",i)&&n("api",i)),nU=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof of||e(n)&&t("operation",n)&&r("object",n)),Cce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof om||e(n)&&t("parameter",n)&&r("object",n)),Ya=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ga||e(n)&&t("pathItem",n)&&r("object",n)),Rce=e=>{if(!Ya(e)||!it(e.$ref))return!1;const t=we(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Tce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof um||e(n)&&t("paths",n)&&r("object",n)),mo=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Aa||e(n)&&t("reference",n)&&r("object",n)),Ice=e=>{if(!mo(e)||!it(e.$ref))return!1;const t=we(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},jce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cm||e(n)&&t("requestBody",n)&&r("object",n)),kce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lm||e(n)&&t("response",n)&&r("object",n)),Pce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fm||e(n)&&t("responses",n)&&r("object",n)),ya=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ho||e(n)&&t("schema",n)&&r("object",n)),fC=e=>kl(e)&&e.classes.includes("boolean-json-schema"),Nce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dm||e(n)&&t("securityRequirement",n)&&r("object",n)),Mce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hm||e(n)&&t("securityScheme",n)&&r("object",n)),Dce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mm||e(n)&&t("server",n)&&r("object",n)),qce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gm||e(n)&&t("serverVariable",n)&&r("object",n)),$ce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof am||e(n)&&t("mediaType",n)&&r("object",n)),Fce=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:fC,isCallbackElement:yce,isComponentsElement:vce,isContactElement:bce,isExampleElement:_ce,isExternalDocumentationElement:Ece,isHeaderElement:Sce,isInfoElement:wce,isJsonSchemaDialectElement:tU,isLicenseElement:xce,isLinkElement:Ace,isMediaTypeElement:$ce,isOpenApi3_1Element:rU,isOpenapiElement:Oce,isOperationElement:nU,isParameterElement:Cce,isPathItemElement:Ya,isPathItemElementExternal:Rce,isPathsElement:Tce,isReferenceElement:mo,isReferenceElementExternal:Ice,isRequestBodyElement:jce,isResponseElement:kce,isResponsesElement:Pce,isSchemaElement:ya,isSecurityRequirementElement:Nce,isSecuritySchemeElement:Mce,isServerElement:Dce,isServerVariableElement:qce},Symbol.toStringTag,{value:"Module"})),Lce=e=>{const t=e.reduce((r,n,i)=>{if($i(n)){const s=String(we(n.key));r.push(s)}else if(vn(e[i-2])){const s=String(e[i-2].content.indexOf(n));r.push(s)}return r},[]);return w9(t)},iU=()=>{const e=Ls(lC);return{predicates:{...Fce,isElement:Sr,isStringElement:it,isArrayElement:vn,isObjectElement:Ft,isMemberElement:$i,isServersElement:M9,includesClasses:Mh,hasElementSourceMap:Pl},ancestorLineageToJSONPointer:Lce,namespace:e}};class Bce extends ke(pt,De){constructor(t){super(t),this.element=new xa,this.specPath=rt(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(t){return this.openApiGenericElement=t,pt.prototype.ObjectElement.call(this,t)}}const Uce=ge.visitors.document.objects.Info.$visitor;class Vce extends Uce{constructor(t){super(t),this.element=new nm}}const zce=ge.visitors.document.objects.Contact.$visitor;class Wce extends zce{constructor(t){super(t),this.element=new Qh}}const Jce=ge.visitors.document.objects.License.$visitor;class Kce extends Jce{constructor(t){super(t),this.element=new im}}const Hce=ge.visitors.document.objects.Link.$visitor;class Gce extends Hce{constructor(t){super(t),this.element=new sm}}class Yce extends ke(Fi,De){StringElement(t){const r=new Ga(we(t));return this.copyMetaAndAttributes(t,r),this.element=r,wt}}const Xce=ge.visitors.document.objects.Server.$visitor;class Zce extends Xce{constructor(t){super(t),this.element=new mm}}const Qce=ge.visitors.document.objects.ServerVariable.$visitor;class ele extends Qce{constructor(t){super(t),this.element=new gm}}const tle=ge.visitors.document.objects.MediaType.$visitor;class rle extends tle{constructor(t){super(t),this.element=new am}}const nle=ge.visitors.document.objects.SecurityRequirement.$visitor;class ile extends nle{constructor(t){super(t),this.element=new dm}}const sle=ge.visitors.document.objects.Components.$visitor;class ale extends sle{constructor(t){super(t),this.element=new Zh}}const ole=ge.visitors.document.objects.Tag.$visitor;class ule extends ole{constructor(t){super(t),this.element=new uC}}const cle=ge.visitors.document.objects.Reference.$visitor;class lle extends cle{constructor(t){super(t),this.element=new Aa}}const fle=ge.visitors.document.objects.Parameter.$visitor;class ple extends fle{constructor(t){super(t),this.element=new om}}const dle=ge.visitors.document.objects.Header.$visitor;class hle extends dle{constructor(t){super(t),this.element=new rm}}class mle extends ke(pt,jr,De){constructor(t){super(t),this.element=new ho,this.specPath=rt(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ga.default,this.passingOptionsNames.push("parent")}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=pt.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(t){return Mr.prototype.BooleanElement.call(this,t)}get defaultDialectIdentifier(){let t;return this.openApiSemanticElement!==void 0&&tU(this.openApiSemanticElement.jsonSchemaDialect)?t=we(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&it(this.openApiGenericElement.get("jsonSchemaDialect"))?t=we(this.openApiGenericElement.get("jsonSchemaDialect")):t=we(this.jsonSchemaDefaultDialect),t}handleDialectIdentifier(t){return Mr.prototype.handleDialectIdentifier.call(this,t)}handleSchemaIdentifier(t){return Mr.prototype.handleSchemaIdentifier.call(this,t)}}class gle extends V9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}let yle=class extends z9{constructor(t){super(t),this.passingOptionsNames.push("parent")}};class vle extends W9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class ble extends J9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class _le extends K9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Ele extends Z9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Sle extends H9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class wle extends G9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}const xle=ge.visitors.document.objects.Discriminator.$visitor;class Ale extends xle{constructor(t){super(t),this.element=new nC,this.canSupportSpecificationExtensions=!0}}const Ole=ge.visitors.document.objects.XML.$visitor;class Cle extends Ole{constructor(t){super(t),this.element=new cC}}class Rle extends ke(dt,De){constructor(t){super(t),this.element=new td,this.specPath=rt(["document","objects","Schema"])}}class Tle extends ke(dt,De){constructor(t){super(t),this.element=new Rx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(mo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Ile=ge.visitors.document.objects.Example.$visitor;class jle extends Ile{constructor(t){super(t),this.element=new em}}const kle=ge.visitors.document.objects.ExternalDocumentation.$visitor;class Ple extends kle{constructor(t){super(t),this.element=new tm}}const Nle=ge.visitors.document.objects.Encoding.$visitor;class Mle extends Nle{constructor(t){super(t),this.element=new iC}}const Dle=ge.visitors.document.objects.Paths.$visitor;class qle extends Dle{constructor(t){super(t),this.element=new um}}const $le=ge.visitors.document.objects.RequestBody.$visitor;class Fle extends $le{constructor(t){super(t),this.element=new cm}}const hF=ge.visitors.document.objects.Callback.$visitor;class Lle extends hF{constructor(t){super(t),this.element=new Xh,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=hF.prototype.ObjectElement.call(this,t);return this.element.filter(mo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Ble=ge.visitors.document.objects.Response.$visitor;class Ule extends Ble{constructor(t){super(t),this.element=new lm}}const Vle=ge.visitors.document.objects.Responses.$visitor;class zle extends Vle{constructor(t){super(t),this.element=new fm}}const Wle=ge.visitors.document.objects.Operation.$visitor;class Jle extends Wle{constructor(t){super(t),this.element=new of}}const Kle=ge.visitors.document.objects.PathItem.$visitor;class Hle extends Kle{constructor(t){super(t),this.element=new ga}}const Gle=ge.visitors.document.objects.SecurityScheme.$visitor;class Yle extends Gle{constructor(t){super(t),this.element=new hm}}const Xle=ge.visitors.document.objects.OAuthFlows.$visitor;class Zle extends Xle{constructor(t){super(t),this.element=new aC}}const Qle=ge.visitors.document.objects.OAuthFlow.$visitor;class efe extends Qle{constructor(t){super(t),this.element=new sC}}class tfe extends ke(dt,De){constructor(t){super(t),this.element=new Tx,this.specPath=r=>tr(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(mo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(Ya).forEach((n,i)=>{n.setMetaProperty("webhook-name",we(i))}),r}}const{JSONSchema:rfe,LinkDescription:nfe}=Q9.visitors.document.objects,ife={visitors:{value:ge.visitors.value,document:{objects:{OpenApi:{$visitor:Bce,fixedFields:{openapi:ge.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Yce,servers:ge.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:tfe,components:{$ref:"#/visitors/document/objects/Components"},security:ge.visitors.document.objects.OpenApi.fixedFields.security,tags:ge.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Vce,fixedFields:{title:ge.visitors.document.objects.Info.fixedFields.title,description:ge.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:ge.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ge.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Wce,fixedFields:{name:ge.visitors.document.objects.Contact.fixedFields.name,url:ge.visitors.document.objects.Contact.fixedFields.url,email:ge.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Kce,fixedFields:{name:ge.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:ge.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Zce,fixedFields:{url:ge.visitors.document.objects.Server.fixedFields.url,description:ge.visitors.document.objects.Server.fixedFields.description,variables:ge.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:ele,fixedFields:{enum:ge.visitors.document.objects.ServerVariable.fixedFields.enum,default:ge.visitors.document.objects.ServerVariable.fixedFields.default,description:ge.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:ale,fixedFields:{schemas:Rle,responses:ge.visitors.document.objects.Components.fixedFields.responses,parameters:ge.visitors.document.objects.Components.fixedFields.parameters,examples:ge.visitors.document.objects.Components.fixedFields.examples,requestBodies:ge.visitors.document.objects.Components.fixedFields.requestBodies,headers:ge.visitors.document.objects.Components.fixedFields.headers,securitySchemes:ge.visitors.document.objects.Components.fixedFields.securitySchemes,links:ge.visitors.document.objects.Components.fixedFields.links,callbacks:ge.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Tle}},Paths:{$visitor:qle},PathItem:{$visitor:Hle,fixedFields:{$ref:ge.visitors.document.objects.PathItem.fixedFields.$ref,summary:ge.visitors.document.objects.PathItem.fixedFields.summary,description:ge.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:ge.visitors.document.objects.PathItem.fixedFields.servers,parameters:ge.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Jle,fixedFields:{tags:ge.visitors.document.objects.Operation.fixedFields.tags,summary:ge.visitors.document.objects.Operation.fixedFields.summary,description:ge.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:ge.visitors.document.objects.Operation.fixedFields.operationId,parameters:ge.visitors.document.objects.Operation.fixedFields.parameters,requestBody:ge.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ge.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:ge.visitors.document.objects.Operation.fixedFields.deprecated,security:ge.visitors.document.objects.Operation.fixedFields.security,servers:ge.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Ple,fixedFields:{description:ge.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:ge.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:ple,fixedFields:{name:ge.visitors.document.objects.Parameter.fixedFields.name,in:ge.visitors.document.objects.Parameter.fixedFields.in,description:ge.visitors.document.objects.Parameter.fixedFields.description,required:ge.visitors.document.objects.Parameter.fixedFields.required,deprecated:ge.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:ge.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:ge.visitors.document.objects.Parameter.fixedFields.style,explode:ge.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:ge.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ge.visitors.document.objects.Parameter.fixedFields.example,examples:ge.visitors.document.objects.Parameter.fixedFields.examples,content:ge.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Fle,fixedFields:{description:ge.visitors.document.objects.RequestBody.fixedFields.description,content:ge.visitors.document.objects.RequestBody.fixedFields.content,required:ge.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:rle,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:ge.visitors.document.objects.MediaType.fixedFields.example,examples:ge.visitors.document.objects.MediaType.fixedFields.examples,encoding:ge.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Mle,fixedFields:{contentType:ge.visitors.document.objects.Encoding.fixedFields.contentType,headers:ge.visitors.document.objects.Encoding.fixedFields.headers,style:ge.visitors.document.objects.Encoding.fixedFields.style,explode:ge.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:ge.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:zle,fixedFields:{default:ge.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Ule,fixedFields:{description:ge.visitors.document.objects.Response.fixedFields.description,headers:ge.visitors.document.objects.Response.fixedFields.headers,content:ge.visitors.document.objects.Response.fixedFields.content,links:ge.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Lle},Example:{$visitor:jle,fixedFields:{summary:ge.visitors.document.objects.Example.fixedFields.summary,description:ge.visitors.document.objects.Example.fixedFields.description,value:ge.visitors.document.objects.Example.fixedFields.value,externalValue:ge.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Gce,fixedFields:{operationRef:ge.visitors.document.objects.Link.fixedFields.operationRef,operationId:ge.visitors.document.objects.Link.fixedFields.operationId,parameters:ge.visitors.document.objects.Link.fixedFields.parameters,requestBody:ge.visitors.document.objects.Link.fixedFields.requestBody,description:ge.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:hle,fixedFields:{description:ge.visitors.document.objects.Header.fixedFields.description,required:ge.visitors.document.objects.Header.fixedFields.required,deprecated:ge.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:ge.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:ge.visitors.document.objects.Header.fixedFields.style,explode:ge.visitors.document.objects.Header.fixedFields.explode,allowReserved:ge.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ge.visitors.document.objects.Header.fixedFields.example,examples:ge.visitors.document.objects.Header.fixedFields.examples,content:ge.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:ule,fixedFields:{name:ge.visitors.document.objects.Tag.fixedFields.name,description:ge.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:lle,fixedFields:{$ref:ge.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...nfe},Schema:{$visitor:mle,fixedFields:{...rfe.fixedFields,$defs:gle,allOf:yle,anyOf:vle,oneOf:ble,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:_le,prefixItems:Ele,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Sle,patternProperties:wle,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Ale,fixedFields:{propertyName:ge.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:ge.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Cle,fixedFields:{name:ge.visitors.document.objects.XML.fixedFields.name,namespace:ge.visitors.document.objects.XML.fixedFields.namespace,prefix:ge.visitors.document.objects.XML.fixedFields.prefix,attribute:ge.visitors.document.objects.XML.fixedFields.attribute,wrapped:ge.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Yle,fixedFields:{type:ge.visitors.document.objects.SecurityScheme.fixedFields.type,description:ge.visitors.document.objects.SecurityScheme.fixedFields.description,name:ge.visitors.document.objects.SecurityScheme.fixedFields.name,in:ge.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:ge.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:ge.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:ge.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Zle,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:efe,fixedFields:{authorizationUrl:ge.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:ge.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:ge.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:ge.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:ile}},extension:{$visitor:ge.visitors.document.extension.$visitor}}}},sfe=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ce.refract(e),i=Sa(ife),s=Fr(t,i),a=new s({specObj:i});return Ir(n,a),ps(a.element,r,{toolboxCreator:iU,visitorOptions:{keyMap:ns,nodeTypeGetter:ki}})},It=e=>(t,r={})=>sfe(t,{specPath:e,...r});Xh.refract=It(["visitors","document","objects","Callback","$visitor"]);Zh.refract=It(["visitors","document","objects","Components","$visitor"]);Qh.refract=It(["visitors","document","objects","Contact","$visitor"]);em.refract=It(["visitors","document","objects","Example","$visitor"]);nC.refract=It(["visitors","document","objects","Discriminator","$visitor"]);iC.refract=It(["visitors","document","objects","Encoding","$visitor"]);tm.refract=It(["visitors","document","objects","ExternalDocumentation","$visitor"]);rm.refract=It(["visitors","document","objects","Header","$visitor"]);nm.refract=It(["visitors","document","objects","Info","$visitor"]);Ga.refract=It(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);im.refract=It(["visitors","document","objects","License","$visitor"]);sm.refract=It(["visitors","document","objects","Link","$visitor"]);am.refract=It(["visitors","document","objects","MediaType","$visitor"]);sC.refract=It(["visitors","document","objects","OAuthFlow","$visitor"]);aC.refract=It(["visitors","document","objects","OAuthFlows","$visitor"]);oC.refract=It(["visitors","document","objects","OpenApi","fixedFields","openapi"]);xa.refract=It(["visitors","document","objects","OpenApi","$visitor"]);of.refract=It(["visitors","document","objects","Operation","$visitor"]);om.refract=It(["visitors","document","objects","Parameter","$visitor"]);ga.refract=It(["visitors","document","objects","PathItem","$visitor"]);um.refract=It(["visitors","document","objects","Paths","$visitor"]);Aa.refract=It(["visitors","document","objects","Reference","$visitor"]);cm.refract=It(["visitors","document","objects","RequestBody","$visitor"]);lm.refract=It(["visitors","document","objects","Response","$visitor"]);fm.refract=It(["visitors","document","objects","Responses","$visitor"]);ho.refract=It(["visitors","document","objects","Schema","$visitor"]);dm.refract=It(["visitors","document","objects","SecurityRequirement","$visitor"]);hm.refract=It(["visitors","document","objects","SecurityScheme","$visitor"]);mm.refract=It(["visitors","document","objects","Server","$visitor"]);gm.refract=It(["visitors","document","objects","ServerVariable","$visitor"]);uC.refract=It(["visitors","document","objects","Tag","$visitor"]);cC.refract=It(["visitors","document","objects","XML","$visitor"]);class afe extends Ml{constructor(t){super({...t??{},name:"binary"})}canParse(t){return this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension)}parse(t){try{const r=unescape(encodeURIComponent(t.toString())),n=btoa(r),i=new Ni;if(n.length!==0){const s=new ce.StringElement(n);s.classes.push("result"),i.push(s)}return i}catch(r){throw new Is(`Error parsing "${t.uri}"`,{cause:r})}}}class ofe extends xie{constructor(t){super({...t??{},name:"openapi-3-1"})}canResolve(t,r){const n=r.dereference.strategies.find(i=>i.name==="openapi-3-1");return n===void 0?!1:n.canDereference(t,r)}async resolve(t,r){const n=r.dereference.strategies.find(a=>a.name==="openapi-3-1");if(n===void 0)throw new K8('"openapi-3-1" dereference strategy is not available.');const i=new ou,s=_8(r,{resolve:{internal:!1},dereference:{refSet:i}});return await n.dereference(t,s),i}}const{AbortController:ufe,AbortSignal:cfe}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=ufe);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=cfe);class lfe extends wie{constructor({swaggerHTTPClient:r=qc,swaggerHTTPClientConfig:n={},...i}={}){super({...i,name:"http-swagger-client"});z(this,"swaggerHTTPClient",qc);z(this,"swaggerHTTPClientConfig");this.swaggerHTTPClient=r,this.swaggerHTTPClientConfig=n}getHttpClient(){return this.swaggerHTTPClient}async read(r){const n=this.getHttpClient(),i=new AbortController,{signal:s}=i,a=setTimeout(()=>{i.abort()},this.timeout),o=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",u=this.redirects===0?"error":"follow",c=this.redirects>0?this.redirects:void 0;try{return(await n({url:r.uri,signal:s,userFetch:async(f,h)=>{let d=await fetch(f,h);try{d.headers.delete("Content-Type")}catch{d=new Response(d.body,{...d,headers:new Headers(d.headers)}),d.headers.delete("Content-Type")}return d},credentials:o,redirect:u,follow:c,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(l){throw new E8(`Error downloading "${r.uri}"`,{cause:l})}finally{clearTimeout(a)}}}class ffe extends Ml{constructor(t={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...t})}async canParse(t){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension),n=this.mediaTypes.includes(t.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return JSON.parse(t.toString()),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new Is("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ni,n=t.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const i=J8(JSON.parse(n));return i.classes.push("result"),r.push(i),r}catch(i){throw new Is(`Error parsing "${t.uri}"`,{cause:i})}}}class pfe extends Ml{constructor(t={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...t})}async canParse(t){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension),n=this.mediaTypes.includes(t.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return Ja.load(t.toString(),{schema:Cc}),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new Is("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ni,n=t.toString();try{const i=Ja.load(n,{schema:Cc});if(this.allowEmpty&&typeof i>"u")return r;const s=J8(i);return s.classes.push("result"),r.push(s),r}catch(i){throw new Is(`Error parsing "${t.uri}"`,{cause:i})}}}class dfe extends Ml{constructor(r={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new Z2(...cu.filterByFormat("generic"),...cu.filterByFormat("json")),...r});z(this,"detectionRegExp",/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),i=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(i)return!0;if(!i)try{const s=r.toString();return JSON.parse(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Is("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ni,i=r.toString();if(this.allowEmpty&&i.trim()==="")return n;try{const s=JSON.parse(i),a=xa.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Is(`Error parsing "${r.uri}"`,{cause:s})}}}class hfe extends Ml{constructor(r={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new Z2(...cu.filterByFormat("generic"),...cu.filterByFormat("yaml")),...r});z(this,"detectionRegExp",/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),i=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(i)return!0;if(!i)try{const s=r.toString();return Ja.load(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Is("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ni,i=r.toString();try{const s=Ja.load(i,{schema:Cc});if(this.allowEmpty&&typeof s>"u")return n;const a=xa.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Is(`Error parsing "${r.uri}"`,{cause:s})}}}const ym=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),fu=e=>{const t=v8(e);return O2("#",t)},mfe=e=>{if(!ym(e))throw new Rie(e);return e},pC=(e,t)=>{const r=mfe(e),n=U8(i=>ya(i)&&we(i.$anchor)===r,t);if(Ea(n))throw new Oie(`Evaluation failed on token: "${r}"`);return n},sU=(e,t)=>{if(typeof t.$ref>"u")return;const r=v8(we(t.$ref)),n=we(t.meta.get("ancestorsSchemaIdentifiers"));return`${lo((s,a)=>Kr(s,jh(Ut(a))),e,[...n,we(t.$ref)])}${r==="#"?"":r}`},gfe=(e,t)=>{if(typeof t.$id>"u")return;const r=we(t.meta.get("ancestorsSchemaIdentifiers"));return lo((n,i)=>Kr(n,jh(Ut(i))),e,[...r,we(t.$id)])},_c=e=>{if(_c.cache.has(e))return _c.cache.get(e);const t=ho.refract(e);return _c.cache.set(e,t),t};_c.cache=new WeakMap;const en=e=>Wa(e)?_c(e):e,vm=(e,t)=>{const{cache:r}=vm,n=Ut(e),i=u=>ya(u)&&typeof u.$id<"u";if(!r.has(t)){const u=oie(i,t);r.set(t,Array.from(u))}const s=r.get(t).find(u=>gfe(n,u)===n);if(Ea(s))throw new L2(`Evaluation failed on URI: "${e}"`);let a,o;return ym(fu(e))?(a=pC,o=fu(e)):(a=Ii,o=ci(e)),a(o,s)};vm.cache=new WeakMap;const p1=Ir[Symbol.for("nodejs.util.promisify.custom")],Ur=new $2,Hi=(e,t,r,n)=>{$i(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class Jo{constructor({reference:t,namespace:r,options:n,indirections:i=[],ancestors:s=new u1,refractCache:a=new Map}){z(this,"indirections");z(this,"namespace");z(this,"reference");z(this,"options");z(this,"ancestors");z(this,"refractCache");this.indirections=i,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new u1(...s),this.refractCache=a}toBaseURI(t){return Kr(this.reference.uri,jh(Ut(t)))}async toReference(t){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Tie(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(t),{refSet:n}=this.reference;if(n.has(r))return n.find(o8(r,"uri"));const i=await One(Yi(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new As({uri:r,value:Le(i),depth:this.reference.depth+1});if(n.add(s),this.options.dereference.immutable){const a=new As({uri:`immutable://${r}`,value:i,depth:this.reference.depth+1});n.add(a)}return s}toAncestorLineage(t){const r=new Set(t.filter(Sr));return[new u1(...this.ancestors,r),r]}async ReferenceElement(t,r,n,i,s,a){if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(we(t.$ref)),l=Ut(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return!1;const h=await this.toReference(we(t.$ref)),d=Kr(c,we(t.$ref));this.indirections.push(t);const g=ci(d);let y=Ii(g,h.value.result);if(y.id=Ur.identify(y),Wa(y)){const _=we(t.meta.get("referenced-element")),A=`${_}-${we(Ur.identify(y))}`;this.refractCache.has(A)?y=this.refractCache.get(A):tr(y)?(y=Aa.refract(y),y.setMetaProperty("referenced-element",_),this.refractCache.set(A,y)):(y=this.namespace.getElementClass(_).refract(y),this.refractCache.set(A,y))}if(t===y)throw new pr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new zo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new pr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const _=new ce.RefElement(y.id,{type:"reference",uri:h.uri,$ref:we(t.$ref)}),C=((v=(E=this.options.dereference.strategyOpts["openapi-3-1"])===null||E===void 0?void 0:E.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(_);return a.replaceWith(C,Hi),n?!1:C}}const b=Ut(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||mo(y)||S)&&!o.includesCycle(y)){u.add(t);const _=new Jo({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});y=await p1(y,_,{keyMap:ns,nodeTypeGetter:ki}),u.delete(t)}this.indirections.pop();const x=hn(y);return x.setMetaProperty("id",Ur.generateId()),x.setMetaProperty("ref-fields",{$ref:we(t.$ref),description:we(t.description),summary:we(t.summary)}),x.setMetaProperty("ref-origin",h.uri),x.setMetaProperty("ref-referencing-element-id",Le(Ur.identify(t))),Ft(y)&&Ft(x)&&(t.hasKey("description")&&"description"in y&&(x.remove("description"),x.set("description",t.get("description"))),t.hasKey("summary")&&"summary"in y&&(x.remove("summary"),x.set("summary",t.get("summary")))),a.replaceWith(x,Hi),n?!1:x}async PathItemElement(t,r,n,i,s,a){if(!it(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(we(t.$ref)),l=Ut(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return;const h=await this.toReference(we(t.$ref)),d=Kr(c,we(t.$ref));this.indirections.push(t);const g=ci(d);let y=Ii(g,h.value.result);if(y.id=Ur.identify(y),Wa(y)){const x=`path-item-${we(Ur.identify(y))}`;this.refractCache.has(x)?y=this.refractCache.get(x):(y=ga.refract(y),this.refractCache.set(x,y))}if(t===y)throw new pr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new zo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new pr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const x=new ce.RefElement(y.id,{type:"path-item",uri:h.uri,$ref:we(t.$ref)}),A=((v=(E=this.options.dereference.strategyOpts["openapi-3-1"])===null||E===void 0?void 0:E.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(x);return a.replaceWith(A,Hi),n?!1:A}}const b=Ut(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||Ya(y)&&it(y.$ref)||S)&&!o.includesCycle(y)){u.add(t);const x=new Jo({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});y=await p1(y,x,{keyMap:ns,nodeTypeGetter:ki}),u.delete(t)}if(this.indirections.pop(),Ya(y)){const x=new ga([...y.content],Le(y.meta),Le(y.attributes));x.setMetaProperty("id",Ur.generateId()),t.forEach((_,A,C)=>{x.remove(we(A)),x.content.push(C)}),x.remove("$ref"),x.setMetaProperty("ref-fields",{$ref:we(t.$ref)}),x.setMetaProperty("ref-origin",h.uri),x.setMetaProperty("ref-referencing-element-id",Le(Ur.identify(t))),y=x}return a.replaceWith(y,Hi),n?void 0:y}async LinkElement(t,r,n,i,s,a){if(!it(t.operationRef)&&!it(t.operationId))return;if(it(t.operationRef)&&it(t.operationId))throw new pr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(it(t.operationRef)){var u;const l=ci(we(t.operationRef)),f=this.toBaseURI(we(t.operationRef)),h=Ut(this.reference.uri)===f,d=!h;if(!this.options.resolve.internal&&h||!this.options.resolve.external&&d)return;const g=await this.toReference(we(t.operationRef));if(o=Ii(l,g.value.result),Wa(o)){const v=`operation-${we(Ur.identify(o))}`;this.refractCache.has(v)?o=this.refractCache.get(v):(o=of.refract(o),this.refractCache.set(v,o))}o=hn(o),o.setMetaProperty("ref-origin",g.uri);const y=hn(t);return(u=y.operationRef)===null||u===void 0||u.meta.set("operation",o),a.replaceWith(y,Hi),n?void 0:y}if(it(t.operationId)){var c;const l=we(t.operationId),f=await this.toReference(Yi(this.reference.uri));if(o=U8(d=>nU(d)&&Sr(d.operationId)&&d.operationId.equals(l),f.value.result),Ea(o))throw new pr(`OperationElement(operationId=${l}) not found.`);const h=hn(t);return(c=h.operationId)===null||c===void 0||c.meta.set("operation",o),a.replaceWith(h,Hi),n?void 0:h}}async ExampleElement(t,r,n,i,s,a){if(!it(t.externalValue))return;if(t.hasKey("value")&&it(t.externalValue))throw new pr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(we(t.externalValue)),u=Ut(this.reference.uri)===o,c=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&c)return;const l=await this.toReference(we(t.externalValue)),f=hn(l.value.result);f.setMetaProperty("ref-origin",l.uri);const h=hn(t);return h.value=f,a.replaceWith(h,Hi),n?void 0:h}async SchemaElement(t,r,n,i,s,a){if(!it(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]);let c=await this.toReference(Yi(this.reference.uri)),{uri:l}=c;const f=sU(l,t),h=Ut(f),d=new Dc({uri:h}),g=Sre(C=>C.canRead(d),this.options.resolve.resolvers),y=!g;let v=Ut(this.reference.uri)===f,E=!v;this.indirections.push(t);let b;try{if(g||y){l=this.toBaseURI(f);const C=f,R=en(c.value.result);if(b=vm(C,R),b=en(b),b.id=Ur.identify(b),!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return}else{if(l=this.toBaseURI(f),v=Ut(this.reference.uri)===l,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;c=await this.toReference(Yi(f));const C=ci(f),R=en(c.value.result);b=Ii(C,R),b=en(b),b.id=Ur.identify(b)}}catch(C){if(y&&C instanceof L2)if(ym(fu(f))){if(v=Ut(this.reference.uri)===l,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;c=await this.toReference(Yi(f));const R=fu(f),O=en(c.value.result);b=pC(R,O),b=en(b),b.id=Ur.identify(b)}else{if(l=this.toBaseURI(f),v=Ut(this.reference.uri)===l,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;c=await this.toReference(Yi(f));const R=ci(f),O=en(c.value.result);b=Ii(R,O),b=en(b),b.id=Ur.identify(b)}else throw C}if(t===b)throw new pr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new zo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(b)){if(c.refSet.circular=!0,this.options.dereference.circular==="error")throw new pr("Circular reference detected");if(this.options.dereference.circular==="replace"){var S,x;const C=new ce.RefElement(b.id,{type:"json-schema",uri:c.uri,$ref:we(t.$ref)}),O=((S=(x=this.options.dereference.strategyOpts["openapi-3-1"])===null||x===void 0?void 0:x.circularReplacer)!==null&&S!==void 0?S:this.options.dereference.circularReplacer)(C);return a.replaceWith(O,Hi),n?!1:O}}const _=Ut(c.refSet.rootRef.uri)!==c.uri,A=["error","replace"].includes(this.options.dereference.circular);if((E||_||ya(b)&&it(b.$ref)||A)&&!o.includesCycle(b)){u.add(t);const C=new Jo({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});b=await p1(b,C,{keyMap:ns,nodeTypeGetter:ki}),u.delete(t)}if(this.indirections.pop(),fC(b)){const C=Le(b);return C.setMetaProperty("id",Ur.generateId()),C.setMetaProperty("ref-fields",{$ref:we(t.$ref)}),C.setMetaProperty("ref-origin",c.uri),C.setMetaProperty("ref-referencing-element-id",Le(Ur.identify(t))),a.replaceWith(C,Hi),n?!1:C}if(ya(b)){const C=new ho([...b.content],Le(b.meta),Le(b.attributes));C.setMetaProperty("id",Ur.generateId()),t.forEach((R,O,M)=>{C.remove(we(O)),C.content.push(M)}),C.remove("$ref"),C.setMetaProperty("ref-fields",{$ref:we(t.$ref)}),C.setMetaProperty("ref-origin",c.uri),C.setMetaProperty("ref-referencing-element-id",Le(Ur.identify(t))),b=C}return a.replaceWith(b,Hi),n?void 0:b}}const yfe=Ir[Symbol.for("nodejs.util.promisify.custom")];class vfe extends Aie{constructor(t){super({...t??{},name:"openapi-3-1"})}canDereference(t){var r;return t.mediaType!=="text/plain"?cu.includes(t.mediaType):rU((r=t.parseResult)===null||r===void 0?void 0:r.result)}async dereference(t,r){var n;const i=Ls(lC),s=(n=r.dereference.refSet)!==null&&n!==void 0?n:new ou,a=new ou;let o=s,u;s.has(t.uri)?u=s.find(o8(t.uri,"uri")):(u=new As({uri:t.uri,value:t.parseResult}),s.add(u)),r.dereference.immutable&&(s.refs.map(f=>new As({...f,value:Le(f.value)})).forEach(f=>a.add(f)),u=a.find(f=>f.uri===t.uri),o=a);const c=new Jo({reference:u,namespace:i,options:r}),l=await yfe(o.rootRef.value,c,{keyMap:ns,nodeTypeGetter:ki});return r.dereference.immutable&&a.refs.filter(f=>f.uri.startsWith("immutable://")).map(f=>new As({...f,uri:f.uri.replace(/^immutable:\/\//,"")})).forEach(f=>s.add(f)),r.dereference.refSet===null&&s.clean(),a.clean(),l}}const bfe=e=>e.slice(2),Ri=e=>{const t=bfe(e);return t.reduce((r,n,i)=>{if($i(n)){const s=String(we(n.key));r.push(s)}else if(vn(t[i-2])){const s=t[i-2].content.indexOf(n);r.push(s)}return r},[])};class _fe{constructor({modelPropertyMacro:t,options:r}){z(this,"modelPropertyMacro");z(this,"options");z(this,"SchemaElement",{leave:(t,r,n,i,s)=>{typeof t.properties>"u"||Ft(t.properties)&&t.properties.forEach(a=>{if(Ft(a))try{const c=this.modelPropertyMacro(we(a));a.set("default",c)}catch(c){var o,u;const l=new Error(c,{cause:c});l.fullPath=[...Ri([...s,n,t]),"properties"],(o=this.options.dereference.dereferenceOpts)===null||o===void 0||(o=o.errors)===null||o===void 0||(u=o.push)===null||u===void 0||u.call(o,l)}})}});this.modelPropertyMacro=t,this.options=r}}class Efe{constructor({options:t}){z(this,"options");z(this,"SchemaElement",{leave(t,r,n,i,s){if(typeof t.allOf>"u")return;if(!vn(t.allOf)){var a,o;const f=new TypeError("allOf must be an array");f.fullPath=[...Ri([...s,n,t]),"allOf"],(a=this.options.dereference.dereferenceOpts)===null||a===void 0||(a=a.errors)===null||a===void 0||(o=a.push)===null||o===void 0||o.call(a,f);return}if(t.allOf.isEmpty){t.remove("allOf");return}if(!t.allOf.content.every(ya)){var c,l;const f=new TypeError("Elements in allOf must be objects");f.fullPath=[...Ri([...s,n,t]),"allOf"],(c=this.options.dereference.dereferenceOpts)===null||c===void 0||(c=c.errors)===null||c===void 0||(l=c.push)===null||l===void 0||l.call(c,f);return}for(;t.hasKey("allOf");){const{allOf:f}=t;t.remove("allOf");const h=ss.all([...f.content,t]);if(t.hasKey("$$ref")||h.remove("$$ref"),t.hasKey("example")){const d=h.getMember("example");d&&(d.value=t.get("example"))}if(t.hasKey("examples")){const d=h.getMember("examples");d&&(d.value=t.get("examples"))}t.content=h.content}}});this.options=t}}var Ba;class Sfe{constructor({parameterMacro:t,options:r}){z(this,"parameterMacro");z(this,"options");Ro(this,Ba);z(this,"OperationElement",{enter:t=>{Ym(this,Ba,t)},leave:()=>{Ym(this,Ba,void 0)}});z(this,"ParameterElement",{leave:(t,r,n,i,s)=>{const a=Ai(this,Ba)?we(Ai(this,Ba)):null,o=we(t);try{const l=this.parameterMacro(a,o);t.set("default",l)}catch(l){var u,c;const f=new Error(l,{cause:l});f.fullPath=Ri([...s,n]),(u=this.options.dereference.dereferenceOpts)===null||u===void 0||(u=u.errors)===null||u===void 0||(c=u.push)===null||c===void 0||c.call(u,f)}}});this.parameterMacro=t,this.options=r}}Ba=new WeakMap;const Qf=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t};class wfe extends Pi{}const{wrapError:d1}=U2,h1=Ir[Symbol.for("nodejs.util.promisify.custom")],ai=new $2,Ia=(e,t,r,n)=>{$i(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class Ec extends Jo{constructor({allowMetaPatches:r=!0,useCircularStructures:n=!1,basePath:i=null,...s}){super(s);z(this,"useCircularStructures");z(this,"allowMetaPatches");z(this,"basePath");this.allowMetaPatches=r,this.useCircularStructures=n,this.basePath=i}async ReferenceElement(r,n,i,s,a,o){try{if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(we(r.$ref)),E=Ut(this.reference.uri)===v,b=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&b)return!1;const S=await this.toReference(we(r.$ref)),x=Kr(v,we(r.$ref));this.indirections.push(r);const _=ci(x);let A=Ii(_,S.value.result);if(A.id=ai.identify(A),Wa(A)){const M=we(r.meta.get("referenced-element")),k=`${M}-${we(ai.identify(A))}`;this.refractCache.has(k)?A=this.refractCache.get(k):tr(A)?(A=Aa.refract(A),A.setMetaProperty("referenced-element",M),this.refractCache.set(k,A)):(A=this.namespace.getElementClass(M).refract(A),this.refractCache.set(k,A))}if(r===A)throw new pr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new zo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(A)){if(S.refSet.circular=!0,this.options.dereference.circular==="error")throw new pr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const M=new ce.RefElement(A.id,{type:"reference",uri:S.uri,$ref:we(r.$ref),baseURI:x,referencingElement:r}),D=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(M);return o.replaceWith(M,Ia),i?!1:D}}const C=Ut(S.refSet.rootRef.uri)!==S.uri,R=["error","replace"].includes(this.options.dereference.circular);if((b||C||mo(A)||R)&&!g.includesCycle(A)){var l;y.add(r);const M=new Ec({reference:S,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Ri([...a,i,r]),"$ref"]});A=await h1(A,M,{keyMap:ns,nodeTypeGetter:ki}),y.delete(r)}this.indirections.pop();const O=hn(A);if(O.setMetaProperty("ref-fields",{$ref:we(r.$ref),description:we(r.description),summary:we(r.summary)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Le(ai.identify(r))),Ft(A)&&(r.hasKey("description")&&"description"in A&&(O.remove("description"),O.set("description",r.get("description"))),r.hasKey("summary")&&"summary"in A&&(O.remove("summary"),O.set("summary",r.get("summary")))),this.allowMetaPatches&&Ft(O)&&!O.hasKey("$$ref")){const M=Kr(v,x);O.set("$$ref",M)}return o.replaceWith(O,Ia),i?!1:O}catch(g){var f,h,d;const y=Qf(g),v=d1(y,{baseDoc:this.reference.uri,$ref:we(r.$ref),pointer:ci(we(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ri([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async PathItemElement(r,n,i,s,a,o){try{if(!it(r.$ref))return;if(this.indirections.includes(r)||Mh(["cycle"],r.$ref))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(we(r.$ref)),E=Ut(this.reference.uri)===v,b=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&b)return;const S=await this.toReference(we(r.$ref)),x=Kr(v,we(r.$ref));this.indirections.push(r);const _=ci(x);let A=Ii(_,S.value.result);if(A.id=ai.identify(A),Wa(A)){const O=`path-item-${we(ai.identify(A))}`;this.refractCache.has(O)?A=this.refractCache.get(O):(A=ga.refract(A),this.refractCache.set(O,A))}if(r===A)throw new pr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new zo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(A)){if(S.refSet.circular=!0,this.options.dereference.circular==="error")throw new pr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const O=new ce.RefElement(A.id,{type:"path-item",uri:S.uri,$ref:we(r.$ref),baseURI:x,referencingElement:r}),k=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(O);return o.replaceWith(O,Ia),i?!1:k}}const C=Ut(S.refSet.rootRef.uri)!==S.uri,R=["error","replace"].includes(this.options.dereference.circular);if((b||C||Ya(A)&&it(A.$ref)||R)&&!g.includesCycle(A)){var l;y.add(r);const O=new Ec({reference:S,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Ri([...a,i,r]),"$ref"]});A=await h1(A,O,{keyMap:ns,nodeTypeGetter:ki}),y.delete(r)}if(this.indirections.pop(),Ya(A)){const O=new ga([...A.content],Le(A.meta),Le(A.attributes));if(r.forEach((M,k,D)=>{O.remove(we(k)),O.content.push(D)}),O.remove("$ref"),O.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Le(ai.identify(r))),this.allowMetaPatches&&typeof O.get("$$ref")>"u"){const M=Kr(v,x);O.set("$$ref",M)}A=O}return o.replaceWith(A,Ia),i?void 0:A}catch(g){var f,h,d;const y=Qf(g),v=d1(y,{baseDoc:this.reference.uri,$ref:we(r.$ref),pointer:ci(we(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ri([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async SchemaElement(r,n,i,s,a,o){try{if(!it(r.$ref))return;if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]);let v=await this.toReference(Yi(this.reference.uri)),{uri:E}=v;const b=sU(E,r),S=Ut(b),x=new Dc({uri:S}),_=!this.options.resolve.resolvers.some(D=>D.canRead(x)),A=!_;let C=Ut(this.reference.uri)===b,R=!C;this.indirections.push(r);let O;try{if(_||A){E=this.toBaseURI(b);const D=b,P=en(v.value.result);if(O=vm(D,P),O=en(O),O.id=ai.identify(O),!this.options.resolve.internal&&C||!this.options.resolve.external&&R)return}else{if(E=this.toBaseURI(b),C=Ut(this.reference.uri)===E,R=!C,!this.options.resolve.internal&&C||!this.options.resolve.external&&R)return;v=await this.toReference(Yi(b));const D=ci(b),P=en(v.value.result);O=Ii(D,P),O=en(O),O.id=ai.identify(O)}}catch(D){if(A&&D instanceof L2)if(ym(fu(b))){if(C=Ut(this.reference.uri)===E,R=!C,!this.options.resolve.internal&&C||!this.options.resolve.external&&R)return;v=await this.toReference(Yi(b));const P=fu(b),H=en(v.value.result);O=pC(P,H),O=en(O),O.id=ai.identify(O)}else{if(E=this.toBaseURI(we(b)),C=Ut(this.reference.uri)===E,R=!C,!this.options.resolve.internal&&C||!this.options.resolve.external&&R)return;v=await this.toReference(Yi(b));const P=ci(b),H=en(v.value.result);O=Ii(P,H),O=en(O),O.id=ai.identify(O)}else throw D}if(r===O)throw new pr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new zo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(O)){if(v.refSet.circular=!0,this.options.dereference.circular==="error")throw new pr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const D=new ce.RefElement(O.id,{type:"json-schema",uri:v.uri,$ref:we(r.$ref),baseURI:Kr(E,b),referencingElement:r}),H=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(D);return o.replaceWith(H,Ia),i?!1:H}}const M=Ut(v.refSet.rootRef.uri)!==v.uri,k=["error","replace"].includes(this.options.dereference.circular);if((R||M||ya(O)&&it(O.$ref)||k)&&!g.includesCycle(O)){var l;y.add(r);const D=new Ec({reference:v,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:g,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Ri([...a,i,r]),"$ref"]});O=await h1(O,D,{keyMap:ns,nodeTypeGetter:ki}),y.delete(r)}if(this.indirections.pop(),fC(O)){const D=Le(O);return D.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),D.setMetaProperty("ref-origin",v.uri),D.setMetaProperty("ref-referencing-element-id",Le(ai.identify(r))),o.replaceWith(D,Ia),i?!1:D}if(ya(O)){const D=new ho([...O.content],Le(O.meta),Le(O.attributes));if(r.forEach((P,H,Z)=>{D.remove(we(H)),D.content.push(Z)}),D.remove("$ref"),D.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),D.setMetaProperty("ref-origin",v.uri),D.setMetaProperty("ref-referencing-element-id",Le(ai.identify(r))),this.allowMetaPatches&&typeof D.get("$$ref")>"u"){const P=Kr(E,b);D.set("$$ref",P)}O=D}return o.replaceWith(O,Ia),i?void 0:O}catch(g){var f,h,d;const y=Qf(g),v=new wfe(`Could not resolve reference: ${y.message}`,{baseDoc:this.reference.uri,$ref:we(r.$ref),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ri([...a,i,r]),"$ref"],cause:y});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async LinkElement(){}async ExampleElement(r,n,i,s,a,o){try{return await super.ExampleElement(r,n,i,s,a,o)}catch(f){var u,c,l;const h=Qf(f),d=d1(h,{baseDoc:this.reference.uri,externalValue:we(r.externalValue),fullPath:(u=this.basePath)!==null&&u!==void 0?u:[...Ri([...a,i,r]),"externalValue"]});(c=this.options.dereference.dereferenceOpts)===null||c===void 0||(c=c.errors)===null||c===void 0||(l=c.push)===null||l===void 0||l.call(c,d);return}}}const xfe=qh[Symbol.for("nodejs.util.promisify.custom")];class Afe{constructor({parameterMacro:t,modelPropertyMacro:r,mode:n,options:i,...s}){const a=[];a.push(new Ec({...s,options:i})),typeof r=="function"&&a.push(new _fe({modelPropertyMacro:r,options:i})),n!=="strict"&&a.push(new Efe({options:i})),typeof t=="function"&&a.push(new Sfe({parameterMacro:t,options:i}));const o=xfe(a,{nodeTypeGetter:ki});Object.assign(this,o)}}const Ofe=Ir[Symbol.for("nodejs.util.promisify.custom")];class Cfe extends vfe{constructor({allowMetaPatches:r=!1,parameterMacro:n=null,modelPropertyMacro:i=null,mode:s="non-strict",ancestors:a=[],...o}={}){super({...o});z(this,"allowMetaPatches");z(this,"parameterMacro");z(this,"modelPropertyMacro");z(this,"mode");z(this,"ancestors");this.name="openapi-3-1-swagger-client",this.allowMetaPatches=r,this.parameterMacro=n,this.modelPropertyMacro=i,this.mode=s,this.ancestors=[...a]}async dereference(r,n){var i;const s=Ls(lC),a=(i=n.dereference.refSet)!==null&&i!==void 0?i:new ou,o=new ou;let u=a,c;a.has(r.uri)?c=a.find(h=>h.uri===r.uri):(c=new As({uri:r.uri,value:r.parseResult}),a.add(c)),n.dereference.immutable&&(a.refs.map(h=>new As({...h,value:Le(h.value)})).forEach(h=>o.add(h)),c=o.find(h=>h.uri===r.uri),u=o);const l=new Afe({reference:c,namespace:s,options:n,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),f=await Ofe(u.rootRef.value,l,{keyMap:ns,nodeTypeGetter:ki});return n.dereference.immutable&&o.refs.filter(h=>h.uri.startsWith("immutable://")).map(h=>new As({...h,uri:h.uri.replace(/^immutable:\/\//,"")})).forEach(h=>a.add(h)),n.dereference.refSet===null&&a.clean(),o.clean(),f}}const Rfe=e=>{const t=we(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new ce.ObjectElement({$ref:t},Le(r.meta),Le(r.attributes))},bm=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:i,responseInterceptor:s,pathDiscriminator:a=[],allowMetaPatches:o=!1,useCircularStructures:u=!1,skipNormalization:c=!1,parameterMacro:l=null,modelPropertyMacro:f=null,mode:h="non-strict",strategies:d}=e;try{const{cache:g}=bm,y=d.find(Z=>Z.match(t)),v=T2(Ww())?Ww():Zp,E=K2(e),b=Kr(v,E);let S;g.has(t)?S=g.get(t):(S=xa.refract(t),S.classes.push("result"),g.set(t,S));const x=new Ni([S]),_=w9(a),A=_===""?"":`#${_}`,C=Ii(_,S),R=new As({uri:b,value:x}),O=new ou({refs:[R]});_!==""&&(O.rootRef=void 0);const M=[new Set([C])],k=[],D=await Iie(C,{resolve:{baseURI:`${b}${A}`,resolvers:[new lfe({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:s}},strategies:[new ofe]},parse:{mediaType:cu.latest(),parsers:[new dfe({allowEmpty:!1,sourceMap:!1}),new hfe({allowEmpty:!1,sourceMap:!1}),new ffe({allowEmpty:!1,sourceMap:!1}),new pfe({allowEmpty:!1,sourceMap:!1}),new afe({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new Cfe({allowMetaPatches:o,useCircularStructures:u,parameterMacro:l,modelPropertyMacro:f,mode:h,ancestors:M})],refSet:O,dereferenceOpts:{errors:k},immutable:!1,circular:u?"ignore":"replace",circularReplacer:u?b8.dereference.circularReplacer:Rfe}}),P=mie(C,D,S),H=c?P:y.normalize(P);return{spec:we(H),errors:k}}catch(g){if(g instanceof Xw||g instanceof oc)return{spec:t,errors:[]};throw g}};bm.cache=new WeakMap;const mF=e=>{if(!Ft(e))return e;const t=[hce({operationIdNormalizer:(n,i,s)=>$h({operationId:n},i,s,{v2OperationIdCompatibilityMode:!1})}),lce(),fce(),mce(),gce()];return ps(e,t,{toolboxCreator:iU,visitorOptions:{keyMap:ns,nodeTypeGetter:ki}})},Tfe=e=>t=>{const r=xa.refract(t);r.classes.push("result");const n=e(r),i=we(n);return bm.cache.set(i,n),we(n)},Ife={name:"openapi-3-1-apidom",match(e){return Y2(e)},normalize(e){if(!Sr(e)&&Ts(e)&&!e.$$normalized){const t=Tfe(mF)(e);return t.$$normalized=!0,t}return Sr(e)?mF(e):e},async resolve(e){return bm(e)}},jfe=async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,i=K2(e),s=g9(e),a=t||await f9(s,{requestInterceptor:r,responseInterceptor:n})(i),o={...e,spec:a};return e.strategies.find(c=>c.match(a)).resolve(o)},aU=e=>async t=>{const r={...e,...t};return jfe(r)},kfe=aU({strategies:[S9,E9,v9]});function Pfe(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let t="";return t+=`; OpenAPI Server URL templating ABNF syntax
100
+ `,t+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
101
+ `,t+=`server-variable = "{" server-variable-name "}"
102
+ `,t+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
103
+ `,t+=`
104
+ `,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
105
+ `,t+=`; https://www.rfc-editor.org/errata/eid6937
106
+ `,t+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
107
+ `,t+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
108
+ `,t+=` / pct-encoded)
109
+ `,t+=` ; any Unicode character except: CTL, SP,
110
+ `,t+=` ; DQUOTE, "%" (aside from pct-encoded),
111
+ `,t+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',t+=`
112
+ `,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
113
+ `,t+=`DIGIT = %x30-39 ; 0-9
114
+ `,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
115
+ `,t+=`
116
+ `,t+=`pct-encoded = "%" HEXDIG HEXDIG
117
+ `,t+=`
118
+ `,t+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
119
+ `,t+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
120
+ `,t+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
121
+ `,t+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
122
+ `,t+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
123
+ `,t+=` / %xD0000-DFFFD / %xE1000-EFFFD
124
+ `,t+=`
125
+ `,t+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
126
+ `,t}}const go=function(){const t=St,r=Li,n=this,i="parser.js: Parser(): ",s=function(){this.state=t.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=t.ACTIVE,this.phraseLength=0}};n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let a=0,o=0,u=0,c=0,l=0,f,h,d,g,y=new s,v,E,b;const S=()=>{a=0,o=0,u=0,c=0,l=0,f=void 0,h=void 0,d=void 0,g=void 0,y.refresh(),v=void 0,E=void 0,b=void 0},x=()=>{const Q=`${i}initializeCallbacks(): `;let Y;for(v=[],E=[],Y=0;Y<f.length;Y+=1)v[Y]=void 0;for(Y=0;Y<h.length;Y+=1)E[Y]=void 0;let L;const J=[];for(Y=0;Y<f.length;Y+=1)J.push(f[Y].lower);for(Y=0;Y<h.length;Y+=1)J.push(h[Y].lower);for(const ee in n.callbacks)if(n.callbacks.hasOwnProperty(ee)){if(Y=J.indexOf(ee.toLowerCase()),Y<0)throw new Error(`${Q}syntax callback '${ee}' not a rule or udt name`);if(L=n.callbacks[ee]?n.callbacks[ee]:void 0,typeof L=="function"||L===void 0)Y<f.length?v[Y]=L:E[Y-f.length]=L;else throw new Error(`${Q}syntax callback[${ee}] must be function reference or falsy)`)}};n.parse=(Q,Y,L,J)=>{const ee=`${i}parse(): `;S(),g=r.stringToChars(L),f=Q.rules,h=Q.udts;const ne=Y.toLowerCase();let ae;for(const B in f)if(f.hasOwnProperty(B)&&ne===f[B].lower){ae=f[B].index;break}if(ae===void 0)throw new Error(`${ee}start rule name '${startRule}' not recognized`);x(),n.trace&&n.trace.init(f,h,g),n.stats&&n.stats.init(f,h),n.ast&&n.ast.init(f,h,g),b=J,d=[{type:t.RNM,index:ae}],G(0,0),d=void 0;let X=!1;switch(y.state){case t.ACTIVE:throw new Error(`${ee}final state should never be 'ACTIVE'`);case t.NOMATCH:X=!1;break;case t.EMPTY:case t.MATCH:y.phraseLength===g.length?X=!0:X=!1;break;default:throw new Error("unrecognized state")}return{success:X,state:y.state,stateName:t.idName(y.state),length:g.length,matched:y.phraseLength,maxMatched:l,maxTreeDepth:u,nodeHits:c}};const _=(Q,Y)=>{const L=d[Q];for(let J=0;J<L.children.length&&(G(L.children[J],Y),y.state===t.NOMATCH);J+=1);},A=(Q,Y)=>{let L,J,ee,ne;const ae=d[Q];n.ast&&(J=n.ast.getLength()),L=!0,ee=Y,ne=0;for(let X=0;X<ae.children.length;X+=1)if(G(ae.children[X],ee),y.state===t.NOMATCH){L=!1;break}else ee+=y.phraseLength,ne+=y.phraseLength;L?(y.state=ne===0?t.EMPTY:t.MATCH,y.phraseLength=ne):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(J))},C=(Q,Y)=>{let L,J,ee,ne;const ae=d[Q];if(ae.max===0){y.state=t.EMPTY,y.phraseLength=0;return}for(J=Y,ee=0,ne=0,n.ast&&(L=n.ast.getLength());!(J>=g.length||(G(Q+1,J),y.state===t.NOMATCH)||y.state===t.EMPTY||(ne+=1,ee+=y.phraseLength,J+=y.phraseLength,ne===ae.max)););y.state===t.EMPTY||ne>=ae.min?(y.state=ee===0?t.EMPTY:t.MATCH,y.phraseLength=ee):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(L))},R=(Q,Y,L,J)=>{if(Y.phraseLength>L){let ee=`${i}opRNM(${Q.name}): callback function error: `;throw ee+=`sysData.phraseLength: ${Y.phraseLength}`,ee+=` must be <= remaining chars: ${L}`,new Error(ee)}switch(Y.state){case t.ACTIVE:if(!J)throw new Error(`${i}opRNM(${Q.name}): callback function return error. ACTIVE state not allowed.`);break;case t.EMPTY:Y.phraseLength=0;break;case t.MATCH:Y.phraseLength===0&&(Y.state=t.EMPTY);break;case t.NOMATCH:Y.phraseLength=0;break;default:throw new Error(`${i}opRNM(${Q.name}): callback function return error. Unrecognized return state: ${Y.state}`)}},O=(Q,Y)=>{let L,J,ee;const ne=d[Q],ae=f[ne.index],X=v[ae.index];if(a||(J=n.ast&&n.ast.ruleDefined(ne.index),J&&(L=n.ast.getLength(),n.ast.down(ne.index,f[ne.index].name))),X){const B=g.length-Y;X(y,g,Y,b),R(ae,y,B,!0),y.state===t.ACTIVE&&(ee=d,d=ae.opcodes,G(0,Y),d=ee,X(y,g,Y,b),R(ae,y,B,!1))}else ee=d,d=ae.opcodes,G(0,Y),d=ee;a||J&&(y.state===t.NOMATCH?n.ast.setLength(L):n.ast.up(ne.index,ae.name,Y,y.phraseLength))},M=(Q,Y)=>{const L=d[Q];y.state=t.NOMATCH,Y<g.length&&L.min<=g[Y]&&g[Y]<=L.max&&(y.state=t.MATCH,y.phraseLength=1)},k=(Q,Y)=>{const L=d[Q],J=L.string.length;if(y.state=t.NOMATCH,Y+J<=g.length){for(let ee=0;ee<J;ee+=1)if(g[Y+ee]!==L.string[ee])return;y.state=t.MATCH,y.phraseLength=J}},D=(Q,Y)=>{let L;const J=d[Q];y.state=t.NOMATCH;const ee=J.string.length;if(ee===0){y.state=t.EMPTY;return}if(Y+ee<=g.length){for(let ne=0;ne<ee;ne+=1)if(L=g[Y+ne],L>=65&&L<=90&&(L+=32),L!==J.string[ne])return;y.state=t.MATCH,y.phraseLength=ee}},P=(Q,Y,L)=>{if(Y.phraseLength>L){let J=`${i}opUDT(${Q.name}): callback function error: `;throw J+=`sysData.phraseLength: ${Y.phraseLength}`,J+=` must be <= remaining chars: ${L}`,new Error(J)}switch(Y.state){case t.ACTIVE:throw new Error(`${i}opUDT(${Q.name}) ACTIVE state return not allowed.`);case t.EMPTY:if(Q.empty)Y.phraseLength=0;else throw new Error(`${i}opUDT(${Q.name}) may not return EMPTY.`);break;case t.MATCH:if(Y.phraseLength===0)if(Q.empty)Y.state=t.EMPTY;else throw new Error(`${i}opUDT(${Q.name}) may not return EMPTY.`);break;case t.NOMATCH:Y.phraseLength=0;break;default:throw new Error(`${i}opUDT(${Q.name}): callback function return error. Unrecognized return state: ${Y.state}`)}},H=(Q,Y)=>{let L,J,ee;const ne=d[Q],ae=h[ne.index];y.UdtIndex=ae.index,a||(ee=n.ast&&n.ast.udtDefined(ne.index),ee&&(J=f.length+ne.index,L=n.ast.getLength(),n.ast.down(J,ae.name)));const X=g.length-Y;E[ne.index](y,g,Y,b),P(ae,y,X),a||ee&&(y.state===t.NOMATCH?n.ast.setLength(L):n.ast.up(J,ae.name,Y,y.phraseLength))},Z=(Q,Y)=>{switch(a+=1,G(Q+1,Y),a-=1,y.phraseLength=0,y.state){case t.EMPTY:y.state=t.EMPTY;break;case t.MATCH:y.state=t.EMPTY;break;case t.NOMATCH:y.state=t.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}},V=(Q,Y)=>{switch(a+=1,G(Q+1,Y),a-=1,y.phraseLength=0,y.state){case t.EMPTY:case t.MATCH:y.state=t.NOMATCH;break;case t.NOMATCH:y.state=t.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}},G=(Q,Y)=>{const L=`${i}opExecute(): `,J=d[Q];switch(c+=1,o>u&&(u=o),o+=1,y.refresh(),n.trace&&n.trace.down(J,Y),J.type){case t.ALT:_(Q,Y);break;case t.CAT:A(Q,Y);break;case t.REP:C(Q,Y);break;case t.RNM:O(Q,Y);break;case t.TRG:M(Q,Y);break;case t.TBS:k(Q,Y);break;case t.TLS:D(Q,Y);break;case t.UDT:H(Q,Y);break;case t.AND:Z(Q,Y);break;case t.NOT:V(Q,Y);break;default:throw new Error(`${L}unrecognized operator`)}a||Y+y.phraseLength>l&&(l=Y+y.phraseLength),n.stats&&n.stats.collect(J,y),n.trace&&n.trace.up(J,y.state,Y,y.phraseLength),o-=1}},oU=function(){const t="parser.js: Ast()): ",r=St,n=Li,i=this;let s,a,o,u=0;const c=[],l=[],f=[];i.callbacks=[],i.init=(d,g,y)=>{l.length=0,f.length=0,u=0,s=d,a=g,o=y;let v;const E=[];for(v=0;v<s.length;v+=1)E.push(s[v].lower);for(v=0;v<a.length;v+=1)E.push(a[v].lower);for(u=s.length+a.length,v=0;v<u;v+=1)c[v]=void 0;for(const b in i.callbacks)if(i.callbacks.hasOwnProperty(b)){const S=b.toLowerCase();if(v=E.indexOf(S),v<0)throw new Error(`${t}init: node '${b}' not a rule or udt name`);c[v]=i.callbacks[b]}},i.ruleDefined=d=>!!c[d],i.udtDefined=d=>!!c[s.length+d],i.down=(d,g)=>{const y=f.length;return l.push(y),f.push({name:g,thisIndex:y,thatIndex:void 0,state:r.SEM_PRE,callbackIndex:d,phraseIndex:void 0,phraseLength:void 0,stack:l.length}),y},i.up=(d,g,y,v)=>{const E=f.length,b=l.pop();return f.push({name:g,thisIndex:E,thatIndex:b,state:r.SEM_POST,callbackIndex:d,phraseIndex:y,phraseLength:v,stack:l.length}),f[b].thatIndex=E,f[b].phraseIndex=y,f[b].phraseLength=v,E},i.translate=d=>{let g,y;for(let v=0;v<f.length;v+=1)y=f[v],g=c[y.callbackIndex],g&&(y.state===r.SEM_PRE?g(r.SEM_PRE,o,y.phraseIndex,y.phraseLength,d):g&&g(r.SEM_POST,o,y.phraseIndex,y.phraseLength,d))},i.setLength=d=>{f.length=d,d>0?l.length=f[d-1].stack:l.length=0},i.getLength=()=>f.length;function h(d){let g="";for(;d-- >0;)g+=" ";return g}i.toXml=()=>{let d="",g=0;return d+=`<?xml version="1.0" encoding="utf-8"?>
127
+ `,d+=`<root nodes="${f.length/2}" characters="${o.length}">
128
+ `,d+=`<!-- input string -->
129
+ `,d+=h(g+2),d+=n.charsToString(o),d+=`
130
+ `,f.forEach(y=>{y.state===r.SEM_PRE?(g+=1,d+=h(g),d+=`<node name="${y.name}" index="${y.phraseIndex}" length="${y.phraseLength}">
131
+ `,d+=h(g+2),d+=n.charsToString(o,y.phraseIndex,y.phraseLength),d+=`
132
+ `):(d+=h(g),d+=`</node><!-- name="${y.name}" -->
133
+ `,g-=1)}),d+=`</root>
134
+ `,d}},Li={stringToChars:e=>[...e].map(t=>t.codePointAt(0)),charsToString:(e,t,r)=>{let n=e;for(;!(t===void 0||t<0);){if(r===void 0){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},St={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case St.ALT:return"ALT";case St.CAT:return"CAT";case St.REP:return"REP";case St.RNM:return"RNM";case St.TRG:return"TRG";case St.TBS:return"TBS";case St.TLS:return"TLS";case St.UDT:return"UDT";case St.AND:return"AND";case St.NOT:return"NOT";case St.ACTIVE:return"ACTIVE";case St.EMPTY:return"EMPTY";case St.MATCH:return"MATCH";case St.NOMATCH:return"NOMATCH";case St.SEM_PRE:return"SEM_PRE";case St.SEM_POST:return"SEM_POST";case St.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}},Nfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-url-template",Li.charsToString(t,r,n)])}return St.SEM_OK},Mfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable",Li.charsToString(t,r,n)])}return St.SEM_OK},Dfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable-name",Li.charsToString(t,r,n)])}return St.SEM_OK},qfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["literals",Li.charsToString(t,r,n)])}return St.SEM_OK},$fe=new Pfe,uU=e=>{const t=new go;return t.ast=new oU,t.ast.callbacks["server-url-template"]=Nfe,t.ast.callbacks["server-variable"]=Mfe,t.ast.callbacks["server-variable-name"]=Dfe,t.ast.callbacks.literals=qfe,{result:t.parse($fe,"server-url-template",e),ast:t.ast}},Ffe=(e,{strict:t=!1}={})=>{try{const r=uU(e);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const i=n.some(([s])=>s==="server-variable");if(!t&&!i)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return t?i:!0}catch{return!1}},Lfe=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},Bfe=e=>Lfe(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Ufe=["literals","server-variable-name"],Vfe=(e,t,r={})=>{const i={...{encoder:Bfe},...r},s=uU(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>Ufe.includes(u)).map(([u,c])=>u==="server-variable-name"?Object.hasOwn(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};function cU(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let t="";return t+=`; OpenAPI Path Templating ABNF syntax
135
+ `,t+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
136
+ `,t+=`path-template = slash *( path-segment slash ) [ path-segment ]
137
+ `,t+=`path-segment = 1*( path-literal / template-expression )
138
+ `,t+=`slash = "/"
139
+ `,t+=`path-literal = 1*pchar
140
+ `,t+=`template-expression = "{" template-expression-param-name "}"
141
+ `,t+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
142
+ `,t+=`
143
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
144
+ `,t+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
145
+ `,t+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
146
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
147
+ `,t+=`pct-encoded = "%" HEXDIG HEXDIG
148
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
149
+ `,t+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
150
+ `,t+=` / "*" / "+" / "," / ";" / "="
151
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
152
+ `,t+=`
153
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
154
+ `,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
155
+ `,t+=`DIGIT = %x30-39 ; 0-9
156
+ `,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
157
+ `,t}}const zfe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["slash",Li.charsToString(t,r,n)]),St.SEM_OK),Wfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["path-template",Li.charsToString(t,r,n)])}return St.SEM_OK},Jfe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["path-literal",Li.charsToString(t,r,n)]),St.SEM_OK),Kfe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["template-expression",Li.charsToString(t,r,n)]),St.SEM_OK),Hfe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["template-expression-param-name",Li.charsToString(t,r,n)]),St.SEM_OK),Gfe=new cU,Yfe=e=>{const t=new go;return t.ast=new oU,t.ast.callbacks["path-template"]=Wfe,t.ast.callbacks.slash=zfe,t.ast.callbacks["path-literal"]=Jfe,t.ast.callbacks["template-expression"]=Kfe,t.ast.callbacks["template-expression-param-name"]=Hfe,{result:t.parse(Gfe,"path-template",e),ast:t.ast}},Xfe=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},Zfe=e=>Xfe(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Qfe=["slash","path-literal","template-expression-param-name"],kx=(e,t,r={})=>{const i={...{encoder:Zfe},...r},s=Yfe(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>Qfe.includes(u)).map(([u,c])=>u==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};new cU;new go;const epe={body:tpe,header:npe,query:spe,path:ipe,formData:rpe};function tpe({req:e,value:t}){t!==void 0&&(e.body=t)}function rpe({req:e,value:t,parameter:r}){if(t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){e.form=e.form||{};const n=r.name;e.form[n]=e.form[n]||{},e.form[n].allowEmptyValue=!0}}function npe({req:e,parameter:t,value:r}){e.headers=e.headers||{},typeof r<"u"&&(e.headers[t.name]=r)}function ipe({req:e,value:t,parameter:r,baseURL:n}){if(t!==void 0){const i=e.url.replace(n,""),s=kx(i,{[r.name]:t});e.url=n+s}}function spe({req:e,value:t,parameter:r}){if(e.query=e.query||{},t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}function _m(e,t){return t.includes("application/json")?typeof e=="string"?e:(Array.isArray(e)&&(e=e.map(r=>{try{return JSON.parse(r)}catch{return r}})),JSON.stringify(e)):String(e)}function gf(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let t="";return t+=`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
158
+ `,t+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
159
+ `,t+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
160
+ `,t+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
161
+ `,t+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
162
+ `,t+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
163
+ `,t+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
164
+ `,t+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
165
+ `,t+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
166
+ `,t+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
167
+ `,t+=` ; Allow all printable characters except CTLs, semicolon and SP
168
+ `,t+=`
169
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
170
+ `,t+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
171
+ `,t+=`
172
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
173
+ `,t+=`; https://www.rfc-editor.org/errata/eid5518
174
+ `,t+=`cookie-pair = cookie-name "=" cookie-value
175
+ `,t+=`cookie-name = token
176
+ `,t+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
177
+ `,t+=` ; https://www.rfc-editor.org/errata/eid8242
178
+ `,t+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
179
+ `,t+=` ; US-ASCII characters excluding CTLs,
180
+ `,t+=` ; whitespace, DQUOTE, comma, semicolon,
181
+ `,t+=` ; and backslash
182
+ `,t+=`
183
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
184
+ `,t+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
185
+ `,t+=`
186
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
187
+ `,t+=`token = 1*(tchar)
188
+ `,t+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
189
+ `,t+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',t+=` / DIGIT / ALPHA
190
+ `,t+=` ; any VCHAR, except delimiters
191
+ `,t+=`
192
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
193
+ `,t+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
194
+ `,t+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
195
+ `,t+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
196
+ `,t+=`SP = %x20 ; US-ASCII SP, space (32)
197
+ `,t+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
198
+ `,t+=`
199
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
200
+ `,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
201
+ `,t+=`DIGIT = %x30-39 ; 0-9
202
+ `,t+=`DQUOTE = %x22 ; " (Double Quote)
203
+ `,t+=`WSP = SP / HTAB ; white space
204
+ `,t+=`HTAB = %x09 ; horizontal tab
205
+ `,t+=`CRLF = CR LF ; Internet standard newline
206
+ `,t+=`CR = %x0D ; carriage return
207
+ `,t+=`LF = %x0A ; linefeed
208
+ `,t}}new gf;const ape=e=>{if(typeof e!="string"||[...e].length!==1)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},ope=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),Em=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),lU=e=>Em(e)?e.slice(1,-1):e,fU=e=>`"${e}"`,pU=e=>e,upe=new go,cpe=new gf,dC=(e,{strict:t=!0,quoted:r=null}={})=>{try{const n=t?"cookie-value":"lenient-cookie-value",i=upe.parse(cpe,n,e);return typeof r=="boolean"?i.success&&r===Em(e):i.success}catch{return!1}},dU=e=>{const r=new TextEncoder().encode(e).reduce((n,i)=>n+String.fromCharCode(i),"");return btoa(r)},lpe=(e,t=dU)=>{const r=String(e);if(dC(r))return r;const n=Em(r),i=n?lU(r):r,s=t(i);return n?fU(s):s},fpe=e=>ope(dU(e)),ppe=e=>lpe(e,fpe),dpe=new go,hpe=new gf,hU=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return dpe.parse(hpe,r,e).success}catch{return!1}},mpe=e=>{if(!hU(e))throw new TypeError(`Invalid cookie name: ${e}`)},mU=e=>{if(!dC(e))throw new TypeError(`Invalid cookie value: ${e}`)},gF={encoders:{name:pU,value:ppe},validators:{name:mpe,value:mU}},gpe=(e,t,r={})=>{const n={...r,encoders:{...gF.encoders,...r.encoders},validators:{...gF.validators,...r.validators}},i=n.encoders.name(e),s=n.encoders.value(t);return n.validators.name(i),n.validators.value(s),`${i}=${s}`},ype=(e,t={})=>(Array.isArray(e)?e:typeof e=="object"&&e!==null?Object.entries(e):[]).map(([n,i])=>gpe(n,i,t)).join("; "),vpe=new go,bpe=new gf,_pe=e=>{const t=String(e);if(dC(t))return t;const r=Em(t),n=r?lU(t):t;let i="";for(const s of n)i+=vpe.parse(bpe,"cookie-octet",s).success?s:ape(s);return r?fU(i):i};new go;new gf;const Epe=e=>{if(!hU(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},Spe="%3D",wpe="%26",xpe=e=>_pe(e).replace(/[=&]/gu,t=>t==="="?Spe:wpe),Px=(e,t={})=>ype(e,Oh({encoders:{name:pU,value:xpe},validators:{name:Epe,value:mU}},t));function Ape({req:e,value:t,parameter:r,baseURL:n}){const{name:i,style:s,explode:a,content:o}=r;if(t===void 0)return;const u=e.url.replace(n,"");let c;if(o){const l=Object.keys(o)[0];c=kx(u,{[i]:t},{encoder:f=>d9(_m(f,l))})}else c=kx(u,{[i]:t},{encoder:l=>W2({key:r.name,value:l,style:s||"simple",explode:a??!1,escape:"reserved"})});e.url=n+c}function Ope({req:e,value:t,parameter:r}){if(e.query=e.query||{},t!==void 0&&r.content){const n=Object.keys(r.content)[0],i=_m(t,n);if(i)e.query[r.name]=i;else if(r.allowEmptyValue){const s=r.name;e.query[s]=e.query[s]||{},e.query[s].allowEmptyValue=!0}return}if(t===!1&&(t="false"),t===0&&(t="0"),t){const{style:n,explode:i,allowReserved:s}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:i,allowReserved:s}}}else if(r.allowEmptyValue&&t!==void 0){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}const Cpe=["accept","authorization","content-type"];function Rpe({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Cpe.indexOf(t.name.toLowerCase())>-1)){if(r!==void 0&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=_m(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(e.headers[t.name]=W2({key:t.name,value:r,style:t.style||"simple",explode:typeof t.explode>"u"?!1:t.explode,escape:!1}))}}function Tpe({req:e,parameter:t,value:r}){const{name:n}=t;if(e.headers=e.headers||{},r!==void 0&&t.content){const s=Object.keys(t.content)[0],a=_m(r,s);e.headers.Cookie=Px({[n]:a});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var i;const s=W2({key:t.name,value:r,escape:!1,style:t.style||"form",explode:(i=t.explode)!==null&&i!==void 0?i:!1}),a=Array.isArray(r)&&t.explode?`${n}=${s}`:s;e.headers.Cookie=Px({[n]:a})}}const Ipe=Object.freeze(Object.defineProperty({__proto__:null,cookie:Tpe,header:Rpe,path:Ape,query:Ope},Symbol.toStringTag,{value:"Module"})),jpe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:gU}=jpe;function kpe(e,t){const{operation:r,requestBody:n,securities:i,spec:s,attachContentTypeForEmptyPayload:a}=e;let{requestContentType:o}=e;t=Ppe({request:t,securities:i,operation:r,spec:s});const u=r.requestBody||{},c=Object.keys(u.content||{}),l=o&&c.indexOf(o)>-1;if(n||a){if(o&&l)t.headers["Content-Type"]=o;else if(!o){const y=c[0];y&&(t.headers["Content-Type"]=y,o=y)}}else o&&l&&(t.headers["Content-Type"]=o);if(!e.responseContentType&&r.responses){const y=Object.entries(r.responses).filter(([v,E])=>{const b=parseInt(v,10);return b>=200&&b<300&&Ts(E.content)}).reduce((v,[,E])=>v.concat(Object.keys(E.content)),[]);y.length>0&&(t.headers.accept=y.join(", "))}if(n)if(o){if(c.indexOf(o)>-1)if(o==="application/x-www-form-urlencoded"||o==="multipart/form-data")if(typeof n=="object"){var f,h;const y=(f=(h=u.content[o])===null||h===void 0?void 0:h.encoding)!==null&&f!==void 0?f:{};t.form={},Object.keys(n).forEach(v=>{let E;try{E=JSON.parse(n[v])}catch{E=n[v]}t.form[v]={value:E,encoding:y[v]||{}}})}else if(typeof n=="string"){var d,g;const y=(d=(g=u.content[o])===null||g===void 0?void 0:g.encoding)!==null&&d!==void 0?d:{};try{t.form={};const v=JSON.parse(n);Object.entries(v).forEach(([E,b])=>{t.form[E]={value:b,encoding:y[E]||{}}})}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function Ppe({request:e,securities:t={},operation:r={},spec:n}){var i;const s={...e},{authorized:a={}}=t,o=r.security||n.security||[],u=a&&!!Object.keys(a).length,c=(n==null||(i=n.components)===null||i===void 0?void 0:i.securitySchemes)||{};return s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!u||!o||Array.isArray(r.security)&&!r.security.length?e:(o.forEach(l=>{Object.keys(l).forEach(f=>{const h=a[f],d=c[f];if(!h)return;const g=h.value||h,{type:y}=d;if(h){if(y==="apiKey")d.in==="query"&&(s.query[d.name]=g),d.in==="header"&&(s.headers[d.name]=g),d.in==="cookie"&&(s.cookies[d.name]=g);else if(y==="http"){if(/^basic$/i.test(d.scheme)){const v=g.username||"",E=g.password||"",b=gU(`${v}:${E}`);s.headers.Authorization=`Basic ${b}`}/^bearer$/i.test(d.scheme)&&(s.headers.Authorization=`Bearer ${g}`)}else if(y==="oauth2"||y==="openIdConnect"){const v=h.token||{},E=d["x-tokenName"]||"access_token",b=v[E];let S=v.token_type;(!S||S.toLowerCase()==="bearer")&&(S="Bearer"),s.headers.Authorization=`${S} ${b}`}}})}),s)}function Npe(e,t){const{spec:r,operation:n,securities:i,requestContentType:s,responseContentType:a,attachContentTypeForEmptyPayload:o}=e;if(t=Mpe({request:t,securities:i,operation:n,spec:r}),t.body||t.form||o)s?t.headers["Content-Type"]=s:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter(u=>u.type==="file").length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter(u=>u.in==="formData").length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){const u=n.parameters&&n.parameters.filter(l=>l.in==="body").length>0,c=n.parameters&&n.parameters.filter(l=>l.in==="formData").length>0;(u||c)&&(t.headers["Content-Type"]=s)}return!a&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}function Mpe({request:e,securities:t={},operation:r={},spec:n}){const i={...e},{authorized:s={},specSecurity:a=[]}=t,o=r.security||a,u=s&&!!Object.keys(s).length,c=n.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!u||!o||Array.isArray(r.security)&&!r.security.length?e:(o.forEach(l=>{Object.keys(l).forEach(f=>{const h=s[f];if(!h)return;const{token:d}=h,g=h.value||h,y=c[f],{type:v}=y,E=y["x-tokenName"]||"access_token",b=d&&d[E];let S=d&&d.token_type;if(h)if(v==="apiKey"){const x=y.in==="query"?"query":"headers";i[x]=i[x]||{},i[x][y.name]=g}else if(v==="basic")if(g.header)i.headers.authorization=g.header;else{const x=g.username||"",_=g.password||"";g.base64=gU(`${x}:${_}`),i.headers.authorization=`Basic ${g.base64}`}else v==="oauth2"&&b&&(S=!S||S.toLowerCase()==="bearer"?"Bearer":S,i.headers.authorization=`${S} ${b}`)})}),i)}function Dpe(e,t,r){if(!e||typeof e!="object"||!e.paths||typeof e.paths!="object")return null;const{paths:n}=e;for(const i in n)for(const s in n[i]){if(s.toUpperCase()==="PARAMETERS")continue;const a=n[i][s];if(!a||typeof a!="object")continue;const o={spec:e,pathName:i,method:s.toUpperCase(),operation:a};if(t(o))return o}}function qpe(e,t){return Dpe(e,t)||null}function yU(e,t){return`${t.toLowerCase()}-${e}`}function $pe(e,t){return!e||!e.paths?null:qpe(e,({pathName:r,method:n,operation:i})=>{if(!i||typeof i!="object")return!1;const s=i.operationId,a=$h(i,r,n),o=yU(r,n);return[a,o,s].some(u=>u&&u===t)})}const yF=e=>Array.isArray(e)?e:[],Sc=(e,{recurse:t=!0,depth:r=1}={})=>{if(Ts(e)){if(e.type==="object"||e.type==="array"||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>n9)&&t){const n=Array.isArray(e.oneOf)?e.oneOf.find(s=>Sc(s,{recurse:t,depth:r+1})):void 0;if(n)return n;const i=Array.isArray(e.anyOf)?e.anyOf.find(s=>Sc(s,{recurse:t,depth:r+1})):void 0;if(i)return i}}},m1=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(Ts(r)||Array.isArray(r))return r;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},Ep=e=>{try{return new URL(e)}catch{const t=new URL(e,Zp),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class Fpe extends Pi{}const Lpe=(e,t)=>t.filter(r=>r.name===e),Bpe=e=>{const t={};e.forEach(n=>{t[n.in]||(t[n.in]={}),t[n.in][n.name]=n});const r=[];return Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(i=>{r.push(t[n][i])})}),r},Upe={buildRequest:vU};function Vpe({http:e,fetch:t,spec:r,operationId:n,pathName:i,method:s,parameters:a,securities:o,...u}){const c=e||t||qc;i&&s&&!n&&(n=yU(i,s));const l=Upe.buildRequest({spec:r,operationId:n,parameters:a,securities:o,http:c,...u});return l.body&&(Ts(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),c(l)}function vU(e){const{spec:t,operationId:r,responseContentType:n,scheme:i,requestInterceptor:s,responseInterceptor:a,contextUrl:o,userFetch:u,server:c,serverVariables:l,http:f,signal:h,serverVariableEncoder:d}=e;let{parameters:g,parameterBuilders:y,baseURL:v}=e;const E=_9(t);y||(E?y=Ipe:y=epe);let S={url:"",credentials:f&&f.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(S.signal=h),s&&(S.requestInterceptor=s),a&&(S.responseInterceptor=a),u&&(S.userFetch=u);const x=$pe(t,r);if(!x)throw new Fpe(`Operation ${r} not found`);const{operation:_={},method:A,pathName:C}=x;if(v=v??zpe({spec:t,scheme:i,contextUrl:o,server:c,serverVariables:l,pathName:C,method:A,serverVariableEncoder:d}),S.url+=v,!r)return delete S.cookies,S;S.url+=C,S.method=`${A}`.toUpperCase(),g=g||{};const R=t.paths[C]||{};n&&(S.headers.accept=n);const O=Bpe([].concat(yF(_.parameters)).concat(yF(R.parameters)));O.forEach(k=>{const D=y[k.in];let P;if(k.in==="body"&&k.schema&&k.schema.properties&&(P=g),P=k&&k.name&&g[k.name],typeof P>"u"?P=k&&k.name&&g[`${k.in}.${k.name}`]:Lpe(k.name,O).length>1&&console.warn(`Parameter '${k.name}' is ambiguous because the defined spec has more than one parameter with the name: '${k.name}' and the passed-in parameter values did not define an 'in' value.`),P!==null){if(typeof k.default<"u"&&typeof P>"u"&&(P=k.default),typeof P>"u"&&k.required&&!k.allowEmptyValue)throw new Error(`Required parameter ${k.name} is not provided`);E&&typeof P=="string"&&(bc("type",k.schema)&&typeof k.schema.type=="string"&&Sc(k.schema,{recurse:!1})?P=m1({value:P,silentFail:!1}):bc("type",k.schema)&&Array.isArray(k.schema.type)&&Sc(k.schema,{recurse:!1})?P=m1({value:P,silentFail:!0}):!bc("type",k.schema)&&Sc(k.schema,{recurse:!0})&&(P=m1({value:P,silentFail:!0}))),D&&D({req:S,parameter:k,value:P,operation:_,spec:t,baseURL:v})}});const M={...e,operation:_};if(E?S=kpe(M,S):S=Npe(M,S),S.cookies&&Object.keys(S.cookies).length>0){const k=Px(S.cookies);Th(S.headers.Cookie)?S.headers.Cookie+=`; ${k}`:S.headers.Cookie=k}return S.cookies&&delete S.cookies,J2(S)}const Nx=e=>e?e.replace(/\W/g,""):null;function zpe(e){return _9(e.spec)?Wpe(e):Kpe(e)}const g1=e=>Array.isArray(e)&&e.length>0;function Wpe({spec:e,pathName:t,method:r,server:n,contextUrl:i,serverVariables:s={},serverVariableEncoder:a}){var o,u;let c=[],l="",f;const h=e==null||(o=e.paths)===null||o===void 0||(o=o[t])===null||o===void 0||(o=o[(r||"").toLowerCase()])===null||o===void 0?void 0:o.servers,d=e==null||(u=e.paths)===null||u===void 0||(u=u[t])===null||u===void 0?void 0:u.servers,g=e==null?void 0:e.servers;if(c=g1(h)?h:g1(d)?d:g1(g)?g:[nse],n&&(f=c.find(y=>y.url===n),f&&(l=n)),l||([f]=c,l=f.url),Ffe(l,{strict:!0})){const y=Object.entries({...f.variables}).reduce((v,[E,b])=>(v[E]=b.default,v),{});l=Vfe(l,{...y,...s},{encoder:typeof a=="function"?a:E2})}return Jpe(l,i)}function Jpe(e="",t=""){const r=Ep(e&&t?Kr(t,e):e),n=Ep(t),i=Nx(r.protocol)||Nx(n.protocol),s=r.host||n.host,a=r.pathname;let o;return i&&s?o=`${i}://${s+a}`:o=a,o[o.length-1]==="/"?o.slice(0,-1):o}function Kpe({spec:e,scheme:t,contextUrl:r=""}){const n=Ep(r),i=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||i||Nx(n.protocol)||"http",a=e.host||n.host||"",o=e.basePath||"";let u;return a?u=`${s}://${a+o}`:u=o,u[u.length-1]==="/"?u.slice(0,-1):u}const Hpe=async(e,t,r={})=>{const{returnEntireTree:n,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:c,strategies:l}=r,f={spec:e,pathDiscriminator:t,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:c,strategies:l},d=l.find(y=>y.match(e)).normalize(e),g=await kfe({spec:d,...f,allowMetaPatches:!0,skipNormalization:!Y2(e)});return!n&&Array.isArray(t)&&t.length&&(g.spec=t.reduce((y,v)=>y==null?void 0:y[v],g.spec)||null),g},Gpe=e=>async(t,r,n={})=>{const i={...e,...n};return Hpe(t,r,i)};var ep={exports:{}},y1={};/**
209
+ * @license React
210
+ * use-sync-external-store-with-selector.production.js
211
+ *
212
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
213
+ *
214
+ * This source code is licensed under the MIT license found in the
215
+ * LICENSE file in the root directory of this source tree.
216
+ */var vF;function Ype(){if(vF)return y1;vF=1;var e=jt;function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,o=e.useDebugValue;return y1.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var d=i(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=a(function(){function v(_){if(!E){if(E=!0,b=_,_=f(_),h!==void 0&&g.hasValue){var A=g.value;if(h(A,_))return S=A}return S=_}if(A=S,r(b,_))return A;var C=f(_);return h!==void 0&&h(A,C)?(b=_,A):(b=_,S=C)}var E=!1,b,S,x=l===void 0?null:l;return[function(){return v(c())},x===null?void 0:function(){return v(x())}]},[c,l,f,h]);var y=n(u,d[0],d[1]);return s(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},y1}var v1={};/**
217
+ * @license React
218
+ * use-sync-external-store-with-selector.development.js
219
+ *
220
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
221
+ *
222
+ * This source code is licensed under the MIT license found in the
223
+ * LICENSE file in the root directory of this source tree.
224
+ */var bF;function Xpe(){return bF||(bF=1,process.env.NODE_ENV!=="production"&&function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=jt,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,o=t.useDebugValue;v1.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var d=i(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=a(function(){function v(_){if(!E){if(E=!0,b=_,_=f(_),h!==void 0&&g.hasValue){var A=g.value;if(h(A,_))return S=A}return S=_}if(A=S,r(b,_))return A;var C=f(_);return h!==void 0&&h(A,C)?(b=_,A):(b=_,S=C)}var E=!1,b,S,x=l===void 0?null:l;return[function(){return v(c())},x===null?void 0:function(){return v(x())}]},[c,l,f,h]);var y=n(u,d[0],d[1]);return s(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),v1}var _F;function Zpe(){return _F||(_F=1,process.env.NODE_ENV==="production"?ep.exports=Ype():ep.exports=Xpe()),ep.exports}Zpe();var bU=ot.version.startsWith("19"),Qpe=Symbol.for(bU?"react.transitional.element":"react.element"),ede=Symbol.for("react.portal"),_U=Symbol.for("react.fragment"),EU=Symbol.for("react.strict_mode"),SU=Symbol.for("react.profiler"),hC=Symbol.for("react.consumer"),mC=Symbol.for("react.context"),gC=Symbol.for("react.forward_ref"),wU=Symbol.for("react.suspense"),xU=Symbol.for("react.suspense_list"),Sm=Symbol.for("react.memo"),AU=Symbol.for("react.lazy"),tde=Symbol.for("react.offscreen"),rde=Symbol.for("react.client.reference"),nde=gC,ide=Sm;function sde(e){return typeof e=="string"||typeof e=="function"||e===_U||e===SU||e===EU||e===wU||e===xU||e===tde||typeof e=="object"&&e!==null&&(e.$$typeof===AU||e.$$typeof===Sm||e.$$typeof===mC||e.$$typeof===hC||e.$$typeof===gC||e.$$typeof===rde||e.getModuleId!==void 0)}function Mx(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case Qpe:switch(e=e.type,e){case _U:case SU:case EU:case wU:case xU:return e;default:switch(e=e&&e.$$typeof,e){case mC:case gC:case AU:case Sm:return e;case hC:return e;default:return t}}case ede:return t}}}function ade(e){return bU?Mx(e)===hC:Mx(e)===mC}function ode(e){return Mx(e)===Sm}function yC(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function b1(e,t){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||yC(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${t} in connect.`)}function ude(e,t,r){b1(e,"mapStateToProps"),b1(t,"mapDispatchToProps"),b1(r,"mergeProps")}function cde(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:s,areStatePropsEqual:a}){let o=!1,u,c,l,f,h;function d(b,S){return u=b,c=S,l=e(u,c),f=t(n,c),h=r(l,f,c),o=!0,h}function g(){return l=e(u,c),t.dependsOnOwnProps&&(f=t(n,c)),h=r(l,f,c),h}function y(){return e.dependsOnOwnProps&&(l=e(u,c)),t.dependsOnOwnProps&&(f=t(n,c)),h=r(l,f,c),h}function v(){const b=e(u,c),S=!a(b,l);return l=b,S&&(h=r(l,f,c)),h}function E(b,S){const x=!s(S,c),_=!i(b,u,S,c);return u=b,c=S,x&&_?g():x?y():_?v():h}return function(S,x){return o?E(S,x):d(S,x)}}function lde(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const s=t(e,i),a=r(e,i),o=n(e,i);return process.env.NODE_ENV!=="production"&&ude(s,a,o),cde(s,a,o,e,i)}function fde(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...s)=>t(i(...s)))}return r}function pde(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function OU(e,t,r){pde(e)||yC(`${r}() in ${t} must return a plain object. Instead received ${e}.`)}function Dx(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function EF(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function CU(e,t){return function(n,{displayName:i}){const s=function(o,u){return s.dependsOnOwnProps?s.mapToProps(o,u):s.mapToProps(o,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(o,u){s.mapToProps=e,s.dependsOnOwnProps=EF(e);let c=s(o,u);return typeof c=="function"&&(s.mapToProps=c,s.dependsOnOwnProps=EF(c),c=s(o,u)),process.env.NODE_ENV!=="production"&&OU(c,i,t),c},s}}function vC(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function dde(e){return e&&typeof e=="object"?Dx(t=>fde(e,t)):e?typeof e=="function"?CU(e,"mapDispatchToProps"):vC(e,"mapDispatchToProps"):Dx(t=>({dispatch:t}))}function hde(e){return e?typeof e=="function"?CU(e,"mapStateToProps"):vC(e,"mapStateToProps"):Dx(()=>({}))}function mde(e,t,r){return{...r,...e,...t}}function gde(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let s=!1,a;return function(u,c,l){const f=e(u,c,l);return s?i(f,a)||(a=f):(s=!0,a=f,process.env.NODE_ENV!=="production"&&OU(a,n,"mergeProps")),a}}}function yde(e){return e?typeof e=="function"?gde(e):vC(e,"mergeProps"):()=>mde}function vde(e){e()}function bde(){let e=null,t=null;return{clear(){e=null,t=null},notify(){vde(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var SF={notify(){},get:()=>[]};function RU(e,t){let r,n=SF,i=0,s=!1;function a(y){l();const v=n.subscribe(y);let E=!1;return()=>{E||(E=!0,v(),f())}}function o(){n.notify()}function u(){g.onStateChange&&g.onStateChange()}function c(){return s}function l(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=bde())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=SF)}function h(){s||(s=!0,l())}function d(){s&&(s=!1,f())}const g={addNestedSub:a,notifyNestedSubs:o,handleChangeWrapper:u,isSubscribed:c,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return g}var _de=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ede=_de(),Sde=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wde=Sde(),xde=()=>Ede||wde?ot.useLayoutEffect:ot.useEffect,id=xde();function wF(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _1(e,t){if(wF(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!wF(e[r[i]],t[r[i]]))return!1;return!0}var Ade={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ode={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Cde={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Rde={[nde]:Cde,[ide]:TU};function xF(e){return ode(e)?TU:Rde[e.$$typeof]||Ade}var Tde=Object.defineProperty,Ide=Object.getOwnPropertyNames,AF=Object.getOwnPropertySymbols,jde=Object.getOwnPropertyDescriptor,kde=Object.getPrototypeOf,OF=Object.prototype;function qx(e,t){if(typeof t!="string"){if(OF){const s=kde(t);s&&s!==OF&&qx(e,s)}let r=Ide(t);AF&&(r=r.concat(AF(t)));const n=xF(e),i=xF(t);for(let s=0;s<r.length;++s){const a=r[s];if(!Ode[a]&&!(i&&i[a])&&!(n&&n[a])){const o=jde(t,a);try{Tde(e,a,o)}catch{}}}}return e}var E1=Symbol.for("react-redux-context"),S1=typeof globalThis<"u"?globalThis:{};function Pde(){if(!ot.createContext)return{};const e=S1[E1]??(S1[E1]=new Map);let t=e.get(ot.createContext);return t||(t=ot.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(ot.createContext,t)),t}var IU=Pde(),Nde=[null,null],Mde=e=>{try{return JSON.stringify(e)}catch{return String(e)}};function Dde(e,t,r){id(()=>e(...t),r)}function qde(e,t,r,n,i,s){e.current=n,r.current=!1,i.current&&(i.current=null,s())}function $de(e,t,r,n,i,s,a,o,u,c,l){if(!e)return()=>{};let f=!1,h=null;const d=()=>{if(f||!o.current)return;const y=t.getState();let v,E;try{v=n(y,i.current)}catch(b){E=b,h=b}E||(h=null),v===s.current?a.current||c():(s.current=v,u.current=v,a.current=!0,l())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function Fde(e,t){return e===t}var CF=!1;function Lde(e,t,r,{pure:n,areStatesEqual:i=Fde,areOwnPropsEqual:s=_1,areStatePropsEqual:a=_1,areMergedPropsEqual:o=_1,forwardRef:u=!1,context:c=IU}={}){process.env.NODE_ENV!=="production"&&n!==void 0&&!CF&&(CF=!0,yC('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const l=c,f=hde(e),h=dde(t),d=yde(r),g=!!e;return v=>{if(process.env.NODE_ENV!=="production"&&!sde(v))throw new Error(`You must pass a component to the function returned by connect. Instead received ${Mde(v)}`);const E=v.displayName||v.name||"Component",b=`Connect(${E})`,S={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:E,WrappedComponent:v,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:d,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:s,areMergedPropsEqual:o};function x(C){const[R,O,M]=ot.useMemo(()=>{const{reactReduxForwardedRef:pe,...Oe}=C;return[C.context,pe,Oe]},[C]),k=ot.useMemo(()=>{let pe=l;if(R!=null&&R.Consumer&&process.env.NODE_ENV!=="production"){if(!ade(ot.createElement(R.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");pe=R}return pe},[R,l]),D=ot.useContext(k),P=!!C.store&&!!C.store.getState&&!!C.store.dispatch,H=!!D&&!!D.store;if(process.env.NODE_ENV!=="production"&&!P&&!H)throw new Error(`Could not find "store" in the context of "${b}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${b} in connect options.`);const Z=P?C.store:D.store,V=H?D.getServerState:Z.getState,G=ot.useMemo(()=>lde(Z.dispatch,S),[Z]),[Q,Y]=ot.useMemo(()=>{if(!g)return Nde;const pe=RU(Z,P?void 0:D.subscription),Oe=pe.notifyNestedSubs.bind(pe);return[pe,Oe]},[Z,P,D]),L=ot.useMemo(()=>P?D:{...D,subscription:Q},[P,D,Q]),J=ot.useRef(void 0),ee=ot.useRef(M),ne=ot.useRef(void 0),ae=ot.useRef(!1),X=ot.useRef(!1),B=ot.useRef(void 0);id(()=>(X.current=!0,()=>{X.current=!1}),[]);const F=ot.useMemo(()=>()=>ne.current&&M===ee.current?ne.current:G(Z.getState(),M),[Z,M]),ue=ot.useMemo(()=>Oe=>Q?$de(g,Z,Q,G,ee,J,ae,X,ne,Y,Oe):()=>{},[Q]);Dde(qde,[ee,J,ae,M,ne,Y]);let fe;try{fe=ot.useSyncExternalStore(ue,F,V?()=>G(V(),M):F)}catch(pe){throw B.current&&(pe.message+=`
225
+ The error may be correlated with this previous error:
226
+ ${B.current.stack}
227
+
228
+ `),pe}id(()=>{B.current=void 0,ne.current=void 0,J.current=fe});const Ae=ot.useMemo(()=>ot.createElement(v,{...fe,ref:O}),[O,v,fe]);return ot.useMemo(()=>g?ot.createElement(k.Provider,{value:L},Ae):Ae,[k,Ae,L])}const A=ot.memo(x);if(A.WrappedComponent=v,A.displayName=x.displayName=b,u){const R=ot.forwardRef(function(M,k){return ot.createElement(A,{...M,reactReduxForwardedRef:k})});return R.displayName=b,R.WrappedComponent=v,qx(R,v)}return qx(A,v)}}var Bde=Lde;function Ude(e){const{children:t,context:r,serverState:n,store:i}=e,s=ot.useMemo(()=>{const u=RU(i),c={store:i,subscription:u,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:l})}},[i,n]),a=ot.useMemo(()=>i.getState(),[i]);id(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const o=r||IU;return ot.createElement(o.Provider,{value:s},t)}var Vde=Ude,zde=rl();const Wde=Be.getDefaultExportFromCjs(zde);function Jde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Kde(e,t){if(e==null)return{};var r,n,i=Jde(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function $x(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Hde(e){if(Array.isArray(e))return $x(e)}function Gde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yde(e,t){if(e){if(typeof e=="string")return $x(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$x(e,t):void 0}}function Xde(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
229
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fx(e){return Hde(e)||Gde(e)||Yde(e)||Xde()}function Fc(e){"@babel/helpers - typeof";return Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc(e)}function Zde(e,t){if(Fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qde(e){var t=Zde(e,"string");return Fc(t)=="symbol"?t:t+""}function jU(e,t,r){return(t=Qde(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lx(){return Lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lx.apply(null,arguments)}function RF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Uo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RF(Object(r),!0).forEach(function(n){jU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RF(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ehe(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var w1={};function the(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return w1[t]||(w1[t]=ehe(e)),w1[t]}function rhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(s){return s!=="token"}),i=the(n);return i.reduce(function(s,a){return Uo(Uo({},s),r[a])},t)}function TF(e){return e.join(" ")}function nhe(e,t){var r=0;return function(n){return r+=1,n.map(function(i,s){return kU({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(s)})})}}function kU(e){var t=e.node,r=e.stylesheet,n=e.style,i=n===void 0?{}:n,s=e.useInlineStyles,a=e.key,o=t.properties,u=t.type,c=t.tagName,l=t.value;if(u==="text")return l;if(c){var f=nhe(r,s),h;if(!s)h=Uo(Uo({},o),{},{className:TF(o.className)});else{var d=Object.keys(r).reduce(function(E,b){return b.split(".").forEach(function(S){E.includes(S)||E.push(S)}),E},[]),g=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&g.concat(o.className.filter(function(E){return!d.includes(E)}));h=Uo(Uo({},o),{},{className:TF(y)||void 0,style:rhe(o.className,Object.assign({},o.style,i),r)})}var v=f(t.children);return jt.createElement(c,Lx({key:a},h),v)}}const ihe=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var she=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function IF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IF(Object(r),!0).forEach(function(n){jU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IF(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ahe=/\n/g;function ohe(e){return e.match(ahe)}function uhe(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(i,s){var a=s+r;return jt.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(a):n},"".concat(a,`
230
+ `))})}function che(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,s=e.numberStyle,a=s===void 0?{}:s,o=e.startingLineNumber;return jt.createElement("code",{style:Object.assign({},r,i)},uhe({lines:t.replace(/\n$/,"").split(`
231
+ `),style:a,startingLineNumber:o}))}function lhe(e){return"".concat(e.toString().length,".25em")}function PU(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function NU(e,t,r){var n={display:"inline-block",minWidth:lhe(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,s=oa(oa({},n),i);return s}function Sp(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,i=e.largestLineNumber,s=e.showInlineLineNumbers,a=e.lineProps,o=a===void 0?{}:a,u=e.className,c=u===void 0?[]:u,l=e.showLineNumbers,f=e.wrapLongLines,h=e.wrapLines,d=h===void 0?!1:h,g=d?oa({},typeof o=="function"?o(r):o):{};if(g.className=g.className?[].concat(Fx(g.className.trim().split(/\s+/)),Fx(c)):c,r&&s){var y=NU(n,r,i);t.unshift(PU(r,y))}return f&l&&(g.style=oa({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:t}}function MU(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var i=e[n];if(i.type==="text")r.push(Sp({children:[i],className:Fx(new Set(t))}));else if(i.children){var s=t.concat(i.properties.className);MU(i.children,s).forEach(function(a){return r.push(a)})}}return r}function fhe(e,t,r,n,i,s,a,o,u){var c,l=MU(e.value),f=[],h=-1,d=0;function g(_,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Sp({children:_,lineNumber:A,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:i,lineProps:r,className:C,showLineNumbers:n,wrapLongLines:u,wrapLines:t})}function y(_,A){if(n&&A&&i){var C=NU(o,A,a);_.unshift(PU(A,C))}return _}function v(_,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||C.length>0?g(_,A,C):y(_,A)}for(var E=function(){var A=l[d],C=A.children[0].value,R=ohe(C);if(R){var O=C.split(`
232
+ `);O.forEach(function(M,k){var D=n&&f.length+s,P={type:"text",value:"".concat(M,`
233
+ `)};if(k===0){var H=l.slice(h+1,d).concat(Sp({children:[P],className:A.properties.className})),Z=v(H,D);f.push(Z)}else if(k===O.length-1){var V=l[d+1]&&l[d+1].children&&l[d+1].children[0],G={type:"text",value:"".concat(M)};if(V){var Q=Sp({children:[G],className:A.properties.className});l.splice(d+1,0,Q)}else{var Y=[G],L=v(Y,D,A.properties.className);f.push(L)}}else{var J=[P],ee=v(J,D,A.properties.className);f.push(ee)}}),h=d}d++};d<l.length;)E();if(h!==l.length-1){var b=l.slice(h+1,l.length);if(b&&b.length){var S=n&&f.length+s,x=v(b,S);f.push(x)}}return t?f:(c=[]).concat.apply(c,f)}function phe(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,s){return kU({node:i,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(s)})})}function DU(e){return e&&typeof e.highlightAuto<"u"}function dhe(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(DU(t)){var s=ihe(t,r);return r==="text"?{value:i,language:"text"}:s?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:i}}catch{return{value:i}}}function hhe(e,t){return function(n){var i=n.language,s=n.children,a=n.style,o=a===void 0?t:a,u=n.customStyle,c=u===void 0?{}:u,l=n.codeTagProps,f=l===void 0?{className:i?"language-".concat(i):void 0,style:oa(oa({},o['code[class*="language-"]']),o['code[class*="language-'.concat(i,'"]')])}:l,h=n.useInlineStyles,d=h===void 0?!0:h,g=n.showLineNumbers,y=g===void 0?!1:g,v=n.showInlineLineNumbers,E=v===void 0?!0:v,b=n.startingLineNumber,S=b===void 0?1:b,x=n.lineNumberContainerStyle,_=n.lineNumberStyle,A=_===void 0?{}:_,C=n.wrapLines,R=n.wrapLongLines,O=R===void 0?!1:R,M=n.lineProps,k=M===void 0?{}:M,D=n.renderer,P=n.PreTag,H=P===void 0?"pre":P,Z=n.CodeTag,V=Z===void 0?"code":Z,G=n.code,Q=G===void 0?(Array.isArray(s)?s[0]:s)||"":G,Y=n.astGenerator,L=Kde(n,she);Y=Y||e;var J=y?jt.createElement(che,{containerStyle:x,codeStyle:f.style||{},numberStyle:A,startingLineNumber:S,codeString:Q}):null,ee=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},ne=DU(Y)?"hljs":"prismjs",ae=d?Object.assign({},L,{style:Object.assign({},ee,c)}):Object.assign({},L,{className:L.className?"".concat(ne," ").concat(L.className):ne,style:Object.assign({},c)});if(O?f.style=oa({whiteSpace:"pre-wrap"},f.style):f.style=oa({whiteSpace:"pre"},f.style),!Y)return jt.createElement(H,ae,J,jt.createElement(V,f,Q));(C===void 0&&D||O)&&(C=!0),D=D||phe;var X=[{type:"text",value:Q}],B=dhe({astGenerator:Y,language:i,code:Q,defaultCodeValue:X});B.language===null&&(B.value=X);var F=B.value.length;F===1&&B.value[0].type==="text"&&(F=B.value[0].value.split(`
234
+ `).length);var ue=F+S,fe=fhe(B,C,k,y,E,S,ue,A,O);return jt.createElement(H,ae,jt.createElement(V,f,!E&&J,D({rows:fe,stylesheet:o,useInlineStyles:d})))}}var ja={},x1,jF;function mhe(){if(jF)return x1;jF=1;function e(de){return de instanceof Map?de.clear=de.delete=de.set=function(){throw new Error("map is read-only")}:de instanceof Set&&(de.add=de.clear=de.delete=function(){throw new Error("set is read-only")}),Object.freeze(de),Object.getOwnPropertyNames(de).forEach(function(Ee){var Re=de[Ee];typeof Re=="object"&&!Object.isFrozen(Re)&&e(Re)}),de}var t=e,r=e;t.default=r;class n{constructor(Ee){Ee.data===void 0&&(Ee.data={}),this.data=Ee.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(de){return de.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(de,...Ee){const Re=Object.create(null);for(const Ge in de)Re[Ge]=de[Ge];return Ee.forEach(function(Ge){for(const at in Ge)Re[at]=Ge[at]}),Re}const a="</span>",o=de=>!!de.kind;class u{constructor(Ee,Re){this.buffer="",this.classPrefix=Re.classPrefix,Ee.walk(this)}addText(Ee){this.buffer+=i(Ee)}openNode(Ee){if(!o(Ee))return;let Re=Ee.kind;Ee.sublanguage||(Re=`${this.classPrefix}${Re}`),this.span(Re)}closeNode(Ee){o(Ee)&&(this.buffer+=a)}value(){return this.buffer}span(Ee){this.buffer+=`<span class="${Ee}">`}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ee){this.top.children.push(Ee)}openNode(Ee){const Re={kind:Ee,children:[]};this.add(Re),this.stack.push(Re)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ee){return this.constructor._walk(Ee,this.rootNode)}static _walk(Ee,Re){return typeof Re=="string"?Ee.addText(Re):Re.children&&(Ee.openNode(Re),Re.children.forEach(Ge=>this._walk(Ee,Ge)),Ee.closeNode(Re)),Ee}static _collapse(Ee){typeof Ee!="string"&&Ee.children&&(Ee.children.every(Re=>typeof Re=="string")?Ee.children=[Ee.children.join("")]:Ee.children.forEach(Re=>{c._collapse(Re)}))}}class l extends c{constructor(Ee){super(),this.options=Ee}addKeyword(Ee,Re){Ee!==""&&(this.openNode(Re),this.addText(Ee),this.closeNode())}addText(Ee){Ee!==""&&this.add(Ee)}addSublanguage(Ee,Re){const Ge=Ee.root;Ge.kind=Re,Ge.sublanguage=!0,this.add(Ge)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function f(de){return new RegExp(de.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function h(de){return de?typeof de=="string"?de:de.source:null}function d(...de){return de.map(Re=>h(Re)).join("")}function g(...de){return"("+de.map(Re=>h(Re)).join("|")+")"}function y(de){return new RegExp(de.toString()+"|").exec("").length-1}function v(de,Ee){const Re=de&&de.exec(Ee);return Re&&Re.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(de,Ee="|"){let Re=0;return de.map(Ge=>{Re+=1;const at=Re;let mt=h(Ge),Lt="";for(;mt.length>0;){const Te=E.exec(mt);if(!Te){Lt+=mt;break}Lt+=mt.substring(0,Te.index),mt=mt.substring(Te.index+Te[0].length),Te[0][0]==="\\"&&Te[1]?Lt+="\\"+String(Number(Te[1])+at):(Lt+=Te[0],Te[0]==="("&&Re++)}return Lt}).map(Ge=>`(${Ge})`).join(Ee)}const S=/\b\B/,x="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",C="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",R="\\b(0b[01]+)",O="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",M=(de={})=>{const Ee=/^#![ ]*\//;return de.binary&&(de.begin=d(Ee,/.*\b/,de.binary,/\b.*/)),s({className:"meta",begin:Ee,end:/$/,relevance:0,"on:begin":(Re,Ge)=>{Re.index!==0&&Ge.ignoreMatch()}},de)},k={begin:"\\\\[\\s\\S]",relevance:0},D={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},P={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},H={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Z=function(de,Ee,Re={}){const Ge=s({className:"comment",begin:de,end:Ee,contains:[]},Re);return Ge.contains.push(H),Ge.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),Ge},V=Z("//","$"),G=Z("/\\*","\\*/"),Q=Z("#","$"),Y={className:"number",begin:A,relevance:0},L={className:"number",begin:C,relevance:0},J={className:"number",begin:R,relevance:0},ee={className:"number",begin:A+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},ne={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]}]},ae={className:"title",begin:x,relevance:0},X={className:"title",begin:_,relevance:0},B={begin:"\\.\\s*"+_,relevance:0};var ue=Object.freeze({__proto__:null,MATCH_NOTHING_RE:S,IDENT_RE:x,UNDERSCORE_IDENT_RE:_,NUMBER_RE:A,C_NUMBER_RE:C,BINARY_NUMBER_RE:R,RE_STARTERS_RE:O,SHEBANG:M,BACKSLASH_ESCAPE:k,APOS_STRING_MODE:D,QUOTE_STRING_MODE:P,PHRASAL_WORDS_MODE:H,COMMENT:Z,C_LINE_COMMENT_MODE:V,C_BLOCK_COMMENT_MODE:G,HASH_COMMENT_MODE:Q,NUMBER_MODE:Y,C_NUMBER_MODE:L,BINARY_NUMBER_MODE:J,CSS_NUMBER_MODE:ee,REGEXP_MODE:ne,TITLE_MODE:ae,UNDERSCORE_TITLE_MODE:X,METHOD_GUARD:B,END_SAME_AS_BEGIN:function(de){return Object.assign(de,{"on:begin":(Ee,Re)=>{Re.data._beginMatch=Ee[1]},"on:end":(Ee,Re)=>{Re.data._beginMatch!==Ee[1]&&Re.ignoreMatch()}})}});function fe(de,Ee){de.input[de.index-1]==="."&&Ee.ignoreMatch()}function Ae(de,Ee){Ee&&de.beginKeywords&&(de.begin="\\b("+de.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",de.__beforeBegin=fe,de.keywords=de.keywords||de.beginKeywords,delete de.beginKeywords,de.relevance===void 0&&(de.relevance=0))}function Ne(de,Ee){Array.isArray(de.illegal)&&(de.illegal=g(...de.illegal))}function pe(de,Ee){if(de.match){if(de.begin||de.end)throw new Error("begin & end are not supported with match");de.begin=de.match,delete de.match}}function Oe(de,Ee){de.relevance===void 0&&(de.relevance=1)}const We=["of","and","for","in","not","or","if","then","parent","list","value"],he="keyword";function ve(de,Ee,Re=he){const Ge={};return typeof de=="string"?at(Re,de.split(" ")):Array.isArray(de)?at(Re,de):Object.keys(de).forEach(function(mt){Object.assign(Ge,ve(de[mt],Ee,mt))}),Ge;function at(mt,Lt){Ee&&(Lt=Lt.map(Te=>Te.toLowerCase())),Lt.forEach(function(Te){const Fe=Te.split("|");Ge[Fe[0]]=[mt,Se(Fe[0],Fe[1])]})}}function Se(de,Ee){return Ee?Number(Ee):$(de)?0:1}function $(de){return We.includes(de.toLowerCase())}function T(de,{plugins:Ee}){function Re(Te,Fe){return new RegExp(h(Te),"m"+(de.case_insensitive?"i":"")+(Fe?"g":""))}class Ge{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Fe,nt){nt.position=this.position++,this.matchIndexes[this.matchAt]=nt,this.regexes.push([nt,Fe]),this.matchAt+=y(Fe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Fe=this.regexes.map(nt=>nt[1]);this.matcherRe=Re(b(Fe),!0),this.lastIndex=0}exec(Fe){this.matcherRe.lastIndex=this.lastIndex;const nt=this.matcherRe.exec(Fe);if(!nt)return null;const Ye=nt.findIndex((on,Us)=>Us>0&&on!==void 0),Bt=this.matchIndexes[Ye];return nt.splice(0,Ye),Object.assign(nt,Bt)}}class at{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Fe){if(this.multiRegexes[Fe])return this.multiRegexes[Fe];const nt=new Ge;return this.rules.slice(Fe).forEach(([Ye,Bt])=>nt.addRule(Ye,Bt)),nt.compile(),this.multiRegexes[Fe]=nt,nt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Fe,nt){this.rules.push([Fe,nt]),nt.type==="begin"&&this.count++}exec(Fe){const nt=this.getMatcher(this.regexIndex);nt.lastIndex=this.lastIndex;let Ye=nt.exec(Fe);if(this.resumingScanAtSamePosition()&&!(Ye&&Ye.index===this.lastIndex)){const Bt=this.getMatcher(0);Bt.lastIndex=this.lastIndex+1,Ye=Bt.exec(Fe)}return Ye&&(this.regexIndex+=Ye.position+1,this.regexIndex===this.count&&this.considerAll()),Ye}}function mt(Te){const Fe=new at;return Te.contains.forEach(nt=>Fe.addRule(nt.begin,{rule:nt,type:"begin"})),Te.terminatorEnd&&Fe.addRule(Te.terminatorEnd,{type:"end"}),Te.illegal&&Fe.addRule(Te.illegal,{type:"illegal"}),Fe}function Lt(Te,Fe){const nt=Te;if(Te.isCompiled)return nt;[pe].forEach(Bt=>Bt(Te,Fe)),de.compilerExtensions.forEach(Bt=>Bt(Te,Fe)),Te.__beforeBegin=null,[Ae,Ne,Oe].forEach(Bt=>Bt(Te,Fe)),Te.isCompiled=!0;let Ye=null;if(typeof Te.keywords=="object"&&(Ye=Te.keywords.$pattern,delete Te.keywords.$pattern),Te.keywords&&(Te.keywords=ve(Te.keywords,de.case_insensitive)),Te.lexemes&&Ye)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return Ye=Ye||Te.lexemes||/\w+/,nt.keywordPatternRe=Re(Ye,!0),Fe&&(Te.begin||(Te.begin=/\B|\b/),nt.beginRe=Re(Te.begin),Te.endSameAsBegin&&(Te.end=Te.begin),!Te.end&&!Te.endsWithParent&&(Te.end=/\B|\b/),Te.end&&(nt.endRe=Re(Te.end)),nt.terminatorEnd=h(Te.end)||"",Te.endsWithParent&&Fe.terminatorEnd&&(nt.terminatorEnd+=(Te.end?"|":"")+Fe.terminatorEnd)),Te.illegal&&(nt.illegalRe=Re(Te.illegal)),Te.contains||(Te.contains=[]),Te.contains=[].concat(...Te.contains.map(function(Bt){return U(Bt==="self"?Te:Bt)})),Te.contains.forEach(function(Bt){Lt(Bt,nt)}),Te.starts&&Lt(Te.starts,Fe),nt.matcher=mt(nt),nt}if(de.compilerExtensions||(de.compilerExtensions=[]),de.contains&&de.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return de.classNameAliases=s(de.classNameAliases||{}),Lt(de)}function j(de){return de?de.endsWithParent||j(de.starts):!1}function U(de){return de.variants&&!de.cachedVariants&&(de.cachedVariants=de.variants.map(function(Ee){return s(de,{variants:null},Ee)})),de.cachedVariants?de.cachedVariants:j(de)?s(de,{starts:de.starts?s(de.starts):null}):Object.isFrozen(de)?s(de):de}var re="10.7.3";function ie(de){return!!(de||de==="")}function le(de){const Ee={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!de.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,i(this.code);let Ge={};return this.autoDetect?(Ge=de.highlightAuto(this.code),this.detectedLanguage=Ge.language):(Ge=de.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),Ge.value},autoDetect(){return!this.language||ie(this.autodetect)},ignoreIllegals(){return!0}},render(Ge){return Ge("pre",{},[Ge("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Ee,VuePlugin:{install(Ge){Ge.component("highlightjs",Ee)}}}}const Ie={"after:highlightElement":({el:de,result:Ee,text:Re})=>{const Ge=Qe(de);if(!Ge.length)return;const at=document.createElement("div");at.innerHTML=Ee.value,Ee.value=tt(Ge,Qe(at),Re)}};function Je(de){return de.nodeName.toLowerCase()}function Qe(de){const Ee=[];return function Re(Ge,at){for(let mt=Ge.firstChild;mt;mt=mt.nextSibling)mt.nodeType===3?at+=mt.nodeValue.length:mt.nodeType===1&&(Ee.push({event:"start",offset:at,node:mt}),at=Re(mt,at),Je(mt).match(/br|hr|img|input/)||Ee.push({event:"stop",offset:at,node:mt}));return at}(de,0),Ee}function tt(de,Ee,Re){let Ge=0,at="";const mt=[];function Lt(){return!de.length||!Ee.length?de.length?de:Ee:de[0].offset!==Ee[0].offset?de[0].offset<Ee[0].offset?de:Ee:Ee[0].event==="start"?de:Ee}function Te(Ye){function Bt(on){return" "+on.nodeName+'="'+i(on.value)+'"'}at+="<"+Je(Ye)+[].map.call(Ye.attributes,Bt).join("")+">"}function Fe(Ye){at+="</"+Je(Ye)+">"}function nt(Ye){(Ye.event==="start"?Te:Fe)(Ye.node)}for(;de.length||Ee.length;){let Ye=Lt();if(at+=i(Re.substring(Ge,Ye[0].offset)),Ge=Ye[0].offset,Ye===de){mt.reverse().forEach(Fe);do nt(Ye.splice(0,1)[0]),Ye=Lt();while(Ye===de&&Ye.length&&Ye[0].offset===Ge);mt.reverse().forEach(Te)}else Ye[0].event==="start"?mt.push(Ye[0].node):mt.pop(),nt(Ye.splice(0,1)[0])}return at+i(Re.substr(Ge))}const ct={},$n=de=>{console.error(de)},Si=(de,...Ee)=>{console.log(`WARN: ${de}`,...Ee)},ar=(de,Ee)=>{ct[`${de}/${Ee}`]||(console.log(`Deprecated as of ${de}. ${Ee}`),ct[`${de}/${Ee}`]=!0)},br=i,lr=s,Pt=Symbol("nomatch");var dr=function(de){const Ee=Object.create(null),Re=Object.create(null),Ge=[];let at=!0;const mt=/(^(<[^>]+>|\t|)+|\n)/gm,Lt="Could not find the language '{}', did you forget to load/include a language module?",Te={disableAutodetect:!0,name:"Plain text",contains:[]};let Fe={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:l};function nt(Ce){return Fe.noHighlightRe.test(Ce)}function Ye(Ce){let qe=Ce.className+" ";qe+=Ce.parentNode?Ce.parentNode.className:"";const _t=Fe.languageDetectRe.exec(qe);if(_t){const Nt=lt(_t[1]);return Nt||(Si(Lt.replace("{}",_t[1])),Si("Falling back to no-highlight mode for this block.",Ce)),Nt?_t[1]:"no-highlight"}return qe.split(/\s+/).find(Nt=>nt(Nt)||lt(Nt))}function Bt(Ce,qe,_t,Nt){let _r="",wi="";typeof qe=="object"?(_r=Ce,_t=qe.ignoreIllegals,wi=qe.language,Nt=void 0):(ar("10.7.0","highlight(lang, code, ...args) has been deprecated."),ar("10.7.0",`Please use highlight(code, options) instead.
235
+ https://github.com/highlightjs/highlight.js/issues/2277`),wi=Ce,_r=qe);const ti={code:_r,language:wi};An("before:highlight",ti);const ri=ti.result?ti.result:on(ti.language,ti.code,_t,Nt);return ri.code=ti.code,An("after:highlight",ri),ri}function on(Ce,qe,_t,Nt){function _r(He,Xe){const ht=Ys.case_insensitive?Xe[0].toLowerCase():Xe[0];return Object.prototype.hasOwnProperty.call(He.keywords,ht)&&He.keywords[ht]}function wi(){if(!gt.keywords){ft.addText(fr);return}let He=0;gt.keywordPatternRe.lastIndex=0;let Xe=gt.keywordPatternRe.exec(fr),ht="";for(;Xe;){ht+=fr.substring(He,Xe.index);const Tt=_r(gt,Xe);if(Tt){const[Qr,Xs]=Tt;if(ft.addText(ht),ht="",Ta+=Xs,Qr.startsWith("_"))ht+=Xe[0];else{const Zs=Ys.classNameAliases[Qr]||Qr;ft.addKeyword(Xe[0],Zs)}}else ht+=Xe[0];He=gt.keywordPatternRe.lastIndex,Xe=gt.keywordPatternRe.exec(fr)}ht+=fr.substr(He),ft.addText(ht)}function ti(){if(fr==="")return;let He=null;if(typeof gt.subLanguage=="string"){if(!Ee[gt.subLanguage]){ft.addText(fr);return}He=on(gt.subLanguage,fr,!0,Tf[gt.subLanguage]),Tf[gt.subLanguage]=He.top}else He=Vs(fr,gt.subLanguage.length?gt.subLanguage:null);gt.relevance>0&&(Ta+=He.relevance),ft.addSublanguage(He.emitter,He.language)}function ri(){gt.subLanguage!=null?ti():wi(),fr=""}function ni(He){return He.className&&ft.openNode(Ys.classNameAliases[He.className]||He.className),gt=Object.create(He,{parent:{value:gt}}),gt}function Ln(He,Xe,ht){let Tt=v(He.endRe,ht);if(Tt){if(He["on:end"]){const Qr=new n(He);He["on:end"](Xe,Qr),Qr.isMatchIgnored&&(Tt=!1)}if(Tt){for(;He.endsParent&&He.parent;)He=He.parent;return He}}if(He.endsWithParent)return Ln(He.parent,Xe,ht)}function Af(He){return gt.matcher.regexIndex===0?(fr+=He[0],1):(bs=!0,0)}function Of(He){const Xe=He[0],ht=He.rule,Tt=new n(ht),Qr=[ht.__beforeBegin,ht["on:begin"]];for(const Xs of Qr)if(Xs&&(Xs(He,Tt),Tt.isMatchIgnored))return Af(Xe);return ht&&ht.endSameAsBegin&&(ht.endRe=f(Xe)),ht.skip?fr+=Xe:(ht.excludeBegin&&(fr+=Xe),ri(),!ht.returnBegin&&!ht.excludeBegin&&(fr=Xe)),ni(ht),ht.returnBegin?0:Xe.length}function Cf(He){const Xe=He[0],ht=qe.substr(He.index),Tt=Ln(gt,He,ht);if(!Tt)return Pt;const Qr=gt;Qr.skip?fr+=Xe:(Qr.returnEnd||Qr.excludeEnd||(fr+=Xe),ri(),Qr.excludeEnd&&(fr=Xe));do gt.className&&ft.closeNode(),!gt.skip&&!gt.subLanguage&&(Ta+=gt.relevance),gt=gt.parent;while(gt!==Tt.parent);return Tt.starts&&(Tt.endSameAsBegin&&(Tt.starts.endRe=Tt.endRe),ni(Tt.starts)),Qr.returnEnd?0:Xe.length}function Rf(){const He=[];for(let Xe=gt;Xe!==Ys;Xe=Xe.parent)Xe.className&&He.unshift(Xe.className);He.forEach(Xe=>ft.openNode(Xe))}let Ra={};function Du(He,Xe){const ht=Xe&&Xe[0];if(fr+=He,ht==null)return ri(),0;if(Ra.type==="begin"&&Xe.type==="end"&&Ra.index===Xe.index&&ht===""){if(fr+=qe.slice(Xe.index,Xe.index+1),!at){const Tt=new Error("0 width match regex");throw Tt.languageName=Ce,Tt.badRule=Ra.rule,Tt}return 1}if(Ra=Xe,Xe.type==="begin")return Of(Xe);if(Xe.type==="illegal"&&!_t){const Tt=new Error('Illegal lexeme "'+ht+'" for mode "'+(gt.className||"<unnamed>")+'"');throw Tt.mode=gt,Tt}else if(Xe.type==="end"){const Tt=Cf(Xe);if(Tt!==Pt)return Tt}if(Xe.type==="illegal"&&ht==="")return 1;if(ii>1e5&&ii>Xe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fr+=ht,ht.length}const Ys=lt(Ce);if(!Ys)throw $n(Lt.replace("{}",Ce)),new Error('Unknown language: "'+Ce+'"');const Fm=T(Ys,{plugins:Ge});let qu="",gt=Nt||Fm;const Tf={},ft=new Fe.__emitter(Fe);Rf();let fr="",Ta=0,hr=0,ii=0,bs=!1;try{for(gt.matcher.considerAll();;){ii++,bs?bs=!1:gt.matcher.considerAll(),gt.matcher.lastIndex=hr;const He=gt.matcher.exec(qe);if(!He)break;const Xe=qe.substring(hr,He.index),ht=Du(Xe,He);hr=He.index+ht}return Du(qe.substr(hr)),ft.closeAllNodes(),ft.finalize(),qu=ft.toHTML(),{relevance:Math.floor(Ta),value:qu,language:Ce,illegal:!1,emitter:ft,top:gt}}catch(He){if(He.message&&He.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:He.message,context:qe.slice(hr-100,hr+100),mode:He.mode},sofar:qu,relevance:0,value:br(qe),emitter:ft};if(at)return{illegal:!1,relevance:0,value:br(qe),emitter:ft,language:Ce,top:gt,errorRaised:He};throw He}}function Us(Ce){const qe={relevance:0,emitter:new Fe.__emitter(Fe),value:br(Ce),illegal:!1,top:Te};return qe.emitter.addText(Ce),qe}function Vs(Ce,qe){qe=qe||Fe.languages||Object.keys(Ee);const _t=Us(Ce),Nt=qe.filter(lt).filter(Wt).map(ni=>on(ni,Ce,!1));Nt.unshift(_t);const _r=Nt.sort((ni,Ln)=>{if(ni.relevance!==Ln.relevance)return Ln.relevance-ni.relevance;if(ni.language&&Ln.language){if(lt(ni.language).supersetOf===Ln.language)return 1;if(lt(Ln.language).supersetOf===ni.language)return-1}return 0}),[wi,ti]=_r,ri=wi;return ri.second_best=ti,ri}function un(Ce){return Fe.tabReplace||Fe.useBR?Ce.replace(mt,qe=>qe===`
236
+ `?Fe.useBR?"<br>":qe:Fe.tabReplace?qe.replace(/\t/g,Fe.tabReplace):qe):Ce}function zs(Ce,qe,_t){const Nt=qe?Re[qe]:_t;Ce.classList.add("hljs"),Nt&&Ce.classList.add(Nt)}const Ws={"before:highlightElement":({el:Ce})=>{Fe.useBR&&(Ce.innerHTML=Ce.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
237
+ `))},"after:highlightElement":({result:Ce})=>{Fe.useBR&&(Ce.value=Ce.value.replace(/\n/g,"<br>"))}},Js=/^(<[^>]+>|\t)+/gm,vs={"after:highlightElement":({result:Ce})=>{Fe.tabReplace&&(Ce.value=Ce.value.replace(Js,qe=>qe.replace(/\t/g,Fe.tabReplace)))}};function cn(Ce){let qe=null;const _t=Ye(Ce);if(nt(_t))return;An("before:highlightElement",{el:Ce,language:_t}),qe=Ce;const Nt=qe.textContent,_r=_t?Bt(Nt,{language:_t,ignoreIllegals:!0}):Vs(Nt);An("after:highlightElement",{el:Ce,result:_r,text:Nt}),Ce.innerHTML=_r.value,zs(Ce,_t,_r.language),Ce.result={language:_r.language,re:_r.relevance,relavance:_r.relevance},_r.second_best&&(Ce.second_best={language:_r.second_best.language,re:_r.second_best.relevance,relavance:_r.second_best.relevance})}function Fn(Ce){Ce.useBR&&(ar("10.3.0","'useBR' will be removed entirely in v11.0"),ar("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Fe=lr(Fe,Ce)}const Ks=()=>{if(Ks.called)return;Ks.called=!0,ar("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(cn)};function Hs(){ar("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Vi=!0}let Vi=!1;function kr(){if(document.readyState==="loading"){Vi=!0;return}document.querySelectorAll("pre code").forEach(cn)}function vt(){Vi&&kr()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",vt,!1);function Ke(Ce,qe){let _t=null;try{_t=qe(de)}catch(Nt){if($n("Language definition for '{}' could not be registered.".replace("{}",Ce)),at)$n(Nt);else throw Nt;_t=Te}_t.name||(_t.name=Ce),Ee[Ce]=_t,_t.rawDefinition=qe.bind(null,de),_t.aliases&&rr(_t.aliases,{languageName:Ce})}function se(Ce){delete Ee[Ce];for(const qe of Object.keys(Re))Re[qe]===Ce&&delete Re[qe]}function _e(){return Object.keys(Ee)}function Ue(Ce){ar("10.4.0","requireLanguage will be removed entirely in v11."),ar("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const qe=lt(Ce);if(qe)return qe;throw new Error("The '{}' language is required, but not loaded.".replace("{}",Ce))}function lt(Ce){return Ce=(Ce||"").toLowerCase(),Ee[Ce]||Ee[Re[Ce]]}function rr(Ce,{languageName:qe}){typeof Ce=="string"&&(Ce=[Ce]),Ce.forEach(_t=>{Re[_t.toLowerCase()]=qe})}function Wt(Ce){const qe=lt(Ce);return qe&&!qe.disableAutodetect}function Yt(Ce){Ce["before:highlightBlock"]&&!Ce["before:highlightElement"]&&(Ce["before:highlightElement"]=qe=>{Ce["before:highlightBlock"](Object.assign({block:qe.el},qe))}),Ce["after:highlightBlock"]&&!Ce["after:highlightElement"]&&(Ce["after:highlightElement"]=qe=>{Ce["after:highlightBlock"](Object.assign({block:qe.el},qe))})}function Zr(Ce){Yt(Ce),Ge.push(Ce)}function An(Ce,qe){const _t=Ce;Ge.forEach(function(Nt){Nt[_t]&&Nt[_t](qe)})}function xr(Ce){return ar("10.2.0","fixMarkup will be removed entirely in v11.0"),ar("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),un(Ce)}function Gs(Ce){return ar("10.7.0","highlightBlock will be removed entirely in v12.0"),ar("10.7.0","Please use highlightElement now."),cn(Ce)}Object.assign(de,{highlight:Bt,highlightAuto:Vs,highlightAll:kr,fixMarkup:xr,highlightElement:cn,highlightBlock:Gs,configure:Fn,initHighlighting:Ks,initHighlightingOnLoad:Hs,registerLanguage:Ke,unregisterLanguage:se,listLanguages:_e,getLanguage:lt,registerAliases:rr,requireLanguage:Ue,autoDetection:Wt,inherit:lr,addPlugin:Zr,vuePlugin:le(de).VuePlugin}),de.debugMode=function(){at=!1},de.safeMode=function(){at=!0},de.versionString=re;for(const Ce in ue)typeof ue[Ce]=="object"&&t(ue[Ce]);return Object.assign(de,ue),de.addPlugin(Ws),de.addPlugin(Ie),de.addPlugin(vs),de}({});return x1=dr,x1}var A1={exports:{}},kF;function ghe(){return kF||(kF=1,function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(t.printf=r);function r(){console.log(i.apply(null,arguments))}function n(s,a){return i.apply(null,[s].concat(a))}function i(s){for(var a=1,o=[].slice.call(arguments),u=0,c=s.length,l="",f,h=!1,d,g,y=!1,v,E=function(){return o[a++]},b=function(){for(var S="";/\d/.test(s[u]);)S+=s[u++],f=s[u];return S.length>0?parseInt(S):null};u<c;++u)if(f=s[u],h)switch(h=!1,f=="."?(y=!1,f=s[++u]):f=="0"&&s[u+1]=="."?(y=!0,u+=2,f=s[u]):y=!0,v=b(),f){case"b":l+=parseInt(E(),10).toString(2);break;case"c":d=E(),typeof d=="string"||d instanceof String?l+=d:l+=String.fromCharCode(parseInt(d,10));break;case"d":l+=parseInt(E(),10);break;case"f":g=String(parseFloat(E()).toFixed(v||6)),l+=y?g:g.replace(/^0/,"");break;case"j":l+=JSON.stringify(E());break;case"o":l+="0"+parseInt(E(),10).toString(8);break;case"s":l+=E();break;case"x":l+="0x"+parseInt(E(),10).toString(16);break;case"X":l+="0x"+parseInt(E(),10).toString(16).toUpperCase();break;default:l+=f;break}else f==="%"?h=!0:l+=f;return l}})()}(A1)),A1.exports}var O1,PF;function yhe(){if(PF)return O1;PF=1;var e=ghe(),t=r(Error);O1=t,t.eval=r(EvalError),t.range=r(RangeError),t.reference=r(ReferenceError),t.syntax=r(SyntaxError),t.type=r(TypeError),t.uri=r(URIError),t.create=r;function r(n){return i.displayName=n.displayName||n.name,i;function i(s){return s&&(s=e.apply(null,arguments)),new n(s)}}return O1}var NF;function vhe(){if(NF)return ja;NF=1;var e=mhe(),t=yhe();ja.highlight=n,ja.highlightAuto=i,ja.registerLanguage=s,ja.listLanguages=a,ja.registerAlias=o,u.prototype.addText=f,u.prototype.addKeyword=c,u.prototype.addSublanguage=l,u.prototype.openNode=h,u.prototype.closeNode=d,u.prototype.closeAllNodes=y,u.prototype.finalize=y,u.prototype.toHTML=g;var r="hljs-";function n(v,E,b){var S=e.configure({}),x=b||{},_=x.prefix,A;if(typeof v!="string")throw t("Expected `string` for name, got `%s`",v);if(!e.getLanguage(v))throw t("Unknown language: `%s` is not registered",v);if(typeof E!="string")throw t("Expected `string` for value, got `%s`",E);if(_==null&&(_=r),e.configure({__emitter:u,classPrefix:_}),A=e.highlight(E,{language:v,ignoreIllegals:!0}),e.configure(S||{}),A.errorRaised)throw A.errorRaised;return{relevance:A.relevance,language:A.language,value:A.emitter.rootNode.children}}function i(v,E){var b=E||{},S=b.subset||e.listLanguages();b.prefix;var x=S.length,_=-1,A,C,R,O;if(typeof v!="string")throw t("Expected `string` for value, got `%s`",v);for(C={relevance:0,language:null,value:[]},A={relevance:0,language:null,value:[]};++_<x;)O=S[_],e.getLanguage(O)&&(R=n(O,v,E),R.language=O,R.relevance>C.relevance&&(C=R),R.relevance>A.relevance&&(C=A,A=R));return C.language&&(A.secondBest=C),A}function s(v,E){e.registerLanguage(v,E)}function a(){return e.listLanguages()}function o(v,E){var b=v,S;E&&(b={},b[v]=E);for(S in b)e.registerAliases(b[S],{languageName:S})}function u(v){this.options=v,this.rootNode={children:[]},this.stack=[this.rootNode]}function c(v,E){this.openNode(E),this.addText(v),this.closeNode()}function l(v,E){var b=this.stack,S=b[b.length-1],x=v.rootNode.children,_=E?{type:"element",tagName:"span",properties:{className:[E]},children:x}:x;S.children=S.children.concat(_)}function f(v){var E=this.stack,b,S;v!==""&&(b=E[E.length-1],S=b.children[b.children.length-1],S&&S.type==="text"?S.value+=v:b.children.push({type:"text",value:v}))}function h(v){var E=this.stack,b=this.options.classPrefix+v,S=E[E.length-1],x={type:"element",tagName:"span",properties:{className:[b]},children:[]};S.children.push(x),E.push(x)}function d(){this.stack.pop()}function g(){return""}function y(){}return ja}var bhe=vhe();const qU=Be.getDefaultExportFromCjs(bhe);var $U=hhe(qU,{});$U.registerLanguage=qU.registerLanguage;var C1,MF;function _he(){if(MF)return C1;MF=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],n=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],i=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],o=[].concat(s,a,n,i);function u(h){return h?typeof h=="string"?h:h.source:null}function c(h){return l("(?=",h,")")}function l(...h){return h.map(g=>u(g)).join("")}function f(h){const d=(V,{after:G})=>{const Q="</"+V[0].slice(1);return V.input.indexOf(Q,G)!==-1},g=e,y={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,G)=>{const Q=V[0].length+V.index,Y=V.input[Q];if(Y==="<"){G.ignoreMatch();return}Y===">"&&(d(V,{after:Q})||G.ignoreMatch())}},E={$pattern:e,keyword:t,literal:r,built_in:o},b="[0-9](_?[0-9])*",S=`\\.(${b})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",_={className:"number",variants:[{begin:`(\\b(${x})((${S})|\\.)?|(${S}))[eE][+-]?(${b})\\b`},{begin:`\\b(${x})\\b((${S})\\b|\\.)?|(${S})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},C={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},R={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"css"}},O={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,A]},k={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},D=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,C,R,O,_,h.REGEXP_MODE];A.contains=D.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(D)});const P=[].concat(k,A.contains),H=P.concat([{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(P)}]),Z={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:H};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:H},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,C,R,O,k,_,{begin:l(/[{,\n]\s*/,c(l(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+c("\\s*:"),relevance:0}]},{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[k,h.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:H}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:y.begin,end:y.end},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:E,contains:["self",h.inherit(h.TITLE_MODE,{begin:g}),Z],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[Z,h.inherit(h.TITLE_MODE,{begin:g})]},{variants:[{begin:"\\."+g},{begin:"\\$"+g}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},h.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[h.inherit(h.TITLE_MODE,{begin:g}),"self",Z]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:g}),{begin:/\(\)/},Z]},{begin:/\$[(.]/}]}}return C1=f,C1}var Ehe=_he();const She=Be.getDefaultExportFromCjs(Ehe);var R1,DF;function whe(){if(DF)return R1;DF=1;function e(t){const r={literal:"true false null"},n=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],i=[t.QUOTE_STRING_MODE,t.C_NUMBER_MODE],s={end:",",endsWithParent:!0,excludeEnd:!0,contains:i,keywords:r},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE],illegal:"\\n"},t.inherit(s,{begin:/:/})].concat(n),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[t.inherit(s)],illegal:"\\S"};return i.push(a,o),n.forEach(function(u){i.push(u)}),{name:"JSON",contains:i,keywords:r,illegal:"\\S"}}return R1=e,R1}var xhe=whe();const Ahe=Be.getDefaultExportFromCjs(xhe);var T1,qF;function Ohe(){if(qF)return T1;qF=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return n("(?=",a,")")}function r(a){return n("(",a,")?")}function n(...a){return a.map(u=>e(u)).join("")}function i(...a){return"("+a.map(u=>e(u)).join("|")+")"}function s(a){const o=n(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),u=/[A-Za-z0-9._:-]+/,c={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},f=a.inherit(l,{begin:/\(/,end:/\)/}),h=a.inherit(a.APOS_STRING_MODE,{className:"meta-string"}),d=a.inherit(a.QUOTE_STRING_MODE,{className:"meta-string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[c]},{begin:/'/,end:/'/,contains:[c]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[l,d,h,f,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,f,d,h]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},c,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n(/</,t(n(o,i(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:g}]},{className:"tag",begin:n(/<\//,t(n(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return T1=s,T1}var Che=Ohe();const Rhe=Be.getDefaultExportFromCjs(Che);var I1,$F;function The(){if($F)return I1;$F=1;function e(n){return n?typeof n=="string"?n:n.source:null}function t(...n){return n.map(s=>e(s)).join("")}function r(n){const i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,i,a]};a.contains.push(u);const c={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},f={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,i]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=n.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[d,n.SHEBANG(),g,f,n.HASH_COMMENT_MODE,o,u,c,l,i]}}return I1=r,I1}var Ihe=The();const jhe=Be.getDefaultExportFromCjs(Ihe);var j1,FF;function khe(){if(FF)return j1;FF=1;function e(t){var r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,s]},o=t.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),u="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",l="(\\.[0-9]*)?",f="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",h={className:"number",begin:"\\b"+u+c+l+f+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},h,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},g,y,a],E=[...v];return E.pop(),E.push(o),d.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return j1=e,j1}var Phe=khe();const Nhe=Be.getDefaultExportFromCjs(Phe);var k1,LF;function Mhe(){if(LF)return k1;LF=1;function e(n){return n?typeof n=="string"?n:n.source:null}function t(...n){return n.map(s=>e(s)).join("")}function r(n){const i="HTTP/(2|1\\.[01])",a={className:"attribute",begin:t("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},n.inherit(a,{relevance:0})]}}return k1=r,k1}var Dhe=Mhe();const qhe=Be.getDefaultExportFromCjs(Dhe);var P1,BF;function $he(){if(BF)return P1;BF=1;function e(t){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",s={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},u={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},c={className:"literal",begin:/\$(null|true|false)\b/},l={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,u,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},f={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},h={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},d=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[h]}),g={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},y={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},v={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[u]}]},E={begin:/using\s/,end:/$/,returnBegin:!0,contains:[l,f,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},S={className:"selector-tag",begin:/@\B/,relevance:0},x={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},_=[x,d,o,t.NUMBER_MODE,l,f,g,u,c,S],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",_,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return x.contains.unshift(A),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:s,contains:_.concat(y,v,E,b,A)}}return P1=e,P1}var Fhe=$he();const Lhe=Be.getDefaultExportFromCjs(Fhe),Bhe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}},Uhe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},Vhe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},zhe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},Whe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},Jhe={"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},Khe={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var N1,UF;function Hhe(){return UF||(UF=1,N1=function(e,t,r,n){var i=typeof n<"u"?[n,e]:[e],s=new Blob(i,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,t);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),o=document.createElement("a");o.style.display="none",o.href=a,o.setAttribute("download",t),typeof o.download>"u"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)}}),N1}var Ghe=Hhe();const Yhe=Be.getDefaultExportFromCjs(Ghe);var M1,VF;function Xhe(){if(VF)return M1;VF=1;function e(t,r,n){for(var i=-1,s=t.length,a=r.length,o={};++i<s;){var u=i<a?r[i]:void 0;n(o,t[i],u)}return o}return M1=e,M1}var D1,zF;function Zhe(){if(zF)return D1;zF=1;var e=sh(),t=Xhe();function r(n,i){return t(n||[],i||[],e)}return D1=r,D1}var Qhe=Zhe();const eme=Be.getDefaultExportFromCjs(Qhe);var tme=ks();const rme=Be.getDefaultExportFromCjs(tme);/*!
238
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
239
+ *
240
+ * Copyright (c) 2014-2015, Jon Schlinkert.
241
+ * Licensed under the MIT License.
242
+ */var q1,WF;function nme(){if(WF)return q1;WF=1;var e="",t;q1=r;function r(n,i){if(typeof n!="string")throw new TypeError("expected a string");if(i===1)return n;if(i===2)return n+n;var s=n.length*i;if(t!==n||typeof t>"u")t=n,e="";else if(e.length>=s)return e.substr(0,s);for(;s>e.length&&i>1;)i&1&&(e+=n),i>>=1,n+=n;return e+=n,e=e.substr(0,s),e}return q1}var $1,JF;function ime(){if(JF)return $1;JF=1;var e=nme(),t=function(c){return c.split(/(<\/?[^>]+>)/g).filter(function(l){return l.trim()!==""})},r=function(c){return/<[^>!]+>/.test(c)},n=function(c){return/<\/+[^>]+>/.test(c)},i=function(c){return/<[^>]+\/>/.test(c)},s=function(c){return r(c)&&!n(c)&&!i(c)};$1=function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.indentor,f=c.textNodesOnSameLine,h=0,d=[];l=l||" ";var g=a(u).map(function(y,v,E){var b=y.value,S=y.type;S==="ClosingTag"&&h--;var x=e(l,h),_=x+b;if(S==="OpeningTag"&&h++,f){var A=E[v-1],C=E[v-2];S==="ClosingTag"&&A.type==="Text"&&C.type==="OpeningTag"&&(_=""+x+C.value+A.value+b,d.push(v-2,v-1))}return _});return d.forEach(function(y){return g[y]=null}),g.filter(function(y){return!!y}).join(`
243
+ `)};function a(u){var c=t(u);return c.map(function(l){return{value:l,type:o(l)}})}function o(u){return n(u)?"ClosingTag":s(u)?"OpeningTag":i(u)?"SelfClosingTag":"Text"}return $1}var sme=ime();const ame=Be.getDefaultExportFromCjs(sme);var F1,KF;function ome(){if(KF)return F1;KF=1;var e=ks();function t(r){return e(r).toLowerCase()}return F1=t,F1}var ume=ome();const cme=Be.getDefaultExportFromCjs(ume);var tp;function FU(e){return tp=tp||document.createElement("textarea"),tp.innerHTML="&"+e+";",tp.value}var lme=Object.prototype.hasOwnProperty;function fme(e,t){return e?lme.call(e,t):!1}function LU(e){var t=[].slice.call(arguments,1);return t.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}var pme=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Lc(e){return e.indexOf("\\")<0?e:e.replace(pme,"$1")}function BU(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Bx(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var dme=/&([a-z#][a-z0-9]{1,31});/gi,hme=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function mme(e,t){var r=0,n=FU(t);return t!==n?n:t.charCodeAt(0)===35&&hme.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),BU(r))?Bx(r):e}function Xa(e){return e.indexOf("&")<0?e:e.replace(dme,mme)}var gme=/[&<>"]/,yme=/[&<>"]/g,vme={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function bme(e){return vme[e]}function jn(e){return gme.test(e)?e.replace(yme,bme):e}var Ve={};Ve.blockquote_open=function(){return`<blockquote>
244
+ `};Ve.blockquote_close=function(e,t){return"</blockquote>"+yo(e,t)};Ve.code=function(e,t){return e[t].block?"<pre><code>"+jn(e[t].content)+"</code></pre>"+yo(e,t):"<code>"+jn(e[t].content)+"</code>"};Ve.fence=function(e,t,r,n,i){var s=e[t],a="",o=r.langPrefix,u="",c,l,f;if(s.params){if(c=s.params.split(/\s+/g),l=c.join(" "),fme(i.rules.fence_custom,c[0]))return i.rules.fence_custom[c[0]](e,t,r,n,i);u=jn(Xa(Lc(l))),a=' class="'+o+u+'"'}return r.highlight?f=r.highlight.apply(r.highlight,[s.content].concat(c))||jn(s.content):f=jn(s.content),"<pre><code"+a+">"+f+"</code></pre>"+yo(e,t)};Ve.fence_custom={};Ve.heading_open=function(e,t){return"<h"+e[t].hLevel+">"};Ve.heading_close=function(e,t){return"</h"+e[t].hLevel+`>
245
+ `};Ve.hr=function(e,t,r){return(r.xhtmlOut?"<hr />":"<hr>")+yo(e,t)};Ve.bullet_list_open=function(){return`<ul>
246
+ `};Ve.bullet_list_close=function(e,t){return"</ul>"+yo(e,t)};Ve.list_item_open=function(){return"<li>"};Ve.list_item_close=function(){return`</li>
247
+ `};Ve.ordered_list_open=function(e,t){var r=e[t],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
248
+ `};Ve.ordered_list_close=function(e,t){return"</ol>"+yo(e,t)};Ve.paragraph_open=function(e,t){return e[t].tight?"":"<p>"};Ve.paragraph_close=function(e,t){var r=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"</p>")+(r?yo(e,t):"")};Ve.link_open=function(e,t,r){var n=e[t].title?' title="'+jn(Xa(e[t].title))+'"':"",i=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+jn(e[t].href)+'"'+n+i+">"};Ve.link_close=function(){return"</a>"};Ve.image=function(e,t,r){var n=' src="'+jn(e[t].src)+'"',i=e[t].title?' title="'+jn(Xa(e[t].title))+'"':"",s=' alt="'+(e[t].alt?jn(Xa(Lc(e[t].alt))):"")+'"',a=r.xhtmlOut?" /":"";return"<img"+n+s+i+a+">"};Ve.table_open=function(){return`<table>
249
+ `};Ve.table_close=function(){return`</table>
250
+ `};Ve.thead_open=function(){return`<thead>
251
+ `};Ve.thead_close=function(){return`</thead>
252
+ `};Ve.tbody_open=function(){return`<tbody>
253
+ `};Ve.tbody_close=function(){return`</tbody>
254
+ `};Ve.tr_open=function(){return"<tr>"};Ve.tr_close=function(){return`</tr>
255
+ `};Ve.th_open=function(e,t){var r=e[t];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ve.th_close=function(){return"</th>"};Ve.td_open=function(e,t){var r=e[t];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ve.td_close=function(){return"</td>"};Ve.strong_open=function(){return"<strong>"};Ve.strong_close=function(){return"</strong>"};Ve.em_open=function(){return"<em>"};Ve.em_close=function(){return"</em>"};Ve.del_open=function(){return"<del>"};Ve.del_close=function(){return"</del>"};Ve.ins_open=function(){return"<ins>"};Ve.ins_close=function(){return"</ins>"};Ve.mark_open=function(){return"<mark>"};Ve.mark_close=function(){return"</mark>"};Ve.sub=function(e,t){return"<sub>"+jn(e[t].content)+"</sub>"};Ve.sup=function(e,t){return"<sup>"+jn(e[t].content)+"</sup>"};Ve.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
256
+ `:`<br>
257
+ `};Ve.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
258
+ `:`<br>
259
+ `:`
260
+ `};Ve.text=function(e,t){return jn(e[t].content)};Ve.htmlblock=function(e,t){return e[t].content};Ve.htmltag=function(e,t){return e[t].content};Ve.abbr_open=function(e,t){return'<abbr title="'+jn(Xa(e[t].title))+'">'};Ve.abbr_close=function(){return"</abbr>"};Ve.footnote_ref=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"};Ve.footnote_block_open=function(e,t,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
261
+ `:`<hr class="footnotes-sep">
262
+ `;return n+`<section class="footnotes">
263
+ <ol class="footnotes-list">
264
+ `};Ve.footnote_block_close=function(){return`</ol>
265
+ </section>
266
+ `};Ve.footnote_open=function(e,t){var r=Number(e[t].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};Ve.footnote_close=function(){return`</li>
267
+ `};Ve.footnote_anchor=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'};Ve.dl_open=function(){return`<dl>
268
+ `};Ve.dt_open=function(){return"<dt>"};Ve.dd_open=function(){return"<dd>"};Ve.dl_close=function(){return`</dl>
269
+ `};Ve.dt_close=function(){return`</dt>
270
+ `};Ve.dd_close=function(){return`</dd>
271
+ `};function UU(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?UU(e,t+2):t}var yo=Ve.getBreak=function(t,r){return r=UU(t,r),r<t.length&&t[r].type==="list_item_close"?"":`
272
+ `};function bC(){this.rules=LU({},Ve),this.getBreak=Ve.getBreak}bC.prototype.renderInline=function(e,t,r){for(var n=this.rules,i=e.length,s=0,a="";i--;)a+=n[e[s].type](e,s++,t,r,this);return a};bC.prototype.render=function(e,t,r){for(var n=this.rules,i=e.length,s=-1,a="";++s<i;)e[s].type==="inline"?a+=this.renderInline(e[s].children,t,r):a+=n[e[s].type](e,s,t,r,this);return a};function ei(){this.__rules__=[],this.__cache__=null}ei.prototype.__find__=function(e){for(var t=this.__rules__.length,r=-1;t--;)if(this.__rules__[++r].name===e)return r;return-1};ei.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})};ei.prototype.at=function(e,t,r){var n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null};ei.prototype.before=function(e,t,r,n){var i=this.__find__(e),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};ei.prototype.after=function(e,t,r,n){var i=this.__find__(e),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};ei.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};ei.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(r){r.enabled=!1}),e.forEach(function(r){var n=this.__find__(r);if(n<0)throw new Error("Rules manager: invalid rule name "+r);this.__rules__[n].enabled=!0},this),this.__cache__=null};ei.prototype.disable=function(e){e=Array.isArray(e)?e:[e],e.forEach(function(t){var r=this.__find__(t);if(r<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[r].enabled=!1},this),this.__cache__=null};ei.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function _me(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}function vo(e,t,r,n,i){this.src=e,this.env=n,this.options=r,this.parser=t,this.tokens=i,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}vo.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};vo.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level};vo.prototype.cacheSet=function(e,t){for(var r=this.cache.length;r<=e;r++)this.cache.push(0);this.cache[e]=t};vo.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function Bc(e,t){var r,n,i,s=-1,a=e.posMax,o=e.pos,u=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,r=1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),i===91)r++;else if(i===93&&(r--,r===0)){n=!0;break}e.parser.skipToken(e)}return n?(s=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=r-1,e.pos=o,e.isInLabel=u,s}function Eme(e,t,r,n){var i,s,a,o,u,c;if(e.charCodeAt(0)!==42||e.charCodeAt(1)!==91||e.indexOf("]:")===-1||(i=new vo(e,t,r,n,[]),s=Bc(i,1),s<0||e.charCodeAt(s+1)!==58))return-1;for(o=i.posMax,a=s+2;a<o&&i.src.charCodeAt(a)!==10;a++);return u=e.slice(2,s),c=e.slice(s+2,a).trim(),c.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+u]>"u"&&(n.abbreviations[":"+u]=c),a)}function Sme(e){var t=e.tokens,r,n,i,s;if(!e.inlineMode){for(r=1,n=t.length-1;r<n;r++)if(t[r-1].type==="paragraph_open"&&t[r].type==="inline"&&t[r+1].type==="paragraph_close"){for(i=t[r].content;i.length&&(s=Eme(i,e.inline,e.options,e.env),!(s<0));)i=i.slice(s).trim();t[r].content=i,i.length||(t[r-1].tight=!0,t[r+1].tight=!0)}}}function Ux(e){var t=Xa(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function VU(e,t){var r,n,i,s=t,a=e.posMax;if(e.src.charCodeAt(t)===60){for(t++;t<a;){if(r=e.src.charCodeAt(t),r===10)return!1;if(r===62)return i=Ux(Lc(e.src.slice(s+1,t))),e.parser.validateLink(i)?(e.pos=t+1,e.linkContent=i,!0):!1;if(r===92&&t+1<a){t+=2;continue}t++}return!1}for(n=0;t<a&&(r=e.src.charCodeAt(t),!(r===32||r<32||r===127));){if(r===92&&t+1<a){t+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;t++}return s===t||(i=Lc(e.src.slice(s,t)),!e.parser.validateLink(i))?!1:(e.linkContent=i,e.pos=t,!0)}function zU(e,t){var r,n=t,i=e.posMax,s=e.src.charCodeAt(t);if(s!==34&&s!==39&&s!==40)return!1;for(t++,s===40&&(s=41);t<i;){if(r=e.src.charCodeAt(t),r===s)return e.pos=t+1,e.linkContent=Lc(e.src.slice(n+1,t)),!0;if(r===92&&t+1<i){t+=2;continue}t++}return!1}function WU(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function wme(e,t,r,n){var i,s,a,o,u,c,l,f,h;if(e.charCodeAt(0)!==91||e.indexOf("]:")===-1||(i=new vo(e,t,r,n,[]),s=Bc(i,0),s<0||e.charCodeAt(s+1)!==58))return-1;for(o=i.posMax,a=s+2;a<o&&(u=i.src.charCodeAt(a),!(u!==32&&u!==10));a++);if(!VU(i,a))return-1;for(l=i.linkContent,a=i.pos,c=a,a=a+1;a<o&&(u=i.src.charCodeAt(a),!(u!==32&&u!==10));a++);for(a<o&&c!==a&&zU(i,a)?(f=i.linkContent,a=i.pos):(f="",a=c);a<o&&i.src.charCodeAt(a)===32;)a++;return a<o&&i.src.charCodeAt(a)!==10?-1:(h=WU(e.slice(1,s)),typeof n.references[h]>"u"&&(n.references[h]={title:f,href:l}),a)}function xme(e){var t=e.tokens,r,n,i,s;if(e.env.references=e.env.references||{},!e.inlineMode){for(r=1,n=t.length-1;r<n;r++)if(t[r].type==="inline"&&t[r-1].type==="paragraph_open"&&t[r+1].type==="paragraph_close"){for(i=t[r].content;i.length&&(s=wme(i,e.inline,e.options,e.env),!(s<0));)i=i.slice(s).trim();t[r].content=i,i.length||(t[r-1].tight=!0,t[r+1].tight=!0)}}}function Ame(e){var t=e.tokens,r,n,i;for(n=0,i=t.length;n<i;n++)r=t[n],r.type==="inline"&&e.inline.parse(r.content,e.options,e.env,r.children)}function Ome(e){var t,r,n,i,s,a,o,u,c,l=0,f=!1,h={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(d){return d.type==="footnote_reference_open"?(f=!0,u=[],c=d.label,!1):d.type==="footnote_reference_close"?(f=!1,h[":"+c]=u,!1):(f&&u.push(d),!f)}),!!e.env.footnotes.list)){for(a=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:l++}),t=0,r=a.length;t<r;t++){for(e.tokens.push({type:"footnote_open",id:t,level:l++}),a[t].tokens?(o=[],o.push({type:"paragraph_open",tight:!1,level:l++}),o.push({type:"inline",content:"",level:l,children:a[t].tokens}),o.push({type:"paragraph_close",tight:!1,level:--l})):a[t].label&&(o=h[":"+a[t].label]),e.tokens=e.tokens.concat(o),e.tokens[e.tokens.length-1].type==="paragraph_close"?s=e.tokens.pop():s=null,i=a[t].count>0?a[t].count:1,n=0;n<i;n++)e.tokens.push({type:"footnote_anchor",id:t,subId:n,level:l});s&&e.tokens.push(s),e.tokens.push({type:"footnote_close",level:--l})}e.tokens.push({type:"footnote_block_close",level:--l})}}var HF=`
273
+ ()[]'".,!?-`;function L1(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function Cme(e){var t,r,n,i,s,a,o,u,c,l,f,h,d=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(h="(^|["+HF.split("").map(L1).join("")+"])("+Object.keys(e.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,y){return y.length-g.length}).map(L1).join("|")+")($|["+HF.split("").map(L1).join("")+"])",e.env.abbrRegExp=new RegExp(h,"g")),l=e.env.abbrRegExp,r=0,n=d.length;r<n;r++)if(d[r].type==="inline"){for(i=d[r].children,t=i.length-1;t>=0;t--)if(s=i[t],s.type==="text"){for(u=0,a=s.content,l.lastIndex=0,c=s.level,o=[];f=l.exec(a);)l.lastIndex>u&&o.push({type:"text",content:a.slice(u,f.index+f[1].length),level:c}),o.push({type:"abbr_open",title:e.env.abbreviations[":"+f[2]],level:c++}),o.push({type:"text",content:f[2],level:c}),o.push({type:"abbr_close",level:--c}),u=l.lastIndex-f[3].length;o.length&&(u<a.length&&o.push({type:"text",content:a.slice(u),level:c}),d[r].children=i=[].concat(i.slice(0,t),o,i.slice(t+1)))}}}}var Rme=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Tme=/\((c|tm|r|p)\)/ig,Ime={c:"©",r:"®",p:"§",tm:"™"};function jme(e){return e.indexOf("(")<0?e:e.replace(Tme,function(t,r){return Ime[r.toLowerCase()]})}function kme(e){var t,r,n,i,s;if(e.options.typographer){for(s=e.tokens.length-1;s>=0;s--)if(e.tokens[s].type==="inline")for(i=e.tokens[s].children,t=i.length-1;t>=0;t--)r=i[t],r.type==="text"&&(n=r.content,n=jme(n),Rme.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=n)}}var Pme=/['"]/,GF=/['"]/g,Nme=/[-\s()\[\]]/,YF="’";function XF(e,t){return t<0||t>=e.length?!1:!Nme.test(e[t])}function Po(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function Mme(e){var t,r,n,i,s,a,o,u,c,l,f,h,d,g,y,v,E;if(e.options.typographer){for(E=[],y=e.tokens.length-1;y>=0;y--)if(e.tokens[y].type==="inline"){for(v=e.tokens[y].children,E.length=0,t=0;t<v.length;t++)if(r=v[t],!(r.type!=="text"||Pme.test(r.text))){for(o=v[t].level,d=E.length-1;d>=0&&!(E[d].level<=o);d--);E.length=d+1,n=r.content,s=0,a=n.length;e:for(;s<a&&(GF.lastIndex=s,i=GF.exec(n),!!i);){if(u=!XF(n,i.index-1),s=i.index+1,g=i[0]==="'",c=!XF(n,s),!c&&!u){g&&(r.content=Po(r.content,i.index,YF));continue}if(f=!c,h=!u,h){for(d=E.length-1;d>=0&&(l=E[d],!(E[d].level<o));d--)if(l.single===g&&E[d].level===o){l=E[d],g?(v[l.token].content=Po(v[l.token].content,l.pos,e.options.quotes[2]),r.content=Po(r.content,i.index,e.options.quotes[3])):(v[l.token].content=Po(v[l.token].content,l.pos,e.options.quotes[0]),r.content=Po(r.content,i.index,e.options.quotes[1])),E.length=d;continue e}}f?E.push({token:t,pos:i.index,single:g,level:o}):h&&g&&(r.content=Po(r.content,i.index,YF))}}}}}var B1=[["block",_me],["abbr",Sme],["references",xme],["inline",Ame],["footnote_tail",Ome],["abbr2",Cme],["replacements",kme],["smartquotes",Mme]];function JU(){this.options={},this.ruler=new ei;for(var e=0;e<B1.length;e++)this.ruler.push(B1[e][0],B1[e][1])}JU.prototype.process=function(e){var t,r,n;for(n=this.ruler.getRules(""),t=0,r=n.length;t<r;t++)n[t](e)};function bo(e,t,r,n,i){var s,a,o,u,c,l,f;for(this.src=e,this.parser=t,this.options=r,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",a=this.src,l=0,f=!1,o=u=l=0,c=a.length;u<c;u++){if(s=a.charCodeAt(u),!f)if(s===32){l++;continue}else f=!0;(s===10||u===c-1)&&(s!==10&&u++,this.bMarks.push(o),this.eMarks.push(u),this.tShift.push(l),f=!1,l=0,o=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}bo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};bo.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};bo.prototype.skipSpaces=function(t){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===32;t++);return t};bo.prototype.skipChars=function(t,r){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};bo.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};bo.prototype.getLines=function(t,r,n,i){var s,a,o,u,c,l=t;if(t>=r)return"";if(l+1===r)return a=this.bMarks[l]+Math.min(this.tShift[l],n),o=i?this.eMarks[l]+1:this.eMarks[l],this.src.slice(a,o);for(u=new Array(r-t),s=0;l<r;l++,s++)c=this.tShift[l],c>n&&(c=n),c<0&&(c=0),a=this.bMarks[l]+c,l+1<r||i?o=this.eMarks[l]+1:o=this.eMarks[l],u[s]=this.src.slice(a,o);return u.join("")};function Dme(e,t,r){var n,i;if(e.tShift[t]-e.blkIndent<4)return!1;for(i=n=t+1;n<r;){if(e.isEmpty(n)){n++;continue}if(e.tShift[n]-e.blkIndent>=4){n++,i=n;continue}break}return e.line=n,e.tokens.push({type:"code",content:e.getLines(t,i,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function qme(e,t,r,n){var i,s,a,o,u,c=!1,l=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(l+3>f||(i=e.src.charCodeAt(l),i!==126&&i!==96)||(u=l,l=e.skipChars(l,i),s=l-u,s<3)||(a=e.src.slice(l,f).trim(),a.indexOf("`")>=0))return!1;if(n)return!0;for(o=t;o++,!(o>=r||(l=u=e.bMarks[o]+e.tShift[o],f=e.eMarks[o],l<f&&e.tShift[o]<e.blkIndent));)if(e.src.charCodeAt(l)===i&&!(e.tShift[o]-e.blkIndent>=4)&&(l=e.skipChars(l,i),!(l-u<s)&&(l=e.skipSpaces(l),!(l<f)))){c=!0;break}return s=e.tShift[t],e.line=o+(c?1:0),e.tokens.push({type:"fence",params:a,content:e.getLines(t+1,o,s,!0),lines:[t,e.line],level:e.level}),!0}function $me(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y=e.bMarks[t]+e.tShift[t],v=e.eMarks[t];if(y>v||e.src.charCodeAt(y++)!==62||e.level>=e.options.maxNesting)return!1;if(n)return!0;for(e.src.charCodeAt(y)===32&&y++,u=e.blkIndent,e.blkIndent=0,o=[e.bMarks[t]],e.bMarks[t]=y,y=y<v?e.skipSpaces(y):y,s=y>=v,a=[e.tShift[t]],e.tShift[t]=y-e.bMarks[t],f=e.parser.ruler.getRules("blockquote"),i=t+1;i<r&&(y=e.bMarks[i]+e.tShift[i],v=e.eMarks[i],!(y>=v));i++){if(e.src.charCodeAt(y++)===62){e.src.charCodeAt(y)===32&&y++,o.push(e.bMarks[i]),e.bMarks[i]=y,y=y<v?e.skipSpaces(y):y,s=y>=v,a.push(e.tShift[i]),e.tShift[i]=y-e.bMarks[i];continue}if(s)break;for(g=!1,h=0,d=f.length;h<d;h++)if(f[h](e,i,r,!0)){g=!0;break}if(g)break;o.push(e.bMarks[i]),a.push(e.tShift[i]),e.tShift[i]=-1337}for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:l=[t,0],level:e.level++}),e.parser.tokenize(e,t,i),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,l[1]=e.line,h=0;h<a.length;h++)e.bMarks[h+t]=o[h],e.tShift[h+t]=a[h];return e.blkIndent=u,!0}function Fme(e,t,r,n){var i,s,a,o=e.bMarks[t],u=e.eMarks[t];if(o+=e.tShift[t],o>u||(i=e.src.charCodeAt(o++),i!==42&&i!==45&&i!==95))return!1;for(s=1;o<u;){if(a=e.src.charCodeAt(o++),a!==i&&a!==32)return!1;a===i&&s++}return s<3?!1:(n||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),!0)}function ZF(e,t){var r,n,i;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],n>=i||(r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<i&&e.src.charCodeAt(n)!==32?-1:n}function QF(e,t){var r,n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(n+1>=i||(r=e.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=i)return-1;if(r=e.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<i&&e.src.charCodeAt(n)!==32?-1:n}function Lme(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}function Bme(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,E,b,S,x,_,A=!0,C,R,O,M;if((f=QF(e,t))>=0)v=!0;else if((f=ZF(e,t))>=0)v=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(y=e.src.charCodeAt(f-1),n)return!0;for(b=e.tokens.length,v?(l=e.bMarks[t]+e.tShift[t],g=Number(e.src.substr(l,f-l-1)),e.tokens.push({type:"ordered_list_open",order:g,lines:x=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:x=[t,0],level:e.level++}),i=t,S=!1,C=e.parser.ruler.getRules("list");i<r&&(E=e.skipSpaces(f),h=e.eMarks[i],E>=h?d=1:d=E-f,d>4&&(d=1),d<1&&(d=1),s=f-e.bMarks[i]+d,e.tokens.push({type:"list_item_open",lines:_=[t,0],level:e.level++}),o=e.blkIndent,u=e.tight,a=e.tShift[t],c=e.parentType,e.tShift[t]=E-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),(!e.tight||S)&&(A=!1),S=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=o,e.tShift[t]=a,e.tight=u,e.parentType=c,e.tokens.push({type:"list_item_close",level:--e.level}),i=t=e.line,_[1]=i,E=e.bMarks[t],!(i>=r||e.isEmpty(i)||e.tShift[i]<e.blkIndent));){for(M=!1,R=0,O=C.length;R<O;R++)if(C[R](e,i,r,!0)){M=!0;break}if(M)break;if(v){if(f=QF(e,i),f<0)break}else if(f=ZF(e,i),f<0)break;if(y!==e.src.charCodeAt(f-1))break}return e.tokens.push({type:v?"ordered_list_close":"bullet_list_close",level:--e.level}),x[1]=i,e.line=i,A&&Lme(e,b),!0}function Ume(e,t,r,n){var i,s,a,o,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(c+4>l||e.src.charCodeAt(c)!==91||e.src.charCodeAt(c+1)!==94||e.level>=e.options.maxNesting)return!1;for(o=c+2;o<l;o++){if(e.src.charCodeAt(o)===32)return!1;if(e.src.charCodeAt(o)===93)break}return o===c+2||o+1>=l||e.src.charCodeAt(++o)!==58?!1:(n||(o++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),u=e.src.slice(c+2,o-2),e.env.footnotes.refs[":"+u]=-1,e.tokens.push({type:"footnote_reference_open",label:u,level:e.level++}),i=e.bMarks[t],s=e.tShift[t],a=e.parentType,e.tShift[t]=e.skipSpaces(o)-o,e.bMarks[t]=o,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,r,!0),e.parentType=a,e.blkIndent-=4,e.tShift[t]=s,e.bMarks[t]=i,e.tokens.push({type:"footnote_reference_close",level:--e.level})),!0)}function Vme(e,t,r,n){var i,s,a,o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(o>=u||(i=e.src.charCodeAt(o),i!==35||o>=u))return!1;for(s=1,i=e.src.charCodeAt(++o);i===35&&o<u&&s<=6;)s++,i=e.src.charCodeAt(++o);return s>6||o<u&&i!==32?!1:(n||(u=e.skipCharsBack(u,32,o),a=e.skipCharsBack(u,35,o),a>o&&e.src.charCodeAt(a-1)===32&&(u=a),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),o<u&&e.tokens.push({type:"inline",content:e.src.slice(o,u).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:s,level:e.level})),!0)}function zme(e,t,r){var n,i,s,a=t+1;return a>=r||e.tShift[a]<e.blkIndent||e.tShift[a]-e.blkIndent>3||(i=e.bMarks[a]+e.tShift[a],s=e.eMarks[a],i>=s)||(n=e.src.charCodeAt(i),n!==45&&n!==61)||(i=e.skipChars(i,n),i=e.skipSpaces(i),i<s)?!1:(i=e.bMarks[t]+e.tShift[t],e.line=a+1,e.tokens.push({type:"heading_open",hLevel:n===61?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(i,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:n===61?1:2,level:e.level}),!0)}var KU={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(e){KU[e]=!0});var Wme=/^<([a-zA-Z]{1,15})[\s\/>]/,Jme=/^<\/([a-zA-Z]{1,15})[\s>]/;function Kme(e){var t=e|32;return t>=97&&t<=122}function Hme(e,t,r,n){var i,s,a,o=e.bMarks[t],u=e.eMarks[t],c=e.tShift[t];if(o+=c,!e.options.html||c>3||o+2>=u||e.src.charCodeAt(o)!==60)return!1;if(i=e.src.charCodeAt(o+1),i===33||i===63){if(n)return!0}else if(i===47||Kme(i)){if(i===47){if(s=e.src.slice(o,u).match(Jme),!s)return!1}else if(s=e.src.slice(o,u).match(Wme),!s)return!1;if(KU[s[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(a=t+1;a<e.lineMax&&!e.isEmpty(a);)a++;return e.line=a,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,a,0,!0)}),!0}function U1(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function Gme(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g;if(t+2>r||(u=t+1,e.tShift[u]<e.blkIndent)||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(i=e.src.charCodeAt(a),i!==124&&i!==45&&i!==58)||(s=U1(e,t+1),!/^[-:| ]+$/.test(s))||(c=s.split("|"),c<=2))return!1;for(f=[],o=0;o<c.length;o++){if(h=c[o].trim(),!h){if(o===0||o===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;h.charCodeAt(h.length-1)===58?f.push(h.charCodeAt(0)===58?"center":"right"):h.charCodeAt(0)===58?f.push("left"):f.push("")}if(s=U1(e,t).trim(),s.indexOf("|")===-1||(c=s.replace(/^\||\|$/g,"").split("|"),f.length!==c.length))return!1;if(n)return!0;for(e.tokens.push({type:"table_open",lines:d=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"th_open",align:f[o],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:c[o].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:g=[t+2,0],level:e.level++}),u=t+2;u<r&&!(e.tShift[u]<e.blkIndent||(s=U1(e,u).trim(),s.indexOf("|")===-1));u++){for(c=s.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"td_open",align:f[o],level:e.level++}),l=c[o].substring(c[o].charCodeAt(0)===124?1:0,c[o].charCodeAt(c[o].length-1)===124?c[o].length-1:c[o].length).trim(),e.tokens.push({type:"inline",content:l,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),d[1]=g[1]=u,e.line=u,!0}function rp(e,t){var r,n,i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return i>=s||(n=e.src.charCodeAt(i++),n!==126&&n!==58)||(r=e.skipSpaces(i),i===r)||r>=s?-1:r}function Yme(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}function Xme(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,E;if(n)return e.ddIndent<0?!1:rp(e,t)>=0;if(l=t+1,e.isEmpty(l)&&++l>r||e.tShift[l]<e.blkIndent||(i=rp(e,l),i<0)||e.level>=e.options.maxNesting)return!1;c=e.tokens.length,e.tokens.push({type:"dl_open",lines:u=[t,0],level:e.level++}),a=t,s=l;e:for(;;){for(E=!0,v=!1,e.tokens.push({type:"dt_open",lines:[a,a],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(a,a+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[a,a],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:o=[l,0],level:e.level++}),y=e.tight,h=e.ddIndent,f=e.blkIndent,g=e.tShift[s],d=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=i-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,r,!0),(!e.tight||v)&&(E=!1),v=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=g,e.tight=y,e.parentType=d,e.blkIndent=f,e.ddIndent=h,e.tokens.push({type:"dd_close",level:--e.level}),o[1]=l=e.line,l>=r||e.tShift[l]<e.blkIndent)break e;if(i=rp(e,l),i<0)break;s=l}if(l>=r||(a=l,e.isEmpty(a))||e.tShift[a]<e.blkIndent||(s=a+1,s>=r)||(e.isEmpty(s)&&s++,s>=r)||e.tShift[s]<e.blkIndent||(i=rp(e,s),i<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),u[1]=l,e.line=l,E&&Yme(e,c),!0}function Zme(e,t){var r,n,i,s,a,o=t+1,u;if(r=e.lineMax,o<r&&!e.isEmpty(o)){for(u=e.parser.ruler.getRules("paragraph");o<r&&!e.isEmpty(o);o++)if(!(e.tShift[o]-e.blkIndent>3)){for(i=!1,s=0,a=u.length;s<a;s++)if(u[s](e,o,r,!0)){i=!0;break}if(i)break}}return n=e.getLines(t,o,e.blkIndent,!1).trim(),e.line=o,n.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:n,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}var np=[["code",Dme],["fences",qme,["paragraph","blockquote","list"]],["blockquote",$me,["paragraph","blockquote","list"]],["hr",Fme,["paragraph","blockquote","list"]],["list",Bme,["paragraph","blockquote"]],["footnote",Ume,["paragraph"]],["heading",Vme,["paragraph","blockquote"]],["lheading",zme],["htmlblock",Hme,["paragraph","blockquote"]],["table",Gme,["paragraph"]],["deflist",Xme,["paragraph"]],["paragraph",Zme]];function _C(){this.ruler=new ei;for(var e=0;e<np.length;e++)this.ruler.push(np[e][0],np[e][1],{alt:(np[e][2]||[]).slice()})}_C.prototype.tokenize=function(e,t,r){for(var n=this.ruler.getRules(""),i=n.length,s=t,a=!1,o,u;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r||e.tShift[s]<e.blkIndent));){for(u=0;u<i&&(o=n[u](e,s,r,!1),!o);u++);if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<r&&e.isEmpty(s)){if(a=!0,s++,s<r&&e.parentType==="list"&&e.isEmpty(s))break;e.line=s}}};var Qme=/[\n\t]/g,ege=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,tge=/\u00a0/g;_C.prototype.parse=function(e,t,r,n){var i,s=0,a=0;if(!e)return[];e=e.replace(tge," "),e=e.replace(ege,`
274
+ `),e.indexOf(" ")>=0&&(e=e.replace(Qme,function(o,u){var c;return e.charCodeAt(u)===10?(s=u+1,a=0,o):(c=" ".slice((u-s-a)%4),a=u-s+1,c)})),i=new bo(e,this,t,r,n),this.tokenize(i,i.line,i.lineMax)};function rge(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function nge(e,t){for(var r=e.pos;r<e.posMax&&!rge(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}function ige(e,t){var r,n,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(r=e.pending.length-1,n=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(var s=r-2;s>=0;s--)if(e.pending.charCodeAt(s)!==32){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(i++;i<n&&e.src.charCodeAt(i)===32;)i++;return e.pos=i,!0}var EC=[];for(var e3=0;e3<256;e3++)EC.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){EC[e.charCodeAt(0)]=1});function sge(e,t){var r,n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==92)return!1;if(n++,n<i){if(r=e.src.charCodeAt(n),r<256&&EC[r]!==0)return t||(e.pending+=e.src[n]),e.pos+=2,!0;if(r===10){for(t||e.push({type:"hardbreak",level:e.level}),n++;n<i&&e.src.charCodeAt(n)===32;)n++;return e.pos=n,!0}}return t||(e.pending+="\\"),e.pos++,!0}function age(e,t){var r,n,i,s,a,o=e.pos,u=e.src.charCodeAt(o);if(u!==96)return!1;for(r=o,o++,n=e.posMax;o<n&&e.src.charCodeAt(o)===96;)o++;for(i=e.src.slice(r,o),s=a=o;(s=e.src.indexOf("`",a))!==-1;){for(a=s+1;a<n&&e.src.charCodeAt(a)===96;)a++;if(a-s===i.length)return t||e.push({type:"code",content:e.src.slice(o,s).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}function oge(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==126||t||a+4>=s||e.src.charCodeAt(a+1)!==126||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===126)||u===126||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===126;)n++;if(n>a+3)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===126&&e.src.charCodeAt(e.pos+1)===126&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==126&&o!==126&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function uge(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==43||t||a+4>=s||e.src.charCodeAt(a+1)!==43||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===43)||u===43||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===43;)n++;if(n!==a+2)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===43&&e.src.charCodeAt(e.pos+1)===43&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==43&&o!==43&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function cge(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==61||t||a+4>=s||e.src.charCodeAt(a+1)!==61||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===61)||u===61||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===61;)n++;if(n!==a+2)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===61&&e.src.charCodeAt(e.pos+1)===61&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==61&&o!==61&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function t3(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function r3(e,t){var r=t,n,i,s,a=!0,o=!0,u=e.posMax,c=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;r<u&&e.src.charCodeAt(r)===c;)r++;return r>=u&&(a=!1),s=r-t,s>=4?a=o=!1:(i=r<u?e.src.charCodeAt(r):-1,(i===32||i===10)&&(a=!1),(n===32||n===10)&&(o=!1),c===95&&(t3(n)&&(a=!1),t3(i)&&(o=!1))),{can_open:a,can_close:o,delims:s}}function lge(e,t){var r,n,i,s,a,o,u,c=e.posMax,l=e.pos,f=e.src.charCodeAt(l);if(f!==95&&f!==42||t)return!1;if(u=r3(e,l),r=u.delims,!u.can_open)return e.pos+=r,t||(e.pending+=e.src.slice(l,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=l+r,o=[r];e.pos<c;){if(e.src.charCodeAt(e.pos)===f){if(u=r3(e,e.pos),n=u.delims,u.can_close){for(s=o.pop(),a=n;s!==a;){if(a<s){o.push(s-a);break}if(a-=s,o.length===0)break;e.pos+=s,s=o.pop()}if(o.length===0){r=s,i=!0;break}e.pos+=n;continue}u.can_open&&o.push(n),e.pos+=n;continue}e.parser.skipToken(e)}return i?(e.posMax=e.pos,e.pos=l+r,t||((r===2||r===3)&&e.push({type:"strong_open",level:e.level++}),(r===1||r===3)&&e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),(r===1||r===3)&&e.push({type:"em_close",level:--e.level}),(r===2||r===3)&&e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+r,e.posMax=c,!0):(e.pos=l,!1)}var fge=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function pge(e,t){var r,n,i=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==126||t||s+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===126){r=!0;break}e.parser.skipToken(e)}return!r||s+1===e.pos||(n=e.src.slice(s+1,e.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sub",level:e.level,content:n.replace(fge,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}var dge=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function hge(e,t){var r,n,i=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==94||t||s+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===94){r=!0;break}e.parser.skipToken(e)}return!r||s+1===e.pos||(n=e.src.slice(s+1,e.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sup",level:e.level,content:n.replace(dge,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}function mge(e,t){var r,n,i,s,a,o,u,c,l=!1,f=e.pos,h=e.posMax,d=e.pos,g=e.src.charCodeAt(d);if(g===33&&(l=!0,g=e.src.charCodeAt(++d)),g!==91||e.level>=e.options.maxNesting||(r=d+1,n=Bc(e,d),n<0))return!1;if(o=n+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o>=h)return!1;for(d=o,VU(e,o)?(s=e.linkContent,o=e.pos):s="",d=o;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o<h&&d!==o&&zU(e,o))for(a=e.linkContent,o=e.pos;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);else a="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=f,!1;o++}else{if(e.linkLevel>0)return!1;for(;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o<h&&e.src.charCodeAt(o)===91&&(d=o+1,o=Bc(e,o),o>=0?i=e.src.slice(d,o++):o=d-1),i||(typeof i>"u"&&(o=n+1),i=e.src.slice(r,n)),u=e.env.references[WU(i)],!u)return e.pos=f,!1;s=u.href,a=u.title}return t||(e.pos=r,e.posMax=n,l?e.push({type:"image",src:s,title:a,alt:e.src.substr(r,n-r),level:e.level}):(e.push({type:"link_open",href:s,title:a,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=o,e.posMax=h,!0}function gge(e,t){var r,n,i,s,a=e.posMax,o=e.pos;return o+2>=a||e.src.charCodeAt(o)!==94||e.src.charCodeAt(o+1)!==91||e.level>=e.options.maxNesting||(r=o+2,n=Bc(e,o+1),n<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),i=e.env.footnotes.list.length,e.pos=r,e.posMax=n,e.push({type:"footnote_ref",id:i,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[i]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=n+1,e.posMax=a,!0)}function yge(e,t){var r,n,i,s,a=e.posMax,o=e.pos;if(o+3>a||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(o)!==91||e.src.charCodeAt(o+1)!==94||e.level>=e.options.maxNesting)return!1;for(n=o+2;n<a;n++){if(e.src.charCodeAt(n)===32||e.src.charCodeAt(n)===10)return!1;if(e.src.charCodeAt(n)===93)break}return n===o+2||n>=a||(n++,r=e.src.slice(o+2,n-1),typeof e.env.footnotes.refs[":"+r]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(i=e.env.footnotes.list.length,e.env.footnotes.list[i]={label:r,count:0},e.env.footnotes.refs[":"+r]=i):i=e.env.footnotes.refs[":"+r],s=e.env.footnotes.list[i].count,e.env.footnotes.list[i].count++,e.push({type:"footnote_ref",id:i,subId:s,level:e.level})),e.pos=n,e.posMax=a,!0)}var vge=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],bge=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,_ge=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Ege(e,t){var r,n,i,s,a,o=e.pos;return e.src.charCodeAt(o)!==60||(r=e.src.slice(o),r.indexOf(">")<0)?!1:(n=r.match(_ge),n?vge.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),a=Ux(s),!e.parser.validateLink(s))?!1:(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=n[0].length,!0):(i=r.match(bge),i?(s=i[0].slice(1,-1),a=Ux("mailto:"+s),e.parser.validateLink(a)?(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=i[0].length,!0):!1):!1))}function wm(e,t){return e=e.source,t=t||"",function r(n,i){return n?(i=i.source||i,e=e.replace(n,i),r):new RegExp(e,t)}}var Sge=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,wge=/[^"'=<>`\x00-\x20]+/,xge=/'[^']*'/,Age=/"[^"]*"/,Oge=wm(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",wge)("single_quoted",xge)("double_quoted",Age)(),Cge=wm(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Sge)("attr_value",Oge)(),Rge=wm(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Cge)(),Tge=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Ige=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,jge=/<[?].*?[?]>/,kge=/<![A-Z]+\s+[^>]*>/,Pge=/<!\[CDATA\[[\s\S]*?\]\]>/,Nge=wm(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Rge)("close_tag",Tge)("comment",Ige)("processing",jge)("declaration",kge)("cdata",Pge)();function Mge(e){var t=e|32;return t>=97&&t<=122}function Dge(e,t){var r,n,i,s=e.pos;return!e.options.html||(i=e.posMax,e.src.charCodeAt(s)!==60||s+2>=i)||(r=e.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!Mge(r))||(n=e.src.slice(s).match(Nge),!n)?!1:(t||e.push({type:"htmltag",content:e.src.slice(s,s+n[0].length),level:e.level}),e.pos+=n[0].length,!0)}var qge=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,$ge=/^&([a-z][a-z0-9]{1,31});/i;function Fge(e,t){var r,n,i,s=e.pos,a=e.posMax;if(e.src.charCodeAt(s)!==38)return!1;if(s+1<a){if(r=e.src.charCodeAt(s+1),r===35){if(i=e.src.slice(s).match(qge),i)return t||(n=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),e.pending+=BU(n)?Bx(n):Bx(65533)),e.pos+=i[0].length,!0}else if(i=e.src.slice(s).match($ge),i){var o=FU(i[1]);if(i[1]!==o)return t||(e.pending+=o),e.pos+=i[0].length,!0}}return t||(e.pending+="&"),e.pos++,!0}var V1=[["text",nge],["newline",ige],["escape",sge],["backticks",age],["del",oge],["ins",uge],["mark",cge],["emphasis",lge],["sub",pge],["sup",hge],["links",mge],["footnote_inline",gge],["footnote_ref",yge],["autolink",Ege],["htmltag",Dge],["entity",Fge]];function xm(){this.ruler=new ei;for(var e=0;e<V1.length;e++)this.ruler.push(V1[e][0],V1[e][1]);this.validateLink=Lge}xm.prototype.skipToken=function(e){var t=this.ruler.getRules(""),r=t.length,n=e.pos,i,s;if((s=e.cacheGet(n))>0){e.pos=s;return}for(i=0;i<r;i++)if(t[i](e,!0)){e.cacheSet(n,e.pos);return}e.pos++,e.cacheSet(n,e.pos)};xm.prototype.tokenize=function(e){for(var t=this.ruler.getRules(""),r=t.length,n=e.posMax,i,s;e.pos<n;){for(s=0;s<r&&(i=t[s](e,!1),!i);s++);if(i){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};xm.prototype.parse=function(e,t,r,n){var i=new vo(e,this,t,r,n);this.tokenize(i)};function Lge(e){var t=["vbscript","javascript","file","data"],r=e.trim().toLowerCase();return r=Xa(r),!(r.indexOf(":")!==-1&&t.indexOf(r.split(":")[0])!==-1)}var Bge={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},Uge={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Vge={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},zge={default:Bge,full:Uge,commonmark:Vge};function HU(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Oa(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
275
+
276
+ import Remarkable from 'remarkable';
277
+ import linkify from 'remarkable/linkify';
278
+ new Remarkable().use(linkify)
279
+ `),this.inline=new xm,this.block=new _C,this.core=new JU,this.renderer=new bC,this.ruler=new ei,this.options={},this.configure(zge[e]),this.set(t||{})}Oa.prototype.set=function(e){LU(this.options,e)};Oa.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)})};Oa.prototype.use=function(e,t){return e(this,t),this};Oa.prototype.parse=function(e,t){var r=new HU(this,e,t);return this.core.process(r),r.tokens};Oa.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Oa.prototype.parseInline=function(e,t){var r=new HU(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Oa.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Wge="3.16.2";function Jge(e,t){for(var r in t)t.hasOwnProperty(r)&&e[r]===void 0&&(e[r]=t[r]);return e}function Kge(e,t,r){var n;return e.length>t&&(r==null?(r="&hellip;",n=3):n=r.length,e=e.substring(0,t-n)+r),e}function n3(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ka(e,t){for(var r=e.length-1;r>=0;r--)t(e[r])===!0&&e.splice(r,1)}function Hge(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r=[],n=0,i;i=t.exec(e);)r.push(e.substring(n,i.index)),r.push(i[0]),n=i.index+i[0].length;return r.push(e.substring(n)),r}function SC(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var Vx=function(){function e(t){t===void 0&&(t={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=t.tagName||"",this.attrs=t.attrs||{},this.innerHTML=t.innerHtml||t.innerHTML||""}return e.prototype.setTagName=function(t){return this.tagName=t,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(t,r){var n=this.getAttrs();return n[t]=r,this},e.prototype.getAttr=function(t){return this.getAttrs()[t]},e.prototype.setAttrs=function(t){return Object.assign(this.getAttrs(),t),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(t){return this.setAttr("class",t)},e.prototype.addClass=function(t){for(var r=this.getClass(),n=this.whitespaceRegex,i=r?r.split(n):[],s=t.split(n),a;a=s.shift();)n3(i,a)===-1&&i.push(a);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(t){for(var r=this.getClass(),n=this.whitespaceRegex,i=r?r.split(n):[],s=t.split(n),a;i.length&&(a=s.shift());){var o=n3(i,a);o!==-1&&i.splice(o,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(t){return(" "+this.getClass()+" ").indexOf(" "+t+" ")!==-1},e.prototype.setInnerHTML=function(t){return this.innerHTML=t,this},e.prototype.setInnerHtml=function(t){return this.setInnerHTML(t)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var t=this.getTagName(),r=this.buildAttrsStr();return r=r?" "+r:"",["<",t,r,">",this.getInnerHtml(),"</",t,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var t=this.getAttrs(),r=[];for(var n in t)t.hasOwnProperty(n)&&r.push(n+'="'+t[n]+'"');return r.join(" ")},e}();function Gge(e,t,r){var n,i;r==null?(r="&hellip;",i=3,n=8):(i=r.length,n=r.length);var s=function(b){var S={},x=b,_=x.match(/^([a-z]+):\/\//i);return _&&(S.scheme=_[1],x=x.substr(_[0].length)),_=x.match(/^(.*?)(?=(\?|#|\/|$))/i),_&&(S.host=_[1],x=x.substr(_[0].length)),_=x.match(/^\/(.*?)(?=(\?|#|$))/i),_&&(S.path=_[1],x=x.substr(_[0].length)),_=x.match(/^\?(.*?)(?=(#|$))/i),_&&(S.query=_[1],x=x.substr(_[0].length)),_=x.match(/^#(.*?)$/i),_&&(S.fragment=_[1]),S},a=function(b){var S="";return b.scheme&&b.host&&(S+=b.scheme+"://"),b.host&&(S+=b.host),b.path&&(S+="/"+b.path),b.query&&(S+="?"+b.query),b.fragment&&(S+="#"+b.fragment),S},o=function(b,S){var x=S/2,_=Math.ceil(x),A=-1*Math.floor(x),C="";return A<0&&(C=b.substr(A)),b.substr(0,_)+r+C};if(e.length<=t)return e;var u=t-i,c=s(e);if(c.query){var l=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);l&&(c.query=c.query.substr(0,l[1].length),e=a(c))}if(e.length<=t||(c.host&&(c.host=c.host.replace(/^www\./,""),e=a(c)),e.length<=t))return e;var f="";if(c.host&&(f+=c.host),f.length>=u)return c.host.length==t?(c.host.substr(0,t-i)+r).substr(0,u+n):o(f,u).substr(0,u+n);var h="";if(c.path&&(h+="/"+c.path),c.query&&(h+="?"+c.query),h)if((f+h).length>=u){if((f+h).length==t)return(f+h).substr(0,t);var d=u-f.length;return(f+o(h,d)).substr(0,u+n)}else f+=h;if(c.fragment){var g="#"+c.fragment;if((f+g).length>=u){if((f+g).length==t)return(f+g).substr(0,t);var y=u-f.length;return(f+o(g,y)).substr(0,u+n)}else f+=g}if(c.scheme&&c.host){var v=c.scheme+"://";if((f+v).length<u)return(v+f).substr(0,t)}if(f.length<=t)return f;var E="";return u>0&&(E=f.substr(-1*Math.floor(u/2))),(f.substr(0,Math.ceil(u/2))+r+E).substr(0,u+n)}function Yge(e,t,r){if(e.length<=t)return e;var n,i;r==null?(r="&hellip;",n=8,i=3):(n=r.length,i=r.length);var s=t-i,a="";return s>0&&(a=e.substr(-1*Math.floor(s/2))),(e.substr(0,Math.ceil(s/2))+r+a).substr(0,s+n)}function Xge(e,t,r){return Kge(e,t,r)}var i3=function(){function e(t){t===void 0&&(t={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=t.newWindow||!1,this.truncate=t.truncate||{},this.className=t.className||""}return e.prototype.build=function(t){return new Vx({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},e.prototype.createAttrs=function(t){var r={href:t.getAnchorHref()},n=this.createCssClass(t);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<t.getAnchorText().length&&(r.title=t.getAnchorHref()),r},e.prototype.createCssClass=function(t){var r=this.className;if(r){for(var n=[r],i=t.getCssClassSuffixes(),s=0,a=i.length;s<a;s++)n.push(r+"-"+i[s]);return n.join(" ")}else return""},e.prototype.processAnchorText=function(t){return t=this.doTruncate(t),t},e.prototype.doTruncate=function(t){var r=this.truncate;if(!r||!r.length)return t;var n=r.length,i=r.location;return i==="smart"?Gge(t,n):i==="middle"?Yge(t,n):Xge(t,n)},e}(),Nu=function(){function e(t){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(t){this.offset=t},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),zx=function(e,t){return zx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},zx(e,t)};function ms(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zx(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mr=function(){return mr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},mr.apply(this,arguments)};var GU=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.email="",n.email=r.email,n}return t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(Nu),YU=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="",n.hashtag="",n.serviceName=r.serviceName,n.hashtag=r.hashtag,n}return t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var r=this.serviceName,n=this.hashtag;switch(r){case"twitter":return"https://twitter.com/hashtag/"+n;case"facebook":return"https://www.facebook.com/hashtag/"+n;case"instagram":return"https://instagram.com/explore/tags/"+n;case"tiktok":return"https://www.tiktok.com/tag/"+n;default:throw new Error("Unknown service name to point hashtag to: "+r)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(Nu),XU=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.mention="",n.mention=r.mention,n.serviceName=r.serviceName,n}return t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var r=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&r.push(n),r},t}(Nu),ZU=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.number="",n.plusSign=!1,n.number=r.number,n.plusSign=r.plusSign,n}return t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(Nu),QU=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=r.urlMatchType,n.url=r.url,n.protocolUrlMatch=r.protocolUrlMatch,n.protocolRelativeMatch=r.protocolRelativeMatch,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var r=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(r=this.url="http://"+r,this.protocolPrepended=!0),r},t.prototype.getAnchorHref=function(){var r=this.getUrl();return r.replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var r=this.getMatchedText();return this.protocolRelativeMatch&&(r=this.stripProtocolRelativePrefix(r)),this.stripPrefix.scheme&&(r=this.stripSchemePrefix(r)),this.stripPrefix.www&&(r=this.stripWwwPrefix(r)),this.stripTrailingSlash&&(r=this.removeTrailingSlash(r)),this.decodePercentEncoding&&(r=this.removePercentEncoding(r)),r},t.prototype.stripSchemePrefix=function(r){return r.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(r){return r.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(r){return r.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(r){return r.charAt(r.length-1)==="/"&&(r=r.slice(0,-1)),r},t.prototype.removePercentEncoding=function(r){var n=r.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(n)}catch{return n}},t}(Nu),Mu=function(){function e(t){this.__jsduckDummyDocProp=null,this.tagBuilder=t.tagBuilder}return e}(),z1=/[A-Za-z]/,Zge=/[\d]/,Qge=/[\D]/,Pa=/\s/,W1=/['"]/,eye=/[\x00-\x1F\x7F]/,e5=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,tye=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,rye=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,t5=e5+tye+rye,sd=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,nye=t5+sd,yr=t5+sd,uc=new RegExp("[".concat(yr,"]")),iye="(?:["+sd+"]{1,3}\\.){3}["+sd+"]{1,3}",sye="["+yr+"](?:["+yr+"\\-_]{0,61}["+yr+"])?",s3=function(e){return"(?=("+sye+"))\\"+e},J1=function(e){return"(?:"+s3(e)+"(?:\\."+s3(e+1)+"){0,126}|"+iye+")"},ip=uc,r5=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,aye=new RegExp("[".concat(yr,"!#$%&'*+/=?^_`{|}~-]")),oye=new RegExp("^".concat(r5.source,"$")),a3=function(e){ms(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.localPartCharRegex=aye,r.strictTldRegex=oye,r}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.localPartCharRegex,s=this.strictTldRegex,a=[],o=r.length,u=new sp,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},l=0,f=0,h=u;l<o;){var d=r.charAt(l);switch(f){case 0:g(d);break;case 1:y(r.charAt(l-1),d);break;case 2:v(d);break;case 3:E(d);break;case 4:b(d);break;case 5:S(d);break;case 6:x(d);break;case 7:_(d);break;default:SC(f)}l++}return R(),a;function g(O){O==="m"?A(1):i.test(O)&&A()}function y(O,M){O===":"?i.test(M)?(f=2,h=new sp(mr(mr({},h),{hasMailtoPrefix:!0}))):C():c[O]===M||(i.test(M)?f=2:M==="."?f=3:M==="@"?f=4:C())}function v(O){O==="."?f=3:O==="@"?f=4:i.test(O)||C()}function E(O){O==="."||O==="@"?C():i.test(O)?f=2:C()}function b(O){ip.test(O)?f=5:C()}function S(O){O==="."?f=7:O==="-"?f=6:ip.test(O)||R()}function x(O){O==="-"||O==="."?R():ip.test(O)?f=5:R()}function _(O){O==="."||O==="-"?R():ip.test(O)?(f=5,h=new sp(mr(mr({},h),{hasDomainDot:!0}))):R()}function A(O){O===void 0&&(O=2),f=O,h=new sp({idx:l})}function C(){f=0,h=u}function R(){if(h.hasDomainDot){var O=r.slice(h.idx,l);/[-.]$/.test(O)&&(O=O.slice(0,-1));var M=h.hasMailtoPrefix?O.slice(7):O;k(M)&&a.push(new GU({tagBuilder:n,matchedText:O,offset:h.idx,email:M}))}C();function k(D){var P=D.split(".").pop()||"",H=P.toLowerCase(),Z=s.test(H);return Z}}},t}(Mu),sp=function(){function e(t){t===void 0&&(t={}),this.idx=t.idx!==void 0?t.idx:-1,this.hasMailtoPrefix=!!t.hasMailtoPrefix,this.hasDomainDot=!!t.hasDomainDot}return e}(),uye=function(){function e(){}return e.isValid=function(t,r){return!(r&&!this.isValidUriScheme(r)||this.urlMatchDoesNotHaveProtocolOrDot(t,r)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,r)&&!this.isValidIpAddress(t)||this.containsMultipleDots(t))},e.isValidIpAddress=function(t){var r=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source),n=t.match(r);return n!==null},e.containsMultipleDots=function(t){var r=t;return this.hasFullProtocolRegex.test(t)&&(r=t.split("://")[1]),r.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(t){var r=t.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},e.urlMatchDoesNotHaveProtocolOrDot=function(t,r){return!!t&&(!r||!this.hasFullProtocolRegex.test(r))&&t.indexOf(".")===-1},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(t,r){return t&&r?!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(t):!1},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+e5+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),cye=function(){var e=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,t=/(?:www\.)/,r=new RegExp("[/?#](?:["+yr+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+yr+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",e.source,J1(2),")","|","(","(//)?",t.source,J1(6),")","|","(","(//)?",J1(10)+"\\.",r5.source,"(?![-"+nye+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")}(),lye=new RegExp("["+yr+"]"),o3=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=cye,n.wordCharRegExp=lye,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return t.prototype.parseMatches=function(r){for(var n=this.matcherRegex,i=this.stripPrefix,s=this.stripTrailingSlash,a=this.decodePercentEncoding,o=this.tagBuilder,u=[],c,l=function(){var h=c[0],d=c[1],g=c[4],y=c[5],v=c[9],E=c.index,b=y||v,S=r.charAt(E-1);if(!uye.isValid(h,d)||E>0&&S==="@"||E>0&&b&&f.wordCharRegExp.test(S))return"continue";if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),f.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var x=f.matchHasInvalidCharAfterTld(h,d);x>-1&&(h=h.substr(0,x))}var _=["http://","https://"].find(function(O){return!!d&&d.indexOf(O)!==-1});if(_){var A=h.indexOf(_);h=h.substr(A),d=d.substr(A),E=E+A}var C=d?"scheme":g?"www":"tld",R=!!d;u.push(new QU({tagBuilder:o,matchedText:h,offset:E,urlMatchType:C,url:h,protocolUrlMatch:R,protocolRelativeMatch:!!b,stripPrefix:i,stripTrailingSlash:s,decodePercentEncoding:a}))},f=this;(c=n.exec(r))!==null;)l();return u},t.prototype.matchHasUnbalancedClosingParen=function(r){var n=r.charAt(r.length-1),i;if(n===")")i="(";else if(n==="]")i="[";else if(n==="}")i="{";else return!1;for(var s=0,a=0,o=r.length-1;a<o;a++){var u=r.charAt(a);u===i?s++:u===n&&(s=Math.max(s-1,0))}return s===0},t.prototype.matchHasInvalidCharAfterTld=function(r,n){if(!r)return-1;var i=0;n&&(i=r.indexOf(":"),r=r.slice(i));var s=new RegExp("^((.?//)?[-."+yr+"]*[-"+yr+"]\\.[-"+yr+"]+)"),a=s.exec(r);return a===null?-1:(i+=a[1].length,r=r.slice(a[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(r)?i:-1)},t}(Mu),u3=new RegExp("[_".concat(yr,"]")),c3=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.serviceName=r.serviceName,n}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.serviceName,s=[],a=r.length,o=0,u=-1,c=0;o<a;){var l=r.charAt(o);switch(c){case 0:f(l);break;case 1:h(l);break;case 2:d(l);break;case 3:g(l);break;default:SC(c)}o++}return y(),s;function f(v){v==="#"?(c=2,u=o):uc.test(v)&&(c=1)}function h(v){uc.test(v)||(c=0)}function d(v){u3.test(v)?c=3:uc.test(v)?c=1:c=0}function g(v){u3.test(v)||(y(),u=-1,uc.test(v)?c=1:c=0)}function y(){if(u>-1&&o-u<=140){var v=r.slice(u,o),E=new YU({tagBuilder:n,matchedText:v,offset:u,serviceName:i,hashtag:v.slice(1)});s.push(E)}}},t}(Mu),fye=["twitter","facebook","instagram","tiktok"],pye=/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/,dye=/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,hye=new RegExp("".concat(pye.source,"|").concat(dye.source),"g"),l3=function(e){ms(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.matcherRegex=hye,r}return t.prototype.parseMatches=function(r){for(var n=this.matcherRegex,i=this.tagBuilder,s=[],a;(a=n.exec(r))!==null;){var o=a[0],u=o.replace(/[^0-9,;#]/g,""),c=!!(a[1]||a[2]),l=a.index==0?"":r.substr(a.index-1,1),f=r.substr(a.index+o.length,1),h=!l.match(/\d/)&&!f.match(/\d/);this.testMatch(a[3])&&this.testMatch(o)&&h&&s.push(new ZU({tagBuilder:i,matchedText:o,offset:a.index,number:u,plusSign:c}))}return s},t.prototype.testMatch=function(r){return Qge.test(r)},t}(Mu),mye=new RegExp("@[_".concat(yr,"]{1,50}(?![_").concat(yr,"])"),"g"),gye=new RegExp("@[_.".concat(yr,"]{1,30}(?![_").concat(yr,"])"),"g"),yye=new RegExp("@[-_.".concat(yr,"]{1,50}(?![-_").concat(yr,"])"),"g"),vye=new RegExp("@[_.".concat(yr,"]{1,23}[_").concat(yr,"](?![_").concat(yr,"])"),"g"),bye=new RegExp("[^"+yr+"]"),f3=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:mye,instagram:gye,soundcloud:yye,tiktok:vye},n.nonWordCharRegex=bye,n.serviceName=r.serviceName,n}return t.prototype.parseMatches=function(r){var n=this.serviceName,i=this.matcherRegexes[this.serviceName],s=this.nonWordCharRegex,a=this.tagBuilder,o=[],u;if(!i)return o;for(;(u=i.exec(r))!==null;){var c=u.index,l=r.charAt(c-1);if(c===0||s.test(l)){var f=u[0].replace(/\.+$/g,""),h=f.slice(1);o.push(new XU({tagBuilder:a,matchedText:f,offset:c,serviceName:n,mention:h}))}}return o},t}(Mu);function _ye(e,t){for(var r=t.onOpenTag,n=t.onCloseTag,i=t.onText,s=t.onComment,a=t.onDoctype,o=new Gi,u=0,c=e.length,l=0,f=0,h=o;u<c;){var d=e.charAt(u);switch(l){case 0:g(d);break;case 1:y(d);break;case 2:E(d);break;case 3:v(d);break;case 4:b(d);break;case 5:S(d);break;case 6:x(d);break;case 7:_(d);break;case 8:A(d);break;case 9:C(d);break;case 10:R(d);break;case 11:O(d);break;case 12:M(d);break;case 13:k();break;case 14:D(d);break;case 15:P(d);break;case 16:H(d);break;case 17:Z(d);break;case 18:V(d);break;case 19:G(d);break;case 20:Q(d);break;default:SC(l)}u++}f<u&&ee();function g(X){X==="<"&&L()}function y(X){X==="!"?l=13:X==="/"?(l=2,h=new Gi(mr(mr({},h),{isClosing:!0}))):X==="<"?L():z1.test(X)?(l=3,h=new Gi(mr(mr({},h),{isOpening:!0}))):(l=0,h=o)}function v(X){Pa.test(X)?(h=new Gi(mr(mr({},h),{name:ne()})),l=4):X==="<"?L():X==="/"?(h=new Gi(mr(mr({},h),{name:ne()})),l=12):X===">"?(h=new Gi(mr(mr({},h),{name:ne()})),J()):!z1.test(X)&&!Zge.test(X)&&X!==":"&&Y()}function E(X){X===">"?Y():z1.test(X)?l=3:Y()}function b(X){Pa.test(X)||(X==="/"?l=12:X===">"?J():X==="<"?L():X==="="||W1.test(X)||eye.test(X)?Y():l=5)}function S(X){Pa.test(X)?l=6:X==="/"?l=12:X==="="?l=7:X===">"?J():X==="<"?L():W1.test(X)&&Y()}function x(X){Pa.test(X)||(X==="/"?l=12:X==="="?l=7:X===">"?J():X==="<"?L():W1.test(X)?Y():l=5)}function _(X){Pa.test(X)||(X==='"'?l=8:X==="'"?l=9:/[>=`]/.test(X)?Y():X==="<"?L():l=10)}function A(X){X==='"'&&(l=11)}function C(X){X==="'"&&(l=11)}function R(X){Pa.test(X)?l=4:X===">"?J():X==="<"&&L()}function O(X){Pa.test(X)?l=4:X==="/"?l=12:X===">"?J():X==="<"?L():(l=4,ae())}function M(X){X===">"?(h=new Gi(mr(mr({},h),{isClosing:!0})),J()):l=4}function k(X){e.substr(u,2)==="--"?(u+=2,h=new Gi(mr(mr({},h),{type:"comment"})),l=14):e.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new Gi(mr(mr({},h),{type:"doctype"})),l=20):Y()}function D(X){X==="-"?l=15:X===">"?Y():l=16}function P(X){X==="-"?l=18:X===">"?Y():l=16}function H(X){X==="-"&&(l=17)}function Z(X){X==="-"?l=18:l=16}function V(X){X===">"?J():X==="!"?l=19:X==="-"||(l=16)}function G(X){X==="-"?l=17:X===">"?J():l=16}function Q(X){X===">"?J():X==="<"&&L()}function Y(){l=0,h=o}function L(){l=1,h=new Gi({idx:u})}function J(){var X=e.slice(f,h.idx);X&&i(X,f),h.type==="comment"?s(h.idx):h.type==="doctype"?a(h.idx):(h.isOpening&&r(h.name,h.idx),h.isClosing&&n(h.name,h.idx)),Y(),f=u+1}function ee(){var X=e.slice(f,u);i(X,f),f=u+1}function ne(){var X=h.idx+(h.isClosing?2:1);return e.slice(X,u).toLowerCase()}function ae(){u--}}var Gi=function(){function e(t){t===void 0&&(t={}),this.idx=t.idx!==void 0?t.idx:-1,this.type=t.type||"tag",this.name=t.name||"",this.isOpening=!!t.isOpening,this.isClosing=!!t.isClosing}return e}(),Eye=function(){function e(t){t===void 0&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email=typeof t.email=="boolean"?t.email:this.email,this.phone=typeof t.phone=="boolean"?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=typeof t.newWindow=="boolean"?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash=typeof t.stripTrailingSlash=="boolean"?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof t.decodePercentEncoding=="boolean"?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var r=this.mention;if(r!==!1&&["twitter","instagram","soundcloud","tiktok"].indexOf(r)===-1)throw new Error("invalid `mention` cfg '".concat(r,"' - see docs"));var n=this.hashtag;if(n!==!1&&fye.indexOf(n)===-1)throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,r){var n=new e(r);return n.link(t)},e.parse=function(t,r){var n=new e(r);return n.parse(t)},e.prototype.normalizeUrlsCfg=function(t){return t==null&&(t=!0),typeof t=="boolean"?{schemeMatches:t,wwwMatches:t,tldMatches:t}:{schemeMatches:typeof t.schemeMatches=="boolean"?t.schemeMatches:!0,wwwMatches:typeof t.wwwMatches=="boolean"?t.wwwMatches:!0,tldMatches:typeof t.tldMatches=="boolean"?t.tldMatches:!0}},e.prototype.normalizeStripPrefixCfg=function(t){return t==null&&(t=!0),typeof t=="boolean"?{scheme:t,www:t}:{scheme:typeof t.scheme=="boolean"?t.scheme:!0,www:typeof t.www=="boolean"?t.www:!0}},e.prototype.normalizeTruncateCfg=function(t){return typeof t=="number"?{length:t,location:"end"}:Jge(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(t){var r=this,n=["a","style","script"],i=0,s=[];return _ye(t,{onOpenTag:function(a){n.indexOf(a)>=0&&i++},onText:function(a,o){if(i===0){var u=/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,c=Hge(a,u),l=o;c.forEach(function(f,h){if(h%2===0){var d=r.parseText(f,l);s.push.apply(s,d)}l+=f.length})}},onCloseTag:function(a){n.indexOf(a)>=0&&(i=Math.max(i-1,0))},onComment:function(a){},onDoctype:function(a){}}),s=this.compactMatches(s),s=this.removeUnwantedMatches(s),s},e.prototype.compactMatches=function(t){t.sort(function(u,c){return u.getOffset()-c.getOffset()});for(var r=0;r<t.length-1;){var n=t[r],i=n.getOffset(),s=n.getMatchedText().length,a=i+s;if(r+1<t.length){if(t[r+1].getOffset()===i){var o=t[r+1].getMatchedText().length>s?r:r+1;t.splice(o,1);continue}if(t[r+1].getOffset()<a){t.splice(r+1,1);continue}}r++}return t},e.prototype.removeUnwantedMatches=function(t){return this.hashtag||ka(t,function(r){return r.getType()==="hashtag"}),this.email||ka(t,function(r){return r.getType()==="email"}),this.phone||ka(t,function(r){return r.getType()==="phone"}),this.mention||ka(t,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||ka(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||ka(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||ka(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="tld"}),t},e.prototype.parseText=function(t,r){r===void 0&&(r=0),r=r||0;for(var n=this.getMatchers(),i=[],s=0,a=n.length;s<a;s++){for(var o=n[s].parseMatches(t),u=0,c=o.length;u<c;u++)o[u].setOffset(r+o[u].getOffset());i.push.apply(i,o)}return i},e.prototype.link=function(t){if(!t)return"";this.sanitizeHtml&&(t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var r=this.parse(t),n=[],i=0,s=0,a=r.length;s<a;s++){var o=r[s];n.push(t.substring(i,o.getOffset())),n.push(this.createMatchReturnVal(o)),i=o.getOffset()+o.getMatchedText().length}return n.push(t.substring(i)),n.join("")},e.prototype.createMatchReturnVal=function(t){var r;if(this.replaceFn&&(r=this.replaceFn.call(this.context,t)),typeof r=="string")return r;if(r===!1)return t.getMatchedText();if(r instanceof Vx)return r.toAnchorString();var n=t.buildTag();return n.toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var t=this.getTagBuilder(),r=[new c3({tagBuilder:t,serviceName:this.hashtag}),new a3({tagBuilder:t}),new l3({tagBuilder:t}),new f3({tagBuilder:t,serviceName:this.mention}),new o3({tagBuilder:t,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=r},e.prototype.getTagBuilder=function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new i3({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},e.version=Wge,e.AnchorTagBuilder=i3,e.HtmlTag=Vx,e.matcher={Email:a3,Hashtag:c3,Matcher:Mu,Mention:f3,Phone:l3,Url:o3},e.match={Email:GU,Hashtag:YU,Match:Nu,Mention:XU,Phone:ZU,Url:QU},e}(),Sye=/www|@|\:\/\//;function wye(e){return/^<a[>\s]/i.test(e)}function xye(e){return/^<\/a\s*>/i.test(e)}function Aye(){var e=[],t=new Eye({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}function Oye(e){var t,r,n,i,s,a,o,u,c,l,f,h=e.tokens,d=null,g,y;for(r=0,n=h.length;r<n;r++)if(h[r].type==="inline")for(i=h[r].children,f=0,t=i.length-1;t>=0;t--){if(s=i[t],s.type==="link_close"){for(t--;i[t].level!==s.level&&i[t].type!=="link_open";)t--;continue}if(s.type==="htmltag"&&(wye(s.content)&&f>0&&f--,xye(s.content)&&f++),!(f>0)&&s.type==="text"&&Sye.test(s.content)){if(d||(d=Aye(),g=d.links,y=d.autolinker),a=s.content,g.length=0,y.link(a),!g.length)continue;for(o=[],l=s.level,u=0;u<g.length;u++)e.inline.validateLink(g[u].url)&&(c=a.indexOf(g[u].text),c&&o.push({type:"text",content:a.slice(0,c),level:l}),o.push({type:"link_open",href:g[u].url,title:"",level:l++}),o.push({type:"text",content:g[u].text,level:l}),o.push({type:"link_close",level:--l}),a=a.slice(c+g[u].text.length));a.length&&o.push({type:"text",content:a,level:l}),h[r].children=i=[].concat(i.slice(0,t),o,i.slice(t+1))}}}function Cye(e){e.core.ruler.push("linkify",Oye)}/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:n5,setPrototypeOf:p3,isFrozen:Rye,getPrototypeOf:Tye,getOwnPropertyDescriptor:Iye}=Object;let{freeze:bn,seal:di,create:i5}=Object,{apply:Wx,construct:Jx}=typeof Reflect<"u"&&Reflect;bn||(bn=function(t){return t});di||(di=function(t){return t});Wx||(Wx=function(t,r,n){return t.apply(r,n)});Jx||(Jx=function(t,r){return new t(...r)});const ap=_n(Array.prototype.forEach),jye=_n(Array.prototype.lastIndexOf),d3=_n(Array.prototype.pop),Ku=_n(Array.prototype.push),kye=_n(Array.prototype.splice),wp=_n(String.prototype.toLowerCase),K1=_n(String.prototype.toString),h3=_n(String.prototype.match),Hu=_n(String.prototype.replace),Pye=_n(String.prototype.indexOf),Nye=_n(String.prototype.trim),Ci=_n(Object.prototype.hasOwnProperty),pn=_n(RegExp.prototype.test),Gu=Mye(TypeError);function _n(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Wx(e,t,n)}}function Mye(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Jx(e,r)}}function Et(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wp;p3&&p3(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const s=r(i);s!==i&&(Rye(t)||(t[n]=s),i=s)}e[i]=!0}return e}function Dye(e){for(let t=0;t<e.length;t++)Ci(e,t)||(e[t]=null);return e}function Da(e){const t=i5(null);for(const[r,n]of n5(e))Ci(e,r)&&(Array.isArray(n)?t[r]=Dye(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Da(n):t[r]=n);return t}function Yu(e,t){for(;e!==null;){const n=Iye(e,t);if(n){if(n.get)return _n(n.get);if(typeof n.value=="function")return _n(n.value)}e=Tye(e)}function r(){return null}return r}const m3=bn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),H1=bn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G1=bn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),qye=bn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y1=bn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$ye=bn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),g3=bn(["#text"]),y3=bn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),X1=bn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),v3=bn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),op=bn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Fye=di(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Lye=di(/<%[\w\W]*|[\w\W]*%>/gm),Bye=di(/\$\{[\w\W]*/gm),Uye=di(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vye=di(/^aria-[\-\w]+$/),s5=di(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zye=di(/^(?:\w+script|data):/i),Wye=di(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),a5=di(/^html$/i),Jye=di(/^[a-z][.\w]*(-[.\w]+)+$/i);var b3=Object.freeze({__proto__:null,ARIA_ATTR:Vye,ATTR_WHITESPACE:Wye,CUSTOM_ELEMENT:Jye,DATA_ATTR:Uye,DOCTYPE_NAME:a5,ERB_EXPR:Lye,IS_ALLOWED_URI:s5,IS_SCRIPT_OR_DATA:zye,MUSTACHE_EXPR:Fye,TMPLIT_EXPR:Bye});const Xu={element:1,text:3,progressingInstruction:7,comment:8,document:9},Kye=function(){return typeof window>"u"?null:window},Hye=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},_3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function o5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kye();const t=Ke=>o5(Ke);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==Xu.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:o,Element:u,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,g=u.prototype,y=Yu(g,"cloneNode"),v=Yu(g,"remove"),E=Yu(g,"nextSibling"),b=Yu(g,"childNodes"),S=Yu(g,"parentNode");if(typeof a=="function"){const Ke=r.createElement("template");Ke.content&&Ke.content.ownerDocument&&(r=Ke.content.ownerDocument)}let x,_="";const{implementation:A,createNodeIterator:C,createDocumentFragment:R,getElementsByTagName:O}=r,{importNode:M}=n;let k=_3();t.isSupported=typeof n5=="function"&&typeof S=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:P,TMPLIT_EXPR:H,DATA_ATTR:Z,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:Y}=b3;let{IS_ALLOWED_URI:L}=b3,J=null;const ee=Et({},[...m3,...H1,...G1,...Y1,...g3]);let ne=null;const ae=Et({},[...y3,...X1,...v3,...op]);let X=Object.seal(i5(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,F=null,ue=!0,fe=!0,Ae=!1,Ne=!0,pe=!1,Oe=!0,We=!1,he=!1,ve=!1,Se=!1,$=!1,T=!1,j=!0,U=!1;const re="user-content-";let ie=!0,le=!1,Ie={},Je=null;const Qe=Et({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let tt=null;const ct=Et({},["audio","video","img","source","image","track"]);let $n=null;const Si=Et({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ar="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",lr="http://www.w3.org/1999/xhtml";let Pt=lr,Bs=!1,dr=null;const de=Et({},[ar,br,lr],K1);let Ee=Et({},["mi","mo","mn","ms","mtext"]),Re=Et({},["annotation-xml"]);const Ge=Et({},["title","style","font","a","script"]);let at=null;const mt=["application/xhtml+xml","text/html"],Lt="text/html";let Te=null,Fe=null;const nt=r.createElement("form"),Ye=function(se){return se instanceof RegExp||se instanceof Function},Bt=function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fe&&Fe===se)){if((!se||typeof se!="object")&&(se={}),se=Da(se),at=mt.indexOf(se.PARSER_MEDIA_TYPE)===-1?Lt:se.PARSER_MEDIA_TYPE,Te=at==="application/xhtml+xml"?K1:wp,J=Ci(se,"ALLOWED_TAGS")?Et({},se.ALLOWED_TAGS,Te):ee,ne=Ci(se,"ALLOWED_ATTR")?Et({},se.ALLOWED_ATTR,Te):ae,dr=Ci(se,"ALLOWED_NAMESPACES")?Et({},se.ALLOWED_NAMESPACES,K1):de,$n=Ci(se,"ADD_URI_SAFE_ATTR")?Et(Da(Si),se.ADD_URI_SAFE_ATTR,Te):Si,tt=Ci(se,"ADD_DATA_URI_TAGS")?Et(Da(ct),se.ADD_DATA_URI_TAGS,Te):ct,Je=Ci(se,"FORBID_CONTENTS")?Et({},se.FORBID_CONTENTS,Te):Qe,B=Ci(se,"FORBID_TAGS")?Et({},se.FORBID_TAGS,Te):{},F=Ci(se,"FORBID_ATTR")?Et({},se.FORBID_ATTR,Te):{},Ie=Ci(se,"USE_PROFILES")?se.USE_PROFILES:!1,ue=se.ALLOW_ARIA_ATTR!==!1,fe=se.ALLOW_DATA_ATTR!==!1,Ae=se.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=se.ALLOW_SELF_CLOSE_IN_ATTR!==!1,pe=se.SAFE_FOR_TEMPLATES||!1,Oe=se.SAFE_FOR_XML!==!1,We=se.WHOLE_DOCUMENT||!1,Se=se.RETURN_DOM||!1,$=se.RETURN_DOM_FRAGMENT||!1,T=se.RETURN_TRUSTED_TYPE||!1,ve=se.FORCE_BODY||!1,j=se.SANITIZE_DOM!==!1,U=se.SANITIZE_NAMED_PROPS||!1,ie=se.KEEP_CONTENT!==!1,le=se.IN_PLACE||!1,L=se.ALLOWED_URI_REGEXP||s5,Pt=se.NAMESPACE||lr,Ee=se.MATHML_TEXT_INTEGRATION_POINTS||Ee,Re=se.HTML_INTEGRATION_POINTS||Re,X=se.CUSTOM_ELEMENT_HANDLING||{},se.CUSTOM_ELEMENT_HANDLING&&Ye(se.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=se.CUSTOM_ELEMENT_HANDLING.tagNameCheck),se.CUSTOM_ELEMENT_HANDLING&&Ye(se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),se.CUSTOM_ELEMENT_HANDLING&&typeof se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),pe&&(fe=!1),$&&(Se=!0),Ie&&(J=Et({},g3),ne=[],Ie.html===!0&&(Et(J,m3),Et(ne,y3)),Ie.svg===!0&&(Et(J,H1),Et(ne,X1),Et(ne,op)),Ie.svgFilters===!0&&(Et(J,G1),Et(ne,X1),Et(ne,op)),Ie.mathMl===!0&&(Et(J,Y1),Et(ne,v3),Et(ne,op))),se.ADD_TAGS&&(J===ee&&(J=Da(J)),Et(J,se.ADD_TAGS,Te)),se.ADD_ATTR&&(ne===ae&&(ne=Da(ne)),Et(ne,se.ADD_ATTR,Te)),se.ADD_URI_SAFE_ATTR&&Et($n,se.ADD_URI_SAFE_ATTR,Te),se.FORBID_CONTENTS&&(Je===Qe&&(Je=Da(Je)),Et(Je,se.FORBID_CONTENTS,Te)),ie&&(J["#text"]=!0),We&&Et(J,["html","head","body"]),J.table&&(Et(J,["tbody"]),delete B.tbody),se.TRUSTED_TYPES_POLICY){if(typeof se.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof se.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=se.TRUSTED_TYPES_POLICY,_=x.createHTML("")}else x===void 0&&(x=Hye(d,i)),x!==null&&typeof _=="string"&&(_=x.createHTML(""));bn&&bn(se),Fe=se}},on=Et({},[...H1,...G1,...qye]),Us=Et({},[...Y1,...$ye]),Vs=function(se){let _e=S(se);(!_e||!_e.tagName)&&(_e={namespaceURI:Pt,tagName:"template"});const Ue=wp(se.tagName),lt=wp(_e.tagName);return dr[se.namespaceURI]?se.namespaceURI===br?_e.namespaceURI===lr?Ue==="svg":_e.namespaceURI===ar?Ue==="svg"&&(lt==="annotation-xml"||Ee[lt]):!!on[Ue]:se.namespaceURI===ar?_e.namespaceURI===lr?Ue==="math":_e.namespaceURI===br?Ue==="math"&&Re[lt]:!!Us[Ue]:se.namespaceURI===lr?_e.namespaceURI===br&&!Re[lt]||_e.namespaceURI===ar&&!Ee[lt]?!1:!Us[Ue]&&(Ge[Ue]||!on[Ue]):!!(at==="application/xhtml+xml"&&dr[se.namespaceURI]):!1},un=function(se){Ku(t.removed,{element:se});try{S(se).removeChild(se)}catch{v(se)}},zs=function(se,_e){try{Ku(t.removed,{attribute:_e.getAttributeNode(se),from:_e})}catch{Ku(t.removed,{attribute:null,from:_e})}if(_e.removeAttribute(se),se==="is")if(Se||$)try{un(_e)}catch{}else try{_e.setAttribute(se,"")}catch{}},Ws=function(se){let _e=null,Ue=null;if(ve)se="<remove></remove>"+se;else{const Wt=h3(se,/^[\r\n\t ]+/);Ue=Wt&&Wt[0]}at==="application/xhtml+xml"&&Pt===lr&&(se='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+se+"</body></html>");const lt=x?x.createHTML(se):se;if(Pt===lr)try{_e=new h().parseFromString(lt,at)}catch{}if(!_e||!_e.documentElement){_e=A.createDocument(Pt,"template",null);try{_e.documentElement.innerHTML=Bs?_:lt}catch{}}const rr=_e.body||_e.documentElement;return se&&Ue&&rr.insertBefore(r.createTextNode(Ue),rr.childNodes[0]||null),Pt===lr?O.call(_e,We?"html":"body")[0]:We?_e.documentElement:rr},Js=function(se){return C.call(se.ownerDocument||se,se,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vs=function(se){return se instanceof f&&(typeof se.nodeName!="string"||typeof se.textContent!="string"||typeof se.removeChild!="function"||!(se.attributes instanceof l)||typeof se.removeAttribute!="function"||typeof se.setAttribute!="function"||typeof se.namespaceURI!="string"||typeof se.insertBefore!="function"||typeof se.hasChildNodes!="function")},cn=function(se){return typeof o=="function"&&se instanceof o};function Fn(Ke,se,_e){ap(Ke,Ue=>{Ue.call(t,se,_e,Fe)})}const Ks=function(se){let _e=null;if(Fn(k.beforeSanitizeElements,se,null),vs(se))return un(se),!0;const Ue=Te(se.nodeName);if(Fn(k.uponSanitizeElement,se,{tagName:Ue,allowedTags:J}),se.hasChildNodes()&&!cn(se.firstElementChild)&&pn(/<[/\w]/g,se.innerHTML)&&pn(/<[/\w]/g,se.textContent)||se.nodeType===Xu.progressingInstruction||Oe&&se.nodeType===Xu.comment&&pn(/<[/\w]/g,se.data))return un(se),!0;if(!J[Ue]||B[Ue]){if(!B[Ue]&&Vi(Ue)&&(X.tagNameCheck instanceof RegExp&&pn(X.tagNameCheck,Ue)||X.tagNameCheck instanceof Function&&X.tagNameCheck(Ue)))return!1;if(ie&&!Je[Ue]){const lt=S(se)||se.parentNode,rr=b(se)||se.childNodes;if(rr&&lt){const Wt=rr.length;for(let Yt=Wt-1;Yt>=0;--Yt){const Zr=y(rr[Yt],!0);Zr.__removalCount=(se.__removalCount||0)+1,lt.insertBefore(Zr,E(se))}}}return un(se),!0}return se instanceof u&&!Vs(se)||(Ue==="noscript"||Ue==="noembed"||Ue==="noframes")&&pn(/<\/no(script|embed|frames)/i,se.innerHTML)?(un(se),!0):(pe&&se.nodeType===Xu.text&&(_e=se.textContent,ap([D,P,H],lt=>{_e=Hu(_e,lt," ")}),se.textContent!==_e&&(Ku(t.removed,{element:se.cloneNode()}),se.textContent=_e)),Fn(k.afterSanitizeElements,se,null),!1)},Hs=function(se,_e,Ue){if(j&&(_e==="id"||_e==="name")&&(Ue in r||Ue in nt))return!1;if(!(fe&&!F[_e]&&pn(Z,_e))){if(!(ue&&pn(V,_e))){if(!ne[_e]||F[_e]){if(!(Vi(se)&&(X.tagNameCheck instanceof RegExp&&pn(X.tagNameCheck,se)||X.tagNameCheck instanceof Function&&X.tagNameCheck(se))&&(X.attributeNameCheck instanceof RegExp&&pn(X.attributeNameCheck,_e)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(_e))||_e==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&pn(X.tagNameCheck,Ue)||X.tagNameCheck instanceof Function&&X.tagNameCheck(Ue))))return!1}else if(!$n[_e]){if(!pn(L,Hu(Ue,Q,""))){if(!((_e==="src"||_e==="xlink:href"||_e==="href")&&se!=="script"&&Pye(Ue,"data:")===0&&tt[se])){if(!(Ae&&!pn(G,Hu(Ue,Q,"")))){if(Ue)return!1}}}}}}return!0},Vi=function(se){return se!=="annotation-xml"&&h3(se,Y)},kr=function(se){Fn(k.beforeSanitizeAttributes,se,null);const{attributes:_e}=se;if(!_e||vs(se))return;const Ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let lt=_e.length;for(;lt--;){const rr=_e[lt],{name:Wt,namespaceURI:Yt,value:Zr}=rr,An=Te(Wt);let xr=Wt==="value"?Zr:Nye(Zr);if(Ue.attrName=An,Ue.attrValue=xr,Ue.keepAttr=!0,Ue.forceKeepAttr=void 0,Fn(k.uponSanitizeAttribute,se,Ue),xr=Ue.attrValue,U&&(An==="id"||An==="name")&&(zs(Wt,se),xr=re+xr),Oe&&pn(/((--!?|])>)|<\/(style|title)/i,xr)){zs(Wt,se);continue}if(Ue.forceKeepAttr||(zs(Wt,se),!Ue.keepAttr))continue;if(!Ne&&pn(/\/>/i,xr)){zs(Wt,se);continue}pe&&ap([D,P,H],Ce=>{xr=Hu(xr,Ce," ")});const Gs=Te(se.nodeName);if(Hs(Gs,An,xr)){if(x&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Yt)switch(d.getAttributeType(Gs,An)){case"TrustedHTML":{xr=x.createHTML(xr);break}case"TrustedScriptURL":{xr=x.createScriptURL(xr);break}}try{Yt?se.setAttributeNS(Yt,Wt,xr):se.setAttribute(Wt,xr),vs(se)?un(se):d3(t.removed)}catch{}}}Fn(k.afterSanitizeAttributes,se,null)},vt=function Ke(se){let _e=null;const Ue=Js(se);for(Fn(k.beforeSanitizeShadowDOM,se,null);_e=Ue.nextNode();)Fn(k.uponSanitizeShadowNode,_e,null),Ks(_e),kr(_e),_e.content instanceof s&&Ke(_e.content);Fn(k.afterSanitizeShadowDOM,se,null)};return t.sanitize=function(Ke){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=null,Ue=null,lt=null,rr=null;if(Bs=!Ke,Bs&&(Ke="<!-->"),typeof Ke!="string"&&!cn(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw Gu("dirty is not a string, aborting")}else throw Gu("toString is not a function");if(!t.isSupported)return Ke;if(he||Bt(se),t.removed=[],typeof Ke=="string"&&(le=!1),le){if(Ke.nodeName){const Zr=Te(Ke.nodeName);if(!J[Zr]||B[Zr])throw Gu("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof o)_e=Ws("<!---->"),Ue=_e.ownerDocument.importNode(Ke,!0),Ue.nodeType===Xu.element&&Ue.nodeName==="BODY"||Ue.nodeName==="HTML"?_e=Ue:_e.appendChild(Ue);else{if(!Se&&!pe&&!We&&Ke.indexOf("<")===-1)return x&&T?x.createHTML(Ke):Ke;if(_e=Ws(Ke),!_e)return Se?null:T?_:""}_e&&ve&&un(_e.firstChild);const Wt=Js(le?Ke:_e);for(;lt=Wt.nextNode();)Ks(lt),kr(lt),lt.content instanceof s&&vt(lt.content);if(le)return Ke;if(Se){if($)for(rr=R.call(_e.ownerDocument);_e.firstChild;)rr.appendChild(_e.firstChild);else rr=_e;return(ne.shadowroot||ne.shadowrootmode)&&(rr=M.call(n,rr,!0)),rr}let Yt=We?_e.outerHTML:_e.innerHTML;return We&&J["!doctype"]&&_e.ownerDocument&&_e.ownerDocument.doctype&&_e.ownerDocument.doctype.name&&pn(a5,_e.ownerDocument.doctype.name)&&(Yt="<!DOCTYPE "+_e.ownerDocument.doctype.name+`>
280
+ `+Yt),pe&&ap([D,P,H],Zr=>{Yt=Hu(Yt,Zr," ")}),x&&T?x.createHTML(Yt):Yt},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(Ke),he=!0},t.clearConfig=function(){Fe=null,he=!1},t.isValidAttribute=function(Ke,se,_e){Fe||Bt({});const Ue=Te(Ke),lt=Te(se);return Hs(Ue,lt,_e)},t.addHook=function(Ke,se){typeof se=="function"&&Ku(k[Ke],se)},t.removeHook=function(Ke,se){if(se!==void 0){const _e=jye(k[Ke],se);return _e===-1?void 0:kye(k[Ke],_e,1)[0]}return d3(k[Ke])},t.removeHooks=function(Ke){k[Ke]=[]},t.removeAllHooks=function(){k=_3()},t}var Gye=o5(),Z1,E3;function Yye(){if(E3)return Z1;E3=1;var e=ks(),t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source);function n(i){return i=e(i),i&&r.test(i)?i.replace(t,"\\$&"):i}return Z1=n,Z1}var Xye=Yye();const Zye=Be.getDefaultExportFromCjs(Xye);var Q1,S3;function Qye(){if(S3)return Q1;S3=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return Q1=r,Q1}var ew,w3;function eve(){if(w3)return ew;w3=1;var e=Qye(),t=nB();function r(n,i){return n!=null&&t(n,i,e)}return ew=r,ew}var tve=eve();const rve=Be.getDefaultExportFromCjs(tve);var nve=x4();const ive=Be.getDefaultExportFromCjs(nve);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var sve={7:function(e){var t,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(E,b,S){return Function.prototype.apply.call(E,b,S)};t=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:function(E){return Object.getOwnPropertyNames(E)};var i=Number.isNaN||function(E){return E!=E};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(E,b){return new Promise(function(S,x){function _(C){E.removeListener(b,A),x(C)}function A(){typeof E.removeListener=="function"&&E.removeListener("error",_),S([].slice.call(arguments))}y(E,b,A,{once:!0}),b!=="error"&&function(R,O,M){typeof R.on=="function"&&y(R,"error",O,M)}(E,_,{once:!0})})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function o(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function u(v){return v._maxListeners===void 0?s.defaultMaxListeners:v._maxListeners}function c(v,E,b,S){var x,_,A;if(o(b),(_=v._events)===void 0?(_=v._events=Object.create(null),v._eventsCount=0):(_.newListener!==void 0&&(v.emit("newListener",E,b.listener?b.listener:b),_=v._events),A=_[E]),A===void 0)A=_[E]=b,++v._eventsCount;else if(typeof A=="function"?A=_[E]=S?[b,A]:[A,b]:S?A.unshift(b):A.push(b),(x=u(v))>0&&A.length>x&&!A.warned){A.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=v,C.type=E,C.count=A.length,function(O){console&&console.warn&&console.warn(O)}(C)}return v}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(v,E,b){var S={fired:!1,wrapFn:void 0,target:v,type:E,listener:b},x=l.bind(S);return x.listener=b,S.wrapFn=x,x}function h(v,E,b){var S=v._events;if(S===void 0)return[];var x=S[E];return x===void 0?[]:typeof x=="function"?b?[x.listener||x]:[x]:b?function(A){for(var C=new Array(A.length),R=0;R<C.length;++R)C[R]=A[R].listener||A[R];return C}(x):g(x,x.length)}function d(v){var E=this._events;if(E!==void 0){var b=E[v];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}function g(v,E){for(var b=new Array(E),S=0;S<E;++S)b[S]=v[S];return b}function y(v,E,b,S){if(typeof v.on=="function")S.once?v.once(E,b):v.on(E,b);else{if(typeof v.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v);v.addEventListener(E,function x(_){S.once&&v.removeEventListener(E,x),b(_)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(v){if(typeof v!="number"||v<0||i(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");a=v}}),s.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||i(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(E){for(var b=[],S=1;S<arguments.length;S++)b.push(arguments[S]);var x=E==="error",_=this._events;if(_!==void 0)x=x&&_.error===void 0;else if(!x)return!1;if(x){var A;if(b.length>0&&(A=b[0]),A instanceof Error)throw A;var C=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw C.context=A,C}var R=_[E];if(R===void 0)return!1;if(typeof R=="function")n(R,this,b);else{var O=R.length,M=g(R,O);for(S=0;S<O;++S)n(M[S],this,b)}return!0},s.prototype.addListener=function(E,b){return c(this,E,b,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(E,b){return c(this,E,b,!0)},s.prototype.once=function(E,b){return o(b),this.on(E,f(this,E,b)),this},s.prototype.prependOnceListener=function(E,b){return o(b),this.prependListener(E,f(this,E,b)),this},s.prototype.removeListener=function(E,b){var S,x,_,A,C;if(o(b),(x=this._events)===void 0)return this;if((S=x[E])===void 0)return this;if(S===b||S.listener===b)--this._eventsCount==0?this._events=Object.create(null):(delete x[E],x.removeListener&&this.emit("removeListener",E,S.listener||b));else if(typeof S!="function"){for(_=-1,A=S.length-1;A>=0;A--)if(S[A]===b||S[A].listener===b){C=S[A].listener,_=A;break}if(_<0)return this;_===0?S.shift():function(O,M){for(;M+1<O.length;M++)O[M]=O[M+1];O.pop()}(S,_),S.length===1&&(x[E]=S[0]),x.removeListener!==void 0&&this.emit("removeListener",E,C||b)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(E){var b,S,x;if((S=this._events)===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete S[E]),this;if(arguments.length===0){var _,A=Object.keys(S);for(x=0;x<A.length;++x)(_=A[x])!=="removeListener"&&this.removeAllListeners(_);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(b=S[E])=="function")this.removeListener(E,b);else if(b!==void 0)for(x=b.length-1;x>=0;x--)this.removeListener(E,b[x]);return this},s.prototype.listeners=function(E){return h(this,E,!0)},s.prototype.rawListeners=function(E){return h(this,E,!1)},s.listenerCount=function(v,E){return typeof v.listenerCount=="function"?v.listenerCount(E):d.call(v,E)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},48:function(e){var t={};function r(i,s,a){a||(a=Error);var o=function(u){function c(l,f,h){return u.call(this,function(g,y,v){return typeof s=="string"?s:s(g,y,v)}(l,f,h))||this}return function(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,f.__proto__=h}(c,u),c}(a);o.prototype.name=a.name,o.prototype.code=i,t[i]=o}function n(i,s){if(Array.isArray(i)){var a=i.length;return i=i.map(function(o){return String(o)}),a>2?"one of ".concat(s," ").concat(i.slice(0,a-1).join(", "),", or ")+i[a-1]:a===2?"one of ".concat(s," ").concat(i[0]," or ").concat(i[1]):"of ".concat(s," ").concat(i[0])}return"of ".concat(s," ").concat(String(i))}r("ERR_INVALID_OPT_VALUE",function(i,s){return'The value "'+s+'" is invalid for option "'+i+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(i,s,a){var o,u;if(typeof s=="string"&&function(f,h,d){return f.substr(0,h.length)===h}(s,"not ")?(o="must not be",s=s.replace(/^not /,"")):o="must be",function(f,h,d){return(d===void 0||d>f.length)&&(d=f.length),f.substring(d-h.length,d)===h}(i," argument"))u="The ".concat(i," ").concat(o," ").concat(n(s,"type"));else{var c=function(f,h,d){return typeof d!="number"&&(d=0),!(d+h.length>f.length)&&f.indexOf(h,d)!==-1}(i,".")?"property":"argument";u='The "'.concat(i,'" ').concat(c," ").concat(o," ").concat(n(s,"type"))}return u+=". Received type ".concat(typeof a)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},107:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function u(){this.init(),this._w=o,i.call(this,64,56)}function c(y,v,E){return E^y&(v^E)}function l(y,v,E){return y&v|E&(y|v)}function f(y){return(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10)}function h(y){return(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7)}function d(y){return(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3}function g(y){return(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(y){for(var v=this._w,E=0|this._a,b=0|this._b,S=0|this._c,x=0|this._d,_=0|this._e,A=0|this._f,C=0|this._g,R=0|this._h,O=0;O<16;++O)v[O]=y.readInt32BE(4*O);for(;O<64;++O)v[O]=g(v[O-2])+v[O-7]+d(v[O-15])+v[O-16]|0;for(var M=0;M<64;++M){var k=R+h(_)+c(_,A,C)+a[M]+v[M]|0,D=f(E)+l(E,b,S)|0;R=C,C=A,A=_,_=x+k|0,x=S,S=b,b=E,E=k+D|0}this._a=E+this._a|0,this._b=b+this._b|0,this._c=S+this._c|0,this._d=x+this._d|0,this._e=_+this._e|0,this._f=A+this._f|0,this._g=C+this._g|0,this._h=R+this._h|0},u.prototype._hash=function(){var y=s.allocUnsafe(32);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y.writeInt32BE(this._h,28),y},e.exports=u},123:function(e,t,r){var n=r(606),i=r(499),s=r(310).Stream;function a(u,c,l){var f,h=function(S,x){return new Array(x||0).join(S||"")}(c,l=l||0),d=u;if(typeof u=="object"&&(d=u[f=Object.keys(u)[0]])&&d._elem)return d._elem.name=f,d._elem.icount=l,d._elem.indent=c,d._elem.indents=h,d._elem.interrupt=d,d._elem;var g,y=[],v=[];function E(b){Object.keys(b).forEach(function(S){y.push(function(_,A){return _+'="'+i(A)+'"'}(S,b[S]))})}switch(typeof d){case"object":if(d===null)break;d._attr&&E(d._attr),d._cdata&&v.push(("<![CDATA["+d._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),d.forEach&&(g=!1,v.push(""),d.forEach(function(b){typeof b=="object"?Object.keys(b)[0]=="_attr"?E(b._attr):v.push(a(b,c,l+1)):(v.pop(),g=!0,v.push(i(b)))}),g||v.push(""));break;default:v.push(i(d))}return{name:f,interrupt:!1,attributes:y,content:v,icount:l,indents:h,indent:c}}function o(u,c,l){if(typeof c!="object")return u(!1,c);var f=c.interrupt?1:c.content.length;function h(){for(;c.content.length;){var g=c.content.shift();if(g!==void 0){if(d(g))return;o(u,g)}}u(!1,(f>1?c.indents:"")+(c.name?"</"+c.name+">":"")+(c.indent&&!l?`
281
+ `:"")),l&&l()}function d(g){return!!g.interrupt&&(g.interrupt.append=u,g.interrupt.end=h,g.interrupt=!1,u(!0),!0)}if(u(!1,c.indents+(c.name?"<"+c.name:"")+(c.attributes.length?" "+c.attributes.join(" "):"")+(f?c.name?">":"":c.name?"/>":"")+(c.indent&&f>1?`
282
+ `:"")),!f)return u(!1,c.indent?`
283
+ `:"");d(c)||h()}e.exports=function(c,l){typeof l!="object"&&(l={indent:l});var f=l.stream?new s:null,h="",d=!1,g=l.indent?l.indent===!0?" ":l.indent:"",y=!0;function v(x){y?n.nextTick(x):x()}function E(x,_){if(_!==void 0&&(h+=_),x&&!d&&(f=f||new s,d=!0),x&&d){var A=h;v(function(){f.emit("data",A)}),h=""}}function b(x,_){o(E,a(x,g,g?1:0),_)}function S(){if(f){var x=h;v(function(){f.emit("data",x),f.emit("end"),f.readable=!1,f.emit("close")})}}return v(function(){y=!1}),l.declaration&&function(_){var A={version:"1.0",encoding:_.encoding||"UTF-8"};_.standalone&&(A.standalone=_.standalone),b({"?xml":{_attr:A}}),h=h.replace("/>","?>")}(l.declaration),c&&c.forEach?c.forEach(function(x,_){var A;_+1===c.length&&(A=S),b(x,A)}):b(c,S),f?(f.readable=!0,f):h},e.exports.element=e.exports.Element=function(){var c={_elem:a(Array.prototype.slice.call(arguments)),push:function(l){if(!this.append)throw new Error("not assigned to a parent!");var f=this,h=this._elem.indent;o(this.append,a(l,h,this._elem.icount+(h?1:0)),function(){f.append(!0)})},close:function(l){l!==void 0&&this.push(l),this.end&&this.end()}};return c}},141:function(e,t,r){var n=r(861).Buffer,i=n.isEncoding||function(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(g){var y;switch(this.encoding=function(E){var b=function(x){if(!x)return"utf8";for(var _;;)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(_)return;x=(""+x).toLowerCase(),_=!0}}(E);if(typeof b!="string"&&(n.isEncoding===i||!i(E)))throw new Error("Unknown encoding: "+E);return b||E}(g),this.encoding){case"utf16le":this.text=u,this.end=c,y=4;break;case"utf8":this.fillLast=o,y=4;break;case"base64":this.text=l,this.end=f,y=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(y)}function a(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function o(g){var y=this.lastTotal-this.lastNeed,v=function(b,S,x){if((192&S[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&S.length>1){if((192&S[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&S.length>2&&(192&S[2])!=128)return b.lastNeed=2,"�"}}(this,g);return v!==void 0?v:this.lastNeed<=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function u(g,y){if((g.length-y)%2==0){var v=g.toString("utf16le",y);if(v){var E=v.charCodeAt(v.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function c(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,v)}return y}function l(g,y){var v=(g.length-y)%3;return v===0?g.toString("base64",y):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",y,g.length-v))}function f(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function h(g){return g.toString(this.encoding)}function d(g){return g&&g.length?this.write(g):""}t.I=s,s.prototype.write=function(g){if(g.length===0)return"";var y,v;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<g.length?y?y+this.text(g,v):this.text(g,v):y||""},s.prototype.end=function(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+"�":v},s.prototype.text=function(y,v){var E=function(x,_,A){var C=_.length-1;if(C<A)return 0;var R=a(_[C]);return R>=0?(R>0&&(x.lastNeed=R-1),R):--C<A||R===-2?0:(R=a(_[C]),R>=0?(R>0&&(x.lastNeed=R-2),R):--C<A||R===-2?0:(R=a(_[C]),R>=0?(R>0&&(R===2?R=0:x.lastNeed=R-3),R):0))}(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=E;var b=y.length-(E-this.lastNeed);return y.copy(this.lastChar,0,b),y.toString("utf8",v,b)},s.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},157:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},209:function(e,t,r){var n=r(606),i=65536,s=4294967295,a=r(861).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?e.exports=function(c,l){if(c>s)throw new RangeError("requested too many random bytes");var f=a.allocUnsafe(c);if(c>0)if(c>i)for(var h=0;h<c;h+=i)o.getRandomValues(f.slice(h,h+i));else o.getRandomValues(f);return typeof l=="function"?n.nextTick(function(){l(null,f)}):f}:e.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
284
+ Use Chrome, Firefox or Internet Explorer 11`)}},238:function(e,t,r){var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function s(a,o,u){if(typeof o=="function")return s(a,null,o);o||(o={}),u=function(x){var _=!1;return function(){if(!_){_=!0;for(var A=arguments.length,C=new Array(A),R=0;R<A;R++)C[R]=arguments[R];x.apply(this,C)}}}(u||i);var c=o.readable||o.readable!==!1&&a.readable,l=o.writable||o.writable!==!1&&a.writable,f=function(){a.writable||d()},h=a._writableState&&a._writableState.finished,d=function(){l=!1,h=!0,c||u.call(a)},g=a._readableState&&a._readableState.endEmitted,y=function(){c=!1,g=!0,l||u.call(a)},v=function(x){u.call(a,x)},E=function(){var x;return c&&!g?(a._readableState&&a._readableState.ended||(x=new n),u.call(a,x)):l&&!h?(a._writableState&&a._writableState.ended||(x=new n),u.call(a,x)):void 0},b=function(){a.req.on("finish",d)};return function(x){return x.setHeader&&typeof x.abort=="function"}(a)?(a.on("complete",d),a.on("abort",E),a.req?b():a.on("request",b)):l&&!a._writableState&&(a.on("end",f),a.on("close",f)),a.on("end",y),a.on("finish",d),o.error!==!1&&a.on("error",v),a.on("close",E),function(){a.removeListener("complete",d),a.removeListener("abort",E),a.removeListener("request",b),a.req&&a.req.removeListener("finish",d),a.removeListener("end",f),a.removeListener("close",f),a.removeListener("finish",d),a.removeListener("end",y),a.removeListener("error",v),a.removeListener("close",E)}}},287:function(e,t,r){const n=r(987),i=r(362),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(T){return+T!=T&&(T=0),u.alloc(+T)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function o($){if($>a)throw new RangeError('The value "'+$+'" is invalid for option "size"');const T=new Uint8Array($);return Object.setPrototypeOf(T,u.prototype),T}function u($,T,j){if(typeof $=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f($)}return c($,T,j)}function c($,T,j){if(typeof $=="string")return function(le,Ie){if(typeof Ie=="string"&&Ie!==""||(Ie="utf8"),!u.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie);const Je=0|y(le,Ie);let Qe=o(Je);const tt=Qe.write(le,Ie);return tt!==Je&&(Qe=Qe.slice(0,tt)),Qe}($,T);if(ArrayBuffer.isView($))return function(le){if(Oe(le,Uint8Array)){const Ie=new Uint8Array(le);return d(Ie.buffer,Ie.byteOffset,Ie.byteLength)}return h(le)}($);if($==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);if(Oe($,ArrayBuffer)||$&&Oe($.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe($,SharedArrayBuffer)||$&&Oe($.buffer,SharedArrayBuffer)))return d($,T,j);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const U=$.valueOf&&$.valueOf();if(U!=null&&U!==$)return u.from(U,T,j);const re=function(le){if(u.isBuffer(le)){const Ie=0|g(le.length),Je=o(Ie);return Je.length===0||le.copy(Je,0,0,Ie),Je}if(le.length!==void 0)return typeof le.length!="number"||We(le.length)?o(0):h(le);if(le.type==="Buffer"&&Array.isArray(le.data))return h(le.data)}($);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return u.from($[Symbol.toPrimitive]("string"),T,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}function l($){if(typeof $!="number")throw new TypeError('"size" argument must be of type number');if($<0)throw new RangeError('The value "'+$+'" is invalid for option "size"')}function f($){return l($),o($<0?0:0|g($))}function h($){const T=$.length<0?0:0|g($.length),j=o(T);for(let U=0;U<T;U+=1)j[U]=255&$[U];return j}function d($,T,j){if(T<0||$.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<T+(j||0))throw new RangeError('"length" is outside of buffer bounds');let U;return U=T===void 0&&j===void 0?new Uint8Array($):j===void 0?new Uint8Array($,T):new Uint8Array($,T,j),Object.setPrototypeOf(U,u.prototype),U}function g($){if($>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|$}function y($,T){if(u.isBuffer($))return $.length;if(ArrayBuffer.isView($)||Oe($,ArrayBuffer))return $.byteLength;if(typeof $!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $);const j=$.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&j===0)return 0;let re=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return Ae($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return Ne($).length;default:if(re)return U?-1:Ae($).length;T=(""+T).toLowerCase(),re=!0}}function v($,T,j){let U=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(T>>>=0))return"";for($||($="utf8");;)switch($){case"hex":return H(this,T,j);case"utf8":case"utf-8":return M(this,T,j);case"ascii":return D(this,T,j);case"latin1":case"binary":return P(this,T,j);case"base64":return O(this,T,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,T,j);default:if(U)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),U=!0}}function E($,T,j){const U=$[T];$[T]=$[j],$[j]=U}function b($,T,j,U,re){if($.length===0)return-1;if(typeof j=="string"?(U=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),We(j=+j)&&(j=re?0:$.length-1),j<0&&(j=$.length+j),j>=$.length){if(re)return-1;j=$.length-1}else if(j<0){if(!re)return-1;j=0}if(typeof T=="string"&&(T=u.from(T,U)),u.isBuffer(T))return T.length===0?-1:S($,T,j,U,re);if(typeof T=="number")return T&=255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call($,T,j):Uint8Array.prototype.lastIndexOf.call($,T,j):S($,[T],j,U,re);throw new TypeError("val must be string, number or Buffer")}function S($,T,j,U,re){let ie,le=1,Ie=$.length,Je=T.length;if(U!==void 0&&((U=String(U).toLowerCase())==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if($.length<2||T.length<2)return-1;le=2,Ie/=2,Je/=2,j/=2}function Qe(tt,ct){return le===1?tt[ct]:tt.readUInt16BE(ct*le)}if(re){let tt=-1;for(ie=j;ie<Ie;ie++)if(Qe($,ie)===Qe(T,tt===-1?0:ie-tt)){if(tt===-1&&(tt=ie),ie-tt+1===Je)return tt*le}else tt!==-1&&(ie-=ie-tt),tt=-1}else for(j+Je>Ie&&(j=Ie-Je),ie=j;ie>=0;ie--){let tt=!0;for(let ct=0;ct<Je;ct++)if(Qe($,ie+ct)!==Qe(T,ct)){tt=!1;break}if(tt)return ie}return-1}function x($,T,j,U){j=Number(j)||0;const re=$.length-j;U?(U=Number(U))>re&&(U=re):U=re;const ie=T.length;let le;for(U>ie/2&&(U=ie/2),le=0;le<U;++le){const Ie=parseInt(T.substr(2*le,2),16);if(We(Ie))return le;$[j+le]=Ie}return le}function _($,T,j,U){return pe(Ae(T,$.length-j),$,j,U)}function A($,T,j,U){return pe(function(ie){const le=[];for(let Ie=0;Ie<ie.length;++Ie)le.push(255&ie.charCodeAt(Ie));return le}(T),$,j,U)}function C($,T,j,U){return pe(Ne(T),$,j,U)}function R($,T,j,U){return pe(function(ie,le){let Ie,Je,Qe;const tt=[];for(let ct=0;ct<ie.length&&!((le-=2)<0);++ct)Ie=ie.charCodeAt(ct),Je=Ie>>8,Qe=Ie%256,tt.push(Qe),tt.push(Je);return tt}(T,$.length-j),$,j,U)}function O($,T,j){return T===0&&j===$.length?n.fromByteArray($):n.fromByteArray($.slice(T,j))}function M($,T,j){j=Math.min($.length,j);const U=[];let re=T;for(;re<j;){const ie=$[re];let le=null,Ie=ie>239?4:ie>223?3:ie>191?2:1;if(re+Ie<=j){let Je,Qe,tt,ct;switch(Ie){case 1:ie<128&&(le=ie);break;case 2:Je=$[re+1],(192&Je)==128&&(ct=(31&ie)<<6|63&Je,ct>127&&(le=ct));break;case 3:Je=$[re+1],Qe=$[re+2],(192&Je)==128&&(192&Qe)==128&&(ct=(15&ie)<<12|(63&Je)<<6|63&Qe,ct>2047&&(ct<55296||ct>57343)&&(le=ct));break;case 4:Je=$[re+1],Qe=$[re+2],tt=$[re+3],(192&Je)==128&&(192&Qe)==128&&(192&tt)==128&&(ct=(15&ie)<<18|(63&Je)<<12|(63&Qe)<<6|63&tt,ct>65535&&ct<1114112&&(le=ct))}}le===null?(le=65533,Ie=1):le>65535&&(le-=65536,U.push(le>>>10&1023|55296),le=56320|1023&le),U.push(le),re+=Ie}return function(le){const Ie=le.length;if(Ie<=k)return String.fromCharCode.apply(String,le);let Je="",Qe=0;for(;Qe<Ie;)Je+=String.fromCharCode.apply(String,le.slice(Qe,Qe+=k));return Je}(U)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=function(){try{const T=new Uint8Array(1),j={foo:function(){return 42}};return Object.setPrototypeOf(j,Uint8Array.prototype),Object.setPrototypeOf(T,j),T.foo()===42}catch{return!1}}(),u.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function($,T,j){return c($,T,j)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function($,T,j){return function(re,ie,le){return l(re),re<=0?o(re):ie!==void 0?typeof le=="string"?o(re).fill(ie,le):o(re).fill(ie):o(re)}($,T,j)},u.allocUnsafe=function($){return f($)},u.allocUnsafeSlow=function($){return f($)},u.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==u.prototype},u.compare=function(T,j){if(Oe(T,Uint8Array)&&(T=u.from(T,T.offset,T.byteLength)),Oe(j,Uint8Array)&&(j=u.from(j,j.offset,j.byteLength)),!u.isBuffer(T)||!u.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===j)return 0;let U=T.length,re=j.length;for(let ie=0,le=Math.min(U,re);ie<le;++ie)if(T[ie]!==j[ie]){U=T[ie],re=j[ie];break}return U<re?-1:re<U?1:0},u.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(T,j){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return u.alloc(0);let U;if(j===void 0)for(j=0,U=0;U<T.length;++U)j+=T[U].length;const re=u.allocUnsafe(j);let ie=0;for(U=0;U<T.length;++U){let le=T[U];if(Oe(le,Uint8Array))ie+le.length>re.length?(u.isBuffer(le)||(le=u.from(le)),le.copy(re,ie)):Uint8Array.prototype.set.call(re,le,ie);else{if(!u.isBuffer(le))throw new TypeError('"list" argument must be an Array of Buffers');le.copy(re,ie)}ie+=le.length}return re},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<T;j+=2)E(this,j,j+1);return this},u.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<T;j+=4)E(this,j,j+3),E(this,j+1,j+2);return this},u.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<T;j+=8)E(this,j,j+7),E(this,j+1,j+6),E(this,j+2,j+5),E(this,j+3,j+4);return this},u.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?M(this,0,T):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(T){if(!u.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T||u.compare(this,T)===0},u.prototype.inspect=function(){let T="";const j=t.INSPECT_MAX_BYTES;return T=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(T+=" ... "),"<Buffer "+T+">"},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(T,j,U,re,ie){if(Oe(T,Uint8Array)&&(T=u.from(T,T.offset,T.byteLength)),!u.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(j===void 0&&(j=0),U===void 0&&(U=T?T.length:0),re===void 0&&(re=0),ie===void 0&&(ie=this.length),j<0||U>T.length||re<0||ie>this.length)throw new RangeError("out of range index");if(re>=ie&&j>=U)return 0;if(re>=ie)return-1;if(j>=U)return 1;if(this===T)return 0;let le=(ie>>>=0)-(re>>>=0),Ie=(U>>>=0)-(j>>>=0);const Je=Math.min(le,Ie),Qe=this.slice(re,ie),tt=T.slice(j,U);for(let ct=0;ct<Je;++ct)if(Qe[ct]!==tt[ct]){le=Qe[ct],Ie=tt[ct];break}return le<Ie?-1:Ie<le?1:0},u.prototype.includes=function(T,j,U){return this.indexOf(T,j,U)!==-1},u.prototype.indexOf=function(T,j,U){return b(this,T,j,U,!0)},u.prototype.lastIndexOf=function(T,j,U){return b(this,T,j,U,!1)},u.prototype.write=function(T,j,U,re){if(j===void 0)re="utf8",U=this.length,j=0;else if(U===void 0&&typeof j=="string")re=j,U=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j>>>=0,isFinite(U)?(U>>>=0,re===void 0&&(re="utf8")):(re=U,U=void 0)}const ie=this.length-j;if((U===void 0||U>ie)&&(U=ie),T.length>0&&(U<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let le=!1;for(;;)switch(re){case"hex":return x(this,T,j,U);case"utf8":case"utf-8":return _(this,T,j,U);case"ascii":case"latin1":case"binary":return A(this,T,j,U);case"base64":return C(this,T,j,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,T,j,U);default:if(le)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),le=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function D($,T,j){let U="";j=Math.min($.length,j);for(let re=T;re<j;++re)U+=String.fromCharCode(127&$[re]);return U}function P($,T,j){let U="";j=Math.min($.length,j);for(let re=T;re<j;++re)U+=String.fromCharCode($[re]);return U}function H($,T,j){const U=$.length;(!T||T<0)&&(T=0),(!j||j<0||j>U)&&(j=U);let re="";for(let ie=T;ie<j;++ie)re+=he[$[ie]];return re}function Z($,T,j){const U=$.slice(T,j);let re="";for(let ie=0;ie<U.length-1;ie+=2)re+=String.fromCharCode(U[ie]+256*U[ie+1]);return re}function V($,T,j){if($%1!=0||$<0)throw new RangeError("offset is not uint");if($+T>j)throw new RangeError("Trying to access beyond buffer length")}function G($,T,j,U,re,ie){if(!u.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>re||T<ie)throw new RangeError('"value" argument is out of bounds');if(j+U>$.length)throw new RangeError("Index out of range")}function Q($,T,j,U,re){B(T,U,re,$,j,7);let ie=Number(T&BigInt(4294967295));$[j++]=ie,ie>>=8,$[j++]=ie,ie>>=8,$[j++]=ie,ie>>=8,$[j++]=ie;let le=Number(T>>BigInt(32)&BigInt(4294967295));return $[j++]=le,le>>=8,$[j++]=le,le>>=8,$[j++]=le,le>>=8,$[j++]=le,j}function Y($,T,j,U,re){B(T,U,re,$,j,7);let ie=Number(T&BigInt(4294967295));$[j+7]=ie,ie>>=8,$[j+6]=ie,ie>>=8,$[j+5]=ie,ie>>=8,$[j+4]=ie;let le=Number(T>>BigInt(32)&BigInt(4294967295));return $[j+3]=le,le>>=8,$[j+2]=le,le>>=8,$[j+1]=le,le>>=8,$[j]=le,j+8}function L($,T,j,U,re,ie){if(j+U>$.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function J($,T,j,U,re){return T=+T,j>>>=0,re||L($,0,j,4),i.write($,T,j,U,23,4),j+4}function ee($,T,j,U,re){return T=+T,j>>>=0,re||L($,0,j,8),i.write($,T,j,U,52,8),j+8}u.prototype.slice=function(T,j){const U=this.length;(T=~~T)<0?(T+=U)<0&&(T=0):T>U&&(T=U),(j=j===void 0?U:~~j)<0?(j+=U)<0&&(j=0):j>U&&(j=U),j<T&&(j=T);const re=this.subarray(T,j);return Object.setPrototypeOf(re,u.prototype),re},u.prototype.readUintLE=u.prototype.readUIntLE=function(T,j,U){T>>>=0,j>>>=0,U||V(T,j,this.length);let re=this[T],ie=1,le=0;for(;++le<j&&(ie*=256);)re+=this[T+le]*ie;return re},u.prototype.readUintBE=u.prototype.readUIntBE=function(T,j,U){T>>>=0,j>>>=0,U||V(T,j,this.length);let re=this[T+--j],ie=1;for(;j>0&&(ie*=256);)re+=this[T+--j]*ie;return re},u.prototype.readUint8=u.prototype.readUInt8=function(T,j){return T>>>=0,j||V(T,1,this.length),this[T]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(T,j){return T>>>=0,j||V(T,2,this.length),this[T]|this[T+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(T,j){return T>>>=0,j||V(T,2,this.length),this[T]<<8|this[T+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(T,j){return T>>>=0,j||V(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+16777216*this[T+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(T,j){return T>>>=0,j||V(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},u.prototype.readBigUInt64LE=ve(function(T){F(T>>>=0,"offset");const j=this[T],U=this[T+7];j!==void 0&&U!==void 0||ue(T,this.length-8);const re=j+256*this[++T]+65536*this[++T]+this[++T]*2**24,ie=this[++T]+256*this[++T]+65536*this[++T]+U*2**24;return BigInt(re)+(BigInt(ie)<<BigInt(32))}),u.prototype.readBigUInt64BE=ve(function(T){F(T>>>=0,"offset");const j=this[T],U=this[T+7];j!==void 0&&U!==void 0||ue(T,this.length-8);const re=j*2**24+65536*this[++T]+256*this[++T]+this[++T],ie=this[++T]*2**24+65536*this[++T]+256*this[++T]+U;return(BigInt(re)<<BigInt(32))+BigInt(ie)}),u.prototype.readIntLE=function(T,j,U){T>>>=0,j>>>=0,U||V(T,j,this.length);let re=this[T],ie=1,le=0;for(;++le<j&&(ie*=256);)re+=this[T+le]*ie;return ie*=128,re>=ie&&(re-=Math.pow(2,8*j)),re},u.prototype.readIntBE=function(T,j,U){T>>>=0,j>>>=0,U||V(T,j,this.length);let re=j,ie=1,le=this[T+--re];for(;re>0&&(ie*=256);)le+=this[T+--re]*ie;return ie*=128,le>=ie&&(le-=Math.pow(2,8*j)),le},u.prototype.readInt8=function(T,j){return T>>>=0,j||V(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},u.prototype.readInt16LE=function(T,j){T>>>=0,j||V(T,2,this.length);const U=this[T]|this[T+1]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt16BE=function(T,j){T>>>=0,j||V(T,2,this.length);const U=this[T+1]|this[T]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt32LE=function(T,j){return T>>>=0,j||V(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},u.prototype.readInt32BE=function(T,j){return T>>>=0,j||V(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},u.prototype.readBigInt64LE=ve(function(T){F(T>>>=0,"offset");const j=this[T],U=this[T+7];j!==void 0&&U!==void 0||ue(T,this.length-8);const re=this[T+4]+256*this[T+5]+65536*this[T+6]+(U<<24);return(BigInt(re)<<BigInt(32))+BigInt(j+256*this[++T]+65536*this[++T]+this[++T]*2**24)}),u.prototype.readBigInt64BE=ve(function(T){F(T>>>=0,"offset");const j=this[T],U=this[T+7];j!==void 0&&U!==void 0||ue(T,this.length-8);const re=(j<<24)+65536*this[++T]+256*this[++T]+this[++T];return(BigInt(re)<<BigInt(32))+BigInt(this[++T]*2**24+65536*this[++T]+256*this[++T]+U)}),u.prototype.readFloatLE=function(T,j){return T>>>=0,j||V(T,4,this.length),i.read(this,T,!0,23,4)},u.prototype.readFloatBE=function(T,j){return T>>>=0,j||V(T,4,this.length),i.read(this,T,!1,23,4)},u.prototype.readDoubleLE=function(T,j){return T>>>=0,j||V(T,8,this.length),i.read(this,T,!0,52,8)},u.prototype.readDoubleBE=function(T,j){return T>>>=0,j||V(T,8,this.length),i.read(this,T,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(T,j,U,re){T=+T,j>>>=0,U>>>=0,!re&&G(this,T,j,U,Math.pow(2,8*U)-1,0);let ie=1,le=0;for(this[j]=255&T;++le<U&&(ie*=256);)this[j+le]=T/ie&255;return j+U},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(T,j,U,re){T=+T,j>>>=0,U>>>=0,!re&&G(this,T,j,U,Math.pow(2,8*U)-1,0);let ie=U-1,le=1;for(this[j+ie]=255&T;--ie>=0&&(le*=256);)this[j+ie]=T/le&255;return j+U},u.prototype.writeUint8=u.prototype.writeUInt8=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,1,255,0),this[j]=255&T,j+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,2,65535,0),this[j]=255&T,this[j+1]=T>>>8,j+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,2,65535,0),this[j]=T>>>8,this[j+1]=255&T,j+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,4,4294967295,0),this[j+3]=T>>>24,this[j+2]=T>>>16,this[j+1]=T>>>8,this[j]=255&T,j+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,4,4294967295,0),this[j]=T>>>24,this[j+1]=T>>>16,this[j+2]=T>>>8,this[j+3]=255&T,j+4},u.prototype.writeBigUInt64LE=ve(function(T,j=0){return Q(this,T,j,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ve(function(T,j=0){return Y(this,T,j,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(T,j,U,re){if(T=+T,j>>>=0,!re){const Je=Math.pow(2,8*U-1);G(this,T,j,U,Je-1,-Je)}let ie=0,le=1,Ie=0;for(this[j]=255&T;++ie<U&&(le*=256);)T<0&&Ie===0&&this[j+ie-1]!==0&&(Ie=1),this[j+ie]=(T/le|0)-Ie&255;return j+U},u.prototype.writeIntBE=function(T,j,U,re){if(T=+T,j>>>=0,!re){const Je=Math.pow(2,8*U-1);G(this,T,j,U,Je-1,-Je)}let ie=U-1,le=1,Ie=0;for(this[j+ie]=255&T;--ie>=0&&(le*=256);)T<0&&Ie===0&&this[j+ie+1]!==0&&(Ie=1),this[j+ie]=(T/le|0)-Ie&255;return j+U},u.prototype.writeInt8=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,1,127,-128),T<0&&(T=255+T+1),this[j]=255&T,j+1},u.prototype.writeInt16LE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,2,32767,-32768),this[j]=255&T,this[j+1]=T>>>8,j+2},u.prototype.writeInt16BE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,2,32767,-32768),this[j]=T>>>8,this[j+1]=255&T,j+2},u.prototype.writeInt32LE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,4,2147483647,-2147483648),this[j]=255&T,this[j+1]=T>>>8,this[j+2]=T>>>16,this[j+3]=T>>>24,j+4},u.prototype.writeInt32BE=function(T,j,U){return T=+T,j>>>=0,U||G(this,T,j,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[j]=T>>>24,this[j+1]=T>>>16,this[j+2]=T>>>8,this[j+3]=255&T,j+4},u.prototype.writeBigInt64LE=ve(function(T,j=0){return Q(this,T,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ve(function(T,j=0){return Y(this,T,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(T,j,U){return J(this,T,j,!0,U)},u.prototype.writeFloatBE=function(T,j,U){return J(this,T,j,!1,U)},u.prototype.writeDoubleLE=function(T,j,U){return ee(this,T,j,!0,U)},u.prototype.writeDoubleBE=function(T,j,U){return ee(this,T,j,!1,U)},u.prototype.copy=function(T,j,U,re){if(!u.isBuffer(T))throw new TypeError("argument should be a Buffer");if(U||(U=0),re||re===0||(re=this.length),j>=T.length&&(j=T.length),j||(j=0),re>0&&re<U&&(re=U),re===U||T.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),T.length-j<re-U&&(re=T.length-j+U);const ie=re-U;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,U,re):Uint8Array.prototype.set.call(T,this.subarray(U,re),j),ie},u.prototype.fill=function(T,j,U,re){if(typeof T=="string"){if(typeof j=="string"?(re=j,j=0,U=this.length):typeof U=="string"&&(re=U,U=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!u.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(T.length===1){const le=T.charCodeAt(0);(re==="utf8"&&le<128||re==="latin1")&&(T=le)}}else typeof T=="number"?T&=255:typeof T=="boolean"&&(T=Number(T));if(j<0||this.length<j||this.length<U)throw new RangeError("Out of range index");if(U<=j)return this;let ie;if(j>>>=0,U=U===void 0?this.length:U>>>0,T||(T=0),typeof T=="number")for(ie=j;ie<U;++ie)this[ie]=T;else{const le=u.isBuffer(T)?T:u.from(T,re),Ie=le.length;if(Ie===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(ie=0;ie<U-j;++ie)this[ie+j]=le[ie%Ie]}return this};const ne={};function ae($,T,j){ne[$]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}function X($){let T="",j=$.length;const U=$[0]==="-"?1:0;for(;j>=U+4;j-=3)T=`_${$.slice(j-3,j)}${T}`;return`${$.slice(0,j)}${T}`}function B($,T,j,U,re,ie){if($>j||$<T){const le=typeof T=="bigint"?"n":"";let Ie;throw Ie=T===0||T===BigInt(0)?`>= 0${le} and < 2${le} ** ${8*(ie+1)}${le}`:`>= -(2${le} ** ${8*(ie+1)-1}${le}) and < 2 ** ${8*(ie+1)-1}${le}`,new ne.ERR_OUT_OF_RANGE("value",Ie,$)}(function(Ie,Je,Qe){F(Je,"offset"),Ie[Je]!==void 0&&Ie[Je+Qe]!==void 0||ue(Je,Ie.length-(Qe+1))})(U,re,ie)}function F($,T){if(typeof $!="number")throw new ne.ERR_INVALID_ARG_TYPE(T,"number",$)}function ue($,T,j){throw Math.floor($)!==$?(F($,j),new ne.ERR_OUT_OF_RANGE("offset","an integer",$)):T<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${T}`,$)}ae("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ae("ERR_INVALID_ARG_TYPE",function($,T){return`The "${$}" argument must be of type number. Received type ${typeof T}`},TypeError),ae("ERR_OUT_OF_RANGE",function($,T,j){let U=`The value of "${$}" is out of range.`,re=j;return Number.isInteger(j)&&Math.abs(j)>2**32?re=X(String(j)):typeof j=="bigint"&&(re=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(re=X(re)),re+="n"),U+=` It must be ${T}. Received ${re}`,U},RangeError);const fe=/[^+/0-9A-Za-z-_]/g;function Ae($,T){let j;T=T||1/0;const U=$.length;let re=null;const ie=[];for(let le=0;le<U;++le){if(j=$.charCodeAt(le),j>55295&&j<57344){if(!re){if(j>56319){(T-=3)>-1&&ie.push(239,191,189);continue}if(le+1===U){(T-=3)>-1&&ie.push(239,191,189);continue}re=j;continue}if(j<56320){(T-=3)>-1&&ie.push(239,191,189),re=j;continue}j=65536+(re-55296<<10|j-56320)}else re&&(T-=3)>-1&&ie.push(239,191,189);if(re=null,j<128){if((T-=1)<0)break;ie.push(j)}else if(j<2048){if((T-=2)<0)break;ie.push(j>>6|192,63&j|128)}else if(j<65536){if((T-=3)<0)break;ie.push(j>>12|224,j>>6&63|128,63&j|128)}else{if(!(j<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;ie.push(j>>18|240,j>>12&63|128,j>>6&63|128,63&j|128)}}return ie}function Ne($){return n.toByteArray(function(j){if((j=(j=j.split("=")[0]).trim().replace(fe,"")).length<2)return"";for(;j.length%4!=0;)j+="=";return j}($))}function pe($,T,j,U){let re;for(re=0;re<U&&!(re+j>=T.length||re>=$.length);++re)T[re+j]=$[re];return re}function Oe($,T){return $ instanceof T||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===T.name}function We($){return $!=$}const he=function(){const $="0123456789abcdef",T=new Array(256);for(let j=0;j<16;++j){const U=16*j;for(let re=0;re<16;++re)T[U+re]=$[j]+$[re]}return T}();function ve($){return typeof BigInt>"u"?Se:$}function Se(){throw new Error("BigInt not supported")}},291:function(e,t,r){var n=r(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(s,a,o,u){var c=function(f,h,d){return f.highWaterMark!=null?f.highWaterMark:h?f[d]:null}(a,u,o);if(c!=null){if(!isFinite(c)||Math.floor(c)!==c||c<0)throw new n(u?o:"highWaterMark",c);return Math.floor(c)}return s.objectMode?16:16384}}},310:function(e,t,r){e.exports=i;var n=r(7).EventEmitter;function i(){n.call(this)}r(698)(i,n),i.Readable=r(412),i.Writable=r(708),i.Duplex=r(382),i.Transform=r(610),i.PassThrough=r(600),i.finished=r(238),i.pipeline=r(758),i.Stream=i,i.prototype.pipe=function(s,a){var o=this;function u(y){s.writable&&s.write(y)===!1&&o.pause&&o.pause()}function c(){o.readable&&o.resume&&o.resume()}o.on("data",u),s.on("drain",c),s._isStdio||a&&a.end===!1||(o.on("end",f),o.on("close",h));var l=!1;function f(){l||(l=!0,s.end())}function h(){l||(l=!0,typeof s.destroy=="function"&&s.destroy())}function d(y){if(g(),n.listenerCount(this,"error")===0)throw y}function g(){o.removeListener("data",u),s.removeListener("drain",c),o.removeListener("end",f),o.removeListener("close",h),o.removeListener("error",d),s.removeListener("error",d),o.removeListener("end",g),o.removeListener("close",g),s.removeListener("close",g)}return o.on("error",d),s.on("error",d),o.on("end",g),o.on("close",g),s.on("close",g),s.emit("pipe",o),s}},340:function(){},345:function(e,t,r){e.exports=r(7).EventEmitter},362:function(e){e.exports=Xz},382:function(e,t,r){var n=r(606),i=Object.keys||function(d){var g=[];for(var y in d)g.push(y);return g};e.exports=l;var s=r(412),a=r(708);r(698)(l,s);for(var o=i(a.prototype),u=0;u<o.length;u++){var c=o[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(d){if(!(this instanceof l))return new l(d);s.call(this,d),a.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(h,this)}function h(d){d.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}})},392:function(e,t,r){var n=r(861).Buffer;function i(s,a){this._block=n.alloc(s),this._finalSize=a,this._blockSize=s,this._len=0}i.prototype.update=function(s,a){typeof s=="string"&&(a=a||"utf8",s=n.from(s,a));for(var o=this._block,u=this._blockSize,c=s.length,l=this._len,f=0;f<c;){for(var h=l%u,d=Math.min(c-f,u-h),g=0;g<d;g++)o[h+g]=s[f+g];f+=d,(l+=d)%u==0&&this._update(o)}return this._len+=c,this},i.prototype.digest=function(s){var a=this._len%this._blockSize;this._block[a]=128,this._block.fill(0,a+1),a>=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var u=(4294967295&o)>>>0,c=(o-u)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var l=this._hash();return s?l.toString(s):l},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},412:function(e,t,r){var n,i=r(606);e.exports=O,O.ReadableState=R,r(7).EventEmitter;var s=function(F,ue){return F.listeners(ue).length},a=r(345),o=r(287).Buffer,u=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},c,l=r(838);c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,d,g=r(726),y=r(896),v=r(291).getHighWaterMark,E=r(48).F,b=E.ERR_INVALID_ARG_TYPE,S=E.ERR_STREAM_PUSH_AFTER_EOF,x=E.ERR_METHOD_NOT_IMPLEMENTED,_=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(O,a);var A=y.errorOrDestroy,C=["error","close","destroy","pause","resume"];function R(B,F,ue){n=n||r(382),B=B||{},typeof ue!="boolean"&&(ue=F instanceof n),this.objectMode=!!B.objectMode,ue&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=v(this,B,"readableHighWaterMark",ue),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(f||(f=r(141).I),this.decoder=new f(B.encoding),this.encoding=B.encoding)}function O(B){if(n=n||r(382),!(this instanceof O))return new O(B);var F=this instanceof n;this._readableState=new R(B,this,F),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),a.call(this)}function M(B,F,ue,fe,Ae){c("readableAddChunk",F);var Ne,pe=B._readableState;if(F===null)pe.reading=!1,function(We,he){if(c("onEofChunk"),!he.ended){if(he.decoder){var ve=he.decoder.end();ve&&ve.length&&(he.buffer.push(ve),he.length+=he.objectMode?1:ve.length)}he.ended=!0,he.sync?H(We):(he.needReadable=!1,he.emittedReadable||(he.emittedReadable=!0,Z(We)))}}(B,pe);else if(Ae||(Ne=function(We,he){var ve;return function($){return o.isBuffer($)||$ instanceof u}(he)||typeof he=="string"||he===void 0||We.objectMode||(ve=new b("chunk",["string","Buffer","Uint8Array"],he)),ve}(pe,F)),Ne)A(B,Ne);else if(pe.objectMode||F&&F.length>0)if(typeof F=="string"||pe.objectMode||Object.getPrototypeOf(F)===o.prototype||(F=function(We){return o.from(We)}(F)),fe)pe.endEmitted?A(B,new _):k(B,pe,F,!0);else if(pe.ended)A(B,new S);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!ue?(F=pe.decoder.write(F),pe.objectMode||F.length!==0?k(B,pe,F,!1):V(B,pe)):k(B,pe,F,!1)}else fe||(pe.reading=!1,V(B,pe));return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function k(B,F,ue,fe){F.flowing&&F.length===0&&!F.sync?(F.awaitDrain=0,B.emit("data",ue)):(F.length+=F.objectMode?1:ue.length,fe?F.buffer.unshift(ue):F.buffer.push(ue),F.needReadable&&H(B)),V(B,F)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(B,F){F(B)},O.prototype.push=function(B,F){var ue,fe=this._readableState;return fe.objectMode?ue=!0:typeof B=="string"&&((F=F||fe.defaultEncoding)!==fe.encoding&&(B=o.from(B,F),F=""),ue=!0),M(this,B,F,!1,ue)},O.prototype.unshift=function(B){return M(this,B,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(B){f||(f=r(141).I);var F=new f(B);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;for(var ue=this._readableState.buffer.head,fe="";ue!==null;)fe+=F.write(ue.data),ue=ue.next;return this._readableState.buffer.clear(),fe!==""&&this._readableState.buffer.push(fe),this._readableState.length=fe.length,this};var D=1073741824;function P(B,F){return B<=0||F.length===0&&F.ended?0:F.objectMode?1:B!=B?F.flowing&&F.length?F.buffer.head.data.length:F.length:(B>F.highWaterMark&&(F.highWaterMark=function(fe){return fe>=D?fe=D:(fe--,fe|=fe>>>1,fe|=fe>>>2,fe|=fe>>>4,fe|=fe>>>8,fe|=fe>>>16,fe++),fe}(B)),B<=F.length?B:F.ended?F.length:(F.needReadable=!0,0))}function H(B){var F=B._readableState;c("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,F.emittedReadable||(c("emitReadable",F.flowing),F.emittedReadable=!0,i.nextTick(Z,B))}function Z(B){var F=B._readableState;c("emitReadable_",F.destroyed,F.length,F.ended),F.destroyed||!F.length&&!F.ended||(B.emit("readable"),F.emittedReadable=!1),F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,J(B)}function V(B,F){F.readingMore||(F.readingMore=!0,i.nextTick(G,B,F))}function G(B,F){for(;!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0);){var ue=F.length;if(c("maybeReadMore read 0"),B.read(0),ue===F.length)break}F.readingMore=!1}function Q(B){var F=B._readableState;F.readableListening=B.listenerCount("readable")>0,F.resumeScheduled&&!F.paused?F.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Y(B){c("readable nexttick read 0"),B.read(0)}function L(B,F){c("resume",F.reading),F.reading||B.read(0),F.resumeScheduled=!1,B.emit("resume"),J(B),F.flowing&&!F.reading&&B.read(0)}function J(B){var F=B._readableState;for(c("flow",F.flowing);F.flowing&&B.read()!==null;);}function ee(B,F){return F.length===0?null:(F.objectMode?ue=F.buffer.shift():!B||B>=F.length?(ue=F.decoder?F.buffer.join(""):F.buffer.length===1?F.buffer.first():F.buffer.concat(F.length),F.buffer.clear()):ue=F.buffer.consume(B,F.decoder),ue);var ue}function ne(B){var F=B._readableState;c("endReadable",F.endEmitted),F.endEmitted||(F.ended=!0,i.nextTick(ae,F,B))}function ae(B,F){if(c("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,F.readable=!1,F.emit("end"),B.autoDestroy)){var ue=F._writableState;(!ue||ue.autoDestroy&&ue.finished)&&F.destroy()}}function X(B,F){for(var ue=0,fe=B.length;ue<fe;ue++)if(B[ue]===F)return ue;return-1}O.prototype.read=function(B){c("read",B),B=parseInt(B,10);var F=this._readableState,ue=B;if(B!==0&&(F.emittedReadable=!1),B===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended))return c("read: emitReadable",F.length,F.ended),F.length===0&&F.ended?ne(this):H(this),null;if((B=P(B,F))===0&&F.ended)return F.length===0&&ne(this),null;var fe,Ae=F.needReadable;return c("need readable",Ae),(F.length===0||F.length-B<F.highWaterMark)&&c("length less than watermark",Ae=!0),F.ended||F.reading?c("reading or ended",Ae=!1):Ae&&(c("do read"),F.reading=!0,F.sync=!0,F.length===0&&(F.needReadable=!0),this._read(F.highWaterMark),F.sync=!1,F.reading||(B=P(ue,F))),(fe=B>0?ee(B,F):null)===null?(F.needReadable=F.length<=F.highWaterMark,B=0):(F.length-=B,F.awaitDrain=0),F.length===0&&(F.ended||(F.needReadable=!0),ue!==B&&F.ended&&ne(this)),fe!==null&&this.emit("data",fe),fe},O.prototype._read=function(B){A(this,new x("_read()"))},O.prototype.pipe=function(B,F){var ue=this,fe=this._readableState;switch(fe.pipesCount){case 0:fe.pipes=B;break;case 1:fe.pipes=[fe.pipes,B];break;default:fe.pipes.push(B)}fe.pipesCount+=1,c("pipe count=%d opts=%j",fe.pipesCount,F);var Ae=(!F||F.end!==!1)&&B!==i.stdout&&B!==i.stderr?pe:T;function Ne(j,U){c("onunpipe"),j===ue&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,function(){c("cleanup"),B.removeListener("close",Se),B.removeListener("finish",$),B.removeListener("drain",Oe),B.removeListener("error",ve),B.removeListener("unpipe",Ne),ue.removeListener("end",pe),ue.removeListener("end",T),ue.removeListener("data",he),We=!0,!fe.awaitDrain||B._writableState&&!B._writableState.needDrain||Oe()}())}function pe(){c("onend"),B.end()}fe.endEmitted?i.nextTick(Ae):ue.once("end",Ae),B.on("unpipe",Ne);var Oe=function(U){return function(){var ie=U._readableState;c("pipeOnDrain",ie.awaitDrain),ie.awaitDrain&&ie.awaitDrain--,ie.awaitDrain===0&&s(U,"data")&&(ie.flowing=!0,J(U))}}(ue);B.on("drain",Oe);var We=!1;function he(j){c("ondata");var U=B.write(j);c("dest.write",U),U===!1&&((fe.pipesCount===1&&fe.pipes===B||fe.pipesCount>1&&X(fe.pipes,B)!==-1)&&!We&&(c("false write response, pause",fe.awaitDrain),fe.awaitDrain++),ue.pause())}function ve(j){c("onerror",j),T(),B.removeListener("error",ve),s(B,"error")===0&&A(B,j)}function Se(){B.removeListener("finish",$),T()}function $(){c("onfinish"),B.removeListener("close",Se),T()}function T(){c("unpipe"),ue.unpipe(B)}return ue.on("data",he),function(U,re,ie){if(typeof U.prependListener=="function")return U.prependListener(re,ie);U._events&&U._events[re]?Array.isArray(U._events[re])?U._events[re].unshift(ie):U._events[re]=[ie,U._events[re]]:U.on(re,ie)}(B,"error",ve),B.once("close",Se),B.once("finish",$),B.emit("pipe",ue),fe.flowing||(c("pipe resume"),ue.resume()),B},O.prototype.unpipe=function(B){var F=this._readableState,ue={hasUnpiped:!1};if(F.pipesCount===0)return this;if(F.pipesCount===1)return B&&B!==F.pipes||(B||(B=F.pipes),F.pipes=null,F.pipesCount=0,F.flowing=!1,B&&B.emit("unpipe",this,ue)),this;if(!B){var fe=F.pipes,Ae=F.pipesCount;F.pipes=null,F.pipesCount=0,F.flowing=!1;for(var Ne=0;Ne<Ae;Ne++)fe[Ne].emit("unpipe",this,{hasUnpiped:!1});return this}var pe=X(F.pipes,B);return pe===-1||(F.pipes.splice(pe,1),F.pipesCount-=1,F.pipesCount===1&&(F.pipes=F.pipes[0]),B.emit("unpipe",this,ue)),this},O.prototype.on=function(B,F){var ue=a.prototype.on.call(this,B,F),fe=this._readableState;return B==="data"?(fe.readableListening=this.listenerCount("readable")>0,fe.flowing!==!1&&this.resume()):B==="readable"&&(fe.endEmitted||fe.readableListening||(fe.readableListening=fe.needReadable=!0,fe.flowing=!1,fe.emittedReadable=!1,c("on readable",fe.length,fe.reading),fe.length?H(this):fe.reading||i.nextTick(Y,this))),ue},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(B,F){var ue=a.prototype.removeListener.call(this,B,F);return B==="readable"&&i.nextTick(Q,this),ue},O.prototype.removeAllListeners=function(B){var F=a.prototype.removeAllListeners.apply(this,arguments);return B!=="readable"&&B!==void 0||i.nextTick(Q,this),F},O.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("resume"),B.flowing=!B.readableListening,function(ue,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,i.nextTick(L,ue,fe))}(this,B)),B.paused=!1,this},O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(B){var F=this,ue=this._readableState,fe=!1;for(var Ae in B.on("end",function(){if(c("wrapped end"),ue.decoder&&!ue.ended){var pe=ue.decoder.end();pe&&pe.length&&F.push(pe)}F.push(null)}),B.on("data",function(pe){c("wrapped data"),ue.decoder&&(pe=ue.decoder.write(pe)),ue.objectMode&&pe==null||(ue.objectMode||pe&&pe.length)&&(F.push(pe)||(fe=!0,B.pause()))}),B)this[Ae]===void 0&&typeof B[Ae]=="function"&&(this[Ae]=function(Oe){return function(){return B[Oe].apply(B,arguments)}}(Ae));for(var Ne=0;Ne<C.length;Ne++)B.on(C[Ne],this.emit.bind(this,C[Ne]));return this._read=function(pe){c("wrapped _read",pe),fe&&(fe=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return h===void 0&&(h=r(955)),h(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(F){this._readableState&&(this._readableState.flowing=F)}}),O._fromList=ee,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(O.from=function(B,F){return d===void 0&&(d=r(157)),d(O,B,F)})},499:function(e){var t={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};e.exports=function(n){return n&&n.replace?n.replace(/([&"<>'])/g,function(i,s){return t[s]}):n}},600:function(e,t,r){e.exports=i;var n=r(610);function i(s){if(!(this instanceof i))return new i(s);n.call(this,s)}r(698)(i,n),i.prototype._transform=function(s,a,o){o(null,s)}},606:function(e){var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(y){if(t===setTimeout)return setTimeout(y,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(y,0);try{return t(y,0)}catch{try{return t.call(null,y,0)}catch{return t.call(this,y,0)}}}(function(){try{t=typeof setTimeout=="function"?setTimeout:i}catch{t=i}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var o,u=[],c=!1,l=-1;function f(){c&&o&&(c=!1,o.length?u=o.concat(u):l=-1,u.length&&h())}function h(){if(!c){var y=a(f);c=!0;for(var v=u.length;v;){for(o=u,u=[];++l<v;)o&&o[l].run();l=-1,v=u.length}o=null,c=!1,function(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{return r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(y)}}function d(y,v){this.fun=y,this.array=v}function g(){}n.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)v[E-1]=arguments[E];u.push(new d(y,v)),u.length!==1||c||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},610:function(e,t,r){e.exports=l;var n=r(48).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(382);function c(d,g){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit("error",new s);y.writechunk=null,y.writecb=null,g!=null&&this.push(g),v(d);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function l(d){if(!(this instanceof l))return new l(d);u.call(this,d),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",f)}function f(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush(function(g,y){h(d,g,y)})}function h(d,g,y){if(g)return d.emit("error",g);if(y!=null&&d.push(y),d._writableState.length)throw new o;if(d._transformState.transforming)throw new a;return d.push(null)}r(698)(l,u),l.prototype.push=function(d,g){return this._transformState.needTransform=!1,u.prototype.push.call(this,d,g)},l.prototype._transform=function(d,g,y){y(new i("_transform()"))},l.prototype._write=function(d,g,y){var v=this._transformState;if(v.writecb=y,v.writechunk=d,v.writeencoding=g,!v.transforming){var E=this._readableState;(v.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},l.prototype._read=function(d){var g=this._transformState;g.writechunk===null||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},l.prototype._destroy=function(d,g){u.prototype._destroy.call(this,d,function(y){g(y)})}},643:function(e,t,r){function n(i){try{if(!r.g.localStorage)return!1}catch{return!1}var s=r.g.localStorage[i];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(s,a){if(n("noDeprecation"))return s;var o=!1;return function(){if(!o){if(n("throwDeprecation"))throw new Error(a);n("traceDeprecation")?console.trace(a):console.warn(a),o=!0}return s.apply(this,arguments)}}},698:function(e){typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},708:function(e,t,r){var n,i=r(606);function s(V){var G=this;this.next=null,this.entry=null,this.finish=function(){(function(Y,L,J){var ee=Y.entry;for(Y.entry=null;ee;){var ne=ee.callback;L.pendingcb--,ne(J),ee=ee.next}L.corkedRequestsFree.next=Y})(G,V)}}e.exports=O,O.WritableState=R;var a={deprecate:r(643)},o=r(345),u=r(287).Buffer,c=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},l,f=r(896),h=r(291).getHighWaterMark,d=r(48).F,g=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,E=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,S=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,A=f.errorOrDestroy;function C(){}function R(V,G,Q){n=n||r(382),V=V||{},typeof Q!="boolean"&&(Q=G instanceof n),this.objectMode=!!V.objectMode,Q&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=h(this,V,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=V.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(L){(function(ee,ne){var ae=ee._writableState,X=ae.sync,B=ae.writecb;if(typeof B!="function")throw new v;if(function(fe){fe.writing=!1,fe.writecb=null,fe.length-=fe.writelen,fe.writelen=0}(ae),ne)(function(fe,Ae,Ne,pe,Oe){--Ae.pendingcb,Ne?(i.nextTick(Oe,pe),i.nextTick(Z,fe,Ae),fe._writableState.errorEmitted=!0,A(fe,pe)):(Oe(pe),fe._writableState.errorEmitted=!0,A(fe,pe),Z(fe,Ae))})(ee,ae,X,ne,B);else{var F=P(ae)||ee.destroyed;F||ae.corked||ae.bufferProcessing||!ae.bufferedRequest||D(ee,ae),X?i.nextTick(k,ee,ae,F,B):k(ee,ae,F,B)}})(G,L)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function O(V){var G=this instanceof(n=n||r(382));if(!G&&!l.call(O,this))return new O(V);this._writableState=new R(V,this,G),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),o.call(this)}function M(V,G,Q,Y,L,J,ee){G.writelen=Y,G.writecb=ee,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new b("write")):Q?V._writev(L,G.onwrite):V._write(L,J,G.onwrite),G.sync=!1}function k(V,G,Q,Y){Q||function(J,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,J.emit("drain"))}(V,G),G.pendingcb--,Y(),Z(V,G)}function D(V,G){G.bufferProcessing=!0;var Q=G.bufferedRequest;if(V._writev&&Q&&Q.next){var Y=G.bufferedRequestCount,L=new Array(Y),J=G.corkedRequestsFree;J.entry=Q;for(var ee=0,ne=!0;Q;)L[ee]=Q,Q.isBuf||(ne=!1),Q=Q.next,ee+=1;L.allBuffers=ne,M(V,G,!0,G.length,L,"",J.finish),G.pendingcb++,G.lastBufferedRequest=null,J.next?(G.corkedRequestsFree=J.next,J.next=null):G.corkedRequestsFree=new s(G),G.bufferedRequestCount=0}else{for(;Q;){var ae=Q.chunk,X=Q.encoding,B=Q.callback;if(M(V,G,!1,G.objectMode?1:ae.length,ae,X,B),Q=Q.next,G.bufferedRequestCount--,G.writing)break}Q===null&&(G.lastBufferedRequest=null)}G.bufferedRequest=Q,G.bufferProcessing=!1}function P(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function H(V,G){V._final(function(Q){G.pendingcb--,Q&&A(V,Q),G.prefinished=!0,V.emit("prefinish"),Z(V,G)})}function Z(V,G){var Q=P(G);if(Q&&(function(J,ee){ee.prefinished||ee.finalCalled||(typeof J._final!="function"||ee.destroyed?(ee.prefinished=!0,J.emit("prefinish")):(ee.pendingcb++,ee.finalCalled=!0,i.nextTick(H,J,ee)))}(V,G),G.pendingcb===0&&(G.finished=!0,V.emit("finish"),G.autoDestroy))){var Y=V._readableState;(!Y||Y.autoDestroy&&Y.endEmitted)&&V.destroy()}return Q}r(698)(O,o),R.prototype.getBuffer=function(){for(var G=this.bufferedRequest,Q=[];G;)Q.push(G),G=G.next;return Q},function(){try{Object.defineProperty(R.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(G){return!!l.call(this,G)||this===O&&G&&G._writableState instanceof R}})):l=function(G){return G instanceof this},O.prototype.pipe=function(){A(this,new E)},O.prototype.write=function(V,G,Q){var Y=this._writableState,L=!1,J=!Y.objectMode&&function(ne){return u.isBuffer(ne)||ne instanceof c}(V);return J&&!u.isBuffer(V)&&(V=function(ne){return u.from(ne)}(V)),typeof G=="function"&&(Q=G,G=null),J?G="buffer":G||(G=Y.defaultEncoding),typeof Q!="function"&&(Q=C),Y.ending?function(ne,ae){var X=new x;A(ne,X),i.nextTick(ae,X)}(this,Q):(J||function(ne,ae,X,B){var F;return X===null?F=new S:typeof X=="string"||ae.objectMode||(F=new g("chunk",["string","Buffer"],X)),!F||(A(ne,F),i.nextTick(B,F),!1)}(this,Y,V,Q))&&(Y.pendingcb++,L=function(ne,ae,X,B,F,ue){if(!X){var fe=function(We,he,ve){return We.objectMode||We.decodeStrings===!1||typeof he!="string"||(he=u.from(he,ve)),he}(ae,B,F);B!==fe&&(X=!0,F="buffer",B=fe)}var Ae=ae.objectMode?1:B.length;ae.length+=Ae;var Ne=ae.length<ae.highWaterMark;if(Ne||(ae.needDrain=!0),ae.writing||ae.corked){var pe=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:B,encoding:F,isBuf:X,callback:ue,next:null},pe?pe.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else M(ne,ae,!1,Ae,B,F,ue);return Ne}(this,Y,J,V,G,Q)),L},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,V.writing||V.corked||V.bufferProcessing||!V.bufferedRequest||D(this,V))},O.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new _(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(V,G,Q){Q(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(V,G,Q){var Y=this._writableState;return typeof V=="function"?(Q=V,V=null,G=null):typeof G=="function"&&(Q=G,G=null),V!=null&&this.write(V,G),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||function(J,ee,ne){ee.ending=!0,Z(J,ee),ne&&(ee.finished?i.nextTick(ne):J.once("finish",ne)),ee.ended=!0,J.writable=!1}(this,Y,Q),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(V,G){G(V)}},710:function(e,t,r){var n=r(698),i=r(107),s=r(392),a=r(861).Buffer,o=new Array(64);function u(){this.init(),this._w=o,s.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var c=a.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},e.exports=u},726:function(e,t,r){function n(h,d){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);d&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),g.push.apply(g,y)}return g}function i(h){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?n(Object(g),!0).forEach(function(y){s(h,y,g[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):n(Object(g)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(g,y))})}return h}function s(h,d,g){return(d=o(d))in h?Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h}function a(h,d){for(var g=0;g<d.length;g++){var y=d[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,o(y.key),y)}}function o(h){var d=function(y,v){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var b=E.call(y,v);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)}(h,"string");return typeof d=="symbol"?d:String(d)}var u=r(287).Buffer,c=r(340).inspect,l=c&&c.custom||"inspect";function f(h,d,g){u.prototype.copy.call(h,d,g)}e.exports=function(){function h(){(function(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")})(this,h),this.head=null,this.tail=null,this.length=0}return function(g,y,v){return y&&a(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}(h,[{key:"push",value:function(g){var y={data:g,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(g){var y={data:g,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=g+y.data;return v}},{key:"concat",value:function(g){if(this.length===0)return u.alloc(0);for(var y=u.allocUnsafe(g>>>0),v=this.head,E=0;v;)f(v.data,y,E),E+=v.data.length,v=v.next;return y}},{key:"consume",value:function(g,y){var v;return g<this.head.data.length?(v=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):v=g===this.head.data.length?this.shift():y?this._getString(g):this._getBuffer(g),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var y=this.head,v=1,E=y.data;for(g-=E.length;y=y.next;){var b=y.data,S=g>b.length?b.length:g;if(S===b.length?E+=b:E+=b.slice(0,g),(g-=S)===0){S===b.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=b.slice(S));break}++v}return this.length-=v,E}},{key:"_getBuffer",value:function(g){var y=u.allocUnsafe(g),v=this.head,E=1;for(v.data.copy(y),g-=v.data.length;v=v.next;){var b=v.data,S=g>b.length?b.length:g;if(b.copy(y,y.length-g,0,S),(g-=S)===0){S===b.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(S));break}++E}return this.length-=E,y}},{key:l,value:function(g,y){return c(this,i(i({},y),{},{depth:0,customInspect:!1}))}}]),h}()},737:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function c(h){return h<<5|h>>>27}function l(h){return h<<30|h>>>2}function f(h,d,g,y){return h===0?d&g|~d&y:h===2?d&g|d&y|g&y:d^g^y}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(h){for(var d,g=this._w,y=0|this._a,v=0|this._b,E=0|this._c,b=0|this._d,S=0|this._e,x=0;x<16;++x)g[x]=h.readInt32BE(4*x);for(;x<80;++x)g[x]=(d=g[x-3]^g[x-8]^g[x-14]^g[x-16])<<1|d>>>31;for(var _=0;_<80;++_){var A=~~(_/20),C=c(y)+f(A,v,E,b)+S+g[_]+a[A]|0;S=b,b=E,E=l(v),v=y,y=C}this._a=y+this._a|0,this._b=v+this._b|0,this._c=E+this._c|0,this._d=b+this._d|0,this._e=S+this._e|0},u.prototype._hash=function(){var h=s.allocUnsafe(20);return h.writeInt32BE(0|this._a,0),h.writeInt32BE(0|this._b,4),h.writeInt32BE(0|this._c,8),h.writeInt32BE(0|this._d,12),h.writeInt32BE(0|this._e,16),h},e.exports=u},758:function(e,t,r){var n,i=r(48).F,s=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function o(l){if(l)throw l}function u(l){l()}function c(l,f){return l.pipe(f)}e.exports=function(){for(var f=arguments.length,h=new Array(f),d=0;d<f;d++)h[d]=arguments[d];var g,y=function(b){return b.length?typeof b[b.length-1]!="function"?o:b.pop():o}(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new s("streams");var v=h.map(function(E,b){var S=b<h.length-1;return function(_,A,C,R){R=function(D){var P=!1;return function(){P||(P=!0,D.apply(void 0,arguments))}}(R);var O=!1;_.on("close",function(){O=!0}),n===void 0&&(n=r(238)),n(_,{readable:A,writable:C},function(k){if(k)return R(k);O=!0,R()});var M=!1;return function(k){if(!O&&!M)return M=!0,function(P){return P.setHeader&&typeof P.abort=="function"}(_)?_.abort():typeof _.destroy=="function"?_.destroy():void R(k||new a("pipe"))}}(E,S,b>0,function(x){g||(g=x),x&&v.forEach(u),S||(v.forEach(u),y(g))})});return h.reduce(c)}},802:function(e,t,r){var n=e.exports=function(s){s=s.toLowerCase();var a=n[s];if(!a)throw new Error(s+" is not supported (we accept pull requests)");return new a};n.sha=r(816),n.sha1=r(737),n.sha224=r(710),n.sha256=r(107),n.sha384=r(827),n.sha512=r(890)},816:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function c(f){return f<<30|f>>>2}function l(f,h,d,g){return f===0?h&d|~h&g:f===2?h&d|h&g|d&g:h^d^g}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(f){for(var h,d=this._w,g=0|this._a,y=0|this._b,v=0|this._c,E=0|this._d,b=0|this._e,S=0;S<16;++S)d[S]=f.readInt32BE(4*S);for(;S<80;++S)d[S]=d[S-3]^d[S-8]^d[S-14]^d[S-16];for(var x=0;x<80;++x){var _=~~(x/20),A=0|((h=g)<<5|h>>>27)+l(_,y,v,E)+b+d[x]+a[_];b=E,E=v,v=c(y),y=g,g=A}this._a=g+this._a|0,this._b=y+this._b|0,this._c=v+this._c|0,this._d=E+this._d|0,this._e=b+this._e|0},u.prototype._hash=function(){var f=s.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},e.exports=u},827:function(e,t,r){var n=r(698),i=r(890),s=r(392),a=r(861).Buffer,o=new Array(160);function u(){this.init(),this._w=o,s.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var c=a.allocUnsafe(48);function l(f,h,d){c.writeInt32BE(f,d),c.writeInt32BE(h,d+4)}return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),c},e.exports=u},838:function(){},861:function(e,t,r){var n=r(287),i=n.Buffer;function s(o,u){for(var c in o)u[c]=o[c]}function a(o,u,c){return i(o,u,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),s(i,a),a.from=function(o,u,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,u,c)},a.alloc=function(o,u,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var l=i(o);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},890:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function u(){this.init(),this._w=o,i.call(this,128,112)}function c(b,S,x){return x^b&(S^x)}function l(b,S,x){return b&S|x&(b|S)}function f(b,S){return(b>>>28|S<<4)^(S>>>2|b<<30)^(S>>>7|b<<25)}function h(b,S){return(b>>>14|S<<18)^(b>>>18|S<<14)^(S>>>9|b<<23)}function d(b,S){return(b>>>1|S<<31)^(b>>>8|S<<24)^b>>>7}function g(b,S){return(b>>>1|S<<31)^(b>>>8|S<<24)^(b>>>7|S<<25)}function y(b,S){return(b>>>19|S<<13)^(S>>>29|b<<3)^b>>>6}function v(b,S){return(b>>>19|S<<13)^(S>>>29|b<<3)^(b>>>6|S<<26)}function E(b,S){return b>>>0<S>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(b){for(var S=this._w,x=0|this._ah,_=0|this._bh,A=0|this._ch,C=0|this._dh,R=0|this._eh,O=0|this._fh,M=0|this._gh,k=0|this._hh,D=0|this._al,P=0|this._bl,H=0|this._cl,Z=0|this._dl,V=0|this._el,G=0|this._fl,Q=0|this._gl,Y=0|this._hl,L=0;L<32;L+=2)S[L]=b.readInt32BE(4*L),S[L+1]=b.readInt32BE(4*L+4);for(;L<160;L+=2){var J=S[L-30],ee=S[L-30+1],ne=d(J,ee),ae=g(ee,J),X=y(J=S[L-4],ee=S[L-4+1]),B=v(ee,J),F=S[L-14],ue=S[L-14+1],fe=S[L-32],Ae=S[L-32+1],Ne=ae+ue|0,pe=ne+F+E(Ne,ae)|0;pe=(pe=pe+X+E(Ne=Ne+B|0,B)|0)+fe+E(Ne=Ne+Ae|0,Ae)|0,S[L]=pe,S[L+1]=Ne}for(var Oe=0;Oe<160;Oe+=2){pe=S[Oe],Ne=S[Oe+1];var We=l(x,_,A),he=l(D,P,H),ve=f(x,D),Se=f(D,x),$=h(R,V),T=h(V,R),j=a[Oe],U=a[Oe+1],re=c(R,O,M),ie=c(V,G,Q),le=Y+T|0,Ie=k+$+E(le,Y)|0;Ie=(Ie=(Ie=Ie+re+E(le=le+ie|0,ie)|0)+j+E(le=le+U|0,U)|0)+pe+E(le=le+Ne|0,Ne)|0;var Je=Se+he|0,Qe=ve+We+E(Je,Se)|0;k=M,Y=Q,M=O,Q=G,O=R,G=V,R=C+Ie+E(V=Z+le|0,Z)|0,C=A,Z=H,A=_,H=P,_=x,P=D,x=Ie+Qe+E(D=le+Je|0,le)|0}this._al=this._al+D|0,this._bl=this._bl+P|0,this._cl=this._cl+H|0,this._dl=this._dl+Z|0,this._el=this._el+V|0,this._fl=this._fl+G|0,this._gl=this._gl+Q|0,this._hl=this._hl+Y|0,this._ah=this._ah+x+E(this._al,D)|0,this._bh=this._bh+_+E(this._bl,P)|0,this._ch=this._ch+A+E(this._cl,H)|0,this._dh=this._dh+C+E(this._dl,Z)|0,this._eh=this._eh+R+E(this._el,V)|0,this._fh=this._fh+O+E(this._fl,G)|0,this._gh=this._gh+M+E(this._gl,Q)|0,this._hh=this._hh+k+E(this._hl,Y)|0},u.prototype._hash=function(){var b=s.allocUnsafe(64);function S(x,_,A){b.writeInt32BE(x,A),b.writeInt32BE(_,A+4)}return S(this._ah,this._al,0),S(this._bh,this._bl,8),S(this._ch,this._cl,16),S(this._dh,this._dl,24),S(this._eh,this._el,32),S(this._fh,this._fl,40),S(this._gh,this._gl,48),S(this._hh,this._hl,56),b},e.exports=u},896:function(e,t,r){var n=r(606);function i(o,u){a(o,u),s(o)}function s(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(o,u){o.emit("error",u)}e.exports={destroy:function(u,c){var l=this,f=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return f||h?(c?c(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,u)):n.nextTick(a,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(d){!c&&d?l._writableState?l._writableState.errorEmitted?n.nextTick(s,l):(l._writableState.errorEmitted=!0,n.nextTick(i,l,d)):n.nextTick(i,l,d):c?(n.nextTick(s,l),c(d)):n.nextTick(s,l)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(u,c){var l=u._readableState,f=u._writableState;l&&l.autoDestroy||f&&f.autoDestroy?u.destroy(c):u.emit("error",c)}}},919:function(e,t,r){var n=r(287).Buffer;function i(c){return c instanceof n||c instanceof Date||c instanceof RegExp}function s(c){if(c instanceof n){var l=n.alloc?n.alloc(c.length):new n(c.length);return c.copy(l),l}if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp)return new RegExp(c);throw new Error("Unexpected situation")}function a(c){var l=[];return c.forEach(function(f,h){typeof f=="object"&&f!==null?Array.isArray(f)?l[h]=a(f):i(f)?l[h]=s(f):l[h]=u({},f):l[h]=f}),l}function o(c,l){return l==="__proto__"?void 0:c[l]}var u=e.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var c,l,f=arguments[0];return Array.prototype.slice.call(arguments,1).forEach(function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach(function(d){return l=o(f,d),(c=o(h,d))===f?void 0:typeof c!="object"||c===null?void(f[d]=c):Array.isArray(c)?void(f[d]=a(c)):i(c)?void(f[d]=s(c)):typeof l!="object"||l===null||Array.isArray(l)?void(f[d]=u({},c)):void(f[d]=u(l,c))})}),f}},955:function(e,t,r){var n,i=r(606);function s(S,x,_){return(x=function(C){var R=function(M,k){if(typeof M!="object"||M===null)return M;var D=M[Symbol.toPrimitive];if(D!==void 0){var P=D.call(M,k);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(M)}(C,"string");return typeof R=="symbol"?R:String(R)}(x))in S?Object.defineProperty(S,x,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[x]=_,S}var a=r(238),o=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function g(S,x){return{value:S,done:x}}function y(S){var x=S[o];if(x!==null){var _=S[d].read();_!==null&&(S[f]=null,S[o]=null,S[u]=null,x(g(_,!1)))}}function v(S){i.nextTick(y,S)}var E=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((s(n={get stream(){return this[d]},next:function(){var x=this,_=this[c];if(_!==null)return Promise.reject(_);if(this[l])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise(function(O,M){i.nextTick(function(){x[c]?M(x[c]):O(g(void 0,!0))})});var A,C=this[f];if(C)A=new Promise(function(M,k){return function(D,P){M.then(function(){k[l]?D(g(void 0,!0)):k[h](D,P)},P)}}(C,this));else{var R=this[d].read();if(R!==null)return Promise.resolve(g(R,!1));A=new Promise(this[h])}return this[f]=A,A}},Symbol.asyncIterator,function(){return this}),s(n,"return",function(){var x=this;return new Promise(function(_,A){x[d].destroy(null,function(C){C?A(C):_(g(void 0,!0))})})}),n),E);e.exports=function(x){var _,A=Object.create(b,(s(_={},d,{value:x,writable:!0}),s(_,o,{value:null,writable:!0}),s(_,u,{value:null,writable:!0}),s(_,c,{value:null,writable:!0}),s(_,l,{value:x._readableState.endEmitted,writable:!0}),s(_,h,{value:function(R,O){var M=A[d].read();M?(A[f]=null,A[o]=null,A[u]=null,R(g(M,!1))):(A[o]=R,A[u]=O)},writable:!0}),_));return A[f]=null,a(x,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var R=A[u];return R!==null&&(A[f]=null,A[o]=null,A[u]=null,R(C)),void(A[c]=C)}var O=A[o];O!==null&&(A[f]=null,A[o]=null,A[u]=null,O(g(void 0,!0))),A[l]=!0}),x.on("readable",v.bind(null,A)),A}},987:function(e){e.exports=eW}},x3={};function me(e){var t=x3[e];if(t!==void 0)return t.exports;var r=x3[e]={exports:{}};return sve[e](r,r.exports,me),r.exports}me.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return me.d(t,{a:t}),t},me.d=function(e,t){for(var r in t)me.o(t,r)&&!me.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},me.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),me.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},me.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u5={};me.d(u5,{A:function(){return CAe}});var Kx={};me.r(Kx),me.d(Kx,{CLEAR:function(){return CC},CLEAR_BY:function(){return RC},NEW_AUTH_ERR:function(){return OC},NEW_SPEC_ERR:function(){return xC},NEW_SPEC_ERR_BATCH:function(){return AC},NEW_THROWN_ERR:function(){return Am},NEW_THROWN_ERR_BATCH:function(){return wC},clear:function(){return hve},clearBy:function(){return mve},newAuthErr:function(){return dve},newSpecErr:function(){return fve},newSpecErrBatch:function(){return pve},newThrownErr:function(){return cve},newThrownErrBatch:function(){return lve}});var Hx={};me.r(Hx),me.d(Hx,{AUTHORIZE:function(){return jC},AUTHORIZE_OAUTH2:function(){return PC},CONFIGURE_AUTH:function(){return NC},LOGOUT:function(){return kC},RESTORE_AUTHORIZATION:function(){return MC},SHOW_AUTH_POPUP:function(){return IC},authPopup:function(){return Uve},authorize:function(){return Cve},authorizeAccessCodeWithBasicAuthentication:function(){return qve},authorizeAccessCodeWithFormParams:function(){return Dve},authorizeApplication:function(){return Mve},authorizeOauth2:function(){return kve},authorizeOauth2WithPersistOption:function(){return Pve},authorizePassword:function(){return Nve},authorizeRequest:function(){return $ve},authorizeWithPersistOption:function(){return Rve},configureAuth:function(){return Fve},logout:function(){return Tve},logoutWithPersistOption:function(){return Ive},persistAuthorizationIfNeeded:function(){return Bve},preAuthorizeImplicit:function(){return jve},restoreAuthorization:function(){return Lve},showDefinitions:function(){return Ove}});var Gx={};me.r(Gx),me.d(Gx,{authorized:function(){return Gve},definitionsForRequirements:function(){return Hve},definitionsToAuthorize:function(){return Wve},getConfigs:function(){return Xve},getDefinitionsByNames:function(){return Kve},isAuthorized:function(){return Yve},selectAuthPath:function(){return Jve},shownDefinitions:function(){return zve}});var Yx={};me.r(Yx),me.d(Yx,{TOGGLE_CONFIGS:function(){return $C},UPDATE_CONFIGS:function(){return qC},downloadConfig:function(){return c0e},getConfigByUrl:function(){return l0e},loaded:function(){return u0e},toggle:function(){return o0e},update:function(){return a0e}});var Xx={};me.r(Xx),me.d(Xx,{get:function(){return f0e}});var Zx={};me.r(Zx),me.d(Zx,{transform:function(){return v0e}});var Qx={};me.r(Qx),me.d(Qx,{transform:function(){return b0e}});var eA={};me.r(eA),me.d(eA,{allErrors:function(){return _5},lastError:function(){return E0e}});var tA={};me.r(tA),me.d(tA,{SHOW:function(){return UC},UPDATE_FILTER:function(){return LC},UPDATE_LAYOUT:function(){return FC},UPDATE_MODE:function(){return BC},changeMode:function(){return P0e},show:function(){return k0e},updateFilter:function(){return j0e},updateLayout:function(){return I0e}});var rA={};me.r(rA),me.d(rA,{current:function(){return M0e},currentFilter:function(){return D0e},isShown:function(){return x5},showSummary:function(){return $0e},whatMode:function(){return q0e}});var nA={};me.r(nA),me.d(nA,{taggedOperations:function(){return F0e}});var iA={};me.r(iA),me.d(iA,{getActiveLanguage:function(){return J0e},getDefaultExpanded:function(){return K0e},getGenerators:function(){return T5},getSnippetGenerators:function(){return W0e}});var sA={};me.r(sA),me.d(sA,{JsonSchemaArrayItemFile:function(){return JC},JsonSchemaArrayItemText:function(){return WC},JsonSchemaForm:function(){return N5},JsonSchema_array:function(){return D5},JsonSchema_boolean:function(){return q5},JsonSchema_object:function(){return $5},JsonSchema_string:function(){return M5}});var aA={};me.r(aA),me.d(aA,{allowTryItOutFor:function(){return Jbe},basePath:function(){return Fbe},canExecuteScheme:function(){return e_e},consumes:function(){return Z5},consumesOptionsFor:function(){return Qbe},contentTypeValues:function(){return Xbe},currentProducesFor:function(){return c7},definitions:function(){return $be},externalDocs:function(){return kbe},findDefinition:function(){return qbe},getOAS3RequiredRequestBodyContentType:function(){return r_e},getParameter:function(){return Hbe},hasHost:function(){return Gbe},host:function(){return Lbe},info:function(){return H5},isMediaTypeSchemaPropertiesEqual:function(){return n_e},isOAS3:function(){return jbe},lastError:function(){return xbe},mutatedRequestFor:function(){return Wbe},mutatedRequests:function(){return s7},operationScheme:function(){return l7},operationWithMeta:function(){return o7},operations:function(){return X5},operationsWithRootInherited:function(){return e7},operationsWithTags:function(){return r7},parameterInclusionSettingFor:function(){return a7},parameterValues:function(){return u7},parameterWithMeta:function(){return Kbe},parameterWithMetaByIdentity:function(){return GC},parametersIncludeIn:function(){return Ybe},parametersIncludeType:function(){return xA},paths:function(){return Y5},produces:function(){return Q5},producesOptionsFor:function(){return Zbe},requestFor:function(){return zbe},requests:function(){return i7},responseFor:function(){return Vbe},responses:function(){return n7},schemes:function(){return Bbe},security:function(){return Mbe},securityDefinitions:function(){return Dbe},semver:function(){return Pbe},spec:function(){return Dn},specJS:function(){return Rbe},specJson:function(){return KC},specJsonWithResolvedSubtrees:function(){return Bi},specResolved:function(){return Tbe},specResolvedSubtree:function(){return Ibe},specSource:function(){return Cbe},specStr:function(){return Obe},tagDetails:function(){return t7},taggedOperations:function(){return Ube},tags:function(){return HC},url:function(){return Abe},validOperationMethods:function(){return Nbe},validateBeforeExecute:function(){return t_e},validationErrors:function(){return f7},version:function(){return G5}});var oA={};me.r(oA),me.d(oA,{CLEAR_REQUEST:function(){return sR},CLEAR_RESPONSE:function(){return iR},CLEAR_VALIDATE_PARAMS:function(){return aR},LOG_REQUEST:function(){return h7},SET_MUTATED_REQUEST:function(){return nR},SET_REQUEST:function(){return rR},SET_RESPONSE:function(){return tR},SET_SCHEME:function(){return uR},UPDATE_EMPTY_PARAM_INCLUSION:function(){return QC},UPDATE_JSON:function(){return ZC},UPDATE_OPERATION_META_VALUE:function(){return jm},UPDATE_PARAM:function(){return Im},UPDATE_RESOLVED:function(){return oR},UPDATE_RESOLVED_SUBTREE:function(){return km},UPDATE_SPEC:function(){return YC},UPDATE_URL:function(){return XC},VALIDATE_PARAMS:function(){return eR},changeConsumesValue:function(){return w_e},changeParam:function(){return g_e},changeParamByIdentity:function(){return y_e},changeProducesValue:function(){return x_e},clearRequest:function(){return k_e},clearResponse:function(){return j_e},clearValidateParams:function(){return S_e},execute:function(){return I_e},executeRequest:function(){return T_e},invalidateResolvedSubtreeCache:function(){return b_e},logRequest:function(){return R_e},parseToJson:function(){return p_e},requestResolvedSubtree:function(){return m_e},resolveSpec:function(){return d_e},setMutatedRequest:function(){return C_e},setRequest:function(){return O_e},setResponse:function(){return A_e},setScheme:function(){return P_e},updateEmptyParamInclusion:function(){return E_e},updateJsonSpec:function(){return f_e},updateResolved:function(){return c_e},updateResolvedSubtree:function(){return v_e},updateSpec:function(){return u_e},updateUrl:function(){return l_e},validateParams:function(){return __e}});var uA={};me.r(uA),me.d(uA,{executeRequest:function(){return q_e},updateJsonSpec:function(){return D_e},updateSpec:function(){return M_e},validateParams:function(){return $_e}});var cA={};me.r(cA),me.d(cA,{Button:function(){return z7},Col:function(){return nSe},Collapse:function(){return K7},Container:function(){return rSe},Input:function(){return aSe},Link:function(){return J7},Row:function(){return iSe},Select:function(){return W7},TextArea:function(){return sSe}});var lA={};me.r(lA),me.d(lA,{basePath:function(){return BSe},consumes:function(){return USe},definitions:function(){return DSe},findDefinition:function(){return MSe},hasHost:function(){return qSe},host:function(){return LSe},produces:function(){return VSe},schemes:function(){return zSe},securityDefinitions:function(){return $Se},validOperationMethods:function(){return FSe}});var fA={};me.r(fA),me.d(fA,{definitionsToAuthorize:function(){return WSe}});var pA={};me.r(pA),me.d(pA,{callbacksOperations:function(){return ZSe},findSchema:function(){return XSe},isOAS3:function(){return GSe},isOAS30:function(){return HSe},isSwagger2:function(){return KSe},servers:function(){return YSe}});var dA={};me.r(dA),me.d(dA,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Nm},CLEAR_REQUEST_BODY_VALUE:function(){return bR},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return vR},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return hR},UPDATE_REQUEST_BODY_INCLUSION:function(){return dR},UPDATE_REQUEST_BODY_VALUE:function(){return fR},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return pR},UPDATE_REQUEST_CONTENT_TYPE:function(){return mR},UPDATE_RESPONSE_CONTENT_TYPE:function(){return gR},UPDATE_SELECTED_SERVER:function(){return lR},UPDATE_SERVER_VARIABLE_VALUE:function(){return yR},clearRequestBodyValidateError:function(){return A1e},clearRequestBodyValue:function(){return C1e},initRequestBodyValidateError:function(){return O1e},setActiveExamplesMember:function(){return _1e},setRequestBodyInclusion:function(){return b1e},setRequestBodyValidateError:function(){return x1e},setRequestBodyValue:function(){return y1e},setRequestContentType:function(){return E1e},setResponseContentType:function(){return S1e},setRetainRequestBodyValueFlag:function(){return v1e},setSelectedServer:function(){return g1e},setServerVariableValue:function(){return w1e}});var hA={};me.r(hA),me.d(hA,{activeExamplesMember:function(){return D1e},hasUserEditedBody:function(){return P1e},requestBodyErrors:function(){return M1e},requestBodyInclusionSetting:function(){return N1e},requestBodyValue:function(){return I1e},requestContentType:function(){return q1e},responseContentType:function(){return $1e},selectDefaultRequestBodyValue:function(){return k1e},selectedServer:function(){return T1e},serverEffectiveValue:function(){return B1e},serverVariableValue:function(){return F1e},serverVariables:function(){return L1e},shouldRetainRequestBodyValue:function(){return j1e},validOperationMethods:function(){return z1e},validateBeforeExecute:function(){return U1e},validateShallowRequired:function(){return V1e}});var p=function(e){var t={};return me.d(t,e),t}({Component:function(){return ot.Component},PureComponent:function(){return ot.PureComponent},createContext:function(){return ot.createContext},createElement:function(){return ot.createElement},default:function(){return ot.default},forwardRef:function(){return ot.forwardRef},useCallback:function(){return ot.useCallback},useContext:function(){return ot.useContext},useEffect:function(){return ot.useEffect},useMemo:function(){return ot.useMemo},useRef:function(){return ot.useRef},useState:function(){return ot.useState}}),cc=function(e){var t={};return me.d(t,e),t}({applyMiddleware:function(){return cW},bindActionCreators:function(){return uW},compose:function(){return xL},createStore:function(){return wL}}),W=function(e){var t={};return me.d(t,e),t}({List:function(){return Na.List},Map:function(){return Na.Map},OrderedMap:function(){return Na.OrderedMap},Seq:function(){return Na.Seq},Set:function(){return Na.Set},default:function(){return fW},fromJS:function(){return Na.fromJS}}),ave=me(919),Uc=me.n(ave),ove=function(e){var t={};return me.d(t,e),t}({combineReducers:function(){return yW.combineReducers}}),c5=function(e){var t={};return me.d(t,e),t}({serializeError:function(){return bW.serializeError}}),uve=function(e){var t={};return me.d(t,e),t}({default:function(){return lJ}});const Am="err_new_thrown_err",wC="err_new_thrown_err_batch",xC="err_new_spec_err",AC="err_new_spec_err_batch",OC="err_new_auth_err",CC="err_clear",RC="err_clear_by";function cve(e){return{type:Am,payload:(0,c5.serializeError)(e)}}function lve(e){return{type:wC,payload:e}}function fve(e){return{type:xC,payload:e}}function pve(e){return{type:AC,payload:e}}function dve(e){return{type:OC,payload:e}}function hve(e={}){return{type:CC,payload:e}}function mve(e=()=>!0){return{type:RC,payload:e}}var Zt=function(){var t={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return t;try{t=window;for(var r of["File","Blob","FormData"])r in window&&(t[r]=window[r])}catch(n){console.error(n)}return t}(),lc=(function(e){var t={};me.d(t,e)}({}),function(e){var t={};me.d(t,e)}({}),function(e){var t={};return me.d(t,e),t}({default:function(){return RJ}})),gve=function(e){var t={};return me.d(t,e),t}({default:function(){return aK}}),l5=function(e){var t={};return me.d(t,e),t}({default:function(){return pK}}),yve=function(e){var t={};return me.d(t,e),t}({default:function(){return hK}}),A3=function(e){var t={};return me.d(t,e),t}({default:function(){return gK}}),vve=function(e){var t={};return me.d(t,e),t}({default:function(){return _K}}),bve=me(209),Vo=me.n(bve),_ve=me(802),Eve=me.n(_ve);const Sve=W.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function xp(e,{isOAS3:t}={}){if(!W.default.Map.isMap(e))return{schema:W.default.Map(),parameterContentMediaType:null};if(!t)return e.get("in")==="body"?{schema:e.get("schema",W.default.Map()),parameterContentMediaType:null}:{schema:e.filter((r,n)=>Sve.includes(n)),parameterContentMediaType:null};if(e.get("content")){const r=e.get("content",W.default.Map({})).keySeq().first();return{schema:e.getIn(["content",r,"schema"],W.default.Map()),parameterContentMediaType:r}}return{schema:e.get("schema")?e.get("schema",W.default.Map()):W.default.Map(),parameterContentMediaType:null}}var O3=me(287).Buffer;const C3="default",yf=e=>W.default.Iterable.isIterable(e),Wn=e=>yf(e)?e.toJS():e;function $a(e){return Zi(e)?Wn(e):{}}function Xi(e){if(yf(e)||e instanceof Zt.File||!Zi(e))return e;if(Array.isArray(e))return W.default.Seq(e).map(Xi).toList();if((0,A3.default)(e.entries)){const t=function(n){if(!(0,A3.default)(n.entries))return n;const i={},s="_**[]",a={};for(let o of n.entries())i[o[0]]||a[o[0]]&&a[o[0]].containsMultiple?(a[o[0]]||(a[o[0]]={containsMultiple:!0,length:1},i[`${o[0]}${s}${a[o[0]].length}`]=i[o[0]],delete i[o[0]]),a[o[0]].length+=1,i[`${o[0]}${s}${a[o[0]].length}`]=o[1]):i[o[0]]=o[1];return i}(e);return W.default.OrderedMap(t).map(Xi)}return W.default.OrderedMap(e).map(Xi)}function _o(e){return Array.isArray(e)?e:[e]}function tw(e){return typeof e=="function"}function Zi(e){return!!e&&typeof e=="object"}function js(e){return typeof e=="function"}function ad(e){return Array.isArray(e)}const wve=lc.default;function Oi(e,t){return Object.keys(e).reduce((r,n)=>(r[n]=t(e[n],n),r),{})}function R3(e,t){return Object.keys(e).reduce((r,n)=>{let i=t(e[n],n);return i&&typeof i=="object"&&Object.assign(r,i),r},{})}function xve(e){return({dispatch:t,getState:r})=>n=>i=>typeof i=="function"?i(e()):n(i)}function mA(e,t,r,n,i){if(!t)return[];let s=[],a=t.get("nullable"),o=t.get("required"),u=t.get("maximum"),c=t.get("minimum"),l=t.get("type"),f=t.get("format"),h=t.get("maxLength"),d=t.get("minLength"),g=t.get("uniqueItems"),y=t.get("maxItems"),v=t.get("minItems"),E=t.get("pattern");const b=r||o===!0,S=e!=null,x=b||S&&l==="array"||!(!b&&!S),_=a&&e===null;if(b&&!S&&!_&&!n&&!l)return s.push("Required field is not provided"),s;if(_||!l||!x)return[];let A=l==="string"&&e,C=l==="array"&&Array.isArray(e)&&e.length,R=l==="array"&&W.default.List.isList(e)&&e.count();const O=[A,C,R,l==="array"&&typeof e=="string"&&e,l==="file"&&e instanceof Zt.File,l==="boolean"&&(e||e===!1),l==="number"&&(e||e===0),l==="integer"&&(e||e===0),l==="object"&&typeof e=="object"&&e!==null,l==="object"&&typeof e=="string"&&e].some(M=>!!M);if(b&&!O&&!n)return s.push("Required field is not provided"),s;if(l==="object"&&(i===null||i==="application/json")){let M=e;if(typeof e=="string")try{M=JSON.parse(e)}catch{return s.push("Parameter string value must be valid JSON"),s}t&&t.has("required")&&js(o.isList)&&o.isList()&&o.forEach(k=>{M[k]===void 0&&s.push({propKey:k,error:"Required property not found"})}),t&&t.has("properties")&&t.get("properties").forEach((k,D)=>{const P=mA(M[D],k,!1,n,i);s.push(...P.map(H=>({propKey:D,error:H})))})}if(E){let M=((k,D)=>{if(!new RegExp(D).test(k))return"Value must follow pattern "+D})(e,E);M&&s.push(M)}if(v&&l==="array"){let M=((k,D)=>{if(!k&&D>=1||k&&k.length<D)return`Array must contain at least ${D} item${D===1?"":"s"}`})(e,v);M&&s.push(M)}if(y&&l==="array"){let M=((k,D)=>{if(k&&k.length>D)return`Array must not contain more then ${D} item${D===1?"":"s"}`})(e,y);M&&s.push({needRemove:!0,error:M})}if(g&&l==="array"){let M=((k,D)=>{if(k&&(D==="true"||D===!0)){const P=(0,W.fromJS)(k),H=P.toSet();if(k.length>H.size){let Z=(0,W.Set)();if(P.forEach((V,G)=>{P.filter(Q=>js(Q.equals)?Q.equals(V):Q===V).size>1&&(Z=Z.add(G))}),Z.size!==0)return Z.map(V=>({index:V,error:"No duplicates allowed."})).toArray()}}})(e,g);M&&s.push(...M)}if(h||h===0){let M=((k,D)=>{if(k.length>D)return`Value must be no longer than ${D} character${D!==1?"s":""}`})(e,h);M&&s.push(M)}if(d){let M=((k,D)=>{if(k.length<D)return`Value must be at least ${D} character${D!==1?"s":""}`})(e,d);M&&s.push(M)}if(u||u===0){let M=((k,D)=>{if(k>D)return`Value must be less than or equal to ${D}`})(e,u);M&&s.push(M)}if(c||c===0){let M=((k,D)=>{if(k<D)return`Value must be greater than or equal to ${D}`})(e,c);M&&s.push(M)}if(l==="string"){let M;if(M=f==="date-time"?(k=>{if(isNaN(Date.parse(k)))return"Value must be a DateTime"})(e):f==="uuid"?(k=>{if(k=k.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(k))return"Value must be a Guid"})(e):(k=>{if(k&&typeof k!="string")return"Value must be a string"})(e),!M)return s;s.push(M)}else if(l==="boolean"){let M=(k=>{if(k!=="true"&&k!=="false"&&k!==!0&&k!==!1)return"Value must be a boolean"})(e);if(!M)return s;s.push(M)}else if(l==="number"){let M=(k=>{if(!/^-?\d+(\.?\d+)?$/.test(k))return"Value must be a number"})(e);if(!M)return s;s.push(M)}else if(l==="integer"){let M=(k=>{if(!/^-?\d+$/.test(k))return"Value must be an integer"})(e);if(!M)return s;s.push(M)}else if(l==="array"){if(!C&&!R)return s;e&&e.forEach((M,k)=>{const D=mA(M,t.get("items"),!1,n,i);s.push(...D.map(P=>({index:k,error:P})))})}else if(l==="file"){let M=(k=>{if(k&&!(k instanceof Zt.File))return"Value must be a file"})(e);if(!M)return s;s.push(M)}return s}const vf=e=>{let t;return t=e instanceof O3?e:O3.from(e.toString(),"utf-8"),t.toString("base64")},T3={operationsSorter:{alpha:(e,t)=>e.get("path").localeCompare(t.get("path")),method:(e,t)=>e.get("method").localeCompare(t.get("method"))},tagsSorter:{alpha:(e,t)=>e.localeCompare(t)}},Om=e=>{let t=[];for(let r in e){let n=e[r];n!==void 0&&n!==""&&t.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return t.join("&")},Ave=(e,t,r)=>!!(0,gve.default)(r,n=>(0,yve.default)(e[n],t[n]));function I3(e){return!(!e||e.indexOf("localhost")>=0||e.indexOf("127.0.0.1")>=0||e==="none")}const Vc=e=>typeof e=="string"||e instanceof String?e.trim().replace(/\s/g,"%20"):"",f5=e=>(0,vve.default)(Vc(e).replace(/%20/g,"_")),Ca=e=>{const t=/^x-/;return W.Map.isMap(e)?e.filter((r,n)=>t.test(n)):Object.keys(e).filter(r=>t.test(r))},p5=e=>e.filter((t,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r));function d5(e,t,r=()=>!0){if(typeof e!="object"||Array.isArray(e)||e===null)return e;const n=Object.assign({},e);return Object.keys(n).forEach(i=>{i===t&&r(n[i],i)?delete n[i]:n[i]=d5(n[i],t,r)}),n}function Xr(e){if(typeof e=="string")return e;if(e&&e.toJS&&(e=e.toJS()),typeof e=="object"&&e!==null)try{return JSON.stringify(e,null,2)}catch{return String(e)}return e==null?"":e.toString()}function od(e,{returnAll:t=!1,allowHashes:r=!0}={}){if(!W.default.Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=e.get("name"),i=e.get("in");let s=[];return e&&e.hashCode&&i&&n&&r&&s.push(`${i}.${n}.hash-${e.hashCode()}`),i&&n&&s.push(`${i}.${n}`),s.push(n),t?s:s[0]||""}function h5(e,t){return od(e,{returnAll:!0}).map(r=>t[r]).filter(r=>r!==void 0)[0]}function j3(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const TC=e=>!e||!(!yf(e)||!e.isEmpty()),k3=e=>e;class m5{constructor(t={}){Uc()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},t),this.getSystem=this._getSystem.bind(this),this.store=function(n,i,s){return function(o,u,c){let l=[xve(c)];const f=Zt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||cc.compose;return(0,cc.createStore)(o,u,f((0,cc.applyMiddleware)(...l)))}(n,i,s)}(k3,(0,W.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(t,r=!0){var n=gA(t,this.getSystem());g5(this.system,n),r&&this.buildSystem(),yA.call(this.system,t,this.getSystem())&&this.buildSystem()}buildSystem(t=!0){let r=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(r),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),t&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:W.default,React:p.default},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(t){this.system.configs=t}rebuildReducer(){this.store.replaceReducer(function(r){return function(i){let s=Object.keys(i).reduce((a,o)=>(a[o]=function(c){return(l=new W.Map,f)=>{if(!c)return l;let h=c[f.type];if(h){const d=fc(h)(l,f);return d===null?l:d}return l}}(i[o]),a),{});return Object.keys(s).length?(0,ove.combineReducers)(s):k3}(Oi(r,n=>n.reducers))}(this.system.statePlugins))}getType(t){let r=t[0].toUpperCase()+t.slice(1);return R3(this.system.statePlugins,(n,i)=>{let s=n[t];if(s)return{[i+r]:s}})}getSelectors(){return this.getType("selectors")}getActions(){return Oi(this.getType("actions"),t=>R3(t,(r,n)=>{if(tw(r))return{[n]:r}}))}getWrappedAndBoundActions(t){return Oi(this.getBoundActions(t),(r,n)=>{let i=this.system.statePlugins[n.slice(0,-7)].wrapActions;return i?Oi(r,(s,a)=>{let o=i[a];return o?(Array.isArray(o)||(o=[o]),o.reduce((u,c)=>{let l=(...f)=>c(u,this.getSystem())(...f);if(!tw(l))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return fc(l)},s||Function.prototype)):s}):r})}getWrappedAndBoundSelectors(t,r){return Oi(this.getBoundSelectors(t,r),(n,i)=>{let s=[i.slice(0,-9)],a=this.system.statePlugins[s].wrapSelectors;return a?Oi(n,(o,u)=>{let c=a[u];return c?(Array.isArray(c)||(c=[c]),c.reduce((l,f)=>{let h=(...d)=>f(l,this.getSystem())(t().getIn(s),...d);if(!tw(h))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return h},o||Function.prototype)):o}):n})}getStates(t){return Object.keys(this.system.statePlugins).reduce((r,n)=>(r[n]=t.get(n),r),{})}getStateThunks(t){return Object.keys(this.system.statePlugins).reduce((r,n)=>(r[n]=()=>t().get(n),r),{})}getFn(){return{fn:this.system.fn}}getComponents(t){const r=this.system.components[t];return Array.isArray(r)?r.reduce((n,i)=>i(n,this.getSystem())):t!==void 0?this.system.components[t]:this.system.components}getBoundSelectors(t,r){return Oi(this.getSelectors(),(n,i)=>{let s=[i.slice(0,-9)];return Oi(n,a=>(...o)=>{let u=fc(a).apply(null,[t().getIn(s),...o]);return typeof u=="function"&&(u=fc(u)(r())),u})})}getBoundActions(t){t=t||this.getStore().dispatch;const r=this.getActions(),n=i=>typeof i!="function"?Oi(i,s=>n(s)):(...s)=>{var a=null;try{a=i(...s)}catch(o){a={type:Am,error:!0,payload:(0,c5.serializeError)(o)}}finally{return a}};return Oi(r,i=>(0,cc.bindActionCreators)(n(i),t))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(t){return r=>Uc()({},this.getWrappedAndBoundActions(r),this.getFn(),t)}}function gA(e,t){return Zi(e)&&!ad(e)?(0,uve.default)({},e):js(e)?gA(e(t),t):ad(e)?e.map(r=>gA(r,t)).reduce(g5,{components:t.getComponents()}):{}}function yA(e,t,{hasLoaded:r}={}){let n=r;return Zi(e)&&!ad(e)&&typeof e.afterLoad=="function"&&(n=!0,fc(e.afterLoad).call(this,t)),js(e)?yA.call(this,e(t),t,{hasLoaded:n}):ad(e)?e.map(i=>yA.call(this,i,t,{hasLoaded:n})):n}function g5(e={},t={}){if(!Zi(e))return{};if(!Zi(t))return e;t.wrapComponents&&(Oi(t.wrapComponents,(n,i)=>{const s=e.components&&e.components[i];s&&Array.isArray(s)?(e.components[i]=s.concat([n]),delete t.wrapComponents[i]):s&&(e.components[i]=[s,n],delete t.wrapComponents[i])}),Object.keys(t.wrapComponents).length||delete t.wrapComponents);const{statePlugins:r}=e;if(Zi(r))for(let n in r){const i=r[n];if(!Zi(i))continue;const{wrapActions:s,wrapSelectors:a}=i;if(Zi(s))for(let o in s){let u=s[o];Array.isArray(u)||(u=[u],s[o]=u),t&&t.statePlugins&&t.statePlugins[n]&&t.statePlugins[n].wrapActions&&t.statePlugins[n].wrapActions[o]&&(t.statePlugins[n].wrapActions[o]=s[o].concat(t.statePlugins[n].wrapActions[o]))}if(Zi(a))for(let o in a){let u=a[o];Array.isArray(u)||(u=[u],a[o]=u),t&&t.statePlugins&&t.statePlugins[n]&&t.statePlugins[n].wrapSelectors&&t.statePlugins[n].wrapSelectors[o]&&(t.statePlugins[n].wrapSelectors[o]=a[o].concat(t.statePlugins[n].wrapSelectors[o]))}}return Uc()(e,t)}function fc(e,{logErrors:t=!0}={}){return typeof e!="function"?e:function(...r){try{return e.call(this,...r)}catch(n){return t&&console.error(n),null}}}var zc=function(e){var t={};return me.d(t,e),t}({default:function(){return AK}});const IC="show_popup",jC="authorize",kC="logout",PC="authorize_oauth2",NC="configure_auth",MC="restore_authorization";function Ove(e){return{type:IC,payload:e}}function Cve(e){return{type:jC,payload:e}}const Rve=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function Tve(e){return{type:kC,payload:e}}const Ive=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},jve=e=>({authActions:t,errActions:r})=>{let{auth:n,token:i,isValid:s}=e,{schema:a,name:o}=n,u=a.get("flow");delete Zt.swaggerUIRedirectOauth2,u==="accessCode"||s||r.newAuthErr({authId:o,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),i.error?r.newAuthErr({authId:o,source:"auth",level:"error",message:JSON.stringify(i)}):t.authorizeOauth2WithPersistOption({auth:n,token:i})};function kve(e){return{type:PC,payload:e}}const Pve=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},Nve=e=>({authActions:t})=>{let{schema:r,name:n,username:i,password:s,passwordType:a,clientId:o,clientSecret:u}=e,c={grant_type:"password",scope:e.scopes.join(" "),username:i,password:s},l={};switch(a){case"request-body":(function(h,d,g){d&&Object.assign(h,{client_id:d}),g&&Object.assign(h,{client_secret:g})})(c,o,u);break;case"basic":l.Authorization="Basic "+vf(o+":"+u);break;default:console.warn(`Warning: invalid passwordType ${a} was passed, not including client id and secret`)}return t.authorizeRequest({body:Om(c),url:r.get("tokenUrl"),name:n,headers:l,query:{},auth:e})},Mve=e=>({authActions:t})=>{let{schema:r,scopes:n,name:i,clientId:s,clientSecret:a}=e,o={Authorization:"Basic "+vf(s+":"+a)},u={grant_type:"client_credentials",scope:n.join(" ")};return t.authorizeRequest({body:Om(u),name:i,url:r.get("tokenUrl"),auth:e,headers:o})},Dve=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={grant_type:"authorization_code",code:e.code,client_id:s,client_secret:a,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:Om(u),name:i,url:n.get("tokenUrl"),auth:e})},qve=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={Authorization:"Basic "+vf(s+":"+a)},c={grant_type:"authorization_code",code:e.code,client_id:s,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:Om(c),name:i,url:n.get("tokenUrl"),auth:e,headers:u})},$ve=e=>({fn:t,getConfigs:r,authActions:n,errActions:i,oas3Selectors:s,specSelectors:a,authSelectors:o})=>{let u,{body:c,query:l={},headers:f={},name:h,url:d,auth:g}=e,{additionalQueryStringParams:y}=o.getConfigs()||{};if(a.isOAS3()){let b=s.serverEffectiveValue(s.selectedServer());u=(0,zc.default)(d,b,!0)}else u=(0,zc.default)(d,a.url(),!0);typeof y=="object"&&(u.query=Object.assign({},u.query,y));const v=u.toString();let E=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},f);t.fetch({url:v,method:"post",headers:E,query:l,body:c,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then(function(b){let S=JSON.parse(b.data),x=S&&(S.error||""),_=S&&(S.parseError||"");b.ok?x||_?i.newAuthErr({authId:h,level:"error",source:"auth",message:JSON.stringify(S)}):n.authorizeOauth2WithPersistOption({auth:g,token:S}):i.newAuthErr({authId:h,level:"error",source:"auth",message:b.statusText})}).catch(b=>{let S=new Error(b).message;if(b.response&&b.response.data){const x=b.response.data;try{const _=typeof x=="string"?JSON.parse(x):x;_.error&&(S+=`, error: ${_.error}`),_.error_description&&(S+=`, description: ${_.error_description}`)}catch{}}i.newAuthErr({authId:h,level:"error",source:"auth",message:S})})};function Fve(e){return{type:NC,payload:e}}function Lve(e){return{type:MC,payload:e}}const Bve=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;const r=e.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},Uve=(e,t)=>()=>{Zt.swaggerUIRedirectOauth2=t,Zt.open(e)};var Vve={[IC]:(e,{payload:t})=>e.set("showDefinitions",t),[jC]:(e,{payload:t})=>{let r=(0,W.fromJS)(t),n=e.get("authorized")||(0,W.Map)();return r.entrySeq().forEach(([i,s])=>{if(!js(s.getIn))return e.set("authorized",n);let a=s.getIn(["schema","type"]);if(a==="apiKey"||a==="http")n=n.set(i,s);else if(a==="basic"){let o=s.getIn(["value","username"]),u=s.getIn(["value","password"]);n=n.setIn([i,"value"],{username:o,header:"Basic "+vf(o+":"+u)}),n=n.setIn([i,"schema"],s.get("schema"))}}),e.set("authorized",n)},[PC]:(e,{payload:t})=>{let r,{auth:n,token:i}=t;n.token=Object.assign({},i),r=(0,W.fromJS)(n);let s=e.get("authorized")||(0,W.Map)();return s=s.set(r.get("name"),r),e.set("authorized",s)},[kC]:(e,{payload:t})=>{let r=e.get("authorized").withMutations(n=>{t.forEach(i=>{n.delete(i)})});return e.set("authorized",r)},[NC]:(e,{payload:t})=>e.set("configs",t),[MC]:(e,{payload:t})=>e.set("authorized",(0,W.fromJS)(t.authorized))},et=function(e){var t={};return me.d(t,e),t}({createSelector:function(){return uB}});const Cm=e=>e,zve=(0,et.createSelector)(Cm,e=>e.get("showDefinitions")),Wve=(0,et.createSelector)(Cm,()=>({specSelectors:e})=>{let t=e.securityDefinitions()||(0,W.Map)({}),r=(0,W.List)();return t.entrySeq().forEach(([n,i])=>{let s=(0,W.Map)();s=s.set(n,i),r=r.push(s)}),r}),Jve=(e,t)=>({specSelectors:r})=>(0,W.List)(r.isOAS3()?["components","securitySchemes",t]:["securityDefinitions",t]),Kve=(e,t)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),i=(0,W.List)();return t.valueSeq().forEach(s=>{let a=(0,W.Map)();s.entrySeq().forEach(([o,u])=>{let c,l=n.get(o);l.get("type")==="oauth2"&&u.size&&(c=l.get("scopes"),c.keySeq().forEach(f=>{u.contains(f)||(c=c.delete(f))}),l=l.set("allowedScopes",c)),a=a.set(o,l)}),i=i.push(a)}),i},Hve=(e,t=(0,W.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,W.List)();let i=(0,W.List)();return n.forEach(s=>{let a=t.find(o=>o.get(s.keySeq().first()));a&&(s.forEach((o,u)=>{if(o.get("type")==="oauth2"){const c=a.get(u);let l=o.get("scopes");W.List.isList(c)&&W.Map.isMap(l)&&(l.keySeq().forEach(f=>{c.contains(f)||(l=l.delete(f))}),s=s.set(u,o.set("scopes",l)))}}),i=i.push(s))}),i},Gve=(0,et.createSelector)(Cm,e=>e.get("authorized")||(0,W.Map)()),Yve=(e,t)=>({authSelectors:r})=>{let n=r.authorized();return W.List.isList(t)?!!t.toJS().filter(i=>Object.keys(i).map(s=>!!n.get(s)).indexOf(!1)===-1).length:null},Xve=(0,et.createSelector)(Cm,e=>e.get("configs")),Zve=(e,{authSelectors:t,specSelectors:r})=>({path:n,method:i,operation:s,extras:a})=>{let o={authorized:t.authorized()&&t.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return e({path:n,method:i,operation:s,securities:o,...a})},Qve=(e,t)=>r=>{const{getConfigs:n,authActions:i}=t,s=n();if(e(r),s.persistAuthorization){const a=localStorage.getItem("authorized");a&&i.restoreAuthorization({authorized:JSON.parse(a)})}},e0e=(e,t)=>r=>{if(e(r),t.getConfigs().persistAuthorization)try{const[{schema:n,value:i}]=Object.values(r),s=n.get("type")==="apiKey",a=n.get("in")==="cookie";s&&a&&(document.cookie=`${n.get("name")}=${i}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},t0e=(e,t)=>r=>{const n=t.getConfigs(),i=t.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach(s=>{const a=i.get(s,{}),o=a.getIn(["schema","type"])==="apiKey",u=a.getIn(["schema","in"])==="cookie";if(o&&u){const c=a.getIn(["schema","name"]);document.cookie=`${c}=; Max-Age=-99999999`}})}catch(s){console.error("Error deleting cookie based apiKey from document.cookie.",s)}e(r)};var Cn=function(e){var t={};return me.d(t,e),t}({default:function(){return Hz}}),DC=function(e){var t={};return me.d(t,e),t}({default:function(){return aH}});class r0e extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,DC.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("LockIcon");return p.default.createElement(n,r)}}var P3=r0e;class n0e extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,DC.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("UnlockIcon");return p.default.createElement(n,r)}}var N3=n0e;function y5(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=s0e.bind(null,e),this.rootInjects.preauthorizeBasic=i0e.bind(null,e)},components:{LockAuthIcon:P3,UnlockAuthIcon:N3,LockAuthOperationIcon:P3,UnlockAuthOperationIcon:N3},statePlugins:{auth:{reducers:Vve,actions:Hx,selectors:Gx,wrapActions:{authorize:e0e,logout:t0e}},configs:{wrapActions:{loaded:Qve}},spec:{wrapActions:{execute:Zve}}}}}function i0e(e,t,r,n){const{authActions:{authorize:i},specSelectors:{specJson:s,isOAS3:a}}=e,o=a()?["components","securitySchemes"]:["securityDefinitions"],u=s().getIn([...o,t]);return u?i({[t]:{value:{username:r,password:n},schema:u.toJS()}}):null}function s0e(e,t,r){const{authActions:{authorize:n},specSelectors:{specJson:i,isOAS3:s}}=e,a=s()?["components","securitySchemes"]:["securityDefinitions"],o=i().getIn([...a,t]);return o?n({[t]:{value:r,schema:o.toJS()}}):null}var Os=function(e){var t={};return me.d(t,e),t}({JSON_SCHEMA:function(){return Cc},default:function(){return Ja}});const qC="configs_update",$C="configs_toggle";function a0e(e,t){return{type:qC,payload:{[e]:t}}}function o0e(e){return{type:$C,payload:e}}const u0e=()=>()=>{},c0e=e=>t=>{const{fn:{fetch:r}}=t;return r(e)},l0e=(e,t)=>r=>{const{specActions:n,configsActions:i}=r;if(e)return i.downloadConfig(e).then(s,s);function s(a){a instanceof Error||a.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(a.statusText+" "+e.url),t(null)):t(((o,u)=>{try{return Os.default.load(o)}catch(c){return u&&u.errActions.newThrownErr(new Error(c)),{}}})(a.text,r))}},f0e=(e,t)=>e.getIn(Array.isArray(t)?t:[t]);var p0e={[qC]:(e,t)=>e.merge((0,W.fromJS)(t.payload)),[$C]:(e,t)=>{const r=t.payload,n=e.get(r);return e.set(r,!n)}};function v5(){return{statePlugins:{configs:{reducers:p0e,actions:Yx,selectors:Xx}}}}const rw=e=>e?history.pushState(null,null,`#${e}`):window.location.hash="";var d0e=function(e){var t={};return me.d(t,e),t}({default:function(){return RY}});const M3="layout_scroll_to",D3="layout_clear_scroll";var h0e={fn:{getScrollParent:function(t,r){const n=document.documentElement;let i=getComputedStyle(t);const s=i.position==="absolute",a=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(i.position==="fixed")return n;for(let o=t;o=o.parentElement;)if(i=getComputedStyle(o),(!s||i.position!=="static")&&a.test(i.overflow+i.overflowY+i.overflowX))return o;return n}},statePlugins:{layout:{actions:{scrollToElement:(e,t)=>r=>{try{t=t||r.fn.getScrollParent(e),d0e.default.createScroller(t).to(e)}catch(n){console.error(n)}},scrollTo:e=>({type:M3,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:D3}),readyToScroll:(e,t)=>r=>{const n=r.layoutSelectors.getScrollToKey();W.default.is(n,(0,W.fromJS)(e))&&(r.layoutActions.scrollToElement(t),r.layoutActions.clearScrollTo())},parseDeepLinkHash:e=>({layoutActions:t,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&e){let i=e.slice(1);i[0]==="!"&&(i=i.slice(1)),i[0]==="/"&&(i=i.slice(1));const s=i.split("/").map(l=>l||""),a=r.isShownKeyFromUrlHashArray(s),[o,u="",c=""]=a;if(o==="operations"){const l=r.isShownKeyFromUrlHashArray([u]);u.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(l.map(f=>f.replace(/_/g," ")),!0)),t.show(l,!0)}(u.indexOf("_")>-1||c.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(a.map(l=>l.replace(/_/g," ")),!0)),t.show(a,!0),t.scrollTo(a)}}},selectors:{getScrollToKey:e=>e.get("scrollToKey"),isShownKeyFromUrlHashArray(e,t){const[r,n]=t;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(e,t){let[r,n,i]=t;return r=="operations"?[n,i]:r=="operations-tag"?[n]:[]}},reducers:{[M3]:(e,t)=>e.set("scrollToKey",W.default.fromJS(t.payload)),[D3]:e=>e.delete("scrollToKey")},wrapActions:{show:(e,{getConfigs:t,layoutSelectors:r})=>(...n)=>{if(e(...n),t().deepLinking)try{let[i,s]=n;i=Array.isArray(i)?i:[i];const a=r.urlHashArrayFromIsShownKey(i);if(!a.length)return;const[o,u]=a;if(!s)return rw("/");a.length===2?rw(Vc(`/${encodeURIComponent(o)}/${encodeURIComponent(u)}`)):a.length===1&&rw(Vc(`/${encodeURIComponent(o)}`))}catch(i){console.error(i)}}}}}},q3=function(e){var t={};return me.d(t,e),t}({default:function(){return IX}}),m0e=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);z(this,"onLoad",i=>{const{operation:s}=this.props,{tag:a,operationId:o}=s.toObject();let{isShownKey:u}=s.toObject();u=u||["operations",a,o],t.layoutActions.readyToScroll(u,i)})}render(){return p.default.createElement("span",{ref:this.onLoad},p.default.createElement(e,this.props))}},g0e=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);z(this,"onLoad",i=>{const{tag:s}=this.props,a=["operations-tag",s];t.layoutActions.readyToScroll(a,i)})}render(){return p.default.createElement("span",{ref:this.onLoad},p.default.createElement(e,this.props))}};function b5(){return[h0e,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...r)=>{e(...r);const n=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:m0e,OperationTag:g0e}}]}var y0e=function(e){var t={};return me.d(t,e),t}({default:function(){return NX}});function v0e(e){return e.map(t=>{let r="is not of a type(s)",n=t.get("message").indexOf(r);if(n>-1){let i=t.get("message").slice(n+19).split(",");return t.set("message",t.get("message").slice(0,n)+function(a){return a.reduce((o,u,c,l)=>c===l.length-1&&l.length>1?o+"or "+u:l[c+1]&&l.length>2?o+u+", ":l[c+1]?o+u+" ":o+u,"should be a")}(i))}return t})}var vA=function(e){var t={};return me.d(t,e),t}({default:function(){return DX}});function b0e(e,{jsSpec:t}){return e}const _0e=[Zx,Qx];function Zu(e){let t={jsSpec:{}};return(0,y0e.default)(_0e,(n,i)=>{try{return i.transform(n,t).filter(s=>!!s)}catch(s){return console.error("Transformer error:",s),n}},e).filter(n=>!!n).map(n=>(!n.get("line")&&n.get("path"),n))}let nw={line:0,level:"error",message:"Unknown error"};const _5=(0,et.createSelector)(e=>e,e=>e.get("errors",(0,W.List)())),E0e=(0,et.createSelector)(_5,e=>e.last());function E5(e){return{statePlugins:{err:{reducers:{[Am]:(t,{payload:r})=>{let n=Object.assign(nw,r,{type:"thrown"});return t.update("errors",i=>(i||(0,W.List)()).push((0,W.fromJS)(n))).update("errors",i=>Zu(i))},[wC]:(t,{payload:r})=>(r=r.map(n=>(0,W.fromJS)(Object.assign(nw,n,{type:"thrown"}))),t.update("errors",n=>(n||(0,W.List)()).concat((0,W.fromJS)(r))).update("errors",n=>Zu(n))),[xC]:(t,{payload:r})=>{let n=(0,W.fromJS)(r);return n=n.set("type","spec"),t.update("errors",i=>(i||(0,W.List)()).push((0,W.fromJS)(n)).sortBy(s=>s.get("line"))).update("errors",i=>Zu(i))},[AC]:(t,{payload:r})=>(r=r.map(n=>(0,W.fromJS)(Object.assign(nw,n,{type:"spec"}))),t.update("errors",n=>(n||(0,W.List)()).concat((0,W.fromJS)(r))).update("errors",n=>Zu(n))),[OC]:(t,{payload:r})=>{let n=(0,W.fromJS)(Object.assign({},r));return n=n.set("type","auth"),t.update("errors",i=>(i||(0,W.List)()).push((0,W.fromJS)(n))).update("errors",i=>Zu(i))},[CC]:(t,{payload:r})=>{if(!r||!t.get("errors"))return t;let n=t.get("errors").filter(i=>i.keySeq().every(s=>{const a=i.get(s),o=r[s];return!o||a!==o}));return t.merge({errors:n})},[RC]:(t,{payload:r})=>{if(!r||typeof r!="function")return t;let n=t.get("errors").filter(i=>r(i));return t.merge({errors:n})}},actions:Kx,selectors:eA}}}}function S0e(e,t){return e.filter((r,n)=>n.indexOf(t)!==-1)}function S5(){return{fn:{opsFilter:S0e}}}var At=function(e){var t={};return me.d(t,e),t}({default:function(){return Pw}}),w0e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),x0e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),A0e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),O0e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),C0e=({className:e=null,width:t=15,height:r=16,...n})=>p.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("g",{transform:"translate(2, -1)"},p.default.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),R0e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),T0e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),w5=()=>({components:{ArrowUpIcon:w0e,ArrowDownIcon:x0e,ArrowIcon:A0e,CloseIcon:O0e,CopyIcon:C0e,LockIcon:R0e,UnlockIcon:T0e}});const FC="layout_update_layout",LC="layout_update_filter",BC="layout_update_mode",UC="layout_show";function I0e(e){return{type:FC,payload:e}}function j0e(e){return{type:LC,payload:e}}function k0e(e,t=!0){return e=_o(e),{type:UC,payload:{thing:e,shown:t}}}function P0e(e,t=""){return e=_o(e),{type:BC,payload:{thing:e,mode:t}}}var N0e={[FC]:(e,t)=>e.set("layout",t.payload),[LC]:(e,t)=>e.set("filter",t.payload),[UC]:(e,t)=>{const r=t.payload.shown,n=(0,W.fromJS)(t.payload.thing);return e.update("shown",(0,W.fromJS)({}),i=>i.set(n,r))},[BC]:(e,t)=>{let r=t.payload.thing,n=t.payload.mode;return e.setIn(["modes"].concat(r),(n||"")+"")}};const M0e=e=>e.get("layout"),D0e=e=>e.get("filter"),x5=(e,t,r)=>(t=_o(t),e.get("shown",(0,W.fromJS)({})).get((0,W.fromJS)(t),r)),q0e=(e,t,r="")=>(t=_o(t),e.getIn(["modes",...t],r)),$0e=(0,et.createSelector)(e=>e,e=>!x5(e,"editor")),F0e=(e,t)=>(r,...n)=>{let i=e(r,...n);const{fn:s,layoutSelectors:a,getConfigs:o}=t.getSystem(),u=o(),{maxDisplayedTags:c}=u;let l=a.currentFilter();return l&&l!==!0&&(i=s.opsFilter(i,l)),c>=0&&(i=i.slice(0,c)),i};function A5(){return{statePlugins:{layout:{reducers:N0e,actions:tA,selectors:rA},spec:{wrapSelectors:nA}}}}function O5({configs:e}){const t={debug:0,info:1,log:2,warn:3,error:4},r=a=>t[a]||-1;let{logLevel:n}=e,i=r(n);function s(a,...o){r(a)>=i&&console[a](...o)}return s.warn=s.bind(null,"warn"),s.error=s.bind(null,"error"),s.info=s.bind(null,"info"),s.debug=s.bind(null,"debug"),{rootInjects:{log:s}}}let iw=!1;function C5(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(iw=!0,e(...t)),updateJsonSpec:(e,t)=>(...r)=>{const n=t.getConfigs().onComplete;return iw&&typeof n=="function"&&(setTimeout(n,0),iw=!1),e(...r)}}}}}}const $3=e=>{const t="_**[]";return e.indexOf(t)<0?e:e.split(t)[0].trim()},L0e=e=>e==="-d "||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",B0e=e=>(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
285
+ `))==="-d "?e.replace(/-d /g,`-d ^
286
+ `):/^[_\/-]/g.test(e)?e:'"'+e+'"',U0e=e=>e==="-d "?e:/\n/.test(e)?`@"
287
+ ${e.replace(/`/g,"``").replace(/\$/g,"`$")}
288
+ "@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,"''")}'`,VC=(e,t,r,n="")=>{let i=!1,s="";const a=(...d)=>s+=" "+d.map(t).join(" "),o=(...d)=>s+=d.map(t).join(" "),u=()=>s+=` ${r}`,c=(d=1)=>s+=" ".repeat(d);let l=e.get("headers");s+="curl"+n;const f=e.get("curlOptions");if(W.List.isList(f)&&!f.isEmpty()&&a(...e.get("curlOptions")),a("-X",e.get("method")),u(),c(),o(`${e.get("url")}`),l&&l.size)for(let d of e.get("headers").entries()){u(),c();let[g,y]=d;o("-H",`${g}: ${y}`),i=i||/^content-type$/i.test(g)&&/^multipart\/form-data$/i.test(y)}const h=e.get("body");if(h)if(i&&["POST","PUT","PATCH"].includes(e.get("method")))for(let[d,g]of h.entrySeq()){let y=$3(d);u(),c(),o("-F"),g instanceof Zt.File&&typeof g.valueOf()=="string"?a(`${y}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof Zt.File?a(`${y}=@${g.name}${g.type?`;type=${g.type}`:""}`):a(`${y}=${g}`)}else if(h instanceof Zt.File)u(),c(),o(`--data-binary '@${h.name}'`);else{u(),c(),o("-d ");let d=h;W.Map.isMap(d)?o(function(y){let v=[];for(let[E,b]of y.get("body").entrySeq()){let S=$3(E);b instanceof Zt.File?v.push(` "${S}": {
289
+ "name": "${b.name}"${b.type?`,
290
+ "type": "${b.type}"`:""}
291
+ }`):v.push(` "${S}": ${JSON.stringify(b,null,2).replace(/(\r\n|\r|\n)/g,`
292
+ `)}`)}return`{
293
+ ${v.join(`,
294
+ `)}
295
+ }`}(e)):(typeof d!="string"&&(d=JSON.stringify(d)),o(d))}else h||e.get("method")!=="POST"||(u(),c(),o("-d ''"));return s},V0e=e=>VC(e,U0e,"`\n",".exe"),R5=e=>VC(e,L0e,`\\
296
+ `),z0e=e=>VC(e,B0e,`^
297
+ `),zC=e=>e||(0,W.Map)(),T5=(0,et.createSelector)(zC,e=>{const t=e.get("languages"),r=e.get("generators",(0,W.Map)());return!t||t.isEmpty()?r:r.filter((n,i)=>t.includes(i))}),W0e=e=>({fn:t})=>T5(e).map((r,n)=>{const i=(s=>t[`requestSnippetGenerator_${s}`])(n);return typeof i!="function"?null:r.set("fn",i)}).filter(r=>r),J0e=(0,et.createSelector)(zC,e=>e.get("activeLanguage")),K0e=(0,et.createSelector)(zC,e=>e.get("defaultExpanded"));var Ot=function(e){var t={};return me.d(t,e),t}({default:function(){return mZ}}),Rm=function(e){var t={};return me.d(t,e),t}({CopyToClipboard:function(){return _Z.CopyToClipboard}});const H0e={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},G0e={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"};var Y0e=({request:e,requestSnippetsSelectors:t,getComponent:r})=>{var E;const n=(0,p.useRef)(null),i=r("ArrowUpIcon"),s=r("ArrowDownIcon"),a=r("SyntaxHighlighter",!0),[o,u]=(0,p.useState)((E=t.getSnippetGenerators())==null?void 0:E.keySeq().first()),[c,l]=(0,p.useState)(t==null?void 0:t.getDefaultExpanded()),f=t.getSnippetGenerators(),h=f.get(o),d=h.get("fn")(e),g=()=>{l(!c)},y=b=>b===o?G0e:H0e,v=b=>{const{target:S,deltaY:x}=b,{scrollHeight:_,offsetHeight:A,scrollTop:C}=S;_>A&&(C===0&&x<0||A+C>=_&&x>0)&&b.preventDefault()};return(0,p.useEffect)(()=>{},[]),(0,p.useEffect)(()=>{const b=Array.from(n.current.childNodes).filter(S=>{var x;return!!S.nodeType&&((x=S.classList)==null?void 0:x.contains("curl-command"))});return b.forEach(S=>S.addEventListener("mousewheel",v,{passive:!1})),()=>{b.forEach(S=>S.removeEventListener("mousewheel",v))}},[e]),p.default.createElement("div",{className:"request-snippets",ref:n},p.default.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},p.default.createElement("h4",{onClick:()=>g(),style:{cursor:"pointer"}},"Snippets"),p.default.createElement("button",{onClick:()=>g(),style:{border:"none",background:"none"},title:c?"Collapse operation":"Expand operation"},c?p.default.createElement(s,{className:"arrow",width:"10",height:"10"}):p.default.createElement(i,{className:"arrow",width:"10",height:"10"}))),c&&p.default.createElement("div",{className:"curl-command"},p.default.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},f.entrySeq().map(([b,S])=>p.default.createElement("div",{className:(0,Ot.default)("btn",{active:b===o}),style:y(b),key:b,onClick:()=>(x=>{o!==x&&u(x)})(b)},p.default.createElement("h4",{style:b===o?{color:"white"}:{}},S.get("title"))))),p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement(Rm.CopyToClipboard,{text:d},p.default.createElement("button",null))),p.default.createElement("div",null,p.default.createElement(a,{language:h.get("syntax"),className:"curl microlight",renderPlainText:({children:b,PlainTextViewer:S})=>p.default.createElement(S,{className:"curl"},b)},d))))},I5=()=>({components:{RequestSnippets:Y0e},fn:{requestSnippetGenerator_curl_bash:R5,requestSnippetGenerator_curl_cmd:z0e,requestSnippetGenerator_curl_powershell:V0e},statePlugins:{requestSnippets:{selectors:iA}}});const Kd=class Kd extends p.Component{constructor(r,n){super(r,n);z(this,"toggleCollapsed",()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})});z(this,"onLoad",r=>{if(r&&this.props.layoutSelectors){const n=this.props.layoutSelectors.getScrollToKey();W.default.is(n,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,r.parentElement)}});let{expanded:i,collapsedContent:s}=this.props;this.state={expanded:i,collapsedContent:s||Kd.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:r,expanded:n,modelName:i}=this.props;r&&n&&this.props.onToggle(i,n)}UNSAFE_componentWillReceiveProps(r){this.props.expanded!==r.expanded&&this.setState({expanded:r.expanded})}render(){const{title:r,classes:n}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?p.default.createElement("span",{className:n||""},this.props.children):p.default.createElement("span",{className:n||"",ref:this.onLoad},p.default.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},r&&p.default.createElement("span",{className:"pointer"},r),p.default.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&p.default.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}};z(Kd,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:W.default.List([])});let bA=Kd;const X0e=({initialTab:e,isExecute:t,schema:r,example:n})=>{const i=(0,p.useMemo)(()=>({example:"example",model:"model"}),[]),s=(0,p.useMemo)(()=>Object.keys(i),[i]).includes(e)&&r&&!t?e:i.example,a=(l=>{const f=(0,p.useRef)();return(0,p.useEffect)(()=>{f.current=l}),f.current})(t),[o,u]=(0,p.useState)(s),c=(0,p.useCallback)(l=>{u(l.target.dataset.name)},[]);return(0,p.useEffect)(()=>{a&&!t&&n&&u(i.example)},[a,t,n]),{activeTab:o,onTabChange:c,tabs:i}};var Z0e=({schema:e,example:t,isExecute:r=!1,specPath:n,includeWriteOnly:i=!1,includeReadOnly:s=!1,getComponent:a,getConfigs:o,specSelectors:u})=>{const{defaultModelRendering:c,defaultModelExpandDepth:l}=o(),f=a("ModelWrapper"),h=a("HighlightCode",!0),d=Vo()(5).toString("base64"),g=Vo()(5).toString("base64"),y=Vo()(5).toString("base64"),v=Vo()(5).toString("base64"),E=u.isOAS3(),{activeTab:b,tabs:S,onTabChange:x}=X0e({initialTab:c,isExecute:r,schema:e,example:t});return p.default.createElement("div",{className:"model-example"},p.default.createElement("ul",{className:"tab",role:"tablist"},p.default.createElement("li",{className:(0,Ot.default)("tabitem",{active:b===S.example}),role:"presentation"},p.default.createElement("button",{"aria-controls":g,"aria-selected":b===S.example,className:"tablinks","data-name":"example",id:d,onClick:x,role:"tab"},r?"Edit Value":"Example Value")),e&&p.default.createElement("li",{className:(0,Ot.default)("tabitem",{active:b===S.model}),role:"presentation"},p.default.createElement("button",{"aria-controls":v,"aria-selected":b===S.model,className:(0,Ot.default)("tablinks",{inactive:r}),"data-name":"model",id:y,onClick:x,role:"tab"},E?"Schema":"Model"))),b===S.example&&p.default.createElement("div",{"aria-hidden":b!==S.example,"aria-labelledby":d,"data-name":"examplePanel",id:g,role:"tabpanel",tabIndex:"0"},t||p.default.createElement(h,null,"(no example available")),b===S.model&&p.default.createElement("div",{className:"model-container","aria-hidden":b===S.example,"aria-labelledby":y,"data-name":"modelPanel",id:v,role:"tabpanel",tabIndex:"0"},p.default.createElement(f,{schema:e,getComponent:a,getConfigs:o,specSelectors:u,expandDepth:l,specPath:n,includeReadOnly:s,includeWriteOnly:i})))};class Q0e extends p.Component{constructor(){super(...arguments);z(this,"onToggle",(r,n)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,n)})}render(){let{getComponent:r,getConfigs:n}=this.props;const i=r("Model");let s;return this.props.layoutSelectors&&(s=this.props.layoutSelectors.isShown(this.props.fullPath)),p.default.createElement("div",{className:"model-box"},p.default.createElement(i,(0,At.default)({},this.props,{getConfigs:n,expanded:s,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var F3,ebe=function(e){var t={};return me.d(t,e),t}({default:function(){return PZ}});function _A(){return _A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_A.apply(null,arguments)}var j5=e=>p.createElement("svg",_A({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},e),F3||(F3=p.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},p.createElement("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"}))));const L3=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class k5 extends ebe.default{constructor(){super(...arguments);z(this,"getModelName",r=>r.indexOf("#/definitions/")!==-1?L3(r.replace(/^.*#\/definitions\//,"")):r.indexOf("#/components/schemas/")!==-1?L3(r.replace(/^.*#\/components\/schemas\//,"")):void 0);z(this,"getRefSchema",r=>{let{specSelectors:n}=this.props;return n.findDefinition(r)})}render(){let{getComponent:r,getConfigs:n,specSelectors:i,schema:s,required:a,name:o,isRef:u,specPath:c,displayName:l,includeReadOnly:f,includeWriteOnly:h}=this.props;const d=r("ObjectModel"),g=r("ArrayModel"),y=r("PrimitiveModel");let v="object",E=s&&s.get("$$ref"),b=s&&s.get("$ref");if(!o&&E&&(o=this.getModelName(E)),b){const x=this.getModelName(b),_=this.getRefSchema(x);W.Map.isMap(_)?(s=_.mergeDeep(s),E||(s=s.set("$$ref",b),E=b)):W.Map.isMap(s)&&s.size===1&&(s=null,o=b)}if(!s)return p.default.createElement("span",{className:"model model-title"},p.default.createElement("span",{className:"model-title__text"},l||o),!b&&p.default.createElement(j5,{height:"20px",width:"20px"}));const S=i.isOAS3()&&s.get("deprecated");switch(u=u!==void 0?u:!!E,v=s&&s.get("type")||v,v){case"object":return p.default.createElement(d,(0,At.default)({className:"object"},this.props,{specPath:c,getConfigs:n,schema:s,name:o,deprecated:S,isRef:u,includeReadOnly:f,includeWriteOnly:h}));case"array":return p.default.createElement(g,(0,At.default)({className:"array"},this.props,{getConfigs:n,schema:s,name:o,deprecated:S,required:a,includeReadOnly:f,includeWriteOnly:h}));default:return p.default.createElement(y,(0,At.default)({},this.props,{getComponent:r,getConfigs:n,schema:s,name:o,deprecated:S,required:a}))}}}z(k5,"propTypes",{schema:q3.default.map.isRequired,getComponent:Cn.default.func.isRequired,getConfigs:Cn.default.func.isRequired,specSelectors:Cn.default.object.isRequired,name:Cn.default.string,displayName:Cn.default.string,isRef:Cn.default.bool,required:Cn.default.bool,expandDepth:Cn.default.number,depth:Cn.default.number,specPath:q3.default.list.isRequired,includeReadOnly:Cn.default.bool,includeWriteOnly:Cn.default.bool});class tbe extends p.Component{constructor(){super(...arguments);z(this,"getSchemaBasePath",()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"]);z(this,"getCollapsedContent",()=>" ");z(this,"handleToggle",(r,n)=>{const{layoutActions:i}=this.props;i.show([...this.getSchemaBasePath(),r],n),n&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),r])});z(this,"onLoadModels",r=>{r&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),r)});z(this,"onLoadModel",r=>{if(r){const n=r.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),n],r)}})}render(){let{specSelectors:r,getComponent:n,layoutSelectors:i,layoutActions:s,getConfigs:a}=this.props,o=r.definitions(),{docExpansion:u,defaultModelsExpandDepth:c}=a();if(!o.size||c<0)return null;const l=this.getSchemaBasePath();let f=i.isShown(l,c>0&&u!=="none");const h=r.isOAS3(),d=n("ModelWrapper"),g=n("Collapse"),y=n("ModelCollapse"),v=n("JumpToPath",!0),E=n("ArrowUpIcon"),b=n("ArrowDownIcon");return p.default.createElement("section",{className:f?"models is-open":"models",ref:this.onLoadModels},p.default.createElement("h4",null,p.default.createElement("button",{"aria-expanded":f,className:"models-control",onClick:()=>s.show(l,!f)},p.default.createElement("span",null,h?"Schemas":"Models"),f?p.default.createElement(E,null):p.default.createElement(b,null))),p.default.createElement(g,{isOpened:f},o.entrySeq().map(([S])=>{const x=[...l,S],_=W.default.List(x),A=r.specResolvedSubtree(x),C=r.specJson().getIn(x),R=W.Map.isMap(A)?A:W.default.Map(),O=W.Map.isMap(C)?C:W.default.Map(),M=R.get("title")||O.get("title")||S,k=i.isShown(x,!1);k&&R.size===0&&O.size>0&&this.props.specActions.requestResolvedSubtree(x);const D=p.default.createElement(d,{name:S,expandDepth:c,schema:R||W.default.Map(),displayName:M,fullPath:x,specPath:_,getComponent:n,specSelectors:r,getConfigs:a,layoutSelectors:i,layoutActions:s,includeReadOnly:!0,includeWriteOnly:!0}),P=p.default.createElement("span",{className:"model-box"},p.default.createElement("span",{className:"model model-title"},M));return p.default.createElement("div",{id:`model-${S}`,className:"model-container",key:`models-section-${S}`,"data-name":S,ref:this.onLoadModel},p.default.createElement("span",{className:"models-jump-to-path"},p.default.createElement(v,{path:_})),p.default.createElement(y,{classes:"model-box",collapsedContent:this.getCollapsedContent(S),onToggle:this.handleToggle,title:P,displayName:M,modelName:S,specPath:_,layoutSelectors:i,layoutActions:s,hideSelfOnExpand:!0,expanded:c>0&&k},D))}).toArray()))}}var rbe=({value:e,getComponent:t})=>{let r=t("ModelCollapse"),n=p.default.createElement("span",null,"Array [ ",e.count()," ]");return p.default.createElement("span",{className:"prop-enum"},"Enum:",p.default.createElement("br",null),p.default.createElement(r,{collapsedContent:n},"[ ",e.map(String).join(", ")," ]"))};function EA(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function nbe(e,t){return e?EA(e)?function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n}(e):new URL(e,t).href:t}function Mi(e,t,{selectedServer:r=""}={}){try{return function(i,s,{selectedServer:a=""}={}){if(!i)return;if(EA(i))return i;const o=nbe(a,s);return EA(o)?new URL(i,o).href:new URL(i,window.location.href).href}(e,t,{selectedServer:r})}catch{return}}function vr(e){if(typeof e!="string"||e.trim()==="")return"";const t=e.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,i=new URL(t,n),s=i.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(s.toLowerCase())?r:i.origin===n?t.startsWith("/")?`${i.pathname}${i.search}${i.hash}`:t.startsWith(".")?`.${i.pathname}${i.search}${i.hash}`:`${i.pathname.substring(1)}${i.search}${i.hash}`:String(i)}catch{return r}}class ibe extends p.Component{render(){let{schema:t,name:r,displayName:n,isRef:i,getComponent:s,getConfigs:a,depth:o,onToggle:u,expanded:c,specPath:l,...f}=this.props,{specSelectors:h,expandDepth:d,includeReadOnly:g,includeWriteOnly:y}=f;const{isOAS3:v}=h,E=o>2||o===2&&l.last()!=="items";if(!t)return null;const{showExtensions:b}=a(),S=b?Ca(t):(0,W.List)();let x=t.get("description"),_=t.get("properties"),A=t.get("additionalProperties"),C=t.get("title")||n||r,R=t.get("required"),O=t.filter((F,ue)=>["maxProperties","minProperties","nullable","example"].indexOf(ue)!==-1),M=t.get("deprecated"),k=t.getIn(["externalDocs","url"]),D=t.getIn(["externalDocs","description"]);const P=s("JumpToPath",!0),H=s("Markdown",!0),Z=s("Model"),V=s("ModelCollapse"),G=s("Property"),Q=s("Link"),Y=s("ModelExtensions"),L=()=>p.default.createElement("span",{className:"model-jump-to-path"},p.default.createElement(P,{path:l})),J=p.default.createElement("span",null,p.default.createElement("span",null,"{"),"...",p.default.createElement("span",null,"}"),i?p.default.createElement(L,null):""),ee=h.isOAS3()?t.get("allOf"):null,ne=h.isOAS3()?t.get("anyOf"):null,ae=h.isOAS3()?t.get("oneOf"):null,X=h.isOAS3()?t.get("not"):null,B=C&&p.default.createElement("span",{className:"model-title"},i&&t.get("$$ref")&&p.default.createElement("span",{className:(0,Ot.default)("model-hint",{"model-hint--embedded":E})},t.get("$$ref")),p.default.createElement("span",{className:"model-title__text"},C));return p.default.createElement("span",{className:"model"},p.default.createElement(V,{modelName:r,title:B,onToggle:u,expanded:!!c||o<=d,collapsedContent:J},p.default.createElement("span",{className:"brace-open object"},"{"),i?p.default.createElement(L,null):null,p.default.createElement("span",{className:"inner-object"},p.default.createElement("table",{className:"model"},p.default.createElement("tbody",null,x?p.default.createElement("tr",{className:"description"},p.default.createElement("td",null,"description:"),p.default.createElement("td",null,p.default.createElement(H,{source:x}))):null,k&&p.default.createElement("tr",{className:"external-docs"},p.default.createElement("td",null,"externalDocs:"),p.default.createElement("td",null,p.default.createElement(Q,{target:"_blank",href:vr(k)},D||k))),M?p.default.createElement("tr",{className:"property"},p.default.createElement("td",null,"deprecated:"),p.default.createElement("td",null,"true")):null,_&&_.size?_.entrySeq().filter(([,F])=>(!F.get("readOnly")||g)&&(!F.get("writeOnly")||y)).map(([F,ue])=>{let fe=v()&&ue.get("deprecated"),Ae=W.List.isList(R)&&R.contains(F),Ne=["property-row"];return fe&&Ne.push("deprecated"),Ae&&Ne.push("required"),p.default.createElement("tr",{key:F,className:Ne.join(" ")},p.default.createElement("td",null,F,Ae&&p.default.createElement("span",{className:"star"},"*")),p.default.createElement("td",null,p.default.createElement(Z,(0,At.default)({key:`object-${r}-${F}_${ue}`},f,{required:Ae,getComponent:s,specPath:l.push("properties",F),getConfigs:a,schema:ue,depth:o+1}))))}).toArray():null,S.size===0?null:p.default.createElement(p.default.Fragment,null,p.default.createElement("tr",null,p.default.createElement("td",null," ")),p.default.createElement(Y,{extensions:S,propClass:"extension"})),A&&A.size?p.default.createElement("tr",null,p.default.createElement("td",null,"< * >:"),p.default.createElement("td",null,p.default.createElement(Z,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("additionalProperties"),getConfigs:a,schema:A,depth:o+1})))):null,ee?p.default.createElement("tr",null,p.default.createElement("td",null,"allOf ->"),p.default.createElement("td",null,ee.map((F,ue)=>p.default.createElement("div",{key:ue},p.default.createElement(Z,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("allOf",ue),getConfigs:a,schema:F,depth:o+1})))))):null,ne?p.default.createElement("tr",null,p.default.createElement("td",null,"anyOf ->"),p.default.createElement("td",null,ne.map((F,ue)=>p.default.createElement("div",{key:ue},p.default.createElement(Z,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("anyOf",ue),getConfigs:a,schema:F,depth:o+1})))))):null,ae?p.default.createElement("tr",null,p.default.createElement("td",null,"oneOf ->"),p.default.createElement("td",null,ae.map((F,ue)=>p.default.createElement("div",{key:ue},p.default.createElement(Z,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("oneOf",ue),getConfigs:a,schema:F,depth:o+1})))))):null,X?p.default.createElement("tr",null,p.default.createElement("td",null,"not ->"),p.default.createElement("td",null,p.default.createElement("div",null,p.default.createElement(Z,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("not"),getConfigs:a,schema:X,depth:o+1}))))):null))),p.default.createElement("span",{className:"brace-close"},"}")),O.size?O.entrySeq().map(([F,ue])=>p.default.createElement(G,{key:`${F}-${ue}`,propKey:F,propVal:ue,propClass:"property"})):null)}}class sbe extends p.Component{render(){let{getComponent:t,getConfigs:r,schema:n,depth:i,expandDepth:s,name:a,displayName:o,specPath:u}=this.props,c=n.get("description"),l=n.get("items"),f=n.get("title")||o||a,h=n.filter((_,A)=>["type","items","description","$$ref","externalDocs"].indexOf(A)===-1),d=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const y=t("Markdown",!0),v=t("ModelCollapse"),E=t("Model"),b=t("Property"),S=t("Link"),x=f&&p.default.createElement("span",{className:"model-title"},p.default.createElement("span",{className:"model-title__text"},f));return p.default.createElement("span",{className:"model"},p.default.createElement(v,{title:x,expanded:i<=s,collapsedContent:"[...]"},"[",h.size?h.entrySeq().map(([_,A])=>p.default.createElement(b,{key:`${_}-${A}`,propKey:_,propVal:A,propClass:"property"})):null,c?p.default.createElement(y,{source:c}):h.size?p.default.createElement("div",{className:"markdown"}):null,d&&p.default.createElement("div",{className:"external-docs"},p.default.createElement(S,{target:"_blank",href:vr(d)},g||d)),p.default.createElement("span",null,p.default.createElement(E,(0,At.default)({},this.props,{getConfigs:r,specPath:u.push("items"),name:null,schema:l,required:!1,depth:i+1}))),"]"))}}const up="property primitive";class abe extends p.Component{render(){let{schema:t,getComponent:r,getConfigs:n,name:i,displayName:s,depth:a,expandDepth:o}=this.props;const{showExtensions:u}=n();if(!t||!t.get)return p.default.createElement("div",null);let c=t.get("type"),l=t.get("format"),f=t.get("xml"),h=t.get("enum"),d=t.get("title")||s||i,g=t.get("description");const y=Ca(t);let v=t.filter((M,k)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(k)===-1).filterNot((M,k)=>y.has(k)),E=t.getIn(["externalDocs","url"]),b=t.getIn(["externalDocs","description"]);const S=r("Markdown",!0),x=r("EnumModel"),_=r("Property"),A=r("ModelCollapse"),C=r("Link"),R=r("ModelExtensions"),O=d&&p.default.createElement("span",{className:"model-title"},p.default.createElement("span",{className:"model-title__text"},d));return p.default.createElement("span",{className:"model"},p.default.createElement(A,{title:O,expanded:a<=o,collapsedContent:"[...]"},p.default.createElement("span",{className:"prop"},i&&a>1&&p.default.createElement("span",{className:"prop-name"},d),p.default.createElement("span",{className:"prop-type"},c),l&&p.default.createElement("span",{className:"prop-format"},"($",l,")"),v.size?v.entrySeq().map(([M,k])=>p.default.createElement(_,{key:`${M}-${k}`,propKey:M,propVal:k,propClass:up})):null,u&&y.size>0?p.default.createElement(R,{extensions:y,propClass:`${up} extension`}):null,g?p.default.createElement(S,{source:g}):null,E&&p.default.createElement("div",{className:"external-docs"},p.default.createElement(C,{target:"_blank",href:vr(E)},b||E)),f&&f.size?p.default.createElement("span",null,p.default.createElement("br",null),p.default.createElement("span",{className:up},"xml:"),f.entrySeq().map(([M,k])=>p.default.createElement("span",{key:`${M}-${k}`,className:up},p.default.createElement("br",null),"   ",M,": ",String(k))).toArray()):null,h&&p.default.createElement(x,{value:h,getComponent:r}))))}}class obe extends p.default.Component{constructor(){super(...arguments);z(this,"onChange",r=>{this.setScheme(r.target.value)});z(this,"setScheme",r=>{let{path:n,method:i,specActions:s}=this.props;s.setScheme(r,n,i)})}UNSAFE_componentWillMount(){let{schemes:r}=this.props;this.setScheme(r.first())}UNSAFE_componentWillReceiveProps(r){this.props.currentScheme&&r.schemes.includes(this.props.currentScheme)||this.setScheme(r.schemes.first())}render(){let{schemes:r,currentScheme:n}=this.props;return p.default.createElement("label",{htmlFor:"schemes"},p.default.createElement("span",{className:"schemes-title"},"Schemes"),p.default.createElement("select",{onChange:this.onChange,value:n,id:"schemes"},r.valueSeq().map(i=>p.default.createElement("option",{value:i,key:i},i)).toArray()))}}class ube extends p.default.Component{render(){const{specActions:t,specSelectors:r,getComponent:n}=this.props,i=r.operationScheme(),s=r.schemes(),a=n("schemes");return s&&s.size?p.default.createElement(a,{currentScheme:i,schemes:s,specActions:t}):null}}var P5=function(e){var t={};return me.d(t,e),t}({default:function(){return $Z}});const Eo={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,W.List)()};class N5 extends p.Component{componentDidMount(){const{dispatchInitialValue:t,value:r,onChange:n}=this.props;t?n(r):t===!1&&n("")}render(){let{schema:t,errors:r,value:n,onChange:i,getComponent:s,fn:a,disabled:o}=this.props;const u=t&&t.get?t.get("format"):null,c=t&&t.get?t.get("type"):null,l=a.jsonSchema202012.foldType(Wn(c)),f=a.isFileUploadIntended(t);let h=g=>s(g,!1,{failSilently:!0}),d=c?h(u?`JsonSchema_${c}_${u}`:`JsonSchema_${c}`):s("JsonSchema_string");return f||!W.List.isList(c)||l!=="array"&&l!=="object"||(d=s("JsonSchema_object")),d||(d=s("JsonSchema_string")),p.default.createElement(d,(0,At.default)({},this.props,{errors:r,fn:a,getComponent:s,value:n,onChange:i,schema:t,disabled:o}))}}z(N5,"defaultProps",Eo);class M5 extends p.Component{constructor(){super(...arguments);z(this,"onChange",r=>{const n=this.props.schema&&this.props.schema.get("type")==="file"?r.target.files[0]:r.target.value;this.props.onChange(n,this.props.keyName)});z(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,schema:i,errors:s,required:a,description:o,disabled:u}=this.props;const c=i&&i.get?i.get("enum"):null,l=i&&i.get?i.get("format"):null,f=i&&i.get?i.get("type"):null,h=i&&i.get?i.get("in"):null;if(n?(yf(n)||typeof n=="object")&&(n=Xr(n)):n="",s=s.toJS?s.toJS():[],c){const y=r("Select");return p.default.createElement(y,{className:s.length?"invalid":"",title:s.length?s:"",allowedValues:[...c],value:n,allowEmptyValue:!a,disabled:u,onChange:this.onEnumChange})}const d=u||h&&h==="formData"&&!("FormData"in window),g=r("Input");return f&&f==="file"?p.default.createElement(g,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:this.onChange,disabled:d}):p.default.createElement(P5.default,{type:l&&l==="password"?"password":"text",className:s.length?"invalid":"",title:s.length?s:"",value:n,minLength:0,debounceTimeout:350,placeholder:o,onChange:this.onChange,disabled:d})}}z(M5,"defaultProps",Eo);class D5 extends p.PureComponent{constructor(r,n){super(r,n);z(this,"onChange",()=>{this.props.onChange(this.state.value)});z(this,"onItemChange",(r,n)=>{this.setState(({value:i})=>({value:i.set(n,r)}),this.onChange)});z(this,"removeItem",r=>{this.setState(({value:n})=>({value:n.delete(r)}),this.onChange)});z(this,"addItem",()=>{const{fn:r}=this.props;let n=sw(this.state.value);this.setState(()=>({value:n.push(r.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))}),this.onChange)});z(this,"onEnumChange",r=>{this.setState(()=>({value:r}),this.onChange)});this.state={value:sw(r.value),schema:r.schema}}UNSAFE_componentWillReceiveProps(r){const n=sw(r.value);n!==this.state.value&&this.setState({value:n}),r.schema!==this.state.schema&&this.setState({schema:r.schema})}render(){let{getComponent:r,required:n,schema:i,errors:s,fn:a,disabled:o}=this.props;s=s.toJS?s.toJS():Array.isArray(s)?s:[];const u=s.filter(A=>typeof A=="string"),c=s.filter(A=>A.needRemove!==void 0).map(A=>A.error),l=this.state.value,f=!!(l&&l.count&&l.count()>0),h=i.getIn(["items","enum"]),d=i.getIn(["items","type"]),g=a.jsonSchema202012.foldType(Wn(d)),y=a.jsonSchema202012.getType(Wn(i.get("items"))),v=i.getIn(["items","format"]),E=i.get("items");let b,S=!1,x=d==="file"||d==="string"&&v==="binary";if(d&&v?b=r(`JsonSchema_${d}_${v}`):d!=="boolean"&&d!=="array"&&d!=="object"||(b=r(`JsonSchema_${d}`)),!W.List.isList(d)||g!=="array"&&g!=="object"||(b=r("JsonSchema_object")),b||x||(S=!0),h){const A=r("Select");return p.default.createElement(A,{className:s.length?"invalid":"",title:s.length?s:"",multiple:!0,value:l,disabled:o,allowedValues:h,allowEmptyValue:!n,onChange:this.onEnumChange})}const _=r("Button");return p.default.createElement("div",{className:"json-schema-array"},f?l.map((A,C)=>{const R=(0,W.fromJS)([...s.filter(O=>O.index===C).map(O=>O.error)]);return p.default.createElement("div",{key:C,className:"json-schema-form-item"},x?p.default.createElement(JC,{value:A,onChange:O=>this.onItemChange(O,C),disabled:o,errors:R,getComponent:r}):S?p.default.createElement(WC,{value:A,onChange:O=>this.onItemChange(O,C),disabled:o,errors:R}):p.default.createElement(b,(0,At.default)({},this.props,{value:A,onChange:O=>this.onItemChange(O,C),disabled:o,errors:R,schema:E,getComponent:r,fn:a})),o?null:p.default.createElement(_,{className:`btn btn-sm json-schema-form-item-remove ${c.length?"invalid":null}`,title:c.length?c:"",onClick:()=>this.removeItem(C)}," - "))}):null,o?null:p.default.createElement(_,{className:`btn btn-sm json-schema-form-item-add ${u.length?"invalid":null}`,title:u.length?u:"",onClick:this.addItem},"Add ",y," item"))}}z(D5,"defaultProps",Eo);class WC extends p.Component{constructor(){super(...arguments);z(this,"onChange",r=>{const n=r.target.value;this.props.onChange(n,this.props.keyName)})}render(){let{value:r,errors:n,description:i,disabled:s}=this.props;return r?(yf(r)||typeof r=="object")&&(r=Xr(r)):r="",n=n.toJS?n.toJS():[],p.default.createElement(P5.default,{type:"text",className:n.length?"invalid":"",title:n.length?n:"",value:r,minLength:0,debounceTimeout:350,placeholder:i,onChange:this.onChange,disabled:s})}}z(WC,"defaultProps",Eo);class JC extends p.Component{constructor(){super(...arguments);z(this,"onFileChange",r=>{const n=r.target.files[0];this.props.onChange(n,this.props.keyName)})}render(){let{getComponent:r,errors:n,disabled:i}=this.props;const s=r("Input"),a=i||!("FormData"in window);return p.default.createElement(s,{type:"file",className:n.length?"invalid":"",title:n.length?n:"",onChange:this.onFileChange,disabled:a})}}z(JC,"defaultProps",Eo);class q5 extends p.Component{constructor(){super(...arguments);z(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,errors:i,schema:s,required:a,disabled:o}=this.props;i=i.toJS?i.toJS():[];let u=s&&s.get?s.get("enum"):null,c=!u||!a,l=!u&&["true","false"];const f=r("Select");return p.default.createElement(f,{className:i.length?"invalid":"",title:i.length?i:"",value:String(n),disabled:o,allowedValues:u?[...u]:l,allowEmptyValue:c,onChange:this.onEnumChange})}}z(q5,"defaultProps",Eo);const cbe=e=>e.map(t=>{const r=t.propKey!==void 0?t.propKey:t.index;let n=typeof t=="string"?t:typeof t.error=="string"?t.error:null;if(!r&&n)return n;let i=t.error,s=`/${t.propKey}`;for(;typeof i=="object";){const a=i.propKey!==void 0?i.propKey:i.index;if(a===void 0||(s+=`/${a}`,!i.error))break;i=i.error}return`${s}: ${i}`});class $5 extends p.PureComponent{constructor(){super();z(this,"onChange",r=>{this.props.onChange(r)});z(this,"handleOnChange",r=>{const n=r.target.value;this.onChange(n)})}render(){let{getComponent:r,value:n,errors:i,disabled:s}=this.props;const a=r("TextArea");return i=i.toJS?i.toJS():Array.isArray(i)?i:[],p.default.createElement("div",null,p.default.createElement(a,{className:(0,Ot.default)({invalid:i.length}),title:i.length?cbe(i).join(", "):"",value:Xr(n),disabled:s,onChange:this.handleOnChange}))}}z($5,"defaultProps",Eo);function sw(e){return W.List.isList(e)?e:Array.isArray(e)?(0,W.fromJS)(e):(0,W.List)()}const lbe=({extensions:e,propClass:t=""})=>e.entrySeq().map(([r,n])=>{const i=Wn(n)??null;return p.default.createElement("tr",{key:r,className:t},p.default.createElement("td",null,r),p.default.createElement("td",null,JSON.stringify(i)))}).toArray();var So=function(e){var t={};return me.d(t,e),t}({default:function(){return LZ}});const fbe=(e,t)=>{const r=W.Map.isMap(e);if(!r&&!(0,So.default)(e))return!1;const n=r?e.get("type"):e.type;return t===n||Array.isArray(t)&&t.includes(n)};var F5=()=>({components:{modelExample:Z0e,ModelWrapper:Q0e,ModelCollapse:bA,Model:k5,Models:tbe,EnumModel:rbe,ObjectModel:ibe,ArrayModel:sbe,PrimitiveModel:abe,ModelExtensions:lbe,schemes:obe,SchemesContainer:ube,...sA},fn:{hasSchemaType:fbe}}),pbe=me(123),L5=me.n(pbe),B5=function(e){var t={};return me.d(t,e),t}({default:function(){return KZ}}),es=function(e){var t={};return me.d(t,e),t}({default:function(){return YZ}});const aw=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((r,n)=>r===t[n]),dbe=(...e)=>e;class hbe extends Map{delete(t){const r=Array.from(this.keys()).find(aw(t));return super.delete(r)}get(t){const r=Array.from(this.keys()).find(aw(t));return super.get(r)}has(t){return Array.from(this.keys()).findIndex(aw(t))!==-1}}var bf=(e,t=dbe)=>{const{Cache:r}=lc.default;lc.default.Cache=hbe;const n=(0,lc.default)(e,t);return lc.default.Cache=r,n};const B3={string:e=>e.pattern?(t=>{try{return new B5.default(t).gen()}catch{return"string"}})(e.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:e=>typeof e.default!="boolean"||e.default},U3=e=>{e=$a(e);let{type:t,format:r}=e,n=B3[`${t}_${r}`]||B3[t];return js(n)?n(e):"Unknown Type: "+e.type},mbe=e=>d5(e,"$$ref",t=>typeof t=="string"&&t.indexOf("#")>-1),U5=["maxProperties","minProperties"],V5=["minItems","maxItems"],z5=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],gbe=["minLength","maxLength"],Ko=(e,t,r={})=>{const n={...e};if(["example","default","enum","xml","type",...U5,...V5,...z5,...gbe].forEach(i=>(s=>{n[s]===void 0&&t[s]!==void 0&&(n[s]=t[s])})(i)),t.required!==void 0&&Array.isArray(t.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),t.required.forEach(i=>{n.required.includes(i)||n.required.push(i)})),t.properties){n.properties||(n.properties={});let i=$a(t.properties);for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(i[s]&&i[s].deprecated||i[s]&&i[s].readOnly&&!r.includeReadOnly||i[s]&&i[s].writeOnly&&!r.includeWriteOnly||n.properties[s]||(n.properties[s]=i[s],!t.required&&Array.isArray(t.required)&&t.required.indexOf(s)!==-1&&(n.required?n.required.push(s):n.required=[s])))}return t.items&&(n.items||(n.items={}),n.items=Ko(n.items,t.items,r)),n},ui=(e,t={},r=void 0,n=!1)=>{e&&js(e.toJS)&&(e=e.toJS());let i=r!==void 0||e&&e.example!==void 0||e&&e.default!==void 0;const s=!i&&e&&e.oneOf&&e.oneOf.length>0,a=!i&&e&&e.anyOf&&e.anyOf.length>0;if(!i&&(s||a)){const P=$a(s?e.oneOf[0]:e.anyOf[0]);if(!(e=Ko(e,P,t)).xml&&P.xml&&(e.xml=P.xml),e.example!==void 0&&P.example!==void 0)i=!0;else if(P.properties){e.properties||(e.properties={});let H=$a(P.properties);for(let Z in H)Object.prototype.hasOwnProperty.call(H,Z)&&(H[Z]&&H[Z].deprecated||H[Z]&&H[Z].readOnly&&!t.includeReadOnly||H[Z]&&H[Z].writeOnly&&!t.includeWriteOnly||e.properties[Z]||(e.properties[Z]=H[Z],!P.required&&Array.isArray(P.required)&&P.required.indexOf(Z)!==-1&&(e.required?e.required.push(Z):e.required=[Z])))}}const o={};let{xml:u,type:c,example:l,properties:f,additionalProperties:h,items:d}=e||{},{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:E,prefix:b,namespace:S}=u,x={};n&&(E=E||"notagname",v=(b?b+":":"")+E,S)&&(o[b?"xmlns:"+b:"xmlns"]=S),n&&(x[v]=[]);const _=P=>P.some(H=>Object.prototype.hasOwnProperty.call(e,H));e&&!c&&(f||h||_(U5)?c="object":d||_(V5)?c="array":_(z5)?(c="number",e.type="number"):i||e.enum||(c="string",e.type="string"));const A=P=>{if((e==null?void 0:e.maxItems)!=null&&(P=P.slice(0,e==null?void 0:e.maxItems)),(e==null?void 0:e.minItems)!=null){let H=0;for(;P.length<(e==null?void 0:e.minItems);)P.push(P[H++%P.length])}return P},C=$a(f);let R,O=0;const M=()=>e&&e.maxProperties!==null&&e.maxProperties!==void 0&&O>=e.maxProperties,k=P=>!e||e.maxProperties===null||e.maxProperties===void 0||!M()&&(!(H=>!(e&&e.required&&e.required.length&&e.required.includes(H)))(P)||e.maxProperties-O-(()=>{if(!e||!e.required)return 0;let H=0;return n?e.required.forEach(Z=>H+=x[Z]===void 0?0:1):e.required.forEach(Z=>{var V;return H+=((V=x[v])==null?void 0:V.find(G=>G[Z]!==void 0))===void 0?0:1}),e.required.length-H})()>0);if(R=n?(P,H=void 0)=>{if(e&&C[P]){if(C[P].xml=C[P].xml||{},C[P].xml.attribute){const V=Array.isArray(C[P].enum)?C[P].enum[0]:void 0,G=C[P].example,Q=C[P].default;return void(o[C[P].xml.name||P]=G!==void 0?G:Q!==void 0?Q:V!==void 0?V:U3(C[P]))}C[P].xml.name=C[P].xml.name||P}else C[P]||h===!1||(C[P]={xml:{name:P}});let Z=ui(e&&C[P]||void 0,t,H,n);k(P)&&(O++,Array.isArray(Z)?x[v]=x[v].concat(Z):x[v].push(Z))}:(P,H)=>{if(k(P)){if(Object.prototype.hasOwnProperty.call(e,"discriminator")&&e.discriminator&&Object.prototype.hasOwnProperty.call(e.discriminator,"mapping")&&e.discriminator.mapping&&Object.prototype.hasOwnProperty.call(e,"$$ref")&&e.$$ref&&e.discriminator.propertyName===P){for(let Z in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[Z])!==-1){x[P]=Z;break}}else x[P]=ui(C[P],t,H,n);O++}},i){let P;if(P=mbe(r!==void 0?r:l!==void 0?l:e.default),!n){if(typeof P=="number"&&c==="string")return`${P}`;if(typeof P!="string"||c==="string")return P;try{return JSON.parse(P)}catch{return P}}if(e||(c=Array.isArray(P)?"array":typeof P),c==="array"){if(!Array.isArray(P)){if(typeof P=="string")return P;P=[P]}const H=e?e.items:void 0;H&&(H.xml=H.xml||u||{},H.xml.name=H.xml.name||u.name);let Z=P.map(V=>ui(H,t,V,n));return Z=A(Z),u.wrapped?(x[v]=Z,(0,es.default)(o)||x[v].push({_attr:o})):x=Z,x}if(c==="object"){if(typeof P=="string")return P;for(let H in P)Object.prototype.hasOwnProperty.call(P,H)&&(e&&C[H]&&C[H].readOnly&&!g||e&&C[H]&&C[H].writeOnly&&!y||(e&&C[H]&&C[H].xml&&C[H].xml.attribute?o[C[H].xml.name||H]=P[H]:R(H,P[H])));return(0,es.default)(o)||x[v].push({_attr:o}),x}return x[v]=(0,es.default)(o)?P:[{_attr:o},P],x}if(c==="object"){for(let P in C)Object.prototype.hasOwnProperty.call(C,P)&&(C[P]&&C[P].deprecated||C[P]&&C[P].readOnly&&!g||C[P]&&C[P].writeOnly&&!y||R(P));if(n&&o&&x[v].push({_attr:o}),M())return x;if(h===!0)n?x[v].push({additionalProp:"Anything can be here"}):x.additionalProp1={},O++;else if(h){const P=$a(h),H=ui(P,t,void 0,n);if(n&&P.xml&&P.xml.name&&P.xml.name!=="notagname")x[v].push(H);else{const Z=e.minProperties!==null&&e.minProperties!==void 0&&O<e.minProperties?e.minProperties-O:3;for(let V=1;V<=Z;V++){if(M())return x;if(n){const G={};G["additionalProp"+V]=H.notagname,x[v].push(G)}else x["additionalProp"+V]=H;O++}}}return x}if(c==="array"){if(!d)return;let P;if(n&&(d.xml=d.xml||(e==null?void 0:e.xml)||{},d.xml.name=d.xml.name||u.name),Array.isArray(d.anyOf))P=d.anyOf.map(H=>ui(Ko(H,d,t),t,void 0,n));else if(Array.isArray(d.oneOf))P=d.oneOf.map(H=>ui(Ko(H,d,t),t,void 0,n));else{if(!(!n||n&&u.wrapped))return ui(d,t,void 0,n);P=[ui(d,t,void 0,n)]}return P=A(P),n&&u.wrapped?(x[v]=P,(0,es.default)(o)||x[v].push({_attr:o}),x):P}let D;if(e&&Array.isArray(e.enum))D=_o(e.enum)[0];else{if(!e)return;if(D=U3(e),typeof D=="number"){let P=e.minimum;P!=null&&(e.exclusiveMinimum&&P++,D=P);let H=e.maximum;H!=null&&(e.exclusiveMaximum&&H--,D=H)}if(typeof D=="string"&&(e.maxLength!==null&&e.maxLength!==void 0&&(D=D.slice(0,e.maxLength)),e.minLength!==null&&e.minLength!==void 0)){let P=0;for(;D.length<e.minLength;)D+=D[P++%D.length]}}if(c!=="file")return n?(x[v]=(0,es.default)(o)?D:[{_attr:o},D],x):D},V3=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),SA=(e,t,r)=>{const n=ui(e,t,r,!0);if(n)return typeof n=="string"?n:L5()(n,{declaration:!0,indent:" "})},wA=(e,t,r)=>ui(e,t,r,!1),W5=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],z3=bf(SA,W5),W3=bf(wA,W5),ybe=[{when:/json/,shouldStringifyTypes:["string"]}],vbe=["object"];var bbe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.memoizedSampleFromSchema(t,r,i),o=typeof a,u=ybe.reduce((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c,vbe);return(0,l5.default)(u,c=>c===o)?JSON.stringify(a,null,2):a},_be=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.getJsonSampleSchema(t,r,n,i);let o;try{o=Os.default.dump(Os.default.load(a),{lineWidth:-1},{schema:Os.JSON_SCHEMA}),o[o.length-1]===`
298
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},Ebe=e=>(t,r,n)=>{const{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
299
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let s=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=s[1]}}return i.memoizedCreateXMLExample(t,r,n)},Sbe=e=>(t,r="",n={},i=void 0)=>{const{fn:s}=e();return typeof(t==null?void 0:t.toJS)=="function"&&(t=t.toJS()),typeof(i==null?void 0:i.toJS)=="function"&&(i=i.toJS()),/xml/.test(r)?s.getXmlSampleSchema(t,n,i):/(yaml|yml)/.test(r)?s.getYamlSampleSchema(t,n,r,i):s.getJsonSampleSchema(t,n,r,i)},J5=({getSystem:e})=>{const t=bbe(e),r=_be(e),n=Ebe(e),i=Sbe(e);return{fn:{jsonSchema5:{inferSchema:V3,sampleFromSchema:wA,sampleFromSchemaGeneric:ui,createXMLExample:SA,memoizedSampleFromSchema:W3,memoizedCreateXMLExample:z3,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Ko},inferSchema:V3,sampleFromSchema:wA,sampleFromSchemaGeneric:ui,createXMLExample:SA,memoizedSampleFromSchema:W3,memoizedCreateXMLExample:z3,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Ko}}},Tm=function(e){var t={};return me.d(t,e),t}({default:function(){return ZZ}});const wbe=["get","put","post","delete","options","head","patch","trace"],gs=e=>e||(0,W.Map)(),xbe=(0,et.createSelector)(gs,e=>e.get("lastError")),Abe=(0,et.createSelector)(gs,e=>e.get("url")),Obe=(0,et.createSelector)(gs,e=>e.get("spec")||""),Cbe=(0,et.createSelector)(gs,e=>e.get("specSource")||"not-editor"),KC=(0,et.createSelector)(gs,e=>e.get("json",(0,W.Map)())),Rbe=(0,et.createSelector)(KC,e=>e.toJS()),Tbe=(0,et.createSelector)(gs,e=>e.get("resolved",(0,W.Map)())),Ibe=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),K5=(e,t)=>W.Map.isMap(e)&&W.Map.isMap(t)?t.get("$$ref")?t:(0,W.OrderedMap)().mergeWith(K5,e,t):t,Bi=(0,et.createSelector)(gs,e=>(0,W.OrderedMap)().mergeWith(K5,e.get("json"),e.get("resolvedSubtrees"))),Dn=e=>KC(e),jbe=(0,et.createSelector)(Dn,()=>!1),H5=(0,et.createSelector)(Dn,e=>p7(e&&e.get("info"))),kbe=(0,et.createSelector)(Dn,e=>p7(e&&e.get("externalDocs"))),G5=(0,et.createSelector)(H5,e=>e&&e.get("version")),Pbe=(0,et.createSelector)(G5,e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1)),Y5=(0,et.createSelector)(Bi,e=>e.get("paths")),Nbe=(0,Tm.default)(["get","put","post","delete","options","head","patch"]),X5=(0,et.createSelector)(Y5,e=>{let t=(0,W.List)();return!W.Map.isMap(e)||e.isEmpty()||e.forEach((r,n)=>{if(!r||!r.forEach)return{};r.forEach((i,s)=>{wbe.indexOf(s)<0||(t=t.push((0,W.fromJS)({path:n,method:s,operation:i,id:`${s}-${n}`})))})}),t}),Z5=(0,et.createSelector)(Dn,e=>(0,W.Set)(e.get("consumes"))),Q5=(0,et.createSelector)(Dn,e=>(0,W.Set)(e.get("produces"))),Mbe=(0,et.createSelector)(Dn,e=>e.get("security",(0,W.List)())),Dbe=(0,et.createSelector)(Dn,e=>e.get("securityDefinitions")),qbe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","definitions",t],null),n=e.getIn(["json","definitions",t],null);return r||n||null},$be=(0,et.createSelector)(Dn,e=>{const t=e.get("definitions");return W.Map.isMap(t)?t:(0,W.Map)()}),Fbe=(0,et.createSelector)(Dn,e=>e.get("basePath")),Lbe=(0,et.createSelector)(Dn,e=>e.get("host")),Bbe=(0,et.createSelector)(Dn,e=>e.get("schemes",(0,W.Map)())),e7=(0,et.createSelector)([X5,Z5,Q5],(e,t,r)=>e.map(n=>n.update("operation",i=>i?W.Map.isMap(i)?i.withMutations(s=>(s.get("consumes")||s.update("consumes",a=>(0,W.Set)(a).merge(t)),s.get("produces")||s.update("produces",a=>(0,W.Set)(a).merge(r)),s)):void 0:(0,W.Map)()))),HC=(0,et.createSelector)(Dn,e=>{const t=e.get("tags",(0,W.List)());return W.List.isList(t)?t.filter(r=>W.Map.isMap(r)):(0,W.List)()}),t7=(e,t)=>(HC(e)||(0,W.List)()).filter(W.Map.isMap).find(r=>r.get("name")===t,(0,W.Map)()),r7=(0,et.createSelector)(e7,HC,(e,t)=>e.reduce((r,n)=>{let i=(0,W.Set)(n.getIn(["operation","tags"]));return i.count()<1?r.update("default",(0,W.List)(),s=>s.push(n)):i.reduce((s,a)=>s.update(a,(0,W.List)(),o=>o.push(n)),r)},t.reduce((r,n)=>r.set(n.get("name"),(0,W.List)()),(0,W.OrderedMap)()))),Ube=e=>({getConfigs:t})=>{let{tagsSorter:r,operationsSorter:n}=t();return r7(e).sortBy((i,s)=>s,(i,s)=>{let a=typeof r=="function"?r:T3.tagsSorter[r];return a?a(i,s):null}).map((i,s)=>{let a=typeof n=="function"?n:T3.operationsSorter[n],o=a?i.sort(a):i;return(0,W.Map)({tagDetails:t7(e,s),operations:o})})},n7=(0,et.createSelector)(gs,e=>e.get("responses",(0,W.Map)())),i7=(0,et.createSelector)(gs,e=>e.get("requests",(0,W.Map)())),s7=(0,et.createSelector)(gs,e=>e.get("mutatedRequests",(0,W.Map)())),Vbe=(e,t,r)=>n7(e).getIn([t,r],null),zbe=(e,t,r)=>i7(e).getIn([t,r],null),Wbe=(e,t,r)=>s7(e).getIn([t,r],null),Jbe=()=>!0,GC=(e,t,r)=>{const n=Bi(e).getIn(["paths",...t,"parameters"],(0,W.OrderedMap)()),i=e.getIn(["meta","paths",...t,"parameters"],(0,W.OrderedMap)());return n.map(s=>{const a=i.get(`${r.get("in")}.${r.get("name")}`),o=i.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,W.OrderedMap)().merge(s,a,o)}).find(s=>s.get("in")===r.get("in")&&s.get("name")===r.get("name"),(0,W.OrderedMap)())},a7=(e,t,r,n)=>{const i=`${n}.${r}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",i],!1)},Kbe=(e,t,r,n)=>{const i=Bi(e).getIn(["paths",...t,"parameters"],(0,W.OrderedMap)()).find(s=>s.get("in")===n&&s.get("name")===r,(0,W.OrderedMap)());return GC(e,t,i)},o7=(e,t,r)=>{const n=Bi(e).getIn(["paths",t,r],(0,W.OrderedMap)()),i=e.getIn(["meta","paths",t,r],(0,W.OrderedMap)()),s=n.get("parameters",(0,W.List)()).map(a=>GC(e,[t,r],a));return(0,W.OrderedMap)().merge(n,i).set("parameters",s)};function Hbe(e,t,r,n){return t=t||[],e.getIn(["meta","paths",...t,"parameters"],(0,W.fromJS)([])).find(i=>W.Map.isMap(i)&&i.get("name")===r&&i.get("in")===n)||(0,W.Map)()}const Gbe=(0,et.createSelector)(Dn,e=>{const t=e.get("host");return typeof t=="string"&&t.length>0&&t[0]!=="/"});function u7(e,t,r){return t=t||[],o7(e,...t).get("parameters",(0,W.List)()).reduce((n,i)=>{let s=r&&i.get("in")==="body"?i.get("value_xml"):i.get("value");return W.List.isList(s)&&(s=s.filter(a=>a!=="")),n.set(od(i,{allowHashes:!1}),s)},(0,W.fromJS)({}))}function Ybe(e,t=""){if(W.List.isList(e))return e.some(r=>W.Map.isMap(r)&&r.get("in")===t)}function xA(e,t=""){if(W.List.isList(e))return e.some(r=>W.Map.isMap(r)&&r.get("type")===t)}function Xbe(e,t){t=t||[];let r=Bi(e).getIn(["paths",...t],(0,W.fromJS)({})),n=e.getIn(["meta","paths",...t],(0,W.fromJS)({})),i=c7(e,t);const s=r.get("parameters")||new W.List,a=n.get("consumes_value")?n.get("consumes_value"):xA(s,"file")?"multipart/form-data":xA(s,"formData")?"application/x-www-form-urlencoded":void 0;return(0,W.fromJS)({requestContentType:a,responseContentType:i})}function c7(e,t){t=t||[];const r=Bi(e).getIn(["paths",...t],null);if(r===null)return;const n=e.getIn(["meta","paths",...t,"produces_value"],null),i=r.getIn(["produces",0],null);return n||i||"application/json"}function Zbe(e,t){t=t||[];const r=Bi(e),n=r.getIn(["paths",...t],null);if(n===null)return;const[i]=t,s=n.get("produces",null),a=r.getIn(["paths",i,"produces"],null),o=r.getIn(["produces"],null);return s||a||o}function Qbe(e,t){t=t||[];const r=Bi(e),n=r.getIn(["paths",...t],null);if(n===null)return;const[i]=t,s=n.get("consumes",null),a=r.getIn(["paths",i,"consumes"],null),o=r.getIn(["consumes"],null);return s||a||o}const l7=(e,t,r)=>{let n=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),i=Array.isArray(n)?n[1]:null;return e.getIn(["scheme",t,r])||e.getIn(["scheme","_defaultScheme"])||i||""},e_e=(e,t,r)=>["http","https"].indexOf(l7(e,t,r))>-1,f7=(e,t)=>{t=t||[];const r=e.getIn(["meta","paths",...t,"parameters"],(0,W.fromJS)([])),n=[];if(r.length===0)return n;const i=(s,a=[])=>{const o=(u,c)=>{const l=[...c,u.get("propKey")||u.get("index")];return W.Map.isMap(u.get("error"))?i(u.get("error"),l):{error:u.get("error"),path:l}};return W.List.isList(s)?s.map(u=>W.Map.isMap(u)?o(u,a):{error:u,path:a}):o(s,a)};return r.forEach((s,a)=>{const o=a.split(".").slice(1,-1).join("."),u=s.get("errors");u&&u.count()&&i(u).forEach(({error:c,path:l})=>{n.push(((f,h,d)=>`For '${d}'${(h=h.reduce((g,y)=>typeof y=="number"?`${g}[${y}]`:g?`${g}.${y}`:y,""))?` at path '${h}'`:""}: ${f}.`)(c,l,o))})}),n},t_e=(e,t)=>f7(e,t).length===0,r_e=(e,t)=>{let r={requestBody:!1,requestContentType:{}},n=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,W.fromJS)([]));return n.size<1||(n.getIn(["required"])&&(r.requestBody=n.getIn(["required"])),n.getIn(["content"]).entrySeq().forEach(i=>{const s=i[0];if(i[1].getIn(["schema","required"])){const a=i[1].getIn(["schema","required"]).toJS();r.requestContentType[s]=a}})),r},n_e=(e,t,r,n)=>{if((r||n)&&r===n)return!0;let i=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,W.fromJS)([]));if(i.size<2||!r||!n)return!1;let s=i.getIn([r,"schema","properties"],(0,W.fromJS)([])),a=i.getIn([n,"schema","properties"],(0,W.fromJS)([]));return!!s.equals(a)};function p7(e){return W.Map.isMap(e)?e:new W.Map}var i_e=function(e){var t={};return me.d(t,e),t}({default:function(){return eQ}}),s_e=function(e){var t={};return me.d(t,e),t}({default:function(){return iQ}}),d7=function(e){var t={};return me.d(t,e),t}({default:function(){return oQ}}),a_e=function(e){var t={};return me.d(t,e),t}({default:function(){return BQ}});const YC="spec_update_spec",XC="spec_update_url",ZC="spec_update_json",Im="spec_update_param",QC="spec_update_empty_param_inclusion",eR="spec_validate_param",tR="spec_set_response",rR="spec_set_request",nR="spec_set_mutated_request",h7="spec_log_request",iR="spec_clear_response",sR="spec_clear_request",aR="spec_clear_validate_param",jm="spec_update_operation_meta_value",oR="spec_update_resolved",km="spec_update_resolved_subtree",uR="set_scheme",o_e=e=>(0,i_e.default)(e)?e:"";function u_e(e){const t=o_e(e).replace(/\t/g," ");if(typeof e=="string")return{type:YC,payload:t}}function c_e(e){return{type:oR,payload:e}}function l_e(e){return{type:XC,payload:e}}function f_e(e){return{type:ZC,payload:e}}const p_e=e=>({specActions:t,specSelectors:r,errActions:n})=>{let{specStr:i}=r,s=null;try{e=e||i(),n.clear({source:"parser"}),s=Os.default.load(e,{schema:Os.JSON_SCHEMA})}catch(a){return console.error(a),n.newSpecErr({source:"parser",level:"error",message:a.reason,line:a.mark&&a.mark.line?a.mark.line+1:void 0})}return s&&typeof s=="object"?t.updateJsonSpec(s):t.updateJsonSpec({})};let J3=!1;const d_e=(e,t)=>({specActions:r,specSelectors:n,errActions:i,fn:{fetch:s,resolve:a,AST:o={}},getConfigs:u})=>{J3||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),J3=!0);const{modelPropertyMacro:c,parameterMacro:l,requestInterceptor:f,responseInterceptor:h}=u();e===void 0&&(e=n.specJson()),t===void 0&&(t=n.url());let d=o.getLineNumberForPath?o.getLineNumberForPath:()=>{},g=n.specStr();return a({fetch:s,spec:e,baseDoc:String(new URL(t,document.baseURI)),modelPropertyMacro:c,parameterMacro:l,requestInterceptor:f,responseInterceptor:h}).then(({spec:y,errors:v})=>{if(i.clear({type:"thrown"}),Array.isArray(v)&&v.length>0){let E=v.map(b=>(console.error(b),b.line=b.fullPath?d(g,b.fullPath):null,b.path=b.fullPath?b.fullPath.join("."):null,b.level="error",b.type="thrown",b.source="resolver",Object.defineProperty(b,"message",{enumerable:!0,value:b.message}),b));i.newThrownErrBatch(E)}return r.updateResolved(y)})};let ud=[];const h_e=(0,s_e.default)(()=>{const e=ud.reduce((t,{path:r,system:n})=>(t.has(n)||t.set(n,[]),t.get(n).push(r),t),new Map);ud=[],e.forEach(async(t,r)=>{if(!r)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!r.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:n,errSelectors:i,fn:{resolveSubtree:s,fetch:a,AST:o={}},specSelectors:u,specActions:c}=r,l=o.getLineNumberForPath??(0,Tm.default)(void 0),f=u.specStr(),{modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y}=r.getConfigs();try{const v=await t.reduce(async(E,b)=>{let{resultMap:S,specWithCurrentSubtrees:x}=await E;const{errors:_,spec:A}=await s(x,b,{baseDoc:String(new URL(u.url(),document.baseURI)),modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y});if(i.allErrors().size&&n.clearBy(C=>{var R;return C.get("type")!=="thrown"||C.get("source")!=="resolver"||!((R=C.get("fullPath"))!=null&&R.every((O,M)=>O===b[M]||b[M]===void 0))}),Array.isArray(_)&&_.length>0){let C=_.map(R=>(R.line=R.fullPath?l(f,R.fullPath):null,R.path=R.fullPath?R.fullPath.join("."):null,R.level="error",R.type="thrown",R.source="resolver",Object.defineProperty(R,"message",{enumerable:!0,value:R.message}),R));n.newThrownErrBatch(C)}return A&&u.isOAS3()&&b[0]==="components"&&b[1]==="securitySchemes"&&await Promise.all(Object.values(A).filter(C=>(C==null?void 0:C.type)==="openIdConnect").map(async C=>{const R={url:C.openIdConnectUrl,requestInterceptor:g,responseInterceptor:y};try{const O=await a(R);O instanceof Error||O.status>=400?console.error(O.statusText+" "+R.url):C.openIdConnectData=JSON.parse(O.text)}catch(O){console.error(O)}})),(0,d7.default)(S,b,A),x=(0,a_e.default)(b,A,x),{resultMap:S,specWithCurrentSubtrees:x}},Promise.resolve({resultMap:(u.specResolvedSubtree([])||(0,W.Map)()).toJS(),specWithCurrentSubtrees:u.specJS()}));c.updateResolvedSubtree([],v.resultMap)}catch(v){console.error(v)}})},35),m_e=e=>t=>{ud.find(({path:r,system:n})=>n===t&&r.toString()===e.toString())||(ud.push({path:e,system:t}),h_e())};function g_e(e,t,r,n,i){return{type:Im,payload:{path:e,value:n,paramName:t,paramIn:r,isXml:i}}}function y_e(e,t,r,n){return{type:Im,payload:{path:e,param:t,value:r,isXml:n}}}const v_e=(e,t)=>({type:km,payload:{path:e,value:t}}),b_e=()=>({type:km,payload:{path:[],value:(0,W.Map)()}}),__e=(e,t)=>({type:eR,payload:{pathMethod:e,isOAS3:t}}),E_e=(e,t,r,n)=>({type:QC,payload:{pathMethod:e,paramName:t,paramIn:r,includeEmptyValue:n}});function S_e(e){return{type:aR,payload:{pathMethod:e}}}function w_e(e,t){return{type:jm,payload:{path:e,value:t,key:"consumes_value"}}}function x_e(e,t){return{type:jm,payload:{path:e,value:t,key:"produces_value"}}}const A_e=(e,t,r)=>({payload:{path:e,method:t,res:r},type:tR}),O_e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:rR}),C_e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:nR}),R_e=e=>({payload:e,type:h7}),T_e=e=>({fn:t,specActions:r,specSelectors:n,getConfigs:i,oas3Selectors:s})=>{let{pathName:a,method:o,operation:u}=e,{requestInterceptor:c,responseInterceptor:l}=i(),f=u.toJS();if(u&&u.get("parameters")&&u.get("parameters").filter(g=>g&&g.get("allowEmptyValue")===!0).forEach(g=>{if(n.parameterInclusionSettingFor([a,o],g.get("name"),g.get("in"))){e.parameters=e.parameters||{};const y=h5(g,e.parameters);(!y||y&&y.size===0)&&(e.parameters[g.get("name")]="")}}),e.contextUrl=(0,zc.default)(n.url()).toString(),f&&f.operationId?e.operationId=f.operationId:f&&a&&o&&(e.operationId=t.opId(f,a,o)),n.isOAS3()){const g=`${a}:${o}`;e.server=s.selectedServer(g)||s.selectedServer();const y=s.serverVariables({server:e.server,namespace:g}).toJS(),v=s.serverVariables({server:e.server}).toJS();e.serverVariables=Object.keys(y).length?y:v,e.requestContentType=s.requestContentType(a,o),e.responseContentType=s.responseContentType(a,o)||"*/*";const E=s.requestBodyValue(a,o),b=s.requestBodyInclusionSetting(a,o);E&&E.toJS?e.requestBody=E.map(S=>W.Map.isMap(S)?S.get("value"):S).filter((S,x)=>(Array.isArray(S)?S.length!==0:!TC(S))||b.get(x)).toJS():e.requestBody=E}let h=Object.assign({},e);h=t.buildRequest(h),r.setRequest(e.pathName,e.method,h),e.requestInterceptor=async g=>{let y=await c.apply(void 0,[g]),v=Object.assign({},y);return r.setMutatedRequest(e.pathName,e.method,v),y},e.responseInterceptor=l;const d=Date.now();return t.execute(e).then(g=>{g.duration=Date.now()-d,r.setResponse(e.pathName,e.method,g)}).catch(g=>{g.message==="Failed to fetch"&&(g.name="",g.message=`**Failed to fetch.**
300
+ **Possible Reasons:**
301
+ - CORS
302
+ - Network Failure
303
+ - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(e.pathName,e.method,{error:!0,err:g})})},I_e=({path:e,method:t,...r}={})=>n=>{let{fn:{fetch:i},specSelectors:s,specActions:a}=n,o=s.specJsonWithResolvedSubtrees().toJS(),u=s.operationScheme(e,t),{requestContentType:c,responseContentType:l}=s.contentTypeValues([e,t]).toJS(),f=/xml/i.test(c),h=s.parameterValues([e,t],f).toJS();return a.executeRequest({...r,fetch:i,spec:o,pathName:e,method:t,parameters:h,requestContentType:c,scheme:u,responseContentType:l})};function j_e(e,t){return{type:iR,payload:{path:e,method:t}}}function k_e(e,t){return{type:sR,payload:{path:e,method:t}}}function P_e(e,t,r){return{type:uR,payload:{scheme:e,path:t,method:r}}}var N_e={[YC]:(e,t)=>typeof t.payload=="string"?e.set("spec",t.payload):e,[XC]:(e,t)=>e.set("url",t.payload+""),[ZC]:(e,t)=>e.set("json",Xi(t.payload)),[oR]:(e,t)=>e.setIn(["resolved"],Xi(t.payload)),[km]:(e,t)=>{const{value:r,path:n}=t.payload;return e.setIn(["resolvedSubtrees",...n],Xi(r))},[Im]:(e,{payload:t})=>{let{path:r,paramName:n,paramIn:i,param:s,value:a,isXml:o}=t,u=s?od(s):`${i}.${n}`;const c=o?"value_xml":"value";return e.setIn(["meta","paths",...r,"parameters",u,c],(0,W.fromJS)(a))},[QC]:(e,{payload:t})=>{let{pathMethod:r,paramName:n,paramIn:i,includeEmptyValue:s}=t;if(!n||!i)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),e;const a=`${i}.${n}`;return e.setIn(["meta","paths",...r,"parameter_inclusions",a],s)},[eR]:(e,{payload:{pathMethod:t,isOAS3:r}})=>{const n=Bi(e).getIn(["paths",...t]),i=u7(e,t).toJS();return e.updateIn(["meta","paths",...t,"parameters"],(0,W.fromJS)({}),s=>n.get("parameters",(0,W.List)()).reduce((a,o)=>{const u=h5(o,i),c=a7(e,t,o.get("name"),o.get("in")),l=((f,h,{isOAS3:d=!1,bypassRequiredCheck:g=!1}={})=>{let y=f.get("required"),{schema:v,parameterContentMediaType:E}=xp(f,{isOAS3:d});return mA(h,v,y,g,E)})(o,u,{bypassRequiredCheck:c,isOAS3:r});return a.setIn([od(o),"errors"],(0,W.fromJS)(l))},s))},[aR]:(e,{payload:{pathMethod:t}})=>e.updateIn(["meta","paths",...t,"parameters"],(0,W.fromJS)([]),r=>r.map(n=>n.set("errors",(0,W.fromJS)([])))),[tR]:(e,{payload:{res:t,path:r,method:n}})=>{let i;i=t.error?Object.assign({error:!0,name:t.err.name,message:t.err.message,statusCode:t.err.statusCode},t.err.response):t,i.headers=i.headers||{};let s=e.setIn(["responses",r,n],Xi(i));return Zt.Blob&&i.data instanceof Zt.Blob&&(s=s.setIn(["responses",r,n,"text"],i.data)),s},[rR]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["requests",r,n],Xi(t)),[nR]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["mutatedRequests",r,n],Xi(t)),[jm]:(e,{payload:{path:t,value:r,key:n}})=>{let i=["paths",...t],s=["meta","paths",...t];return e.getIn(["json",...i])||e.getIn(["resolved",...i])||e.getIn(["resolvedSubtrees",...i])?e.setIn([...s,n],(0,W.fromJS)(r)):e},[iR]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["responses",t,r]),[sR]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["requests",t,r]),[uR]:(e,{payload:{scheme:t,path:r,method:n}})=>r&&n?e.setIn(["scheme",r,n],t):r||n?void 0:e.setIn(["scheme","_defaultScheme"],t)};const M_e=(e,{specActions:t})=>(...r)=>{e(...r),t.parseToJson(...r)},D_e=(e,{specActions:t})=>(...r)=>{e(...r),t.invalidateResolvedSubtreeCache();const[n]=r,i=(0,vA.default)(n,["paths"])||{};Object.keys(i).forEach(s=>{(0,vA.default)(i,[s]).$ref&&t.requestResolvedSubtree(["paths",s])}),t.requestResolvedSubtree(["components","securitySchemes"])},q_e=(e,{specActions:t})=>r=>(t.logRequest(r),e(r)),$_e=(e,{specSelectors:t})=>r=>e(r,t.isOAS3());var m7=()=>({statePlugins:{spec:{wrapActions:{...uA},reducers:{...N_e},actions:{...oA},selectors:{...aA}}}}),K3=function(e){var t={};return me.d(t,e),t}({default:function(){return v9}}),H3=function(e){var t={};return me.d(t,e),t}({default:function(){return E9}}),G3=function(e){var t={};return me.d(t,e),t}({default:function(){return S9}}),Y3=function(e){var t={};return me.d(t,e),t}({default:function(){return Ife}}),F_e=function(e){var t={};return me.d(t,e),t}({makeResolve:function(){return aU}}),X3=function(e){var t={};return me.d(t,e),t}({buildRequest:function(){return vU},execute:function(){return Vpe}}),ow=function(e){var t={};return me.d(t,e),t}({default:function(){return qc},makeHttp:function(){return $se},serializeRes:function(){return m9}}),L_e=function(e){var t={};return me.d(t,e),t}({makeResolveSubtree:function(){return Gpe}}),g7=function(e){var t={};return me.d(t,e),t}({opId:function(){return $h}});const B_e=(e,t)=>(...r)=>{e(...r);const n=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=n};function y7({configs:e,getConfigs:t}){return{fn:{fetch:(0,ow.makeHttp)(ow.default,e.preFetch,e.postFetch),buildRequest:X3.buildRequest,execute:X3.execute,resolve:(0,F_e.makeResolve)({strategies:[Y3.default,G3.default,H3.default,K3.default]}),resolveSubtree:async(r,n,i={})=>{const s=t(),a={modelPropertyMacro:s.modelPropertyMacro,parameterMacro:s.parameterMacro,requestInterceptor:s.requestInterceptor,responseInterceptor:s.responseInterceptor,strategies:[Y3.default,G3.default,H3.default,K3.default]};return(0,L_e.makeResolveSubtree)(a)(r,n,i)},serializeRes:ow.serializeRes,opId:g7.opId},statePlugins:{configs:{wrapActions:{loaded:B_e}}}}}function v7(){return{fn:{shallowEqualKeys:Ave,sanitizeUrl:vr}}}var b7=function(e){var t={};return me.d(t,e),t}({default:function(){return Fz.default}}),_7=function(e){var t={};return me.d(t,e),t}({Provider:function(){return Vde},connect:function(){return Bde}}),E7=function(e){var t={};return me.d(t,e),t}({default:function(){return Wde}});const U_e=e=>t=>{const{fn:r}=e();class n extends p.Component{render(){return p.default.createElement(t,(0,At.default)({},e(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(t)})`,n},V_e=(e,t)=>r=>{const{fn:n}=e();class i extends p.Component{render(){return p.default.createElement(_7.Provider,{store:t},p.default.createElement(r,(0,At.default)({},this.props,this.context)))}}return i.displayName=`WithRoot(${n.getDisplayName(r)})`,i},Z3=(e,t,r)=>(0,cc.compose)(r?V_e(e,r):E7.default,(0,_7.connect)((n,i)=>{var o;const s={...i,...e()};return(((o=t.prototype)==null?void 0:o.mapStateToProps)||(u=>({state:u})))(n,s)}),U_e(e))(t),Q3=(e,t,r,n)=>{for(const i in t){const s=t[i];typeof s=="function"&&s(r[i],n[i],e())}},z_e=(e,t,r)=>(n,i)=>{const{fn:s}=e(),a=r(n,"root");class o extends p.Component{constructor(c,l){super(c,l),Q3(e,i,c,{})}UNSAFE_componentWillReceiveProps(c){Q3(e,i,c,this.props)}render(){const c=(0,DC.default)(this.props,i?Object.keys(i):[]);return p.default.createElement(a,c)}}return o.displayName=`WithMappedContainer(${s.getDisplayName(a)})`,o},W_e=(e,t,r,n)=>i=>{const s=r(e,t,n)("App","root"),{createRoot:a}=b7.default;a(i).render(p.default.createElement(s,null))},AA=(e,t,r)=>(n,i,s={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const a=r(n);return a?i?i==="root"?Z3(e,a,t()):Z3(e,a):a:(s.failSilently||e().log.warn("Could not find component:",n),null)},J_e=e=>e.displayName||e.name||"Component";var S7=({getComponents:e,getStore:t,getSystem:r})=>{const n=(i=AA(r,t,e),wve(i,(...a)=>JSON.stringify(a)));var i;const s=(a=>bf(a,(...o)=>o))(z_e(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:s,render:W_e(r,t,AA,e)},fn:{getDisplayName:J_e}}},w7=({React:e,getSystem:t,getStore:r,getComponents:n})=>{const i={},s=parseInt(e==null?void 0:e.version,10);return s>=16&&s<18&&(i.render=((a,o,u,c)=>l=>{const f=u(a,o,c)("App","root");b7.default.render(p.default.createElement(f,null),l)})(t,r,AA,n)),{rootInjects:i}};function x7(e){let{fn:t}=e;const r={download:i=>({errActions:s,specSelectors:a,specActions:o,getConfigs:u})=>{let{fetch:c}=t;const l=u();function f(h){if(h instanceof Error||h.status>=400)return o.updateLoadingStatus("failed"),s.newThrownErr(Object.assign(new Error((h.message||h.statusText)+" "+i),{source:"fetch"})),void(!h.status&&h instanceof Error&&function(){try{let g;if("URL"in Zt?g=new URL(i):(g=document.createElement("a"),g.href=i),g.protocol!=="https:"&&Zt.location.protocol==="https:"){const y=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${g.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void s.newThrownErr(y)}if(g.origin!==Zt.location.origin){const y=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${Zt.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});s.newThrownErr(y)}}catch{return}}());o.updateLoadingStatus("success"),o.updateSpec(h.text),a.url()!==i&&o.updateUrl(i)}i=i||a.url(),o.updateLoadingStatus("loading"),s.clear({source:"fetch"}),c({url:i,loadSpec:!0,requestInterceptor:l.requestInterceptor||(h=>h),responseInterceptor:l.responseInterceptor||(h=>h),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(f,f)},updateLoadingStatus:i=>{let s=[null,"loading","failed","success","failedConfig"];return s.indexOf(i)===-1&&console.error(`Error: ${i} is not one of ${JSON.stringify(s)}`),{type:"spec_update_loading_status",payload:i}}};let n={loadingStatus:(0,et.createSelector)(i=>i||(0,W.Map)(),i=>i.get("loadingStatus")||null)};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(i,s)=>typeof s.payload=="string"?i.set("loadingStatus",s.payload):i},selectors:n}}}}var Ss=function(e){var t={};return me.d(t,e),t}({default:function(){return $U}}),eL=function(e){var t={};return me.d(t,e),t}({default:function(){return She}}),K_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Ahe}}),H_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Rhe}}),G_e=function(e){var t={};return me.d(t,e),t}({default:function(){return jhe}}),Y_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Nhe}}),X_e=function(e){var t={};return me.d(t,e),t}({default:function(){return qhe}}),Z_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Lhe}}),Q_e=()=>{Ss.default.registerLanguage("json",K_e.default),Ss.default.registerLanguage("js",eL.default),Ss.default.registerLanguage("xml",H_e.default),Ss.default.registerLanguage("yaml",Y_e.default),Ss.default.registerLanguage("http",X_e.default),Ss.default.registerLanguage("bash",G_e.default),Ss.default.registerLanguage("powershell",Z_e.default),Ss.default.registerLanguage("javascript",eL.default)},A7=function(e){var t={};return me.d(t,e),t}({default:function(){return Bhe}}),eEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Uhe}}),tEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Vhe}}),rEe=function(e){var t={};return me.d(t,e),t}({default:function(){return zhe}}),nEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Whe}}),iEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Jhe}}),sEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Khe}});const aEe={agate:A7.default,arta:eEe.default,monokai:tEe.default,nord:rEe.default,obsidian:nEe.default,"tomorrow-night":iEe.default,idea:sEe.default},oEe=A7.default;var uEe=({language:e,className:t="",getConfigs:r,syntaxHighlighting:n={},children:i=""})=>{const s=r().syntaxHighlight.theme,{styles:a,defaultStyle:o}=n,u=(a==null?void 0:a[s])??o;return p.default.createElement(Ss.default,{language:e,className:t,style:u},i)},cEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Yhe}}),lEe=({fileName:e="response.txt",className:t,downloadable:r,getComponent:n,canCopy:i,language:s,children:a})=>{const o=(0,p.useRef)(null),u=n("SyntaxHighlighter",!0),c=l=>{const{target:f,deltaY:h}=l,{scrollHeight:d,offsetHeight:g,scrollTop:y}=f;d>g&&(y===0&&h<0||g+y>=d&&h>0)&&l.preventDefault()};return(0,p.useEffect)(()=>{const l=Array.from(o.current.childNodes).filter(f=>!!f.nodeType&&f.classList.contains("microlight"));return l.forEach(f=>f.addEventListener("mousewheel",c,{passive:!1})),()=>{l.forEach(f=>f.removeEventListener("mousewheel",c))}},[a,t,s]),p.default.createElement("div",{className:"highlight-code",ref:o},i&&p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement(Rm.CopyToClipboard,{text:a},p.default.createElement("button",null))),r?p.default.createElement("button",{className:"download-contents",onClick:()=>{(0,cEe.default)(a,e)}},"Download"):null,p.default.createElement(u,{language:s,className:(0,Ot.default)(t,"microlight"),renderPlainText:({children:l,PlainTextViewer:f})=>p.default.createElement(f,{className:t},l)},a))},fEe=({className:e="",children:t})=>p.default.createElement("pre",{className:(0,Ot.default)("microlight",e)},t),pEe=(e,t)=>({renderPlainText:r,children:n,...i})=>{const s=t.getConfigs().syntaxHighlight.activated,a=t.getComponent("PlainTextViewer");return s||typeof r!="function"?s?p.default.createElement(e,i,n):p.default.createElement(a,null,n):r({children:n,PlainTextViewer:a})};const dEe=()=>({afterLoad:Q_e,rootInjects:{syntaxHighlighting:{styles:aEe,defaultStyle:oEe}},components:{SyntaxHighlighter:uEe,HighlightCode:lEe,PlainTextViewer:fEe}}),hEe=()=>({wrapComponents:{SyntaxHighlighter:pEe}});var O7=()=>[dEe,hEe],mEe=()=>{const{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.21.0",GIT_COMMIT:"g26967308",GIT_DIRTY:!0,BUILD_TIME:"Sun, 13 Apr 2025 19:36:35 GMT"};Zt.versions=Zt.versions||{},Zt.versions.swaggerUI={version:r,gitRevision:t,gitDirty:e,buildTimestamp:n}},C7=()=>({afterLoad:mEe}),gEe=function(e){var t={};return me.d(t,e),t}({default:function(){return eme}});const R7=console.error,yEe=e=>t=>{const{getComponent:r,fn:n}=e(),i=r("ErrorBoundary"),s=n.getDisplayName(t);class a extends p.Component{render(){return p.default.createElement(i,{targetName:s,getComponent:r,fn:n},p.default.createElement(t,(0,At.default)({},this.props,this.context)))}}var o;return a.displayName=`WithErrorBoundary(${s})`,(o=t).prototype&&o.prototype.isReactComponent&&(a.prototype.mapStateToProps=t.prototype.mapStateToProps),a};var T7=({name:e})=>p.default.createElement("div",{className:"fallback"},"😱 ",p.default.createElement("i",null,"Could not render ",e==="t"?"this component":e,", see the console."));class I7 extends p.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}constructor(...t){super(...t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.props.fn.componentDidCatch(t,r)}render(){const{getComponent:t,targetName:r,children:n}=this.props;if(this.state.hasError){const i=t("Fallback");return p.default.createElement(i,{name:r})}return n}}z(I7,"defaultProps",{targetName:"this component",getComponent:()=>T7,fn:{componentDidCatch:R7},children:null});var vEe=I7,j7=({componentList:e=[],fullOverride:t=!1}={})=>({getSystem:r})=>{const n=t?e:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...e],i=(0,gEe.default)(n,Array(n.length).fill((s,{fn:a})=>a.withErrorBoundary(s)));return{fn:{componentDidCatch:R7,withErrorBoundary:yEe(r)},components:{ErrorBoundary:vEe,Fallback:T7},wrapComponents:i}};class bEe extends p.default.Component{getLayout(){const{getComponent:t,layoutSelectors:r}=this.props,n=r.current();return t(n,!0)||(()=>p.default.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const t=this.getLayout();return p.default.createElement(t,null)}}var _Ee=bEe;class EEe extends p.default.Component{constructor(){super(...arguments);z(this,"close",()=>{let{authActions:r}=this.props;r.showDefinitions(!1)})}render(){let{authSelectors:r,authActions:n,getComponent:i,errSelectors:s,specSelectors:a,fn:{AST:o={}}}=this.props,u=r.shownDefinitions();const c=i("auths"),l=i("CloseIcon");return p.default.createElement("div",{className:"dialog-ux"},p.default.createElement("div",{className:"backdrop-ux"}),p.default.createElement("div",{className:"modal-ux"},p.default.createElement("div",{className:"modal-dialog-ux"},p.default.createElement("div",{className:"modal-ux-inner"},p.default.createElement("div",{className:"modal-ux-header"},p.default.createElement("h3",null,"Available authorizations"),p.default.createElement("button",{type:"button",className:"close-modal",onClick:this.close},p.default.createElement(l,null))),p.default.createElement("div",{className:"modal-ux-content"},u.valueSeq().map((f,h)=>p.default.createElement(c,{key:h,AST:o,definitions:f,getComponent:i,errSelectors:s,authSelectors:r,authActions:n,specSelectors:a})))))))}}class SEe extends p.default.Component{render(){let{isAuthorized:t,showPopup:r,onClick:n,getComponent:i}=this.props;const s=i("authorizationPopup",!0),a=i("LockAuthIcon",!0),o=i("UnlockAuthIcon",!0);return p.default.createElement("div",{className:"auth-wrapper"},p.default.createElement("button",{className:t?"btn authorize locked":"btn authorize unlocked",onClick:n},p.default.createElement("span",null,"Authorize"),t?p.default.createElement(a,null):p.default.createElement(o,null)),r&&p.default.createElement(s,null))}}class wEe extends p.default.Component{render(){const{authActions:t,authSelectors:r,specSelectors:n,getComponent:i}=this.props,s=n.securityDefinitions(),a=r.definitionsToAuthorize(),o=i("authorizeBtn");return s?p.default.createElement(o,{onClick:()=>t.showDefinitions(a),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:i}):null}}class xEe extends p.default.Component{constructor(){super(...arguments);z(this,"onClick",r=>{r.stopPropagation();let{onClick:n}=this.props;n&&n()})}render(){let{isAuthorized:r,getComponent:n}=this.props;const i=n("LockAuthOperationIcon",!0),s=n("UnlockAuthOperationIcon",!0);return p.default.createElement("button",{className:"authorization__btn","aria-label":r?"authorization button locked":"authorization button unlocked",onClick:this.onClick},r?p.default.createElement(i,{className:"locked"}):p.default.createElement(s,{className:"unlocked"}))}}class AEe extends p.default.Component{constructor(r,n){super(r,n);z(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});z(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});z(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:i}=this.props,s=i.map((a,o)=>o).toArray();this.setState(s.reduce((a,o)=>(a[o]="",a),{})),n.logoutWithPersistOption(s)});z(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:i,errSelectors:s}=this.props;const a=n("AuthItem"),o=n("oauth2",!0),u=n("Button");let c=i.authorized(),l=r.filter((d,g)=>!!c.get(g)),f=r.filter(d=>d.get("type")!=="oauth2"),h=r.filter(d=>d.get("type")==="oauth2");return p.default.createElement("div",{className:"auth-container"},!!f.size&&p.default.createElement("form",{onSubmit:this.submitAuth},f.map((d,g)=>p.default.createElement(a,{key:g,schema:d,name:g,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i})).toArray(),p.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?p.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),p.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h&&h.size?p.default.createElement("div",null,p.default.createElement("div",{className:"scope-def"},p.default.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),p.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter(d=>d.get("type")==="oauth2").map((d,g)=>p.default.createElement("div",{key:g},p.default.createElement(o,{authorized:c,schema:d,name:g}))).toArray()):null)}}class OEe extends p.default.Component{render(){let{schema:t,name:r,getComponent:n,onAuthChange:i,authorized:s,errSelectors:a,authSelectors:o}=this.props;const u=n("apiKeyAuth"),c=n("basicAuth");let l;const f=t.get("type");switch(f){case"apiKey":l=p.default.createElement(u,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;case"basic":l=p.default.createElement(c,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;default:l=p.default.createElement("div",{key:r},"Unknown security definition type ",f)}return p.default.createElement("div",{key:`${r}-jump`},l)}}class CEe extends p.default.Component{render(){let{error:t}=this.props,r=t.get("level"),n=t.get("message"),i=t.get("source");return p.default.createElement("div",{className:"errors"},p.default.createElement("b",null,i," ",r),p.default.createElement("span",null,n))}}class REe extends p.default.Component{constructor(r,n){super(r,n);z(this,"onChange",r=>{let{onChange:n}=this.props,i=r.target.value,s=Object.assign({},this.state,{value:i});this.setState(s),n(s)});let{name:i,schema:s}=this.props,a=this.getValue();this.state={name:i,schema:s,value:a}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:i,name:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("Markdown",!0),h=n("JumpToPath",!0),d=a.selectAuthPath(s);let g=this.getValue(),y=i.allErrors().filter(v=>v.get("authId")===s);return p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s||r.get("name"))," (apiKey)",p.default.createElement(h,{path:d})),g&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("p",null,"Name: ",p.default.createElement("code",null,r.get("name")))),p.default.createElement(u,null,p.default.createElement("p",null,"In: ",p.default.createElement("code",null,r.get("in")))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"api_key_value"},"Value:"),g?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),y.valueSeq().map((v,E)=>p.default.createElement(l,{error:v,key:E})))}}class TEe extends p.default.Component{constructor(r,n){super(r,n);z(this,"onChange",r=>{let{onChange:n}=this.props,{value:i,name:s}=r.target,a=this.state.value;a[s]=i,this.setState({value:a}),n(this.state)});let{schema:i,name:s}=this.props,a=this.getValue().username;this.state={name:s,schema:i,value:a?{username:a}:{}}}getValue(){let{authorized:r,name:n}=this.props;return r&&r.getIn([n,"value"])||{}}render(){let{schema:r,getComponent:n,name:i,errSelectors:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("JumpToPath",!0),h=n("Markdown",!0),d=a.selectAuthPath(i);let g=this.getValue().username,y=s.allErrors().filter(v=>v.get("authId")===i);return p.default.createElement("div",null,p.default.createElement("h4",null,"Basic authorization",p.default.createElement(f,{path:d})),g&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(h,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth_username"},"Username:"),g?p.default.createElement("code",null," ",g," "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth_password"},"Password:"),g?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),y.valueSeq().map((v,E)=>p.default.createElement(l,{error:v,key:E})))}}function IEe(e){const{example:t,showValue:r,getComponent:n}=e,i=n("Markdown",!0),s=n("HighlightCode",!0);return t&&W.Map.isMap(t)?p.default.createElement("div",{className:"example"},t.get("description")?p.default.createElement("section",{className:"example__section"},p.default.createElement("div",{className:"example__section-header"},"Example Description"),p.default.createElement("p",null,p.default.createElement(i,{source:t.get("description")}))):null,r&&t.has("value")?p.default.createElement("section",{className:"example__section"},p.default.createElement("div",{className:"example__section-header"},"Example Value"),p.default.createElement(s,null,Xr(t.get("value")))):null):null}class k7 extends p.default.PureComponent{constructor(){super(...arguments);z(this,"_onSelect",(r,{isSyntheticChange:n=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(r,{isSyntheticChange:n})});z(this,"_onDomSelect",r=>{if(typeof this.props.onSelect=="function"){const n=r.target.selectedOptions[0].getAttribute("value");this._onSelect(n,{isSyntheticChange:!1})}});z(this,"getCurrentExample",()=>{const{examples:r,currentExampleKey:n}=this.props,i=r.get(n),s=r.keySeq().first(),a=r.get(s);return i||a||(0,W.Map)({})})}componentDidMount(){const{onSelect:r,examples:n}=this.props;if(typeof r=="function"){const i=n.first(),s=n.keyOf(i);this._onSelect(s,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(r){const{currentExampleKey:n,examples:i}=r;if(i!==this.props.examples&&!i.has(n)){const s=i.first(),a=i.keyOf(s);this._onSelect(a,{isSyntheticChange:!0})}}render(){const{examples:r,currentExampleKey:n,isValueModified:i,isModifiedValueAvailable:s,showLabels:a}=this.props;return p.default.createElement("div",{className:"examples-select"},a?p.default.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,p.default.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:s&&i?"__MODIFIED__VALUE__":n||""},s?p.default.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,r.map((o,u)=>p.default.createElement("option",{key:u,value:u},W.Map.isMap(o)&&o.get("summary")||u)).valueSeq()))}}z(k7,"defaultProps",{examples:(0,W.Map)({}),onSelect:(...r)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...r),currentExampleKey:null,showLabels:!0});const uw=e=>W.List.isList(e)?e:Xr(e);class P7 extends p.default.PureComponent{constructor(r){super(r);z(this,"_getStateForCurrentNamespace",()=>{const{currentNamespace:r}=this.props;return(this.state[r]||(0,W.Map)()).toObject()});z(this,"_setStateForCurrentNamespace",r=>{const{currentNamespace:n}=this.props;return this._setStateForNamespace(n,r)});z(this,"_setStateForNamespace",(r,n)=>{const i=(this.state[r]||(0,W.Map)()).mergeDeep(n);return this.setState({[r]:i})});z(this,"_isCurrentUserInputSameAsExampleValue",()=>{const{currentUserInputValue:r}=this.props;return this._getCurrentExampleValue()===r});z(this,"_getValueForExample",(r,n)=>{const{examples:i}=n||this.props;return uw((i||(0,W.Map)({})).getIn([r,"value"]))});z(this,"_getCurrentExampleValue",r=>{const{currentKey:n}=r||this.props;return this._getValueForExample(n,r||this.props)});z(this,"_onExamplesSelect",(r,{isSyntheticChange:n}={},...i)=>{const{onSelect:s,updateValue:a,currentUserInputValue:o,userHasEditedBody:u}=this.props,{lastUserEditedValue:c}=this._getStateForCurrentNamespace(),l=this._getValueForExample(r);if(r==="__MODIFIED__VALUE__")return a(uw(c)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof s=="function"&&s(r,{isSyntheticChange:n},...i),this._setStateForCurrentNamespace({lastDownstreamValue:l,isModifiedValueSelected:n&&u||!!o&&o!==l}),n||typeof a=="function"&&a(uw(l))});const n=this._getCurrentExampleValue();this.state={[r.currentNamespace]:(0,W.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:n,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==n})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}UNSAFE_componentWillReceiveProps(r){const{currentUserInputValue:n,examples:i,onSelect:s,userHasEditedBody:a}=r,{lastUserEditedValue:o,lastDownstreamValue:u}=this._getStateForCurrentNamespace(),c=this._getValueForExample(r.currentKey,r),l=i.filter(f=>f.get("value")===n||Xr(f.get("value"))===n);if(l.size){let f;f=l.has(r.currentKey)?r.currentKey:l.keySeq().first(),s(f,{isSyntheticChange:!0})}else n!==this.props.currentUserInputValue&&n!==o&&n!==u&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(r.currentNamespace,{lastUserEditedValue:r.currentUserInputValue,isModifiedValueSelected:a||n!==c}))}render(){const{currentUserInputValue:r,examples:n,currentKey:i,getComponent:s,userHasEditedBody:a}=this.props,{lastDownstreamValue:o,lastUserEditedValue:u,isModifiedValueSelected:c}=this._getStateForCurrentNamespace(),l=s("ExamplesSelect");return p.default.createElement(l,{examples:n,currentExampleKey:i,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!u&&u!==o,isValueModified:r!==void 0&&c&&r!==this._getCurrentExampleValue()||a})}}z(P7,"defaultProps",{userHasEditedBody:!1,examples:(0,W.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...r)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...r),updateValue:(...r)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...r)});function jEe({auth:e,authActions:t,errActions:r,configs:n,authConfigs:i={},currentServer:s}){let{schema:a,scopes:o,name:u,clientId:c}=e,l=a.get("flow"),f=[];switch(l){case"password":return void t.authorizePassword(e);case"application":case"clientCredentials":case"client_credentials":return void t.authorizeApplication(e);case"accessCode":case"authorizationCode":case"authorization_code":f.push("response_type=code");break;case"implicit":f.push("response_type=token")}typeof c=="string"&&f.push("client_id="+encodeURIComponent(c));let h=n.oauth2RedirectUrl;if(h===void 0)return void r.newAuthErr({authId:u,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});f.push("redirect_uri="+encodeURIComponent(h));let d=[];if(Array.isArray(o)?d=o:W.default.List.isList(o)&&(d=o.toArray()),d.length>0){let x=i.scopeSeparator||" ";f.push("scope="+encodeURIComponent(d.join(x)))}let g=vf(new Date);if(f.push("state="+encodeURIComponent(g)),i.realm!==void 0&&f.push("realm="+encodeURIComponent(i.realm)),(l==="authorizationCode"||l==="authorization_code"||l==="accessCode")&&i.usePkceWithAuthorizationCodeGrant){const x=function(){return j3(Vo()(32).toString("base64"))}(),_=function(C){return j3(Eve()("sha256").update(C).digest("base64"))}(x);f.push("code_challenge="+_),f.push("code_challenge_method=S256"),e.codeVerifier=x}let{additionalQueryStringParams:y}=i;for(let x in y)y[x]!==void 0&&f.push([x,y[x]].map(encodeURIComponent).join("="));const v=a.get("authorizationUrl");let E;E=s?(0,zc.default)(vr(v),s,!0).toString():vr(v);let b,S=[E,f.join("&")].join(v.indexOf("?")===-1?"?":"&");b=l==="implicit"?t.preAuthorizeImplicit:i.useBasicAuthenticationWithAccessCodeGrant?t.authorizeAccessCodeWithBasicAuthentication:t.authorizeAccessCodeWithFormParams,t.authPopup(S,{auth:e,state:g,redirectUrl:h,callback:b,errCb:r.newAuthErr})}class kEe extends p.default.Component{constructor(r,n){super(r,n);z(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});z(this,"authorize",()=>{let{authActions:r,errActions:n,getConfigs:i,authSelectors:s,oas3Selectors:a}=this.props,o=i(),u=s.getConfigs();n.clear({authId:name,type:"auth",source:"auth"}),jEe({auth:this.state,currentServer:a.serverEffectiveValue(a.selectedServer()),authActions:r,errActions:n,configs:o,authConfigs:u})});z(this,"onScopeChange",r=>{let{target:n}=r,{checked:i}=n,s=n.dataset.value;if(i&&this.state.scopes.indexOf(s)===-1){let a=this.state.scopes.concat([s]);this.setState({scopes:a})}else!i&&this.state.scopes.indexOf(s)>-1&&this.setState({scopes:this.state.scopes.filter(a=>a!==s)})});z(this,"onInputChange",r=>{let{target:{dataset:{name:n},value:i}}=r,s={[n]:i};this.setState(s)});z(this,"selectScopes",r=>{r.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})});z(this,"logout",r=>{r.preventDefault();let{authActions:n,errActions:i,name:s}=this.props;i.clear({authId:s,type:"auth",source:"auth"}),n.logoutWithPersistOption([s])});let{name:i,schema:s,authorized:a,authSelectors:o}=this.props,u=a&&a.get(i),c=o.getConfigs()||{},l=u&&u.get("username")||"",f=u&&u.get("clientId")||c.clientId||"",h=u&&u.get("clientSecret")||c.clientSecret||"",d=u&&u.get("passwordType")||"basic",g=u&&u.get("scopes")||c.scopes||[];typeof g=="string"&&(g=g.split(c.scopeSeparator||" ")),this.state={appName:c.appName,name:i,schema:s,scopes:g,clientId:f,clientSecret:h,username:l,password:"",passwordType:d}}render(){let{schema:r,getComponent:n,authSelectors:i,errSelectors:s,name:a,specSelectors:o}=this.props;const u=n("Input"),c=n("Row"),l=n("Col"),f=n("Button"),h=n("authError"),d=n("JumpToPath",!0),g=n("Markdown",!0),y=n("InitializedInput"),{isOAS3:v}=o;let E=v()?r.get("openIdConnectUrl"):null;const b="implicit",S="password",x=v()?E?"authorization_code":"authorizationCode":"accessCode",_=v()?E?"client_credentials":"clientCredentials":"application",A=i.selectAuthPath(a);let C=!!(i.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,R=r.get("flow"),O=R===x&&C?R+" with PKCE":R,M=r.get("allowedScopes")||r.get("scopes"),k=!!i.authorized().get(a),D=s.allErrors().filter(Z=>Z.get("authId")===a),P=!D.filter(Z=>Z.get("source")==="validation").size,H=r.get("description");return p.default.createElement("div",null,p.default.createElement("h4",null,a," (OAuth2, ",O,") ",p.default.createElement(d,{path:A})),this.state.appName?p.default.createElement("h5",null,"Application: ",this.state.appName," "):null,H&&p.default.createElement(g,{source:r.get("description")}),k&&p.default.createElement("h6",null,"Authorized"),E&&p.default.createElement("p",null,"OpenID Connect URL: ",p.default.createElement("code",null,E)),(R===b||R===x)&&p.default.createElement("p",null,"Authorization URL: ",p.default.createElement("code",null,r.get("authorizationUrl"))),(R===S||R===x||R===_)&&p.default.createElement("p",null,"Token URL:",p.default.createElement("code",null," ",r.get("tokenUrl"))),p.default.createElement("p",{className:"flow"},"Flow: ",p.default.createElement("code",null,O)),R!==S?null:p.default.createElement(c,null,p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"oauth_username"},"username:"),k?p.default.createElement("code",null," ",this.state.username," "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"oauth_password"},"password:"),k?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),k?p.default.createElement("code",null," ",this.state.passwordType," "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},p.default.createElement("option",{value:"basic"},"Authorization header"),p.default.createElement("option",{value:"request-body"},"Request body"))))),(R===_||R===b||R===x||R===S)&&(!k||k&&this.state.clientId)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_id_${R}`},"client_id:"),k?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_id_${R}`,type:"text",required:R===S,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(R===_||R===x||R===S)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_secret_${R}`},"client_secret:"),k?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_secret_${R}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!k&&M&&M.size?p.default.createElement("div",{className:"scopes"},p.default.createElement("h2",null,"Scopes:",p.default.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),p.default.createElement("a",{onClick:this.selectScopes},"select none")),M.map((Z,V)=>p.default.createElement(c,{key:V},p.default.createElement("div",{className:"checkbox"},p.default.createElement(u,{"data-value":V,id:`${V}-${R}-checkbox-${this.state.name}`,disabled:k,checked:this.state.scopes.includes(V),type:"checkbox",onChange:this.onScopeChange}),p.default.createElement("label",{htmlFor:`${V}-${R}-checkbox-${this.state.name}`},p.default.createElement("span",{className:"item"}),p.default.createElement("div",{className:"text"},p.default.createElement("p",{className:"name"},V),p.default.createElement("p",{className:"description"},Z)))))).toArray()):null,D.valueSeq().map((Z,V)=>p.default.createElement(h,{error:Z,key:V})),p.default.createElement("div",{className:"auth-btn-wrapper"},P&&(k?p.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),p.default.createElement(f,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class PEe extends p.Component{constructor(){super(...arguments);z(this,"onClick",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearResponse(n,i),r.clearRequest(n,i)})}render(){return p.default.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const NEe=({headers:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Response headers"),p.default.createElement("pre",{className:"microlight"},e)),MEe=({duration:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Request duration"),p.default.createElement("pre",{className:"microlight"},e," ms"));class DEe extends p.default.Component{shouldComponentUpdate(t){return this.props.response!==t.response||this.props.path!==t.path||this.props.method!==t.method||this.props.displayRequestDuration!==t.displayRequestDuration}render(){const{response:t,getComponent:r,getConfigs:n,displayRequestDuration:i,specSelectors:s,path:a,method:o}=this.props,{showMutatedRequest:u,requestSnippetsEnabled:c}=n(),l=u?s.mutatedRequestFor(a,o):s.requestFor(a,o),f=t.get("status"),h=l.get("url"),d=t.get("headers").toJS(),g=t.get("notDocumented"),y=t.get("error"),v=t.get("text"),E=t.get("duration"),b=Object.keys(d),S=d["content-type"]||d["Content-Type"],x=r("responseBody"),_=b.map(M=>{var k=Array.isArray(d[M])?d[M].join():d[M];return p.default.createElement("span",{className:"headerline",key:M}," ",M,": ",k," ")}),A=_.length!==0,C=r("Markdown",!0),R=r("RequestSnippets",!0),O=r("curl",!0);return p.default.createElement("div",null,l&&c?p.default.createElement(R,{request:l}):p.default.createElement(O,{request:l}),h&&p.default.createElement("div",null,p.default.createElement("div",{className:"request-url"},p.default.createElement("h4",null,"Request URL"),p.default.createElement("pre",{className:"microlight"},h))),p.default.createElement("h4",null,"Server response"),p.default.createElement("table",{className:"responses-table live-responses-table"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"responses-header"},p.default.createElement("td",{className:"col_header response-col_status"},"Code"),p.default.createElement("td",{className:"col_header response-col_description"},"Details"))),p.default.createElement("tbody",null,p.default.createElement("tr",{className:"response"},p.default.createElement("td",{className:"response-col_status"},f,g?p.default.createElement("div",{className:"response-undocumented"},p.default.createElement("i",null," Undocumented ")):null),p.default.createElement("td",{className:"response-col_description"},y?p.default.createElement(C,{source:`${t.get("name")!==""?`${t.get("name")}: `:""}${t.get("message")}`}):null,v?p.default.createElement(x,{content:v,contentType:S,url:h,headers:d,getConfigs:n,getComponent:r}):null,A?p.default.createElement(NEe,{headers:_}):null,i&&E?p.default.createElement(MEe,{duration:E}):null)))))}}class N7 extends p.default.Component{constructor(r,n){super(r,n);z(this,"getDefinitionUrl",()=>{let{specSelectors:r}=this.props;return new zc.default(r.url(),Zt.location).toString()});let{getConfigs:i}=r,{validatorUrl:s}=i();this.state={url:this.getDefinitionUrl(),validatorUrl:s===void 0?"https://validator.swagger.io/validator":s}}UNSAFE_componentWillReceiveProps(r){let{getConfigs:n}=r,{validatorUrl:i}=n();this.setState({url:this.getDefinitionUrl(),validatorUrl:i===void 0?"https://validator.swagger.io/validator":i})}render(){let{getConfigs:r}=this.props,{spec:n}=r(),i=vr(this.state.validatorUrl);return typeof n=="object"&&Object.keys(n).length?null:this.state.url&&I3(this.state.validatorUrl)&&I3(this.state.url)?p.default.createElement("span",{className:"float-right"},p.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${i}/debug?url=${encodeURIComponent(this.state.url)}`},p.default.createElement(qEe,{src:`${i}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class qEe extends p.default.Component{constructor(t){super(t),this.state={loaded:!1,error:!1}}componentDidMount(){const t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=this.props.src}UNSAFE_componentWillReceiveProps(t){if(t.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=t.src}}render(){return this.state.error?p.default.createElement("img",{alt:"Error"}):this.state.loaded?p.default.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class $Ee extends p.default.Component{constructor(){super(...arguments);z(this,"renderOperationTag",(r,n)=>{const{specSelectors:i,getComponent:s,oas3Selectors:a,layoutSelectors:o,layoutActions:u,getConfigs:c}=this.props,l=i.validOperationMethods(),f=s("OperationContainer",!0),h=s("OperationTag"),d=r.get("operations");return p.default.createElement(h,{key:"operation-"+n,tagObj:r,tag:n,oas3Selectors:a,layoutSelectors:o,layoutActions:u,getConfigs:c,getComponent:s,specUrl:i.url()},p.default.createElement("div",{className:"operation-tag-content"},d.map(g=>{const y=g.get("path"),v=g.get("method"),E=W.default.List(["paths",y,v]);return l.indexOf(v)===-1?null:p.default.createElement(f,{key:`${y}-${v}`,specPath:E,op:g,path:y,method:v,tag:n})}).toArray()))})}render(){let{specSelectors:r}=this.props;const n=r.taggedOperations();return n.size===0?p.default.createElement("h3",null," No operations defined in spec!"):p.default.createElement("div",null,n.map(this.renderOperationTag).toArray(),n.size<1?p.default.createElement("h3",null," No operations defined in spec! "):null)}}class M7 extends p.default.Component{render(){const{tagObj:t,tag:r,children:n,oas3Selectors:i,layoutSelectors:s,layoutActions:a,getConfigs:o,getComponent:u,specUrl:c}=this.props;let{docExpansion:l,deepLinking:f}=o();const h=u("Collapse"),d=u("Markdown",!0),g=u("DeepLink"),y=u("Link"),v=u("ArrowUpIcon"),E=u("ArrowDownIcon");let b,S=t.getIn(["tagDetails","description"],null),x=t.getIn(["tagDetails","externalDocs","description"]),_=t.getIn(["tagDetails","externalDocs","url"]);b=js(i)&&js(i.selectedServer)?Mi(_,c,{selectedServer:i.selectedServer()}):_;let A=["operations-tag",r],C=s.isShown(A,l==="full"||l==="list");return p.default.createElement("div",{className:C?"opblock-tag-section is-open":"opblock-tag-section"},p.default.createElement("h3",{onClick:()=>a.show(A,!C),className:S?"opblock-tag":"opblock-tag no-desc",id:A.map(R=>f5(R)).join("-"),"data-tag":r,"data-is-open":C},p.default.createElement(g,{enabled:f,isShown:C,path:Vc(r),text:r}),S?p.default.createElement("small",null,p.default.createElement(d,{source:S})):p.default.createElement("small",null),b?p.default.createElement("div",{className:"info__externaldocs"},p.default.createElement("small",null,p.default.createElement(y,{href:vr(b),onClick:R=>R.stopPropagation(),target:"_blank"},x||b))):null,p.default.createElement("button",{"aria-expanded":C,className:"expand-operation",title:C?"Collapse operation":"Expand operation",onClick:()=>a.show(A,!C)},C?p.default.createElement(v,{className:"arrow"}):p.default.createElement(E,{className:"arrow"}))),p.default.createElement(h,{isOpened:C},n))}}z(M7,"defaultProps",{tagObj:W.default.fromJS({}),tag:""});class D7 extends p.PureComponent{render(){let{specPath:t,response:r,request:n,toggleShown:i,onTryoutClick:s,onResetClick:a,onCancelClick:o,onExecute:u,fn:c,getComponent:l,getConfigs:f,specActions:h,specSelectors:d,authActions:g,authSelectors:y,oas3Actions:v,oas3Selectors:E}=this.props,b=this.props.operation,{deprecated:S,isShown:x,path:_,method:A,op:C,tag:R,operationId:O,allowTryItOut:M,displayRequestDuration:k,tryItOutEnabled:D,executeInProgress:P}=b.toJS(),{description:H,externalDocs:Z,schemes:V}=C;const G=Z?Mi(Z.url,d.url(),{selectedServer:E.selectedServer()}):"";let Q=b.getIn(["op"]),Y=Q.get("responses"),L=function(T,j){if(!W.default.Iterable.isIterable(T))return W.default.List();let U=T.getIn(Array.isArray(j)?j:[j]);return W.default.List.isList(U)?U:W.default.List()}(Q,["parameters"]),J=d.operationScheme(_,A),ee=["operations",R,O],ne=Ca(Q);const ae=l("responses"),X=l("parameters"),B=l("execute"),F=l("clear"),ue=l("Collapse"),fe=l("Markdown",!0),Ae=l("schemes"),Ne=l("OperationServers"),pe=l("OperationExt"),Oe=l("OperationSummary"),We=l("Link"),{showExtensions:he}=f();if(Y&&r&&r.size>0){let $=!Y.get(String(r.get("status")))&&!Y.get("default");r=r.set("notDocumented",$)}let ve=[_,A];const Se=d.validationErrors([_,A]);return p.default.createElement("div",{className:S?"opblock opblock-deprecated":x?`opblock opblock-${A} is-open`:`opblock opblock-${A}`,id:f5(ee.join("-"))},p.default.createElement(Oe,{operationProps:b,isShown:x,toggleShown:i,getComponent:l,authActions:g,authSelectors:y,specPath:t}),p.default.createElement(ue,{isOpened:x},p.default.createElement("div",{className:"opblock-body"},Q&&Q.size||Q===null?null:p.default.createElement(j5,{height:"32px",width:"32px",className:"opblock-loading-animation"}),S&&p.default.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),H&&p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("div",{className:"opblock-description"},p.default.createElement(fe,{source:H}))),G?p.default.createElement("div",{className:"opblock-external-docs-wrapper"},p.default.createElement("h4",{className:"opblock-title_normal"},"Find more details"),p.default.createElement("div",{className:"opblock-external-docs"},Z.description&&p.default.createElement("span",{className:"opblock-external-docs__description"},p.default.createElement(fe,{source:Z.description})),p.default.createElement(We,{target:"_blank",className:"opblock-external-docs__link",href:vr(G)},G))):null,Q&&Q.size?p.default.createElement(X,{parameters:L,specPath:t.push("parameters"),operation:Q,onChangeKey:ve,onTryoutClick:s,onResetClick:a,onCancelClick:o,tryItOutEnabled:D,allowTryItOut:M,fn:c,getComponent:l,specActions:h,specSelectors:d,pathMethod:[_,A],getConfigs:f,oas3Actions:v,oas3Selectors:E}):null,D?p.default.createElement(Ne,{getComponent:l,path:_,method:A,operationServers:Q.get("servers"),pathServers:d.paths().getIn([_,"servers"]),getSelectedServer:E.selectedServer,setSelectedServer:v.setSelectedServer,setServerVariableValue:v.setServerVariableValue,getServerVariable:E.serverVariableValue,getEffectiveServerValue:E.serverEffectiveValue}):null,D&&M&&V&&V.size?p.default.createElement("div",{className:"opblock-schemes"},p.default.createElement(Ae,{schemes:V,path:_,method:A,specActions:h,currentScheme:J})):null,!D||!M||Se.length<=0?null:p.default.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",p.default.createElement("ul",null,Se.map(($,T)=>p.default.createElement("li",{key:T}," ",$," ")))),p.default.createElement("div",{className:D&&r&&M?"btn-group":"execute-wrapper"},D&&M?p.default.createElement(B,{operation:Q,specActions:h,specSelectors:d,oas3Selectors:E,oas3Actions:v,path:_,method:A,onExecute:u,disabled:P}):null,D&&r&&M?p.default.createElement(F,{specActions:h,path:_,method:A}):null),P?p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})):null,Y?p.default.createElement(ae,{responses:Y,request:n,tryItOutResponse:r,getComponent:l,getConfigs:f,specSelectors:d,oas3Actions:v,oas3Selectors:E,specActions:h,produces:d.producesOptionsFor([_,A]),producesValue:d.currentProducesFor([_,A]),specPath:t.push("responses"),path:_,method:A,displayRequestDuration:k,fn:c}):null,he&&ne.size?p.default.createElement(pe,{extensions:ne,getComponent:l}):null)))}}z(D7,"defaultProps",{operation:null,response:null,request:null,specPath:(0,W.List)(),summary:""});class q7 extends p.PureComponent{constructor(r,n){super(r,n);z(this,"toggleShown",()=>{let{layoutActions:r,tag:n,operationId:i,isShown:s}=this.props;const a=this.getResolvedSubtree();s||a!==void 0||this.requestResolvedSubtree(),r.show(["operations",n,i],!s)});z(this,"onCancelClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});z(this,"onTryoutClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});z(this,"onResetClick",r=>{const n=this.props.oas3Selectors.selectDefaultRequestBodyValue(...r);this.props.oas3Actions.setRequestBodyValue({value:n,pathMethod:r})});z(this,"onExecute",()=>{this.setState({executeInProgress:!0})});z(this,"getResolvedSubtree",()=>{const{specSelectors:r,path:n,method:i,specPath:s}=this.props;return s?r.specResolvedSubtree(s.toJS()):r.specResolvedSubtree(["paths",n,i])});z(this,"requestResolvedSubtree",()=>{const{specActions:r,path:n,method:i,specPath:s}=this.props;return s?r.requestResolvedSubtree(s.toJS()):r.requestResolvedSubtree(["paths",n,i])});const{tryItOutEnabled:i}=r.getConfigs();this.state={tryItOutEnabled:i,executeInProgress:!1}}mapStateToProps(r,n){const{op:i,layoutSelectors:s,getConfigs:a}=n,{docExpansion:o,deepLinking:u,displayOperationId:c,displayRequestDuration:l,supportedSubmitMethods:f}=a(),h=s.showSummary(),d=i.getIn(["operation","__originalOperationId"])||i.getIn(["operation","operationId"])||(0,g7.opId)(i.get("operation"),n.path,n.method)||i.get("id"),g=["operations",n.tag,d],y=f.indexOf(n.method)>=0&&(n.allowTryItOut===void 0?n.specSelectors.allowTryItOutFor(n.path,n.method):n.allowTryItOut),v=i.getIn(["operation","security"])||n.specSelectors.security();return{operationId:d,isDeepLinkingEnabled:u,showSummary:h,displayOperationId:c,displayRequestDuration:l,allowTryItOut:y,security:v,isAuthorized:n.authSelectors.isAuthorized(v),isShown:s.isShown(g,o==="full"),jumpToKey:`paths.${n.path}.${n.method}`,response:n.specSelectors.responseFor(n.path,n.method),request:n.specSelectors.requestFor(n.path,n.method)}}componentDidMount(){const{isShown:r}=this.props,n=this.getResolvedSubtree();r&&n===void 0&&this.requestResolvedSubtree()}UNSAFE_componentWillReceiveProps(r){const{response:n,isShown:i}=r,s=this.getResolvedSubtree();n!==this.props.response&&this.setState({executeInProgress:!1}),i&&s===void 0&&this.requestResolvedSubtree()}render(){let{op:r,tag:n,path:i,method:s,security:a,isAuthorized:o,operationId:u,showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,response:d,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:E,specPath:b,specSelectors:S,specActions:x,getComponent:_,getConfigs:A,layoutSelectors:C,layoutActions:R,authActions:O,authSelectors:M,oas3Actions:k,oas3Selectors:D,fn:P}=this.props;const H=_("operation"),Z=this.getResolvedSubtree()||(0,W.Map)(),V=(0,W.fromJS)({op:Z,tag:n,path:i,summary:r.getIn(["operation","summary"])||"",deprecated:Z.get("deprecated")||r.getIn(["operation","deprecated"])||!1,method:s,security:a,isAuthorized:o,operationId:u,originalOperationId:Z.getIn(["operation","__originalOperationId"]),showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:E,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return p.default.createElement(H,{operation:V,response:d,request:g,isShown:l,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:b,specActions:x,specSelectors:S,oas3Actions:k,oas3Selectors:D,layoutActions:R,layoutSelectors:C,authActions:O,authSelectors:M,getComponent:_,getConfigs:A,fn:P})}}z(q7,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});var FEe=function(e){var t={};return me.d(t,e),t}({default:function(){return rme}});class $7 extends p.PureComponent{render(){let{isShown:t,toggleShown:r,getComponent:n,authActions:i,authSelectors:s,operationProps:a,specPath:o}=this.props,{summary:u,isAuthorized:c,method:l,op:f,showSummary:h,path:d,operationId:g,originalOperationId:y,displayOperationId:v}=a.toJS(),{summary:E}=f,b=a.get("security");const S=n("authorizeOperationBtn",!0),x=n("OperationSummaryMethod"),_=n("OperationSummaryPath"),A=n("JumpToPath",!0),C=n("CopyToClipboardBtn",!0),R=n("ArrowUpIcon"),O=n("ArrowDownIcon"),M=b&&!!b.count(),k=M&&b.size===1&&b.first().isEmpty(),D=!M||k;return p.default.createElement("div",{className:`opblock-summary opblock-summary-${l}`},p.default.createElement("button",{"aria-expanded":t,className:"opblock-summary-control",onClick:r},p.default.createElement(x,{method:l}),p.default.createElement("div",{className:"opblock-summary-path-description-wrapper"},p.default.createElement(_,{getComponent:n,operationProps:a,specPath:o}),h?p.default.createElement("div",{className:"opblock-summary-description"},(0,FEe.default)(E||u)):null),v&&(y||g)?p.default.createElement("span",{className:"opblock-summary-operation-id"},y||g):null),p.default.createElement(C,{textToCopy:`${o.get(1)}`}),D?null:p.default.createElement(S,{isAuthorized:c,onClick:()=>{const P=s.definitionsForRequirements(b);i.showDefinitions(P)}}),p.default.createElement(A,{path:o}),p.default.createElement("button",{"aria-label":`${l} ${d.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":t,tabIndex:"-1",onClick:r},t?p.default.createElement(R,{className:"arrow"}):p.default.createElement(O,{className:"arrow"})))}}z($7,"defaultProps",{operationProps:null,specPath:(0,W.List)(),summary:""});class F7 extends p.PureComponent{render(){let{method:t}=this.props;return p.default.createElement("span",{className:"opblock-summary-method"},t.toUpperCase())}}z(F7,"defaultProps",{operationProps:null});class LEe extends p.PureComponent{render(){let{getComponent:t,operationProps:r}=this.props,{deprecated:n,isShown:i,path:s,tag:a,operationId:o,isDeepLinkingEnabled:u}=r.toJS();const c=s.split(/(?=\/)/g);for(let f=1;f<c.length;f+=2)c.splice(f,0,p.default.createElement("wbr",{key:f}));const l=t("DeepLink");return p.default.createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":s},p.default.createElement(l,{enabled:u,isShown:i,path:Vc(`${a}/${o}`),text:c}))}}var BEe=({extensions:e,getComponent:t})=>{let r=t("OperationExtRow");return p.default.createElement("div",{className:"opblock-section"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",null,"Extensions")),p.default.createElement("div",{className:"table-container"},p.default.createElement("table",null,p.default.createElement("thead",null,p.default.createElement("tr",null,p.default.createElement("td",{className:"col_header"},"Field"),p.default.createElement("td",{className:"col_header"},"Value"))),p.default.createElement("tbody",null,e.entrySeq().map(([n,i])=>p.default.createElement(r,{key:`${n}-${i}`,xKey:n,xVal:i}))))))},UEe=({xKey:e,xVal:t})=>{const r=t?t.toJS?t.toJS():t:null;return p.default.createElement("tr",null,p.default.createElement("td",null,e),p.default.createElement("td",null,JSON.stringify(r)))};function cR(e,t="_"){return e.replace(/[^\w-]/g,t)}const Hd=class Hd extends p.default.Component{constructor(){super(...arguments);z(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r));z(this,"onResponseContentTypeChange",({controlsAcceptHeader:r,value:n})=>{const{oas3Actions:i,path:s,method:a}=this.props;r&&i.setResponseContentType({value:n,path:s,method:a})})}render(){let{responses:r,tryItOutResponse:n,getComponent:i,getConfigs:s,specSelectors:a,fn:o,producesValue:u,displayRequestDuration:c,specPath:l,path:f,method:h,oas3Selectors:d,oas3Actions:g}=this.props,y=function(R){let O=R.keySeq();return O.contains(C3)?C3:O.filter(M=>(M+"")[0]==="2").sort().first()}(r);const v=i("contentType"),E=i("liveResponse"),b=i("response");let S=this.props.produces&&this.props.produces.size?this.props.produces:Hd.defaultProps.produces;const x=a.isOAS3()?function(R){if(!W.default.OrderedMap.isOrderedMap(R)||!R.size)return null;const O=R.find((D,P)=>P.startsWith("2")&&Object.keys(D.get("content")||{}).length>0),M=R.get("default")||W.default.OrderedMap(),k=(M.get("content")||W.default.OrderedMap()).keySeq().toJS().length?M:null;return O||k}(r):null,_=cR(`${h}${f}_responses`),A=`${_}_select`;return p.default.createElement("div",{className:"responses-wrapper"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",null,"Responses"),a.isOAS3()?null:p.default.createElement("label",{htmlFor:A},p.default.createElement("span",null,"Response content type"),p.default.createElement(v,{value:u,ariaControls:_,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:S,controlId:A,onChange:this.onChangeProducesWrapper}))),p.default.createElement("div",{className:"responses-inner"},n?p.default.createElement("div",null,p.default.createElement(E,{response:n,getComponent:i,getConfigs:s,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:c}),p.default.createElement("h4",null,"Responses")):null,p.default.createElement("table",{"aria-live":"polite",className:"responses-table",id:_,role:"region"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"responses-header"},p.default.createElement("td",{className:"col_header response-col_status"},"Code"),p.default.createElement("td",{className:"col_header response-col_description"},"Description"),a.isOAS3()?p.default.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),p.default.createElement("tbody",null,r.entrySeq().map(([C,R])=>{let O=n&&n.get("status")==C?"response_current":"";return p.default.createElement(b,{key:C,path:f,method:h,specPath:l.push(C),isDefault:y===C,fn:o,className:O,code:C,response:R,specSelectors:a,controlsAcceptHeader:R===x,onContentTypeChange:this.onResponseContentTypeChange,contentType:u,getConfigs:s,activeExamplesKey:d.activeExamplesMember(f,h,"responses",C),oas3Actions:g,getComponent:i})}).toArray()))))}};z(Hd,"defaultProps",{tryItOutResponse:null,produces:(0,W.fromJS)(["application/json"]),displayRequestDuration:!1});let OA=Hd;function Pm(e){return function(r){try{return!!JSON.parse(r)}catch{return null}}(e)?"json":null}var vw;let VEe=(vw=class extends p.default.Component{constructor(r,n){super(r,n);z(this,"_onContentTypeChange",r=>{const{onContentTypeChange:n,controlsAcceptHeader:i}=this.props;this.setState({responseContentType:r}),n({value:r,controlsAcceptHeader:i})});z(this,"getTargetExamplesKey",()=>{const{response:r,contentType:n,activeExamplesKey:i}=this.props,s=this.state.responseContentType||n,a=r.getIn(["content",s],(0,W.Map)({})).get("examples",null).keySeq().first();return i||a});this.state={responseContentType:""}}render(){var X;let{path:r,method:n,code:i,response:s,className:a,specPath:o,fn:u,getComponent:c,getConfigs:l,specSelectors:f,contentType:h,controlsAcceptHeader:d,oas3Actions:g}=this.props,{inferSchema:y,getSampleSchema:v}=u,E=f.isOAS3();const{showExtensions:b}=l();let S=b?Ca(s):null,x=s.get("headers"),_=s.get("links");const A=c("ResponseExtension"),C=c("headers"),R=c("HighlightCode",!0),O=c("modelExample"),M=c("Markdown",!0),k=c("operationLink"),D=c("contentType"),P=c("ExamplesSelect"),H=c("Example");var Z,V;const G=this.state.responseContentType||h,Q=s.getIn(["content",G],(0,W.Map)({})),Y=Q.get("examples",null);if(E){const B=Q.get("schema");Z=B?y(B.toJS()):null,V=B?(0,W.List)(["content",this.state.responseContentType,"schema"]):o}else Z=s.get("schema"),V=s.has("schema")?o.push("schema"):o;let L,J,ee=!1,ne={includeReadOnly:!0};if(E)if(J=(X=Q.get("schema"))==null?void 0:X.toJS(),W.Map.isMap(Y)&&!Y.isEmpty()){const B=this.getTargetExamplesKey(),F=ue=>W.Map.isMap(ue)?ue.get("value"):void 0;L=F(Y.get(B,(0,W.Map)({}))),L===void 0&&(L=F(Y.values().next().value)),ee=!0}else Q.get("example")!==void 0&&(L=Q.get("example"),ee=!0);else{J=Z,ne={...ne,includeWriteOnly:!0};const B=s.getIn(["examples",G]);B&&(L=B,ee=!0)}const ae=((B,F)=>{if(B==null)return null;const ue=Pm(B)?"json":null;return p.default.createElement("div",null,p.default.createElement(F,{className:"example",language:ue},Xr(B)))})(v(J,G,ne,ee?L:void 0),R);return p.default.createElement("tr",{className:"response "+(a||""),"data-code":i},p.default.createElement("td",{className:"response-col_status"},i),p.default.createElement("td",{className:"response-col_description"},p.default.createElement("div",{className:"response-col_description__inner"},p.default.createElement(M,{source:s.get("description")})),b&&S.size?S.entrySeq().map(([B,F])=>p.default.createElement(A,{key:`${B}-${F}`,xKey:B,xVal:F})):null,E&&s.get("content")?p.default.createElement("section",{className:"response-controls"},p.default.createElement("div",{className:(0,Ot.default)("response-control-media-type",{"response-control-media-type--accept-controller":d})},p.default.createElement("small",{className:"response-control-media-type__title"},"Media type"),p.default.createElement(D,{value:this.state.responseContentType,contentTypes:s.get("content")?s.get("content").keySeq():(0,W.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),d?p.default.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",p.default.createElement("code",null,"Accept")," header."):null),W.Map.isMap(Y)&&!Y.isEmpty()?p.default.createElement("div",{className:"response-control-examples"},p.default.createElement("small",{className:"response-control-examples__title"},"Examples"),p.default.createElement(P,{examples:Y,currentExampleKey:this.getTargetExamplesKey(),onSelect:B=>g.setActiveExamplesMember({name:B,pathMethod:[r,n],contextType:"responses",contextName:i}),showLabels:!1})):null):null,ae||Z?p.default.createElement(O,{specPath:V,getComponent:c,getConfigs:l,specSelectors:f,schema:Xi(Z),example:ae,includeReadOnly:!0}):null,E&&Y?p.default.createElement(H,{example:Y.get(this.getTargetExamplesKey(),(0,W.Map)({})),getComponent:c,getConfigs:l,omitValue:!0}):null,x?p.default.createElement(C,{headers:x,getComponent:c}):null),E?p.default.createElement("td",{className:"response-col_links"},_?_.toSeq().entrySeq().map(([B,F])=>p.default.createElement(k,{key:B,name:B,link:F,getComponent:c})):p.default.createElement("i",null,"No links")):null)}},z(vw,"defaultProps",{response:(0,W.fromJS)({}),onContentTypeChange:()=>{}}),vw);var zEe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"response__extension"},e,": ",String(t)),WEe=function(e){var t={};return me.d(t,e),t}({default:function(){return ame}}),tL=function(e){var t={};return me.d(t,e),t}({default:function(){return cme}});class JEe extends p.default.PureComponent{constructor(){super(...arguments);z(this,"state",{parsedContent:null});z(this,"updateParsedContent",r=>{const{content:n}=this.props;if(r!==n)if(n&&n instanceof Blob){var i=new FileReader;i.onload=()=>{this.setState({parsedContent:i.result})},i.readAsText(n)}else this.setState({parsedContent:n.toString()})})}componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(r){this.updateParsedContent(r.content)}render(){let{content:r,contentType:n,url:i,headers:s={},getComponent:a}=this.props;const{parsedContent:o}=this.state,u=a("HighlightCode",!0),c="response_"+new Date().getTime();let l,f;if(i=i||"",(/^application\/octet-stream/i.test(n)||s["Content-Disposition"]&&/attachment/i.test(s["Content-Disposition"])||s["content-disposition"]&&/attachment/i.test(s["content-disposition"])||s["Content-Description"]&&/File Transfer/i.test(s["Content-Description"])||s["content-description"]&&/File Transfer/i.test(s["content-description"]))&&(r.size>0||r.length>0))if("Blob"in window){let h=n||"text/html",d=r instanceof Blob?r:new Blob([r],{type:h}),g=window.URL.createObjectURL(d),y=[h,i.substr(i.lastIndexOf("/")+1),g].join(":"),v=s["content-disposition"]||s["Content-Disposition"];if(v!==void 0){let E=function(S){let x;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some(_=>(x=_.exec(S),x!==null)),x!==null&&x.length>1)try{return decodeURIComponent(x[1])}catch(_){console.error(_)}return null}(v);E!==null&&(y=E)}f=Zt.navigator&&Zt.navigator.msSaveOrOpenBlob?p.default.createElement("div",null,p.default.createElement("a",{href:g,onClick:()=>Zt.navigator.msSaveOrOpenBlob(d,y)},"Download file")):p.default.createElement("div",null,p.default.createElement("a",{href:g,download:y},"Download file"))}else f=p.default.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(n)){let h=null;Pm(r)&&(h="json");try{l=JSON.stringify(JSON.parse(r),null," ")}catch{l=`can't parse JSON. Raw result:
304
+
305
+ `+r}f=p.default.createElement(u,{language:h,downloadable:!0,fileName:`${c}.json`,canCopy:!0},l)}else/xml/i.test(n)?(l=(0,WEe.default)(r,{textNodesOnSameLine:!0,indentor:" "}),f=p.default.createElement(u,{downloadable:!0,fileName:`${c}.xml`,canCopy:!0},l)):f=(0,tL.default)(n)==="text/html"||/text\/plain/.test(n)?p.default.createElement(u,{downloadable:!0,fileName:`${c}.html`,canCopy:!0},r):(0,tL.default)(n)==="text/csv"||/text\/csv/.test(n)?p.default.createElement(u,{downloadable:!0,fileName:`${c}.csv`,canCopy:!0},r):/^image\//i.test(n)?n.includes("svg")?p.default.createElement("div",null," ",r," "):p.default.createElement("img",{src:window.URL.createObjectURL(r)}):/^audio\//i.test(n)?p.default.createElement("pre",{className:"microlight"},p.default.createElement("audio",{controls:!0,key:i},p.default.createElement("source",{src:i,type:n}))):typeof r=="string"?p.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},r):r.size>0?o?p.default.createElement("div",null,p.default.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),p.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},o)):p.default.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return f?p.default.createElement("div",null,p.default.createElement("h5",null,"Response body"),f):null}}class L7 extends p.Component{constructor(r){super(r);z(this,"onChange",(r,n,i)=>{let{specActions:{changeParamByIdentity:s},onChangeKey:a}=this.props;s(a,r,n,i)});z(this,"onChangeConsumesWrapper",r=>{let{specActions:{changeConsumesValue:n},onChangeKey:i}=this.props;n(i,r)});z(this,"toggleTab",r=>r==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):r==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0);z(this,"onChangeMediaType",({value:r,pathMethod:n})=>{let{specActions:i,oas3Selectors:s,oas3Actions:a}=this.props;const o=s.hasUserEditedBody(...n),u=s.shouldRetainRequestBodyValue(...n);a.setRequestContentType({value:r,pathMethod:n}),a.initRequestBodyValidateError({pathMethod:n}),o||(u||a.setRequestBodyValue({value:void 0,pathMethod:n}),i.clearResponse(...n),i.clearRequest(...n),i.clearValidateParams(n))});this.state={callbackVisible:!1,parametersVisible:!0}}render(){let{onTryoutClick:r,onResetClick:n,parameters:i,allowTryItOut:s,tryItOutEnabled:a,specPath:o,fn:u,getComponent:c,getConfigs:l,specSelectors:f,specActions:h,pathMethod:d,oas3Actions:g,oas3Selectors:y,operation:v}=this.props;const E=c("parameterRow"),b=c("TryItOutButton"),S=c("contentType"),x=c("Callbacks",!0),_=c("RequestBody",!0),A=a&&s,C=f.isOAS3(),R=`${cR(`${d[1]}${d[0]}_requests`)}_select`,O=v.get("requestBody"),M=Object.values(i.reduce((k,D)=>{const P=D.get("in");return k[P]??(k[P]=[]),k[P].push(D),k},{})).reduce((k,D)=>k.concat(D),[]);return p.default.createElement("div",{className:"opblock-section"},p.default.createElement("div",{className:"opblock-section-header"},C?p.default.createElement("div",{className:"tab-header"},p.default.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},p.default.createElement("h4",{className:"opblock-title"},p.default.createElement("span",null,"Parameters"))),v.get("callbacks")?p.default.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},p.default.createElement("h4",{className:"opblock-title"},p.default.createElement("span",null,"Callbacks"))):null):p.default.createElement("div",{className:"tab-header"},p.default.createElement("h4",{className:"opblock-title"},"Parameters")),s?p.default.createElement(b,{isOAS3:f.isOAS3(),hasUserEditedBody:y.hasUserEditedBody(...d),enabled:a,onCancelClick:this.props.onCancelClick,onTryoutClick:r,onResetClick:()=>n(d)}):null),this.state.parametersVisible?p.default.createElement("div",{className:"parameters-container"},M.length?p.default.createElement("div",{className:"table-container"},p.default.createElement("table",{className:"parameters"},p.default.createElement("thead",null,p.default.createElement("tr",null,p.default.createElement("th",{className:"col_header parameters-col_name"},"Name"),p.default.createElement("th",{className:"col_header parameters-col_description"},"Description"))),p.default.createElement("tbody",null,M.map((k,D)=>p.default.createElement(E,{fn:u,specPath:o.push(D.toString()),getComponent:c,getConfigs:l,rawParam:k,param:f.parameterWithMetaByIdentity(d,k),key:`${k.get("in")}.${k.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:f,specActions:h,oas3Actions:g,oas3Selectors:y,pathMethod:d,isExecute:A}))))):p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?p.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},p.default.createElement(x,{callbacks:(0,W.Map)(v.get("callbacks")),specPath:o.slice(0,-1).push("callbacks")})):null,C&&O&&this.state.parametersVisible&&p.default.createElement("div",{className:"opblock-section opblock-section-request-body"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",{className:`opblock-title parameter__name ${O.get("required")&&"required"}`},"Request body"),p.default.createElement("label",{id:R},p.default.createElement(S,{value:y.requestContentType(...d),contentTypes:O.get("content",(0,W.List)()).keySeq(),onChange:k=>{this.onChangeMediaType({value:k,pathMethod:d})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:R}))),p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement(_,{setRetainRequestBodyValueFlag:k=>g.setRetainRequestBodyValueFlag({value:k,pathMethod:d}),userHasEditedBody:y.hasUserEditedBody(...d),specPath:o.slice(0,-1).push("requestBody"),requestBody:O,requestBodyValue:y.requestBodyValue(...d),requestBodyInclusionSetting:y.requestBodyInclusionSetting(...d),requestBodyErrors:y.requestBodyErrors(...d),isExecute:A,getConfigs:l,activeExamplesKey:y.activeExamplesMember(...d,"requestBody","requestBody"),updateActiveExamplesKey:k=>{this.props.oas3Actions.setActiveExamplesMember({name:k,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(k,D)=>{if(D){const P=y.requestBodyValue(...d),H=W.Map.isMap(P)?P:(0,W.Map)();return g.setRequestBodyValue({pathMethod:d,value:H.setIn(D,k)})}g.setRequestBodyValue({value:k,pathMethod:d})},onChangeIncludeEmpty:(k,D)=>{g.setRequestBodyInclusion({pathMethod:d,value:D,name:k})},contentType:y.requestContentType(...d)}))))}}z(L7,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});var KEe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"parameter__extension"},e,": ",String(t));const HEe={onChange:()=>{},isIncludedOptions:{}};class B7 extends p.Component{constructor(){super(...arguments);z(this,"onCheckboxChange",r=>{const{onChange:n}=this.props;n(r.target.checked)})}componentDidMount(){const{isIncludedOptions:r,onChange:n}=this.props,{shouldDispatchInit:i,defaultValue:s}=r;i&&n(s)}render(){let{isIncluded:r,isDisabled:n}=this.props;return p.default.createElement("div",null,p.default.createElement("label",{htmlFor:"include_empty_value",className:(0,Ot.default)("parameter__empty_value_toggle",{disabled:n})},p.default.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:n,checked:!n&&r,onChange:this.onCheckboxChange}),"Send empty value"))}}z(B7,"defaultProps",HEe);class GEe extends p.Component{constructor(r,n){super(r,n);z(this,"onChangeWrapper",(r,n=!1)=>{let i,{onChange:s,rawParam:a}=this.props;return i=r===""||r&&r.size===0?null:r,s(a,i,n)});z(this,"_onExampleSelect",r=>{this.props.oas3Actions.setActiveExamplesMember({name:r,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})});z(this,"onChangeIncludeEmpty",r=>{let{specActions:n,param:i,pathMethod:s}=this.props;const a=i.get("name"),o=i.get("in");return n.updateEmptyParamInclusion(s,a,o,r)});z(this,"setDefaultValue",()=>{let{specSelectors:r,pathMethod:n,rawParam:i,oas3Selectors:s,fn:a}=this.props;const o=r.parameterWithMetaByIdentity(n,i)||(0,W.Map)();let{schema:u}=xp(o,{isOAS3:r.isOAS3()});const c=o.get("content",(0,W.Map)()).keySeq().first(),l=u?a.getSampleSchema(u.toJS(),c,{includeWriteOnly:!0}):null;if(o&&o.get("value")===void 0&&o.get("in")!=="body"){let f;if(r.isSwagger2())f=o.get("x-example")!==void 0?o.get("x-example"):o.getIn(["schema","example"])!==void 0?o.getIn(["schema","example"]):u&&u.getIn(["default"]);else if(r.isOAS3()){u=this.composeJsonSchema(u);const g=s.activeExamplesMember(...n,"parameters",this.getParamKey());f=o.getIn(["examples",g,"value"])!==void 0?o.getIn(["examples",g,"value"]):o.getIn(["content",c,"example"])!==void 0?o.getIn(["content",c,"example"]):o.get("example")!==void 0?o.get("example"):(u&&u.get("example"))!==void 0?u&&u.get("example"):(u&&u.get("default"))!==void 0?u&&u.get("default"):o.get("default")}f===void 0||W.List.isList(f)||(f=Xr(f));const h=a.jsonSchema202012.foldType(Wn(u==null?void 0:u.get("type"))),d=a.jsonSchema202012.foldType(Wn(u==null?void 0:u.getIn(["items","type"])));f!==void 0?this.onChangeWrapper(f):h==="object"&&l&&!o.get("examples")?this.onChangeWrapper(W.List.isList(l)?l:Xr(l)):h==="array"&&d==="object"&&l&&!o.get("examples")&&this.onChangeWrapper(W.List.isList(l)?l:(0,W.List)(JSON.parse(l)))}});this.setDefaultValue()}UNSAFE_componentWillReceiveProps(r){let n,{specSelectors:i,pathMethod:s,rawParam:a}=r,o=i.isOAS3(),u=i.parameterWithMetaByIdentity(s,a)||new W.Map;if(u=u.isEmpty()?a:u,o){let{schema:f}=xp(u,{isOAS3:o});n=f?f.get("enum"):void 0}else n=u?u.get("enum"):void 0;let c,l=u?u.get("value"):void 0;l!==void 0?c=l:a.get("required")&&n&&n.size&&(c=n.first()),c!==void 0&&c!==l&&this.onChangeWrapper(function(h){return typeof h=="number"?h.toString():h}(c)),this.setDefaultValue()}getParamKey(){const{param:r}=this.props;return r?`${r.get("name")}-${r.get("in")}`:null}composeJsonSchema(r){var a,o,u,c;const{fn:n}=this.props,i=(o=(a=r.get("oneOf"))==null?void 0:a.get(0))==null?void 0:o.toJS(),s=(c=(u=r.get("anyOf"))==null?void 0:u.get(0))==null?void 0:c.toJS();return(0,W.fromJS)(n.mergeJsonSchema(r.toJS(),i??s??{}))}render(){let{param:r,rawParam:n,getComponent:i,getConfigs:s,isExecute:a,fn:o,onChangeConsumes:u,specSelectors:c,pathMethod:l,specPath:f,oas3Selectors:h}=this.props,d=c.isOAS3();const{showExtensions:g,showCommonExtensions:y}=s();if(r||(r=n),!n)return null;const v=i("JsonSchemaForm"),E=i("ParamBody");let b=r.get("in"),S=b!=="body"?null:p.default.createElement(E,{getComponent:i,getConfigs:s,fn:o,param:r,consumes:c.consumesOptionsFor(l),consumesValue:c.contentTypeValues(l).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:u,isExecute:a,specSelectors:c,pathMethod:l});const x=i("modelExample"),_=i("Markdown",!0),A=i("ParameterExt"),C=i("ParameterIncludeEmpty"),R=i("ExamplesSelectValueRetainer"),O=i("Example");let{schema:M}=xp(r,{isOAS3:d}),k=c.parameterWithMetaByIdentity(l,n)||(0,W.Map)();d&&(M=this.composeJsonSchema(M));let D=M?M.get("format"):null,P=b==="formData",H="FormData"in Zt,Z=r.get("required");const V=o.jsonSchema202012.getType(Wn(M)),G=o.jsonSchema202012.foldType(Wn(M==null?void 0:M.get("type"))),Q=o.jsonSchema202012.foldType(Wn(M==null?void 0:M.getIn(["items","type"]))),Y=!S&&G==="object",L=!S&&Q==="object";let J,ee,ne,ae,X=k?k.get("value"):"",B=y?p5(M):null,F=g?Ca(r):null,ue=!1;r!==void 0&&M&&(J=M.get("items")),J!==void 0?(ee=J.get("enum"),ne=J.get("default")):M&&(ee=M.get("enum")),ee&&ee.size&&ee.size>0&&(ue=!0),r!==void 0&&(M&&(ne=M.get("default")),ne===void 0&&(ne=r.get("default")),ae=r.get("example"),ae===void 0&&(ae=r.get("x-example")));const fe=S?null:p.default.createElement(v,{fn:o,getComponent:i,value:X,required:Z,disabled:!a,description:r.get("name"),onChange:this.onChangeWrapper,errors:k.get("errors"),schema:M});return p.default.createElement("tr",{"data-param-name":r.get("name"),"data-param-in":r.get("in")},p.default.createElement("td",{className:"parameters-col_name"},p.default.createElement("div",{className:Z?"parameter__name required":"parameter__name"},r.get("name"),Z?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},V,D&&p.default.createElement("span",{className:"prop-format"},"($",D,")")),p.default.createElement("div",{className:"parameter__deprecated"},d&&r.get("deprecated")?"deprecated":null),p.default.createElement("div",{className:"parameter__in"},"(",r.get("in"),")")),p.default.createElement("td",{className:"parameters-col_description"},r.get("description")?p.default.createElement(_,{source:r.get("description")}):null,!S&&a||!ue?null:p.default.createElement(_,{className:"parameter__enum",source:"<i>Available values</i> : "+ee.map(function(Ae){return Ae}).toArray().map(String).join(", ")}),!S&&a||ne===void 0?null:p.default.createElement(_,{className:"parameter__default",source:"<i>Default value</i> : "+ne}),!S&&a||ae===void 0?null:p.default.createElement(_,{source:"<i>Example</i> : "+ae}),P&&!H&&p.default.createElement("div",null,"Error: your browser does not support FormData"),d&&r.get("examples")?p.default.createElement("section",{className:"parameter-controls"},p.default.createElement(R,{examples:r.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:i,defaultToFirstExample:!0,currentKey:h.activeExamplesMember(...l,"parameters",this.getParamKey()),currentUserInputValue:X})):null,Y||L?p.default.createElement(x,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:M,example:fe}):fe,S&&M?p.default.createElement(x,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:M,example:S,includeWriteOnly:!0}):null,!S&&a&&r.get("allowEmptyValue")?p.default.createElement(C,{onChange:this.onChangeIncludeEmpty,isIncluded:c.parameterInclusionSettingFor(l,r.get("name"),r.get("in")),isDisabled:!TC(X)}):null,d&&r.get("examples")?p.default.createElement(O,{example:r.getIn(["examples",h.activeExamplesMember(...l,"parameters",this.getParamKey())]),getComponent:i,getConfigs:s}):null,y&&B.size?B.entrySeq().map(([Ae,Ne])=>p.default.createElement(A,{key:`${Ae}-${Ne}`,xKey:Ae,xVal:Ne})):null,g&&F.size?F.entrySeq().map(([Ae,Ne])=>p.default.createElement(A,{key:`${Ae}-${Ne}`,xKey:Ae,xVal:Ne})):null))}}class YEe extends p.Component{constructor(){super(...arguments);z(this,"handleValidateParameters",()=>{let{specSelectors:r,specActions:n,path:i,method:s}=this.props;return n.validateParams([i,s]),r.validateBeforeExecute([i,s])});z(this,"handleValidateRequestBody",()=>{let{path:r,method:n,specSelectors:i,oas3Selectors:s,oas3Actions:a}=this.props,o={missingBodyValue:!1,missingRequiredKeys:[]};a.clearRequestBodyValidateError({path:r,method:n});let u=i.getOAS3RequiredRequestBodyContentType([r,n]),c=s.requestBodyValue(r,n),l=s.validateBeforeExecute([r,n]),f=s.requestContentType(r,n);if(!l)return o.missingBodyValue=!0,a.setRequestBodyValidateError({path:r,method:n,validationErrors:o}),!1;if(!u)return!0;let h=s.validateShallowRequired({oas3RequiredRequestBodyContentType:u,oas3RequestContentType:f,oas3RequestBodyValue:c});return!h||h.length<1||(h.forEach(d=>{o.missingRequiredKeys.push(d)}),a.setRequestBodyValidateError({path:r,method:n,validationErrors:o}),!1)});z(this,"handleValidationResultPass",()=>{let{specActions:r,operation:n,path:i,method:s}=this.props;this.props.onExecute&&this.props.onExecute(),r.execute({operation:n,path:i,method:s})});z(this,"handleValidationResultFail",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearValidateParams([n,i]),setTimeout(()=>{r.validateParams([n,i])},40)});z(this,"handleValidationResult",r=>{r?this.handleValidationResultPass():this.handleValidationResultFail()});z(this,"onClick",()=>{let r=this.handleValidateParameters(),n=this.handleValidateRequestBody(),i=r&&n;this.handleValidationResult(i)});z(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r))}render(){const{disabled:r}=this.props;return p.default.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:r},"Execute")}}class XEe extends p.default.Component{render(){let{headers:t,getComponent:r}=this.props;const n=r("Property"),i=r("Markdown",!0);return t&&t.size?p.default.createElement("div",{className:"headers-wrapper"},p.default.createElement("h4",{className:"headers__title"},"Headers:"),p.default.createElement("table",{className:"headers"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"header-row"},p.default.createElement("th",{className:"header-col"},"Name"),p.default.createElement("th",{className:"header-col"},"Description"),p.default.createElement("th",{className:"header-col"},"Type"))),p.default.createElement("tbody",null,t.entrySeq().map(([s,a])=>{if(!W.default.Map.isMap(a))return null;const o=a.get("description"),u=a.getIn(["schema"])?a.getIn(["schema","type"]):a.getIn(["type"]),c=a.getIn(["schema","example"]);return p.default.createElement("tr",{key:s},p.default.createElement("td",{className:"header-col"},s),p.default.createElement("td",{className:"header-col"},o?p.default.createElement(i,{source:o}):null),p.default.createElement("td",{className:"header-col"},u," ",c?p.default.createElement(n,{propKey:"Example",propVal:c,propClass:"header-example"}):null))}).toArray()))):null}}class ZEe extends p.default.Component{render(){let{editorActions:t,errSelectors:r,layoutSelectors:n,layoutActions:i,getComponent:s}=this.props;const a=s("Collapse");if(t&&t.jumpToLine)var o=t.jumpToLine;let u=r.allErrors().filter(f=>f.get("type")==="thrown"||f.get("level")==="error");if(!u||u.count()<1)return null;let c=n.isShown(["errorPane"],!0),l=u.sortBy(f=>f.get("line"));return p.default.createElement("pre",{className:"errors-wrapper"},p.default.createElement("hgroup",{className:"error"},p.default.createElement("h4",{className:"errors__title"},"Errors"),p.default.createElement("button",{className:"btn errors__clear-btn",onClick:()=>i.show(["errorPane"],!c)},c?"Hide":"Show")),p.default.createElement(a,{isOpened:c,animated:!0},p.default.createElement("div",{className:"errors"},l.map((f,h)=>{let d=f.get("type");return d==="thrown"||d==="auth"?p.default.createElement(QEe,{key:h,error:f.get("error")||f,jumpToLine:o}):d==="spec"?p.default.createElement(eSe,{key:h,error:f,jumpToLine:o}):void 0}))))}}const QEe=({error:e,jumpToLine:t})=>{if(!e)return null;let r=e.get("line");return p.default.createElement("div",{className:"error-wrapper"},e?p.default.createElement("div",null,p.default.createElement("h4",null,e.get("source")&&e.get("level")?U7(e.get("source"))+" "+e.get("level"):"",e.get("path")?p.default.createElement("small",null," at ",e.get("path")):null),p.default.createElement("span",{className:"message thrown"},e.get("message")),p.default.createElement("div",{className:"error-line"},r&&t?p.default.createElement("a",{onClick:t.bind(null,r)},"Jump to line ",r):null)):null)},eSe=({error:e,jumpToLine:t=null})=>{let r=null;return e.get("path")?r=W.List.isList(e.get("path"))?p.default.createElement("small",null,"at ",e.get("path").join(".")):p.default.createElement("small",null,"at ",e.get("path")):e.get("line")&&!t&&(r=p.default.createElement("small",null,"on line ",e.get("line"))),p.default.createElement("div",{className:"error-wrapper"},e?p.default.createElement("div",null,p.default.createElement("h4",null,U7(e.get("source"))+" "+e.get("level")," ",r),p.default.createElement("span",{className:"message"},e.get("message")),p.default.createElement("div",{className:"error-line"},t?p.default.createElement("a",{onClick:t.bind(null,e.get("line"))},"Jump to line ",e.get("line")):null)):null)};function U7(e){return(e||"").split(" ").map(t=>t[0].toUpperCase()+t.slice(1)).join(" ")}const tSe=()=>{};class V7 extends p.default.Component{constructor(){super(...arguments);z(this,"onChangeWrapper",r=>this.props.onChange(r.target.value))}componentDidMount(){this.props.contentTypes&&this.props.onChange(this.props.contentTypes.first())}UNSAFE_componentWillReceiveProps(r){r.contentTypes&&r.contentTypes.size&&(r.contentTypes.includes(r.value)||r.onChange(r.contentTypes.first()))}render(){let{ariaControls:r,ariaLabel:n,className:i,contentTypes:s,controlId:a,value:o}=this.props;return s&&s.size?p.default.createElement("div",{className:"content-type-wrapper "+(i||"")},p.default.createElement("select",{"aria-controls":r,"aria-label":n,className:"content-type",id:a,onChange:this.onChangeWrapper,value:o||""},s.map(u=>p.default.createElement("option",{key:u,value:u},u)).toArray())):null}}z(V7,"defaultProps",{onChange:tSe,value:null,contentTypes:(0,W.fromJS)(["application/json"])});function _f(...e){return e.filter(t=>!!t).join(" ").trim()}class rSe extends p.default.Component{render(){let{fullscreen:t,full:r,...n}=this.props;if(t)return p.default.createElement("section",n);let i="swagger-container"+(r?"-full":"");return p.default.createElement("section",(0,At.default)({},n,{className:_f(n.className,i)}))}}const cw={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class nSe extends p.default.Component{render(){const{hide:t,keepContents:r,mobile:n,tablet:i,desktop:s,large:a,...o}=this.props;if(t&&!r)return p.default.createElement("span",null);let u=[];for(let l in cw){if(!Object.prototype.hasOwnProperty.call(cw,l))continue;let f=cw[l];if(l in this.props){let h=this.props[l];if(h<1){u.push("none"+f);continue}u.push("block"+f),u.push("col-"+h+f)}}t&&u.push("hidden");let c=_f(o.className,...u);return p.default.createElement("section",(0,At.default)({},o,{className:c}))}}class iSe extends p.default.Component{render(){return p.default.createElement("div",(0,At.default)({},this.props,{className:_f(this.props.className,"wrapper")}))}}class z7 extends p.default.Component{render(){return p.default.createElement("button",(0,At.default)({},this.props,{className:_f(this.props.className,"button")}))}}z(z7,"defaultProps",{className:""});const sSe=e=>p.default.createElement("textarea",e),aSe=e=>p.default.createElement("input",e);class W7 extends p.default.Component{constructor(r,n){let i;super(r,n);z(this,"onChange",r=>{let n,{onChange:i,multiple:s}=this.props,a=[].slice.call(r.target.options);n=s?a.filter(function(o){return o.selected}).map(function(o){return o.value}):r.target.value,this.setState({value:n}),i&&i(n)});i=r.value?r.value:r.multiple?[""]:"",this.state={value:i}}UNSAFE_componentWillReceiveProps(r){r.value!==this.props.value&&this.setState({value:r.value})}render(){var o,u;let{allowedValues:r,multiple:n,allowEmptyValue:i,disabled:s}=this.props,a=((u=(o=this.state.value)==null?void 0:o.toJS)==null?void 0:u.call(o))||this.state.value;return p.default.createElement("select",{className:this.props.className,multiple:n,value:a,onChange:this.onChange,disabled:s},i?p.default.createElement("option",{value:""},"--"):null,r.map(function(c,l){return p.default.createElement("option",{key:l,value:String(c)},String(c))}))}}z(W7,"defaultProps",{multiple:!1,allowEmptyValue:!0});class J7 extends p.default.Component{render(){return p.default.createElement("a",(0,At.default)({},this.props,{rel:"noopener noreferrer",className:_f(this.props.className,"link")}))}}const rL=({children:e})=>p.default.createElement("div",{className:"no-margin"}," ",e," ");class K7 extends p.default.Component{renderNotAnimated(){return this.props.isOpened?p.default.createElement(rL,null,this.props.children):p.default.createElement("noscript",null)}render(){let{animated:t,isOpened:r,children:n}=this.props;return t?(n=r?n:null,p.default.createElement(rL,null,n)):this.renderNotAnimated()}}z(K7,"defaultProps",{isOpened:!1,animated:!1});class oSe extends p.default.Component{constructor(...t){super(...t),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(t,r){this.props.layoutActions.show(t,r)}showOp(t,r){let{layoutActions:n}=this.props;n.show(t,r)}render(){let{specSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:i}=this.props,s=t.taggedOperations();const a=i("Collapse");return p.default.createElement("div",null,p.default.createElement("h4",{className:"overview-title"},"Overview"),s.map((o,u)=>{let c=o.get("operations"),l=["overview-tags",u],f=r.isShown(l,!0);return p.default.createElement("div",{key:"overview-"+u},p.default.createElement("h4",{onClick:()=>n.show(l,!f),className:"link overview-tag"}," ",f?"-":"+",u),p.default.createElement(a,{isOpened:f,animated:!0},c.map(h=>{let{path:d,method:g,id:y}=h.toObject(),v="operations",E=y,b=r.isShown([v,E]);return p.default.createElement(uSe,{key:y,path:d,method:g,id:d+"-"+g,shown:b,showOpId:E,showOpIdPrefix:v,href:`#operation-${E}`,onClick:n.show})}).toArray()))}).toArray(),s.size<1&&p.default.createElement("h3",null," No operations defined in spec! "))}}class uSe extends p.default.Component{constructor(t){super(t),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:t,showOpIdPrefix:r,onClick:n,shown:i}=this.props;n([r,t],!i)}render(){let{id:t,method:r,shown:n,href:i}=this.props;return p.default.createElement(J7,{href:i,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},p.default.createElement("div",null,p.default.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),p.default.createElement("span",{className:"bold-label"},t)))}}class cSe extends p.default.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:t,defaultValue:r,initialValue:n,...i}=this.props;return p.default.createElement("input",(0,At.default)({},i,{ref:s=>this.inputRef=s}))}}class lSe extends p.default.Component{render(){const{host:t,basePath:r}=this.props;return p.default.createElement("pre",{className:"base-url"},"[ Base URL: ",t,r," ]")}}class fSe extends p.default.PureComponent{render(){const{url:t,getComponent:r}=this.props,n=r("Link");return p.default.createElement(n,{target:"_blank",href:vr(t)},p.default.createElement("span",{className:"url"}," ",t))}}class pSe extends p.default.Component{render(){const{info:t,url:r,host:n,basePath:i,getComponent:s,externalDocs:a,selectedServer:o,url:u}=this.props,c=t.get("version"),l=t.get("description"),f=t.get("title"),h=Mi(t.get("termsOfService"),u,{selectedServer:o}),d=t.get("contact"),g=t.get("license"),y=Mi(a&&a.get("url"),u,{selectedServer:o}),v=a&&a.get("description"),E=s("Markdown",!0),b=s("Link"),S=s("VersionStamp"),x=s("OpenAPIVersion"),_=s("InfoUrl"),A=s("InfoBasePath"),C=s("License"),R=s("Contact");return p.default.createElement("div",{className:"info"},p.default.createElement("hgroup",{className:"main"},p.default.createElement("h2",{className:"title"},f,p.default.createElement("span",null,c&&p.default.createElement(S,{version:c}),p.default.createElement(x,{oasVersion:"2.0"}))),n||i?p.default.createElement(A,{host:n,basePath:i}):null,r&&p.default.createElement(_,{getComponent:s,url:r})),p.default.createElement("div",{className:"description"},p.default.createElement(E,{source:l})),h&&p.default.createElement("div",{className:"info__tos"},p.default.createElement(b,{target:"_blank",href:vr(h)},"Terms of service")),(d==null?void 0:d.size)>0&&p.default.createElement(R,{getComponent:s,data:d,selectedServer:o,url:r}),(g==null?void 0:g.size)>0&&p.default.createElement(C,{getComponent:s,license:g,selectedServer:o,url:r}),y?p.default.createElement(b,{className:"info__extdocs",target:"_blank",href:vr(y)},v||y):null)}}var dSe=pSe;class hSe extends p.default.Component{render(){const{specSelectors:t,getComponent:r,oas3Selectors:n}=this.props,i=t.info(),s=t.url(),a=t.basePath(),o=t.host(),u=t.externalDocs(),c=n.selectedServer(),l=r("info");return p.default.createElement("div",null,i&&i.count()?p.default.createElement(l,{info:i,url:s,host:o,basePath:a,externalDocs:u,getComponent:r,selectedServer:c}):null)}}class mSe extends p.default.Component{render(){const{data:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","the developer"),a=Mi(t.get("url"),i,{selectedServer:n}),o=t.get("email"),u=r("Link");return p.default.createElement("div",{className:"info__contact"},a&&p.default.createElement("div",null,p.default.createElement(u,{href:vr(a),target:"_blank"},s," - Website")),o&&p.default.createElement(u,{href:vr(`mailto:${o}`)},a?`Send email to ${s}`:`Contact ${s}`))}}var gSe=mSe;class ySe extends p.default.Component{render(){const{license:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","License"),a=Mi(t.get("url"),i,{selectedServer:n}),o=r("Link");return p.default.createElement("div",{className:"info__license"},a?p.default.createElement("div",{className:"info__license__url"},p.default.createElement(o,{target:"_blank",href:vr(a)},s)):p.default.createElement("span",null,s))}}var vSe=ySe;class bSe extends p.default.Component{render(){return null}}class _Se extends p.default.Component{render(){let{getComponent:t}=this.props;const r=t("CopyIcon");return p.default.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},p.default.createElement(Rm.CopyToClipboard,{text:this.props.textToCopy},p.default.createElement(r,null)))}}class ESe extends p.default.Component{render(){return p.default.createElement("div",{className:"footer"})}}class SSe extends p.default.Component{constructor(){super(...arguments);z(this,"onFilterChange",r=>{const{target:{value:n}}=r;this.props.layoutActions.updateFilter(n)})}render(){const{specSelectors:r,layoutSelectors:n,getComponent:i}=this.props,s=i("Col"),a=r.loadingStatus()==="loading",o=r.loadingStatus()==="failed",u=n.currentFilter(),c=["operation-filter-input"];return o&&c.push("failed"),a&&c.push("loading"),p.default.createElement("div",null,u===!1?null:p.default.createElement("div",{className:"filter-container"},p.default.createElement(s,{className:"filter wrapper",mobile:12},p.default.createElement("input",{className:c.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof u=="string"?u:"",disabled:a}))))}}const lw=Function.prototype,Gd=class Gd extends p.PureComponent{constructor(r,n){super(r,n);z(this,"updateValues",r=>{let{param:n,isExecute:i,consumesValue:s=""}=r,a=/xml/i.test(s),o=/json/i.test(s),u=a?n.get("value_xml"):n.get("value");if(u!==void 0){let c=!u&&o?"{}":u;this.setState({value:c}),this.onChange(c,{isXml:a,isEditBox:i})}else a?this.onChange(this.sample("xml"),{isXml:a,isEditBox:i}):this.onChange(this.sample(),{isEditBox:i})});z(this,"sample",r=>{let{param:n,fn:i}=this.props,s=i.inferSchema(n.toJS());return i.getSampleSchema(s,r,{includeWriteOnly:!0})});z(this,"onChange",(r,{isEditBox:n,isXml:i})=>{this.setState({value:r,isEditBox:n}),this._onChange(r,i)});z(this,"_onChange",(r,n)=>{(this.props.onChange||lw)(r,n)});z(this,"handleOnChange",r=>{const{consumesValue:n}=this.props,i=/xml/i.test(n),s=r.target.value;this.onChange(s,{isXml:i,isEditBox:this.state.isEditBox})});z(this,"toggleIsEditBox",()=>this.setState(r=>({isEditBox:!r.isEditBox})));this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(r){this.updateValues.call(this,r)}render(){let{onChangeConsumes:r,param:n,isExecute:i,specSelectors:s,pathMethod:a,getComponent:o}=this.props;const u=o("Button"),c=o("TextArea"),l=o("HighlightCode",!0),f=o("contentType");let h=(s?s.parameterWithMetaByIdentity(a,n):n).get("errors",(0,W.List)()),d=s.contentTypeValues(a).get("requestContentType"),g=this.props.consumes&&this.props.consumes.size?this.props.consumes:Gd.defaultProp.consumes,{value:y,isEditBox:v}=this.state,E=null;Pm(y)&&(E="json");const b=`${cR(`${a[1]}${a[0]}_parameters`)}_select`;return p.default.createElement("div",{className:"body-param","data-param-name":n.get("name"),"data-param-in":n.get("in")},v&&i?p.default.createElement(c,{className:"body-param__text"+(h.count()?" invalid":""),value:y,onChange:this.handleOnChange}):y&&p.default.createElement(l,{className:"body-param__example",language:E},y),p.default.createElement("div",{className:"body-param-options"},i?p.default.createElement("div",{className:"body-param-edit"},p.default.createElement(u,{className:v?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},v?"Cancel":"Edit")):null,p.default.createElement("label",{htmlFor:b},p.default.createElement("span",null,"Parameter content type"),p.default.createElement(f,{value:d,contentTypes:g,onChange:r,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:b}))))}};z(Gd,"defaultProp",{consumes:(0,W.fromJS)(["application/json"]),param:(0,W.fromJS)({}),onChange:lw,onChangeConsumes:lw});let CA=Gd;class wSe extends p.default.Component{render(){const{request:t,getComponent:r}=this.props,n=R5(t),i=r("SyntaxHighlighter",!0);return p.default.createElement("div",{className:"curl-command"},p.default.createElement("h4",null,"Curl"),p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement(Rm.CopyToClipboard,{text:n},p.default.createElement("button",null))),p.default.createElement("div",null,p.default.createElement(i,{language:"bash",className:"curl microlight",renderPlainText:({children:s,PlainTextViewer:a})=>p.default.createElement(a,{className:"curl"},s)},n)))}}var xSe=({propKey:e,propVal:t,propClass:r})=>p.default.createElement("span",{className:r},p.default.createElement("br",null),e,": ",String(t));class H7 extends p.default.Component{render(){const{onTryoutClick:t,onCancelClick:r,onResetClick:n,enabled:i,hasUserEditedBody:s,isOAS3:a}=this.props,o=a&&s;return p.default.createElement("div",{className:o?"try-out btn-group":"try-out"},i?p.default.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):p.default.createElement("button",{className:"btn try-out__btn",onClick:t},"Try it out "),o&&p.default.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}z(H7,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class G7 extends p.default.PureComponent{render(){const{bypass:t,isSwagger2:r,isOAS3:n,alsoShow:i}=this.props;return t?p.default.createElement("div",null,this.props.children):r&&n?p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,p.default.createElement("code",null,"swagger")," and ",p.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),p.default.createElement("p",null,"Supported version fields are ",p.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",p.default.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?p.default.createElement("div",null,this.props.children):p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,"The provided definition does not specify a valid version field."),p.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",p.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",p.default.createElement("code",null,"openapi: 3.0.4"),")."))))}}z(G7,"defaultProps",{alsoShow:null,children:null,bypass:!1});var ASe=({version:e})=>p.default.createElement("small",null,p.default.createElement("pre",{className:"version"}," ",e," ")),OSe=({oasVersion:e})=>p.default.createElement("small",{className:"version-stamp"},p.default.createElement("pre",{className:"version"},"OAS ",e)),CSe=({enabled:e,path:t,text:r})=>p.default.createElement("a",{className:"nostyle",onClick:e?n=>n.preventDefault():null,href:e?`#/${t}`:null},p.default.createElement("span",null,r)),RSe=()=>p.default.createElement("div",null,p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},p.default.createElement("defs",null,p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},p.default.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},p.default.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},p.default.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},p.default.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),p.default.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},p.default.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),p.default.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},p.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),p.default.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},p.default.createElement("g",{transform:"translate(2, -1)"},p.default.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"})))))),Y7=function(e){var t={};return me.d(t,e),t}({Remarkable:function(){return Oa}}),TSe=function(e){var t={};return me.d(t,e),t}({linkify:function(){return Cye}}),RA=function(e){var t={};return me.d(t,e),t}({default:function(){return Gye}});RA.default.addHook&&RA.default.addHook("beforeSanitizeElements",function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e});var ISe=function({source:t,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof t!="string")return null;const i=new Y7.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(TSe.linkify);i.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:s}=n(),a=i.render(t),o=Wc(a,{useUnsafeMarkdown:s});return t&&a&&o?p.default.createElement("div",{className:(0,Ot.default)(r,"markdown"),dangerouslySetInnerHTML:{__html:o}}):null};function Wc(e,{useUnsafeMarkdown:t=!1}={}){const r=t,n=t?[]:["style","class"];return t&&!Wc.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),Wc.hasWarnedAboutDeprecation=!0),RA.default.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}Wc.hasWarnedAboutDeprecation=!1;class jSe extends p.default.Component{render(){const{errSelectors:t,specSelectors:r,getComponent:n}=this.props,i=n("SvgAssets"),s=n("InfoContainer",!0),a=n("VersionPragmaFilter"),o=n("operations",!0),u=n("Models",!0),c=n("Webhooks",!0),l=n("Row"),f=n("Col"),h=n("errors",!0),d=n("ServersContainer",!0),g=n("SchemesContainer",!0),y=n("AuthorizeBtnContainer",!0),v=n("FilterContainer",!0),E=r.isSwagger2(),b=r.isOAS3(),S=r.isOAS31(),x=!r.specStr(),_=r.loadingStatus();let A=null;if(_==="loading"&&(A=p.default.createElement("div",{className:"info"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})))),_==="failed"&&(A=p.default.createElement("div",{className:"info"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("h4",{className:"title"},"Failed to load API definition."),p.default.createElement(h,null)))),_==="failedConfig"){const D=t.lastError(),P=D?D.get("message"):"";A=p.default.createElement("div",{className:"info failed-config"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("h4",{className:"title"},"Failed to load remote configuration."),p.default.createElement("p",null,P)))}if(!A&&x&&(A=p.default.createElement("h4",null,"No API definition provided.")),A)return p.default.createElement("div",{className:"swagger-ui"},p.default.createElement("div",{className:"loading-container"},A));const C=r.servers(),R=r.schemes(),O=C&&C.size,M=R&&R.size,k=!!r.securityDefinitions();return p.default.createElement("div",{className:"swagger-ui"},p.default.createElement(i,null),p.default.createElement(a,{isSwagger2:E,isOAS3:b,alsoShow:p.default.createElement(h,null)},p.default.createElement(h,null),p.default.createElement(l,{className:"information-container"},p.default.createElement(f,{mobile:12},p.default.createElement(s,null))),O||M||k?p.default.createElement("div",{className:"scheme-container"},p.default.createElement(f,{className:"schemes wrapper",mobile:12},O||M?p.default.createElement("div",{className:"schemes-server-container"},O?p.default.createElement(d,null):null,M?p.default.createElement(g,null):null):null,k?p.default.createElement(y,null):null)):null,p.default.createElement(v,null),p.default.createElement(l,null,p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(o,null))),S&&p.default.createElement(l,{className:"webhooks-container"},p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(c,null))),p.default.createElement(l,null,p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(u,null)))))}}var kSe=()=>({components:{App:_Ee,authorizationPopup:EEe,authorizeBtn:SEe,AuthorizeBtnContainer:wEe,authorizeOperationBtn:xEe,auths:AEe,AuthItem:OEe,authError:CEe,oauth2:kEe,apiKeyAuth:REe,basicAuth:TEe,clear:PEe,liveResponse:DEe,InitializedInput:cSe,info:dSe,InfoContainer:hSe,InfoUrl:fSe,InfoBasePath:lSe,Contact:gSe,License:vSe,JumpToPath:bSe,CopyToClipboardBtn:_Se,onlineValidatorBadge:N7,operations:$Ee,operation:D7,OperationSummary:$7,OperationSummaryMethod:F7,OperationSummaryPath:LEe,responses:OA,response:VEe,ResponseExtension:zEe,responseBody:JEe,parameters:L7,parameterRow:GEe,execute:YEe,headers:XEe,errors:ZEe,contentType:V7,overview:oSe,footer:ESe,FilterContainer:SSe,ParamBody:CA,curl:wSe,Property:xSe,TryItOutButton:H7,Markdown:ISe,BaseLayout:jSe,VersionPragmaFilter:G7,VersionStamp:ASe,OperationExt:BEe,OperationExtRow:UEe,ParameterExt:KEe,ParameterIncludeEmpty:B7,OperationTag:M7,OperationContainer:q7,OpenAPIVersion:OSe,DeepLink:CSe,SvgAssets:RSe,Example:IEe,ExamplesSelect:k7,ExamplesSelectValueRetainer:P7}}),PSe=()=>({components:{...cA}}),X7=()=>[v5,v7,O5,S7,w7,m7,E5,w5,A5,F5,J5,kSe,PSe,y7,y5,x7,b5,S5,C5,I5,O7,C7,j7()];const NSe=(0,W.Map)();function Ef(e){return(t,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const i=e(...n);return typeof i=="function"?i(r):i}return t(...n)}}const Sf=Ef((0,Tm.default)(null)),MSe=Ef((e,t)=>r=>r.getSystem().specSelectors.findSchema(t)),DSe=Ef(()=>e=>{const t=e.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return W.Map.isMap(t)?t:NSe}),qSe=Ef(()=>e=>e.getSystem().specSelectors.specJson().hasIn(["servers",0])),$Se=Ef((0,et.createSelector)(Bi,e=>e.getIn(["components","securitySchemes"])||null)),FSe=(e,t)=>(r,...n)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...n),LSe=Sf,BSe=Sf,USe=Sf,VSe=Sf,zSe=Sf,WSe=function(t){return(r,n)=>(...i)=>{if(n.getSystem().specSelectors.isOAS3()){let s=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return t(n,s,...i)}return r(...i)}}((0,et.createSelector)(e=>e,({specSelectors:e})=>e.securityDefinitions(),(e,t)=>{let r=(0,W.List)();return t&&t.entrySeq().forEach(([n,i])=>{const s=i==null?void 0:i.get("type");if(s==="oauth2"&&i.get("flows").entrySeq().forEach(([a,o])=>{let u=(0,W.fromJS)({flow:a,authorizationUrl:o.get("authorizationUrl"),tokenUrl:o.get("tokenUrl"),scopes:o.get("scopes"),type:i.get("type"),description:i.get("description")});r=r.push(new W.Map({[n]:u.filter(c=>c!==void 0)}))}),s!=="http"&&s!=="apiKey"||(r=r.push(new W.Map({[n]:i}))),s==="openIdConnect"&&i.get("openIdConnectData")){let a=i.get("openIdConnectData");(a.get("grant_types_supported")||["authorization_code","implicit"]).forEach(o=>{let u=a.get("scopes_supported")&&a.get("scopes_supported").reduce((l,f)=>l.set(f,""),new W.Map),c=(0,W.fromJS)({flow:o,authorizationUrl:a.get("authorization_endpoint"),tokenUrl:a.get("token_endpoint"),scopes:u,type:"oauth2",openIdConnectUrl:i.get("openIdConnectUrl")});r=r.push(new W.Map({[n]:c.filter(l=>l!==void 0)}))})}}),r}));function wf(e){return(t,r)=>n=>{var i;return typeof((i=r.specSelectors)==null?void 0:i.isOAS3)=="function"?r.specSelectors.isOAS3()?p.default.createElement(e,(0,At.default)({},n,r,{Ori:t})):p.default.createElement(t,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}const JSe=(0,W.Map)(),KSe=()=>e=>function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"}(e.getSystem().specSelectors.specJson()),HSe=()=>e=>function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)}(e.getSystem().specSelectors.specJson()),GSe=()=>e=>e.getSystem().specSelectors.isOAS30();function Z7(e){return(t,...r)=>n=>{if(n.specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null}}const YSe=Z7(()=>e=>e.specSelectors.specJson().get("servers",JSe)),XSe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","components","schemas",t],null),n=e.getIn(["json","components","schemas",t],null);return r||n||null},ZSe=Z7((e,{callbacks:t,specPath:r})=>n=>{const i=n.specSelectors.validOperationMethods();return W.Map.isMap(t)?t.reduce((s,a,o)=>{if(!W.Map.isMap(a))return s;const u=a.reduce((c,l,f)=>{if(!W.Map.isMap(l))return c;const h=l.entrySeq().filter(([d])=>i.includes(d)).map(([d,g])=>({operation:(0,W.Map)({operation:g}),method:d,path:f,callbackName:o,specPath:r.concat([o,f,d])}));return c.concat(h)},(0,W.List)());return s.concat(u)},(0,W.List)()).groupBy(s=>s.callbackName).map(s=>s.toArray()).toObject():{}});var QSe=({callbacks:e,specPath:t,specSelectors:r,getComponent:n})=>{const i=r.callbacksOperations({callbacks:e,specPath:t}),s=Object.keys(i),a=n("OperationContainer",!0);return s.length===0?p.default.createElement("span",null,"No callbacks"):p.default.createElement("div",null,s.map(o=>p.default.createElement("div",{key:`${o}`},p.default.createElement("h2",null,o),i[o].map(u=>p.default.createElement(a,{key:`${o}-${u.path}-${u.method}`,op:u.operation,tag:"callbacks",method:u.method,path:u.path,specPath:u.specPath,allowTryItOut:!1})))))};const cd=(e,t,r,n)=>{const i=e.getIn(["content",t])??(0,W.OrderedMap)(),s=i.get("schema",(0,W.OrderedMap)()).toJS(),a=i.get("examples")!==void 0,o=i.get("example"),u=a?i.getIn(["examples",r,"value"]):o;return Xr(n.getSampleSchema(s,t,{includeWriteOnly:!0},u))};var e1e=({userHasEditedBody:e,requestBody:t,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:i,getComponent:s,getConfigs:a,specSelectors:o,fn:u,contentType:c,isExecute:l,specPath:f,onChange:h,onChangeIncludeEmpty:d,activeExamplesKey:g,updateActiveExamplesKey:y,setRetainRequestBodyValueFlag:v})=>{const E=Y=>{h(Y.target.files[0])},b=Y=>{let L={key:Y,shouldDispatchInit:!1,defaultValue:!0};return n.get(Y,"no value")==="no value"&&(L.shouldDispatchInit=!0),L},S=s("Markdown",!0),x=s("modelExample"),_=s("RequestBodyEditor"),A=s("HighlightCode",!0),C=s("ExamplesSelectValueRetainer"),R=s("Example"),O=s("ParameterIncludeEmpty"),{showCommonExtensions:M}=a(),k=(t==null?void 0:t.get("description"))??null,D=(t==null?void 0:t.get("content"))??new W.OrderedMap;c=c||D.keySeq().first()||"";const P=D.get(c)??(0,W.OrderedMap)(),H=P.get("schema",(0,W.OrderedMap)()),Z=P.get("examples",null),V=Z==null?void 0:Z.map((Y,L)=>{const J=Y==null?void 0:Y.get("value",null);return J&&(Y=Y.set("value",cd(t,c,L,u),J)),Y});if(i=W.List.isList(i)?i:(0,W.List)(),u.isFileUploadIntended(P==null?void 0:P.get("schema"),c)){const Y=s("Input");return l?p.default.createElement(Y,{type:"file",onChange:E}):p.default.createElement("i",null,"Example values are not available for ",p.default.createElement("code",null,c)," media types.")}if(!P.size)return null;if(u.hasSchemaType(P.get("schema"),"object")&&(c==="application/x-www-form-urlencoded"||c.indexOf("multipart/")===0)&&H.get("properties",(0,W.OrderedMap)()).size>0){const Y=s("JsonSchemaForm"),L=s("ParameterExt"),J=H.get("properties",(0,W.OrderedMap)());return r=W.Map.isMap(r)?r:(0,W.OrderedMap)(),p.default.createElement("div",{className:"table-container"},k&&p.default.createElement(S,{source:k}),p.default.createElement("table",null,p.default.createElement("tbody",null,W.Map.isMap(J)&&J.entrySeq().map(([ee,ne])=>{var T,j,U,re;if(ne.get("readOnly"))return;const ae=(j=(T=ne.get("oneOf"))==null?void 0:T.get(0))==null?void 0:j.toJS(),X=(re=(U=ne.get("anyOf"))==null?void 0:U.get(0))==null?void 0:re.toJS();ne=(0,W.fromJS)(u.mergeJsonSchema(ne.toJS(),ae??X??{}));let B=M?p5(ne):null;const F=H.get("required",(0,W.List)()).includes(ee),ue=u.jsonSchema202012.getType(Wn(ne)),fe=u.jsonSchema202012.foldType(Wn(ne==null?void 0:ne.get("type"))),Ae=u.jsonSchema202012.foldType(Wn(ne==null?void 0:ne.getIn(["items","type"]))),Ne=ne.get("format"),pe=ne.get("description"),Oe=r.getIn([ee,"value"]),We=r.getIn([ee,"errors"])||i,he=n.get(ee)||!1;let ve=u.getSampleSchema(ne,!1,{includeWriteOnly:!0});ve===!1&&(ve="false"),ve===0&&(ve="0"),typeof ve!="string"&&fe==="object"&&(ve=Xr(ve)),typeof ve=="string"&&fe==="array"&&(ve=JSON.parse(ve));const Se=u.isFileUploadIntended(ne),$=p.default.createElement(Y,{fn:u,dispatchInitialValue:!Se,schema:ne,description:ee,getComponent:s,value:Oe===void 0?ve:Oe,required:F,errors:We,onChange:ie=>{h(ie,[ee])}});return p.default.createElement("tr",{key:ee,className:"parameters","data-property-name":ee},p.default.createElement("td",{className:"parameters-col_name"},p.default.createElement("div",{className:F?"parameter__name required":"parameter__name"},ee,F?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},ue,Ne&&p.default.createElement("span",{className:"prop-format"},"($",Ne,")"),M&&B.size?B.entrySeq().map(([ie,le])=>p.default.createElement(L,{key:`${ie}-${le}`,xKey:ie,xVal:le})):null),p.default.createElement("div",{className:"parameter__deprecated"},ne.get("deprecated")?"deprecated":null)),p.default.createElement("td",{className:"parameters-col_description"},p.default.createElement(S,{source:pe}),l?p.default.createElement("div",null,fe==="object"||Ae==="object"?p.default.createElement(x,{getComponent:s,specPath:f.push("schema"),getConfigs:a,isExecute:l,specSelectors:o,schema:ne,example:$}):$,F?null:p.default.createElement(O,{onChange:ie=>d(ee,ie),isIncluded:he,isIncludedOptions:b(ee),isDisabled:Array.isArray(Oe)?Oe.length!==0:!TC(Oe)})):null))}))))}const G=cd(t,c,g,u);let Q=null;return Pm(G)&&(Q="json"),p.default.createElement("div",null,k&&p.default.createElement(S,{source:k}),V?p.default.createElement(C,{userHasEditedBody:e,examples:V,currentKey:g,currentUserInputValue:r,onSelect:Y=>{y(Y)},updateValue:h,defaultToFirstExample:!0,getComponent:s,setRetainRequestBodyValueFlag:v}):null,l?p.default.createElement("div",null,p.default.createElement(_,{value:r,errors:i,defaultValue:G,onChange:h,getComponent:s})):p.default.createElement(x,{getComponent:s,getConfigs:a,specSelectors:o,expandDepth:1,isExecute:l,schema:P.get("schema"),specPath:f.push("content",c),example:p.default.createElement(A,{className:"body-param__example",language:Q},Xr(r)||G),includeWriteOnly:!0}),V?p.default.createElement(R,{example:V.get(g),getComponent:s,getConfigs:a}):null)};class t1e extends p.Component{render(){const{link:t,name:r,getComponent:n}=this.props,i=n("Markdown",!0);let s=t.get("operationId")||t.get("operationRef"),a=t.get("parameters")&&t.get("parameters").toJS(),o=t.get("description");return p.default.createElement("div",{className:"operation-link"},p.default.createElement("div",{className:"description"},p.default.createElement("b",null,p.default.createElement("code",null,r)),o?p.default.createElement(i,{source:o}):null),p.default.createElement("pre",null,"Operation `",s,"`",p.default.createElement("br",null),p.default.createElement("br",null),"Parameters ",function(c,l){return typeof l!="string"?"":l.split(`
306
+ `).map((f,h)=>h>0?Array(c+1).join(" ")+f:f).join(`
307
+ `)}(0,JSON.stringify(a,null,2))||"{}",p.default.createElement("br",null)))}}var r1e=t1e,n1e=({servers:e,currentServer:t,setSelectedServer:r,setServerVariableValue:n,getServerVariable:i,getEffectiveServerValue:s})=>{const a=(e.find(l=>l.get("url")===t)||(0,W.OrderedMap)()).get("variables")||(0,W.OrderedMap)(),o=a.size!==0;(0,p.useEffect)(()=>{var l;t||r((l=e.first())==null?void 0:l.get("url"))},[]),(0,p.useEffect)(()=>{const l=e.find(f=>f.get("url")===t);if(!l)return void r(e.first().get("url"));(l.get("variables")||(0,W.OrderedMap)()).map((f,h)=>{n({server:t,key:h,val:f.get("default")||""})})},[t,e]);const u=(0,p.useCallback)(l=>{r(l.target.value)},[r]),c=(0,p.useCallback)(l=>{const f=l.target.getAttribute("data-variable"),h=l.target.value;n({server:t,key:f,val:h})},[n,t]);return p.default.createElement("div",{className:"servers"},p.default.createElement("label",{htmlFor:"servers"},p.default.createElement("select",{onChange:u,value:t,id:"servers"},e.valueSeq().map(l=>p.default.createElement("option",{value:l.get("url"),key:l.get("url")},l.get("url"),l.get("description")&&` - ${l.get("description")}`)).toArray())),o&&p.default.createElement("div",null,p.default.createElement("div",{className:"computed-url"},"Computed URL:",p.default.createElement("code",null,s(t))),p.default.createElement("h4",null,"Server variables"),p.default.createElement("table",null,p.default.createElement("tbody",null,a.entrySeq().map(([l,f])=>p.default.createElement("tr",{key:l},p.default.createElement("td",null,l),p.default.createElement("td",null,f.get("enum")?p.default.createElement("select",{"data-variable":l,onChange:c},f.get("enum").map(h=>p.default.createElement("option",{selected:h===i(t,l),key:h,value:h},h))):p.default.createElement("input",{type:"text",value:i(t,l)||"",onChange:c,"data-variable":l}))))))))};class i1e extends p.default.Component{render(){const{specSelectors:t,oas3Selectors:r,oas3Actions:n,getComponent:i}=this.props,s=t.servers(),a=i("Servers");return s&&s.size?p.default.createElement("div",null,p.default.createElement("span",{className:"servers-title"},"Servers"),p.default.createElement(a,{servers:s,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const s1e=Function.prototype;class Q7 extends p.PureComponent{constructor(r,n){super(r,n);z(this,"applyDefaultValue",r=>{const{onChange:n,defaultValue:i}=r||this.props;return this.setState({value:i}),n(i)});z(this,"onChange",r=>{this.props.onChange(Xr(r))});z(this,"onDomChange",r=>{const n=r.target.value;this.setState({value:n},()=>this.onChange(n))});this.state={value:Xr(r.value)||r.defaultValue},r.onChange(r.value)}UNSAFE_componentWillReceiveProps(r){this.props.value!==r.value&&r.value!==this.state.value&&this.setState({value:Xr(r.value)}),!r.value&&r.defaultValue&&this.state.value&&this.applyDefaultValue(r)}render(){let{getComponent:r,errors:n}=this.props,{value:i}=this.state,s=n.size>0;const a=r("TextArea");return p.default.createElement("div",{className:"body-param"},p.default.createElement(a,{className:(0,Ot.default)("body-param__text",{invalid:s}),title:n.size?n.join(", "):"",value:i,onChange:this.onDomChange}))}}z(Q7,"defaultProps",{onChange:s1e,userHasEditedBody:!1});class a1e extends p.default.Component{constructor(r,n){super(r,n);z(this,"onChange",r=>{let{onChange:n}=this.props,{value:i,name:s}=r.target,a=Object.assign({},this.state.value);s?a[s]=i:a=i,this.setState({value:a},()=>n(this.state))});let{name:i,schema:s}=this.props,a=this.getValue();this.state={name:i,schema:s,value:a}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:i,name:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("Markdown",!0),h=n("JumpToPath",!0),d=(r.get("scheme")||"").toLowerCase(),g=a.selectAuthPath(s);let y=this.getValue(),v=i.allErrors().filter(E=>E.get("authId")===s);if(d==="basic"){let E=y?y.get("username"):null;return p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s),"  (http, Basic)",p.default.createElement(h,{path:g})),E&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),E?p.default.createElement("code",null," ",E," "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),E?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),v.valueSeq().map((b,S)=>p.default.createElement(l,{error:b,key:S})))}return d==="bearer"?p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s),"  (http, Bearer)",p.default.createElement(h,{path:g})),y&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),y?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),v.valueSeq().map((E,b)=>p.default.createElement(l,{error:E,key:b}))):p.default.createElement("div",null,p.default.createElement("em",null,p.default.createElement("b",null,s)," HTTP authentication: unsupported scheme ",`'${d}'`))}}class o1e extends p.default.Component{constructor(){super(...arguments);z(this,"setSelectedServer",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setSelectedServer(r,`${n}:${i}`)});z(this,"setServerVariableValue",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...r,namespace:`${n}:${i}`})});z(this,"getSelectedServer",()=>{const{path:r,method:n}=this.props;return this.props.getSelectedServer(`${r}:${n}`)});z(this,"getServerVariable",(r,n)=>{const{path:i,method:s}=this.props;return this.props.getServerVariable({namespace:`${i}:${s}`,server:r},n)});z(this,"getEffectiveServerValue",r=>{const{path:n,method:i}=this.props;return this.props.getEffectiveServerValue({server:r,namespace:`${n}:${i}`})})}render(){const{operationServers:r,pathServers:n,getComponent:i}=this.props;if(!r&&!n)return null;const s=i("Servers"),a=r||n,o=r?"operation":"path";return p.default.createElement("div",{className:"opblock-section operation-servers"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("div",{className:"tab-header"},p.default.createElement("h4",{className:"opblock-title"},"Servers"))),p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("h4",{className:"message"},"These ",o,"-level options override the global server options."),p.default.createElement(s,{servers:a,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var u1e={Callbacks:QSe,HttpAuth:a1e,RequestBody:e1e,Servers:n1e,ServersContainer:i1e,RequestBodyEditor:Q7,OperationServers:o1e,operationLink:r1e};const TA=new Y7.Remarkable("commonmark");TA.block.ruler.enable(["table"]),TA.set({linkTarget:"_blank"});var c1e=wf(({source:e,className:t="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof e!="string")return null;if(e){const{useUnsafeMarkdown:n}=r(),i=Wc(TA.render(e),{useUnsafeMarkdown:n});let s;return typeof i=="string"&&(s=i.trim()),p.default.createElement("div",{dangerouslySetInnerHTML:{__html:s},className:(0,Ot.default)(t,"renderedMarkdown")})}return null}),l1e=wf(({Ori:e,...t})=>{const{schema:r,getComponent:n,errSelectors:i,authorized:s,onAuthChange:a,name:o,authSelectors:u}=t,c=n("HttpAuth");return r.get("type")==="http"?p.default.createElement(c,{key:o,schema:r,name:o,errSelectors:i,authorized:s,getComponent:n,onChange:a,authSelectors:u}):p.default.createElement(e,t)}),f1e=wf(N7);class p1e extends p.Component{render(){let{getConfigs:t,schema:r,Ori:n}=this.props,i=["model-box"],s=null;return r.get("deprecated")===!0&&(i.push("deprecated"),s=p.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),p.default.createElement("div",{className:i.join(" ")},s,p.default.createElement(n,(0,At.default)({},this.props,{getConfigs:t,depth:1,expandDepth:this.props.expandDepth||0})))}}var d1e=wf(p1e),h1e=wf(({Ori:e,...t})=>{const{schema:r,getComponent:n,errors:i,onChange:s,fn:a}=t,o=a.isFileUploadIntended(r),u=n("Input");return o?p.default.createElement(u,{type:"file",className:i.length?"invalid":"",title:i.length?i:"",onChange:c=>{s(c.target.files[0])},disabled:e.isDisabled}):p.default.createElement(e,t)}),m1e={Markdown:c1e,AuthItem:l1e,OpenAPIVersion:function(t){return(r,n)=>i=>{var s;return typeof((s=n.specSelectors)==null?void 0:s.isOAS30)=="function"?n.specSelectors.isOAS30()?p.default.createElement(t,(0,At.default)({},i,n,{Ori:r})):p.default.createElement(r,i):(console.warn("OAS30 wrapper: couldn't get spec"),null)}}(e=>{const{Ori:t}=e;return p.default.createElement(t,{oasVersion:"3.0"})}),JsonSchema_string:h1e,model:d1e,onlineValidatorBadge:f1e};const lR="oas3_set_servers",fR="oas3_set_request_body_value",pR="oas3_set_request_body_retain_flag",dR="oas3_set_request_body_inclusion",hR="oas3_set_active_examples_member",mR="oas3_set_request_content_type",gR="oas3_set_response_content_type",yR="oas3_set_server_variable_value",vR="oas3_set_request_body_validate_error",Nm="oas3_clear_request_body_validate_error",bR="oas3_clear_request_body_value";function g1e(e,t){return{type:lR,payload:{selectedServerUrl:e,namespace:t}}}function y1e({value:e,pathMethod:t}){return{type:fR,payload:{value:e,pathMethod:t}}}const v1e=({value:e,pathMethod:t})=>({type:pR,payload:{value:e,pathMethod:t}});function b1e({value:e,pathMethod:t,name:r}){return{type:dR,payload:{value:e,pathMethod:t,name:r}}}function _1e({name:e,pathMethod:t,contextType:r,contextName:n}){return{type:hR,payload:{name:e,pathMethod:t,contextType:r,contextName:n}}}function E1e({value:e,pathMethod:t}){return{type:mR,payload:{value:e,pathMethod:t}}}function S1e({value:e,path:t,method:r}){return{type:gR,payload:{value:e,path:t,method:r}}}function w1e({server:e,namespace:t,key:r,val:n}){return{type:yR,payload:{server:e,namespace:t,key:r,val:n}}}const x1e=({path:e,method:t,validationErrors:r})=>({type:vR,payload:{path:e,method:t,validationErrors:r}}),A1e=({path:e,method:t})=>({type:Nm,payload:{path:e,method:t}}),O1e=({pathMethod:e})=>({type:Nm,payload:{path:e[0],method:e[1]}}),C1e=({pathMethod:e})=>({type:bR,payload:{pathMethod:e}});var R1e=function(e){var t={};return me.d(t,e),t}({default:function(){return Zye}});const _i=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},T1e=_i((e,t)=>{const r=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(r)||""}),I1e=_i((e,t,r)=>e.getIn(["requestData",t,r,"bodyValue"])||null),j1e=_i((e,t,r)=>e.getIn(["requestData",t,r,"retainBodyValue"])||!1),k1e=(e,t,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n.getSystem();if(s.isOAS3()){const o=i.requestContentType(t,r);if(o)return cd(s.specResolvedSubtree(["paths",t,r,"requestBody"]),o,i.activeExamplesMember(t,r,"requestBody","requestBody"),a)}return null},P1e=_i((e,t,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n;let o=!1;const u=i.requestContentType(t,r);let c=i.requestBodyValue(t,r);const l=s.specResolvedSubtree(["paths",t,r,"requestBody"]);if(!l)return!1;if(W.Map.isMap(c)&&(c=Xr(c.mapEntries(f=>W.Map.isMap(f[1])?[f[0],f[1].get("value")]:f).toJS())),W.List.isList(c)&&(c=Xr(c)),u){const f=cd(l,u,i.activeExamplesMember(t,r,"requestBody","requestBody"),a);o=!!c&&c!==f}return o}),N1e=_i((e,t,r)=>e.getIn(["requestData",t,r,"bodyInclusion"])||(0,W.Map)()),M1e=_i((e,t,r)=>e.getIn(["requestData",t,r,"errors"])||null),D1e=_i((e,t,r,n,i)=>e.getIn(["examples",t,r,n,i,"activeExample"])||null),q1e=_i((e,t,r)=>e.getIn(["requestData",t,r,"requestContentType"])||null),$1e=_i((e,t,r)=>e.getIn(["requestData",t,r,"responseContentType"])||null),F1e=_i((e,t,r)=>{let n;if(typeof t!="string"){const{server:i,namespace:s}=t;n=s?[s,"serverVariableValues",i,r]:["serverVariableValues",i,r]}else n=["serverVariableValues",t,r];return e.getIn(n)||null}),L1e=_i((e,t)=>{let r;if(typeof t!="string"){const{server:n,namespace:i}=t;r=i?[i,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",t];return e.getIn(r)||(0,W.OrderedMap)()}),B1e=_i((e,t)=>{var r,n;if(typeof t!="string"){const{server:s,namespace:a}=t;n=s,r=a?e.getIn([a,"serverVariableValues",n]):e.getIn(["serverVariableValues",n])}else n=t,r=e.getIn(["serverVariableValues",n]);r=r||(0,W.OrderedMap)();let i=n;return r.map((s,a)=>{i=i.replace(new RegExp(`{${(0,R1e.default)(a)}}`,"g"),s)}),i}),U1e=function(t){return(...r)=>n=>{const i=n.getSystem().specSelectors.specJson();let s=[...r][1]||[];return!i.getIn(["paths",...s,"requestBody","required"])||t(...r)}}((e,t)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(e,t)),V1e=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let i=[];if(!W.Map.isMap(n))return i;let s=[];return Object.keys(t.requestContentType).forEach(a=>{a===r&&t.requestContentType[a].forEach(o=>{s.indexOf(o)<0&&s.push(o)})}),s.forEach(a=>{n.getIn([a,"value"])||i.push(a)}),i},z1e=(0,Tm.default)(["get","put","post","delete","options","head","patch","trace"]);var W1e={[lR]:(e,{payload:{selectedServerUrl:t,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return e.setIn(n,t)},[fR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;if(!W.Map.isMap(t))return e.setIn(["requestData",n,i,"bodyValue"],t);let s,a=e.getIn(["requestData",n,i,"bodyValue"])||(0,W.Map)();W.Map.isMap(a)||(a=(0,W.Map)());const[...o]=t.keys();return o.forEach(u=>{let c=t.getIn([u]);a.has(u)&&W.Map.isMap(c)||(s=a.setIn([u,"value"],c))}),e.setIn(["requestData",n,i,"bodyValue"],s)},[pR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"retainBodyValue"],t)},[dR]:(e,{payload:{value:t,pathMethod:r,name:n}})=>{let[i,s]=r;return e.setIn(["requestData",i,s,"bodyInclusion",n],t)},[hR]:(e,{payload:{name:t,pathMethod:r,contextType:n,contextName:i}})=>{let[s,a]=r;return e.setIn(["examples",s,a,n,i,"activeExample"],t)},[mR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"requestContentType"],t)},[gR]:(e,{payload:{value:t,path:r,method:n}})=>e.setIn(["requestData",r,n,"responseContentType"],t),[yR]:(e,{payload:{server:t,namespace:r,key:n,val:i}})=>{const s=r?[r,"serverVariableValues",t,n]:["serverVariableValues",t,n];return e.setIn(s,i)},[vR]:(e,{payload:{path:t,method:r,validationErrors:n}})=>{let i=[];if(i.push("Required field is not provided"),n.missingBodyValue)return e.setIn(["requestData",t,r,"errors"],(0,W.fromJS)(i));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:s}=n;return e.updateIn(["requestData",t,r,"bodyValue"],(0,W.fromJS)({}),a=>s.reduce((o,u)=>o.setIn([u,"errors"],(0,W.fromJS)(i)),a))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[Nm]:(e,{payload:{path:t,method:r}})=>{const n=e.getIn(["requestData",t,r,"bodyValue"]);if(!W.Map.isMap(n))return e.setIn(["requestData",t,r,"errors"],(0,W.fromJS)([]));const[...i]=n.keys();return i?e.updateIn(["requestData",t,r,"bodyValue"],(0,W.fromJS)({}),s=>i.reduce((a,o)=>a.setIn([o,"errors"],(0,W.fromJS)([])),s)):e},[bR]:(e,{payload:{pathMethod:t}})=>{let[r,n]=t;const i=e.getIn(["requestData",r,n,"bodyValue"]);return i?W.Map.isMap(i)?e.setIn(["requestData",r,n,"bodyValue"],(0,W.Map)()):e.setIn(["requestData",r,n,"bodyValue"],""):e}};function IA({getSystem:e}){const t=(r=>(n,i=null)=>{const{getConfigs:s,fn:a}=r(),{fileUploadMediaTypes:o}=s();if(typeof i=="string"&&o.some(l=>i.startsWith(l)))return!0;const u=W.Map.isMap(n);if(!u&&!(0,So.default)(n))return!1;const c=u?n.get("format"):n.format;return a.hasSchemaType(n,"string")&&["binary","byte"].includes(c)})(e);return{components:u1e,wrapComponents:m1e,statePlugins:{spec:{wrapSelectors:lA,selectors:pA},auth:{wrapSelectors:fA},oas3:{actions:{...dA},reducers:W1e,selectors:{...hA}}},fn:{isFileUploadIntended:t,isFileUploadIntendedOAS30:t}}}var J1e=({specSelectors:e,getComponent:t})=>{const r=e.selectWebhooksOperations(),n=Object.keys(r),i=t("OperationContainer",!0);return n.length===0?null:p.default.createElement("div",{className:"webhooks"},p.default.createElement("h2",null,"Webhooks"),n.map(s=>p.default.createElement("div",{key:`${s}-webhook`},r[s].map(a=>p.default.createElement(i,{key:`${s}-${a.method}-webhook`,op:a.operation,tag:"webhooks",method:a.method,path:s,specPath:(0,W.List)(a.specPath),allowTryItOut:!1})))))},K1e=({getComponent:e,specSelectors:t})=>{const r=t.selectLicenseNameField(),n=t.selectLicenseUrl(),i=e("Link");return p.default.createElement("div",{className:"info__license"},n?p.default.createElement("div",{className:"info__license__url"},p.default.createElement(i,{target:"_blank",href:vr(n)},r)):p.default.createElement("span",null,r))},H1e=({getComponent:e,specSelectors:t})=>{const r=t.selectContactNameField(),n=t.selectContactUrl(),i=t.selectContactEmailField(),s=e("Link");return p.default.createElement("div",{className:"info__contact"},n&&p.default.createElement("div",null,p.default.createElement(s,{href:vr(n),target:"_blank"},r," - Website")),i&&p.default.createElement(s,{href:vr(`mailto:${i}`)},n?`Send email to ${r}`:`Contact ${r}`))},G1e=({getComponent:e,specSelectors:t})=>{const r=t.version(),n=t.url(),i=t.basePath(),s=t.host(),a=t.selectInfoSummaryField(),o=t.selectInfoDescriptionField(),u=t.selectInfoTitleField(),c=t.selectInfoTermsOfServiceUrl(),l=t.selectExternalDocsUrl(),f=t.selectExternalDocsDescriptionField(),h=t.contact(),d=t.license(),g=e("Markdown",!0),y=e("Link"),v=e("VersionStamp"),E=e("OpenAPIVersion"),b=e("InfoUrl"),S=e("InfoBasePath"),x=e("License",!0),_=e("Contact",!0),A=e("JsonSchemaDialect",!0);return p.default.createElement("div",{className:"info"},p.default.createElement("hgroup",{className:"main"},p.default.createElement("h2",{className:"title"},u,p.default.createElement("span",null,r&&p.default.createElement(v,{version:r}),p.default.createElement(E,{oasVersion:"3.1"}))),(s||i)&&p.default.createElement(S,{host:s,basePath:i}),n&&p.default.createElement(b,{getComponent:e,url:n})),a&&p.default.createElement("p",{className:"info__summary"},a),p.default.createElement("div",{className:"info__description description"},p.default.createElement(g,{source:o})),c&&p.default.createElement("div",{className:"info__tos"},p.default.createElement(y,{target:"_blank",href:vr(c)},"Terms of service")),h.size>0&&p.default.createElement(_,null),d.size>0&&p.default.createElement(x,null),l&&p.default.createElement(y,{className:"info__extdocs",target:"_blank",href:vr(l)},f||l),p.default.createElement(A,null))},Y1e=({getComponent:e,specSelectors:t})=>{const r=t.selectJsonSchemaDialectField(),n=t.selectJsonSchemaDialectDefault(),i=e("Link");return p.default.createElement(p.default.Fragment,null,r&&r===n&&p.default.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",p.default.createElement(i,{target:"_blank",href:vr(r)},r)),r&&r!==n&&p.default.createElement("div",{className:"error-wrapper"},p.default.createElement("div",{className:"no-margin"},p.default.createElement("div",{className:"errors"},p.default.createElement("div",{className:"errors-wrapper"},p.default.createElement("h4",{className:"center"},"Warning"),p.default.createElement("p",{className:"message"},p.default.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",p.default.createElement(i,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},X1e=({bypass:e,isSwagger2:t,isOAS3:r,isOAS31:n,alsoShow:i,children:s})=>e?p.default.createElement("div",null,s):t&&(r||n)?p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,p.default.createElement("code",null,"swagger")," and ",p.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),p.default.createElement("p",null,"Supported version fields are ",p.default.createElement("code",null,'swagger: "2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",p.default.createElement("code",null,"openapi: 3.1.0"),").")))):t||r||n?p.default.createElement("div",null,s):p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,"The provided definition does not specify a valid version field."),p.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",p.default.createElement("code",null,'swagger: "2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",p.default.createElement("code",null,"openapi: 3.1.0"),")."))));const Z1e=e=>typeof e=="string"&&e.includes("#/components/schemas/")?(t=>{const r=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(e.replace(/^.*#\/components\/schemas\//,"")):null,Q1e=(0,p.forwardRef)(({schema:e,getComponent:t,onToggle:r=()=>{},specPath:n},i)=>{const s=t("JSONSchema202012"),a=Z1e(e.get("$$ref")),o=(0,p.useCallback)((u,c)=>{r(a,c)},[a,r]);return p.default.createElement(s,{name:a,schema:e.toJS(),ref:i,onExpand:o,identifier:n.toJS().join("_")})});var ewe=Q1e,twe=({specActions:e,specSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:i,getConfigs:s,fn:a})=>{const o=t.selectSchemas(),u=Object.keys(o).length>0,c=["components","schemas"],{docExpansion:l,defaultModelsExpandDepth:f}=s(),h=f>0&&l!=="none",d=r.isShown(c,h),g=i("Collapse"),y=i("JSONSchema202012"),v=i("ArrowUpIcon"),E=i("ArrowDownIcon"),{getTitle:b}=a.jsonSchema202012.useFn();(0,p.useEffect)(()=>{const C=d&&f>1,R=t.specResolvedSubtree(c)!=null;C&&!R&&e.requestResolvedSubtree(c)},[d,f]);const S=(0,p.useCallback)(()=>{n.show(c,!d)},[d]),x=(0,p.useCallback)(C=>{C!==null&&n.readyToScroll(c,C)},[]),_=C=>R=>{R!==null&&n.readyToScroll([...c,C],R)},A=C=>(R,O)=>{if(O){const M=[...c,C];t.specResolvedSubtree(M)!=null||e.requestResolvedSubtree([...c,C])}};return!u||f<0?null:p.default.createElement("section",{className:(0,Ot.default)("models",{"is-open":d}),ref:x},p.default.createElement("h4",null,p.default.createElement("button",{"aria-expanded":d,className:"models-control",onClick:S},p.default.createElement("span",null,"Schemas"),d?p.default.createElement(v,null):p.default.createElement(E,null))),p.default.createElement(g,{isOpened:d},Object.entries(o).map(([C,R])=>{const O=b(R,{lookup:"basic"})||C;return p.default.createElement(y,{key:C,ref:_(C),schema:R,name:O,onExpand:A(C)})})))},rwe=({schema:e,getComponent:t,name:r,authSelectors:n})=>{const i=t("JumpToPath",!0),s=n.selectAuthPath(r);return p.default.createElement("div",null,p.default.createElement("h4",null,r," (mutualTLS) ",p.default.createElement(i,{path:s})),p.default.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),p.default.createElement("p",null,e.get("description")))};class nwe extends p.default.Component{constructor(r,n){super(r,n);z(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});z(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});z(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:i}=this.props,s=i.map((a,o)=>o).toArray();this.setState(s.reduce((a,o)=>(a[o]="",a),{})),n.logoutWithPersistOption(s)});z(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:i,errSelectors:s}=this.props;const a=n("AuthItem"),o=n("oauth2",!0),u=n("Button"),c=i.authorized(),l=r.filter((g,y)=>!!c.get(y)),f=r.filter(g=>g.get("type")!=="oauth2"&&g.get("type")!=="mutualTLS"),h=r.filter(g=>g.get("type")==="oauth2"),d=r.filter(g=>g.get("type")==="mutualTLS");return p.default.createElement("div",{className:"auth-container"},f.size>0&&p.default.createElement("form",{onSubmit:this.submitAuth},f.map((g,y)=>p.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i})).toArray(),p.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?p.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),p.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h.size>0?p.default.createElement("div",null,p.default.createElement("div",{className:"scope-def"},p.default.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),p.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter(g=>g.get("type")==="oauth2").map((g,y)=>p.default.createElement("div",{key:y},p.default.createElement(o,{authorized:c,schema:g,name:y}))).toArray()):null,d.size>0&&p.default.createElement("div",null,d.map((g,y)=>p.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i})).toArray()))}}var iwe=nwe;const eV=e=>{const t=e.get("openapi");return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},nL=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},tV=e=>(t,r)=>(n,...i)=>{if(r.getSystem().specSelectors.isOAS31()){const s=e(n,...i);return typeof s=="function"?s(t,r):s}return t(...i)},iL=e=>(t,...r)=>n=>{const i=e(t,n,...r);return typeof i=="function"?i(n):i},ys=e=>(t,r)=>n=>r.specSelectors.isOAS31()?p.default.createElement(e,(0,At.default)({},n,{originalComponent:t,getSystem:r.getSystem})):p.default.createElement(t,n),fw=(e,t)=>{const{fn:r,specSelectors:n}=t;return Object.fromEntries(Object.entries(e).map(([i,s])=>{const a=r[i];return[i,(...o)=>n.isOAS31()?s(...o):typeof a=="function"?a(...o):void 0]}))};var swe=ys(({getSystem:e})=>{const t=e().getComponent("OAS31License",!0);return p.default.createElement(t,null)}),awe=ys(({getSystem:e})=>{const t=e().getComponent("OAS31Contact",!0);return p.default.createElement(t,null)}),owe=ys(({getSystem:e})=>{const t=e().getComponent("OAS31Info",!0);return p.default.createElement(t,null)});const uwe=(e,{includeReadOnly:t,includeWriteOnly:r})=>{if(!(e!=null&&e.properties))return{};const n=Object.entries(e.properties).filter(([,i])=>((i==null?void 0:i.readOnly)!==!0||t)&&((i==null?void 0:i.writeOnly)!==!0||r));return Object.fromEntries(n)},rV=e=>{if(typeof e!="function")return null;const t=e();return()=>[...t,"discriminator","xml","externalDocs","example","$$ref"]},pc=ys(({getSystem:e,...t})=>{const r=e(),{getComponent:n,fn:i,getConfigs:s}=r,a=s(),o=n("OAS31Model"),u=n("withJSONSchema202012SystemContext");return pc.ModelWithJSONSchemaContext??(pc.ModelWithJSONSchemaContext=u(o,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:i.jsonSchema202012.getProperties,isExpandable:i.jsonSchema202012.isExpandable,getSchemaKeywords:rV(i.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(pc.ModelWithJSONSchemaContext,t)});var cwe=pc;const sa=ys(({getSystem:e})=>{const{getComponent:t,fn:r,getConfigs:n}=e(),i=n();if(sa.ModelsWithJSONSchemaContext)return p.default.createElement(sa.ModelsWithJSONSchemaContext,null);const s=t("OAS31Models",!0),a=t("withJSONSchema202012SystemContext");return sa.ModelsWithJSONSchemaContext??(sa.ModelsWithJSONSchemaContext=a(s,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:i.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:rV(r.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(sa.ModelsWithJSONSchemaContext,null)});sa.ModelsWithJSONSchemaContext=null;var lwe=sa,fwe=(e,t)=>r=>{const n=t.specSelectors.isOAS31(),i=t.getComponent("OAS31VersionPragmaFilter");return p.default.createElement(i,(0,At.default)({isOAS31:n},r))};const pwe=ys(({originalComponent:e,...t})=>{const{getComponent:r,schema:n,name:i}=t,s=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?p.default.createElement(s,{schema:n,name:i}):p.default.createElement(e,t)});var dwe=pwe,hwe=ys(({getSystem:e,...t})=>{const r=e().getComponent("OAS31Auths",!0);return p.default.createElement(r,t)});const _R=(0,W.Map)(),mwe=(0,et.createSelector)((e,t)=>t.specSelectors.specJson(),eV),gwe=()=>e=>{const t=e.specSelectors.specJson().get("webhooks");return W.Map.isMap(t)?t:_R},ywe=(0,et.createSelector)([(e,t)=>t.specSelectors.webhooks(),(e,t)=>t.specSelectors.validOperationMethods(),(e,t)=>t.specSelectors.specResolvedSubtree(["webhooks"])],(e,t)=>e.reduce((r,n,i)=>{if(!W.Map.isMap(n))return r;const s=n.entrySeq().filter(([a])=>t.includes(a)).map(([a,o])=>({operation:(0,W.Map)({operation:o}),method:a,path:i,specPath:["webhooks",i,a]}));return r.concat(s)},(0,W.List)()).groupBy(r=>r.path).map(r=>r.toArray()).toObject()),vwe=()=>e=>{const t=e.specSelectors.info().get("license");return W.Map.isMap(t)?t:_R},bwe=()=>e=>e.specSelectors.license().get("name","License"),_we=()=>e=>e.specSelectors.license().get("url"),Ewe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),Swe=()=>e=>e.specSelectors.license().get("identifier"),wwe=()=>e=>{const t=e.specSelectors.info().get("contact");return W.Map.isMap(t)?t:_R},xwe=()=>e=>e.specSelectors.contact().get("name","the developer"),Awe=()=>e=>e.specSelectors.contact().get("email"),Owe=()=>e=>e.specSelectors.contact().get("url"),Cwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),Rwe=()=>e=>e.specSelectors.info().get("title"),Twe=()=>e=>e.specSelectors.info().get("summary"),Iwe=()=>e=>e.specSelectors.info().get("description"),jwe=()=>e=>e.specSelectors.info().get("termsOfService"),kwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),Pwe=()=>e=>e.specSelectors.externalDocs().get("description"),Nwe=()=>e=>e.specSelectors.externalDocs().get("url"),Mwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),Dwe=()=>e=>e.specSelectors.specJson().get("jsonSchemaDialect"),qwe=()=>"https://spec.openapis.org/oas/3.1/dialect/base",$we=(0,et.createSelector)((e,t)=>t.specSelectors.definitions(),(e,t)=>t.specSelectors.specResolvedSubtree(["components","schemas"]),(e,t)=>W.Map.isMap(e)?W.Map.isMap(t)?Object.entries(e.toJS()).reduce((r,[n,i])=>{const s=t.get(n);return r[n]=(s==null?void 0:s.toJS())||i,r},{}):e.toJS():{}),Fwe=(e,t)=>(r,...n)=>t.specSelectors.isOAS31()||e(...n),Lwe=tV(()=>(e,t)=>t.oas31Selectors.selectLicenseUrl()),Bwe=tV(()=>(e,t)=>{const r=t.specSelectors.securityDefinitions();let n=e();return r&&r.entrySeq().forEach(([i,s])=>{(s==null?void 0:s.get("type"))==="mutualTLS"&&(n=n.push(new W.Map({[i]:s})))}),n}),Uwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField(),(e,t)=>t.specSelectors.selectLicenseIdentifierField()],(e,t,r,n)=>r?Mi(r,e,{selectedServer:t}):n?`https://spdx.org/licenses/${n}.html`:void 0);var Vwe=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{hasKeyword:i}=r.jsonSchema202012.useFn(),s=n("JSONSchema202012JSONViewer");return i(e,"example")?p.default.createElement(s,{name:"Example",value:e.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},zwe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.xml)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,{path:f}=c("xml"),{isExpanded:h,setExpanded:d,setCollapsed:g}=u("xml"),[y,v]=l(),E=a?Ca(r):[],b=!!(r.name||r.namespace||r.prefix||E.length>0),S=o("Accordion"),x=o("ExpandDeepButton"),_=i("OpenAPI31Extensions"),A=i("JSONSchema202012PathContext")(),C=i("JSONSchema202012LevelContext")(),R=(0,p.useCallback)(()=>{h?g():d()},[h,d,g]),O=(0,p.useCallback)((M,k)=>{k?d({deep:!0}):g({deep:!0})},[d,g]);return Object.keys(r).length===0?null:p.default.createElement(A.Provider,{value:f},p.default.createElement(C.Provider,{value:v},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":y},b?p.default.createElement(p.default.Fragment,null,p.default.createElement(S,{expanded:h,onChange:R},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),p.default.createElement(x,{expanded:h,onClick:O})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&p.default.createElement(p.default.Fragment,null,r.name&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),E.length>0&&p.default.createElement(_,{openAPISpecObj:r,openAPIExtensions:E,getSystem:t})))))},Wwe=({discriminator:e})=>{const t=(e==null?void 0:e.mapping)||{};return Object.keys(t).length===0?null:Object.entries(t).map(([r,n])=>p.default.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n)))},Jwe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.discriminator)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,f="discriminator",{path:h}=c(f),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(f),[v,E]=l(),b=a?Ca(r):[],S=!!(r.mapping||b.length>0),x=o("Accordion"),_=o("ExpandDeepButton"),A=i("OpenAPI31Extensions"),C=i("JSONSchema202012PathContext")(),R=i("JSONSchema202012LevelContext")(),O=(0,p.useCallback)(()=>{d?y():g()},[d,g,y]),M=(0,p.useCallback)((k,D)=>{D?g({deep:!0}):y({deep:!0})},[g,y]);return Object.keys(r).length===0?null:p.default.createElement(C.Provider,{value:h},p.default.createElement(R.Provider,{value:E},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":v},S?p.default.createElement(p.default.Fragment,null,p.default.createElement(x,{expanded:d,onChange:O},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),p.default.createElement(_,{expanded:d,onClick:M})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement(Wwe,{discriminator:r})),b.length>0&&p.default.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},Kwe=({openAPISpecObj:e,getSystem:t,openAPIExtensions:r})=>{const{fn:n}=t(),{useComponent:i}=n.jsonSchema202012,s=i("JSONViewer");return r.map(a=>p.default.createElement(s,{key:a,name:a,value:e[a],className:"json-schema-2020-12-json-viewer-extension-keyword"}))},Hwe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.externalDocs)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,f="externalDocs",{path:h}=c(f),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(f),[v,E]=l(),b=a?Ca(r):[],S=!!(r.description||r.url||b.length>0),x=o("Accordion"),_=o("ExpandDeepButton"),A=i("JSONSchema202012KeywordDescription"),C=i("Link"),R=i("OpenAPI31Extensions"),O=i("JSONSchema202012PathContext")(),M=i("JSONSchema202012LevelContext")(),k=(0,p.useCallback)(()=>{d?y():g()},[d,g,y]),D=(0,p.useCallback)((P,H)=>{H?g({deep:!0}):y({deep:!0})},[g,y]);return Object.keys(r).length===0?null:p.default.createElement(O.Provider,{value:h},p.default.createElement(M.Provider,{value:E},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":v},S?p.default.createElement(p.default.Fragment,null,p.default.createElement(x,{expanded:d,onChange:k},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),p.default.createElement(_,{expanded:d,onClick:D})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&p.default.createElement(p.default.Fragment,null,r.description&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement(A,{schema:r,getSystem:t})),r.url&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},p.default.createElement(C,{target:"_blank",href:vr(r.url)},r.url))))),b.length>0&&p.default.createElement(R,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},Gwe=({schema:e,getSystem:t})=>{if(!(e!=null&&e.description))return null;const{getComponent:r}=t(),n=r("Markdown");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},p.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},p.default.createElement(n,{source:e.description})))},Ywe=ys(Gwe);const Xwe=ys(({schema:e,getSystem:t,originalComponent:r})=>{const{getComponent:n}=t(),i=n("JSONSchema202012KeywordDiscriminator"),s=n("JSONSchema202012KeywordXml"),a=n("JSONSchema202012KeywordExample"),o=n("JSONSchema202012KeywordExternalDocs");return p.default.createElement(p.default.Fragment,null,p.default.createElement(r,{schema:e}),p.default.createElement(i,{schema:e,getSystem:t}),p.default.createElement(s,{schema:e,getSystem:t}),p.default.createElement(o,{schema:e,getSystem:t}),p.default.createElement(a,{schema:e,getSystem:t}))});var Zwe=Xwe,Qwe=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{useComponent:i,usePath:s}=r.jsonSchema202012,{getDependentRequired:a,getProperties:o}=r.jsonSchema202012.useFn(),u=r.jsonSchema202012.useConfig(),c=Array.isArray(e==null?void 0:e.required)?e.required:[],{path:l}=s("properties"),f=i("JSONSchema"),h=n("JSONSchema202012PathContext")(),d=o(e,u);return Object.keys(d).length===0?null:p.default.createElement(h.Provider,{value:l},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},p.default.createElement("ul",null,Object.entries(d).map(([g,y])=>{const v=c.includes(g),E=a(g,e);return p.default.createElement("li",{key:g,className:(0,Ot.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":v})},p.default.createElement(f,{name:g,schema:y,dependentRequired:E}))}))))},exe=ys(Qwe),txe=function({fn:t,getSystem:r}){if(t.jsonSchema202012){const s=((a,o)=>{const{fn:u}=o();if(typeof a!="function")return null;const{hasKeyword:c}=u.jsonSchema202012;return l=>a(l)||c(l,"example")||(l==null?void 0:l.xml)||(l==null?void 0:l.discriminator)||(l==null?void 0:l.externalDocs)})(t.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:s,getProperties:uwe})}if(typeof t.sampleFromSchema=="function"&&t.jsonSchema202012){const s=fw({sampleFromSchema:t.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:t.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:t.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:t.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:t.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:t.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:t.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:t.jsonSchema202012.getXmlSampleSchema,getSampleSchema:t.jsonSchema202012.getSampleSchema,mergeJsonSchema:t.jsonSchema202012.mergeJsonSchema},r());Object.assign(this.fn,s)}const n=(s=>(a,o=null)=>{const{fn:u}=s();if(u.isFileUploadIntendedOAS30(a,o))return!0;const c=W.Map.isMap(a);if(!c&&!(0,So.default)(a))return!1;const l=c?a.get("contentMediaType"):a.contentMediaType,f=c?a.get("contentEncoding"):a.contentEncoding;return typeof l=="string"&&l!==""||typeof f=="string"&&f!==""})(r),{isFileUploadIntended:i}=fw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=i,this.fn.isFileUploadIntendedOAS31=n,t.jsonSchema202012){const{hasSchemaType:s}=fw({hasSchemaType:t.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=s}},rxe=({fn:e})=>{const t=e.createSystemSelector||iL,r=e.createOnlyOAS31Selector||nL;return{afterLoad:txe,fn:{isOAS31:eV,createSystemSelector:iL,createOnlyOAS31Selector:nL},components:{Webhooks:J1e,JsonSchemaDialect:Y1e,MutualTLSAuth:rwe,OAS31Info:G1e,OAS31License:K1e,OAS31Contact:H1e,OAS31VersionPragmaFilter:X1e,OAS31Model:ewe,OAS31Models:twe,OAS31Auths:iwe,JSONSchema202012KeywordExample:Vwe,JSONSchema202012KeywordXml:zwe,JSONSchema202012KeywordDiscriminator:Jwe,JSONSchema202012KeywordExternalDocs:Hwe,OpenAPI31Extensions:Kwe},wrapComponents:{InfoContainer:owe,License:swe,Contact:awe,VersionPragmaFilter:fwe,Model:cwe,Models:lwe,AuthItem:dwe,auths:hwe,JSONSchema202012KeywordDescription:Ywe,JSONSchema202012KeywordExamples:Zwe,JSONSchema202012KeywordProperties:exe},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:Bwe}},spec:{selectors:{isOAS31:t(mwe),license:vwe,selectLicenseNameField:bwe,selectLicenseUrlField:_we,selectLicenseIdentifierField:r(Swe),selectLicenseUrl:t(Ewe),contact:wwe,selectContactNameField:xwe,selectContactEmailField:Awe,selectContactUrlField:Owe,selectContactUrl:t(Cwe),selectInfoTitleField:Rwe,selectInfoSummaryField:r(Twe),selectInfoDescriptionField:Iwe,selectInfoTermsOfServiceField:jwe,selectInfoTermsOfServiceUrl:t(kwe),selectExternalDocsDescriptionField:Pwe,selectExternalDocsUrlField:Nwe,selectExternalDocsUrl:t(Mwe),webhooks:r(gwe),selectWebhooksOperations:r(t(ywe)),selectJsonSchemaDialectField:Dwe,selectJsonSchemaDialectDefault:qwe,selectSchemas:t($we)},wrapSelectors:{isOAS3:Fwe,selectLicenseUrl:Lwe}},oas31:{selectors:{selectLicenseUrl:r(t(Uwe))}}}}};const nxe=Cn.default.object,ixe=Cn.default.bool,Za=(Cn.default.oneOfType([nxe,ixe]),(0,p.createContext)(null));Za.displayName="JSONSchemaContext";const Ei=(0,p.createContext)(0);Ei.displayName="JSONSchemaLevelContext";const jA=(0,p.createContext)(new Set),qn=(0,p.createContext)([]);class Rn{}z(Rn,"Collapsed","collapsed"),z(Rn,"Expanded","expanded"),z(Rn,"DeeplyExpanded","deeply-expanded");const ER=()=>{const{config:e}=(0,p.useContext)(Za);return e},je=e=>{const{components:t}=(0,p.useContext)(Za);return t[e]||null},Vt=(e=void 0)=>{const{fn:t}=(0,p.useContext)(Za);return e!==void 0?t[e]:t},nV=()=>{const[,e]=(0,p.useState)(null),{state:t}=(0,p.useContext)(Za);return{state:t,setState:r=>{r(t),e({})}}},hi=()=>{const e=(0,p.useContext)(Ei);return[e,e+1]},En=e=>{const t=(0,p.useContext)(qn),{setState:r}=nV(),n=typeof e=="string"?[...t,e]:t;return{path:n,pathMutator:(i,s={deep:!1})=>{const a=n.toString(),o=c=>{c.paths[a]=i,i===Rn.Collapsed&&Object.keys(c.paths).forEach(l=>{l.startsWith(a)&&c.paths[l]===Rn.DeeplyExpanded&&(c.paths[l]=Rn.Expanded)})},u=c=>{Object.keys(c.paths).forEach(l=>{l.startsWith(a)&&(c.paths[l]=i)})};s.deep?r(u):r(o)}}},Ui=e=>{const[t]=hi(),{defaultExpandedLevels:r}=ER(),{path:n,pathMutator:i}=En(e),{path:s}=En(),{state:a}=nV(),o=a.paths[n.toString()],u=a.paths[s.toString()]??a.paths[s.slice(0,-1).toString()],c=o??(r-t>0?Rn.Expanded:Rn.Collapsed),l=c!==Rn.Collapsed;return(0,p.useEffect)(()=>{i(u===Rn.DeeplyExpanded?Rn.DeeplyExpanded:c)},[u]),{isExpanded:l,setExpanded:(0,p.useCallback)((f={deep:!1})=>{i(f.deep?Rn.DeeplyExpanded:Rn.Expanded)},[]),setCollapsed:(0,p.useCallback)((f={deep:!1})=>{i(Rn.Collapsed,f)},[])}},sL=(e=void 0)=>{if(e===void 0)return(0,p.useContext)(jA);const t=(0,p.useContext)(jA);return new Set([...t,e])},sxe=(0,p.forwardRef)(({schema:e,name:t="",dependentRequired:r=[],onExpand:n=()=>{},identifier:i=""},s)=>{const a=Vt(),o=i||(e==null?void 0:e.$id)||t,{path:u}=En(o),{isExpanded:c,setExpanded:l,setCollapsed:f}=Ui(o),[h,d]=hi(),g=(()=>{const[Qe]=hi();return Qe>0})(),y=a.isExpandable(e)||r.length>0,v=(Qe=>sL().has(Qe))(e),E=sL(e),b=a.stringifyConstraints(e),S=je("Accordion"),x=je("Keyword$schema"),_=je("Keyword$vocabulary"),A=je("Keyword$id"),C=je("Keyword$anchor"),R=je("Keyword$dynamicAnchor"),O=je("Keyword$ref"),M=je("Keyword$dynamicRef"),k=je("Keyword$defs"),D=je("Keyword$comment"),P=je("KeywordAllOf"),H=je("KeywordAnyOf"),Z=je("KeywordOneOf"),V=je("KeywordNot"),G=je("KeywordIf"),Q=je("KeywordThen"),Y=je("KeywordElse"),L=je("KeywordDependentSchemas"),J=je("KeywordPrefixItems"),ee=je("KeywordItems"),ne=je("KeywordContains"),ae=je("KeywordProperties"),X=je("KeywordPatternProperties"),B=je("KeywordAdditionalProperties"),F=je("KeywordPropertyNames"),ue=je("KeywordUnevaluatedItems"),fe=je("KeywordUnevaluatedProperties"),Ae=je("KeywordType"),Ne=je("KeywordEnum"),pe=je("KeywordConst"),Oe=je("KeywordConstraint"),We=je("KeywordDependentRequired"),he=je("KeywordContentSchema"),ve=je("KeywordTitle"),Se=je("KeywordDescription"),$=je("KeywordDefault"),T=je("KeywordDeprecated"),j=je("KeywordReadOnly"),U=je("KeywordWriteOnly"),re=je("KeywordExamples"),ie=je("ExtensionKeywords"),le=je("ExpandDeepButton"),Ie=(0,p.useCallback)((Qe,tt)=>{tt?l():f(),n(Qe,tt,!1)},[n,l,f]),Je=(0,p.useCallback)((Qe,tt)=>{tt?l({deep:!0}):f({deep:!0}),n(Qe,tt,!0)},[n,l,f]);return p.default.createElement(qn.Provider,{value:u},p.default.createElement(Ei.Provider,{value:d},p.default.createElement(jA.Provider,{value:E},p.default.createElement("article",{ref:s,"data-json-schema-level":h,className:(0,Ot.default)("json-schema-2020-12",{"json-schema-2020-12--embedded":g,"json-schema-2020-12--circular":v})},p.default.createElement("div",{className:"json-schema-2020-12-head"},y&&!v?p.default.createElement(p.default.Fragment,null,p.default.createElement(S,{expanded:c,onChange:Ie},p.default.createElement(ve,{title:t,schema:e})),p.default.createElement(le,{expanded:c,onClick:Je})):p.default.createElement(ve,{title:t,schema:e}),p.default.createElement(T,{schema:e}),p.default.createElement(j,{schema:e}),p.default.createElement(U,{schema:e}),p.default.createElement(Ae,{schema:e,isCircular:v}),b.length>0&&b.map(Qe=>p.default.createElement(Oe,{key:`${Qe.scope}-${Qe.value}`,constraint:Qe}))),p.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!c})},c&&p.default.createElement(p.default.Fragment,null,p.default.createElement(Se,{schema:e}),!v&&y&&p.default.createElement(p.default.Fragment,null,p.default.createElement(ae,{schema:e}),p.default.createElement(X,{schema:e}),p.default.createElement(B,{schema:e}),p.default.createElement(fe,{schema:e}),p.default.createElement(F,{schema:e}),p.default.createElement(P,{schema:e}),p.default.createElement(H,{schema:e}),p.default.createElement(Z,{schema:e}),p.default.createElement(V,{schema:e}),p.default.createElement(G,{schema:e}),p.default.createElement(Q,{schema:e}),p.default.createElement(Y,{schema:e}),p.default.createElement(L,{schema:e}),p.default.createElement(J,{schema:e}),p.default.createElement(ee,{schema:e}),p.default.createElement(ue,{schema:e}),p.default.createElement(ne,{schema:e}),p.default.createElement(he,{schema:e})),p.default.createElement(Ne,{schema:e}),p.default.createElement(pe,{schema:e}),p.default.createElement(We,{schema:e,dependentRequired:r}),p.default.createElement($,{schema:e}),p.default.createElement(re,{schema:e}),p.default.createElement(x,{schema:e}),p.default.createElement(_,{schema:e}),p.default.createElement(A,{schema:e}),p.default.createElement(C,{schema:e}),p.default.createElement(R,{schema:e}),p.default.createElement(O,{schema:e}),!v&&y&&p.default.createElement(k,{schema:e}),p.default.createElement(M,{schema:e}),p.default.createElement(D,{schema:e}),p.default.createElement(ie,{schema:e})))))))});var iV=sxe,sV=({schema:e})=>e!=null&&e.$schema?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$schema)):null,aV=({schema:e})=>{const t="$vocabulary",{path:r}=En(t),{isExpanded:n,setExpanded:i,setCollapsed:s}=Ui(t),a=je("Accordion"),o=(0,p.useCallback)(()=>{n?s():i()},[n,i,s]);return e!=null&&e.$vocabulary?typeof e.$vocabulary!="object"?null:p.default.createElement(qn.Provider,{value:r},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},p.default.createElement(a,{expanded:n,onChange:o},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",null,n&&Object.entries(e.$vocabulary).map(([u,c])=>p.default.createElement("li",{key:u,className:(0,Ot.default)("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!c})},p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u)))))):null},oV=({schema:e})=>e!=null&&e.$id?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$id)):null,uV=({schema:e})=>e!=null&&e.$anchor?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$anchor)):null,cV=({schema:e})=>e!=null&&e.$dynamicAnchor?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicAnchor)):null,lV=({schema:e})=>e!=null&&e.$ref?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$ref)):null,fV=({schema:e})=>e!=null&&e.$dynamicRef?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicRef)):null,pV=({schema:e})=>{const t=(e==null?void 0:e.$defs)||{},r="$defs",{path:n}=En(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ui(r),[o,u]=hi(),c=je("Accordion"),l=je("ExpandDeepButton"),f=je("JSONSchema"),h=(0,p.useCallback)(()=>{i?a():s()},[i,s,a]),d=(0,p.useCallback)((g,y)=>{y?s({deep:!0}):a({deep:!0})},[s,a]);return Object.keys(t).length===0?null:p.default.createElement(qn.Provider,{value:n},p.default.createElement(Ei.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:h},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),p.default.createElement(l,{expanded:i,onClick:d}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,Object.entries(t).map(([g,y])=>p.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},p.default.createElement(f,{name:g,schema:y}))))))))},dV=({schema:e})=>e!=null&&e.$comment?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$comment)):null,hV=({schema:e})=>{const t=(e==null?void 0:e.allOf)||[],r=Vt(),n="allOf",{path:i}=En(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=hi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),d=je("KeywordType"),g=(0,p.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,p.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(qn.Provider,{value:i},p.default.createElement(Ei.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{allOf:t}}),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map((v,E)=>p.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},mV=({schema:e})=>{const t=(e==null?void 0:e.anyOf)||[],r=Vt(),n="anyOf",{path:i}=En(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=hi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),d=je("KeywordType"),g=(0,p.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,p.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(qn.Provider,{value:i},p.default.createElement(Ei.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{anyOf:t}}),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map((v,E)=>p.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},gV=({schema:e})=>{const t=(e==null?void 0:e.oneOf)||[],r=Vt(),n="oneOf",{path:i}=En(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=hi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),d=je("KeywordType"),g=(0,p.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,p.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(qn.Provider,{value:i},p.default.createElement(Ei.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{oneOf:t}}),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map((v,E)=>p.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},yV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"not"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},p.default.createElement(r,{name:n,schema:e.not,identifier:"not"}))},vV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"if"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},p.default.createElement(r,{name:n,schema:e.if,identifier:"if"}))},bV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"then"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},p.default.createElement(r,{name:n,schema:e.then,identifier:"then"}))},_V=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"else"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},p.default.createElement(r,{name:n,schema:e.else,identifier:"else"}))},EV=({schema:e})=>{const t=(e==null?void 0:e.dependentSchemas)||[],r="dependentSchemas",{path:n}=En(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ui(r),[o,u]=hi(),c=je("Accordion"),l=je("ExpandDeepButton"),f=je("JSONSchema"),h=(0,p.useCallback)(()=>{i?a():s()},[i,s,a]),d=(0,p.useCallback)((g,y)=>{y?s({deep:!0}):a({deep:!0})},[s,a]);return typeof t!="object"||Object.keys(t).length===0?null:p.default.createElement(qn.Provider,{value:n},p.default.createElement(Ei.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:h},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),p.default.createElement(l,{expanded:i,onClick:d}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,Object.entries(t).map(([g,y])=>p.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},p.default.createElement(f,{name:g,schema:y}))))))))},SV=({schema:e})=>{const t=(e==null?void 0:e.prefixItems)||[],r=Vt(),n="prefixItems",{path:i}=En(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=hi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),d=je("KeywordType"),g=(0,p.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,p.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(qn.Provider,{value:i},p.default.createElement(Ei.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{prefixItems:t}}),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map((v,E)=>p.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},wV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"items"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},p.default.createElement(r,{name:n,schema:e.items,identifier:"items"}))},xV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"contains"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},p.default.createElement(r,{name:n,schema:e.contains,identifier:"contains"}))},AV=({schema:e})=>{const t=Vt(),r=(e==null?void 0:e.properties)||{},n=Array.isArray(e==null?void 0:e.required)?e.required:[],i=je("JSONSchema"),{path:s}=En("properties");return Object.keys(r).length===0?null:p.default.createElement(qn.Provider,{value:s},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},p.default.createElement("ul",null,Object.entries(r).map(([a,o])=>{const u=n.includes(a),c=t.getDependentRequired(a,e);return p.default.createElement("li",{key:a,className:(0,Ot.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":u})},p.default.createElement(i,{name:a,schema:o,dependentRequired:c}))}))))},OV=({schema:e})=>{const t=(e==null?void 0:e.patternProperties)||{},r=je("JSONSchema"),{path:n}=En("patternProperties");return Object.keys(t).length===0?null:p.default.createElement(qn.Provider,{value:n},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},p.default.createElement("ul",null,Object.entries(t).map(([i,s])=>p.default.createElement("li",{key:i,className:"json-schema-2020-12-property"},p.default.createElement(r,{name:i,schema:s}))))))},CV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"additionalProperties"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},e.additionalProperties===!0?p.default.createElement(p.default.Fragment,null,n,p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):e.additionalProperties===!1?p.default.createElement(p.default.Fragment,null,n,p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):p.default.createElement(r,{name:n,schema:e.additionalProperties,identifier:"additionalProperties"}))},RV=({schema:e})=>{const t=Vt(),r=je("JSONSchema"),n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return t.hasKeyword(e,"propertyNames")?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},p.default.createElement(r,{name:n,schema:e.propertyNames,identifier:"propertyNames"})):null},TV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"unevaluatedItems"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},p.default.createElement(r,{name:n,schema:e.unevaluatedItems,identifier:"unevaluatedItems"}))},IV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"unevaluatedProperties"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},p.default.createElement(r,{name:n,schema:e.unevaluatedProperties,identifier:"unevaluatedProperties"}))},jV=({schema:e,isCircular:t=!1})=>{const r=Vt().getType(e),n=t?" [circular]":"";return p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},kV=({schema:e})=>{const t=je("JSONViewer");return Array.isArray(e==null?void 0:e.enum)?p.default.createElement(t,{name:"Enum",value:e.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},PV=({schema:e})=>{const t=Vt(),r=je("JSONViewer");return t.hasKeyword(e,"const")?p.default.createElement(r,{name:"Const",value:e.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const NV=e=>typeof e=="string"?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,MV=e=>(t,{lookup:r="extended"}={})=>{const n=e();if((t==null?void 0:t.title)!=null)return n.upperFirst(String(t.title));if(r==="extended"){if((t==null?void 0:t.$anchor)!=null)return n.upperFirst(String(t.$anchor));if((t==null?void 0:t.$id)!=null)return String(t.$id)}return""},DV=e=>{const t=(r,n=new WeakSet)=>{const i=e();if(r==null)return"any";if(i.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:s,prefixItems:a,items:o}=r,u=()=>{if(Array.isArray(a)){const f=a.map(d=>t(d,n)),h=o?t(o,n):"any";return`array<[${f.join(", ")}], ${h}>`}return o?`array<${t(o,n)}>`:"array<any>"};if(r.not&&t(r.not)==="any")return"never";const c=(f,h)=>Array.isArray(r[f])?`(${r[f].map(d=>t(d,n)).join(h)})`:null,l=[Array.isArray(s)?s.map(f=>f==="array"?u():f).join(" | "):s==="array"?u():["null","boolean","object","array","number","integer","string"].includes(s)?s:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return u();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array<any>";if(typeof r.const=="object")return"object"}return null})(),c("oneOf"," | "),c("anyOf"," | "),c("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),l||"any"};return t},qV=e=>typeof e=="boolean",$V=(e,t)=>e!==null&&typeof e=="object"&&Object.hasOwn(e,t),FV=e=>t=>{const r=e();return(t==null?void 0:t.$schema)||(t==null?void 0:t.$vocabulary)||(t==null?void 0:t.$id)||(t==null?void 0:t.$anchor)||(t==null?void 0:t.$dynamicAnchor)||(t==null?void 0:t.$ref)||(t==null?void 0:t.$dynamicRef)||(t==null?void 0:t.$defs)||(t==null?void 0:t.$comment)||(t==null?void 0:t.allOf)||(t==null?void 0:t.anyOf)||(t==null?void 0:t.oneOf)||r.hasKeyword(t,"not")||r.hasKeyword(t,"if")||r.hasKeyword(t,"then")||r.hasKeyword(t,"else")||(t==null?void 0:t.dependentSchemas)||(t==null?void 0:t.prefixItems)||r.hasKeyword(t,"items")||r.hasKeyword(t,"contains")||(t==null?void 0:t.properties)||(t==null?void 0:t.patternProperties)||r.hasKeyword(t,"additionalProperties")||r.hasKeyword(t,"propertyNames")||r.hasKeyword(t,"unevaluatedItems")||r.hasKeyword(t,"unevaluatedProperties")||(t==null?void 0:t.description)||(t==null?void 0:t.enum)||r.hasKeyword(t,"const")||r.hasKeyword(t,"contentSchema")||r.hasKeyword(t,"default")||(t==null?void 0:t.examples)||r.getExtensionKeywords(t).length>0},LV=e=>e===null||["number","bigint","boolean"].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(LV).join(", ")}]`:JSON.stringify(e),cp=(e,t,r)=>{const n=typeof t=="number",i=typeof r=="number";return n&&i?t===r?`${t} ${e}`:`[${t}, ${r}] ${e}`:n?`≥ ${t} ${e}`:i?`≤ ${r} ${e}`:null},axe=e=>{const t=[],r=(u=>{if(typeof(u==null?void 0:u.multipleOf)!="number"||u.multipleOf<=0||u.multipleOf===1)return null;const{multipleOf:c}=u;if(Number.isInteger(c))return`multiple of ${c}`;const l=10**c.toString().split(".")[1].length;return`multiple of ${c*l}/${l}`})(e);r!==null&&t.push({scope:"number",value:r});const n=(u=>{const c=u==null?void 0:u.minimum,l=u==null?void 0:u.maximum,f=u==null?void 0:u.exclusiveMinimum,h=u==null?void 0:u.exclusiveMaximum,d=typeof c=="number",g=typeof l=="number",y=typeof f=="number",v=typeof h=="number",E=y&&(!d||c<f),b=v&&(!g||l>h);return(d||y)&&(g||v)?`${E?"(":"["}${E?f:c}, ${b?h:l}${b?")":"]"}`:d||y?`${E?">":"≥"} ${E?f:c}`:g||v?`${b?"<":"≤"} ${b?h:l}`:null})(e);n!==null&&t.push({scope:"number",value:n}),e!=null&&e.format&&t.push({scope:"string",value:e.format});const i=cp("characters",e==null?void 0:e.minLength,e==null?void 0:e.maxLength);i!==null&&t.push({scope:"string",value:i}),e!=null&&e.pattern&&t.push({scope:"string",value:`matches ${e==null?void 0:e.pattern}`}),e!=null&&e.contentMediaType&&t.push({scope:"string",value:`media type: ${e.contentMediaType}`}),e!=null&&e.contentEncoding&&t.push({scope:"string",value:`encoding: ${e.contentEncoding}`});const s=cp(e!=null&&e.uniqueItems?"unique items":"items",e==null?void 0:e.minItems,e==null?void 0:e.maxItems);s!==null&&t.push({scope:"array",value:s}),e!=null&&e.uniqueItems&&!s&&t.push({scope:"array",value:"unique"});const a=cp("contained items",e==null?void 0:e.minContains,e==null?void 0:e.maxContains);a!==null&&t.push({scope:"array",value:a});const o=cp("properties",e==null?void 0:e.minProperties,e==null?void 0:e.maxProperties);return o!==null&&t.push({scope:"object",value:o}),t},oxe=(e,t)=>t!=null&&t.dependentRequired?Array.from(Object.entries(t.dependentRequired).reduce((r,[n,i])=>(Array.isArray(i)&&i.includes(e)&&r.add(n),r),new Set)):[],Mm=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),BV=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],UV=e=>t=>{const r=e().getSchemaKeywords();return Mm(t)?((n,i)=>{const s=new Set(i);return n.filter(a=>!s.has(a))})(Object.keys(t),r):[]},uxe=(e,t)=>{const r=W.Map.isMap(e);if(!r&&!Mm(e))return!1;const n=s=>t===s||Array.isArray(t)&&t.includes(s),i=r?e.get("type"):e.type;return W.List.isList(i)||Array.isArray(i)?i.some(s=>n(s)):n(i)},cxe=({constraint:e})=>Mm(e)&&typeof e.scope=="string"&&typeof e.value=="string"?p.default.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${e.scope}`},e.value):null;var VV=p.default.memo(cxe),zV=({dependentRequired:e})=>Array.isArray(e)&&e.length!==0?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),p.default.createElement("ul",null,e.map(t=>p.default.createElement("li",{key:t},p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},t))))):null,WV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"contentSchema"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},p.default.createElement(r,{name:n,schema:e.contentSchema,identifier:"contentSchema"}))},JV=({title:e="",schema:t})=>{const r=Vt(),n=e||r.getTitle(t);return n?p.default.createElement("div",{className:"json-schema-2020-12__title"},n):null},KV=({schema:e})=>e!=null&&e.description?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},p.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},e.description)):null,HV=({schema:e})=>{const t=Vt(),r=je("JSONViewer");return t.hasKeyword(e,"default")?p.default.createElement(r,{name:"Default",value:e.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},GV=({schema:e})=>(e==null?void 0:e.deprecated)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),YV=({schema:e})=>(e==null?void 0:e.readOnly)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),XV=({schema:e})=>(e==null?void 0:e.writeOnly)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),ZV=({schema:e})=>{const t=(e==null?void 0:e.examples)||[],r=je("JSONViewer");return Array.isArray(t)&&t.length!==0?p.default.createElement(r,{name:"Examples",value:e.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},QV=({schema:e})=>{const t=Vt(),r="ExtensionKeywords",{path:n}=En(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ui(r),[o,u]=hi(),c=je("Accordion"),l=je("ExpandDeepButton"),f=je("JSONViewer"),{showExtensionKeywords:h}=ER(),d=t.getExtensionKeywords(e),g=(0,p.useCallback)(()=>{i?a():s()},[i,s,a]),y=(0,p.useCallback)((v,E)=>{E?s({deep:!0}):a({deep:!0})},[s,a]);return h&&d.length!==0?p.default.createElement(qn.Provider,{value:n},p.default.createElement(Ei.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),p.default.createElement(l,{expanded:i,onClick:y}),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,d.map(v=>p.default.createElement(f,{key:v,name:v,value:e[v],className:"json-schema-2020-12-json-viewer-extension-keyword"}))))))):null};const kA=({name:e,value:t,className:r})=>{const n=Vt(),{path:i}=En(e),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(e),[u,c]=hi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=typeof t=="string"||typeof t=="number"||typeof t=="bigint"||typeof t=="boolean"||typeof t=="symbol"||t==null,d=(v=>Mm(v)&&Object.keys(v).length===0)(t)||(v=>Array.isArray(v)&&v.length===0)(t),g=(0,p.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,p.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return h?p.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-json-viewer",r)},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(t))):d?p.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-json-viewer",r)},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"empty array":"empty object")):p.default.createElement(qn.Provider,{value:i},p.default.createElement(Ei.Provider,{value:c},p.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-json-viewer",r),"data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e)),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"array":"object"),p.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,Array.isArray(t)?t.map((v,E)=>p.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},p.default.createElement(kA,{name:`#${E}`,value:v,className:r}))):Object.entries(t).map(([v,E])=>p.default.createElement("li",{key:v,className:"json-schema-2020-12-property"},p.default.createElement(kA,{name:v,value:E,className:r}))))))))};var ez=kA,tz=({expanded:e=!1,children:t,onChange:r})=>{const n=je("ChevronRightIcon"),i=(0,p.useCallback)(s=>{r(s,!e)},[e,r]);return p.default.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:i},p.default.createElement("div",{className:"json-schema-2020-12-accordion__children"},t),p.default.createElement("span",{className:(0,Ot.default)("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":e,"json-schema-2020-12-accordion__icon--collapsed":!e})},p.default.createElement(n,null)))},rz=({expanded:e,onClick:t})=>{const r=(0,p.useCallback)(n=>{t(n,!e)},[e,t]);return p.default.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},e?"Collapse all":"Expand all")},nz=()=>p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},p.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const iz=(e,t={})=>{const r={components:{JSONSchema:iV,Keyword$schema:sV,Keyword$vocabulary:aV,Keyword$id:oV,Keyword$anchor:uV,Keyword$dynamicAnchor:cV,Keyword$ref:lV,Keyword$dynamicRef:fV,Keyword$defs:pV,Keyword$comment:dV,KeywordAllOf:hV,KeywordAnyOf:mV,KeywordOneOf:gV,KeywordNot:yV,KeywordIf:vV,KeywordThen:bV,KeywordElse:_V,KeywordDependentSchemas:EV,KeywordPrefixItems:SV,KeywordItems:wV,KeywordContains:xV,KeywordProperties:AV,KeywordPatternProperties:OV,KeywordAdditionalProperties:CV,KeywordPropertyNames:RV,KeywordUnevaluatedItems:TV,KeywordUnevaluatedProperties:IV,KeywordType:jV,KeywordEnum:kV,KeywordConst:PV,KeywordConstraint:VV,KeywordDependentRequired:zV,KeywordContentSchema:WV,KeywordTitle:JV,KeywordDescription:KV,KeywordDefault:HV,KeywordDeprecated:GV,KeywordReadOnly:YV,KeywordWriteOnly:XV,KeywordExamples:ZV,ExtensionKeywords:QV,JSONViewer:ez,Accordion:tz,ExpandDeepButton:rz,ChevronRightIcon:nz,...t.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:NV,getTitle:MV(Vt),getType:DV(Vt),isBooleanJSONSchema:qV,hasKeyword:$V,isExpandable:FV(Vt),stringify:LV,stringifyConstraints:axe,getDependentRequired:oxe,getSchemaKeywords:BV,getExtensionKeywords:UV(Vt),...t.fn},state:{paths:{}}},n=i=>p.default.createElement(Za.Provider,{value:r},p.default.createElement(e,i));return n.contexts={JSONSchemaContext:Za},n.displayName=e.displayName,n},lxe=({getSystem:e})=>(t,r={})=>{const{getComponent:n,getConfigs:i}=e(),s=i(),a=n("JSONSchema202012"),o=n("JSONSchema202012Keyword$schema"),u=n("JSONSchema202012Keyword$vocabulary"),c=n("JSONSchema202012Keyword$id"),l=n("JSONSchema202012Keyword$anchor"),f=n("JSONSchema202012Keyword$dynamicAnchor"),h=n("JSONSchema202012Keyword$ref"),d=n("JSONSchema202012Keyword$dynamicRef"),g=n("JSONSchema202012Keyword$defs"),y=n("JSONSchema202012Keyword$comment"),v=n("JSONSchema202012KeywordAllOf"),E=n("JSONSchema202012KeywordAnyOf"),b=n("JSONSchema202012KeywordOneOf"),S=n("JSONSchema202012KeywordNot"),x=n("JSONSchema202012KeywordIf"),_=n("JSONSchema202012KeywordThen"),A=n("JSONSchema202012KeywordElse"),C=n("JSONSchema202012KeywordDependentSchemas"),R=n("JSONSchema202012KeywordPrefixItems"),O=n("JSONSchema202012KeywordItems"),M=n("JSONSchema202012KeywordContains"),k=n("JSONSchema202012KeywordProperties"),D=n("JSONSchema202012KeywordPatternProperties"),P=n("JSONSchema202012KeywordAdditionalProperties"),H=n("JSONSchema202012KeywordPropertyNames"),Z=n("JSONSchema202012KeywordUnevaluatedItems"),V=n("JSONSchema202012KeywordUnevaluatedProperties"),G=n("JSONSchema202012KeywordType"),Q=n("JSONSchema202012KeywordEnum"),Y=n("JSONSchema202012KeywordConst"),L=n("JSONSchema202012KeywordConstraint"),J=n("JSONSchema202012KeywordDependentRequired"),ee=n("JSONSchema202012KeywordContentSchema"),ne=n("JSONSchema202012KeywordTitle"),ae=n("JSONSchema202012KeywordDescription"),X=n("JSONSchema202012KeywordDefault"),B=n("JSONSchema202012KeywordDeprecated"),F=n("JSONSchema202012KeywordReadOnly"),ue=n("JSONSchema202012KeywordWriteOnly"),fe=n("JSONSchema202012KeywordExamples"),Ae=n("JSONSchema202012ExtensionKeywords"),Ne=n("JSONSchema202012JSONViewer"),pe=n("JSONSchema202012Accordion"),Oe=n("JSONSchema202012ExpandDeepButton"),We=n("JSONSchema202012ChevronRightIcon");return iz(t,{components:{JSONSchema:a,Keyword$schema:o,Keyword$vocabulary:u,Keyword$id:c,Keyword$anchor:l,Keyword$dynamicAnchor:f,Keyword$ref:h,Keyword$dynamicRef:d,Keyword$defs:g,Keyword$comment:y,KeywordAllOf:v,KeywordAnyOf:E,KeywordOneOf:b,KeywordNot:S,KeywordIf:x,KeywordThen:_,KeywordElse:A,KeywordDependentSchemas:C,KeywordPrefixItems:R,KeywordItems:O,KeywordContains:M,KeywordProperties:k,KeywordPatternProperties:D,KeywordAdditionalProperties:P,KeywordPropertyNames:H,KeywordUnevaluatedItems:Z,KeywordUnevaluatedProperties:V,KeywordType:G,KeywordEnum:Q,KeywordConst:Y,KeywordConstraint:L,KeywordDependentRequired:J,KeywordContentSchema:ee,KeywordTitle:ne,KeywordDescription:ae,KeywordDefault:X,KeywordDeprecated:B,KeywordReadOnly:F,KeywordWriteOnly:ue,KeywordExamples:fe,ExtensionKeywords:Ae,JSONViewer:Ne,Accordion:pe,ExpandDeepButton:Oe,ChevronRightIcon:We,...r.components},config:{showExtensionKeywords:s.showExtensions,...r.config},fn:{...r.fn}})};var sz=({getSystem:e,fn:t})=>{const r=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:iV,JSONSchema202012Keyword$schema:sV,JSONSchema202012Keyword$vocabulary:aV,JSONSchema202012Keyword$id:oV,JSONSchema202012Keyword$anchor:uV,JSONSchema202012Keyword$dynamicAnchor:cV,JSONSchema202012Keyword$ref:lV,JSONSchema202012Keyword$dynamicRef:fV,JSONSchema202012Keyword$defs:pV,JSONSchema202012Keyword$comment:dV,JSONSchema202012KeywordAllOf:hV,JSONSchema202012KeywordAnyOf:mV,JSONSchema202012KeywordOneOf:gV,JSONSchema202012KeywordNot:yV,JSONSchema202012KeywordIf:vV,JSONSchema202012KeywordThen:bV,JSONSchema202012KeywordElse:_V,JSONSchema202012KeywordDependentSchemas:EV,JSONSchema202012KeywordPrefixItems:SV,JSONSchema202012KeywordItems:wV,JSONSchema202012KeywordContains:xV,JSONSchema202012KeywordProperties:AV,JSONSchema202012KeywordPatternProperties:OV,JSONSchema202012KeywordAdditionalProperties:CV,JSONSchema202012KeywordPropertyNames:RV,JSONSchema202012KeywordUnevaluatedItems:TV,JSONSchema202012KeywordUnevaluatedProperties:IV,JSONSchema202012KeywordType:jV,JSONSchema202012KeywordEnum:kV,JSONSchema202012KeywordConst:PV,JSONSchema202012KeywordConstraint:VV,JSONSchema202012KeywordDependentRequired:zV,JSONSchema202012KeywordContentSchema:WV,JSONSchema202012KeywordTitle:JV,JSONSchema202012KeywordDescription:KV,JSONSchema202012KeywordDefault:HV,JSONSchema202012KeywordDeprecated:GV,JSONSchema202012KeywordReadOnly:YV,JSONSchema202012KeywordWriteOnly:XV,JSONSchema202012KeywordExamples:ZV,JSONSchema202012ExtensionKeywords:QV,JSONSchema202012JSONViewer:ez,JSONSchema202012Accordion:tz,JSONSchema202012ExpandDeepButton:rz,JSONSchema202012ChevronRightIcon:nz,withJSONSchema202012Context:iz,withJSONSchema202012SystemContext:lxe(e()),JSONSchema202012PathContext:()=>qn,JSONSchema202012LevelContext:()=>Ei},fn:{upperFirst:NV,jsonSchema202012:{getTitle:MV(r),getType:DV(r),isExpandable:FV(r),isBooleanJSONSchema:qV,hasKeyword:$V,useFn:Vt,useConfig:ER,useComponent:je,useIsExpanded:Ui,usePath:En,useLevel:hi,getSchemaKeywords:BV,getExtensionKeywords:UV(r),hasSchemaType:uxe}}}},fxe=(e,{sample:t})=>((r,n={})=>{const{minItems:i,maxItems:s,uniqueItems:a}=n,{contains:o,minContains:u,maxContains:c}=n;let l=[...r];if(o!=null&&typeof o=="object"&&Number.isInteger(u)&&u>1){const f=l.at(0);for(let h=1;h<u;h+=1)l.unshift(f)}if(Number.isInteger(s)&&s>0&&(l=r.slice(0,s)),Number.isInteger(i)&&i>0)for(let f=0;l.length<i;f+=1)l.push(l[f%l.length]);return a===!0&&(l=Array.from(new Set(l))),l})(t,e),pxe=()=>{throw new Error("Not implemented")};const Dm=e=>Vo()(e),Ap=e=>e.at(0),Fa=e=>typeof e=="boolean",Ti=e=>(0,So.default)(e),ws=e=>Fa(e)||Ti(e);var qm=class{constructor(){z(this,"data",{})}register(t,r){this.data[t]=r}unregister(t){t===void 0?this.data={}:delete this.data[t]}get(t){return this.data[t]}},az=()=>0,oz=()=>0,dxe=()=>.1,hxe=()=>.1,mxe=()=>"user@example.com",gxe=()=>"실례@example.com",yxe=()=>"example.com",vxe=()=>"실례.com",bxe=()=>"198.51.100.42",_xe=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",Exe=()=>"https://example.com/",Sxe=()=>"path/index.html",wxe=()=>"https://실례.com/",xxe=()=>"path/실례.html",Axe=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",Oxe=()=>"https://example.com/dictionary/{term:1}/{term}",Cxe=()=>"/a/b/c",Rxe=()=>"1/0",Txe=()=>new Date().toISOString(),Ixe=()=>new Date().toISOString().substring(0,10),jxe=()=>new Date().toISOString().substring(11),kxe=()=>"P3D",Pxe=()=>"********",Nxe=()=>"^[a-z]+$",Jc,dL;const Op=new(dL=class extends qm{constructor(){super(...arguments);Ro(this,Jc,{int32:az,int64:oz,float:dxe,double:hxe,email:mxe,"idn-email":gxe,hostname:yxe,"idn-hostname":vxe,ipv4:bxe,ipv6:_xe,uri:Exe,"uri-reference":Sxe,iri:wxe,"iri-reference":xxe,uuid:Axe,"uri-template":Oxe,"json-pointer":Cxe,"relative-json-pointer":Rxe,"date-time":Txe,date:Ixe,time:jxe,duration:kxe,password:Pxe,regex:Nxe});z(this,"data",{...Ai(this,Jc)})}get defaults(){return{...Ai(this,Jc)}}},Jc=new WeakMap,dL),uz=(e,t)=>typeof t=="function"?Op.register(e,t):t===null?Op.unregister(e):Op.get(e);uz.getDefaults=()=>Op.defaults;var $m=uz,Mxe=me(287).Buffer,Dxe=e=>Mxe.from(e).toString("ascii"),qxe=me(287).Buffer,$xe=e=>qxe.from(e).toString("utf8"),Fxe=me(287).Buffer,Lxe=e=>Fxe.from(e).toString("binary"),Bxe=e=>{let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(n===61)t+="=3D";else if(n>=33&&n<=60||n>=62&&n<=126||n===9||n===32)t+=e.charAt(r);else if(n===13||n===10)t+=`\r
308
+ `;else if(n>126){const i=unescape(encodeURIComponent(e.charAt(r)));for(let s=0;s<i.length;s++)t+="="+("0"+i.charCodeAt(s).toString(16)).slice(-2).toUpperCase()}else t+="="+("0"+n.toString(16)).slice(-2).toUpperCase()}return t},Uxe=me(287).Buffer,Vxe=e=>Uxe.from(e).toString("hex"),zxe=me(287).Buffer,Wxe=e=>{const t=zxe.from(e).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,i="",s=0,a=0;for(let o=0;o<t.length;o++)for(s=s<<8|t.charCodeAt(o),a+=8;a>=5;)i+=r.charAt(s>>>a-5&31),a-=5;a>0&&(i+=r.charAt(s<<5-a&31),n=(8-8*t.length%5)%5);for(let o=0;o<n;o++)i+="=";return i},Jxe=me(287).Buffer,Kxe=e=>Jxe.from(e).toString("base64"),Hxe=me(287).Buffer,Gxe=e=>Hxe.from(e).toString("base64url"),Kc,hL;const Cp=new(hL=class extends qm{constructor(){super(...arguments);Ro(this,Kc,{"7bit":Dxe,"8bit":$xe,binary:Lxe,"quoted-printable":Bxe,base16:Vxe,base32:Wxe,base64:Kxe,base64url:Gxe});z(this,"data",{...Ai(this,Kc)})}get defaults(){return{...Ai(this,Kc)}}},Kc=new WeakMap,hL),cz=(e,t)=>typeof t=="function"?Cp.register(e,t):t===null?Cp.unregister(e):Cp.get(e);cz.getDefaults=()=>Cp.defaults;var lz=cz,Yxe={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"<p>content</p>","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'<person age="30">John Doe</person>',"text/*":()=>"string"},Xxe={"image/*":()=>Dm(25).toString("binary")},Zxe={"audio/*":()=>Dm(25).toString("binary")},Qxe={"video/*":()=>Dm(25).toString("binary")},eAe={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"<?php echo '<p>Hello World!</p>'; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"<p>content</p>","application/*":()=>Dm(25).toString("binary")},Hc,mL;const qo=new(mL=class extends qm{constructor(){super(...arguments);Ro(this,Hc,{...Yxe,...Xxe,...Zxe,...Qxe,...eAe});z(this,"data",{...Ai(this,Hc)})}get defaults(){return{...Ai(this,Hc)}}},Hc=new WeakMap,mL),fz=(e,t)=>{if(typeof t=="function")return qo.register(e,t);if(t===null)return qo.unregister(e);const r=e.split(";").at(0),n=`${r.split("/").at(0)}/*`;return qo.get(e)||qo.get(r)||qo.get(n)};fz.getDefaults=()=>qo.defaults;var pz=fz;const pw=(e,t={})=>{const{maxLength:r,minLength:n}=t;let i=e;if(Number.isInteger(r)&&r>0&&(i=i.slice(0,r)),Number.isInteger(n)&&n>0){let s=0;for(;i.length<n;)i+=i[s++%i.length]}return i};var tAe=(e,{sample:t}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:i}=e,{pattern:s,format:a}=e,o=lz(r)||E7.default;let u;return u=typeof s=="string"?pw((c=>{try{return new B5.default(c).gen()}catch{return"string"}})(s),e):typeof a=="string"?(c=>{const{format:l}=c,f=$m(l);return typeof f=="function"?f(c):"string"})(e):ws(i)&&typeof n=="string"&&t!==void 0?Array.isArray(t)||typeof t=="object"?JSON.stringify(t):pw(String(t),e):typeof n=="string"?(c=>{const{contentMediaType:l}=c,f=pz(l);return typeof f=="function"?f(c):"string"})(e):pw("string",e),o(u)};const dz=(e,t={})=>{const{minimum:r,maximum:n,exclusiveMinimum:i,exclusiveMaximum:s}=t,{multipleOf:a}=t,o=Number.isInteger(e)?1:Number.EPSILON;let u=typeof r=="number"?r:null,c=typeof n=="number"?n:null,l=e;if(typeof i=="number"&&(u=u!==null?Math.max(u,i+o):i+o),typeof s=="number"&&(c=c!==null?Math.min(c,s-o):s-o),l=u>c&&e||u||c||l,typeof a=="number"&&a>0){const f=l%a;l=f===0?l:l+a-f}return l};var rAe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=$m(i);return typeof s=="function"?s(n):0})(e):0,dz(r,e)},nAe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=$m(i);if(typeof s=="function")return s(n);switch(i){case"int32":return az();case"int64":return oz()}return 0})(e):0,dz(r,e)},iAe=e=>typeof e.default!="boolean"||e.default,lp=new Proxy({array:fxe,object:pxe,string:tAe,number:rAe,integer:nAe,boolean:iAe,null:()=>null},{get:(e,t)=>typeof t=="string"&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`});const aL=["array","object","number","integer","string","boolean","null"],dc=e=>{if(!Ti(e))return!1;const{examples:t,example:r,default:n}=e;return!!(Array.isArray(t)&&t.length>=1)||n!==void 0||r!==void 0},PA=e=>{if(!Ti(e))return null;const{examples:t,example:r,default:n}=e;return Array.isArray(t)&&t.length>=1?t.at(0):n!==void 0?n:r!==void 0?r:void 0},ld={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};ld.number=ld.integer;const dw="string",oL=e=>e===void 0?null:e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e,Rp=e=>{if(Array.isArray(e)&&e.length>=1){if(e.includes("array"))return"array";if(e.includes("object"))return"object";{const t=e.filter(n=>n!=="null"),r=Ap(t.length>0?t:e);if(aL.includes(r))return r}}return aL.includes(e)?e:null},NA=(e,t=new WeakSet)=>{if(!Ti(e)||t.has(e))return dw;t.add(e);let{type:r,const:n}=e;if(r=Rp(r),typeof r!="string"){const i=Object.keys(ld);e:for(let s=0;s<i.length;s+=1){const a=i[s],o=ld[a];for(let u=0;u<o.length;u+=1){const c=o[u];if(Object.hasOwn(e,c)){r=a;break e}}}}if(typeof r!="string"&&n!==void 0){const i=oL(n);r=typeof i=="string"?i:r}if(typeof r!="string"){const i=c=>{if(Array.isArray(e[c])){const l=e[c].map(f=>NA(f,t));return Rp(l)}return null},s=i("allOf"),a=i("anyOf"),o=i("oneOf"),u=e.not?NA(e.not,t):null;(s||a||o||u)&&(r=Rp([s,a,o,u].filter(Boolean)))}if(typeof r!="string"&&dc(e)){const i=PA(e),s=oL(i);r=typeof s=="string"?s:r}return t.delete(e),r||dw},uL=e=>NA(e),hw=e=>Fa(e)?(t=>t===!1?{not:{}}:{})(e):Ti(e)?e:{},hc=(e,t,r={})=>{if(Fa(e)&&e===!0)return!0;if(Fa(e)&&e===!1)return!1;if(Fa(t)&&t===!0)return!0;if(Fa(t)&&t===!1)return!1;if(!ws(e))return t;if(!ws(t))return e;const n={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&typeof t.type=="string"){const i=_o(t.type).concat(e.type);n.type=Array.from(new Set(i))}if(Array.isArray(t.required)&&Array.isArray(e.required)&&(n.required=[...new Set([...e.required,...t.required])]),t.properties&&e.properties){const i=new Set([...Object.keys(t.properties),...Object.keys(e.properties)]);n.properties={};for(const s of i){const a=t.properties[s]||{},o=e.properties[s]||{};a.readOnly&&!r.includeReadOnly||a.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter(u=>u!==s):n.properties[s]=hc(o,a,r)}}return ws(t.items)&&ws(e.items)&&(n.items=hc(e.items,t.items,r)),ws(t.contains)&&ws(e.contains)&&(n.contains=hc(e.contains,t.contains,r)),ws(t.contentSchema)&&ws(e.contentSchema)&&(n.contentSchema=hc(e.contentSchema,t.contentSchema,r)),n};var $o=hc;const Wr=(e,t={},r=void 0,n=!1)=>{var k,D,P,H,Z,V,G,Q,Y;if(e==null&&r===void 0)return;typeof(e==null?void 0:e.toJS)=="function"&&(e=e.toJS()),e=hw(e);let i=r!==void 0||dc(e);const s=!i&&Array.isArray(e.oneOf)&&e.oneOf.length>0,a=!i&&Array.isArray(e.anyOf)&&e.anyOf.length>0;if(!i&&(s||a)){const L=hw(Ap(s?e.oneOf:e.anyOf));!(e=$o(e,L,t)).xml&&L.xml&&(e.xml=L.xml),dc(e)&&dc(L)&&(i=!0)}const o={};let{xml:u,properties:c,additionalProperties:l,items:f,contains:h}=e||{},d=uL(e),{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:E,prefix:b,namespace:S}=u,x={};Object.hasOwn(e,"type")||(e.type=d),n&&(E=E||"notagname",v=(b?`${b}:`:"")+E,S)&&(o[b?`xmlns:${b}`:"xmlns"]=S),n&&(x[v]=[]);const _=$a(c);let A,C=0;const R=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&C>=e.maxProperties,O=L=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!R()&&(!(J=>!Array.isArray(e.required)||e.required.length===0||!e.required.includes(J))(L)||e.maxProperties-C-(()=>{if(!Array.isArray(e.required)||e.required.length===0)return 0;let J=0;return n?e.required.forEach(ee=>J+=x[ee]===void 0?0:1):e.required.forEach(ee=>{var ne;J+=((ne=x[v])==null?void 0:ne.find(ae=>ae[ee]!==void 0))===void 0?0:1}),e.required.length-J})()>0);if(A=n?(L,J=void 0)=>{if(e&&_[L]){if(_[L].xml=_[L].xml||{},_[L].xml.attribute){const ne=Array.isArray(_[L].enum)?Ap(_[L].enum):void 0;if(dc(_[L]))o[_[L].xml.name||L]=PA(_[L]);else if(ne!==void 0)o[_[L].xml.name||L]=ne;else{const ae=hw(_[L]),X=uL(ae),B=_[L].xml.name||L;o[B]=lp[X](ae)}return}_[L].xml.name=_[L].xml.name||L}else _[L]||l===!1||(_[L]={xml:{name:L}});let ee=Wr(_[L],t,J,n);O(L)&&(C++,Array.isArray(ee)?x[v]=x[v].concat(ee):x[v].push(ee))}:(L,J)=>{var ee;if(O(L)){if((0,So.default)((ee=e.discriminator)==null?void 0:ee.mapping)&&e.discriminator.propertyName===L&&typeof e.$$ref=="string"){for(const ne in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[ne])!==-1){x[L]=ne;break}}else x[L]=Wr(_[L],t,J,n);C++}},i){let L;if(L=r!==void 0?r:PA(e),!n){if(typeof L=="number"&&d==="string")return`${L}`;if(typeof L!="string"||d==="string")return L;try{return JSON.parse(L)}catch{return L}}if(d==="array"){if(!Array.isArray(L)){if(typeof L=="string")return L;L=[L]}let J=[];return Ti(f)&&(f.xml=f.xml||u||{},f.xml.name=f.xml.name||u.name,J=L.map(ee=>Wr(f,t,ee,n))),Ti(h)&&(h.xml=h.xml||u||{},h.xml.name=h.xml.name||u.name,J=[Wr(h,t,void 0,n),...J]),J=lp.array(e,{sample:J}),u.wrapped?(x[v]=J,(0,es.default)(o)||x[v].push({_attr:o})):x=J,x}if(d==="object"){if(typeof L=="string")return L;for(const J in L)Object.hasOwn(L,J)&&((k=_[J])!=null&&k.readOnly&&!g||(D=_[J])!=null&&D.writeOnly&&!y||((H=(P=_[J])==null?void 0:P.xml)!=null&&H.attribute?o[_[J].xml.name||J]=L[J]:A(J,L[J])));return(0,es.default)(o)||x[v].push({_attr:o}),x}return x[v]=(0,es.default)(o)?L:[{_attr:o},L],x}if(d==="array"){let L=[];if(Ti(h))if(n&&(h.xml=h.xml||e.xml||{},h.xml.name=h.xml.name||u.name),Array.isArray(h.anyOf)){const{anyOf:J,...ee}=f;L.push(...h.anyOf.map(ne=>Wr($o(ne,ee,t),t,void 0,n)))}else if(Array.isArray(h.oneOf)){const{oneOf:J,...ee}=f;L.push(...h.oneOf.map(ne=>Wr($o(ne,ee,t),t,void 0,n)))}else{if(!(!n||n&&u.wrapped))return Wr(h,t,void 0,n);L.push(Wr(h,t,void 0,n))}if(Ti(f))if(n&&(f.xml=f.xml||e.xml||{},f.xml.name=f.xml.name||u.name),Array.isArray(f.anyOf)){const{anyOf:J,...ee}=f;L.push(...f.anyOf.map(ne=>Wr($o(ne,ee,t),t,void 0,n)))}else if(Array.isArray(f.oneOf)){const{oneOf:J,...ee}=f;L.push(...f.oneOf.map(ne=>Wr($o(ne,ee,t),t,void 0,n)))}else{if(!(!n||n&&u.wrapped))return Wr(f,t,void 0,n);L.push(Wr(f,t,void 0,n))}return L=lp.array(e,{sample:L}),n&&u.wrapped?(x[v]=L,(0,es.default)(o)||x[v].push({_attr:o}),x):L}if(d==="object"){for(let L in _)Object.hasOwn(_,L)&&((Z=_[L])!=null&&Z.deprecated||(V=_[L])!=null&&V.readOnly&&!g||(G=_[L])!=null&&G.writeOnly&&!y||A(L));if(n&&o&&x[v].push({_attr:o}),R())return x;if(Fa(l)&&l)n?x[v].push({additionalProp:"Anything can be here"}):x.additionalProp1={},C++;else if(Ti(l)){const L=l,J=Wr(L,t,void 0,n);if(n&&typeof((Q=L==null?void 0:L.xml)==null?void 0:Q.name)=="string"&&((Y=L==null?void 0:L.xml)==null?void 0:Y.name)!=="notagname")x[v].push(J);else{const ee=Number.isInteger(e.minProperties)&&e.minProperties>0&&C<e.minProperties?e.minProperties-C:3;for(let ne=1;ne<=ee;ne++){if(R())return x;if(n){const ae={};ae["additionalProp"+ne]=J.notagname,x[v].push(ae)}else x["additionalProp"+ne]=J;C++}}}return x}let M;if(e.const!==void 0)M=e.const;else if(e&&Array.isArray(e.enum))M=Ap(_o(e.enum));else{const L=Ti(e.contentSchema)?Wr(e.contentSchema,t,void 0,n):void 0;M=lp[d](e,{sample:L})}return n?(x[v]=(0,es.default)(o)?M:[{_attr:o},M],x):M},hz=(e,t,r)=>{const n=Wr(e,t,r,!0);if(n)return typeof n=="string"?n:L5()(n,{declaration:!0,indent:" "})},mz=(e,t,r)=>Wr(e,t,r,!1),gz=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],sAe=bf(hz,gz),aAe=bf(mz,gz);var Gc,gL;const cL=new(gL=class extends qm{constructor(){super(...arguments);Ro(this,Gc,{});z(this,"data",{...Ai(this,Gc)})}get defaults(){return{...Ai(this,Gc)}}},Gc=new WeakMap,gL);var oAe=(e,t)=>(t!==void 0&&cL.register(e,t),cL.get(e));const uAe=[{when:/json/,shouldStringifyTypes:["string"]}],cAe=["object"];var lAe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.memoizedSampleFromSchema(t,r,i),o=typeof a,u=uAe.reduce((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c,cAe);return(0,l5.default)(u,c=>c===o)?JSON.stringify(a,null,2):a},fAe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.getJsonSampleSchema(t,r,n,i);let o;try{o=Os.default.dump(Os.default.load(a),{lineWidth:-1},{schema:Os.JSON_SCHEMA}),o[o.length-1]===`
309
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},pAe=e=>(t,r,n)=>{const{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
310
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let s=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=s[1]}}return i.jsonSchema202012.memoizedCreateXMLExample(t,r,n)},dAe=e=>(t,r="",n={},i=void 0)=>{const{fn:s}=e();return typeof(t==null?void 0:t.toJS)=="function"&&(t=t.toJS()),typeof(i==null?void 0:i.toJS)=="function"&&(i=i.toJS()),/xml/.test(r)?s.jsonSchema202012.getXmlSampleSchema(t,n,i):/(yaml|yml)/.test(r)?s.jsonSchema202012.getYamlSampleSchema(t,n,r,i):s.jsonSchema202012.getJsonSampleSchema(t,n,r,i)},yz=({getSystem:e})=>{const t=lAe(e),r=fAe(e),n=pAe(e),i=dAe(e);return{fn:{jsonSchema202012:{sampleFromSchema:mz,sampleFromSchemaGeneric:Wr,sampleOptionAPI:oAe,sampleEncoderAPI:lz,sampleFormatAPI:$m,sampleMediaTypeAPI:pz,createXMLExample:hz,memoizedSampleFromSchema:aAe,memoizedCreateXMLExample:sAe,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:$o,foldType:Rp}}}};function vz(){return[X7,IA,sz,yz,rxe]}var hAe=e=>()=>({fn:e.fn,components:e.components}),mAe=e=>{const t=Uc()({layout:{layout:e.layout,filter:e.filter},spec:{spec:"",url:e.url},requestSnippets:e.requestSnippets},e.initialState);if(e.initialState)for(const[r,n]of Object.entries(e.initialState))n===void 0&&delete t[r];return{system:{configs:e.configs},plugins:e.presets,state:t}},gAe=()=>e=>{const t=e.queryConfigEnabled?(()=>{const r=new URLSearchParams(Zt.location.search);return Object.fromEntries(r)})():{};return Object.entries(t).reduce((r,[n,i])=>(n==="config"?r.configUrl=i:n==="urls.primaryName"?r[n]=i:r=(0,d7.default)(r,n,i),r),{})},yAe=({url:e,system:t})=>async r=>{var i;if(!e)return{};if(typeof((i=t.configsActions)==null?void 0:i.getConfigByUrl)!="function")return{};const n=(()=>{const s={};return s.promise=new Promise((a,o)=>{s.resolve=a,s.reject=o}),s})();return t.configsActions.getConfigByUrl({url:e,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},s=>{n.resolve(s)}),n.promise},vAe=()=>()=>{const e={};return globalThis.location&&(e.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),e},cr=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:e=>(e.curlOptions=[],e),responseInterceptor:e=>e,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[vz],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"]}),bAe=function(e){var t={};return me.d(t,e),t}({default:function(){return rve}}),_Ae=function(e){var t={};return me.d(t,e),t}({default:function(){return ive}}),fp=(e,t=[])=>Array.isArray(e)?e:t,oi=(e,t=!1)=>e===!0||e==="true"||e===1||e==="1"||e!==!1&&e!=="false"&&e!==0&&e!=="0"&&t,EAe=e=>e===null||e==="null"?null:e,SAe=e=>{const t=String(e);return oi(e,t)},lL=(e,t)=>typeof e=="function"?e:t,wAe=e=>Array.isArray(e)?e:null,mw=e=>typeof e=="function"?e:null,gw=e=>e===null||e==="null"?null:String(e),yw=(e,t=-1)=>{const r=parseInt(e,10);return Number.isNaN(r)?t:r},No=(e,t={})=>(0,So.default)(e)?e:t,fL=e=>typeof e=="function"||typeof e=="string"?e:null,Mo=e=>String(e),xAe=(e,t)=>(0,So.default)(e)?e:e===!1||e==="false"||e===0||e==="0"?{activated:!1}:t,AAe=e=>e===void 0||e==="undefined"?void 0:String(e),bz={components:{typeCaster:No},configs:{typeCaster:No},configUrl:{typeCaster:gw},deepLinking:{typeCaster:oi,defaultValue:cr.deepLinking},defaultModelExpandDepth:{typeCaster:yw,defaultValue:cr.defaultModelExpandDepth},defaultModelRendering:{typeCaster:Mo},defaultModelsExpandDepth:{typeCaster:yw,defaultValue:cr.defaultModelsExpandDepth},displayOperationId:{typeCaster:oi,defaultValue:cr.displayOperationId},displayRequestDuration:{typeCaster:oi,defaultValue:cr.displayRequestDuration},docExpansion:{typeCaster:Mo},dom_id:{typeCaster:gw},domNode:{typeCaster:EAe},fileUploadMediaTypes:{typeCaster:fp,defaultValue:cr.fileUploadMediaTypes},filter:{typeCaster:SAe},fn:{typeCaster:No},initialState:{typeCaster:No},layout:{typeCaster:Mo},maxDisplayedTags:{typeCaster:yw,defaultValue:cr.maxDisplayedTags},modelPropertyMacro:{typeCaster:mw},oauth2RedirectUrl:{typeCaster:AAe},onComplete:{typeCaster:mw},operationsSorter:{typeCaster:fL},paramaterMacro:{typeCaster:mw},persistAuthorization:{typeCaster:oi,defaultValue:cr.persistAuthorization},plugins:{typeCaster:fp,defaultValue:cr.plugins},presets:{typeCaster:fp,defaultValue:cr.presets},requestInterceptor:{typeCaster:lL,defaultValue:cr.requestInterceptor},requestSnippets:{typeCaster:No,defaultValue:cr.requestSnippets},requestSnippetsEnabled:{typeCaster:oi,defaultValue:cr.requestSnippetsEnabled},responseInterceptor:{typeCaster:lL,defaultValue:cr.responseInterceptor},showCommonExtensions:{typeCaster:oi,defaultValue:cr.showCommonExtensions},showExtensions:{typeCaster:oi,defaultValue:cr.showExtensions},showMutatedRequest:{typeCaster:oi,defaultValue:cr.showMutatedRequest},spec:{typeCaster:No,defaultValue:cr.spec},supportedSubmitMethods:{typeCaster:fp,defaultValue:cr.supportedSubmitMethods},syntaxHighlight:{typeCaster:xAe,defaultValue:cr.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:oi,defaultValue:cr.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:Mo},tagsSorter:{typeCaster:fL},tryItOutEnabled:{typeCaster:oi,defaultValue:cr.tryItOutEnabled},url:{typeCaster:Mo},urls:{typeCaster:wAe},"urls.primaryName":{typeCaster:Mo},validatorUrl:{typeCaster:gw},withCredentials:{typeCaster:oi,defaultValue:cr.withCredentials}},_z=e=>Object.entries(bz).reduce((t,[r,{typeCaster:n,defaultValue:i}])=>{if((0,bAe.default)(t,r)){const s=n((0,vA.default)(t,r),i);t=(0,_Ae.default)(r,s,t)}return t},{...e}),OAe=(e,...t)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const i=[];for(const a of t){const o={...a};Object.hasOwn(o,"domNode")&&(r=o.domNode,delete o.domNode),Object.hasOwn(o,"urls.primaryName")?(n=o["urls.primaryName"],delete o["urls.primaryName"]):Array.isArray(o.urls)&&Object.hasOwn(o.urls,"primaryName")&&(n=o.urls.primaryName,delete o.urls.primaryName),i.push(o)}const s=Uc()(e,...i);return r!==Symbol.for("domNode")&&(s.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(s.urls)&&(s.urls.primaryName=n),_z(s)};function ua(e){const t=gAe()(e),r=vAe()(),n=ua.config.merge({},ua.config.defaults,r,e,t),i=mAe(n),s=hAe(n),a=new m5(i);a.register([n.plugins,s]);const o=a.getSystem(),u=f=>{a.setConfigs(f),o.configsActions.loaded()},c=f=>{!t.url&&typeof f.spec=="object"&&Object.keys(f.spec).length>0?(o.specActions.updateUrl(""),o.specActions.updateLoadingStatus("success"),o.specActions.updateSpec(JSON.stringify(f.spec))):typeof o.specActions.download=="function"&&f.url&&!f.urls&&(o.specActions.updateUrl(f.url),o.specActions.download(f.url))},l=f=>{if(f.domNode)o.render(f.domNode,"App");else if(f.dom_id){const h=document.querySelector(f.dom_id);o.render(h,"App")}else f.dom_id===null||f.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:f}=n,h=await yAe({url:f,system:o})(n),d=ua.config.merge({},n,h,t);u(d),h!==null&&c(d),l(d)})(),o):(u(n),c(n),l(n),o)}ua.System=m5,ua.config={defaults:cr,merge:OAe,typeCast:_z,typeCastMappings:bz},ua.presets={base:X7,apis:vz},ua.plugins={Auth:y5,Configs:v5,DeepLining:b5,Err:E5,Filter:S5,Icons:w5,JSONSchema5:F5,JSONSchema5Samples:J5,JSONSchema202012:sz,JSONSchema202012Samples:yz,Layout:A5,Logs:O5,OpenAPI30:IA,OpenAPI31:IA,OnComplete:C5,RequestSnippets:I5,Spec:m7,SwaggerClient:y7,Util:v7,View:S7,ViewLegacy:w7,DownloadUrl:x7,SyntaxHighlighting:O7,Versions:C7,SafeRender:j7};var CAe=ua,fa=u5.A;const{config:Kt}=fa,pL=e=>{const t=jt.useRef();return jt.useEffect(()=>{t.current=e},[e]),t.current},xf=({spec:e=Kt.defaults.spec,url:t=Kt.defaults.url,layout:r=Kt.defaults.layout,requestInterceptor:n=Kt.defaults.requestInterceptor,responseInterceptor:i=Kt.defaults.responseInterceptor,supportedSubmitMethods:s=Kt.defaults.supportedSubmitMethods,queryConfigEnabled:a=Kt.defaults.queryConfigEnabled,plugins:o=Kt.defaults.plugins,displayOperationId:u=Kt.defaults.displayOperationId,showMutatedRequest:c=Kt.defaults.showMutatedRequest,docExpansion:l=Kt.defaults.docExpansion,defaultModelExpandDepth:f=Kt.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=Kt.defaults.defaultModelsExpandDepth,defaultModelRendering:d=Kt.defaults.defaultModelRendering,presets:g=Kt.defaults.presets,deepLinking:y=Kt.defaults.deepLinking,showExtensions:v=Kt.defaults.showExtensions,showCommonExtensions:E=Kt.defaults.showCommonExtensions,filter:b=Kt.defaults.filter,requestSnippetsEnabled:S=Kt.defaults.requestSnippetsEnabled,requestSnippets:x=Kt.defaults.requestSnippets,tryItOutEnabled:_=Kt.defaults.tryItOutEnabled,displayRequestDuration:A=Kt.defaults.displayRequestDuration,withCredentials:C=Kt.defaults.withCredentials,persistAuthorization:R=Kt.defaults.persistAuthorization,oauth2RedirectUrl:O=Kt.defaults.oauth2RedirectUrl,onComplete:M=null,initialState:k=Kt.defaults.initialState})=>{const[D,P]=jt.useState(null),H=D==null?void 0:D.getComponent("App","root"),Z=pL(e),V=pL(t);return jt.useEffect(()=>{const G=fa({plugins:o,spec:e,url:t,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:d,presets:[fa.presets.apis,...g],requestInterceptor:n,responseInterceptor:i,onComplete:()=>{typeof M=="function"&&M(G)},docExpansion:l,supportedSubmitMethods:s,queryConfigEnabled:a,defaultModelExpandDepth:f,displayOperationId:u,tryItOutEnabled:_,displayRequestDuration:A,requestSnippetsEnabled:S,requestSnippets:x,showMutatedRequest:c,deepLinking:y,showExtensions:v,showCommonExtensions:E,filter:b,persistAuthorization:R,withCredentials:C,initialState:k,...typeof O=="string"?{oauth2RedirectUrl:O}:{}});P(G)},[]),jt.useEffect(()=>{if(D){const G=D.specSelectors.url();(t!==G||t!==V)&&(D.specActions.updateSpec(""),t&&(D.specActions.updateUrl(t),D.specActions.download(t)))}},[D,t]),jt.useEffect(()=>{if(D){const G=D.specSelectors.specStr();if(e&&e!==fa.config.defaults.spec&&(e!==G||e!==Z)){const Q=typeof e=="object"?JSON.stringify(e):e;D.specActions.updateSpec(Q)}}},[D,e]),H?jt.createElement(H,null):null};xf.System=fa.System;xf.presets=fa.presets;xf.plugins=fa.plugins;xf.config=fa.config;class RAe extends jt.Component{render(){const{getComponent:t}=this.props,r=t("operations",!0);return Nr.jsx("div",{className:"swagger-ui",children:Nr.jsx(r,{})})}}const TAe=()=>({components:{OperationsLayout:RAe}}),IAe=e=>({statePlugins:{spec:{wrapSelectors:{taggedOperations:t=>(r,...n)=>{const i=t(r,...n);return e.operation?i.map(s=>s.update("operations",a=>a.filter(o=>o.get("operation").get("operationId")===e.operation))).filter(s=>s.get("operations").size>0):i}}}}}),jAe=({inputUrl:e,inputJSON:t,className:r,format:n,nodeKey:i,editor:s,create:a})=>{const{t:o}=qz.useTranslation(),[u,c]=jt.useState(""),[l,f]=jt.useState(""),[h,d]=jt.useState(!1),[g,y]=jt.useState(!1),[v,E]=jt.useState(!1),[b,S]=jt.useState(!0);jt.useEffect(()=>{a&&E(!0)},[a]),jt.useEffect(()=>{const A=document.documentElement;Be.toggleLockScroll(v,A)},[v]);const x=A=>{A.preventDefault(),s.update(()=>{const C=Be.Ct(i);Be.$isSwaggerNode(C)&&(E(!1),C.setSrc(u),C.setJSON(l))})},{operation:_}=jt.useMemo(()=>e?{operation:new URL(e).hash.split("/").pop()||""}:{operation:""},[e,t]);return e?Nr.jsxs(Vn.Box,{pos:"relative",mih:45,children:[Nr.jsx(Vn.LoadingOverlay,{visible:b,zIndex:1e3,overlayProps:{blur:4},loaderProps:{size:"xs"}}),Nr.jsx(xf,{url:t,onComplete:()=>{S(!1)},plugins:[IAe({operation:_}),TAe],layout:"OperationsLayout"})]}):Nr.jsxs(Vn.Popover,{width:400,position:"bottom",shadow:"md",opened:v,onChange:E,defaultOpened:!0,withinPortal:!0,trapFocus:!0,children:[Nr.jsx(Vn.Popover.Target,{children:Nr.jsx(Vn.Flex,{w:"100%",children:Nr.jsx(Be.v,{className:r,format:n,nodeKey:i,children:Nr.jsx(Be.EmptyNodeButton,{title:o("editor.swagger.add"),icon:"api",onClick:()=>E(A=>!A)})})})}),Nr.jsx(Vn.Popover.Dropdown,{"aria-hidden":!v,tabIndex:v?0:-1,children:Nr.jsx("form",{onSubmit:x,children:Nr.jsxs(Vn.Stack,{gap:16,children:[Nr.jsx(Vn.Box,{children:Nr.jsx(Vn.TextInput,{maxLength:500,placeholder:"https://api.example.com/v3/swagger.json","data-autofocus":!0,type:"url",value:l,onChange:A=>{f(A.currentTarget.value),y(!1)}})}),Nr.jsx(Vn.Box,{children:Nr.jsx(Vn.TextInput,{maxLength:500,placeholder:"https://api.swagger.io/#/user/getUser","data-autofocus":!0,type:"url",value:u,onChange:A=>{c(A.currentTarget.value),d(!1)}})}),Nr.jsx(Vn.Center,{children:Nr.jsx(Vn.Button,{w:"100%",type:"submit",disabled:!u,children:o("editor.video.insert")})})]})})})]})};exports.default=jAe;