@layers-app/editor 0.3.11 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +6 -6
- package/dist/layers.-WGsbPEO.js +14 -0
- package/dist/layers.-wDyU9sN.js +118 -0
- package/dist/layers.0FtwCmdk.js +52 -0
- package/dist/layers.0RkUYii1.js +282 -0
- package/dist/layers.1EHoXd8e.js +8 -0
- package/dist/layers.2cerO4OS.js +139 -0
- package/dist/layers.3Ekf-o8F.js +39 -0
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.5Sr9IY96.js +9 -0
- package/dist/layers.78ekkCq0.js +116 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.9QK1wiQj.js +1 -0
- package/dist/layers.9jdDI2yV.js +36 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.AEy2G-Gv.js +40 -0
- package/dist/layers.AIQle8wy.js +1 -0
- package/dist/layers.A_NuFq0j.js +2235 -0
- package/dist/layers.B0lp7rOz.js +9 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B1VZZIP7.js +21763 -0
- package/dist/layers.B2AGu32C.js +11692 -0
- package/dist/layers.B3CuqfYy.js +37 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/layers.B3xfUipV.js +2966 -0
- package/dist/layers.B4n4WelM.js +1 -0
- package/dist/layers.B4qkzU1u.js +41 -0
- package/dist/layers.B5bQ8hRv.js +70 -0
- package/dist/layers.B6YfcxJD.js +1 -0
- package/dist/layers.B7O9Ykf9.js +6 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BBXYbcFN.js +10 -0
- package/dist/layers.BBZL6QaK.js +8 -0
- package/dist/layers.BCbGsxxm.js +7 -0
- package/dist/layers.BE_DKuuD.js +790 -0
- package/dist/layers.BFlWA9Iz.js +373 -0
- package/dist/layers.BFxRJ3Li.js +1 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BLQfYqXT.js +39 -0
- package/dist/layers.BM0ksLnS.js +5 -0
- package/dist/layers.BNUbfOwd.js +42 -0
- package/dist/layers.BP3xLRrX.js +33 -0
- package/dist/layers.BQFScIff.js +9 -0
- package/dist/layers.BRu1ZkhL.js +6 -0
- package/dist/layers.BS1BSw0O.js +257 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BU5FG1HP.js +84 -0
- package/dist/layers.BUuBI6QS.js +41 -0
- package/dist/layers.BVrcjbG3.js +8 -0
- package/dist/layers.BW99L8Fl.js +39 -0
- package/dist/layers.BWj5iNQV.js +34 -0
- package/dist/layers.BYRpGhl3.js +11 -0
- package/dist/layers.BZ217a7U.js +40 -0
- package/dist/layers.Bb0NXUFw.js +39 -0
- package/dist/layers.BbCfEXyj.js +55 -0
- package/dist/layers.BblO5S7z.js +5 -0
- package/dist/layers.BbpcdAWy.js +1 -0
- package/dist/layers.Bfw0Gunv.js +9148 -0
- package/dist/layers.BgOa2ZQq.js +7 -0
- package/dist/layers.Bh0aB-u7.js +59 -0
- package/dist/layers.BiCOjicn.js +32 -0
- package/dist/layers.BiJ8hfRt.js +1510 -0
- package/dist/layers.BirPY36J.js +268 -0
- package/dist/layers.Bit9KYIY.js +32 -0
- package/dist/layers.BjFHkSyo.js +37 -0
- package/dist/{layers.DPccTctI.js → layers.BkQdsQ8U.js} +17 -17
- package/dist/layers.BkrI3eMq.js +1089 -0
- package/dist/layers.BlPVzVNM.js +6 -0
- package/dist/layers.Bn7Yja2i.js +3 -0
- package/dist/layers.Bnu-owJj.js +61 -0
- package/dist/{layers.C125HTat.js → layers.BoIttUlh.js} +1 -1
- package/dist/layers.Bp_lUbdE.js +41 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.Bs7-WFjs.js +1283 -0
- package/dist/layers.BzRvQtZ0.js +11 -0
- package/dist/layers.C00LPdpd.js +437 -0
- package/dist/layers.C0q8oCjN.js +1034 -0
- package/dist/layers.C1iEaL9k.js +37 -0
- package/dist/layers.C1w3XBPW.js +230 -0
- package/dist/layers.C4ROEdAW.js +84 -0
- package/dist/layers.C4qaO0MD.js +10 -0
- package/dist/layers.C7lIplJU.js +247 -0
- package/dist/layers.C8_lu5UH.js +23 -0
- package/dist/layers.C996Xek1.js +2479 -0
- package/dist/layers.CAcpgnDk.js +9 -0
- package/dist/layers.CAwBq0yQ.js +10 -0
- package/dist/layers.CEmVEjbM.js +7 -0
- package/dist/layers.CFa6SgS0.js +38 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CHuQjPi1.js +32 -0
- package/dist/layers.CJBYVYBK.js +8 -0
- package/dist/layers.CLOKCltZ.js +35 -0
- package/dist/layers.COAF7f8g.js +1 -0
- package/dist/layers.COaiyaHl.js +1580 -0
- package/dist/layers.COhnMbFE.js +220 -0
- package/dist/layers.CQqtbI-S.js +122 -0
- package/dist/layers.CRWsKrSv.js +40 -0
- package/dist/layers.CSW2aYxs.js +1 -0
- package/dist/layers.CSfCebqe.js +207 -0
- package/dist/layers.CTzpQJrz.js +501 -0
- package/dist/layers.CX9eMlzX.js +6 -0
- package/dist/layers.CXUGZO8g.js +40 -0
- package/dist/layers.CYHkquLL.js +1 -0
- package/dist/layers.CYJyjqCg.js +7 -0
- package/dist/layers.C_0uL0lu.js +42 -0
- package/dist/layers.CbseH42B.js +5 -0
- package/dist/layers.CdvbuuVd.js +2 -0
- package/dist/layers.CeU6SAcT.js +8 -0
- package/dist/layers.Cef-VRJs.js +37 -0
- package/dist/layers.Cg3zhLTz.js +1 -0
- package/dist/layers.CldWERA-.js +1 -0
- package/dist/layers.Cle37JNX.js +1 -0
- package/dist/layers.CmLupkS6.js +186 -0
- package/dist/layers.Cn2QpKZw.js +51 -0
- package/dist/layers.CoVavTdv.js +1126 -0
- package/dist/layers.CoZpR7_r.js +40 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.CrZ6TV4m.js +1 -0
- package/dist/layers.CrpDpBIW.js +904 -0
- package/dist/layers.Cs24L6er.js +261 -0
- package/dist/layers.CsmOgd93.js +38 -0
- package/dist/layers.Ct-zQnmI.js +32 -0
- package/dist/layers.CuAZJoX1.js +42 -0
- package/dist/{layers.BnjxHNDK.js → layers.CylfN5iO.js} +85 -85
- package/dist/layers.CyxAbBDV.js +7 -0
- package/dist/layers.Czj3PJzZ.js +10 -0
- package/dist/layers.D-1CXIBI.js +19 -0
- package/dist/layers.D-EQ5B97.js +7 -0
- package/dist/layers.D-uwIUCE.js +139 -0
- package/dist/layers.D-xK8h4X.js +8 -0
- package/dist/layers.D0rE1hbF.js +10 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D2Jbdqtj.js +7 -0
- package/dist/layers.D3Qwcfa_.js +1619 -0
- package/dist/layers.D3sICpwv.js +8 -0
- package/dist/layers.D4DB55K_.js +2 -0
- package/dist/layers.D4RhFsg6.js +10 -0
- package/dist/layers.D4fGb2cV.js +1272 -0
- package/dist/layers.D4v0XyUf.js +1 -0
- package/dist/layers.D6SbX5Az.js +423 -0
- package/dist/layers.D6dwFhht.js +9 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.D87gRG-J.js +1088 -0
- package/dist/layers.D8fb1iDb.js +10 -0
- package/dist/layers.D9JK3npg.js +41 -0
- package/dist/layers.DAvEslJc.js +33 -0
- package/dist/layers.DBOFmWi_.js +1359 -0
- package/dist/layers.DCAo6G5D.js +40 -0
- package/dist/layers.DGWfd9sT.js +5 -0
- package/dist/layers.DIc9Pn5-.js +96 -0
- package/dist/layers.DJVg69Yo.js +803 -0
- package/dist/layers.DLBD3WBx.js +11 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DPhgksD-.js +41 -0
- package/dist/layers.DPnpGXQm.js +2 -0
- package/dist/layers.DQ8aCG7v.js +769 -0
- package/dist/layers.DR14S1m9.js +161 -0
- package/dist/layers.DRFq8PR7.js +39 -0
- package/dist/layers.DRYGpdtc.js +48146 -0
- package/dist/layers.DSd23vw_.js +1 -0
- package/dist/layers.DSl3dgu7.js +7 -0
- package/dist/layers.DUYA7tE_.js +10 -0
- package/dist/layers.DVgohoWC.js +11 -0
- package/dist/layers.D_3fuwmS.js +1 -0
- package/dist/layers.D_ILz54C.js +41 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.Dd-Mdjt8.js +40 -0
- package/dist/layers.Dd9WE-Kq.js +1265 -0
- package/dist/layers.DdjaY7yq.js +9 -0
- package/dist/layers.DgJemaOm.js +65 -0
- package/dist/layers.Dgm8-XFN.js +960 -0
- package/dist/layers.DgwJ1eL7.js +13 -0
- package/dist/layers.DhZsCIrr.js +425 -0
- package/dist/layers.DipbuRcs.js +36 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.DjZdvQQY.js +1 -0
- package/dist/layers.DkyFv1Ys.js +35 -0
- package/dist/layers.Dmf-FkA-.js +4 -0
- package/dist/layers.DmgkuDwj.js +9 -0
- package/dist/layers.Dmrtdk6A.js +1 -0
- package/dist/layers.Dn02LanZ.js +931 -0
- package/dist/layers.Do3LJDis.js +202 -0
- package/dist/layers.DoI-3ssc.js +802 -0
- package/dist/layers.DobBKdZ6.js +32 -0
- package/dist/layers.DpzPbocR.js +39 -0
- package/dist/layers.Dq0wRjbC.js +35 -0
- package/dist/layers.Dqsk7GNe.js +10 -0
- package/dist/layers.DrTVlGxj.js +1 -0
- package/dist/layers.DukBaqf8.js +1 -0
- package/dist/layers.DvxaikrZ.js +10 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.DygycO7X.js +39 -0
- package/dist/{layers.VK3NB7Nd.js → layers.DzUJmmvD.js} +1 -1
- package/dist/layers.FoT1zSFE.js +42 -0
- package/dist/layers.HsplLW7l.js +4 -0
- package/dist/{layers.YZkXZvVS.js → layers.HstOwREP.js} +11432 -10897
- package/dist/layers.IKdQaUN6.js +11 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.K3yYYJdK.js +40 -0
- package/dist/layers.L1UaldnR.js +36 -0
- package/dist/layers.Lz059Um8.js +41 -0
- package/dist/layers.M6o7NygO.js +6 -0
- package/dist/layers.MLq12lxF.js +32 -0
- package/dist/layers.MczyPMMk.js +6 -0
- package/dist/layers.OGhIzIND.js +36 -0
- package/dist/layers.OH8pkzdf.js +1 -0
- package/dist/layers.OUHm0dZY.js +40 -0
- package/dist/layers.OeuRpLZr.js +41 -0
- package/dist/layers.PsWF_Poj.js +8 -0
- package/dist/layers.R7Qt9hQa.js +1 -0
- package/dist/layers.SwZPMavM.js +7 -0
- package/dist/layers.UHZ7LEG5.js +44 -0
- package/dist/layers.VAQxBGRz.js +42 -0
- package/dist/layers.WPo01EJ5.js +4 -0
- package/dist/layers.XJChT8Le.js +9 -0
- package/dist/layers.XMeRR-JR.js +39 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/layers.bSw_jQ5U.js +40 -0
- package/dist/layers.bn1dbtN4.js +160 -0
- package/dist/layers.cdGjFrMq.js +9 -0
- package/dist/layers.cu7eSI3X.js +4 -0
- package/dist/layers.iBT5g_cH.js +320 -0
- package/dist/layers.igIdIxGe.js +9 -0
- package/dist/layers.j1hLqMc8.js +38 -0
- package/dist/layers.jrSryxFl.js +39 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.oQqeIYLp.js +21938 -0
- package/dist/layers.raic7pCl.js +793 -0
- package/dist/layers.srlypw1l.js +8 -0
- package/dist/layers.tqtFgs0l.js +1 -0
- package/dist/layers.uwhbxtz3.js +8 -0
- package/dist/layers.weZ4wJXB.js +5 -0
- package/dist/layers.wf8u33re.js +1 -0
- package/package.json +22 -15
- package/dist/layers.Cjs5EBWM.js +0 -343
- package/dist/layers.DZ8DrrVn.js +0 -53491
- package/dist/layers.QVaGPbs3.js +0 -161
package/dist/layers.Cjs5EBWM.js
DELETED
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
"use strict";var iH=Object.defineProperty;var nI=e=>{throw TypeError(e)};var sH=(e,t,r)=>t in e?iH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var X=(e,t,r)=>sH(e,typeof t!="symbol"?t+"":t,r),iI=(e,t,r)=>t.has(e)||nI("Cannot "+r);var hr=(e,t,r)=>(iI(e,t,"read from private field"),r?r.call(e):t.get(e)),As=(e,t,r)=>t.has(e)?nI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Io=(e,t,r,n)=>(iI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tr=require("react/jsx-runtime"),Lt=require("react"),aH=require("react-i18next"),We=require("./layers.QVaGPbs3.js"),Jn=require("@mantine/core"),oH=require("react-dom"),uH=require("@layers-app/shared");function E6(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 UO(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 ht=E6(Lt),cH=E6(oH);var Hf={exports:{}},Kf={exports:{}},zt={};/** @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 sI;function lH(){if(sI)return zt;sI=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?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case u:case c:case n:case s:case i:case f:return E;default:switch(E=E&&E.$$typeof,E){case o:case l:case g:case d:case a:return E;default:return A}}case r:return A}}}function w(E){return S(E)===c}return zt.AsyncMode=u,zt.ConcurrentMode=c,zt.ContextConsumer=o,zt.ContextProvider=a,zt.Element=t,zt.ForwardRef=l,zt.Fragment=n,zt.Lazy=g,zt.Memo=d,zt.Portal=r,zt.Profiler=s,zt.StrictMode=i,zt.Suspense=f,zt.isAsyncMode=function(E){return w(E)||S(E)===u},zt.isConcurrentMode=w,zt.isContextConsumer=function(E){return S(E)===o},zt.isContextProvider=function(E){return S(E)===a},zt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},zt.isForwardRef=function(E){return S(E)===l},zt.isFragment=function(E){return S(E)===n},zt.isLazy=function(E){return S(E)===g},zt.isMemo=function(E){return S(E)===d},zt.isPortal=function(E){return S(E)===r},zt.isProfiler=function(E){return S(E)===s},zt.isStrictMode=function(E){return S(E)===i},zt.isSuspense=function(E){return S(E)===f},zt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===c||E===s||E===i||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===d||E.$$typeof===a||E.$$typeof===o||E.$$typeof===l||E.$$typeof===v||E.$$typeof===_||E.$$typeof===b||E.$$typeof===y)},zt.typeOf=S,zt}var Wt={};/** @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 aI;function fH(){return aI||(aI=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?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(he){return typeof he=="string"||typeof he=="function"||he===n||he===c||he===s||he===i||he===f||he===h||typeof he=="object"&&he!==null&&(he.$$typeof===g||he.$$typeof===d||he.$$typeof===a||he.$$typeof===o||he.$$typeof===l||he.$$typeof===v||he.$$typeof===_||he.$$typeof===b||he.$$typeof===y)}function w(he){if(typeof he=="object"&&he!==null){var je=he.$$typeof;switch(je){case t:var Be=he.type;switch(Be){case u:case c:case n:case s:case i:case f:return Be;default:var _e=Be&&Be.$$typeof;switch(_e){case o:case l:case g:case d:case a:return _e;default:return je}}case r:return je}}}var E=u,A=c,R=o,I=a,O=t,D=l,P=n,F=g,M=d,G=r,ee=s,H=i,Q=f,re=!1;function ne(he){return re||(re=!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.")),B(he)||w(he)===u}function B(he){return w(he)===c}function J(he){return w(he)===o}function ie(he){return w(he)===a}function oe(he){return typeof he=="object"&&he!==null&&he.$$typeof===t}function ce(he){return w(he)===l}function te(he){return w(he)===n}function z(he){return w(he)===g}function V(he){return w(he)===d}function fe(he){return w(he)===r}function me(he){return w(he)===s}function Ce(he){return w(he)===i}function Ne(he){return w(he)===f}Wt.AsyncMode=E,Wt.ConcurrentMode=A,Wt.ContextConsumer=R,Wt.ContextProvider=I,Wt.Element=O,Wt.ForwardRef=D,Wt.Fragment=P,Wt.Lazy=F,Wt.Memo=M,Wt.Portal=G,Wt.Profiler=ee,Wt.StrictMode=H,Wt.Suspense=Q,Wt.isAsyncMode=ne,Wt.isConcurrentMode=B,Wt.isContextConsumer=J,Wt.isContextProvider=ie,Wt.isElement=oe,Wt.isForwardRef=ce,Wt.isFragment=te,Wt.isLazy=z,Wt.isMemo=V,Wt.isPortal=fe,Wt.isProfiler=me,Wt.isStrictMode=Ce,Wt.isSuspense=Ne,Wt.isValidElementType=S,Wt.typeOf=w})()),Wt}var oI;function S6(){return oI||(oI=1,process.env.NODE_ENV==="production"?Kf.exports=lH():Kf.exports=fH()),Kf.exports}/*
|
|
16
|
-
object-assign
|
|
17
|
-
(c) Sindre Sorhus
|
|
18
|
-
@license MIT
|
|
19
|
-
*/var ug,uI;function pH(){if(uI)return ug;uI=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 ug=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},ug}var cg,cI;function VO(){if(cI)return cg;cI=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cg=e,cg}var lg,lI;function w6(){return lI||(lI=1,lg=Function.call.bind(Object.prototype.hasOwnProperty)),lg}var fg,fI;function dH(){if(fI)return fg;fI=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=VO(),r={},n=w6();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={})},fg=i,fg}var pg,pI;function hH(){if(pI)return pg;pI=1;var e=S6(),t=pH(),r=VO(),n=w6(),i=dH(),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 pg=function(o,u){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(B){var J=B&&(c&&B[c]||B[l]);if(typeof J=="function")return J}var h="<<anonymous>>",d={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(),arrayOf:S,element:w(),elementType:E(),instanceOf:A,node:D(),objectOf:I,oneOf:R,oneOfType:O,shape:F,exact:M};function g(B,J){return B===J?B!==0||1/B===1/J:B!==B&&J!==J}function y(B,J){this.message=B,this.data=J&&typeof J=="object"?J:{},this.stack=""}y.prototype=Error.prototype;function v(B){if(process.env.NODE_ENV!=="production")var J={},ie=0;function oe(te,z,V,fe,me,Ce,Ne){if(fe=fe||h,Ce=Ce||V,Ne!==r){if(u){var he=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 he.name="Invariant Violation",he}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var je=fe+":"+V;!J[je]&&ie<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+fe+"`. 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[je]=!0,ie++)}}return z[V]==null?te?z[V]===null?new y("The "+me+" `"+Ce+"` is marked as required "+("in `"+fe+"`, but its value is `null`.")):new y("The "+me+" `"+Ce+"` is marked as required in "+("`"+fe+"`, but its value is `undefined`.")):null:B(z,V,fe,me,Ce)}var ce=oe.bind(null,!1);return ce.isRequired=oe.bind(null,!0),ce}function _(B){function J(ie,oe,ce,te,z,V){var fe=ie[oe],me=H(fe);if(me!==B){var Ce=Q(fe);return new y("Invalid "+te+" `"+z+"` of type "+("`"+Ce+"` supplied to `"+ce+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return v(J)}function b(){return v(a)}function S(B){function J(ie,oe,ce,te,z){if(typeof B!="function")return new y("Property `"+z+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var V=ie[oe];if(!Array.isArray(V)){var fe=H(V);return new y("Invalid "+te+" `"+z+"` of type "+("`"+fe+"` supplied to `"+ce+"`, expected an array."))}for(var me=0;me<V.length;me++){var Ce=B(V,me,ce,te,z+"["+me+"]",r);if(Ce instanceof Error)return Ce}return null}return v(J)}function w(){function B(J,ie,oe,ce,te){var z=J[ie];if(!o(z)){var V=H(z);return new y("Invalid "+ce+" `"+te+"` of type "+("`"+V+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return v(B)}function E(){function B(J,ie,oe,ce,te){var z=J[ie];if(!e.isValidElementType(z)){var V=H(z);return new y("Invalid "+ce+" `"+te+"` of type "+("`"+V+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return v(B)}function A(B){function J(ie,oe,ce,te,z){if(!(ie[oe]instanceof B)){var V=B.name||h,fe=ne(ie[oe]);return new y("Invalid "+te+" `"+z+"` of type "+("`"+fe+"` supplied to `"+ce+"`, expected ")+("instance of `"+V+"`."))}return null}return v(J)}function R(B){if(!Array.isArray(B))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(ie,oe,ce,te,z){for(var V=ie[oe],fe=0;fe<B.length;fe++)if(g(V,B[fe]))return null;var me=JSON.stringify(B,function(Ne,he){var je=Q(he);return je==="symbol"?String(he):he});return new y("Invalid "+te+" `"+z+"` of value `"+String(V)+"` "+("supplied to `"+ce+"`, expected one of "+me+"."))}return v(J)}function I(B){function J(ie,oe,ce,te,z){if(typeof B!="function")return new y("Property `"+z+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var V=ie[oe],fe=H(V);if(fe!=="object")return new y("Invalid "+te+" `"+z+"` of type "+("`"+fe+"` supplied to `"+ce+"`, expected an object."));for(var me in V)if(n(V,me)){var Ce=B(V,me,ce,te,z+"."+me,r);if(Ce instanceof Error)return Ce}return null}return v(J)}function O(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var J=0;J<B.length;J++){var ie=B[J];if(typeof ie!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ie)+" at index "+J+"."),a}function oe(ce,te,z,V,fe){for(var me=[],Ce=0;Ce<B.length;Ce++){var Ne=B[Ce],he=Ne(ce,te,z,V,fe,r);if(he==null)return null;he.data&&n(he.data,"expectedType")&&me.push(he.data.expectedType)}var je=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new y("Invalid "+V+" `"+fe+"` supplied to "+("`"+z+"`"+je+"."))}return v(oe)}function D(){function B(J,ie,oe,ce,te){return G(J[ie])?null:new y("Invalid "+ce+" `"+te+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return v(B)}function P(B,J,ie,oe,ce){return new y((B||"React class")+": "+J+" type `"+ie+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function F(B){function J(ie,oe,ce,te,z){var V=ie[oe],fe=H(V);if(fe!=="object")return new y("Invalid "+te+" `"+z+"` of type `"+fe+"` "+("supplied to `"+ce+"`, expected `object`."));for(var me in B){var Ce=B[me];if(typeof Ce!="function")return P(ce,te,z,me,Q(Ce));var Ne=Ce(V,me,ce,te,z+"."+me,r);if(Ne)return Ne}return null}return v(J)}function M(B){function J(ie,oe,ce,te,z){var V=ie[oe],fe=H(V);if(fe!=="object")return new y("Invalid "+te+" `"+z+"` of type `"+fe+"` "+("supplied to `"+ce+"`, expected `object`."));var me=t({},ie[oe],B);for(var Ce in me){var Ne=B[Ce];if(n(B,Ce)&&typeof Ne!="function")return P(ce,te,z,Ce,Q(Ne));if(!Ne)return new y("Invalid "+te+" `"+z+"` key `"+Ce+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(ie[oe],null," ")+`
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var he=Ne(V,Ce,ce,te,z+"."+Ce,r);if(he)return he}return null}return v(J)}function G(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(G);if(B===null||o(B))return!0;var J=f(B);if(J){var ie=J.call(B),oe;if(J!==B.entries){for(;!(oe=ie.next()).done;)if(!G(oe.value))return!1}else for(;!(oe=ie.next()).done;){var ce=oe.value;if(ce&&!G(ce[1]))return!1}}else return!1;return!0;default:return!1}}function ee(B,J){return B==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function H(B){var J=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":ee(J,B)?"symbol":J}function Q(B){if(typeof B>"u"||B===null)return""+B;var J=H(B);if(J==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return J}function re(B){var J=Q(B);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function ne(B){return!B.constructor||!B.constructor.name?h:B.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},pg}var dg,dI;function mH(){if(dI)return dg;dI=1;var e=VO();function t(){}function r(){}return r.resetWarningCache=t,dg=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},dg}var hI;function gH(){if(hI)return Hf.exports;if(hI=1,process.env.NODE_ENV!=="production"){var e=S6(),t=!0;Hf.exports=hH()(e.isElement,t)}else Hf.exports=mH()();return Hf.exports}var yH=gH();const vH=We.getDefaultExportFromCjs(yH);var Gf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var mI;function x6(){return mI||(mI=1,Gf.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)},Gf.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}),Gf}var A6=x6();const bH=We.getDefaultExportFromCjs(A6),_H=UO({__proto__:null,default:bH},[A6]);var Yf={exports:{}},hg={},Ju={},gI;function O6(){if(gI)return Ju;gI=1,Ju.byteLength=o,Ju.toByteArray=c,Ju.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],_=y[1],b=new r(u(d,v,_)),S=0,w=_>0?v-4:v,E;for(E=0;E<w;E+=4)g=t[d.charCodeAt(E)]<<18|t[d.charCodeAt(E+1)]<<12|t[d.charCodeAt(E+2)]<<6|t[d.charCodeAt(E+3)],b[S++]=g>>16&255,b[S++]=g>>8&255,b[S++]=g&255;return _===2&&(g=t[d.charCodeAt(E)]<<2|t[d.charCodeAt(E+1)]>>4,b[S++]=g&255),_===1&&(g=t[d.charCodeAt(E)]<<10|t[d.charCodeAt(E+1)]<<4|t[d.charCodeAt(E+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,_=[],b=g;b<y;b+=3)v=(d[b]<<16&16711680)+(d[b+1]<<8&65280)+(d[b+2]&255),_.push(l(v));return _.join("")}function h(d){for(var g,y=d.length,v=y%3,_=[],b=16383,S=0,w=y-v;S<w;S+=b)_.push(f(d,S,S+b>w?w:S+b));return v===1?(g=d[y-1],_.push(e[g>>2]+e[g<<4&63]+"==")):v===2&&(g=(d[y-2]<<8)+d[y-1],_.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),_.join("")}return Ju}/*!
|
|
21
|
-
* The buffer module from node.js, for the browser.
|
|
22
|
-
*
|
|
23
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
24
|
-
* @license MIT
|
|
25
|
-
*/var yI;function EH(){return yI||(yI=1,(function(e){const t=O6(),r=x6(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.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.");function s(){try{const $=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf($,C),$.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a($){if($>i)throw new RangeError('The value "'+$+'" is invalid for option "size"');const C=new Uint8Array($);return Object.setPrototypeOf(C,o.prototype),C}function o($,C,j){if(typeof $=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f($)}return u($,C,j)}o.poolSize=8192;function u($,C,j){if(typeof $=="string")return h($,C);if(ArrayBuffer.isView($))return g($);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(se($,ArrayBuffer)||$&&se($.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(se($,SharedArrayBuffer)||$&&se($.buffer,SharedArrayBuffer)))return y($,C,j);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Z=$.valueOf&&$.valueOf();if(Z!=null&&Z!==$)return o.from(Z,C,j);const pe=v($);if(pe)return pe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return o.from($[Symbol.toPrimitive]("string"),C,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}o.from=function($,C,j){return u($,C,j)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c($){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 l($,C,j){return c($),$<=0?a($):C!==void 0?typeof j=="string"?a($).fill(C,j):a($).fill(C):a($)}o.alloc=function($,C,j){return l($,C,j)};function f($){return c($),a($<0?0:_($)|0)}o.allocUnsafe=function($){return f($)},o.allocUnsafeSlow=function($){return f($)};function h($,C){if((typeof C!="string"||C==="")&&(C="utf8"),!o.isEncoding(C))throw new TypeError("Unknown encoding: "+C);const j=S($,C)|0;let Z=a(j);const pe=Z.write($,C);return pe!==j&&(Z=Z.slice(0,pe)),Z}function d($){const C=$.length<0?0:_($.length)|0,j=a(C);for(let Z=0;Z<C;Z+=1)j[Z]=$[Z]&255;return j}function g($){if(se($,Uint8Array)){const C=new Uint8Array($);return y(C.buffer,C.byteOffset,C.byteLength)}return d($)}function y($,C,j){if(C<0||$.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<C+(j||0))throw new RangeError('"length" is outside of buffer bounds');let Z;return C===void 0&&j===void 0?Z=new Uint8Array($):j===void 0?Z=new Uint8Array($,C):Z=new Uint8Array($,C,j),Object.setPrototypeOf(Z,o.prototype),Z}function v($){if(o.isBuffer($)){const C=_($.length)|0,j=a(C);return j.length===0||$.copy(j,0,0,C),j}if($.length!==void 0)return typeof $.length!="number"||ue($.length)?a(0):d($);if($.type==="Buffer"&&Array.isArray($.data))return d($.data)}function _($){if($>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return $|0}function b($){return+$!=$&&($=0),o.alloc(+$)}o.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==o.prototype},o.compare=function(C,j){if(se(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),se(j,Uint8Array)&&(j=o.from(j,j.offset,j.byteLength)),!o.isBuffer(C)||!o.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===j)return 0;let Z=C.length,pe=j.length;for(let be=0,Oe=Math.min(Z,pe);be<Oe;++be)if(C[be]!==j[be]){Z=C[be],pe=j[be];break}return Z<pe?-1:pe<Z?1:0},o.isEncoding=function(C){switch(String(C).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}},o.concat=function(C,j){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return o.alloc(0);let Z;if(j===void 0)for(j=0,Z=0;Z<C.length;++Z)j+=C[Z].length;const pe=o.allocUnsafe(j);let be=0;for(Z=0;Z<C.length;++Z){let Oe=C[Z];if(se(Oe,Uint8Array))be+Oe.length>pe.length?(o.isBuffer(Oe)||(Oe=o.from(Oe)),Oe.copy(pe,be)):Uint8Array.prototype.set.call(pe,Oe,be);else if(o.isBuffer(Oe))Oe.copy(pe,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=Oe.length}return pe};function S($,C){if(o.isBuffer($))return $.length;if(ArrayBuffer.isView($)||se($,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,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&j===0)return 0;let pe=!1;for(;;)switch(C){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 j*2;case"hex":return j>>>1;case"base64":return k($).length;default:if(pe)return Z?-1:Ae($).length;C=(""+C).toLowerCase(),pe=!0}}o.byteLength=S;function w($,C,j){let Z=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,C>>>=0,j<=C))return"";for($||($="utf8");;)switch($){case"hex":return ne(this,C,j);case"utf8":case"utf-8":return G(this,C,j);case"ascii":return Q(this,C,j);case"latin1":case"binary":return re(this,C,j);case"base64":return M(this,C,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,C,j);default:if(Z)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),Z=!0}}o.prototype._isBuffer=!0;function E($,C,j){const Z=$[C];$[C]=$[j],$[j]=Z}o.prototype.swap16=function(){const C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<C;j+=2)E(this,j,j+1);return this},o.prototype.swap32=function(){const C=this.length;if(C%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<C;j+=4)E(this,j,j+3),E(this,j+1,j+2);return this},o.prototype.swap64=function(){const C=this.length;if(C%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<C;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},o.prototype.toString=function(){const C=this.length;return C===0?"":arguments.length===0?G(this,0,C):w.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(C){if(!o.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:o.compare(this,C)===0},o.prototype.inspect=function(){let C="";const j=e.INSPECT_MAX_BYTES;return C=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(C+=" ... "),"<Buffer "+C+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(C,j,Z,pe,be){if(se(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),!o.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(j===void 0&&(j=0),Z===void 0&&(Z=C?C.length:0),pe===void 0&&(pe=0),be===void 0&&(be=this.length),j<0||Z>C.length||pe<0||be>this.length)throw new RangeError("out of range index");if(pe>=be&&j>=Z)return 0;if(pe>=be)return-1;if(j>=Z)return 1;if(j>>>=0,Z>>>=0,pe>>>=0,be>>>=0,this===C)return 0;let Oe=be-pe,et=Z-j;const ot=Math.min(Oe,et),Mt=this.slice(pe,be),pt=C.slice(j,Z);for(let de=0;de<ot;++de)if(Mt[de]!==pt[de]){Oe=Mt[de],et=pt[de];break}return Oe<et?-1:et<Oe?1:0};function A($,C,j,Z,pe){if($.length===0)return-1;if(typeof j=="string"?(Z=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,ue(j)&&(j=pe?0:$.length-1),j<0&&(j=$.length+j),j>=$.length){if(pe)return-1;j=$.length-1}else if(j<0)if(pe)j=0;else return-1;if(typeof C=="string"&&(C=o.from(C,Z)),o.isBuffer(C))return C.length===0?-1:R($,C,j,Z,pe);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?pe?Uint8Array.prototype.indexOf.call($,C,j):Uint8Array.prototype.lastIndexOf.call($,C,j):R($,[C],j,Z,pe);throw new TypeError("val must be string, number or Buffer")}function R($,C,j,Z,pe){let be=1,Oe=$.length,et=C.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if($.length<2||C.length<2)return-1;be=2,Oe/=2,et/=2,j/=2}function ot(pt,de){return be===1?pt[de]:pt.readUInt16BE(de*be)}let Mt;if(pe){let pt=-1;for(Mt=j;Mt<Oe;Mt++)if(ot($,Mt)===ot(C,pt===-1?0:Mt-pt)){if(pt===-1&&(pt=Mt),Mt-pt+1===et)return pt*be}else pt!==-1&&(Mt-=Mt-pt),pt=-1}else for(j+et>Oe&&(j=Oe-et),Mt=j;Mt>=0;Mt--){let pt=!0;for(let de=0;de<et;de++)if(ot($,Mt+de)!==ot(C,de)){pt=!1;break}if(pt)return Mt}return-1}o.prototype.includes=function(C,j,Z){return this.indexOf(C,j,Z)!==-1},o.prototype.indexOf=function(C,j,Z){return A(this,C,j,Z,!0)},o.prototype.lastIndexOf=function(C,j,Z){return A(this,C,j,Z,!1)};function I($,C,j,Z){j=Number(j)||0;const pe=$.length-j;Z?(Z=Number(Z),Z>pe&&(Z=pe)):Z=pe;const be=C.length;Z>be/2&&(Z=be/2);let Oe;for(Oe=0;Oe<Z;++Oe){const et=parseInt(C.substr(Oe*2,2),16);if(ue(et))return Oe;$[j+Oe]=et}return Oe}function O($,C,j,Z){return W(Ae(C,$.length-j),$,j,Z)}function D($,C,j,Z){return W(U(C),$,j,Z)}function P($,C,j,Z){return W(k(C),$,j,Z)}function F($,C,j,Z){return W(T(C,$.length-j),$,j,Z)}o.prototype.write=function(C,j,Z,pe){if(j===void 0)pe="utf8",Z=this.length,j=0;else if(Z===void 0&&typeof j=="string")pe=j,Z=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(Z)?(Z=Z>>>0,pe===void 0&&(pe="utf8")):(pe=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-j;if((Z===void 0||Z>be)&&(Z=be),C.length>0&&(Z<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");let Oe=!1;for(;;)switch(pe){case"hex":return I(this,C,j,Z);case"utf8":case"utf-8":return O(this,C,j,Z);case"ascii":case"latin1":case"binary":return D(this,C,j,Z);case"base64":return P(this,C,j,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,C,j,Z);default:if(Oe)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),Oe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M($,C,j){return C===0&&j===$.length?t.fromByteArray($):t.fromByteArray($.slice(C,j))}function G($,C,j){j=Math.min($.length,j);const Z=[];let pe=C;for(;pe<j;){const be=$[pe];let Oe=null,et=be>239?4:be>223?3:be>191?2:1;if(pe+et<=j){let ot,Mt,pt,de;switch(et){case 1:be<128&&(Oe=be);break;case 2:ot=$[pe+1],(ot&192)===128&&(de=(be&31)<<6|ot&63,de>127&&(Oe=de));break;case 3:ot=$[pe+1],Mt=$[pe+2],(ot&192)===128&&(Mt&192)===128&&(de=(be&15)<<12|(ot&63)<<6|Mt&63,de>2047&&(de<55296||de>57343)&&(Oe=de));break;case 4:ot=$[pe+1],Mt=$[pe+2],pt=$[pe+3],(ot&192)===128&&(Mt&192)===128&&(pt&192)===128&&(de=(be&15)<<18|(ot&63)<<12|(Mt&63)<<6|pt&63,de>65535&&de<1114112&&(Oe=de))}}Oe===null?(Oe=65533,et=1):Oe>65535&&(Oe-=65536,Z.push(Oe>>>10&1023|55296),Oe=56320|Oe&1023),Z.push(Oe),pe+=et}return H(Z)}const ee=4096;function H($){const C=$.length;if(C<=ee)return String.fromCharCode.apply(String,$);let j="",Z=0;for(;Z<C;)j+=String.fromCharCode.apply(String,$.slice(Z,Z+=ee));return j}function Q($,C,j){let Z="";j=Math.min($.length,j);for(let pe=C;pe<j;++pe)Z+=String.fromCharCode($[pe]&127);return Z}function re($,C,j){let Z="";j=Math.min($.length,j);for(let pe=C;pe<j;++pe)Z+=String.fromCharCode($[pe]);return Z}function ne($,C,j){const Z=$.length;(!C||C<0)&&(C=0),(!j||j<0||j>Z)&&(j=Z);let pe="";for(let be=C;be<j;++be)pe+=ge[$[be]];return pe}function B($,C,j){const Z=$.slice(C,j);let pe="";for(let be=0;be<Z.length-1;be+=2)pe+=String.fromCharCode(Z[be]+Z[be+1]*256);return pe}o.prototype.slice=function(C,j){const Z=this.length;C=~~C,j=j===void 0?Z:~~j,C<0?(C+=Z,C<0&&(C=0)):C>Z&&(C=Z),j<0?(j+=Z,j<0&&(j=0)):j>Z&&(j=Z),j<C&&(j=C);const pe=this.subarray(C,j);return Object.setPrototypeOf(pe,o.prototype),pe};function J($,C,j){if($%1!==0||$<0)throw new RangeError("offset is not uint");if($+C>j)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||J(C,j,this.length);let pe=this[C],be=1,Oe=0;for(;++Oe<j&&(be*=256);)pe+=this[C+Oe]*be;return pe},o.prototype.readUintBE=o.prototype.readUIntBE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||J(C,j,this.length);let pe=this[C+--j],be=1;for(;j>0&&(be*=256);)pe+=this[C+--j]*be;return pe},o.prototype.readUint8=o.prototype.readUInt8=function(C,j){return C=C>>>0,j||J(C,1,this.length),this[C]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(C,j){return C=C>>>0,j||J(C,2,this.length),this[C]|this[C+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(C,j){return C=C>>>0,j||J(C,2,this.length),this[C]<<8|this[C+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(C,j){return C=C>>>0,j||J(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(C,j){return C=C>>>0,j||J(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},o.prototype.readBigUInt64LE=Me(function(C){C=C>>>0,je(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Be(C,this.length-8);const pe=j+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24,be=this[++C]+this[++C]*2**8+this[++C]*2**16+Z*2**24;return BigInt(pe)+(BigInt(be)<<BigInt(32))}),o.prototype.readBigUInt64BE=Me(function(C){C=C>>>0,je(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Be(C,this.length-8);const pe=j*2**24+this[++C]*2**16+this[++C]*2**8+this[++C],be=this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+Z;return(BigInt(pe)<<BigInt(32))+BigInt(be)}),o.prototype.readIntLE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||J(C,j,this.length);let pe=this[C],be=1,Oe=0;for(;++Oe<j&&(be*=256);)pe+=this[C+Oe]*be;return be*=128,pe>=be&&(pe-=Math.pow(2,8*j)),pe},o.prototype.readIntBE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||J(C,j,this.length);let pe=j,be=1,Oe=this[C+--pe];for(;pe>0&&(be*=256);)Oe+=this[C+--pe]*be;return be*=128,Oe>=be&&(Oe-=Math.pow(2,8*j)),Oe},o.prototype.readInt8=function(C,j){return C=C>>>0,j||J(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},o.prototype.readInt16LE=function(C,j){C=C>>>0,j||J(C,2,this.length);const Z=this[C]|this[C+1]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt16BE=function(C,j){C=C>>>0,j||J(C,2,this.length);const Z=this[C+1]|this[C]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt32LE=function(C,j){return C=C>>>0,j||J(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},o.prototype.readInt32BE=function(C,j){return C=C>>>0,j||J(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},o.prototype.readBigInt64LE=Me(function(C){C=C>>>0,je(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Be(C,this.length-8);const pe=this[C+4]+this[C+5]*2**8+this[C+6]*2**16+(Z<<24);return(BigInt(pe)<<BigInt(32))+BigInt(j+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24)}),o.prototype.readBigInt64BE=Me(function(C){C=C>>>0,je(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Be(C,this.length-8);const pe=(j<<24)+this[++C]*2**16+this[++C]*2**8+this[++C];return(BigInt(pe)<<BigInt(32))+BigInt(this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+Z)}),o.prototype.readFloatLE=function(C,j){return C=C>>>0,j||J(C,4,this.length),r.read(this,C,!0,23,4)},o.prototype.readFloatBE=function(C,j){return C=C>>>0,j||J(C,4,this.length),r.read(this,C,!1,23,4)},o.prototype.readDoubleLE=function(C,j){return C=C>>>0,j||J(C,8,this.length),r.read(this,C,!0,52,8)},o.prototype.readDoubleBE=function(C,j){return C=C>>>0,j||J(C,8,this.length),r.read(this,C,!1,52,8)};function ie($,C,j,Z,pe,be){if(!o.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>pe||C<be)throw new RangeError('"value" argument is out of bounds');if(j+Z>$.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(C,j,Z,pe){if(C=+C,j=j>>>0,Z=Z>>>0,!pe){const et=Math.pow(2,8*Z)-1;ie(this,C,j,Z,et,0)}let be=1,Oe=0;for(this[j]=C&255;++Oe<Z&&(be*=256);)this[j+Oe]=C/be&255;return j+Z},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(C,j,Z,pe){if(C=+C,j=j>>>0,Z=Z>>>0,!pe){const et=Math.pow(2,8*Z)-1;ie(this,C,j,Z,et,0)}let be=Z-1,Oe=1;for(this[j+be]=C&255;--be>=0&&(Oe*=256);)this[j+be]=C/Oe&255;return j+Z},o.prototype.writeUint8=o.prototype.writeUInt8=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,1,255,0),this[j]=C&255,j+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,65535,0),this[j]=C&255,this[j+1]=C>>>8,j+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,65535,0),this[j]=C>>>8,this[j+1]=C&255,j+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,4294967295,0),this[j+3]=C>>>24,this[j+2]=C>>>16,this[j+1]=C>>>8,this[j]=C&255,j+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,4294967295,0),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=C&255,j+4};function oe($,C,j,Z,pe){he(C,Z,pe,$,j,7);let be=Number(C&BigInt(4294967295));$[j++]=be,be=be>>8,$[j++]=be,be=be>>8,$[j++]=be,be=be>>8,$[j++]=be;let Oe=Number(C>>BigInt(32)&BigInt(4294967295));return $[j++]=Oe,Oe=Oe>>8,$[j++]=Oe,Oe=Oe>>8,$[j++]=Oe,Oe=Oe>>8,$[j++]=Oe,j}function ce($,C,j,Z,pe){he(C,Z,pe,$,j,7);let be=Number(C&BigInt(4294967295));$[j+7]=be,be=be>>8,$[j+6]=be,be=be>>8,$[j+5]=be,be=be>>8,$[j+4]=be;let Oe=Number(C>>BigInt(32)&BigInt(4294967295));return $[j+3]=Oe,Oe=Oe>>8,$[j+2]=Oe,Oe=Oe>>8,$[j+1]=Oe,Oe=Oe>>8,$[j]=Oe,j+8}o.prototype.writeBigUInt64LE=Me(function(C,j=0){return oe(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Me(function(C,j=0){return ce(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(C,j,Z,pe){if(C=+C,j=j>>>0,!pe){const ot=Math.pow(2,8*Z-1);ie(this,C,j,Z,ot-1,-ot)}let be=0,Oe=1,et=0;for(this[j]=C&255;++be<Z&&(Oe*=256);)C<0&&et===0&&this[j+be-1]!==0&&(et=1),this[j+be]=(C/Oe>>0)-et&255;return j+Z},o.prototype.writeIntBE=function(C,j,Z,pe){if(C=+C,j=j>>>0,!pe){const ot=Math.pow(2,8*Z-1);ie(this,C,j,Z,ot-1,-ot)}let be=Z-1,Oe=1,et=0;for(this[j+be]=C&255;--be>=0&&(Oe*=256);)C<0&&et===0&&this[j+be+1]!==0&&(et=1),this[j+be]=(C/Oe>>0)-et&255;return j+Z},o.prototype.writeInt8=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,1,127,-128),C<0&&(C=255+C+1),this[j]=C&255,j+1},o.prototype.writeInt16LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,32767,-32768),this[j]=C&255,this[j+1]=C>>>8,j+2},o.prototype.writeInt16BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,32767,-32768),this[j]=C>>>8,this[j+1]=C&255,j+2},o.prototype.writeInt32LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,2147483647,-2147483648),this[j]=C&255,this[j+1]=C>>>8,this[j+2]=C>>>16,this[j+3]=C>>>24,j+4},o.prototype.writeInt32BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=C&255,j+4},o.prototype.writeBigInt64LE=Me(function(C,j=0){return oe(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Me(function(C,j=0){return ce(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te($,C,j,Z,pe,be){if(j+Z>$.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function z($,C,j,Z,pe){return C=+C,j=j>>>0,pe||te($,C,j,4),r.write($,C,j,Z,23,4),j+4}o.prototype.writeFloatLE=function(C,j,Z){return z(this,C,j,!0,Z)},o.prototype.writeFloatBE=function(C,j,Z){return z(this,C,j,!1,Z)};function V($,C,j,Z,pe){return C=+C,j=j>>>0,pe||te($,C,j,8),r.write($,C,j,Z,52,8),j+8}o.prototype.writeDoubleLE=function(C,j,Z){return V(this,C,j,!0,Z)},o.prototype.writeDoubleBE=function(C,j,Z){return V(this,C,j,!1,Z)},o.prototype.copy=function(C,j,Z,pe){if(!o.isBuffer(C))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),!pe&&pe!==0&&(pe=this.length),j>=C.length&&(j=C.length),j||(j=0),pe>0&&pe<Z&&(pe=Z),pe===Z||C.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),C.length-j<pe-Z&&(pe=C.length-j+Z);const be=pe-Z;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,Z,pe):Uint8Array.prototype.set.call(C,this.subarray(Z,pe),j),be},o.prototype.fill=function(C,j,Z,pe){if(typeof C=="string"){if(typeof j=="string"?(pe=j,j=0,Z=this.length):typeof Z=="string"&&(pe=Z,Z=this.length),pe!==void 0&&typeof pe!="string")throw new TypeError("encoding must be a string");if(typeof pe=="string"&&!o.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);if(C.length===1){const Oe=C.charCodeAt(0);(pe==="utf8"&&Oe<128||pe==="latin1")&&(C=Oe)}}else typeof C=="number"?C=C&255:typeof C=="boolean"&&(C=Number(C));if(j<0||this.length<j||this.length<Z)throw new RangeError("Out of range index");if(Z<=j)return this;j=j>>>0,Z=Z===void 0?this.length:Z>>>0,C||(C=0);let be;if(typeof C=="number")for(be=j;be<Z;++be)this[be]=C;else{const Oe=o.isBuffer(C)?C:o.from(C,pe),et=Oe.length;if(et===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(be=0;be<Z-j;++be)this[be+j]=Oe[be%et]}return this};const fe={};function me($,C,j){fe[$]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(pe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pe,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}me("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function($,C){return`The "${$}" argument must be of type number. Received type ${typeof C}`},TypeError),me("ERR_OUT_OF_RANGE",function($,C,j){let Z=`The value of "${$}" is out of range.`,pe=j;return Number.isInteger(j)&&Math.abs(j)>2**32?pe=Ce(String(j)):typeof j=="bigint"&&(pe=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(pe=Ce(pe)),pe+="n"),Z+=` It must be ${C}. Received ${pe}`,Z},RangeError);function Ce($){let C="",j=$.length;const Z=$[0]==="-"?1:0;for(;j>=Z+4;j-=3)C=`_${$.slice(j-3,j)}${C}`;return`${$.slice(0,j)}${C}`}function Ne($,C,j){je(C,"offset"),($[C]===void 0||$[C+j]===void 0)&&Be(C,$.length-(j+1))}function he($,C,j,Z,pe,be){if($>j||$<C){const Oe=typeof C=="bigint"?"n":"";let et;throw C===0||C===BigInt(0)?et=`>= 0${Oe} and < 2${Oe} ** ${(be+1)*8}${Oe}`:et=`>= -(2${Oe} ** ${(be+1)*8-1}${Oe}) and < 2 ** ${(be+1)*8-1}${Oe}`,new fe.ERR_OUT_OF_RANGE("value",et,$)}Ne(Z,pe,be)}function je($,C){if(typeof $!="number")throw new fe.ERR_INVALID_ARG_TYPE(C,"number",$)}function Be($,C,j){throw Math.floor($)!==$?(je($,j),new fe.ERR_OUT_OF_RANGE("offset","an integer",$)):C<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${C}`,$)}const _e=/[^+/0-9A-Za-z-_]/g;function we($){if($=$.split("=")[0],$=$.trim().replace(_e,""),$.length<2)return"";for(;$.length%4!==0;)$=$+"=";return $}function Ae($,C){C=C||1/0;let j;const Z=$.length;let pe=null;const be=[];for(let Oe=0;Oe<Z;++Oe){if(j=$.charCodeAt(Oe),j>55295&&j<57344){if(!pe){if(j>56319){(C-=3)>-1&&be.push(239,191,189);continue}else if(Oe+1===Z){(C-=3)>-1&&be.push(239,191,189);continue}pe=j;continue}if(j<56320){(C-=3)>-1&&be.push(239,191,189),pe=j;continue}j=(pe-55296<<10|j-56320)+65536}else pe&&(C-=3)>-1&&be.push(239,191,189);if(pe=null,j<128){if((C-=1)<0)break;be.push(j)}else if(j<2048){if((C-=2)<0)break;be.push(j>>6|192,j&63|128)}else if(j<65536){if((C-=3)<0)break;be.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((C-=4)<0)break;be.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return be}function U($){const C=[];for(let j=0;j<$.length;++j)C.push($.charCodeAt(j)&255);return C}function T($,C){let j,Z,pe;const be=[];for(let Oe=0;Oe<$.length&&!((C-=2)<0);++Oe)j=$.charCodeAt(Oe),Z=j>>8,pe=j%256,be.push(pe),be.push(Z);return be}function k($){return t.toByteArray(we($))}function W($,C,j,Z){let pe;for(pe=0;pe<Z&&!(pe+j>=C.length||pe>=$.length);++pe)C[pe+j]=$[pe];return pe}function se($,C){return $ instanceof C||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===C.name}function ue($){return $!==$}const ge=(function(){const $="0123456789abcdef",C=new Array(256);for(let j=0;j<16;++j){const Z=j*16;for(let pe=0;pe<16;++pe)C[Z+pe]=$[j]+$[pe]}return C})();function Me($){return typeof BigInt>"u"?Xe:$}function Xe(){throw new Error("BigInt not supported")}})(hg)),hg}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var vI;function SH(){return vI||(vI=1,(function(e,t){var r=EH(),n=r.Buffer;function i(a,o){for(var u in a)o[u]=a[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s);function s(a,o,u){return n(a,o,u)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(a,o,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,u)},s.alloc=function(a,o,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return o!==void 0?typeof u=="string"?c.fill(o,u):c.fill(o):c.fill(0),c},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(Yf,Yf.exports)),Yf.exports}var mg,bI;function wH(){if(bI)return mg;bI=1;var e={}.toString;return mg=Array.isArray||function(t){return e.call(t)=="[object Array]"},mg}var gg,_I;function el(){return _I||(_I=1,gg=TypeError),gg}var yg,EI;function C6(){return EI||(EI=1,yg=Object),yg}var vg,SI;function xH(){return SI||(SI=1,vg=Error),vg}var bg,wI;function AH(){return wI||(wI=1,bg=EvalError),bg}var _g,xI;function OH(){return xI||(xI=1,_g=RangeError),_g}var Eg,AI;function CH(){return AI||(AI=1,Eg=ReferenceError),Eg}var Sg,OI;function R6(){return OI||(OI=1,Sg=SyntaxError),Sg}var wg,CI;function RH(){return CI||(CI=1,wg=URIError),wg}var xg,RI;function TH(){return RI||(RI=1,xg=Math.abs),xg}var Ag,TI;function IH(){return TI||(TI=1,Ag=Math.floor),Ag}var Og,II;function jH(){return II||(II=1,Og=Math.max),Og}var Cg,jI;function PH(){return jI||(jI=1,Cg=Math.min),Cg}var Rg,PI;function kH(){return PI||(PI=1,Rg=Math.pow),Rg}var Tg,kI;function NH(){return kI||(kI=1,Tg=Math.round),Tg}var Ig,NI;function MH(){return NI||(NI=1,Ig=Number.isNaN||function(t){return t!==t}),Ig}var jg,MI;function DH(){if(MI)return jg;MI=1;var e=MH();return jg=function(r){return e(r)||r===0?r:r<0?-1:1},jg}var Pg,DI;function qH(){return DI||(DI=1,Pg=Object.getOwnPropertyDescriptor),Pg}var kg,qI;function tl(){if(qI)return kg;qI=1;var e=qH();if(e)try{e([],"length")}catch{e=null}return kg=e,kg}var Ng,FI;function ch(){if(FI)return Ng;FI=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Ng=e,Ng}var Mg,$I;function T6(){return $I||($I=1,Mg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),Mg}var Dg,LI;function FH(){if(LI)return Dg;LI=1;var e=typeof Symbol<"u"&&Symbol,t=T6();return Dg=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Dg}var qg,BI;function I6(){return BI||(BI=1,qg=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),qg}var Fg,UI;function j6(){if(UI)return Fg;UI=1;var e=C6();return Fg=e.getPrototypeOf||null,Fg}var $g,VI;function $H(){if(VI)return $g;VI=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(u,c){for(var l=[],f=0;f<u.length;f+=1)l[f]=u[f];for(var h=0;h<c.length;h+=1)l[h+u.length]=c[h];return l},s=function(u,c){for(var l=[],f=c,h=0;f<u.length;f+=1,h+=1)l[h]=u[f];return l},a=function(o,u){for(var c="",l=0;l<o.length;l+=1)c+=o[l],l+1<o.length&&(c+=u);return c};return $g=function(u){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(e+c);for(var l=s(arguments,1),f,h=function(){if(this instanceof f){var _=c.apply(this,i(l,arguments));return Object(_)===_?_:this}return c.apply(u,i(l,arguments))},d=r(0,c.length-l.length),g=[],y=0;y<d;y++)g[y]="$"+y;if(f=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var v=function(){};v.prototype=c.prototype,f.prototype=new v,v.prototype=null}return f},$g}var Lg,zI;function rl(){if(zI)return Lg;zI=1;var e=$H();return Lg=Function.prototype.bind||e,Lg}var Bg,WI;function zO(){return WI||(WI=1,Bg=Function.prototype.call),Bg}var Ug,JI;function WO(){return JI||(JI=1,Ug=Function.prototype.apply),Ug}var Vg,HI;function LH(){return HI||(HI=1,Vg=typeof Reflect<"u"&&Reflect&&Reflect.apply),Vg}var zg,KI;function P6(){if(KI)return zg;KI=1;var e=rl(),t=WO(),r=zO(),n=LH();return zg=n||e.call(r,t),zg}var Wg,GI;function JO(){if(GI)return Wg;GI=1;var e=rl(),t=el(),r=zO(),n=P6();return Wg=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},Wg}var Jg,YI;function BH(){if(YI)return Jg;YI=1;var e=JO(),t=tl(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return Jg=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(o){return s(o==null?o:i(o))}:!1,Jg}var Hg,XI;function k6(){if(XI)return Hg;XI=1;var e=I6(),t=j6(),r=BH();return Hg=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,Hg}var Kg,ZI;function UH(){if(ZI)return Kg;ZI=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=rl();return Kg=r.call(e,t),Kg}var Gg,QI;function N6(){if(QI)return Gg;QI=1;var e,t=C6(),r=xH(),n=AH(),i=OH(),s=CH(),a=R6(),o=el(),u=RH(),c=TH(),l=IH(),f=jH(),h=PH(),d=kH(),g=NH(),y=DH(),v=Function,_=function(me){try{return v('"use strict"; return ('+me+").constructor;")()}catch{}},b=tl(),S=ch(),w=function(){throw new o},E=b?(function(){try{return arguments.callee,w}catch{try{return b(arguments,"callee").get}catch{return w}}})():w,A=FH()(),R=k6(),I=j6(),O=I6(),D=WO(),P=zO(),F={},M=typeof Uint8Array>"u"||!R?e:R(Uint8Array),G={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&R?R([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&R?R(R([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!R?e:R(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!R?e:R(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&R?R(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":M,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":D,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":I,"%Math.abs%":c,"%Math.floor%":l,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":d,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":O};if(R)try{null.error}catch(me){var ee=R(R(me));G["%Error.prototype%"]=ee}var H=function me(Ce){var Ne;if(Ce==="%AsyncFunction%")Ne=_("async function () {}");else if(Ce==="%GeneratorFunction%")Ne=_("function* () {}");else if(Ce==="%AsyncGeneratorFunction%")Ne=_("async function* () {}");else if(Ce==="%AsyncGenerator%"){var he=me("%AsyncGeneratorFunction%");he&&(Ne=he.prototype)}else if(Ce==="%AsyncIteratorPrototype%"){var je=me("%AsyncGenerator%");je&&R&&(Ne=R(je.prototype))}return G[Ce]=Ne,Ne},Q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},re=rl(),ne=UH(),B=re.call(P,Array.prototype.concat),J=re.call(D,Array.prototype.splice),ie=re.call(P,String.prototype.replace),oe=re.call(P,String.prototype.slice),ce=re.call(P,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,V=function(Ce){var Ne=oe(Ce,0,1),he=oe(Ce,-1);if(Ne==="%"&&he!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(he==="%"&&Ne!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var je=[];return ie(Ce,te,function(Be,_e,we,Ae){je[je.length]=we?ie(Ae,z,"$1"):_e||Be}),je},fe=function(Ce,Ne){var he=Ce,je;if(ne(Q,he)&&(je=Q[he],he="%"+je[0]+"%"),ne(G,he)){var Be=G[he];if(Be===F&&(Be=H(he)),typeof Be>"u"&&!Ne)throw new o("intrinsic "+Ce+" exists, but is not available. Please file an issue!");return{alias:je,name:he,value:Be}}throw new a("intrinsic "+Ce+" does not exist!")};return Gg=function(Ce,Ne){if(typeof Ce!="string"||Ce.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ne!="boolean")throw new o('"allowMissing" argument must be a boolean');if(ce(/^%?[^%]*%?$/,Ce)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var he=V(Ce),je=he.length>0?he[0]:"",Be=fe("%"+je+"%",Ne),_e=Be.name,we=Be.value,Ae=!1,U=Be.alias;U&&(je=U[0],J(he,B([0,1],U)));for(var T=1,k=!0;T<he.length;T+=1){var W=he[T],se=oe(W,0,1),ue=oe(W,-1);if((se==='"'||se==="'"||se==="`"||ue==='"'||ue==="'"||ue==="`")&&se!==ue)throw new a("property names with quotes must have matching quotes");if((W==="constructor"||!k)&&(Ae=!0),je+="."+W,_e="%"+je+"%",ne(G,_e))we=G[_e];else if(we!=null){if(!(W in we)){if(!Ne)throw new o("base intrinsic for "+Ce+" exists, but the property is not available.");return}if(b&&T+1>=he.length){var ge=b(we,W);k=!!ge,k&&"get"in ge&&!("originalValue"in ge.get)?we=ge.get:we=we[W]}else k=ne(we,W),we=we[W];k&&!Ae&&(G[_e]=we)}}return we},Gg}var Yg,ej;function M6(){if(ej)return Yg;ej=1;var e=N6(),t=JO(),r=t([e("%String.prototype.indexOf%")]);return Yg=function(i,s){var a=e(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},Yg}var Xg,tj;function VH(){if(tj)return Xg;tj=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(b){b!==n&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(S){try{var w=e.call(S);return i.test(w)}catch{return!1}},a=function(S){try{return s(S)?!1:(e.call(S),!0)}catch{return!1}},o=Object.prototype.toString,u="[object Object]",c="[object Function]",l="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var _=document.all;o.call(_)===o.call(document.all)&&(v=function(S){if((y||!S)&&(typeof S>"u"||typeof S=="object"))try{var w=o.call(S);return(w===f||w===h||w===d||w===u)&&S("")==null}catch{}return!1})}return Xg=t?function(S){if(v(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;try{t(S,null,r)}catch(w){if(w!==n)return!1}return!s(S)&&a(S)}:function(S){if(v(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;if(g)return a(S);if(s(S))return!1;var w=o.call(S);return w!==c&&w!==l&&!/^\[object HTML/.test(w)?!1:a(S)},Xg}var Zg,rj;function zH(){if(rj)return Zg;rj=1;var e=VH(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,c,l){for(var f=0,h=u.length;f<h;f++)r.call(u,f)&&(l==null?c(u[f],f,u):c.call(l,u[f],f,u))},i=function(u,c,l){for(var f=0,h=u.length;f<h;f++)l==null?c(u.charAt(f),f,u):c.call(l,u.charAt(f),f,u)},s=function(u,c,l){for(var f in u)r.call(u,f)&&(l==null?c(u[f],f,u):c.call(l,u[f],f,u))};function a(o){return t.call(o)==="[object Array]"}return Zg=function(u,c,l){if(!e(c))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=l),a(u)?n(u,c,f):typeof u=="string"?i(u,c,f):s(u,c,f)},Zg}var Qg,nj;function WH(){return nj||(nj=1,Qg=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Qg}var ey,ij;function JH(){if(ij)return ey;ij=1;var e=WH(),t=typeof globalThis>"u"?We.commonjsGlobal:globalThis;return ey=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},ey}var ty={exports:{}},ry,sj;function HH(){if(sj)return ry;sj=1;var e=ch(),t=R6(),r=el(),n=tl();return ry=function(s,a,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!n&&n(s,a);if(e)e(s,a,{configurable:l===null&&h?h.configurable:!l,enumerable:u===null&&h?h.enumerable:!u,value:o,writable:c===null&&h?h.writable:!c});else if(f||!u&&!c&&!l)s[a]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ry}var ny,aj;function KH(){if(aj)return ny;aj=1;var e=ch(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},ny=t,ny}var iy,oj;function GH(){if(oj)return iy;oj=1;var e=N6(),t=HH(),r=KH()(),n=tl(),i=el(),s=e("%Math.floor%");return iy=function(o,u){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||s(u)!==u)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],l=!0,f=!0;if("length"in o&&n){var h=n(o,"length");h&&!h.configurable&&(l=!1),h&&!h.writable&&(f=!1)}return(l||f||!c)&&(r?t(o,"length",u,!0,!0):t(o,"length",u)),o},iy}var sy,uj;function YH(){if(uj)return sy;uj=1;var e=rl(),t=WO(),r=P6();return sy=function(){return r(e,t,arguments)},sy}var cj;function XH(){return cj||(cj=1,(function(e){var t=GH(),r=ch(),n=JO(),i=YH();e.exports=function(a){var o=n(arguments),u=a.length-(arguments.length-1);return t(o,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i})(ty)),ty.exports}var ay,lj;function ZH(){if(lj)return ay;lj=1;var e=T6();return ay=function(){return e()&&!!Symbol.toStringTag},ay}var oy,fj;function QH(){if(fj)return oy;fj=1;var e=zH(),t=JH(),r=XH(),n=M6(),i=tl(),s=k6(),a=n("Object.prototype.toString"),o=ZH()(),u=typeof globalThis>"u"?We.commonjsGlobal:globalThis,c=t(),l=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(v,_){for(var b=0;b<v.length;b+=1)if(v[b]===_)return b;return-1},h={__proto__:null};o&&i&&s?e(c,function(y){var v=new u[y];if(Symbol.toStringTag in v&&s){var _=s(v),b=i(_,Symbol.toStringTag);if(!b&&_){var S=s(_);b=i(S,Symbol.toStringTag)}h["$"+y]=r(b.get)}}):e(c,function(y){var v=new u[y],_=v.slice||v.set;_&&(h["$"+y]=r(_))});var d=function(v){var _=!1;return e(h,function(b,S){if(!_)try{"$"+b(v)===S&&(_=l(S,1))}catch{}}),_},g=function(v){var _=!1;return e(h,function(b,S){if(!_)try{b(v),_=l(S,1)}catch{}}),_};return oy=function(v){if(!v||typeof v!="object")return!1;if(!o){var _=l(a(v),8,-1);return f(c,_)>-1?_:_!=="Object"?!1:g(v)}return i?d(v):null},oy}var uy,pj;function eK(){if(pj)return uy;pj=1;var e=QH();return uy=function(r){return!!e(r)},uy}var cy,dj;function tK(){if(dj)return cy;dj=1;var e=el(),t=M6(),r=t("TypedArray.prototype.buffer",!0),n=eK();return cy=r||function(s){if(!n(s))throw new e("Not a Typed Array");return s.buffer},cy}var ly,hj;function rK(){if(hj)return ly;hj=1;var e=SH().Buffer,t=wH(),r=tK(),n=ArrayBuffer.isView||function(u){try{return r(u),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return ly=function(u,c){if(e.isBuffer(u))return u.constructor&&!("isBuffer"in u)?e.from(u):u;if(typeof u=="string")return e.from(u,c);if(s&&n(u)){if(u.byteLength===0)return e.alloc(0);if(a){var l=e.from(u.buffer,u.byteOffset,u.byteLength);if(l.byteLength===u.byteLength)return l}var f=u instanceof Uint8Array?u:new Uint8Array(u.buffer,u.byteOffset,u.byteLength),h=e.from(f);if(h.length===u.byteLength)return h}if(i&&u instanceof Uint8Array)return e.from(u);var d=t(u);if(d)for(var g=0;g<u.length;g+=1){var y=u[g];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||e.isBuffer(u)&&u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u))return e.from(u);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},ly}var D6=rK();const nK=We.getDefaultExportFromCjs(D6),iK=UO({__proto__:null,default:nK},[D6]);var q6=O6();const sK=We.getDefaultExportFromCjs(q6),aK=UO({__proto__:null,default:sK},[q6]);function _n(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 oK=typeof Symbol=="function"&&Symbol.observable||"@@observable",mj=oK,gj=()=>Math.random().toString(36).substring(7).split("").join("."),uK={INIT:`@@redux/INIT${gj()}`,REPLACE:`@@redux/REPLACE${gj()}`},yj=uK;function cK(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 lK(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(dK(e))return"date";if(pK(e))return"error";const r=fK(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 fK(e){return typeof e.constructor=="function"?e.constructor.name:null}function pK(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function dK(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ra(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=lK(e)),t}function F6(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?_n(2):`Expected the root reducer to be a function. Instead, received: '${ra(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?_n(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"?_n(1):`Expected the enhancer to be a function. Instead, received: '${ra(r)}'`);return r(F6)(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,_)=>{a.set(_,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?_n(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"?_n(4):`Expected the listener to be a function. Instead, received: '${ra(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?_n(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 _=!0;c();const b=o++;return a.set(b,v),function(){if(_){if(u)throw new Error(process.env.NODE_ENV==="production"?_n(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.");_=!1,c(),a.delete(b),s=null}}}function h(v){if(!cK(v))throw new Error(process.env.NODE_ENV==="production"?_n(7):`Actions must be plain objects. Instead, the actual type was: '${ra(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"?_n(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"?_n(17):`Action "type" property must be a string. Instead, the actual type was: '${ra(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?_n(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"?_n(10):`Expected the nextReducer to be a function. Instead, received: '${ra(v)}`);n=v,h({type:yj.REPLACE})}function g(){const v=f;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(process.env.NODE_ENV==="production"?_n(11):`Expected the observer to be an object. Instead, received: '${ra(_)}'`);function b(){const w=_;w.next&&w.next(l())}return b(),{unsubscribe:v(b)}},[mj](){return this}}}return h({type:yj.INIT}),{dispatch:h,subscribe:f,getState:l,replaceReducer:d,[mj]:g}}function vj(e,t){return function(...r){return t(e.apply(this,r))}}function hK(e,t){if(typeof e=="function")return vj(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?_n(16):`bindActionCreators expected an object or a function, but instead received: '${ra(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]=vj(i,t))}return r}function $6(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function mK(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?_n(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=$6(...o)(i.dispatch),{...i,dispatch:s}}}var xp={exports:{}},gK=xp.exports,bj;function HO(){return bj||(bj=1,(function(e,t){(function(r,n){e.exports=n()})(gK,function(){var r=Array.prototype.slice;function n(m,x){x&&(m.prototype=Object.create(x.prototype)),m.prototype.constructor=m}function i(m){return u(m)?m:je(m)}n(s,i);function s(m){return c(m)?m:Be(m)}n(a,i);function a(m){return l(m)?m:_e(m)}n(o,i);function o(m){return u(m)&&!f(m)?m:we(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__@@",_="delete",b=5,S=1<<b,w=S-1,E={},A={value:!1},R={value:!1};function I(m){return m.value=!1,m}function O(m){m&&(m.value=!0)}function D(){}function P(m,x){x=x||0;for(var N=Math.max(0,m.length-x),q=new Array(N),L=0;L<N;L++)q[L]=m[L+x];return q}function F(m){return m.size===void 0&&(m.size=m.__iterate(G)),m.size}function M(m,x){if(typeof x!="number"){var N=x>>>0;if(""+N!==x||N===4294967295)return NaN;x=N}return x<0?F(m)+x:x}function G(){return!0}function ee(m,x,N){return(m===0||N!==void 0&&m<=-N)&&(x===void 0||N!==void 0&&x>=N)}function H(m,x){return re(m,x,0)}function Q(m,x){return re(m,x,x)}function re(m,x,N){return m===void 0?N:m<0?Math.max(0,x+m):x===void 0?m:Math.min(x,m)}var ne=0,B=1,J=2,ie=typeof Symbol=="function"&&Symbol.iterator,oe="@@iterator",ce=ie||oe;function te(m){this.next=m}te.prototype.toString=function(){return"[Iterator]"},te.KEYS=ne,te.VALUES=B,te.ENTRIES=J,te.prototype.inspect=te.prototype.toSource=function(){return this.toString()},te.prototype[ce]=function(){return this};function z(m,x,N,q){var L=m===0?x:m===1?N:[x,N];return q?q.value=L:q={value:L,done:!1},q}function V(){return{value:void 0,done:!0}}function fe(m){return!!Ne(m)}function me(m){return m&&typeof m.next=="function"}function Ce(m){var x=Ne(m);return x&&x.call(m)}function Ne(m){var x=m&&(ie&&m[ie]||m[oe]);if(typeof x=="function")return x}function he(m){return m&&typeof m.length=="number"}n(je,i);function je(m){return m==null?ge():u(m)?m.toSeq():$(m)}je.of=function(){return je(arguments)},je.prototype.toSeq=function(){return this},je.prototype.toString=function(){return this.__toString("Seq {","}")},je.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},je.prototype.__iterate=function(m,x){return j(this,m,x,!0)},je.prototype.__iterator=function(m,x){return Z(this,m,x,!0)},n(Be,je);function Be(m){return m==null?ge().toKeyedSeq():u(m)?c(m)?m.toSeq():m.fromEntrySeq():Me(m)}Be.prototype.toKeyedSeq=function(){return this},n(_e,je);function _e(m){return m==null?ge():u(m)?c(m)?m.entrySeq():m.toIndexedSeq():Xe(m)}_e.of=function(){return _e(arguments)},_e.prototype.toIndexedSeq=function(){return this},_e.prototype.toString=function(){return this.__toString("Seq [","]")},_e.prototype.__iterate=function(m,x){return j(this,m,x,!1)},_e.prototype.__iterator=function(m,x){return Z(this,m,x,!1)},n(we,je);function we(m){return(m==null?ge():u(m)?c(m)?m.entrySeq():m:Xe(m)).toSetSeq()}we.of=function(){return we(arguments)},we.prototype.toSetSeq=function(){return this},je.isSeq=se,je.Keyed=Be,je.Set=we,je.Indexed=_e;var Ae="@@__IMMUTABLE_SEQ__@@";je.prototype[Ae]=!0,n(U,_e);function U(m){this._array=m,this.size=m.length}U.prototype.get=function(m,x){return this.has(m)?this._array[M(this,m)]:x},U.prototype.__iterate=function(m,x){for(var N=this._array,q=N.length-1,L=0;L<=q;L++)if(m(N[x?q-L:L],L,this)===!1)return L+1;return L},U.prototype.__iterator=function(m,x){var N=this._array,q=N.length-1,L=0;return new te(function(){return L>q?V():z(m,L,N[x?q-L++:L++])})},n(T,Be);function T(m){var x=Object.keys(m);this._object=m,this._keys=x,this.size=x.length}T.prototype.get=function(m,x){return x!==void 0&&!this.has(m)?x:this._object[m]},T.prototype.has=function(m){return this._object.hasOwnProperty(m)},T.prototype.__iterate=function(m,x){for(var N=this._object,q=this._keys,L=q.length-1,Y=0;Y<=L;Y++){var ae=q[x?L-Y:Y];if(m(N[ae],ae,this)===!1)return Y+1}return Y},T.prototype.__iterator=function(m,x){var N=this._object,q=this._keys,L=q.length-1,Y=0;return new te(function(){var ae=q[x?L-Y:Y];return Y++>L?V():z(m,ae,N[ae])})},T.prototype[v]=!0,n(k,_e);function k(m){this._iterable=m,this.size=m.length||m.size}k.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);var N=this._iterable,q=Ce(N),L=0;if(me(q))for(var Y;!(Y=q.next()).done&&m(Y.value,L++,this)!==!1;);return L},k.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterable,q=Ce(N);if(!me(q))return new te(V);var L=0;return new te(function(){var Y=q.next();return Y.done?Y:z(m,L++,Y.value)})},n(W,_e);function W(m){this._iterator=m,this._iteratorCache=[]}W.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);for(var N=this._iterator,q=this._iteratorCache,L=0;L<q.length;)if(m(q[L],L++,this)===!1)return L;for(var Y;!(Y=N.next()).done;){var ae=Y.value;if(q[L]=ae,m(ae,L++,this)===!1)break}return L},W.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterator,q=this._iteratorCache,L=0;return new te(function(){if(L>=q.length){var Y=N.next();if(Y.done)return Y;q[L]=Y.value}return z(m,L,q[L++])})};function se(m){return!!(m&&m[Ae])}var ue;function ge(){return ue||(ue=new U([]))}function Me(m){var x=Array.isArray(m)?new U(m).fromEntrySeq():me(m)?new W(m).fromEntrySeq():fe(m)?new k(m).fromEntrySeq():typeof m=="object"?new T(m):void 0;if(!x)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return x}function Xe(m){var x=C(m);if(!x)throw new TypeError("Expected Array or iterable object of values: "+m);return x}function $(m){var x=C(m)||typeof m=="object"&&new T(m);if(!x)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return x}function C(m){return he(m)?new U(m):me(m)?new W(m):fe(m)?new k(m):void 0}function j(m,x,N,q){var L=m._cache;if(L){for(var Y=L.length-1,ae=0;ae<=Y;ae++){var ye=L[N?Y-ae:ae];if(x(ye[1],q?ye[0]:ae,m)===!1)return ae+1}return ae}return m.__iterateUncached(x,N)}function Z(m,x,N,q){var L=m._cache;if(L){var Y=L.length-1,ae=0;return new te(function(){var ye=L[N?Y-ae:ae];return ae++>Y?V():z(x,q?ye[0]:ae-1,ye[1])})}return m.__iteratorUncached(x,N)}function pe(m,x){return x?be(x,m,"",{"":m}):Oe(m)}function be(m,x,N,q){return Array.isArray(x)?m.call(q,N,_e(x).map(function(L,Y){return be(m,L,Y,x)})):et(x)?m.call(q,N,Be(x).map(function(L,Y){return be(m,L,Y,x)})):x}function Oe(m){return Array.isArray(m)?_e(m).map(Oe).toList():et(m)?Be(m).map(Oe).toMap():m}function et(m){return m&&(m.constructor===Object||m.constructor===void 0)}function ot(m,x){if(m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1;if(typeof m.valueOf=="function"&&typeof x.valueOf=="function"){if(m=m.valueOf(),x=x.valueOf(),m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1}return!!(typeof m.equals=="function"&&typeof x.equals=="function"&&m.equals(x))}function Mt(m,x){if(m===x)return!0;if(!u(x)||m.size!==void 0&&x.size!==void 0&&m.size!==x.size||m.__hash!==void 0&&x.__hash!==void 0&&m.__hash!==x.__hash||c(m)!==c(x)||l(m)!==l(x)||h(m)!==h(x))return!1;if(m.size===0&&x.size===0)return!0;var N=!f(m);if(h(m)){var q=m.entries();return x.every(function(xe,Re){var ke=q.next().value;return ke&&ot(ke[1],xe)&&(N||ot(ke[0],Re))})&&q.next().done}var L=!1;if(m.size===void 0)if(x.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{L=!0;var Y=m;m=x,x=Y}var ae=!0,ye=x.__iterate(function(xe,Re){if(N?!m.has(xe):L?!ot(xe,m.get(Re,E)):!ot(m.get(Re,E),xe))return ae=!1,!1});return ae&&m.size===ye}n(pt,_e);function pt(m,x){if(!(this instanceof pt))return new pt(m,x);if(this._value=m,this.size=x===void 0?1/0:Math.max(0,x),this.size===0){if(de)return de;de=this}}pt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},pt.prototype.get=function(m,x){return this.has(m)?this._value:x},pt.prototype.includes=function(m){return ot(this._value,m)},pt.prototype.slice=function(m,x){var N=this.size;return ee(m,x,N)?this:new pt(this._value,Q(x,N)-H(m,N))},pt.prototype.reverse=function(){return this},pt.prototype.indexOf=function(m){return ot(this._value,m)?0:-1},pt.prototype.lastIndexOf=function(m){return ot(this._value,m)?this.size:-1},pt.prototype.__iterate=function(m,x){for(var N=0;N<this.size;N++)if(m(this._value,N,this)===!1)return N+1;return N},pt.prototype.__iterator=function(m,x){var N=this,q=0;return new te(function(){return q<N.size?z(m,q++,N._value):V()})},pt.prototype.equals=function(m){return m instanceof pt?ot(this._value,m._value):Mt(m)};var de;function Ie(m,x){if(!m)throw new Error(x)}n(qe,_e);function qe(m,x,N){if(!(this instanceof qe))return new qe(m,x,N);if(Ie(N!==0,"Cannot step a Range by 0"),m=m||0,x===void 0&&(x=1/0),N=N===void 0?1:Math.abs(N),x<m&&(N=-N),this._start=m,this._end=x,this._step=N,this.size=Math.max(0,Math.ceil((x-m)/N-1)+1),this.size===0){if(nt)return nt;nt=this}}qe.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},qe.prototype.get=function(m,x){return this.has(m)?this._start+M(this,m)*this._step:x},qe.prototype.includes=function(m){var x=(m-this._start)/this._step;return x>=0&&x<this.size&&x===Math.floor(x)},qe.prototype.slice=function(m,x){return ee(m,x,this.size)?this:(m=H(m,this.size),x=Q(x,this.size),x<=m?new qe(0,0):new qe(this.get(m,this._end),this.get(x,this._end),this._step))},qe.prototype.indexOf=function(m){var x=m-this._start;if(x%this._step===0){var N=x/this._step;if(N>=0&&N<this.size)return N}return-1},qe.prototype.lastIndexOf=function(m){return this.indexOf(m)},qe.prototype.__iterate=function(m,x){for(var N=this.size-1,q=this._step,L=x?this._start+N*q:this._start,Y=0;Y<=N;Y++){if(m(L,Y,this)===!1)return Y+1;L+=x?-q:q}return Y},qe.prototype.__iterator=function(m,x){var N=this.size-1,q=this._step,L=x?this._start+N*q:this._start,Y=0;return new te(function(){var ae=L;return L+=x?-q:q,Y>N?V():z(m,Y++,ae)})},qe.prototype.equals=function(m){return m instanceof qe?this._start===m._start&&this._end===m._end&&this._step===m._step:Mt(this,m)};var nt;n(dt,i);function dt(){throw TypeError("Abstract")}n(wt,dt);function wt(){}n(Kt,dt);function Kt(){}n(Fe,dt);function Fe(){}dt.Keyed=wt,dt.Indexed=Kt,dt.Set=Fe;var Ke=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(x,N){x=x|0,N=N|0;var q=x&65535,L=N&65535;return q*L+((x>>>16)*L+q*(N>>>16)<<16>>>0)|0};function lt(m){return m>>>1&1073741824|m&3221225471}function it(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 x=typeof m;if(x==="number"){if(m!==m||m===1/0)return 0;var N=m|0;for(N!==m&&(N^=m*4294967295);m>4294967295;)m/=4294967295,N^=m;return lt(N)}if(x==="string")return m.length>Un?Gt(m):pn(m);if(typeof m.hashCode=="function")return m.hashCode();if(x==="object")return Ws(m);if(typeof m.toString=="function")return pn(m.toString());throw new Error("Value type "+x+" cannot be hashed.")}function Gt(m){var x=Yi[m];return x===void 0&&(x=pn(m),Ys===Gs&&(Ys=0,Yi={}),Ys++,Yi[m]=x),x}function pn(m){for(var x=0,N=0;N<m.length;N++)x=31*x+m.charCodeAt(N)|0;return lt(x)}function Ws(m){var x;if(Hs&&(x=Ks.get(m),x!==void 0)||(x=m[hn],x!==void 0)||!dn&&(x=m.propertyIsEnumerable&&m.propertyIsEnumerable[hn],x!==void 0||(x=Ti(m),x!==void 0)))return x;if(x=++ws,ws&1073741824&&(ws=0),Hs)Ks.set(m,x);else{if(Js!==void 0&&Js(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(dn)Object.defineProperty(m,hn,{enumerable:!1,configurable:!1,writable:!1,value:x});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[hn]=x;else if(m.nodeType!==void 0)m[hn]=x;else throw new Error("Unable to set a non-enumerable property on object.")}return x}var Js=Object.isExtensible,dn=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function Ti(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var Hs=typeof WeakMap=="function",Ks;Hs&&(Ks=new WeakMap);var ws=0,hn="__immutablehash__";typeof Symbol=="function"&&(hn=Symbol(hn));var Un=16,Gs=255,Ys=0,Yi={};function Dr(m){Ie(m!==1/0,"Cannot perform this action with an infinite size.")}n(Ot,wt);function Ot(m){return m==null?Je():tt(m)&&!h(m)?m:Je().withMutations(function(x){var N=s(m);Dr(N.size),N.forEach(function(q,L){return x.set(L,q)})})}Ot.of=function(){var m=r.call(arguments,0);return Je().withMutations(function(x){for(var N=0;N<m.length;N+=2){if(N+1>=m.length)throw new Error("Missing value for key: "+m[N]);x.set(m[N],m[N+1])}})},Ot.prototype.toString=function(){return this.__toString("Map {","}")},Ot.prototype.get=function(m,x){return this._root?this._root.get(0,void 0,m,x):x},Ot.prototype.set=function(m,x){return Rt(this,m,x)},Ot.prototype.setIn=function(m,x){return this.updateIn(m,E,function(){return x})},Ot.prototype.remove=function(m){return Rt(this,m,E)},Ot.prototype.deleteIn=function(m){return this.updateIn(m,function(){return E})},Ot.prototype.update=function(m,x,N){return arguments.length===1?m(this):this.updateIn([m],x,N)},Ot.prototype.updateIn=function(m,x,N){N||(N=x,x=void 0);var q=qf(this,UT(m),x,N);return q===E?void 0:q},Ot.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Je()},Ot.prototype.merge=function(){return Vn(this,void 0,arguments)},Ot.prototype.mergeWith=function(m){var x=r.call(arguments,1);return Vn(this,m,x)},Ot.prototype.mergeIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,Je(),function(N){return typeof N.merge=="function"?N.merge.apply(N,x):x[x.length-1]})},Ot.prototype.mergeDeep=function(){return Vn(this,Nf,arguments)},Ot.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return Vn(this,Mf(m),x)},Ot.prototype.mergeDeepIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,Je(),function(N){return typeof N.mergeDeep=="function"?N.mergeDeep.apply(N,x):x[x.length-1]})},Ot.prototype.sort=function(m){return Ar(Ro(this,m))},Ot.prototype.sortBy=function(m,x){return Ar(Ro(this,x,m))},Ot.prototype.withMutations=function(m){var x=this.asMutable();return m(x),x.wasAltered()?x.__ensureOwner(this.__ownerID):this},Ot.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new D)},Ot.prototype.asImmutable=function(){return this.__ensureOwner()},Ot.prototype.wasAltered=function(){return this.__altered},Ot.prototype.__iterator=function(m,x){return new mn(this,m,x)},Ot.prototype.__iterate=function(m,x){var N=this,q=0;return this._root&&this._root.iterate(function(L){return q++,m(L[1],L[0],N)},x),q},Ot.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?gr(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function tt(m){return!!(m&&m[le])}Ot.isMap=tt;var le="@@__IMMUTABLE_MAP__@@",Te=Ot.prototype;Te[le]=!0,Te[_]=Te.remove,Te.removeIn=Te.deleteIn;function Ge(m,x){this.ownerID=m,this.entries=x}Ge.prototype.get=function(m,x,N,q){for(var L=this.entries,Y=0,ae=L.length;Y<ae;Y++)if(ot(N,L[Y][0]))return L[Y][1];return q},Ge.prototype.update=function(m,x,N,q,L,Y,ae){for(var ye=L===E,xe=this.entries,Re=0,ke=xe.length;Re<ke&&!ot(q,xe[Re][0]);Re++);var He=Re<ke;if(He?xe[Re][1]===L:ye)return this;if(O(ae),(ye||!He)&&O(Y),!(ye&&xe.length===1)){if(!He&&!ye&&xe.length>=Vu)return si(m,xe,q,L);var Qe=m&&m===this.ownerID,gt=Qe?xe:P(xe);return He?ye?Re===ke-1?gt.pop():gt[Re]=gt.pop():gt[Re]=[q,L]:gt.push([q,L]),Qe?(this.entries=gt,this):new Ge(m,gt)}};function vt(m,x,N){this.ownerID=m,this.bitmap=x,this.nodes=N}vt.prototype.get=function(m,x,N,q){x===void 0&&(x=it(N));var L=1<<((m===0?x:x>>>m)&w),Y=this.bitmap;return(Y&L)===0?q:this.nodes[Na(Y&L-1)].get(m+b,x,N,q)},vt.prototype.update=function(m,x,N,q,L,Y,ae){N===void 0&&(N=it(q));var ye=(x===0?N:N>>>x)&w,xe=1<<ye,Re=this.bitmap,ke=(Re&xe)!==0;if(!ke&&L===E)return this;var He=Na(Re&xe-1),Qe=this.nodes,gt=ke?Qe[He]:void 0,Ct=Vt(gt,m,x+b,N,q,L,Y,ae);if(Ct===gt)return this;if(!ke&&Ct&&Qe.length>=xt)return oi(m,Qe,Re,ye,Ct);if(ke&&!Ct&&Qe.length===2&&xr(Qe[He^1]))return Qe[He^1];if(ke&&Ct&&Qe.length===1&&xr(Ct))return Ct;var dr=m&&m===this.ownerID,ji=ke?Ct?Re:Re^xe:Re|xe,es=ke?Ct?Uu(Qe,He,Ct,dr):Xm(Qe,He,dr):Zs(Qe,He,Ct,dr);return dr?(this.bitmap=ji,this.nodes=es,this):new vt(m,ji,es)};function ur(m,x,N){this.ownerID=m,this.count=x,this.nodes=N}ur.prototype.get=function(m,x,N,q){x===void 0&&(x=it(N));var L=(m===0?x:x>>>m)&w,Y=this.nodes[L];return Y?Y.get(m+b,x,N,q):q},ur.prototype.update=function(m,x,N,q,L,Y,ae){N===void 0&&(N=it(q));var ye=(x===0?N:N>>>x)&w,xe=L===E,Re=this.nodes,ke=Re[ye];if(xe&&!ke)return this;var He=Vt(ke,m,x+b,N,q,L,Y,ae);if(He===ke)return this;var Qe=this.count;if(!ke)Qe++;else if(!He&&(Qe--,Qe<Ff))return ai(m,Re,Qe,ye);var gt=m&&m===this.ownerID,Ct=Uu(Re,ye,He,gt);return gt?(this.count=Qe,this.nodes=Ct,this):new ur(m,Qe,Ct)};function Ut(m,x,N){this.ownerID=m,this.keyHash=x,this.entries=N}Ut.prototype.get=function(m,x,N,q){for(var L=this.entries,Y=0,ae=L.length;Y<ae;Y++)if(ot(N,L[Y][0]))return L[Y][1];return q},Ut.prototype.update=function(m,x,N,q,L,Y,ae){N===void 0&&(N=it(q));var ye=L===E;if(N!==this.keyHash)return ye?this:(O(ae),O(Y),Ii(this,m,x,N,[q,L]));for(var xe=this.entries,Re=0,ke=xe.length;Re<ke&&!ot(q,xe[Re][0]);Re++);var He=Re<ke;if(He?xe[Re][1]===L:ye)return this;if(O(ae),(ye||!He)&&O(Y),ye&&ke===2)return new nr(m,this.keyHash,xe[Re^1]);var Qe=m&&m===this.ownerID,gt=Qe?xe:P(xe);return He?ye?Re===ke-1?gt.pop():gt[Re]=gt.pop():gt[Re]=[q,L]:gt.push([q,L]),Qe?(this.entries=gt,this):new Ut(m,this.keyHash,gt)};function nr(m,x,N){this.ownerID=m,this.keyHash=x,this.entry=N}nr.prototype.get=function(m,x,N,q){return ot(N,this.entry[0])?this.entry[1]:q},nr.prototype.update=function(m,x,N,q,L,Y,ae){var ye=L===E,xe=ot(q,this.entry[0]);if(xe?L===this.entry[1]:ye)return this;if(O(ae),ye){O(Y);return}return xe?m&&m===this.ownerID?(this.entry[1]=L,this):new nr(m,this.keyHash,[q,L]):(O(Y),Ii(this,m,x,it(q),[q,L]))},Ge.prototype.iterate=Ut.prototype.iterate=function(m,x){for(var N=this.entries,q=0,L=N.length-1;q<=L;q++)if(m(N[x?L-q:q])===!1)return!1},vt.prototype.iterate=ur.prototype.iterate=function(m,x){for(var N=this.nodes,q=0,L=N.length-1;q<=L;q++){var Y=N[x?L-q:q];if(Y&&Y.iterate(m,x)===!1)return!1}},nr.prototype.iterate=function(m,x){return m(this.entry)},n(mn,te);function mn(m,x,N){this._type=x,this._reverse=N,this._stack=m._root&&Xs(m._root)}mn.prototype.next=function(){for(var m=this._type,x=this._stack;x;){var N=x.node,q=x.index++,L;if(N.entry){if(q===0)return gn(m,N.entry)}else if(N.entries){if(L=N.entries.length-1,q<=L)return gn(m,N.entries[this._reverse?L-q:q])}else if(L=N.nodes.length-1,q<=L){var Y=N.nodes[this._reverse?L-q:q];if(Y){if(Y.entry)return gn(m,Y.entry);x=this._stack=Xs(Y,x)}continue}x=this._stack=this._stack.__prev}return V()};function gn(m,x){return z(m,x[0],x[1])}function Xs(m,x){return{node:m,index:0,__prev:x}}function gr(m,x,N,q){var L=Object.create(Te);return L.size=m,L._root=x,L.__ownerID=N,L.__hash=q,L.__altered=!1,L}var De;function Je(){return De||(De=gr(0))}function Rt(m,x,N){var q,L;if(m._root){var Y=I(A),ae=I(R);if(q=Vt(m._root,m.__ownerID,0,void 0,x,N,Y,ae),!ae.value)return m;L=m.size+(Y.value?N===E?-1:1:0)}else{if(N===E)return m;L=1,q=new Ge(m.__ownerID,[[x,N]])}return m.__ownerID?(m.size=L,m._root=q,m.__hash=void 0,m.__altered=!0,m):q?gr(L,q):Je()}function Vt(m,x,N,q,L,Y,ae,ye){return m?m.update(x,N,q,L,Y,ae,ye):Y===E?m:(O(ye),O(ae),new nr(x,q,[L,Y]))}function xr(m){return m.constructor===nr||m.constructor===Ut}function Ii(m,x,N,q,L){if(m.keyHash===q)return new Ut(x,q,[m.entry,L]);var Y=(N===0?m.keyHash:m.keyHash>>>N)&w,ae=(N===0?q:q>>>N)&w,ye,xe=Y===ae?[Ii(m,x,N+b,q,L)]:(ye=new nr(x,q,L),Y<ae?[m,ye]:[ye,m]);return new vt(x,1<<Y|1<<ae,xe)}function si(m,x,N,q){m||(m=new D);for(var L=new nr(m,it(N),[N,q]),Y=0;Y<x.length;Y++){var ae=x[Y];L=L.update(m,0,void 0,ae[0],ae[1])}return L}function ai(m,x,N,q){for(var L=0,Y=0,ae=new Array(N),ye=0,xe=1,Re=x.length;ye<Re;ye++,xe<<=1){var ke=x[ye];ke!==void 0&&ye!==q&&(L|=xe,ae[Y++]=ke)}return new vt(m,L,ae)}function oi(m,x,N,q,L){for(var Y=0,ae=new Array(S),ye=0;N!==0;ye++,N>>>=1)ae[ye]=N&1?x[Y++]:void 0;return ae[q]=L,new ur(m,Y+1,ae)}function Vn(m,x,N){for(var q=[],L=0;L<N.length;L++){var Y=N[L],ae=s(Y);u(Y)||(ae=ae.map(function(ye){return pe(ye)})),q.push(ae)}return Df(m,x,q)}function Nf(m,x,N){return m&&m.mergeDeep&&u(x)?m.mergeDeep(x):ot(m,x)?m:x}function Mf(m){return function(x,N,q){if(x&&x.mergeDeepWith&&u(N))return x.mergeDeepWith(m,N);var L=m(x,N,q);return ot(x,L)?x:L}}function Df(m,x,N){return N=N.filter(function(q){return q.size!==0}),N.length===0?m:m.size===0&&!m.__ownerID&&N.length===1?m.constructor(N[0]):m.withMutations(function(q){for(var L=x?function(ae,ye){q.update(ye,E,function(xe){return xe===E?ae:x(xe,ae,ye)})}:function(ae,ye){q.set(ye,ae)},Y=0;Y<N.length;Y++)N[Y].forEach(L)})}function qf(m,x,N,q){var L=m===E,Y=x.next();if(Y.done){var ae=L?N:m,ye=q(ae);return ye===ae?m:ye}Ie(L||m&&m.set,"invalid keyPath");var xe=Y.value,Re=L?E:m.get(xe,E),ke=qf(Re,x,N,q);return ke===Re?m:ke===E?m.remove(xe):(L?Je():m).set(xe,ke)}function Na(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 Uu(m,x,N,q){var L=q?m:P(m);return L[x]=N,L}function Zs(m,x,N,q){var L=m.length+1;if(q&&x+1===L)return m[x]=N,m;for(var Y=new Array(L),ae=0,ye=0;ye<L;ye++)ye===x?(Y[ye]=N,ae=-1):Y[ye]=m[ye+ae];return Y}function Xm(m,x,N){var q=m.length-1;if(N&&x===q)return m.pop(),m;for(var L=new Array(q),Y=0,ae=0;ae<q;ae++)ae===x&&(Y=1),L[ae]=m[ae+Y];return L}var Vu=S/4,xt=S/2,Ff=S/4;n(bt,Kt);function bt(m){var x=Ft();if(m==null)return x;if(yr(m))return m;var N=a(m),q=N.size;return q===0?x:(Dr(q),q>0&&q<S?st(0,q,b,null,new ui(N.toArray())):x.withMutations(function(L){L.setSize(q),N.forEach(function(Y,ae){return L.set(ae,Y)})}))}bt.of=function(){return this(arguments)},bt.prototype.toString=function(){return this.__toString("List [","]")},bt.prototype.get=function(m,x){if(m=M(this,m),m>=0&&m<this.size){m+=this._origin;var N=RT(this,m);return N&&N.array[m&w]}return x},bt.prototype.set=function(m,x){return sn(this,m,x)},bt.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},bt.prototype.insert=function(m,x){return this.splice(m,0,x)},bt.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):Ft()},bt.prototype.push=function(){var m=arguments,x=this.size;return this.withMutations(function(N){ta(N,0,x+m.length);for(var q=0;q<m.length;q++)N.set(x+q,m[q])})},bt.prototype.pop=function(){return ta(this,0,-1)},bt.prototype.unshift=function(){var m=arguments;return this.withMutations(function(x){ta(x,-m.length);for(var N=0;N<m.length;N++)x.set(N,m[N])})},bt.prototype.shift=function(){return ta(this,1)},bt.prototype.merge=function(){return $f(this,void 0,arguments)},bt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return $f(this,m,x)},bt.prototype.mergeDeep=function(){return $f(this,Nf,arguments)},bt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return $f(this,Mf(m),x)},bt.prototype.setSize=function(m){return ta(this,0,m)},bt.prototype.slice=function(m,x){var N=this.size;return ee(m,x,N)?this:ta(this,H(m,N),Q(x,N))},bt.prototype.__iterator=function(m,x){var N=0,q=rt(this,x);return new te(function(){var L=q();return L===xs?V():z(m,N++,L)})},bt.prototype.__iterate=function(m,x){for(var N=0,q=rt(this,x),L;(L=q())!==xs&&m(L,N++,this)!==!1;);return N},bt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?st(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function yr(m){return!!(m&&m[Ma])}bt.isList=yr;var Ma="@@__IMMUTABLE_LIST__@@",br=bt.prototype;br[Ma]=!0,br[_]=br.remove,br.setIn=Te.setIn,br.deleteIn=br.removeIn=Te.removeIn,br.update=Te.update,br.updateIn=Te.updateIn,br.mergeIn=Te.mergeIn,br.mergeDeepIn=Te.mergeDeepIn,br.withMutations=Te.withMutations,br.asMutable=Te.asMutable,br.asImmutable=Te.asImmutable,br.wasAltered=Te.wasAltered;function ui(m,x){this.array=m,this.ownerID=x}ui.prototype.removeBefore=function(m,x,N){if(N===x?1<<x:this.array.length===0)return this;var q=N>>>x&w;if(q>=this.array.length)return new ui([],m);var L=q===0,Y;if(x>0){var ae=this.array[q];if(Y=ae&&ae.removeBefore(m,x-b,N),Y===ae&&L)return this}if(L&&!Y)return this;var ye=ea(this,m);if(!L)for(var xe=0;xe<q;xe++)ye.array[xe]=void 0;return Y&&(ye.array[q]=Y),ye},ui.prototype.removeAfter=function(m,x,N){if(N===(x?1<<x:0)||this.array.length===0)return this;var q=N-1>>>x&w;if(q>=this.array.length)return this;var L;if(x>0){var Y=this.array[q];if(L=Y&&Y.removeAfter(m,x-b,N),L===Y&&q===this.array.length-1)return this}var ae=ea(this,m);return ae.array.splice(q+1),L&&(ae.array[q]=L),ae};var xs={};function rt(m,x){var N=m._origin,q=m._capacity,L=zu(q),Y=m._tail;return ae(m._root,m._level,0);function ae(Re,ke,He){return ke===0?ye(Re,He):xe(Re,ke,He)}function ye(Re,ke){var He=ke===L?Y&&Y.array:Re&&Re.array,Qe=ke>N?0:N-ke,gt=q-ke;return gt>S&&(gt=S),function(){if(Qe===gt)return xs;var Ct=x?--gt:Qe++;return He&&He[Ct]}}function xe(Re,ke,He){var Qe,gt=Re&&Re.array,Ct=He>N?0:N-He>>ke,dr=(q-He>>ke)+1;return dr>S&&(dr=S),function(){do{if(Qe){var ji=Qe();if(ji!==xs)return ji;Qe=null}if(Ct===dr)return xs;var es=x?--dr:Ct++;Qe=ae(gt&>[es],ke-b,He+(es<<ke))}while(!0)}}}function st(m,x,N,q,L,Y,ae){var ye=Object.create(br);return ye.size=x-m,ye._origin=m,ye._capacity=x,ye._level=N,ye._root=q,ye._tail=L,ye.__ownerID=Y,ye.__hash=ae,ye.__altered=!1,ye}var St;function Ft(){return St||(St=st(0,0,b))}function sn(m,x,N){if(x=M(m,x),x!==x)return m;if(x>=m.size||x<0)return m.withMutations(function(ae){x<0?ta(ae,x).set(0,N):ta(ae,0,x+1).set(x,N)});x+=m._origin;var q=m._tail,L=m._root,Y=I(R);return x>=zu(m._capacity)?q=Qs(q,m.__ownerID,0,x,N,Y):L=Qs(L,m.__ownerID,m._level,x,N,Y),Y.value?m.__ownerID?(m._root=L,m._tail=q,m.__hash=void 0,m.__altered=!0,m):st(m._origin,m._capacity,m._level,L,q):m}function Qs(m,x,N,q,L,Y){var ae=q>>>N&w,ye=m&&ae<m.array.length;if(!ye&&L===void 0)return m;var xe;if(N>0){var Re=m&&m.array[ae],ke=Qs(Re,x,N-b,q,L,Y);return ke===Re?m:(xe=ea(m,x),xe.array[ae]=ke,xe)}return ye&&m.array[ae]===L?m:(O(Y),xe=ea(m,x),L===void 0&&ae===xe.array.length-1?xe.array.pop():xe.array[ae]=L,xe)}function ea(m,x){return x&&m&&x===m.ownerID?m:new ui(m?m.array.slice():[],x)}function RT(m,x){if(x>=zu(m._capacity))return m._tail;if(x<1<<m._level+b){for(var N=m._root,q=m._level;N&&q>0;)N=N.array[x>>>q&w],q-=b;return N}}function ta(m,x,N){x!==void 0&&(x=x|0),N!==void 0&&(N=N|0);var q=m.__ownerID||new D,L=m._origin,Y=m._capacity,ae=L+x,ye=N===void 0?Y:N<0?Y+N:L+N;if(ae===L&&ye===Y)return m;if(ae>=ye)return m.clear();for(var xe=m._level,Re=m._root,ke=0;ae+ke<0;)Re=new ui(Re&&Re.array.length?[void 0,Re]:[],q),xe+=b,ke+=1<<xe;ke&&(ae+=ke,L+=ke,ye+=ke,Y+=ke);for(var He=zu(Y),Qe=zu(ye);Qe>=1<<xe+b;)Re=new ui(Re&&Re.array.length?[Re]:[],q),xe+=b;var gt=m._tail,Ct=Qe<He?RT(m,ye-1):Qe>He?new ui([],q):gt;if(gt&&Qe>He&&ae<Y&>.array.length){Re=ea(Re,q);for(var dr=Re,ji=xe;ji>b;ji-=b){var es=He>>>ji&w;dr=dr.array[es]=ea(dr.array[es],q)}dr.array[He>>>b&w]=gt}if(ye<Y&&(Ct=Ct&&Ct.removeAfter(q,0,ye)),ae>=Qe)ae-=Qe,ye-=Qe,xe=b,Re=null,Ct=Ct&&Ct.removeBefore(q,0,ae);else if(ae>L||Qe<He){for(ke=0;Re;){var Jf=ae>>>xe&w;if(Jf!==Qe>>>xe&w)break;Jf&&(ke+=(1<<xe)*Jf),xe-=b,Re=Re.array[Jf]}Re&&ae>L&&(Re=Re.removeBefore(q,xe,ae-ke)),Re&&Qe<He&&(Re=Re.removeAfter(q,xe,Qe-ke)),ke&&(ae-=ke,ye-=ke)}return m.__ownerID?(m.size=ye-ae,m._origin=ae,m._capacity=ye,m._level=xe,m._root=Re,m._tail=Ct,m.__hash=void 0,m.__altered=!0,m):st(ae,ye,xe,Re,Ct)}function $f(m,x,N){for(var q=[],L=0,Y=0;Y<N.length;Y++){var ae=N[Y],ye=a(ae);ye.size>L&&(L=ye.size),u(ae)||(ye=ye.map(function(xe){return pe(xe)})),q.push(ye)}return L>m.size&&(m=m.setSize(L)),Df(m,x,q)}function zu(m){return m<S?0:m-1>>>b<<b}n(Ar,Ot);function Ar(m){return m==null?Lf():TT(m)?m:Lf().withMutations(function(x){var N=s(m);Dr(N.size),N.forEach(function(q,L){return x.set(L,q)})})}Ar.of=function(){return this(arguments)},Ar.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ar.prototype.get=function(m,x){var N=this._map.get(m);return N!==void 0?this._list.get(N)[1]:x},Ar.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Lf()},Ar.prototype.set=function(m,x){return jT(this,m,x)},Ar.prototype.remove=function(m){return jT(this,m,E)},Ar.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ar.prototype.__iterate=function(m,x){var N=this;return this._list.__iterate(function(q){return q&&m(q[1],q[0],N)},x)},Ar.prototype.__iterator=function(m,x){return this._list.fromEntrySeq().__iterator(m,x)},Ar.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m),N=this._list.__ensureOwner(m);return m?Zm(x,N,m,this.__hash):(this.__ownerID=m,this._map=x,this._list=N,this)};function TT(m){return tt(m)&&h(m)}Ar.isOrderedMap=TT,Ar.prototype[v]=!0,Ar.prototype[_]=Ar.prototype.remove;function Zm(m,x,N,q){var L=Object.create(Ar.prototype);return L.size=m?m.size:0,L._map=m,L._list=x,L.__ownerID=N,L.__hash=q,L}var IT;function Lf(){return IT||(IT=Zm(Je(),Ft()))}function jT(m,x,N){var q=m._map,L=m._list,Y=q.get(x),ae=Y!==void 0,ye,xe;if(N===E){if(!ae)return m;L.size>=S&&L.size>=q.size*2?(xe=L.filter(function(Re,ke){return Re!==void 0&&Y!==ke}),ye=xe.toKeyedSeq().map(function(Re){return Re[0]}).flip().toMap(),m.__ownerID&&(ye.__ownerID=xe.__ownerID=m.__ownerID)):(ye=q.remove(x),xe=Y===L.size-1?L.pop():L.set(Y,void 0))}else if(ae){if(N===L.get(Y)[1])return m;ye=q,xe=L.set(Y,[x,N])}else ye=q.set(x,L.size),xe=L.set(L.size,[x,N]);return m.__ownerID?(m.size=ye.size,m._map=ye,m._list=xe,m.__hash=void 0,m):Zm(ye,xe)}n(ci,Be);function ci(m,x){this._iter=m,this._useKeys=x,this.size=m.size}ci.prototype.get=function(m,x){return this._iter.get(m,x)},ci.prototype.has=function(m){return this._iter.has(m)},ci.prototype.valueSeq=function(){return this._iter.valueSeq()},ci.prototype.reverse=function(){var m=this,x=Qm(this,!0);return this._useKeys||(x.valueSeq=function(){return m._iter.toSeq().reverse()}),x},ci.prototype.map=function(m,x){var N=this,q=kT(this,m,x);return this._useKeys||(q.valueSeq=function(){return N._iter.toSeq().map(m,x)}),q},ci.prototype.__iterate=function(m,x){var N=this,q;return this._iter.__iterate(this._useKeys?function(L,Y){return m(L,Y,N)}:(q=x?$T(this):0,function(L){return m(L,x?--q:q++,N)}),x)},ci.prototype.__iterator=function(m,x){if(this._useKeys)return this._iter.__iterator(m,x);var N=this._iter.__iterator(B,x),q=x?$T(this):0;return new te(function(){var L=N.next();return L.done?L:z(m,x?--q:q++,L.value,L)})},ci.prototype[v]=!0,n(Ao,_e);function Ao(m){this._iter=m,this.size=m.size}Ao.prototype.includes=function(m){return this._iter.includes(m)},Ao.prototype.__iterate=function(m,x){var N=this,q=0;return this._iter.__iterate(function(L){return m(L,q++,N)},x)},Ao.prototype.__iterator=function(m,x){var N=this._iter.__iterator(B,x),q=0;return new te(function(){var L=N.next();return L.done?L:z(m,q++,L.value,L)})},n(Oo,we);function Oo(m){this._iter=m,this.size=m.size}Oo.prototype.has=function(m){return this._iter.includes(m)},Oo.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(q){return m(q,q,N)},x)},Oo.prototype.__iterator=function(m,x){var N=this._iter.__iterator(B,x);return new te(function(){var q=N.next();return q.done?q:z(m,q.value,q.value,q)})},n(Co,Be);function Co(m){this._iter=m,this.size=m.size}Co.prototype.entrySeq=function(){return this._iter.toSeq()},Co.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(q){if(q){FT(q);var L=u(q);return m(L?q.get(1):q[1],L?q.get(0):q[0],N)}},x)},Co.prototype.__iterator=function(m,x){var N=this._iter.__iterator(B,x);return new te(function(){for(;;){var q=N.next();if(q.done)return q;var L=q.value;if(L){FT(L);var Y=u(L);return z(m,Y?L.get(0):L[0],Y?L.get(1):L[1],q)}}})},Ao.prototype.cacheResult=ci.prototype.cacheResult=Oo.prototype.cacheResult=Co.prototype.cacheResult=rg;function PT(m){var x=Xi(m);return x._iter=m,x.size=m.size,x.flip=function(){return m},x.reverse=function(){var N=m.reverse.apply(this);return N.flip=function(){return m.reverse()},N},x.has=function(N){return m.includes(N)},x.includes=function(N){return m.has(N)},x.cacheResult=rg,x.__iterateUncached=function(N,q){var L=this;return m.__iterate(function(Y,ae){return N(ae,Y,L)!==!1},q)},x.__iteratorUncached=function(N,q){if(N===J){var L=m.__iterator(N,q);return new te(function(){var Y=L.next();if(!Y.done){var ae=Y.value[0];Y.value[0]=Y.value[1],Y.value[1]=ae}return Y})}return m.__iterator(N===B?ne:B,q)},x}function kT(m,x,N){var q=Xi(m);return q.size=m.size,q.has=function(L){return m.has(L)},q.get=function(L,Y){var ae=m.get(L,E);return ae===E?Y:x.call(N,ae,L,m)},q.__iterateUncached=function(L,Y){var ae=this;return m.__iterate(function(ye,xe,Re){return L(x.call(N,ye,xe,Re),xe,ae)!==!1},Y)},q.__iteratorUncached=function(L,Y){var ae=m.__iterator(J,Y);return new te(function(){var ye=ae.next();if(ye.done)return ye;var xe=ye.value,Re=xe[0];return z(L,Re,x.call(N,xe[1],Re,m),ye)})},q}function Qm(m,x){var N=Xi(m);return N._iter=m,N.size=m.size,N.reverse=function(){return m},m.flip&&(N.flip=function(){var q=PT(m);return q.reverse=function(){return m.flip()},q}),N.get=function(q,L){return m.get(x?q:-1-q,L)},N.has=function(q){return m.has(x?q:-1-q)},N.includes=function(q){return m.includes(q)},N.cacheResult=rg,N.__iterate=function(q,L){var Y=this;return m.__iterate(function(ae,ye){return q(ae,ye,Y)},!L)},N.__iterator=function(q,L){return m.__iterator(q,!L)},N}function NT(m,x,N,q){var L=Xi(m);return q&&(L.has=function(Y){var ae=m.get(Y,E);return ae!==E&&!!x.call(N,ae,Y,m)},L.get=function(Y,ae){var ye=m.get(Y,E);return ye!==E&&x.call(N,ye,Y,m)?ye:ae}),L.__iterateUncached=function(Y,ae){var ye=this,xe=0;return m.__iterate(function(Re,ke,He){if(x.call(N,Re,ke,He))return xe++,Y(Re,q?ke:xe-1,ye)},ae),xe},L.__iteratorUncached=function(Y,ae){var ye=m.__iterator(J,ae),xe=0;return new te(function(){for(;;){var Re=ye.next();if(Re.done)return Re;var ke=Re.value,He=ke[0],Qe=ke[1];if(x.call(N,Qe,He,m))return z(Y,q?He:xe++,Qe,Re)}})},L}function zJ(m,x,N){var q=Ot().asMutable();return m.__iterate(function(L,Y){q.update(x.call(N,L,Y,m),0,function(ae){return ae+1})}),q.asImmutable()}function WJ(m,x,N){var q=c(m),L=(h(m)?Ar():Ot()).asMutable();m.__iterate(function(ae,ye){L.update(x.call(N,ae,ye,m),function(xe){return xe=xe||[],xe.push(q?[ye,ae]:ae),xe})});var Y=LT(m);return L.map(function(ae){return er(m,Y(ae))})}function eg(m,x,N,q){var L=m.size;if(x!==void 0&&(x=x|0),N!==void 0&&(N===1/0?N=L:N=N|0),ee(x,N,L))return m;var Y=H(x,L),ae=Q(N,L);if(Y!==Y||ae!==ae)return eg(m.toSeq().cacheResult(),x,N,q);var ye=ae-Y,xe;ye===ye&&(xe=ye<0?0:ye);var Re=Xi(m);return Re.size=xe===0?xe:m.size&&xe||void 0,!q&&se(m)&&xe>=0&&(Re.get=function(ke,He){return ke=M(this,ke),ke>=0&&ke<xe?m.get(ke+Y,He):He}),Re.__iterateUncached=function(ke,He){var Qe=this;if(xe===0)return 0;if(He)return this.cacheResult().__iterate(ke,He);var gt=0,Ct=!0,dr=0;return m.__iterate(function(ji,es){if(!(Ct&&(Ct=gt++<Y)))return dr++,ke(ji,q?es:dr-1,Qe)!==!1&&dr!==xe}),dr},Re.__iteratorUncached=function(ke,He){if(xe!==0&&He)return this.cacheResult().__iterator(ke,He);var Qe=xe!==0&&m.__iterator(ke,He),gt=0,Ct=0;return new te(function(){for(;gt++<Y;)Qe.next();if(++Ct>xe)return V();var dr=Qe.next();return q||ke===B?dr:ke===ne?z(ke,Ct-1,void 0,dr):z(ke,Ct-1,dr.value[1],dr)})},Re}function JJ(m,x,N){var q=Xi(m);return q.__iterateUncached=function(L,Y){var ae=this;if(Y)return this.cacheResult().__iterate(L,Y);var ye=0;return m.__iterate(function(xe,Re,ke){return x.call(N,xe,Re,ke)&&++ye&&L(xe,Re,ae)}),ye},q.__iteratorUncached=function(L,Y){var ae=this;if(Y)return this.cacheResult().__iterator(L,Y);var ye=m.__iterator(J,Y),xe=!0;return new te(function(){if(!xe)return V();var Re=ye.next();if(Re.done)return Re;var ke=Re.value,He=ke[0],Qe=ke[1];return x.call(N,Qe,He,ae)?L===J?Re:z(L,He,Qe,Re):(xe=!1,V())})},q}function MT(m,x,N,q){var L=Xi(m);return L.__iterateUncached=function(Y,ae){var ye=this;if(ae)return this.cacheResult().__iterate(Y,ae);var xe=!0,Re=0;return m.__iterate(function(ke,He,Qe){if(!(xe&&(xe=x.call(N,ke,He,Qe))))return Re++,Y(ke,q?He:Re-1,ye)}),Re},L.__iteratorUncached=function(Y,ae){var ye=this;if(ae)return this.cacheResult().__iterator(Y,ae);var xe=m.__iterator(J,ae),Re=!0,ke=0;return new te(function(){var He,Qe,gt;do{if(He=xe.next(),He.done)return q||Y===B?He:Y===ne?z(Y,ke++,void 0,He):z(Y,ke++,He.value[1],He);var Ct=He.value;Qe=Ct[0],gt=Ct[1],Re&&(Re=x.call(N,gt,Qe,ye))}while(Re);return Y===J?He:z(Y,Qe,gt,He)})},L}function HJ(m,x){var N=c(m),q=[m].concat(x).map(function(ae){return u(ae)?N&&(ae=s(ae)):ae=N?Me(ae):Xe(Array.isArray(ae)?ae:[ae]),ae}).filter(function(ae){return ae.size!==0});if(q.length===0)return m;if(q.length===1){var L=q[0];if(L===m||N&&c(L)||l(m)&&l(L))return L}var Y=new U(q);return N?Y=Y.toKeyedSeq():l(m)||(Y=Y.toSetSeq()),Y=Y.flatten(!0),Y.size=q.reduce(function(ae,ye){if(ae!==void 0){var xe=ye.size;if(xe!==void 0)return ae+xe}},0),Y}function DT(m,x,N){var q=Xi(m);return q.__iterateUncached=function(L,Y){var ae=0,ye=!1;function xe(Re,ke){var He=this;Re.__iterate(function(Qe,gt){return(!x||ke<x)&&u(Qe)?xe(Qe,ke+1):L(Qe,N?gt:ae++,He)===!1&&(ye=!0),!ye},Y)}return xe(m,0),ae},q.__iteratorUncached=function(L,Y){var ae=m.__iterator(L,Y),ye=[],xe=0;return new te(function(){for(;ae;){var Re=ae.next();if(Re.done!==!1){ae=ye.pop();continue}var ke=Re.value;if(L===J&&(ke=ke[1]),(!x||ye.length<x)&&u(ke))ye.push(ae),ae=ke.__iterator(L,Y);else return N?Re:z(L,xe++,ke,Re)}return V()})},q}function KJ(m,x,N){var q=LT(m);return m.toSeq().map(function(L,Y){return q(x.call(N,L,Y,m))}).flatten(!0)}function GJ(m,x){var N=Xi(m);return N.size=m.size&&m.size*2-1,N.__iterateUncached=function(q,L){var Y=this,ae=0;return m.__iterate(function(ye,xe){return(!ae||q(x,ae++,Y)!==!1)&&q(ye,ae++,Y)!==!1},L),ae},N.__iteratorUncached=function(q,L){var Y=m.__iterator(B,L),ae=0,ye;return new te(function(){return(!ye||ae%2)&&(ye=Y.next(),ye.done)?ye:ae%2?z(q,ae++,x):z(q,ae++,ye.value,ye)})},N}function Ro(m,x,N){x||(x=BT);var q=c(m),L=0,Y=m.toSeq().map(function(ae,ye){return[ye,ae,L++,N?N(ae,ye,m):ae]}).toArray();return Y.sort(function(ae,ye){return x(ae[3],ye[3])||ae[2]-ye[2]}).forEach(q?function(ae,ye){Y[ye].length=2}:function(ae,ye){Y[ye]=ae[1]}),q?Be(Y):l(m)?_e(Y):we(Y)}function Bf(m,x,N){if(x||(x=BT),N){var q=m.toSeq().map(function(L,Y){return[L,N(L,Y,m)]}).reduce(function(L,Y){return qT(x,L[1],Y[1])?Y:L});return q&&q[0]}else return m.reduce(function(L,Y){return qT(x,L,Y)?Y:L})}function qT(m,x,N){var q=m(N,x);return q===0&&N!==x&&(N==null||N!==N)||q>0}function tg(m,x,N){var q=Xi(m);return q.size=new U(N).map(function(L){return L.size}).min(),q.__iterate=function(L,Y){for(var ae=this.__iterator(B,Y),ye,xe=0;!(ye=ae.next()).done&&L(ye.value,xe++,this)!==!1;);return xe},q.__iteratorUncached=function(L,Y){var ae=N.map(function(Re){return Re=i(Re),Ce(Y?Re.reverse():Re)}),ye=0,xe=!1;return new te(function(){var Re;return xe||(Re=ae.map(function(ke){return ke.next()}),xe=Re.some(function(ke){return ke.done})),xe?V():z(L,ye++,x.apply(null,Re.map(function(ke){return ke.value})))})},q}function er(m,x){return se(m)?x:m.constructor(x)}function FT(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function $T(m){return Dr(m.size),F(m)}function LT(m){return c(m)?s:l(m)?a:o}function Xi(m){return Object.create((c(m)?Be:l(m)?_e:we).prototype)}function rg(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):je.prototype.cacheResult.call(this)}function BT(m,x){return m>x?1:m<x?-1:0}function UT(m){var x=Ce(m);if(!x){if(!he(m))throw new TypeError("Expected iterable or array-like: "+m);x=Ce(i(m))}return x}n(zn,wt);function zn(m,x){var N,q=function(ae){if(ae instanceof q)return ae;if(!(this instanceof q))return new q(ae);if(!N){N=!0;var ye=Object.keys(m);YJ(L,ye),L.size=ye.length,L._name=x,L._keys=ye,L._defaultValues=m}this._map=Ot(ae)},L=q.prototype=Object.create(Jr);return L.constructor=q,q}zn.prototype.toString=function(){return this.__toString(VT(this)+" {","}")},zn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},zn.prototype.get=function(m,x){if(!this.has(m))return x;var N=this._defaultValues[m];return this._map?this._map.get(m,N):N},zn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Uf(this,Je()))},zn.prototype.set=function(m,x){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+VT(this));if(this._map&&!this._map.has(m)){var N=this._defaultValues[m];if(x===N)return this}var q=this._map&&this._map.set(m,x);return this.__ownerID||q===this._map?this:Uf(this,q)},zn.prototype.remove=function(m){if(!this.has(m))return this;var x=this._map&&this._map.remove(m);return this.__ownerID||x===this._map?this:Uf(this,x)},zn.prototype.wasAltered=function(){return this._map.wasAltered()},zn.prototype.__iterator=function(m,x){var N=this;return s(this._defaultValues).map(function(q,L){return N.get(L)}).__iterator(m,x)},zn.prototype.__iterate=function(m,x){var N=this;return s(this._defaultValues).map(function(q,L){return N.get(L)}).__iterate(m,x)},zn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map&&this._map.__ensureOwner(m);return m?Uf(this,x,m):(this.__ownerID=m,this._map=x,this)};var Jr=zn.prototype;Jr[_]=Jr.remove,Jr.deleteIn=Jr.removeIn=Te.removeIn,Jr.merge=Te.merge,Jr.mergeWith=Te.mergeWith,Jr.mergeIn=Te.mergeIn,Jr.mergeDeep=Te.mergeDeep,Jr.mergeDeepWith=Te.mergeDeepWith,Jr.mergeDeepIn=Te.mergeDeepIn,Jr.setIn=Te.setIn,Jr.update=Te.update,Jr.updateIn=Te.updateIn,Jr.withMutations=Te.withMutations,Jr.asMutable=Te.asMutable,Jr.asImmutable=Te.asImmutable;function Uf(m,x,N){var q=Object.create(Object.getPrototypeOf(m));return q._map=x,q.__ownerID=N,q}function VT(m){return m._name||m.constructor.name||"Record"}function YJ(m,x){try{x.forEach(XJ.bind(void 0,m))}catch{}}function XJ(m,x){Object.defineProperty(m,x,{get:function(){return this.get(x)},set:function(N){Ie(this.__ownerID,"Cannot set on an immutable record."),this.set(x,N)}})}n(pr,Fe);function pr(m){return m==null?sg():ng(m)&&!h(m)?m:sg().withMutations(function(x){var N=o(m);Dr(N.size),N.forEach(function(q){return x.add(q)})})}pr.of=function(){return this(arguments)},pr.fromKeys=function(m){return this(s(m).keySeq())},pr.prototype.toString=function(){return this.__toString("Set {","}")},pr.prototype.has=function(m){return this._map.has(m)},pr.prototype.add=function(m){return ig(this,this._map.set(m,!0))},pr.prototype.remove=function(m){return ig(this,this._map.remove(m))},pr.prototype.clear=function(){return ig(this,this._map.clear())},pr.prototype.union=function(){var m=r.call(arguments,0);return m=m.filter(function(x){return x.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(x){for(var N=0;N<m.length;N++)o(m[N]).forEach(function(q){return x.add(q)})})},pr.prototype.intersect=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(q){m.every(function(L){return L.includes(q)})||N.remove(q)})})},pr.prototype.subtract=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(q){m.some(function(L){return L.includes(q)})&&N.remove(q)})})},pr.prototype.merge=function(){return this.union.apply(this,arguments)},pr.prototype.mergeWith=function(m){var x=r.call(arguments,1);return this.union.apply(this,x)},pr.prototype.sort=function(m){return Zi(Ro(this,m))},pr.prototype.sortBy=function(m,x){return Zi(Ro(this,x,m))},pr.prototype.wasAltered=function(){return this._map.wasAltered()},pr.prototype.__iterate=function(m,x){var N=this;return this._map.__iterate(function(q,L){return m(L,L,N)},x)},pr.prototype.__iterator=function(m,x){return this._map.map(function(N,q){return q}).__iterator(m,x)},pr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m);return m?this.__make(x,m):(this.__ownerID=m,this._map=x,this)};function ng(m){return!!(m&&m[zT])}pr.isSet=ng;var zT="@@__IMMUTABLE_SET__@@",Wn=pr.prototype;Wn[zT]=!0,Wn[_]=Wn.remove,Wn.mergeDeep=Wn.merge,Wn.mergeDeepWith=Wn.mergeWith,Wn.withMutations=Te.withMutations,Wn.asMutable=Te.asMutable,Wn.asImmutable=Te.asImmutable,Wn.__empty=sg,Wn.__make=WT;function ig(m,x){return m.__ownerID?(m.size=x.size,m._map=x,m):x===m._map?m:x.size===0?m.__empty():m.__make(x)}function WT(m,x){var N=Object.create(Wn);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var JT;function sg(){return JT||(JT=WT(Je()))}n(Zi,pr);function Zi(m){return m==null?ag():HT(m)?m:ag().withMutations(function(x){var N=o(m);Dr(N.size),N.forEach(function(q){return x.add(q)})})}Zi.of=function(){return this(arguments)},Zi.fromKeys=function(m){return this(s(m).keySeq())},Zi.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function HT(m){return ng(m)&&h(m)}Zi.isOrderedSet=HT;var Vf=Zi.prototype;Vf[v]=!0,Vf.__empty=ag,Vf.__make=KT;function KT(m,x){var N=Object.create(Vf);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var GT;function ag(){return GT||(GT=KT(Lf()))}n(Cr,Kt);function Cr(m){return m==null?og():YT(m)?m:og().unshiftAll(m)}Cr.of=function(){return this(arguments)},Cr.prototype.toString=function(){return this.__toString("Stack [","]")},Cr.prototype.get=function(m,x){var N=this._head;for(m=M(this,m);N&&m--;)N=N.next;return N?N.value:x},Cr.prototype.peek=function(){return this._head&&this._head.value},Cr.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,x=this._head,N=arguments.length-1;N>=0;N--)x={value:arguments[N],next:x};return this.__ownerID?(this.size=m,this._head=x,this.__hash=void 0,this.__altered=!0,this):Wu(m,x)},Cr.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;Dr(m.size);var x=this.size,N=this._head;return m.reverse().forEach(function(q){x++,N={value:q,next:N}}),this.__ownerID?(this.size=x,this._head=N,this.__hash=void 0,this.__altered=!0,this):Wu(x,N)},Cr.prototype.pop=function(){return this.slice(1)},Cr.prototype.unshift=function(){return this.push.apply(this,arguments)},Cr.prototype.unshiftAll=function(m){return this.pushAll(m)},Cr.prototype.shift=function(){return this.pop.apply(this,arguments)},Cr.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):og()},Cr.prototype.slice=function(m,x){if(ee(m,x,this.size))return this;var N=H(m,this.size),q=Q(x,this.size);if(q!==this.size)return Kt.prototype.slice.call(this,m,x);for(var L=this.size-N,Y=this._head;N--;)Y=Y.next;return this.__ownerID?(this.size=L,this._head=Y,this.__hash=void 0,this.__altered=!0,this):Wu(L,Y)},Cr.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Wu(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},Cr.prototype.__iterate=function(m,x){if(x)return this.reverse().__iterate(m);for(var N=0,q=this._head;q&&m(q.value,N++,this)!==!1;)q=q.next;return N},Cr.prototype.__iterator=function(m,x){if(x)return this.reverse().__iterator(m);var N=0,q=this._head;return new te(function(){if(q){var L=q.value;return q=q.next,z(m,N++,L)}return V()})};function YT(m){return!!(m&&m[XT])}Cr.isStack=YT;var XT="@@__IMMUTABLE_STACK__@@",To=Cr.prototype;To[XT]=!0,To.withMutations=Te.withMutations,To.asMutable=Te.asMutable,To.asImmutable=Te.asImmutable,To.wasAltered=Te.wasAltered;function Wu(m,x,N,q){var L=Object.create(To);return L.size=m,L._head=x,L.__ownerID=N,L.__hash=q,L.__altered=!1,L}var ZT;function og(){return ZT||(ZT=Wu(0))}function Qi(m,x){var N=function(q){m.prototype[q]=x[q]};return Object.keys(x).forEach(N),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(x).forEach(N),m}i.Iterator=te,Qi(i,{toArray:function(){Dr(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(x,N){m[N]=x}),m},toIndexedSeq:function(){return new Ao(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 ci(this,!0)},toMap:function(){return Ot(this.toKeyedSeq())},toObject:function(){Dr(this.size);var m={};return this.__iterate(function(x,N){m[N]=x}),m},toOrderedMap:function(){return Ar(this.toKeyedSeq())},toOrderedSet:function(){return Zi(c(this)?this.valueSeq():this)},toSet:function(){return pr(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Oo(this)},toSeq:function(){return l(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Cr(c(this)?this.valueSeq():this)},toList:function(){return bt(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,x){return this.size===0?m+x:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+x},concat:function(){var m=r.call(arguments,0);return er(this,HJ(this,m))},includes:function(m){return this.some(function(x){return ot(x,m)})},entries:function(){return this.__iterator(J)},every:function(m,x){Dr(this.size);var N=!0;return this.__iterate(function(q,L,Y){if(!m.call(x,q,L,Y))return N=!1,!1}),N},filter:function(m,x){return er(this,NT(this,m,x,!0))},find:function(m,x,N){var q=this.findEntry(m,x);return q?q[1]:N},forEach:function(m,x){return Dr(this.size),this.__iterate(x?m.bind(x):m)},join:function(m){Dr(this.size),m=m!==void 0?""+m:",";var x="",N=!0;return this.__iterate(function(q){N?N=!1:x+=m,x+=q!=null?q.toString():""}),x},keys:function(){return this.__iterator(ne)},map:function(m,x){return er(this,kT(this,m,x))},reduce:function(m,x,N){Dr(this.size);var q,L;return arguments.length<2?L=!0:q=x,this.__iterate(function(Y,ae,ye){L?(L=!1,q=Y):q=m.call(N,q,Y,ae,ye)}),q},reduceRight:function(m,x,N){var q=this.toKeyedSeq().reverse();return q.reduce.apply(q,arguments)},reverse:function(){return er(this,Qm(this,!0))},slice:function(m,x){return er(this,eg(this,m,x,!0))},some:function(m,x){return!this.every(Wf(m),x)},sort:function(m){return er(this,Ro(this,m))},values:function(){return this.__iterator(B)},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,x){return F(m?this.toSeq().filter(m,x):this)},countBy:function(m,x){return zJ(this,m,x)},equals:function(m){return Mt(this,m)},entrySeq:function(){var m=this;if(m._cache)return new U(m._cache);var x=m.toSeq().map(QJ).toIndexedSeq();return x.fromEntrySeq=function(){return m.toSeq()},x},filterNot:function(m,x){return this.filter(Wf(m),x)},findEntry:function(m,x,N){var q=N;return this.__iterate(function(L,Y,ae){if(m.call(x,L,Y,ae))return q=[Y,L],!1}),q},findKey:function(m,x){var N=this.findEntry(m,x);return N&&N[0]},findLast:function(m,x,N){return this.toKeyedSeq().reverse().find(m,x,N)},findLastEntry:function(m,x,N){return this.toKeyedSeq().reverse().findEntry(m,x,N)},findLastKey:function(m,x){return this.toKeyedSeq().reverse().findKey(m,x)},first:function(){return this.find(G)},flatMap:function(m,x){return er(this,KJ(this,m,x))},flatten:function(m){return er(this,DT(this,m,!0))},fromEntrySeq:function(){return new Co(this)},get:function(m,x){return this.find(function(N,q){return ot(q,m)},void 0,x)},getIn:function(m,x){for(var N=this,q=UT(m),L;!(L=q.next()).done;){var Y=L.value;if(N=N&&N.get?N.get(Y,E):E,N===E)return x}return N},groupBy:function(m,x){return WJ(this,m,x)},has:function(m){return this.get(m,E)!==E},hasIn:function(m){return this.getIn(m,E)!==E},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(x){return m.includes(x)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keyOf:function(m){return this.findKey(function(x){return ot(x,m)})},keySeq:function(){return this.toSeq().map(ZJ).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(m){return this.toKeyedSeq().reverse().keyOf(m)},max:function(m){return Bf(this,m)},maxBy:function(m,x){return Bf(this,x,m)},min:function(m){return Bf(this,m?QT(m):tI)},minBy:function(m,x){return Bf(this,x?QT(x):tI,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return er(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,x){return er(this,MT(this,m,x,!0))},skipUntil:function(m,x){return this.skipWhile(Wf(m),x)},sortBy:function(m,x){return er(this,Ro(this,x,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return er(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,x){return er(this,JJ(this,m,x))},takeUntil:function(m,x){return this.takeWhile(Wf(m),x)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=tH(this))}});var yn=i.prototype;yn[d]=!0,yn[ce]=yn.values,yn.__toJS=yn.toArray,yn.__toStringMapper=eI,yn.inspect=yn.toSource=function(){return this.toString()},yn.chain=yn.flatMap,yn.contains=yn.includes,Qi(s,{flip:function(){return er(this,PT(this))},mapEntries:function(m,x){var N=this,q=0;return er(this,this.toSeq().map(function(L,Y){return m.call(x,[Y,L],q++,N)}).fromEntrySeq())},mapKeys:function(m,x){var N=this;return er(this,this.toSeq().flip().map(function(q,L){return m.call(x,q,L,N)}).flip())}});var zf=s.prototype;zf[g]=!0,zf[ce]=yn.entries,zf.__toJS=yn.toObject,zf.__toStringMapper=function(m,x){return JSON.stringify(x)+": "+eI(m)},Qi(a,{toKeyedSeq:function(){return new ci(this,!1)},filter:function(m,x){return er(this,NT(this,m,x,!1))},findIndex:function(m,x){var N=this.findEntry(m,x);return N?N[0]:-1},indexOf:function(m){var x=this.keyOf(m);return x===void 0?-1:x},lastIndexOf:function(m){var x=this.lastKeyOf(m);return x===void 0?-1:x},reverse:function(){return er(this,Qm(this,!1))},slice:function(m,x){return er(this,eg(this,m,x,!1))},splice:function(m,x){var N=arguments.length;if(x=Math.max(x|0,0),N===0||N===2&&!x)return this;m=H(m,m<0?this.count():this.size);var q=this.slice(0,m);return er(this,N===1?q:q.concat(P(arguments,2),this.slice(m+x)))},findLastIndex:function(m,x){var N=this.findLastEntry(m,x);return N?N[0]:-1},first:function(){return this.get(0)},flatten:function(m){return er(this,DT(this,m,!1))},get:function(m,x){return m=M(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?x:this.find(function(N,q){return q===m},void 0,x)},has:function(m){return m=M(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return er(this,GJ(this,m))},interleave:function(){var m=[this].concat(P(arguments)),x=tg(this.toSeq(),_e.of,m),N=x.flatten(!0);return x.size&&(N.size=x.size*m.length),er(this,N)},keySeq:function(){return qe(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(m,x){return er(this,MT(this,m,x,!1))},zip:function(){var m=[this].concat(P(arguments));return er(this,tg(this,eH,m))},zipWith:function(m){var x=P(arguments);return x[0]=this,er(this,tg(this,m,x))}}),a.prototype[y]=!0,a.prototype[v]=!0,Qi(o,{get:function(m,x){return this.has(m)?m:x},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=yn.includes,o.prototype.contains=o.prototype.includes,Qi(Be,s.prototype),Qi(_e,a.prototype),Qi(we,o.prototype),Qi(wt,s.prototype),Qi(Kt,a.prototype),Qi(Fe,o.prototype);function ZJ(m,x){return x}function QJ(m,x){return[x,m]}function Wf(m){return function(){return!m.apply(this,arguments)}}function QT(m){return function(){return-m.apply(this,arguments)}}function eI(m){return typeof m=="string"?JSON.stringify(m):String(m)}function eH(){return P(arguments)}function tI(m,x){return m<x?1:m>x?-1:0}function tH(m){if(m.size===1/0)return 0;var x=h(m),N=c(m),q=x?1:0,L=m.__iterate(N?x?function(Y,ae){q=31*q+rI(it(Y),it(ae))|0}:function(Y,ae){q=q+rI(it(Y),it(ae))|0}:x?function(Y){q=31*q+it(Y)|0}:function(Y){q=q+it(Y)|0});return rH(L,q)}function rH(m,x){return x=Ke(x,3432918353),x=Ke(x<<15|x>>>-15,461845907),x=Ke(x<<13|x>>>-13,5),x=(x+3864292196|0)^m,x=Ke(x^x>>>16,2246822507),x=Ke(x^x>>>13,3266489909),x=lt(x^x>>>16),x}function rI(m,x){return m^x+2654435769+(m<<6)+(m>>2)|0}var nH={Iterable:i,Seq:je,Collection:dt,Map:Ot,OrderedMap:Ar,List:bt,Stack:Cr,Set:pr,OrderedSet:Zi,Record:zn,Range:qe,Repeat:pt,is:ot,fromJS:pe};return nH})})(xp)),xp.exports}var La=HO();const yK=We.getDefaultExportFromCjs(La);var Hu={},Xf={exports:{}},Os={},Zf={exports:{}},_j;function L6(){return _j||(_j=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})(Zf,Zf.exports)),Zf.exports}var Qf={exports:{}},Ej;function vK(){return Ej||(Ej=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=HO(),n=a(r),i=L6(),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})(Qf,Qf.exports)),Qf.exports}var ep={exports:{}},Sj;function bK(){return Sj||(Sj=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})(ep,ep.exports)),ep.exports}var wj;function _K(){if(wj)return Os;wj=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.validateNextState=Os.getUnexpectedInvocationParameterMessage=Os.getStateName=void 0;var e=L6(),t=a(e),r=vK(),n=a(r),i=bK(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}return Os.getStateName=t.default,Os.getUnexpectedInvocationParameterMessage=n.default,Os.validateNextState=s.default,Os}var xj;function EK(){return xj||(xj=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=HO(),n=s(r),i=_K();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})(Xf,Xf.exports)),Xf.exports}var Aj;function SK(){if(Aj)return Hu;Aj=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.combineReducers=void 0;var e=EK(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Hu.combineReducers=t.default,Hu}var wK=SK(),fy,Oj;function xK(){if(Oj)return fy;Oj=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 fy={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)}},fy}var AK=xK(),py,Cj;function OK(){if(Cj)return py;Cj=1;function e(){this.__data__=[],this.size=0}return py=e,py}var dy,Rj;function yu(){if(Rj)return dy;Rj=1;function e(t,r){return t===r||t!==t&&r!==r}return dy=e,dy}var hy,Tj;function lh(){if(Tj)return hy;Tj=1;var e=yu();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return hy=t,hy}var my,Ij;function CK(){if(Ij)return my;Ij=1;var e=lh(),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 my=n,my}var gy,jj;function RK(){if(jj)return gy;jj=1;var e=lh();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return gy=t,gy}var yy,Pj;function TK(){if(Pj)return yy;Pj=1;var e=lh();function t(r){return e(this.__data__,r)>-1}return yy=t,yy}var vy,kj;function IK(){if(kj)return vy;kj=1;var e=lh();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 vy=t,vy}var by,Nj;function fh(){if(Nj)return by;Nj=1;var e=OK(),t=CK(),r=RK(),n=TK(),i=IK();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,by=s,by}var _y,Mj;function jK(){if(Mj)return _y;Mj=1;var e=fh();function t(){this.__data__=new e,this.size=0}return _y=t,_y}var Ey,Dj;function PK(){if(Dj)return Ey;Dj=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ey=e,Ey}var Sy,qj;function kK(){if(qj)return Sy;qj=1;function e(t){return this.__data__.get(t)}return Sy=e,Sy}var wy,Fj;function NK(){if(Fj)return wy;Fj=1;function e(t){return this.__data__.has(t)}return wy=e,wy}var xy,$j;function B6(){if($j)return xy;$j=1;var e=typeof We.commonjsGlobal=="object"&&We.commonjsGlobal&&We.commonjsGlobal.Object===Object&&We.commonjsGlobal;return xy=e,xy}var Ay,Lj;function Cn(){if(Lj)return Ay;Lj=1;var e=B6(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ay=r,Ay}var Oy,Bj;function vu(){if(Bj)return Oy;Bj=1;var e=Cn(),t=e.Symbol;return Oy=t,Oy}var Cy,Uj;function MK(){if(Uj)return Cy;Uj=1;var e=vu(),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 Cy=s,Cy}var Ry,Vj;function DK(){if(Vj)return Ry;Vj=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ry=r,Ry}var Ty,zj;function ds(){if(zj)return Ty;zj=1;var e=vu(),t=MK(),r=DK(),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 Ty=a,Ty}var Iy,Wj;function Rn(){if(Wj)return Iy;Wj=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Iy=e,Iy}var jy,Jj;function nl(){if(Jj)return jy;Jj=1;var e=ds(),t=Rn(),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 jy=a,jy}var Py,Hj;function qK(){if(Hj)return Py;Hj=1;var e=Cn(),t=e["__core-js_shared__"];return Py=t,Py}var ky,Kj;function FK(){if(Kj)return ky;Kj=1;var e=qK(),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 ky=r,ky}var Ny,Gj;function U6(){if(Gj)return Ny;Gj=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 Ny=r,Ny}var My,Yj;function $K(){if(Yj)return My;Yj=1;var e=nl(),t=FK(),r=Rn(),n=U6(),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 My=f,My}var Dy,Xj;function LK(){if(Xj)return Dy;Xj=1;function e(t,r){return t==null?void 0:t[r]}return Dy=e,Dy}var qy,Zj;function ao(){if(Zj)return qy;Zj=1;var e=$K(),t=LK();function r(n,i){var s=t(n,i);return e(s)?s:void 0}return qy=r,qy}var Fy,Qj;function KO(){if(Qj)return Fy;Qj=1;var e=ao(),t=Cn(),r=e(t,"Map");return Fy=r,Fy}var $y,eP;function ph(){if(eP)return $y;eP=1;var e=ao(),t=e(Object,"create");return $y=t,$y}var Ly,tP;function BK(){if(tP)return Ly;tP=1;var e=ph();function t(){this.__data__=e?e(null):{},this.size=0}return Ly=t,Ly}var By,rP;function UK(){if(rP)return By;rP=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return By=e,By}var Uy,nP;function VK(){if(nP)return Uy;nP=1;var e=ph(),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 Uy=i,Uy}var Vy,iP;function zK(){if(iP)return Vy;iP=1;var e=ph(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var s=this.__data__;return e?s[i]!==void 0:r.call(s,i)}return Vy=n,Vy}var zy,sP;function WK(){if(sP)return zy;sP=1;var e=ph(),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 zy=r,zy}var Wy,aP;function JK(){if(aP)return Wy;aP=1;var e=BK(),t=UK(),r=VK(),n=zK(),i=WK();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,Wy=s,Wy}var Jy,oP;function HK(){if(oP)return Jy;oP=1;var e=JK(),t=fh(),r=KO();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Jy=n,Jy}var Hy,uP;function KK(){if(uP)return Hy;uP=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Hy=e,Hy}var Ky,cP;function dh(){if(cP)return Ky;cP=1;var e=KK();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ky=t,Ky}var Gy,lP;function GK(){if(lP)return Gy;lP=1;var e=dh();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Gy=t,Gy}var Yy,fP;function YK(){if(fP)return Yy;fP=1;var e=dh();function t(r){return e(this,r).get(r)}return Yy=t,Yy}var Xy,pP;function XK(){if(pP)return Xy;pP=1;var e=dh();function t(r){return e(this,r).has(r)}return Xy=t,Xy}var Zy,dP;function ZK(){if(dP)return Zy;dP=1;var e=dh();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 Zy=t,Zy}var Qy,hP;function GO(){if(hP)return Qy;hP=1;var e=HK(),t=GK(),r=YK(),n=XK(),i=ZK();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,Qy=s,Qy}var ev,mP;function QK(){if(mP)return ev;mP=1;var e=fh(),t=KO(),r=GO(),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 ev=i,ev}var tv,gP;function hh(){if(gP)return tv;gP=1;var e=fh(),t=jK(),r=PK(),n=kK(),i=NK(),s=QK();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,tv=a,tv}var rv,yP;function V6(){if(yP)return rv;yP=1;var e=ao(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return rv=t,rv}var nv,vP;function YO(){if(vP)return nv;vP=1;var e=V6();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return nv=t,nv}var iv,bP;function z6(){if(bP)return iv;bP=1;var e=YO(),t=yu();function r(n,i,s){(s!==void 0&&!t(n[i],s)||s===void 0&&!(i in n))&&e(n,i,s)}return iv=r,iv}var sv,_P;function eG(){if(_P)return sv;_P=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 sv=e,sv}var av,EP;function W6(){if(EP)return av;EP=1;var e=eG(),t=e();return av=t,av}var sc={exports:{}};sc.exports;var SP;function J6(){return SP||(SP=1,(function(e,t){var r=Cn(),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})(sc,sc.exports)),sc.exports}var ov,wP;function H6(){if(wP)return ov;wP=1;var e=Cn(),t=e.Uint8Array;return ov=t,ov}var uv,xP;function XO(){if(xP)return uv;xP=1;var e=H6();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return uv=t,uv}var cv,AP;function K6(){if(AP)return cv;AP=1;var e=XO();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return cv=t,cv}var lv,OP;function il(){if(OP)return lv;OP=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 lv=e,lv}var fv,CP;function mh(){if(CP)return fv;CP=1;var e=Rn(),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 fv=r,fv}var pv,RP;function G6(){if(RP)return pv;RP=1;function e(t,r){return function(n){return t(r(n))}}return pv=e,pv}var dv,TP;function ZO(){if(TP)return dv;TP=1;var e=G6(),t=e(Object.getPrototypeOf,Object);return dv=t,dv}var hv,IP;function gh(){if(IP)return hv;IP=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return hv=t,hv}var mv,jP;function Y6(){if(jP)return mv;jP=1;var e=mh(),t=ZO(),r=gh();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return mv=n,mv}var gv,PP;function Tn(){if(PP)return gv;PP=1;function e(t){return t!=null&&typeof t=="object"}return gv=e,gv}var yv,kP;function tG(){if(kP)return yv;kP=1;var e=ds(),t=Tn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return yv=n,yv}var vv,NP;function sl(){if(NP)return vv;NP=1;var e=tG(),t=Tn(),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 vv=s,vv}var bv,MP;function Wr(){if(MP)return bv;MP=1;var e=Array.isArray;return bv=e,bv}var _v,DP;function QO(){if(DP)return _v;DP=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return _v=t,_v}var Ev,qP;function oo(){if(qP)return Ev;qP=1;var e=nl(),t=QO();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ev=r,Ev}var Sv,FP;function rG(){if(FP)return Sv;FP=1;var e=oo(),t=Tn();function r(n){return t(n)&&e(n)}return Sv=r,Sv}var ac={exports:{}},wv,$P;function nG(){if($P)return wv;$P=1;function e(){return!1}return wv=e,wv}ac.exports;var LP;function al(){return LP||(LP=1,(function(e,t){var r=Cn(),n=nG(),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})(ac,ac.exports)),ac.exports}var xv,BP;function yh(){if(BP)return xv;BP=1;var e=ds(),t=ZO(),r=Tn(),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 xv=c,xv}var Av,UP;function iG(){if(UP)return Av;UP=1;var e=ds(),t=QO(),r=Tn(),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]",_="[object DataView]",b="[object Float32Array]",S="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",R="[object Uint8Array]",I="[object Uint8ClampedArray]",O="[object Uint16Array]",D="[object Uint32Array]",P={};P[b]=P[S]=P[w]=P[E]=P[A]=P[R]=P[I]=P[O]=P[D]=!0,P[n]=P[i]=P[v]=P[s]=P[_]=P[a]=P[o]=P[u]=P[c]=P[l]=P[f]=P[h]=P[d]=P[g]=P[y]=!1;function F(M){return r(M)&&t(M.length)&&!!P[e(M)]}return Av=F,Av}var Ov,VP;function e2(){if(VP)return Ov;VP=1;function e(t){return function(r){return t(r)}}return Ov=e,Ov}var oc={exports:{}};oc.exports;var zP;function t2(){return zP||(zP=1,(function(e,t){var r=B6(),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})(oc,oc.exports)),oc.exports}var Cv,WP;function vh(){if(WP)return Cv;WP=1;var e=iG(),t=e2(),r=t2(),n=r&&r.isTypedArray,i=n?t(n):e;return Cv=i,Cv}var Rv,JP;function X6(){if(JP)return Rv;JP=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Rv=e,Rv}var Tv,HP;function bh(){if(HP)return Tv;HP=1;var e=YO(),t=yu(),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 Tv=i,Tv}var Iv,KP;function bu(){if(KP)return Iv;KP=1;var e=bh(),t=YO();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 Iv=r,Iv}var jv,GP;function sG(){if(GP)return jv;GP=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return jv=e,jv}var Pv,YP;function ol(){if(YP)return Pv;YP=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 Pv=r,Pv}var kv,XP;function Z6(){if(XP)return kv;XP=1;var e=sG(),t=sl(),r=Wr(),n=al(),i=ol(),s=vh(),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):[],_=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,_)))&&v.push(b);return v}return kv=u,kv}var Nv,ZP;function aG(){if(ZP)return Nv;ZP=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Nv=e,Nv}var Mv,QP;function oG(){if(QP)return Mv;QP=1;var e=Rn(),t=gh(),r=aG(),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 Mv=s,Mv}var Dv,ek;function ul(){if(ek)return Dv;ek=1;var e=Z6(),t=oG(),r=oo();function n(i){return r(i)?e(i,!0):t(i)}return Dv=n,Dv}var qv,tk;function uG(){if(tk)return qv;tk=1;var e=bu(),t=ul();function r(n){return e(n,t(n))}return qv=r,qv}var Fv,rk;function cG(){if(rk)return Fv;rk=1;var e=z6(),t=J6(),r=K6(),n=il(),i=Y6(),s=sl(),a=Wr(),o=rG(),u=al(),c=nl(),l=Rn(),f=yh(),h=vh(),d=X6(),g=uG();function y(v,_,b,S,w,E,A){var R=d(v,b),I=d(_,b),O=A.get(I);if(O){e(v,b,O);return}var D=E?E(R,I,b+"",v,_,A):void 0,P=D===void 0;if(P){var F=a(I),M=!F&&u(I),G=!F&&!M&&h(I);D=I,F||M||G?a(R)?D=R:o(R)?D=n(R):M?(P=!1,D=t(I,!0)):G?(P=!1,D=r(I,!0)):D=[]:f(I)||s(I)?(D=R,s(R)?D=g(R):(!l(R)||c(R))&&(D=i(I))):P=!1}P&&(A.set(I,D),w(D,I,S,E,A),A.delete(I)),e(v,b,D)}return Fv=y,Fv}var $v,nk;function lG(){if(nk)return $v;nk=1;var e=hh(),t=z6(),r=W6(),n=cG(),i=Rn(),s=ul(),a=X6();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 $v=o,$v}var Lv,ik;function cl(){if(ik)return Lv;ik=1;function e(t){return t}return Lv=e,Lv}var Bv,sk;function r2(){if(sk)return Bv;sk=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 Bv=e,Bv}var Uv,ak;function Q6(){if(ak)return Uv;ak=1;var e=r2(),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 Uv=r,Uv}var Vv,ok;function e8(){if(ok)return Vv;ok=1;function e(t){return function(){return t}}return Vv=e,Vv}var zv,uk;function fG(){if(uk)return zv;uk=1;var e=e8(),t=V6(),r=cl(),n=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return zv=n,zv}var Wv,ck;function t8(){if(ck)return Wv;ck=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 Wv=n,Wv}var Jv,lk;function n2(){if(lk)return Jv;lk=1;var e=fG(),t=t8(),r=t(e);return Jv=r,Jv}var Hv,fk;function pG(){if(fk)return Hv;fk=1;var e=cl(),t=Q6(),r=n2();function n(i,s){return r(t(i,s,e),i+"")}return Hv=n,Hv}var Kv,pk;function r8(){if(pk)return Kv;pk=1;var e=yu(),t=oo(),r=ol(),n=Rn();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 Kv=i,Kv}var Gv,dk;function dG(){if(dk)return Gv;dk=1;var e=pG(),t=r8();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 Gv=r,Gv}var Yv,hk;function hG(){if(hk)return Yv;hk=1;var e=lG(),t=dG(),r=t(function(n,i,s){e(n,i,s)});return Yv=r,Yv}var mG=hG();const gG=We.getDefaultExportFromCjs(mG);var Xv,mk;function i2(){if(mk)return Xv;mk=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 Xv=e,Xv}var Zv,gk;function ll(){if(gk)return Zv;gk=1;var e=ds(),t=Tn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Zv=n,Zv}var Qv,yk;function yG(){if(yk)return Qv;yk=1;var e=vu(),t=i2(),r=Wr(),n=ll(),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 Qv=a,Qv}var e0,vk;function $s(){if(vk)return e0;vk=1;var e=yG();function t(r){return r==null?"":e(r)}return e0=t,e0}var t0,bk;function n8(){if(bk)return t0;bk=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 t0=e,t0}var r0,_k;function vG(){if(_k)return r0;_k=1;var e=n8();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 r0=t,r0}var n0,Ek;function i8(){if(Ek)return n0;Ek=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 n0=u,n0}var i0,Sk;function bG(){if(Sk)return i0;Sk=1;function e(t){return t.split("")}return i0=e,i0}var s0,wk;function _G(){if(wk)return s0;wk=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+")*",_=y+g+v,b="(?:"+[l+o+"?",o,f,h,a].join("|")+")",S=RegExp(u+"(?="+u+")|"+b+_,"g");function w(E){return E.match(S)||[]}return s0=w,s0}var a0,xk;function EG(){if(xk)return a0;xk=1;var e=bG(),t=i8(),r=_G();function n(i){return t(i)?r(i):e(i)}return a0=n,a0}var o0,Ak;function SG(){if(Ak)return o0;Ak=1;var e=vG(),t=i8(),r=EG(),n=$s();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 o0=i,o0}var u0,Ok;function s8(){if(Ok)return u0;Ok=1;var e=SG(),t=e("toUpperCase");return u0=t,u0}var c0,Ck;function wG(){if(Ck)return c0;Ck=1;var e=$s(),t=s8();function r(n){return t(e(n).toLowerCase())}return c0=r,c0}var l0,Rk;function a8(){if(Rk)return l0;Rk=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 l0=e,l0}var f0,Tk;function xG(){if(Tk)return f0;Tk=1;function e(t){return function(r){return t==null?void 0:t[r]}}return f0=e,f0}var p0,Ik;function AG(){if(Ik)return p0;Ik=1;var e=xG(),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 p0=r,p0}var d0,jk;function OG(){if(jk)return d0;jk=1;var e=AG(),t=$s(),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 d0=c,d0}var h0,Pk;function CG(){if(Pk)return h0;Pk=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return h0=t,h0}var m0,kk;function RG(){if(kk)return m0;kk=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 m0=t,m0}var g0,Nk;function TG(){if(Nk)return g0;Nk=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+"]",_="\\d+",b="["+s+"]",S="["+a+"]",w="[^"+e+d+_+s+a+f+"]",E="\\ud83c[\\udffb-\\udfff]",A="(?:"+v+"|"+E+")",R="[^"+e+"]",I="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",D="["+f+"]",P="\\u200d",F="(?:"+S+"|"+w+")",M="(?:"+D+"|"+w+")",G="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",ee="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",H=A+"?",Q="["+h+"]?",re="(?:"+P+"(?:"+[R,I,O].join("|")+")"+Q+H+")*",ne="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",B="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=Q+H+re,ie="(?:"+[b,I,O].join("|")+")"+J,oe=RegExp([D+"?"+S+"+"+G+"(?="+[y,D,"$"].join("|")+")",M+"+"+ee+"(?="+[y,D+F,"$"].join("|")+")",D+"?"+F+"+"+G,D+"+"+ee,B,ne,_,ie].join("|"),"g");function ce(te){return te.match(oe)||[]}return g0=ce,g0}var y0,Mk;function IG(){if(Mk)return y0;Mk=1;var e=CG(),t=RG(),r=$s(),n=TG();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 y0=i,y0}var v0,Dk;function jG(){if(Dk)return v0;Dk=1;var e=a8(),t=OG(),r=IG(),n="['’]",i=RegExp(n,"g");function s(a){return function(o){return e(r(t(o).replace(i,"")),a,"")}}return v0=s,v0}var b0,qk;function PG(){if(qk)return b0;qk=1;var e=wG(),t=jG(),r=t(function(n,i,s){return i=i.toLowerCase(),n+(s?e(i):i)});return b0=r,b0}PG();s8();var _0,Fk;function o8(){if(Fk)return _0;Fk=1;var e=GO(),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,_0=r,_0}var kG=o8();const NG=We.getDefaultExportFromCjs(kG);var E0,$k;function MG(){if($k)return E0;$k=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return E0=t,E0}var S0,Lk;function DG(){if(Lk)return S0;Lk=1;function e(t){return this.__data__.has(t)}return S0=e,S0}var w0,Bk;function qG(){if(Bk)return w0;Bk=1;var e=GO(),t=MG(),r=DG();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,w0=n,w0}var x0,Uk;function u8(){if(Uk)return x0;Uk=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 x0=e,x0}var A0,Vk;function FG(){if(Vk)return A0;Vk=1;function e(t,r){return t.has(r)}return A0=e,A0}var O0,zk;function c8(){if(zk)return O0;zk=1;var e=qG(),t=u8(),r=FG(),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 _=-1,b=!0,S=u&i?new e:void 0;for(f.set(a,o),f.set(o,a);++_<d;){var w=a[_],E=o[_];if(c)var A=h?c(E,w,_,o,a,f):c(w,E,_,a,o,f);if(A!==void 0){if(A)continue;b=!1;break}if(S){if(!t(o,function(R,I){if(!r(S,I)&&(w===R||l(w,R,u,c,f)))return S.push(I)})){b=!1;break}}else if(!(w===E||l(w,E,u,c,f))){b=!1;break}}return f.delete(a),f.delete(o),b}return O0=s,O0}var C0,Wk;function $G(){if(Wk)return C0;Wk=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,s){n[++r]=[s,i]}),n}return C0=e,C0}var R0,Jk;function LG(){if(Jk)return R0;Jk=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return R0=e,R0}var T0,Hk;function BG(){if(Hk)return T0;Hk=1;var e=vu(),t=H6(),r=yu(),n=c8(),i=$G(),s=LG(),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]",_="[object ArrayBuffer]",b="[object DataView]",S=e?e.prototype:void 0,w=S?S.valueOf:void 0;function E(A,R,I,O,D,P,F){switch(I){case b:if(A.byteLength!=R.byteLength||A.byteOffset!=R.byteOffset)return!1;A=A.buffer,R=R.buffer;case _:return!(A.byteLength!=R.byteLength||!P(new t(A),new t(R)));case u:case c:case h:return r(+A,+R);case l:return A.name==R.name&&A.message==R.message;case d:case y:return A==R+"";case f:var M=i;case g:var G=O&a;if(M||(M=s),A.size!=R.size&&!G)return!1;var ee=F.get(A);if(ee)return ee==R;O|=o,F.set(A,R);var H=n(M(A),M(R),O,D,P,F);return F.delete(A),H;case v:if(w)return w.call(A)==w.call(R)}return!1}return T0=E,T0}var I0,Kk;function s2(){if(Kk)return I0;Kk=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 I0=e,I0}var j0,Gk;function l8(){if(Gk)return j0;Gk=1;var e=s2(),t=Wr();function r(n,i,s){var a=i(n);return t(n)?a:e(a,s(n))}return j0=r,j0}var P0,Yk;function UG(){if(Yk)return P0;Yk=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 P0=e,P0}var k0,Xk;function f8(){if(Xk)return k0;Xk=1;function e(){return[]}return k0=e,k0}var N0,Zk;function a2(){if(Zk)return N0;Zk=1;var e=UG(),t=f8(),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 N0=s,N0}var M0,Qk;function VG(){if(Qk)return M0;Qk=1;var e=G6(),t=e(Object.keys,Object);return M0=t,M0}var D0,eN;function o2(){if(eN)return D0;eN=1;var e=gh(),t=VG(),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 D0=i,D0}var q0,tN;function _u(){if(tN)return q0;tN=1;var e=Z6(),t=o2(),r=oo();function n(i){return r(i)?e(i):t(i)}return q0=n,q0}var F0,rN;function p8(){if(rN)return F0;rN=1;var e=l8(),t=a2(),r=_u();function n(i){return e(i,r,t)}return F0=n,F0}var $0,nN;function zG(){if(nN)return $0;nN=1;var e=p8(),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 _=h[v];if(!(f?_ in a:n.call(a,_)))return!1}var b=l.get(s),S=l.get(a);if(b&&S)return b==a&&S==s;var w=!0;l.set(s,a),l.set(a,s);for(var E=f;++v<d;){_=h[v];var A=s[_],R=a[_];if(u)var I=f?u(R,A,_,a,s,l):u(A,R,_,s,a,l);if(!(I===void 0?A===R||c(A,R,o,u,l):I)){w=!1;break}E||(E=_=="constructor")}if(w&&!E){var O=s.constructor,D=a.constructor;O!=D&&"constructor"in s&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof D=="function"&&D instanceof D)&&(w=!1)}return l.delete(s),l.delete(a),w}return $0=i,$0}var L0,iN;function WG(){if(iN)return L0;iN=1;var e=ao(),t=Cn(),r=e(t,"DataView");return L0=r,L0}var B0,sN;function JG(){if(sN)return B0;sN=1;var e=ao(),t=Cn(),r=e(t,"Promise");return B0=r,B0}var U0,aN;function HG(){if(aN)return U0;aN=1;var e=ao(),t=Cn(),r=e(t,"Set");return U0=r,U0}var V0,oN;function d8(){if(oN)return V0;oN=1;var e=ao(),t=Cn(),r=e(t,"WeakMap");return V0=r,V0}var z0,uN;function Eu(){if(uN)return z0;uN=1;var e=WG(),t=KO(),r=JG(),n=HG(),i=d8(),s=ds(),a=U6(),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),_=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 w=s(S),E=w==u?S.constructor:void 0,A=E?a(E):"";if(A)switch(A){case d:return h;case g:return o;case y:return c;case v:return l;case _:return f}return w}),z0=b,z0}var W0,cN;function KG(){if(cN)return W0;cN=1;var e=hh(),t=c8(),r=BG(),n=zG(),i=Eu(),s=Wr(),a=al(),o=vh(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function g(y,v,_,b,S,w){var E=s(y),A=s(v),R=E?l:i(y),I=A?l:i(v);R=R==c?f:R,I=I==c?f:I;var O=R==f,D=I==f,P=R==I;if(P&&a(y)){if(!a(v))return!1;E=!0,O=!1}if(P&&!O)return w||(w=new e),E||o(y)?t(y,v,_,b,S,w):r(y,v,R,_,b,S,w);if(!(_&u)){var F=O&&d.call(y,"__wrapped__"),M=D&&d.call(v,"__wrapped__");if(F||M){var G=F?y.value():y,ee=M?v.value():v;return w||(w=new e),S(G,ee,_,b,w)}}return P?(w||(w=new e),n(y,v,_,b,S,w)):!1}return W0=g,W0}var J0,lN;function u2(){if(lN)return J0;lN=1;var e=KG(),t=Tn();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 J0=r,J0}var H0,fN;function GG(){if(fN)return H0;fN=1;var e=hh(),t=u2(),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 _=u(g,y,d,s,a,v);if(!(_===void 0?t(y,g,r|n,u,v):_))return!1}}return!0}return H0=i,H0}var K0,pN;function h8(){if(pN)return K0;pN=1;var e=Rn();function t(r){return r===r&&!e(r)}return K0=t,K0}var G0,dN;function YG(){if(dN)return G0;dN=1;var e=h8(),t=_u();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 G0=r,G0}var Y0,hN;function m8(){if(hN)return Y0;hN=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Y0=e,Y0}var X0,mN;function XG(){if(mN)return X0;mN=1;var e=GG(),t=YG(),r=m8();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 X0=n,X0}var Z0,gN;function c2(){if(gN)return Z0;gN=1;var e=Wr(),t=ll(),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 Z0=i,Z0}var Q0,yN;function ZG(){if(yN)return Q0;yN=1;var e=o8(),t=500;function r(n){var i=e(n,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return Q0=r,Q0}var eb,vN;function g8(){if(vN)return eb;vN=1;var e=ZG(),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 eb=n,eb}var tb,bN;function fl(){if(bN)return tb;bN=1;var e=Wr(),t=c2(),r=g8(),n=$s();function i(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return tb=i,tb}var rb,_N;function uo(){if(_N)return rb;_N=1;var e=ll();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return rb=t,rb}var nb,EN;function l2(){if(EN)return nb;EN=1;var e=fl(),t=uo();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 nb=r,nb}var ib,SN;function y8(){if(SN)return ib;SN=1;var e=l2();function t(r,n,i){var s=r==null?void 0:e(r,n);return s===void 0?i:s}return ib=t,ib}var sb,wN;function QG(){if(wN)return sb;wN=1;function e(t,r){return t!=null&&r in Object(t)}return sb=e,sb}var ab,xN;function v8(){if(xN)return ab;xN=1;var e=fl(),t=sl(),r=Wr(),n=ol(),i=QO(),s=uo();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 ab=a,ab}var ob,AN;function eY(){if(AN)return ob;AN=1;var e=QG(),t=v8();function r(n,i){return n!=null&&t(n,i,e)}return ob=r,ob}var ub,ON;function tY(){if(ON)return ub;ON=1;var e=u2(),t=y8(),r=eY(),n=c2(),i=h8(),s=m8(),a=uo(),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 ub=c,ub}var cb,CN;function rY(){if(CN)return cb;CN=1;function e(t){return function(r){return r==null?void 0:r[t]}}return cb=e,cb}var lb,RN;function nY(){if(RN)return lb;RN=1;var e=l2();function t(r){return function(n){return e(n,r)}}return lb=t,lb}var fb,TN;function iY(){if(TN)return fb;TN=1;var e=rY(),t=nY(),r=c2(),n=uo();function i(s){return r(s)?e(n(s)):t(s)}return fb=i,fb}var pb,IN;function pl(){if(IN)return pb;IN=1;var e=XG(),t=tY(),r=cl(),n=Wr(),i=iY();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 pb=s,pb}var db,jN;function sY(){if(jN)return db;jN=1;var e=pl(),t=oo(),r=_u();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 db=n,db}var hb,PN;function b8(){if(PN)return hb;PN=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 hb=e,hb}var mb,kN;function aY(){if(kN)return mb;kN=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return mb=t,mb}var gb,NN;function oY(){if(NN)return gb;NN=1;var e=aY(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return gb=r,gb}var yb,MN;function _8(){if(MN)return yb;MN=1;var e=oY(),t=Rn(),r=ll(),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 yb=u,yb}var vb,DN;function uY(){if(DN)return vb;DN=1;var e=_8(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*r}return i===i?i:0}return vb=n,vb}var bb,qN;function f2(){if(qN)return bb;qN=1;var e=uY();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return bb=t,bb}var _b,FN;function cY(){if(FN)return _b;FN=1;var e=b8(),t=pl(),r=f2(),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 _b=i,_b}var Eb,$N;function lY(){if($N)return Eb;$N=1;var e=sY(),t=cY(),r=e(t);return Eb=r,Eb}var fY=lY();const pY=We.getDefaultExportFromCjs(fY);var Sb,LN;function dY(){if(LN)return Sb;LN=1;var e=W6(),t=_u();function r(n,i){return n&&e(n,i,t)}return Sb=r,Sb}var wb,BN;function hY(){if(BN)return wb;BN=1;var e=oo();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 wb=t,wb}var xb,UN;function E8(){if(UN)return xb;UN=1;var e=dY(),t=hY(),r=t(e);return xb=r,xb}var Ab,VN;function mY(){if(VN)return Ab;VN=1;var e=E8();function t(r,n){var i;return e(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return Ab=t,Ab}var Ob,zN;function gY(){if(zN)return Ob;zN=1;var e=u8(),t=pl(),r=mY(),n=Wr(),i=r8();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 Ob=s,Ob}var yY=gY();const vY=We.getDefaultExportFromCjs(yY);var bY=yu();const _Y=We.getDefaultExportFromCjs(bY);var EY=nl();const SY=We.getDefaultExportFromCjs(EY);var Ap={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var wY=Ap.exports,WN;function xY(){return WN||(WN=1,(function(e,t){(function(r,n){e.exports=n(r)})(typeof We.commonjsGlobal<"u"?We.commonjsGlobal:wY,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})})(Ap)),Ap.exports}var AY=xY();const OY=We.getDefaultExportFromCjs(AY);var Cb,JN;function CY(){return JN||(JN=1,Cb=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}),Cb}var tp={},HN;function RY(){if(HN)return tp;HN=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 tp.stringify=s,tp.parse=i,tp}var Rb,KN;function TY(){if(KN)return Rb;KN=1;var e=CY(),t=RY(),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,w){return h(w.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 We.commonjsGlobal<"u"?S=We.commonjsGlobal:typeof self<"u"?S=self:S={};var w=S.location||{};b=b||w;var E={},A=typeof b,R;if(b.protocol==="blob:")E=new y(unescape(b.pathname),{});else if(A==="string"){E=new y(b,{});for(R in l)delete E[R]}else if(A==="object"){for(R in b)R in l||(E[R]=b[R]);E.slashes===void 0&&(E.slashes=i.test(b.href))}return E}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 w=a.exec(b),E=w[1]?w[1].toLowerCase():"",A=!!w[2],R=!!w[3],I=0,O;return A?R?(O=w[2]+w[3]+w[4],I=w[2].length+w[3].length):(O=w[2]+w[4],I=w[2].length):R?(O=w[3]+w[4],I=w[3].length):O=w[4],E==="file:"?I>=2&&(O=O.slice(2)):h(E)?O=w[4]:E?A&&(O=O.slice(2)):I>=2&&h(S.protocol)&&(O=w[4]),{protocol:E,slashes:A||h(E),slashesCount:I,rest:O}}function g(b,S){if(b==="")return S;for(var w=(S||"/").split("/").slice(0,-1).concat(b.split("/")),E=w.length,A=w[E-1],R=!1,I=0;E--;)w[E]==="."?w.splice(E,1):w[E]===".."?(w.splice(E,1),I++):I&&(E===0&&(R=!0),w.splice(E,1),I--);return R&&w.unshift(""),(A==="."||A==="..")&&w.push(""),w.join("/")}function y(b,S,w){if(b=u(b),b=b.replace(n,""),!(this instanceof y))return new y(b,S,w);var E,A,R,I,O,D,P=c.slice(),F=typeof S,M=this,G=0;for(F!=="object"&&F!=="string"&&(w=S,S=null),w&&typeof w!="function"&&(w=t.parse),S=f(S),A=d(b||"",S),E=!A.protocol&&!A.slashes,M.slashes=A.slashes||E&&S.slashes,M.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(M.protocol)))&&(P[3]=[/(.*)/,"pathname"]);G<P.length;G++){if(I=P[G],typeof I=="function"){b=I(b,M);continue}R=I[0],D=I[1],R!==R?M[D]=b:typeof R=="string"?(O=R==="@"?b.lastIndexOf(R):b.indexOf(R),~O&&(typeof I[2]=="number"?(M[D]=b.slice(0,O),b=b.slice(O+I[2])):(M[D]=b.slice(O),b=b.slice(0,O)))):(O=R.exec(b))&&(M[D]=O[1],b=b.slice(0,O.index)),M[D]=M[D]||E&&I[3]&&S[D]||"",I[4]&&(M[D]=M[D].toLowerCase())}w&&(M.query=w(M.query)),E&&S.slashes&&M.pathname.charAt(0)!=="/"&&(M.pathname!==""||S.pathname!=="")&&(M.pathname=g(M.pathname,S.pathname)),M.pathname.charAt(0)!=="/"&&h(M.protocol)&&(M.pathname="/"+M.pathname),e(M.port,M.protocol)||(M.host=M.hostname,M.port=""),M.username=M.password="",M.auth&&(O=M.auth.indexOf(":"),~O?(M.username=M.auth.slice(0,O),M.username=encodeURIComponent(decodeURIComponent(M.username)),M.password=M.auth.slice(O+1),M.password=encodeURIComponent(decodeURIComponent(M.password))):M.username=encodeURIComponent(decodeURIComponent(M.auth)),M.auth=M.password?M.username+":"+M.password:M.username),M.origin=M.protocol!=="file:"&&h(M.protocol)&&M.host?M.protocol+"//"+M.host:"null",M.href=M.toString()}function v(b,S,w){var E=this;switch(b){case"query":typeof S=="string"&&S.length&&(S=(w||t.parse)(S)),E[b]=S;break;case"port":E[b]=S,e(S,E.protocol)?S&&(E.host=E.hostname+":"+S):(E.host=E.hostname,E[b]="");break;case"hostname":E[b]=S,E.port&&(S+=":"+E.port),E.host=S;break;case"host":E[b]=S,s.test(S)?(S=S.split(":"),E.port=S.pop(),E.hostname=S.join(":")):(E.hostname=S,E.port="");break;case"protocol":E.protocol=S.toLowerCase(),E.slashes=!w;break;case"pathname":case"hash":if(S){var A=b==="pathname"?"/":"#";E[b]=S.charAt(0)!==A?A+S:S}else E[b]=S;break;case"username":case"password":E[b]=encodeURIComponent(S);break;case"auth":var R=S.indexOf(":");~R?(E.username=S.slice(0,R),E.username=encodeURIComponent(decodeURIComponent(E.username)),E.password=S.slice(R+1),E.password=encodeURIComponent(decodeURIComponent(E.password))):E.username=encodeURIComponent(decodeURIComponent(S))}for(var I=0;I<c.length;I++){var O=c[I];O[4]&&(E[O[1]]=E[O[1]].toLowerCase())}return E.auth=E.password?E.username+":"+E.password:E.username,E.origin=E.protocol!=="file:"&&h(E.protocol)&&E.host?E.protocol+"//"+E.host:"null",E.href=E.toString(),E}function _(b){(!b||typeof b!="function")&&(b=t.stringify);var S,w=this,E=w.host,A=w.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var R=A+(w.protocol&&w.slashes||h(w.protocol)?"//":"");return w.username?(R+=w.username,w.password&&(R+=":"+w.password),R+="@"):w.password?(R+=":"+w.password,R+="@"):w.protocol!=="file:"&&h(w.protocol)&&!E&&w.pathname!=="/"&&(R+="@"),(E[E.length-1]===":"||s.test(w.hostname)&&!w.port)&&(E+=":"),R+=E+w.pathname,S=typeof w.query=="object"?b(w.query):w.query,S&&(R+=S.charAt(0)!=="?"?"?"+S:S),w.hash&&(R+=w.hash),R}return y.prototype={set:v,toString:_},y.extractProtocol=d,y.location=f,y.trimLeft=u,y.qs=t,Rb=y,Rb}var IY=TY();const jY=We.getDefaultExportFromCjs(IY);var PY=(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
|
|
26
|
-
\`createSelector([state => state.todos], todos => todos)\`
|
|
27
|
-
This could lead to inefficient memoization and unnecessary re-renders.
|
|
28
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},kY=(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.
|
|
29
|
-
This means your output selector will likely run more frequently than intended.
|
|
30
|
-
Avoid returning a new reference inside your input selector, e.g.
|
|
31
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:a,stack:c})}},NY={inputStabilityCheck:"once",identityFunctionCheck:"once"};function MY(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function DY(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function qY(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 GN=e=>Array.isArray(e)?e:[e];function FY(e){const t=Array.isArray(e[0])?e[0]:e;return qY(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function YN(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var $Y=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...NY,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:PY},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:kY}}},LY=class{constructor(e){this.value=e}deref(){return this.value}},BY=typeof WeakRef<"u"?WeakRef:LY,UY=0,XN=1;function rp(){return{s:UY,v:void 0,o:null,p:null}}function S8(e,t={}){let r=rp();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=rp(),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=rp(),y.set(g,o)):o=v}}const c=o;let l;if(o.s===XN)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 BY(l):l}return c.s=XN,c.v=l,l}return a.clearCache=()=>{r=rp(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function VY(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()),MY(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:d=S8,argsMemoizeOptions:g=[],devModeChecks:y={}}=l,v=GN(h),_=GN(g),b=FY(i),S=f(function(){return s++,c.apply(null,arguments)},...v);let w=!0;const E=d(function(){a++;const R=YN(b,arguments);if(o=S.apply(null,R),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:I,inputStabilityCheck:O}=$Y(w,y);if(I.shouldRun&&I.run(c,R,o),O.shouldRun){const D=YN(b,arguments);O.run({inputSelectorResults:R,inputSelectorResultsCopy:D},{memoize:f,memoizeOptions:v},arguments)}w&&(w=!1)}return o},..._);return Object.assign(E,{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 w8=VY(S8),zY=Object.assign((e,t=w8)=>{DY(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:()=>zY}),Tb,ZN;function p2(){if(ZN)return Tb;ZN=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 Tb=e,Tb}var Ib,QN;function x8(){if(QN)return Ib;QN=1;var e=bu(),t=_u();function r(n,i){return n&&e(i,t(i),n)}return Ib=r,Ib}var jb,eM;function WY(){if(eM)return jb;eM=1;var e=bu(),t=ul();function r(n,i){return n&&e(i,t(i),n)}return jb=r,jb}var Pb,tM;function JY(){if(tM)return Pb;tM=1;var e=bu(),t=a2();function r(n,i){return e(n,t(n),i)}return Pb=r,Pb}var kb,rM;function A8(){if(rM)return kb;rM=1;var e=s2(),t=ZO(),r=a2(),n=f8(),i=Object.getOwnPropertySymbols,s=i?function(a){for(var o=[];a;)e(o,r(a)),a=t(a);return o}:n;return kb=s,kb}var Nb,nM;function HY(){if(nM)return Nb;nM=1;var e=bu(),t=A8();function r(n,i){return e(n,t(n),i)}return Nb=r,Nb}var Mb,iM;function O8(){if(iM)return Mb;iM=1;var e=l8(),t=A8(),r=ul();function n(i){return e(i,r,t)}return Mb=n,Mb}var Db,sM;function KY(){if(sM)return Db;sM=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 Db=r,Db}var qb,aM;function GY(){if(aM)return qb;aM=1;var e=XO();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return qb=t,qb}var Fb,oM;function YY(){if(oM)return Fb;oM=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Fb=t,Fb}var $b,uM;function XY(){if(uM)return $b;uM=1;var e=vu(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return $b=n,$b}var Lb,cM;function ZY(){if(cM)return Lb;cM=1;var e=XO(),t=GY(),r=YY(),n=XY(),i=K6(),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]",_="[object Int8Array]",b="[object Int16Array]",S="[object Int32Array]",w="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",R="[object Uint32Array]";function I(O,D,P){var F=O.constructor;switch(D){case d:return e(O);case s:case a:return new F(+O);case g:return t(O,P);case y:case v:case _:case b:case S:case w:case E:case A:case R:return i(O,P);case o:return new F;case u:case f:return new F(O);case c:return r(O);case l:return new F;case h:return n(O)}}return Lb=I,Lb}var Bb,lM;function QY(){if(lM)return Bb;lM=1;var e=Eu(),t=Tn(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Bb=n,Bb}var Ub,fM;function eX(){if(fM)return Ub;fM=1;var e=QY(),t=e2(),r=t2(),n=r&&r.isMap,i=n?t(n):e;return Ub=i,Ub}var Vb,pM;function tX(){if(pM)return Vb;pM=1;var e=Eu(),t=Tn(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Vb=n,Vb}var zb,dM;function rX(){if(dM)return zb;dM=1;var e=tX(),t=e2(),r=t2(),n=r&&r.isSet,i=n?t(n):e;return zb=i,zb}var Wb,hM;function d2(){if(hM)return Wb;hM=1;var e=hh(),t=p2(),r=bh(),n=x8(),i=WY(),s=J6(),a=il(),o=JY(),u=HY(),c=p8(),l=O8(),f=Eu(),h=KY(),d=ZY(),g=Y6(),y=Wr(),v=al(),_=eX(),b=Rn(),S=rX(),w=_u(),E=ul(),A=1,R=2,I=4,O="[object Arguments]",D="[object Array]",P="[object Boolean]",F="[object Date]",M="[object Error]",G="[object Function]",ee="[object GeneratorFunction]",H="[object Map]",Q="[object Number]",re="[object Object]",ne="[object RegExp]",B="[object Set]",J="[object String]",ie="[object Symbol]",oe="[object WeakMap]",ce="[object ArrayBuffer]",te="[object DataView]",z="[object Float32Array]",V="[object Float64Array]",fe="[object Int8Array]",me="[object Int16Array]",Ce="[object Int32Array]",Ne="[object Uint8Array]",he="[object Uint8ClampedArray]",je="[object Uint16Array]",Be="[object Uint32Array]",_e={};_e[O]=_e[D]=_e[ce]=_e[te]=_e[P]=_e[F]=_e[z]=_e[V]=_e[fe]=_e[me]=_e[Ce]=_e[H]=_e[Q]=_e[re]=_e[ne]=_e[B]=_e[J]=_e[ie]=_e[Ne]=_e[he]=_e[je]=_e[Be]=!0,_e[M]=_e[G]=_e[oe]=!1;function we(Ae,U,T,k,W,se){var ue,ge=U&A,Me=U&R,Xe=U&I;if(T&&(ue=W?T(Ae,k,W,se):T(Ae)),ue!==void 0)return ue;if(!b(Ae))return Ae;var $=y(Ae);if($){if(ue=h(Ae),!ge)return a(Ae,ue)}else{var C=f(Ae),j=C==G||C==ee;if(v(Ae))return s(Ae,ge);if(C==re||C==O||j&&!W){if(ue=Me||j?{}:g(Ae),!ge)return Me?u(Ae,i(ue,Ae)):o(Ae,n(ue,Ae))}else{if(!_e[C])return W?Ae:{};ue=d(Ae,C,ge)}}se||(se=new e);var Z=se.get(Ae);if(Z)return Z;se.set(Ae,ue),S(Ae)?Ae.forEach(function(Oe){ue.add(we(Oe,U,T,Oe,Ae,se))}):_(Ae)&&Ae.forEach(function(Oe,et){ue.set(et,we(Oe,U,T,et,Ae,se))});var pe=Xe?Me?l:c:Me?E:w,be=$?void 0:pe(Ae);return t(be||Ae,function(Oe,et){be&&(et=Oe,Oe=Ae[et]),r(ue,et,we(Oe,U,T,et,Ae,se))}),ue}return Wb=we,Wb}var Jb,mM;function nX(){if(mM)return Jb;mM=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Jb=e,Jb}var Hb,gM;function iX(){if(gM)return Hb;gM=1;var e=l2(),t=n8();function r(n,i){return i.length<2?n:e(n,t(i,0,-1))}return Hb=r,Hb}var Kb,yM;function sX(){if(yM)return Kb;yM=1;var e=fl(),t=nX(),r=iX(),n=uo();function i(s,a){return a=e(a,s),s=r(s,a),s==null||delete s[n(t(a))]}return Kb=i,Kb}var Gb,vM;function aX(){if(vM)return Gb;vM=1;var e=yh();function t(r){return e(r)?void 0:r}return Gb=t,Gb}var Yb,bM;function oX(){if(bM)return Yb;bM=1;var e=vu(),t=sl(),r=Wr(),n=e?e.isConcatSpreadable:void 0;function i(s){return r(s)||t(s)||!!(n&&s&&s[n])}return Yb=i,Yb}var Xb,_M;function uX(){if(_M)return Xb;_M=1;var e=s2(),t=oX();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 Xb=r,Xb}var Zb,EM;function cX(){if(EM)return Zb;EM=1;var e=uX();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Zb=t,Zb}var Qb,SM;function C8(){if(SM)return Qb;SM=1;var e=cX(),t=Q6(),r=n2();function n(i){return r(t(i,void 0,e),i+"")}return Qb=n,Qb}var e_,wM;function lX(){if(wM)return e_;wM=1;var e=i2(),t=d2(),r=sX(),n=fl(),i=bu(),s=aX(),a=C8(),o=O8(),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(_){return _=n(_,h),y||(y=_.length>1),_}),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 e_=f,e_}var fX=lX();const pX=We.getDefaultExportFromCjs(fX);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function R8(e){return typeof e>"u"||e===null}function dX(e){return typeof e=="object"&&e!==null}function hX(e){return Array.isArray(e)?e:R8(e)?[]:[e]}function mX(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 gX(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function yX(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var vX=R8,bX=dX,_X=hX,EX=gX,SX=yX,wX=mX,$r={isNothing:vX,isObject:bX,toArray:_X,repeat:EX,isNegativeZero:SX,extend:wX};function T8(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+=`
|
|
32
|
-
|
|
33
|
-
`+e.mark.snippet),n+" "+r):n}function Cc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=T8(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Cc.prototype=Object.create(Error.prototype);Cc.prototype.constructor=Cc;Cc.prototype.toString=function(t){return this.name+": "+T8(this,t)};var En=Cc;function t_(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 r_(e,t){return $r.repeat(" ",t-e.length)+e}function xX(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=t_(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),o=$r.repeat(" ",t.indent)+r_((e.line-u+1).toString(),l)+" | "+c.str+`
|
|
34
|
-
`+o;for(c=t_(e.buffer,n[a],i[a],e.position,f),o+=$r.repeat(" ",t.indent)+r_((e.line+1).toString(),l)+" | "+c.str+`
|
|
35
|
-
`,o+=$r.repeat("-",t.indent+l+3+c.pos)+`^
|
|
36
|
-
`,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)c=t_(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),o+=$r.repeat(" ",t.indent)+r_((e.line+u+1).toString(),l)+" | "+c.str+`
|
|
37
|
-
`;return o.replace(/\n$/,"")}var AX=xX,OX=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],CX=["scalar","sequence","mapping"];function RX(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function TX(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(OX.indexOf(r)===-1)throw new En('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=RX(t.styleAliases||null),CX.indexOf(this.kind)===-1)throw new En('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Qr=TX;function xM(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 IX(){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 Cx(e){return this.extend(e)}Cx.prototype.extend=function(t){var r=[],n=[];if(t instanceof Qr)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 En("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Qr))throw new En("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new En("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 En("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 Qr))throw new En("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Cx.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=xM(i,"implicit"),i.compiledExplicit=xM(i,"explicit"),i.compiledTypeMap=IX(i.compiledImplicit,i.compiledExplicit),i};var I8=Cx,j8=new Qr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),P8=new Qr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),k8=new Qr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),N8=new I8({explicit:[j8,P8,k8]});function jX(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function PX(){return null}function kX(e){return e===null}var M8=new Qr("tag:yaml.org,2002:null",{kind:"scalar",resolve:jX,construct:PX,predicate:kX,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function NX(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 MX(e){return e==="true"||e==="True"||e==="TRUE"}function DX(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var D8=new Qr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:NX,construct:MX,predicate:DX,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 qX(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function FX(e){return 48<=e&&e<=55}function $X(e){return 48<=e&&e<=57}function LX(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(!qX(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!FX(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!$X(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function BX(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 UX(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!$r.isNegativeZero(e)}var q8=new Qr("tag:yaml.org,2002:int",{kind:"scalar",resolve:LX,construct:BX,predicate:UX,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"]}}),VX=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zX(e){return!(e===null||!VX.test(e)||e[e.length-1]==="_")}function WX(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 JX=/^[-+]?[0-9]+e/;function HX(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($r.isNegativeZero(e))return"-0.0";return r=e.toString(10),JX.test(r)?r.replace("e",".e"):r}function KX(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||$r.isNegativeZero(e))}var F8=new Qr("tag:yaml.org,2002:float",{kind:"scalar",resolve:zX,construct:WX,predicate:KX,represent:HX,defaultStyle:"lowercase"}),$8=N8.extend({implicit:[M8,D8,q8,F8]}),L8=$8,B8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U8=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 GX(e){return e===null?!1:B8.exec(e)!==null||U8.exec(e)!==null}function YX(e){var t,r,n,i,s,a,o,u=0,c=null,l,f,h;if(t=B8.exec(e),t===null&&(t=U8.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 XX(e){return e.toISOString()}var V8=new Qr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:GX,construct:YX,instanceOf:Date,represent:XX});function ZX(e){return e==="<<"||e===null}var z8=new Qr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ZX}),h2=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
38
|
-
\r`;function QX(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=h2;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 eZ(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=h2,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 tZ(e){var t="",r=0,n,i,s=e.length,a=h2;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 rZ(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var W8=new Qr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:QX,construct:eZ,predicate:rZ,represent:tZ}),nZ=Object.prototype.hasOwnProperty,iZ=Object.prototype.toString;function sZ(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,iZ.call(i)!=="[object Object]")return!1;for(s in i)if(nZ.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 aZ(e){return e!==null?e:[]}var J8=new Qr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:sZ,construct:aZ}),oZ=Object.prototype.toString;function uZ(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],oZ.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function cZ(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 H8=new Qr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:uZ,construct:cZ}),lZ=Object.prototype.hasOwnProperty;function fZ(e){if(e===null)return!0;var t,r=e;for(t in r)if(lZ.call(r,t)&&r[t]!==null)return!1;return!0}function pZ(e){return e!==null?e:{}}var K8=new Qr("tag:yaml.org,2002:set",{kind:"mapping",resolve:fZ,construct:pZ}),m2=L8.extend({implicit:[V8,z8],explicit:[W8,J8,H8,K8]}),ma=Object.prototype.hasOwnProperty,Up=1,G8=2,Y8=3,Vp=4,n_=1,dZ=2,AM=3,hZ=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,mZ=/[\x85\u2028\u2029]/,gZ=/[,\[\]\{\}]/,X8=/^(?:!|!!|![a-z\-]+!)$/i,Z8=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function OM(e){return Object.prototype.toString.call(e)}function us(e){return e===10||e===13}function Ka(e){return e===9||e===32}function Nn(e){return e===9||e===32||e===10||e===13}function Bo(e){return e===44||e===91||e===93||e===123||e===125}function yZ(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function vZ(e){return e===120?2:e===117?4:e===85?8:0}function bZ(e){return 48<=e&&e<=57?e-48:-1}function CM(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
39
|
-
`: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 _Z(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Q8=new Array(256),e4=new Array(256);for(var jo=0;jo<256;jo++)Q8[jo]=CM(jo)?1:0,e4[jo]=CM(jo);function EZ(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||m2,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 t4(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=AX(r),new En(t,r)}function at(e,t){throw t4(e,t)}function zp(e,t){e.onWarning&&e.onWarning.call(null,t4(e,t))}var RM={YAML:function(t,r,n){var i,s,a;t.version!==null&&at(t,"duplication of %YAML directive"),n.length!==1&&at(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&at(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&at(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&zp(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&at(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],X8.test(i)||at(t,"ill-formed tag handle (first argument) of the TAG directive"),ma.call(t.tagMap,i)&&at(t,'there is a previously declared suffix for "'+i+'" tag handle'),Z8.test(s)||at(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{at(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function pa(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||at(e,"expected valid JSON character");else hZ.test(o)&&at(e,"the stream contains non-printable characters");e.result+=o}}function TM(e,t,r,n){var i,s,a,o;for($r.isObject(r)||at(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],ma.call(t,s)||(t[s]=r[s],n[s]=!0)}function Uo(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])&&at(e,"nested arrays are not supported inside keys"),typeof i=="object"&&OM(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&OM(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)TM(e,t,s[c],r);else TM(e,t,s,r);else!e.json&&!ma.call(r,i)&&ma.call(t,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,at(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 g2(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++):at(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ir(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ka(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(us(i))for(g2(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&&zp(e,"deficient indentation"),n}function _h(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||Nn(r)))}function y2(e,t){t===1?e.result+=" ":t>1&&(e.result+=$r.repeat(`
|
|
40
|
-
`,t-1))}function SZ(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),Nn(d)||Bo(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),Nn(i)||r&&Bo(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),Nn(i)||r&&Bo(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Nn(n))break}else{if(e.position===e.lineStart&&_h(e)||r&&Bo(d))break;if(us(d))if(u=e.line,c=e.lineStart,l=e.lineIndent,Ir(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&&(pa(e,s,a,!1),y2(e,e.line-u),s=a=e.position,o=!1),Ka(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return pa(e,s,a,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function wZ(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(pa(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 us(r)?(pa(e,n,i,!0),y2(e,Ir(e,!1,t)),n=i=e.position):e.position===e.lineStart&&_h(e)?at(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);at(e,"unexpected end of the stream within a single quoted scalar")}function xZ(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 pa(e,r,e.position,!0),e.position++,!0;if(o===92){if(pa(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),us(o))Ir(e,!1,t);else if(o<256&&Q8[o])e.result+=e4[o],e.position++;else if((a=vZ(o))>0){for(i=a,s=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=yZ(o))>=0?s=(s<<4)+a:at(e,"expected hexadecimal character");e.result+=_Z(s),e.position++}else at(e,"unknown escape sequence");r=n=e.position}else us(o)?(pa(e,r,n,!0),y2(e,Ir(e,!1,t)),r=n=e.position):e.position===e.lineStart&&_h(e)?at(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}at(e,"unexpected end of the stream within a double quoted scalar")}function AZ(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,_,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(Ir(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&&at(e,"expected the node content, but found ','"):at(e,"missed comma between flow collection entries"),v=y=_=null,f=h=!1,b===63&&(c=e.input.charCodeAt(e.position+1),Nn(c)&&(f=h=!0,e.position++,Ir(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Zo(e,t,Up,!1,!0),v=e.tag,y=e.result,Ir(e,!0,t),b=e.input.charCodeAt(e.position),(h||e.line===n)&&b===58&&(f=!0,b=e.input.charCodeAt(++e.position),Ir(e,!0,t),Zo(e,t,Up,!1,!0),_=e.result),d?Uo(e,o,g,v,y,_,n,i,s):f?o.push(Uo(e,null,g,v,y,_,n,i,s)):o.push(y),Ir(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}at(e,"unexpected end of the stream within a flow collection")}function OZ(e,t){var r,n,i=n_,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)n_===i?i=f===43?AM:dZ:at(e,"repeat of a chomping mode identifier");else if((l=bZ(f))>=0)l===0?at(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?at(e,"repeat of an indentation width identifier"):(o=t+l-1,a=!0);else break;if(Ka(f)){do f=e.input.charCodeAt(++e.position);while(Ka(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!us(f)&&f!==0)}for(;f!==0;){for(g2(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),us(f)){u++;continue}if(e.lineIndent<o){i===AM?e.result+=$r.repeat(`
|
|
41
|
-
`,s?1+u:u):i===n_&&s&&(e.result+=`
|
|
42
|
-
`);break}for(n?Ka(f)?(c=!0,e.result+=$r.repeat(`
|
|
43
|
-
`,s?1+u:u)):c?(c=!1,e.result+=$r.repeat(`
|
|
44
|
-
`,u+1)):u===0?s&&(e.result+=" "):e.result+=$r.repeat(`
|
|
45
|
-
`,u):e.result+=$r.repeat(`
|
|
46
|
-
`,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!us(f)&&f!==0;)f=e.input.charCodeAt(++e.position);pa(e,r,e.position,!1)}return!0}function IM(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,at(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!Nn(a))));){if(o=!0,e.position++,Ir(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Zo(e,t,Y8,!1,!0),s.push(e.result),Ir(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)at(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 CZ(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,_=!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,at(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(b===63||b===58)&&Nn(n))b===63?(v&&(Uo(e,f,h,d,g,null,a,o,u),d=g=y=null),_=!0,v=!0,i=!0):v?(v=!1,i=!0):at(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,!Zo(e,r,G8,!1,!0))break;if(e.line===s){for(b=e.input.charCodeAt(e.position);Ka(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),Nn(b)||at(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Uo(e,f,h,d,g,null,a,o,u),d=g=y=null),_=!0,v=!1,i=!1,d=e.tag,g=e.result;else if(_)at(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(_)at(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),Zo(e,t,Vp,!0,i)&&(v?g=e.result:y=e.result),v||(Uo(e,f,h,d,g,y,a,o,u),d=g=y=null),Ir(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&b!==0)at(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Uo(e,f,h,d,g,null,a,o,u),_&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),_}function RZ(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&&at(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)):at(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Nn(a);)a===33&&(n?at(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),X8.test(i)||at(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),gZ.test(s)&&at(e,"tag suffix cannot contain flow indicator characters")}s&&!Z8.test(s)&&at(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{at(e,"tag name is malformed: "+s)}return r?e.tag=s:ma.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:at(e,'undeclared tag handle "'+i+'"'),!0}function TZ(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&at(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Nn(r)&&!Bo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&at(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function IZ(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&&!Nn(n)&&!Bo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&at(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ma.call(e.anchorMap,r)||at(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ir(e,!0,-1),!0}function Zo(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=Vp===r||Y8===r,n&&Ir(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;RZ(e)||TZ(e);)Ir(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||Vp===r)&&(Up===r||G8===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?o&&(IM(e,v)||CZ(e,v,y))||AZ(e,y)?l=!0:(a&&OZ(e,y)||wZ(e,y)||xZ(e,y)?l=!0:IZ(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&at(e,"alias node should not have any properties")):SZ(e,y,Up===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=o&&IM(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"&&at(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(ma.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||at(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&at(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)):at(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 jZ(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&&(Ir(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&&!Nn(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&at(e,"directive name must not be less than one character in length");a!==0;){for(;Ka(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!us(a));break}if(us(a))break;for(r=e.position;a!==0&&!Nn(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&g2(e),ma.call(RM,n)?RM[n](e,n,i):zp(e,'unknown document directive "'+n+'"')}if(Ir(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,Ir(e,!0,-1)):s&&at(e,"directives end mark is expected"),Zo(e,e.lineIndent-1,Vp,!1,!0),Ir(e,!0,-1),e.checkLineBreaks&&mZ.test(e.input.slice(t,e.position))&&zp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&_h(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ir(e,!0,-1));return}if(e.position<e.length-1)at(e,"end of the stream or a document separator is expected");else return}function r4(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
47
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new EZ(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,at(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;)jZ(r);return r.documents}function PZ(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=r4(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function kZ(e,t){var r=r4(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new En("expected a single document in the stream, but found more")}}var NZ=PZ,MZ=kZ,n4={loadAll:NZ,load:MZ},i4=Object.prototype.toString,s4=Object.prototype.hasOwnProperty,v2=65279,DZ=9,Rc=10,qZ=13,FZ=32,$Z=33,LZ=34,Rx=35,BZ=37,UZ=38,VZ=39,zZ=42,a4=44,WZ=45,Wp=58,JZ=61,HZ=62,KZ=63,GZ=64,o4=91,u4=93,YZ=96,c4=123,XZ=124,l4=125,ln={};ln[0]="\\0";ln[7]="\\a";ln[8]="\\b";ln[9]="\\t";ln[10]="\\n";ln[11]="\\v";ln[12]="\\f";ln[13]="\\r";ln[27]="\\e";ln[34]='\\"';ln[92]="\\\\";ln[133]="\\N";ln[160]="\\_";ln[8232]="\\L";ln[8233]="\\P";var ZZ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],QZ=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function eQ(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&&s4.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}function tQ(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 En("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+$r.repeat("0",n-t.length)+t}var rQ=1,Tc=2;function nQ(e){this.schema=e.schema||m2,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=$r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=eQ(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==='"'?Tc:rQ,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 jM(e,t){for(var r=$r.repeat(" ",t),n=0,i=-1,s="",a,o=e.length;n<o;)i=e.indexOf(`
|
|
48
|
-
`,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
49
|
-
`&&(s+=r),s+=a;return s}function Tx(e,t){return`
|
|
50
|
-
`+$r.repeat(" ",e.indent*t)}function iQ(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 Jp(e){return e===FZ||e===DZ}function Ic(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==v2||65536<=e&&e<=1114111}function PM(e){return Ic(e)&&e!==v2&&e!==qZ&&e!==Rc}function kM(e,t,r){var n=PM(e),i=n&&!Jp(e);return(r?n:n&&e!==a4&&e!==o4&&e!==u4&&e!==c4&&e!==l4)&&e!==Rx&&!(t===Wp&&!i)||PM(t)&&!Jp(t)&&e===Rx||t===Wp&&i}function sQ(e){return Ic(e)&&e!==v2&&!Jp(e)&&e!==WZ&&e!==KZ&&e!==Wp&&e!==a4&&e!==o4&&e!==u4&&e!==c4&&e!==l4&&e!==Rx&&e!==UZ&&e!==zZ&&e!==$Z&&e!==XZ&&e!==JZ&&e!==HZ&&e!==VZ&&e!==LZ&&e!==BZ&&e!==GZ&&e!==YZ}function aQ(e){return!Jp(e)&&e!==Wp}function uc(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 f4(e){var t=/^\n* /;return t.test(e)}var p4=1,Ix=2,d4=3,h4=4,Fo=5;function oQ(e,t,r,n,i,s,a,o){var u,c=0,l=null,f=!1,h=!1,d=n!==-1,g=-1,y=sQ(uc(e,0))&&aQ(uc(e,e.length-1));if(t||a)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=uc(e,u),!Ic(c))return Fo;y=y&&kM(c,l,o),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=uc(e,u),c===Rc)f=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!Ic(c))return Fo;y=y&&kM(c,l,o),l=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!f&&!h?y&&!a&&!i(e)?p4:s===Tc?Fo:Ix:r>9&&f4(e)?Fo:a?s===Tc?Fo:Ix:h?h4:d4}function uQ(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===Tc?'""':"''";if(!e.noCompatMode&&(ZZ.indexOf(t)!==-1||QZ.test(t)))return e.quotingType===Tc?'"'+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 iQ(e,c)}switch(oQ(t,o,e.indent,a,u,e.quotingType,e.forceQuotes&&!n,i)){case p4:return t;case Ix:return"'"+t.replace(/'/g,"''")+"'";case d4:return"|"+NM(t,e.indent)+MM(jM(t,s));case h4:return">"+NM(t,e.indent)+MM(jM(cQ(t,a),s));case Fo:return'"'+lQ(t)+'"';default:throw new En("impossible error: invalid scalar style")}})()}function NM(e,t){var r=f4(e)?String(t):"",n=e[e.length-1]===`
|
|
51
|
-
`,i=n&&(e[e.length-2]===`
|
|
52
|
-
`||e===`
|
|
53
|
-
`),s=i?"+":n?"":"-";return r+s+`
|
|
54
|
-
`}function MM(e){return e[e.length-1]===`
|
|
55
|
-
`?e.slice(0,-1):e}function cQ(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
|
|
56
|
-
`);return c=c!==-1?c:e.length,r.lastIndex=c,DM(e.slice(0,c),t)})(),i=e[0]===`
|
|
57
|
-
`||e[0]===" ",s,a;a=r.exec(e);){var o=a[1],u=a[2];s=u[0]===" ",n+=o+(!i&&!s&&u!==""?`
|
|
58
|
-
`:"")+DM(u,t),i=s}return n}function DM(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+=`
|
|
59
|
-
`+e.slice(i,s),i=s+1),a=o;return u+=`
|
|
60
|
-
`,e.length-i>t&&a>i?u+=e.slice(i,a)+`
|
|
61
|
-
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}function lQ(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=uc(e,i),n=ln[r],!n&&Ic(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||tQ(r);return t}function fQ(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)),(Ns(e,t,o,!1,!1)||typeof o>"u"&&Ns(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function qM(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)),(Ns(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Ns(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Tx(e,t)),e.dump&&Rc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function pQ(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)),Ns(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ns(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function dQ(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 En("sortKeys must be a boolean or a function");for(o=0,u=a.length;o<u;o+=1)h="",(!n||i!=="")&&(h+=Tx(e,t)),c=a[o],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),Ns(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Rc===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=Tx(e,t)),Ns(e,t+1,l,!0,f)&&(e.dump&&Rc===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function FM(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,i4.call(o.represent)==="[object Function]")n=o.represent(t,u);else if(s4.call(o.represent,u))n=o.represent[u](t,u);else throw new En("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function Ns(e,t,r,n,i,s,a){e.tag=null,e.dump=r,FM(e,r,!1)||FM(e,r,!0);var o=i4.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?(dQ(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(pQ(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?qM(e,t-1,e.dump,i):qM(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(fQ(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&uQ(e,e.dump,t,s,u);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new En("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 hQ(e,t){var r=[],n=[],i,s;for(jx(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function jx(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)jx(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)jx(e[n[i]],t,r)}function mQ(e,t){t=t||{};var r=new nQ(t);r.noRefs||hQ(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Ns(r,0,n,!0,!0)?r.dump+`
|
|
62
|
-
`:""}var gQ=mQ,yQ={dump:gQ};function b2(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 vQ=Qr,bQ=I8,_Q=N8,jc=$8,EQ=L8,SQ=m2,wQ=n4.load,xQ=n4.loadAll,AQ=yQ.dump,OQ=En,CQ={binary:W8,float:F8,map:k8,null:M8,pairs:H8,set:K8,timestamp:V8,bool:D8,int:q8,merge:z8,omap:J8,seq:P8,str:j8},RQ=b2("safeLoad","load"),TQ=b2("safeLoadAll","loadAll"),IQ=b2("safeDump","dump"),Qa={Type:vQ,Schema:bQ,FAILSAFE_SCHEMA:_Q,JSON_SCHEMA:jc,CORE_SCHEMA:EQ,DEFAULT_SCHEMA:SQ,load:wQ,loadAll:xQ,dump:AQ,YAMLException:OQ,types:CQ,safeLoad:RQ,safeLoadAll:TQ,safeDump:IQ},Op={exports:{}},jQ=Op.exports,$M;function PQ(){return $M||($M=1,(function(e){(function(t,r){e.exports?e.exports=r():(function n(){document&&document.body?t.zenscroll=r():setTimeout(n,9)})()})(jQ,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(E){h=E},g=function(){clearTimeout(h),d(0)},y=function(E){return Math.max(0,c.getTopOf(E)-f)},v=function(E,A,R){if(g(),A===0||A&&A<0||t(c.body))c.toY(E),R&&R();else{var I=c.getY(),O=Math.max(0,E)-I,D=new Date().getTime();A=A||Math.min(Math.abs(O),l),(function P(){d(setTimeout(function(){var F=Math.min(1,(new Date().getTime()-D)/A),M=Math.max(0,Math.floor(I+O*(F<.5?2*F*F:F*(4-F*2)-1)));c.toY(M),F<1&&c.getHeight()+M<c.body.scrollHeight?P():(setTimeout(g,99),R&&R())},9))})()}},_=function(E,A,R){v(y(E),A,R)},b=function(E,A,R){var I=E.getBoundingClientRect().height,O=c.getTopOf(E)+I,D=c.getHeight(),P=c.getY(),F=P+D;y(E)<P||I+f>D?_(E,A,R):O+f>F?v(O-D+f,A,R):R&&R()},S=function(E,A,R,I){v(Math.max(0,c.getTopOf(E)-c.getHeight()/2+(R||E.getBoundingClientRect().height/2)),A,I)},w=function(E,A){return(E===0||E)&&(l=E),(A===0||A)&&(f=A),{defaultDuration:l,edgeOffset:f}};return{setup:w,to:_,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})})(Op)),Op.exports}var kQ=PQ();const NQ=We.getDefaultExportFromCjs(kQ);/**
|
|
63
|
-
* @license
|
|
64
|
-
* MIT License
|
|
65
|
-
*
|
|
66
|
-
* Copyright (c) 2014-present, Lee Byron and other contributors.
|
|
67
|
-
*
|
|
68
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
69
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
70
|
-
* in the Software without restriction, including without limitation the rights
|
|
71
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
72
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
73
|
-
* furnished to do so, subject to the following conditions:
|
|
74
|
-
*
|
|
75
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
76
|
-
* copies or substantial portions of the Software.
|
|
77
|
-
*
|
|
78
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
79
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
80
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
81
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
82
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
83
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
84
|
-
* SOFTWARE.
|
|
85
|
-
*/var dl="delete",rr=5,Gn=1<<rr,Sn=Gn-1,jt={};function Px(){return{value:!1}}function mi(e){e&&(e.value=!0)}function _2(){}function Qo(e){return e.size===void 0&&(e.size=e.__iterate(m4)),e.size}function ga(e,t){if(typeof t!="number"){var r=t>>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?Qo(e)+t:t}function m4(){return!0}function hl(e,t,r){return(e===0&&!y4(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function Su(e,t){return g4(e,t,0)}function ml(e,t){return g4(e,t,t)}function g4(e,t,r){return e===void 0?r:y4(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function y4(e){return e<0||e===0&&1/e===-1/0}var v4="@@__IMMUTABLE_ITERABLE__@@";function Dn(e){return!!(e&&e[v4])}var Hp="@@__IMMUTABLE_KEYED__@@";function ir(e){return!!(e&&e[Hp])}var Kp="@@__IMMUTABLE_INDEXED__@@";function qn(e){return!!(e&&e[Kp])}function Eh(e){return ir(e)||qn(e)}var Vr=function(t){return Dn(t)?t:un(t)},Ei=(function(e){function t(r){return ir(r)?r:Sa(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Vr),co=(function(e){function t(r){return qn(r)?r:wi(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Vr),wu=(function(e){function t(r){return Dn(r)&&!Eh(r)?r:Ou(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Vr);Vr.Keyed=Ei;Vr.Indexed=co;Vr.Set=wu;var b4="@@__IMMUTABLE_SEQ__@@";function Sh(e){return!!(e&&e[b4])}var _4="@@__IMMUTABLE_RECORD__@@";function Ea(e){return!!(e&&e[_4])}function Si(e){return Dn(e)||Ea(e)}var ya="@@__IMMUTABLE_ORDERED__@@";function $i(e){return!!(e&&e[ya])}var xu=0,Zn=1,Qn=2,kx=typeof Symbol=="function"&&Symbol.iterator,E4="@@iterator",wh=kx||E4,Nt=function(t){this.next=t};Nt.prototype.toString=function(){return"[Iterator]"};Nt.KEYS=xu;Nt.VALUES=Zn;Nt.ENTRIES=Qn;Nt.prototype.inspect=Nt.prototype.toSource=function(){return this.toString()};Nt.prototype[wh]=function(){return this};function lr(e,t,r,n){var i=e===xu?t:e===Zn?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function on(){return{value:void 0,done:!0}}function E2(e){return Array.isArray(e)?!0:!!xh(e)}function LM(e){return e&&typeof e.next=="function"}function Nx(e){var t=xh(e);return t&&t.call(e)}function xh(e){var t=e&&(kx&&e[kx]||e[E4]);if(typeof t=="function")return t}function MQ(e){var t=xh(e);return t&&t===e.entries}function DQ(e){var t=xh(e);return t&&t===e.keys}var Au=Object.prototype.hasOwnProperty;function S2(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 un=(function(e){function t(r){return r==null?x2():Si(r)?r.toSeq():FQ(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 Nt(function(){if(o===a)return on();var u=s[i?a-++o:o++];return lr(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},t})(Vr),Sa=(function(e){function t(r){return r==null?x2().toKeyedSeq():Dn(r)?ir(r)?r.toSeq():r.fromEntrySeq():Ea(r)?r.toSeq():A2(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t})(un),wi=(function(e){function t(r){return r==null?x2():Dn(r)?ir(r)?r.entrySeq():r.toIndexedSeq():Ea(r)?r.toSeq().entrySeq():S4(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})(un),Ou=(function(e){function t(r){return(Dn(r)&&!Eh(r)?r:wi(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})(un);un.isSeq=Sh;un.Keyed=Sa;un.Set=Ou;un.Indexed=wi;un.prototype[b4]=!0;var eu=(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[ga(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 Nt(function(){if(o===a)return on();var u=i?a-++o:o++;return lr(n,u,s[u])})},t})(wi),w2=(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 Au.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 Nt(function(){if(u===o)return on();var c=a[i?o-++u:u++];return lr(n,c,s[c])})},t})(Sa);w2.prototype[ya]=!0;var qQ=(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=Nx(s),o=0;if(LM(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=Nx(s);if(!LM(a))return new Nt(on);var o=0;return new Nt(function(){var u=a.next();return u.done?u:lr(n,o++,u.value)})},t})(wi),BM;function x2(){return BM||(BM=new eu([]))}function A2(e){var t=O2(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new w2(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function S4(e){var t=O2(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function FQ(e){var t=O2(e);if(t)return MQ(e)?t.fromEntrySeq():DQ(e)?t.toSetSeq():t;if(typeof e=="object")return new w2(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function O2(e){return S2(e)?new eu(e):E2(e)?new qQ(e):void 0}var w4="@@__IMMUTABLE_MAP__@@";function Ah(e){return!!(e&&e[w4])}function C2(e){return Ah(e)&&$i(e)}function Mx(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function jr(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!!(Mx(e)&&Mx(t)&&e.equals(t))}var Ku=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 Oh(e){return e>>>1&1073741824|e&3221225471}var $Q=Object.prototype.valueOf;function kn(e){if(e==null)return UM(e);if(typeof e.hashCode=="function")return Oh(e.hashCode(e));var t=WQ(e);if(t==null)return UM(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return LQ(t);case"string":return t.length>JQ?BQ(t):Dx(t);case"object":case"function":return VQ(t);case"symbol":return UQ(t);default:if(typeof t.toString=="function")return Dx(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function UM(e){return e===null?1108378658:1108378659}function LQ(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 Oh(t)}function BQ(e){var t=a_[e];return t===void 0&&(t=Dx(e),s_===HQ&&(s_=0,a_={}),s_++,a_[e]=t),t}function Dx(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return Oh(t)}function UQ(e){var t=WM[e];return t!==void 0||(t=x4(),WM[e]=t),t}function VQ(e){var t;if(qx&&(t=Fx.get(e),t!==void 0)||(t=e[Ua],t!==void 0)||!zM&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ua],t!==void 0||(t=zQ(e),t!==void 0)))return t;if(t=x4(),qx)Fx.set(e,t);else{if(VM!==void 0&&VM(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(zM)Object.defineProperty(e,Ua,{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[Ua]=t;else if(e.nodeType!==void 0)e[Ua]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var VM=Object.isExtensible,zM=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function zQ(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function WQ(e){return e.valueOf!==$Q&&typeof e.valueOf=="function"?e.valueOf(e):e}function x4(){var e=++i_;return i_&1073741824&&(i_=0),e}var qx=typeof WeakMap=="function",Fx;qx&&(Fx=new WeakMap);var WM=Object.create(null),i_=0,Ua="__immutablehash__";typeof Symbol=="function"&&(Ua=Symbol(Ua));var JQ=16,HQ=255,s_=0,a_={},Ch=(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=R2(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},t.prototype.map=function(n,i){var s=this,a=T4(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})(Sa);Ch.prototype[ya]=!0;var A4=(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&&Qo(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(Zn,i),o=0;return i&&Qo(this),new Nt(function(){var u=a.next();return u.done?u:lr(n,i?s.size-++o:o++,u.value,u)})},t})(wi),O4=(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(Zn,i);return new Nt(function(){var a=s.next();return a.done?a:lr(n,a.value,a.value,a)})},t})(Ou),C4=(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){HM(a);var o=Dn(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(Zn,i);return new Nt(function(){for(;;){var a=s.next();if(a.done)return a;var o=a.value;if(o){HM(o);var u=Dn(o);return lr(n,u?o.get(0):o[0],u?o.get(1):o[1],a)}}})},t})(Sa);A4.prototype.cacheResult=Ch.prototype.cacheResult=O4.prototype.cacheResult=C4.prototype.cacheResult=j2;function R4(e){var t=hs(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=j2,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===Qn){var i=e.__iterator(r,n);return new Nt(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===Zn?xu:Zn,n)},t}function T4(e,t,r){var n=hs(e);return n.size=e.size,n.has=function(i){return e.has(i)},n.get=function(i,s){var a=e.get(i,jt);return a===jt?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(Qn,s);return new Nt(function(){var o=a.next();if(o.done)return o;var u=o.value,c=u[0];return lr(i,c,t.call(r,u[1],c,e),o)})},n}function R2(e,t){var r=this,n=hs(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var i=R4(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=j2,n.__iterate=function(i,s){var a=this,o=0;return s&&Qo(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&&Qo(e);var o=e.__iterator(Qn,!s);return new Nt(function(){var u=o.next();if(u.done)return u;var c=u.value;return lr(i,t?c[0]:s?r.size-++a:a++,c[1],u)})},n}function I4(e,t,r,n){var i=hs(e);return n&&(i.has=function(s){var a=e.get(s,jt);return a!==jt&&!!t.call(r,a,s,e)},i.get=function(s,a){var o=e.get(s,jt);return o!==jt&&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(Qn,a),u=0;return new Nt(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 lr(s,n?f:u++,h,c)}})},i}function KQ(e,t,r){var n=fo().asMutable();return e.__iterate(function(i,s){n.update(t.call(r,i,s,e),0,function(a){return a+1})}),n.asImmutable()}function GQ(e,t,r){var n=ir(e),i=($i(e)?cs():fo()).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=I2(e);return i.map(function(a){return tr(e,s(a))}).asImmutable()}function YQ(e,t,r){var n=ir(e),i=[[],[]];e.__iterate(function(a,o){i[t.call(r,a,o,e)?1:0].push(n?[o,a]:a)});var s=I2(e);return i.map(function(a){return tr(e,s(a))})}function T2(e,t,r,n){var i=e.size;if(hl(t,r,i))return e;if(typeof i>"u"&&(t<0||r<0))return T2(e.toSeq().cacheResult(),t,r,n);var s=Su(t,i),a=ml(r,i),o=a-s,u;o===o&&(u=o<0?0:o);var c=hs(e);return c.size=u===0?u:e.size&&u||void 0,!n&&Sh(e)&&u>=0&&(c.get=function(l,f){return l=ga(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,_){if(!(g&&(g=d++<s)))return y++,l(v,n?_: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 Nt(on);var h=e.__iterator(l,f),d=0,g=0;return new Nt(function(){for(;d++<s;)h.next();if(++g>u)return on();var y=h.next();return n||l===Zn||y.done?y:l===xu?lr(l,g-1,void 0,y):lr(l,g-1,y.value[1],y)})},c}function XQ(e,t,r){var n=hs(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(Qn,s),u=!0;return new Nt(function(){if(!u)return on();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===Qn?c:lr(i,f,h,c):(u=!1,on())})},n}function j4(e,t,r,n){var i=hs(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(Qn,a),c=!0,l=0;return new Nt(function(){var f,h,d;do{if(f=u.next(),f.done)return n||s===Zn?f:s===xu?lr(s,l++,void 0,f):lr(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===Qn?f:lr(s,h,d,f)})},i}var ZQ=(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[Hp]=this._wrappedIterables[0][Hp],this[Kp]=this._wrappedIterables[0][Kp],this[ya]=this._wrappedIterables[0][ya]}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=ir(this),o=a?Qn:Zn,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 Nt(on);if(i)return this.cacheResult().__iterator(n,i);var a=0,o=this._wrappedIterables[a].__iterator(n,i);return new Nt(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})(un);function QQ(e,t){var r=ir(e),n=[e].concat(t).map(function(s){return Dn(s)?r&&(s=Ei(s)):s=r?A2(s):S4(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&&ir(i)||qn(e)&&qn(i))return i}return new ZQ(n)}function P4(e,t,r){var n=hs(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)&&Dn(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 Nt(function(){for(;a;){var c=a.next();if(c.done!==!1){a=o.pop();continue}var l=c.value;if(i===Qn&&(l=l[1]),(!t||o.length<t)&&Dn(l))o.push(a),a=l.__iterator(i,s);else return r?c:lr(i,u++,l,c)}return on()})},n}function eee(e,t,r){var n=I2(e);return e.toSeq().map(function(i,s){return n(t.call(r,i,s,e))}).flatten(!0)}function tee(e,t){var r=hs(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(Zn,i),a=0,o;return new Nt(function(){return(!o||a%2)&&(o=s.next(),o.done)?o:a%2?lr(n,a++,t):lr(n,a++,o.value,o)})},r}function tu(e,t,r){t||(t=k4);var n=ir(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?Sa(s):qn(e)?wi(s):Ou(s)}function np(e,t,r){if(t||(t=k4),r){var n=e.toSeq().map(function(i,s){return[i,r(i,s,e)]}).reduce(function(i,s){return JM(t,i[1],s[1])?s:i});return n&&n[0]}return e.reduce(function(i,s){return JM(t,i,s)?s:i})}function JM(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r==null||r!==r)||n>0}function ip(e,t,r,n){var i=hs(e),s=new eu(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(Zn,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=Vr(f),Nx(o?f.reverse():f)}),c=0,l=!1;return new Nt(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?on():lr(a,c++,t.apply(null,f.map(function(h){return h.value})))})},i}function tr(e,t){return e===t?e:Sh(e)?t:e.constructor(t)}function HM(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function I2(e){return ir(e)?Ei:qn(e)?co:wu}function hs(e){return Object.create((ir(e)?Sa:qn(e)?wi:Ou).prototype)}function j2(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):un.prototype.cacheResult.call(this)}function k4(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 ss(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 _c(e,t){if(!e)throw new Error(t)}function Kn(e){_c(e!==1/0,"Cannot perform this action with an infinite size.")}function N4(e){if(S2(e)&&typeof e!="string")return e;if($i(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var ree=Object.prototype.toString;function P2(e){if(!e||typeof e!="object"||ree.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 va(e){return typeof e=="object"&&(Si(e)||Array.isArray(e)||P2(e))}function Pc(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function M4(e,t){return Si(e)?e.has(t):va(e)&&Au.call(e,t)}function k2(e,t,r){return Si(e)?e.get(t,r):M4(e,t)?typeof e.get=="function"?e.get(t):e[t]:r}function Gp(e){if(Array.isArray(e))return ss(e);var t={};for(var r in e)Au.call(e,r)&&(t[r]=e[r]);return t}function D4(e,t){if(!va(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Si(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!Au.call(e,t))return e;var r=Gp(e);return Array.isArray(r)?r.splice(t,1):delete r[t],r}function q4(e,t,r){if(!va(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Si(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,r)}if(Au.call(e,t)&&r===e[t])return e;var n=Gp(e);return n[t]=r,n}function lo(e,t,r,n){n||(n=r,r=void 0);var i=F4(Si(e),e,N4(t),0,r,n);return i===jt?r:i}function F4(e,t,r,n,i,s){var a=t===jt;if(n===r.length){var o=a?i:t,u=s(o);return u===o?t:u}if(!a&&!va(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(r).slice(0,n).map(Pc)+"]: "+t);var c=r[n],l=a?jt:k2(t,c,jt),f=F4(l===jt?e:Si(l),l,r,n+1,i,s);return f===l?t:f===jt?D4(t,c):q4(a?e?os():{}:t,c,f)}function $4(e,t,r){return lo(e,t,jt,function(){return r})}function N2(e,t){return $4(this,e,t)}function L4(e,t){return lo(e,t,function(){return jt})}function M2(e){return L4(this,e)}function D2(e,t,r,n){return lo(e,[t],r,n)}function q2(e,t,r){return arguments.length===1?e(this):D2(this,e,t,r)}function F2(e,t,r){return lo(this,e,t,r)}function B4(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return V4(this,e)}function U4(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 V4(this,t,e)}function V4(e,t,r){for(var n=[],i=0;i<t.length;i++){var s=Ei(t[i]);s.size!==0&&n.push(s)}return n.length===0?e:e.toSeq().size===0&&!e.__ownerID&&n.length===1?Ea(e)?e:e.constructor(n[0]):e.withMutations(function(a){for(var o=r?function(c,l){D2(a,l,jt,function(f){return f===jt?c:r(f,c,l)})}:function(c,l){a.set(l,c)},u=0;u<n.length;u++)n[u].forEach(o)})}function nee(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return yl(e,t)}function iee(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return yl(t,r,e)}function see(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return gl(e,t)}function aee(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return gl(t,r,e)}function gl(e,t,r){return yl(e,t,oee(r))}function yl(e,t,r){if(!va(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Si(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?co:Ei,a=n?function(u){i===e&&(i=Gp(i)),i.push(u)}:function(u,c){var l=Au.call(i,c),f=l&&r?r(i[c],u,c):u;(!l||f!==i[c])&&(i===e&&(i=Gp(i)),i[c]=f)},o=0;o<t.length;o++)s(t[o]).forEach(a);return i}function oee(e){function t(r,n,i){return va(r)&&va(n)&&uee(r,n)?yl(r,[n],t):e?e(r,n,i):n}return t}function uee(e,t){var r=un(e),n=un(t);return qn(r)===qn(n)&&ir(r)===ir(n)}function z4(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return gl(this,e)}function W4(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return gl(this,t,e)}function $2(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return lo(this,e,os(),function(n){return yl(n,t)})}function L2(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return lo(this,e,os(),function(n){return gl(n,t)})}function vl(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function bl(){return this.__ownerID?this:this.__ensureOwner(new _2)}function _l(){return this.__ensureOwner()}function B2(){return this.__altered}var fo=(function(e){function t(r){return r==null?os():Ah(r)&&!$i(r)?r:os().withMutations(function(n){var i=e(r);Kn(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 YM(this,n,i)},t.prototype.remove=function(n){return YM(this,n,jt)},t.prototype.deleteAll=function(n){var i=Vr(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):os()},t.prototype.sort=function(n){return cs(tu(this,n))},t.prototype.sortBy=function(n,i){return cs(tu(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 cee(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?U2(this.size,this._root,n,this.__hash):this.size===0?os():(this.__ownerID=n,this.__altered=!1,this)},t})(Ei);fo.isMap=Ah;var fr=fo.prototype;fr[w4]=!0;fr[dl]=fr.remove;fr.removeAll=fr.deleteAll;fr.setIn=N2;fr.removeIn=fr.deleteIn=M2;fr.update=q2;fr.updateIn=F2;fr.merge=fr.concat=B4;fr.mergeWith=U4;fr.mergeDeep=z4;fr.mergeDeepWith=W4;fr.mergeIn=$2;fr.mergeDeepIn=L2;fr.withMutations=vl;fr.wasAltered=B2;fr.asImmutable=_l;fr["@@transducer/init"]=fr.asMutable=bl;fr["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};fr["@@transducer/result"]=function(e){return e.asImmutable()};var kc=function(t,r){this.ownerID=t,this.entries=r};kc.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(jr(n,s[a][0]))return s[a][1];return i};kc.prototype.update=function(t,r,n,i,s,a,o){for(var u=s===jt,c=this.entries,l=0,f=c.length;l<f&&!jr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(mi(o),(u||!h)&&mi(a),!(u&&c.length===1)){if(!h&&!u&&c.length>=mee)return lee(t,c,i,s);var d=t&&t===this.ownerID,g=d?c:ss(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 kc(t,g)}};var ru=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};ru.prototype.get=function(t,r,n,i){r===void 0&&(r=kn(n));var s=1<<((t===0?r:r>>>t)&Sn),a=this.bitmap;return(a&s)===0?i:this.nodes[J4(a&s-1)].get(t+rr,r,n,i)};ru.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=kn(i));var u=(r===0?n:n>>>r)&Sn,c=1<<u,l=this.bitmap,f=(l&c)!==0;if(!f&&s===jt)return this;var h=J4(l&c-1),d=this.nodes,g=f?d[h]:void 0,y=V2(g,t,r+rr,n,i,s,a,o);if(y===g)return this;if(!f&&y&&d.length>=gee)return pee(t,d,l,u,y);if(f&&!y&&d.length===2&&XM(d[h^1]))return d[h^1];if(f&&y&&d.length===1&&XM(y))return y;var v=t&&t===this.ownerID,_=f?y?l:l^c:l|c,b=f?y?H4(d,h,y,v):hee(d,h,v):dee(d,h,y,v);return v?(this.bitmap=_,this.nodes=b,this):new ru(t,_,b)};var Nc=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};Nc.prototype.get=function(t,r,n,i){r===void 0&&(r=kn(n));var s=(t===0?r:r>>>t)&Sn,a=this.nodes[s];return a?a.get(t+rr,r,n,i):i};Nc.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=kn(i));var u=(r===0?n:n>>>r)&Sn,c=s===jt,l=this.nodes,f=l[u];if(c&&!f)return this;var h=V2(f,t,r+rr,n,i,s,a,o);if(h===f)return this;var d=this.count;if(!f)d++;else if(!h&&(d--,d<yee))return fee(t,l,d,u);var g=t&&t===this.ownerID,y=H4(l,u,h,g);return g?(this.count=d,this.nodes=y,this):new Nc(t,d,y)};var nu=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entries=n};nu.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(jr(n,s[a][0]))return s[a][1];return i};nu.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=kn(i));var u=s===jt;if(n!==this.keyHash)return u?this:(mi(o),mi(a),z2(this,t,r,n,[i,s]));for(var c=this.entries,l=0,f=c.length;l<f&&!jr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(mi(o),(u||!h)&&mi(a),u&&f===2)return new Ms(t,this.keyHash,c[l^1]);var d=t&&t===this.ownerID,g=d?c:ss(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 nu(t,this.keyHash,g)};var Ms=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entry=n};Ms.prototype.get=function(t,r,n,i){return jr(n,this.entry[0])?this.entry[1]:i};Ms.prototype.update=function(t,r,n,i,s,a,o){var u=s===jt,c=jr(i,this.entry[0]);if(c?s===this.entry[1]:u)return this;if(mi(o),u){mi(a);return}return c?t&&t===this.ownerID?(this.entry[1]=s,this):new Ms(t,this.keyHash,[i,s]):(mi(a),z2(this,t,r,kn(i),[i,s]))};kc.prototype.iterate=nu.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};ru.prototype.iterate=Nc.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}};Ms.prototype.iterate=function(e,t){return e(this.entry)};var cee=(function(e){function t(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&KM(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 o_(n,s.entry)}else if(s.entries){if(o=s.entries.length-1,a<=o)return o_(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 o_(n,u.entry);i=this._stack=KM(u,i)}continue}i=this._stack=this._stack.__prev}return on()},t})(Nt);function o_(e,t){return lr(e,t[0],t[1])}function KM(e,t){return{node:e,index:0,__prev:t}}function U2(e,t,r,n){var i=Object.create(fr);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var GM;function os(){return GM||(GM=U2(0))}function YM(e,t,r){var n,i;if(e._root){var s=Px(),a=Px();if(n=V2(e._root,e.__ownerID,0,void 0,t,r,s,a),!a.value)return e;i=e.size+(s.value?r===jt?-1:1:0)}else{if(r===jt)return e;i=1,n=new kc(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?U2(i,n):os()}function V2(e,t,r,n,i,s,a,o){return e?e.update(t,r,n,i,s,a,o):s===jt?e:(mi(o),mi(a),new Ms(t,n,[i,s]))}function XM(e){return e.constructor===Ms||e.constructor===nu}function z2(e,t,r,n,i){if(e.keyHash===n)return new nu(t,n,[e.entry,i]);var s=(r===0?e.keyHash:e.keyHash>>>r)&Sn,a=(r===0?n:n>>>r)&Sn,o,u=s===a?[z2(e,t,r+rr,n,i)]:(o=new Ms(t,n,i),s<a?[e,o]:[o,e]);return new ru(t,1<<s|1<<a,u)}function lee(e,t,r,n){e||(e=new _2);for(var i=new Ms(e,kn(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 fee(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 ru(e,i,a)}function pee(e,t,r,n,i){for(var s=0,a=new Array(Gn),o=0;r!==0;o++,r>>>=1)a[o]=r&1?t[s++]:void 0;return a[n]=i,new Nc(e,s+1,a)}function J4(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 H4(e,t,r,n){var i=n?e:ss(e);return i[t]=r,i}function dee(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 hee(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 mee=Gn/4,gee=Gn/2,yee=Gn/4,K4="@@__IMMUTABLE_LIST__@@";function W2(e){return!!(e&&e[K4])}var El=(function(e){function t(r){var n=Cp();if(r==null)return n;if(W2(r))return r;var i=e(r),s=i.size;return s===0?n:(Kn(s),s>0&&s<Gn?Mc(0,s,rr,null,new da(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=ga(this,n),n>=0&&n<this.size){n+=this._origin;var s=G4(this,n);return s&&s.array[n&Sn]}return i},t.prototype.set=function(n,i){return vee(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=rr,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Cp()},t.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(s){aa(s,0,i+n.length);for(var a=0;a<n.length;a++)s.set(i+a,n[a])})},t.prototype.pop=function(){return aa(this,0,-1)},t.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){aa(i,-n.length);for(var s=0;s<n.length;s++)i.set(s,n[s])})},t.prototype.shift=function(){return aa(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"&&E2(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 aa(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 hl(n,i,s)?this:aa(this,Su(n,s),ml(i,s))},t.prototype.__iterator=function(n,i){var s=i?this.size:0,a=ZM(this,i);return new Nt(function(){var o=a();return o===Ec?on():lr(n,i?--s:s++,o)})},t.prototype.__iterate=function(n,i){for(var s=i?this.size:0,a=ZM(this,i),o;(o=a())!==Ec&&n(o,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Mc(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?Cp():(this.__ownerID=n,this.__altered=!1,this)},t})(co);El.isList=W2;var Pr=El.prototype;Pr[K4]=!0;Pr[dl]=Pr.remove;Pr.merge=Pr.concat;Pr.setIn=N2;Pr.deleteIn=Pr.removeIn=M2;Pr.update=q2;Pr.updateIn=F2;Pr.mergeIn=$2;Pr.mergeDeepIn=L2;Pr.withMutations=vl;Pr.wasAltered=B2;Pr.asImmutable=_l;Pr["@@transducer/init"]=Pr.asMutable=bl;Pr["@@transducer/step"]=function(e,t){return e.push(t)};Pr["@@transducer/result"]=function(e){return e.asImmutable()};var da=function(t,r){this.array=t,this.ownerID=r};da.prototype.removeBefore=function(t,r,n){if((n&(1<<r+rr)-1)===0||this.array.length===0)return this;var i=n>>>r&Sn;if(i>=this.array.length)return new da([],t);var s=i===0,a;if(r>0){var o=this.array[i];if(a=o&&o.removeBefore(t,r-rr,n),a===o&&s)return this}if(s&&!a)return this;var u=iu(this,t);if(!s)for(var c=0;c<i;c++)u.array[c]=void 0;return a&&(u.array[i]=a),u};da.prototype.removeAfter=function(t,r,n){if(n===(r?1<<r+rr:Gn)||this.array.length===0)return this;var i=n-1>>>r&Sn;if(i>=this.array.length)return this;var s;if(r>0){var a=this.array[i];if(s=a&&a.removeAfter(t,r-rr,n),s===a&&i===this.array.length-1)return this}var o=iu(this,t);return o.array.splice(i+1),s&&(o.array[i]=s),o};var Ec={};function ZM(e,t){var r=e._origin,n=e._capacity,i=Dc(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>Gn&&(d=Gn),function(){if(h===d)return Ec;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>Gn&&(y=Gn),function(){for(;;){if(h){var v=h();if(v!==Ec)return v;h=null}if(g===y)return Ec;var _=t?--y:g++;h=a(d&&d[_],l-rr,f+(_<<l))}}}}function Mc(e,t,r,n,i,s,a){var o=Object.create(Pr);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 Cp(){return Mc(0,0,rr)}function vee(e,t,r){if(t=ga(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(a){t<0?aa(a,t).set(0,r):aa(a,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,s=Px();return t>=Dc(e._capacity)?n=$x(n,e.__ownerID,0,t,r,s):i=$x(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):Mc(e._origin,e._capacity,e._level,i,n):e}function $x(e,t,r,n,i,s){var a=n>>>r&Sn,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=$x(c,t,r-rr,n,i,s);return l===c?e:(u=iu(e,t),u.array[a]=l,u)}return o&&e.array[a]===i?e:(s&&mi(s),u=iu(e,t),i===void 0&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function iu(e,t){return t&&e&&t===e.ownerID?e:new da(e?e.array.slice():[],t)}function G4(e,t){if(t>=Dc(e._capacity))return e._tail;if(t<1<<e._level+rr){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&Sn],n-=rr;return r}}function aa(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new _2,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 da(c&&c.array.length?[void 0,c]:[],n),u+=rr,l+=1<<u;l&&(a+=l,i+=l,o+=l,s+=l);for(var f=Dc(s),h=Dc(o);h>=1<<u+rr;)c=new da(c&&c.array.length?[c]:[],n),u+=rr;var d=e._tail,g=h<f?G4(e,o-1):h>f?new da([],n):d;if(d&&h>f&&a<s&&d.array.length){c=iu(c,n);for(var y=c,v=u;v>rr;v-=rr){var _=f>>>v&Sn;y=y.array[_]=iu(y.array[_],n)}y.array[f>>>rr&Sn]=d}if(o<s&&(g=g&&g.removeAfter(n,0,o)),a>=h)a-=h,o-=h,u=rr,c=null,g=g&&g.removeBefore(n,0,a);else if(a>i||h<f){for(l=0;c;){var b=a>>>u&Sn;if(b!==h>>>u&Sn)break;b&&(l+=(1<<u)*b),u-=rr,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):Mc(a,o,u,c,g)}function Dc(e){return e<Gn?0:e-1>>>rr<<rr}var cs=(function(e){function t(r){return r==null?cc():C2(r)?r:cc().withMutations(function(n){var i=Ei(r);Kn(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):cc()},t.prototype.set=function(n,i){return eD(this,n,i)},t.prototype.remove=function(n){return eD(this,n,jt)},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?J2(i,s,n,this.__hash):this.size===0?cc():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=s,this)},t})(fo);cs.isOrderedMap=C2;cs.prototype[ya]=!0;cs.prototype[dl]=cs.prototype.remove;function J2(e,t,r,n){var i=Object.create(cs.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 QM;function cc(){return QM||(QM=J2(os(),Cp()))}function eD(e,t,r){var n=e._map,i=e._list,s=n.get(t),a=s!==void 0,o,u;if(r===jt){if(!a)return e;i.size>=Gn&&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):J2(o,u)}var Y4="@@__IMMUTABLE_STACK__@@";function Yp(e){return!!(e&&e[Y4])}var Rh=(function(e){function t(r){return r==null?sp():Yp(r)?r:sp().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=ga(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):lc(i,s)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&Yp(n))return n;Kn(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):lc(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):sp()},t.prototype.slice=function(n,i){if(hl(n,i,this.size))return this;var s=Su(n,this.size),a=ml(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):lc(o,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?lc(this.size,this._head,n,this.__hash):this.size===0?sp():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,i){var s=this;if(i)return new eu(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 eu(this.toArray()).__iterator(n,i);var s=0,a=this._head;return new Nt(function(){if(a){var o=a.value;return a=a.next,lr(n,s++,o)}return on()})},t})(co);Rh.isStack=Yp;var wn=Rh.prototype;wn[Y4]=!0;wn.shift=wn.pop;wn.unshift=wn.push;wn.unshiftAll=wn.pushAll;wn.withMutations=vl;wn.wasAltered=B2;wn.asImmutable=_l;wn["@@transducer/init"]=wn.asMutable=bl;wn["@@transducer/step"]=function(e,t){return e.unshift(t)};wn["@@transducer/result"]=function(e){return e.asImmutable()};function lc(e,t,r,n){var i=Object.create(wn);return i.size=e,i._head=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var tD;function sp(){return tD||(tD=lc(0))}var X4="@@__IMMUTABLE_SET__@@";function Th(e){return!!(e&&e[X4])}function H2(e){return Th(e)&&$i(e)}function K2(e,t){if(e===t)return!0;if(!Dn(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||ir(e)!==ir(t)||qn(e)!==qn(t)||$i(e)!==$i(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!Eh(e);if($i(e)){var n=e.entries();return t.every(function(u,c){var l=n.next().value;return l&&jr(l[1],u)&&(r||jr(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?!jr(u,e.get(c,jt)):!jr(e.get(c,jt),u))return a=!1,!1});return a&&e.size===o}function po(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 Xp(e){if(!e||typeof e!="object")return e;if(!Dn(e)){if(!va(e))return e;e=un(e)}if(ir(e)){var t={};return e.__iterate(function(n,i){t[i]=Xp(n)}),t}var r=[];return e.__iterate(function(n){r.push(Xp(n))}),r}var Sl=(function(e){function t(r){return r==null?fc():Th(r)&&!$i(r)?r:fc().withMutations(function(n){var i=e(r);Kn(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(Ei(n).keySeq())},t.intersect=function(n){return n=Vr(n).toArray(),n.length?en.intersect.apply(t(n.pop()),n):fc()},t.union=function(n){return n=Vr(n).toArray(),n.length?en.union.apply(t(n.pop()),n):fc()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return ap(this,this._map.set(n,n))},t.prototype.remove=function(n){return ap(this,this._map.remove(n))},t.prototype.clear=function(){return ap(this,this._map.clear())},t.prototype.map=function(n,i){var s=this,a=!1,o=ap(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 au(tu(this,n))},t.prototype.sortBy=function(n,i){return au(tu(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})(wu);Sl.isSet=Th;var en=Sl.prototype;en[X4]=!0;en[dl]=en.remove;en.merge=en.concat=en.union;en.withMutations=vl;en.asImmutable=_l;en["@@transducer/init"]=en.asMutable=bl;en["@@transducer/step"]=function(e,t){return e.add(t)};en["@@transducer/result"]=function(e){return e.asImmutable()};en.__empty=fc;en.__make=Z4;function ap(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 Z4(e,t){var r=Object.create(en);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var rD;function fc(){return rD||(rD=Z4(os()))}var Q4=(function(e){function t(r,n,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(r,n,i);if(_c(i!==0,"Cannot step a Range by 0"),_c(r!==void 0,"You must define a start value when using Range"),_c(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(u_)return u_;u_=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+ga(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 hl(n,i,this.size)?this:(n=Su(n,this.size),i=ml(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 Nt(function(){if(u===s)return on();var c=o;return o+=i?-a:a,lr(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:K2(this,n)},t})(wi),u_;function G2(e,t,r){for(var n=N4(t),i=0;i!==n.length;)if(e=k2(e,n[i++],jt),e===jt)return r;return e}function eU(e,t){return G2(this,e,t)}function tU(e,t){return G2(e,t,jt)!==jt}function bee(e){return tU(this,e)}function rU(){Kn(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}Vr.Iterator=Nt;po(Vr,{toArray:function(){Kn(this.size);var t=new Array(this.size||0),r=ir(this),n=0;return this.__iterate(function(i,s){t[n++]=r?[s,i]:i}),t},toIndexedSeq:function(){return new A4(this)},toJS:function(){return Xp(this)},toKeyedSeq:function(){return new Ch(this,!0)},toMap:function(){return fo(this.toKeyedSeq())},toObject:rU,toOrderedMap:function(){return cs(this.toKeyedSeq())},toOrderedSet:function(){return au(ir(this)?this.valueSeq():this)},toSet:function(){return Sl(ir(this)?this.valueSeq():this)},toSetSeq:function(){return new O4(this)},toSeq:function(){return qn(this)?this.toIndexedSeq():ir(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Rh(ir(this)?this.valueSeq():this)},toList:function(){return El(ir(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 tr(this,QQ(this,t))},includes:function(t){return this.some(function(r){return jr(r,t)})},entries:function(){return this.__iterator(Qn)},every:function(t,r){Kn(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 tr(this,I4(this,t,r,!0))},partition:function(t,r){return YQ(this,t,r)},find:function(t,r,n){var i=this.findEntry(t,r);return i?i[1]:n},forEach:function(t,r){return Kn(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){Kn(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(xu)},map:function(t,r){return tr(this,T4(this,t,r))},reduce:function(t,r,n){return nD(this,t,r,n,arguments.length<2,!1)},reduceRight:function(t,r,n){return nD(this,t,r,n,arguments.length<2,!0)},reverse:function(){return tr(this,R2(this,!0))},slice:function(t,r){return tr(this,T2(this,t,r,!0))},some:function(t,r){Kn(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 tr(this,tu(this,t))},values:function(){return this.__iterator(Zn)},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 Qo(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return KQ(this,t,r)},equals:function(t){return K2(this,t)},entrySeq:function(){var t=this;if(t._cache)return new eu(t._cache);var r=t.toSeq().map(Eee).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(c_(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(m4,null,t)},flatMap:function(t,r){return tr(this,eee(this,t,r))},flatten:function(t){return tr(this,P4(this,t,!0))},fromEntrySeq:function(){return new C4(this)},get:function(t,r){return this.find(function(n,i){return jr(i,t)},void 0,r)},getIn:eU,groupBy:function(t,r){return GQ(this,t,r)},has:function(t){return this.get(t,jt)!==jt},hasIn:bee,isSubset:function(t){return t=typeof t.includes=="function"?t:Vr(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:Vr(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return jr(r,t)})},keySeq:function(){return this.toSeq().map(_ee).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return np(this,t)},maxBy:function(t,r){return np(this,r,t)},min:function(t){return np(this,t?iD(t):aD)},minBy:function(t,r){return np(this,r?iD(r):aD,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 tr(this,j4(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(c_(t),r)},sortBy:function(t,r){return tr(this,tu(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 tr(this,XQ(this,t,r))},takeUntil:function(t,r){return this.takeWhile(c_(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=See(this))}});var cn=Vr.prototype;cn[v4]=!0;cn[wh]=cn.values;cn.toJSON=cn.toArray;cn.__toStringMapper=Pc;cn.inspect=cn.toSource=function(){return this.toString()};cn.chain=cn.flatMap;cn.contains=cn.includes;po(Ei,{flip:function(){return tr(this,R4(this))},mapEntries:function(t,r){var n=this,i=0;return tr(this,this.toSeq().map(function(s,a){return t.call(r,[a,s],i++,n)}).fromEntrySeq())},mapKeys:function(t,r){var n=this;return tr(this,this.toSeq().flip().map(function(i,s){return t.call(r,i,s,n)}).flip())}});var wl=Ei.prototype;wl[Hp]=!0;wl[wh]=cn.entries;wl.toJSON=rU;wl.__toStringMapper=function(e,t){return Pc(t)+": "+Pc(e)};po(co,{toKeyedSeq:function(){return new Ch(this,!1)},filter:function(t,r){return tr(this,I4(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 tr(this,R2(this,!1))},slice:function(t,r){return tr(this,T2(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=Su(t,t<0?this.count():this.size);var i=this.slice(0,t);return tr(this,n===1?i:i.concat(ss(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 tr(this,P4(this,t,!1))},get:function(t,r){return t=ga(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=ga(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return tr(this,tee(this,t))},interleave:function(){var t=[this].concat(ss(arguments)),r=ip(this.toSeq(),wi.of,t),n=r.flatten(!0);return r.size&&(n.size=r.size*t.length),tr(this,n)},keySeq:function(){return Q4(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return tr(this,j4(this,t,r,!1))},zip:function(){var t=[this].concat(ss(arguments));return tr(this,ip(this,sD,t))},zipAll:function(){var t=[this].concat(ss(arguments));return tr(this,ip(this,sD,t,!0))},zipWith:function(t){var r=ss(arguments);return r[0]=this,tr(this,ip(this,t,r))}});var Cu=co.prototype;Cu[Kp]=!0;Cu[ya]=!0;po(wu,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var su=wu.prototype;su.has=cn.includes;su.contains=su.includes;su.keys=su.values;po(Sa,wl);po(wi,Cu);po(Ou,su);function nD(e,t,r,n,i,s){return Kn(e.size),e.__iterate(function(a,o,u){i?(i=!1,r=a):r=t.call(n,r,a,o,u)},s),r}function _ee(e,t){return t}function Eee(e,t){return[t,e]}function c_(e){return function(){return!e.apply(this,arguments)}}function iD(e){return function(){return-e.apply(this,arguments)}}function sD(){return ss(arguments)}function aD(e,t){return e<t?1:e>t?-1:0}function See(e){if(e.size===1/0)return 0;var t=$i(e),r=ir(e),n=t?1:0;return e.__iterate(r?t?function(i,s){n=31*n+oD(kn(i),kn(s))|0}:function(i,s){n=n+oD(kn(i),kn(s))|0}:t?function(i){n=31*n+kn(i)|0}:function(i){n=n+kn(i)|0}),wee(e.size,n)}function wee(e,t){return t=Ku(t,3432918353),t=Ku(t<<15|t>>>-15,461845907),t=Ku(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Ku(t^t>>>16,2246822507),t=Ku(t^t>>>13,3266489909),t=Oh(t^t>>>16),t}function oD(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var au=(function(e){function t(r){return r==null?Lx():H2(r)?r:Lx().withMutations(function(n){var i=wu(r);Kn(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(Ei(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t})(Sl);au.isOrderedSet=H2;var ho=au.prototype;ho[ya]=!0;ho.zip=Cu.zip;ho.zipWith=Cu.zipWith;ho.zipAll=Cu.zipAll;ho.__empty=Lx;ho.__make=nU;function nU(e,t){var r=Object.create(ho);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var uD;function Lx(){return uD||(uD=nU(cc()))}var xee={LeftThenRight:-1,RightThenLeft:1};function Aee(e){if(Ea(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Si(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 Lr=function(t,r){var n;Aee(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 "+X2(this)+' with property "'+h+'" since that property name is part of the Record API.'):Oee(s,h)}}return this.__ownerID=void 0,this._values=El().withMutations(function(d){d.setSize(u._keys.length),Ei(o).forEach(function(g,y){d.set(u._indices[y],g===u._defaultValues[y]?void 0:g)})}),this},s=i.prototype=Object.create(ar);return s.constructor=i,r&&(i.displayName=r),i};Lr.prototype.toString=function(){for(var t=X2(this)+" { ",r=this._keys,n,i=0,s=r.length;i!==s;i++)n=r[i],t+=(i?", ":"")+n+": "+Pc(this.get(n));return t+" }"};Lr.prototype.equals=function(t){return this===t||Ea(t)&&ou(this).equals(ou(t))};Lr.prototype.hashCode=function(){return ou(this).hashCode()};Lr.prototype.has=function(t){return this._indices.hasOwnProperty(t)};Lr.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};Lr.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 Y2(this,n)}return this};Lr.prototype.remove=function(t){return this.set(t)};Lr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Y2(this,t)};Lr.prototype.wasAltered=function(){return this._values.wasAltered()};Lr.prototype.toSeq=function(){return ou(this)};Lr.prototype.toJS=function(){return Xp(this)};Lr.prototype.entries=function(){return this.__iterator(Qn)};Lr.prototype.__iterator=function(t,r){return ou(this).__iterator(t,r)};Lr.prototype.__iterate=function(t,r){return ou(this).__iterate(t,r)};Lr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?Y2(this,r,t):(this.__ownerID=t,this._values=r,this)};Lr.isRecord=Ea;Lr.getDescriptiveName=X2;var ar=Lr.prototype;ar[_4]=!0;ar[dl]=ar.remove;ar.deleteIn=ar.removeIn=M2;ar.getIn=eU;ar.hasIn=cn.hasIn;ar.merge=B4;ar.mergeWith=U4;ar.mergeIn=$2;ar.mergeDeep=z4;ar.mergeDeepWith=W4;ar.mergeDeepIn=L2;ar.setIn=N2;ar.update=q2;ar.updateIn=F2;ar.withMutations=vl;ar.asMutable=bl;ar.asImmutable=_l;ar[wh]=ar.entries;ar.toJSON=ar.toObject=cn.toObject;ar.inspect=ar.toSource=function(){return this.toString()};function Y2(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._values=t,n.__ownerID=r,n}function X2(e){return e.constructor.displayName||e.constructor.name||"Record"}function ou(e){return A2(e._keys.map(function(t){return[t,e.get(t)]}))}function Oee(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(r){_c(this.__ownerID,"Cannot set on an immutable record."),this.set(t,r)}})}catch{}}var Cee=(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(l_)return l_;l_=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 jr(this._value,n)},t.prototype.slice=function(n,i){var s=this.size;return hl(n,i,s)?this:new t(this._value,ml(i,s)-Su(n,s))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(n){return jr(this._value,n)?0:-1},t.prototype.lastIndexOf=function(n){return jr(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 Nt(function(){return o===a?on():lr(n,i?a-++o:o++,s._value)})},t.prototype.equals=function(n){return n instanceof t?jr(this._value,n._value):K2(this,n)},t})(wi),l_;function Ree(e,t){return iU([],t||Tee,e,"",t&&t.length>2?[]:void 0,{"":e})}function iU(e,t,r,n,i,s){if(typeof r!="string"&&!Si(r)&&(S2(r)||E2(r)||P2(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,un(r).map(function(o,u){return iU(e,t,o,u,i,r)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return r}function Tee(e,t){return qn(t)?t.toList():ir(t)?t.toMap():t.toSet()}var Iee="5.1.3",jee=Vr;const Pee=Object.freeze(Object.defineProperty({__proto__:null,Collection:Vr,Iterable:jee,List:El,Map:fo,OrderedMap:cs,OrderedSet:au,PairSorting:xee,Range:Q4,Record:Lr,Repeat:Cee,Seq:un,Set:Sl,Stack:Rh,fromJS:Ree,get:k2,getIn:G2,has:M4,hasIn:tU,hash:kn,is:jr,isAssociative:Eh,isCollection:Dn,isImmutable:Si,isIndexed:qn,isKeyed:ir,isList:W2,isMap:Ah,isOrdered:$i,isOrderedMap:C2,isOrderedSet:H2,isPlainObject:P2,isRecord:Ea,isSeq:Sh,isSet:Th,isStack:Yp,isValueObject:Mx,merge:nee,mergeDeep:see,mergeDeepWith:aee,mergeWith:iee,remove:D4,removeIn:L4,set:q4,setIn:$4,update:D2,updateIn:lo,version:Iee},Symbol.toStringTag,{value:"Module"})),kee=We.getAugmentedNamespace(Pee);var f_,cD;function Nee(){if(cD)return f_;cD=1;var e=kee,t="<<anonymous>>",r;if(process.env.NODE_ENV!=="production")r={listOf:f,mapOf:d,orderedMapOf:g,setOf:y,orderedSetOf:v,stackOf:_,iterableOf:b,recordOf:S,shape:E,contains:E,mapContains:A,orderedMapContains:R,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(I){return I 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(I){var O=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":I instanceof e.Iterable?"Immutable."+I.toSource().split(" ")[0]:O}function a(I){function O(P,F,M,G,ee,H){for(var Q=arguments.length,re=Array(Q>6?Q-6:0),ne=6;ne<Q;ne++)re[ne-6]=arguments[ne];if(H=H||M,G=G||t,F[M]==null){var B=ee;if(P)return new Error("Required "+B+" `"+H+"` was not specified in "+("`"+G+"`."))}else return I.apply(void 0,[F,M,G,ee,H].concat(re))}var D=O.bind(null,!1);return D.isRequired=O.bind(null,!0),D}function o(I,O){function D(P,F,M,G,ee){var H=P[F];if(!O(H)){var Q=s(H);return new Error("Invalid "+G+" `"+ee+"` of type `"+Q+"` "+("supplied to `"+M+"`, expected `"+I+"`."))}return null}return a(D)}function u(I,O){return o("Iterable."+I,function(D){return e.Iterable.isIterable(D)&&O(D)})}function c(I,O,D){function P(F,M,G,ee,H){for(var Q=arguments.length,re=Array(Q>5?Q-5:0),ne=5;ne<Q;ne++)re[ne-5]=arguments[ne];var B=F[M];if(!D(B)){var J=ee,ie=s(B);return new Error("Invalid "+J+" `"+H+"` of type "+("`"+ie+"` supplied to `"+G+"`, expected an Immutable.js "+O+"."))}if(typeof I!="function")return new Error("Invalid typeChecker supplied to `"+G+"` "+("for propType `"+H+"`, expected a function."));for(var oe=B.valueSeq().toArray(),ce=0,te=oe.length;ce<te;ce++){var z=I.apply(void 0,[oe,ce,G,ee,""+H+"["+ce+"]"].concat(re));if(z instanceof Error)return z}}return a(P)}function l(I){function O(D,P,F,M,G){for(var ee=arguments.length,H=Array(ee>5?ee-5:0),Q=5;Q<ee;Q++)H[Q-5]=arguments[Q];var re=D[P];if(typeof I!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+F+"` "+("for propType `"+G+"`, expected a function."));for(var ne=re.keySeq().toArray(),B=0,J=ne.length;B<J;B++){var ie=I.apply(void 0,[ne,B,F,M,""+G+" -> key("+ne[B]+")"].concat(H));if(ie instanceof Error)return ie}}return a(O)}function f(I){return c(I,"List",e.List.isList)}function h(I,O,D,P){function F(){for(var M=arguments.length,G=Array(M),ee=0;ee<M;ee++)G[ee]=arguments[ee];return c(I,D,P).apply(void 0,G)||O&&l(O).apply(void 0,G)}return a(F)}function d(I,O){return h(I,O,"Map",e.Map.isMap)}function g(I,O){return h(I,O,"OrderedMap",e.OrderedMap.isOrderedMap)}function y(I){return c(I,"Set",e.Set.isSet)}function v(I){return c(I,"OrderedSet",e.OrderedSet.isOrderedSet)}function _(I){return c(I,"Stack",e.Stack.isStack)}function b(I){return c(I,"Iterable",e.Iterable.isIterable)}function S(I){function O(D,P,F,M,G){for(var ee=arguments.length,H=Array(ee>5?ee-5:0),Q=5;Q<ee;Q++)H[Q-5]=arguments[Q];var re=D[P];if(!(re instanceof e.Record)){var ne=s(re),B=M;return new Error("Invalid "+B+" `"+G+"` of type `"+ne+"` "+("supplied to `"+F+"`, expected an Immutable.js Record."))}for(var J in I){var ie=I[J];if(ie){var oe=re.toObject(),ce=ie.apply(void 0,[oe,J,F,M,""+G+"."+J].concat(H));if(ce)return ce}}}return a(O)}function w(I){var O=arguments[1]===void 0?"Iterable":arguments[1],D=arguments[2]===void 0?e.Iterable.isIterable:arguments[2];function P(F,M,G,ee,H){for(var Q=arguments.length,re=Array(Q>5?Q-5:0),ne=5;ne<Q;ne++)re[ne-5]=arguments[ne];var B=F[M];if(!D(B)){var J=s(B),ie=ee;return new Error("Invalid "+ie+" `"+H+"` of type `"+J+"` "+("supplied to `"+G+"`, expected an Immutable.js "+O+"."))}var oe=B.toObject();for(var ce in I){var te=I[ce];if(te){var z=te.apply(void 0,[oe,ce,G,ee,""+H+"."+ce].concat(re));if(z)return z}}}return a(P)}function E(I){return w(I)}function A(I){return w(I,"Map",e.Map.isMap)}function R(I){return w(I,"OrderedMap",e.OrderedMap.isOrderedMap)}return f_=r,f_}var Mee=Nee();const Dee=We.getDefaultExportFromCjs(Mee);var p_,lD;function qee(){if(lD)return p_;lD=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 p_=e,p_}var d_,fD;function Fee(){if(fD)return d_;fD=1;var e=a8(),t=E8(),r=pl(),n=qee(),i=Wr();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 d_=s,d_}var $ee=Fee();const Lee=We.getDefaultExportFromCjs($ee);var Bee=y8();const Uee=We.getDefaultExportFromCjs(Bee);var pD={},Gu,dD;function Fn(){if(dD)return Gu;dD=1;var e=function(t){return t&&t.Math===Math&&t};return Gu=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof We.commonjsGlobal=="object"&&We.commonjsGlobal)||e(typeof Gu=="object"&&Gu)||(function(){return this})()||Function("return this")(),Gu}var h_,hD;function xi(){return hD||(hD=1,h_=function(e){try{return!!e()}catch{return!0}}),h_}var m_,mD;function xl(){if(mD)return m_;mD=1;var e=xi();return m_=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),m_}var g_,gD;function Z2(){if(gD)return g_;gD=1;var e=xl(),t=Function.prototype,r=t.apply,n=t.call;return g_=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),g_}var y_,yD;function $n(){if(yD)return y_;yD=1;var e=xl(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return y_=e?n:function(i){return function(){return r.apply(i,arguments)}},y_}var v_,vD;function Q2(){if(vD)return v_;vD=1;var e=$n(),t=e({}.toString),r=e("".slice);return v_=function(n){return r(t(n),8,-1)},v_}var b_,bD;function sU(){if(bD)return b_;bD=1;var e=Q2(),t=$n();return b_=function(r){if(e(r)==="Function")return t(r)},b_}var __,_D;function ti(){if(_D)return __;_D=1;var e=typeof document=="object"&&document.all;return __=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},__}var E_={},S_,ED;function ms(){if(ED)return S_;ED=1;var e=xi();return S_=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),S_}var w_,SD;function wa(){if(SD)return w_;SD=1;var e=xl(),t=Function.prototype.call;return w_=e?t.bind(t):function(){return t.apply(t,arguments)},w_}var x_={},wD;function aU(){if(wD)return x_;wD=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return x_.f=r?function(i){var s=t(this,i);return!!s&&s.enumerable}:e,x_}var A_,xD;function Al(){return xD||(xD=1,A_=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),A_}var O_,AD;function oU(){if(AD)return O_;AD=1;var e=$n(),t=xi(),r=Q2(),n=Object,i=e("".split);return O_=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?i(s,""):n(s)}:n,O_}var C_,OD;function eC(){return OD||(OD=1,C_=function(e){return e==null}),C_}var R_,CD;function Ih(){if(CD)return R_;CD=1;var e=eC(),t=TypeError;return R_=function(r){if(e(r))throw new t("Can't call method on "+r);return r},R_}var T_,RD;function Ol(){if(RD)return T_;RD=1;var e=oU(),t=Ih();return T_=function(r){return e(t(r))},T_}var I_,TD;function zi(){if(TD)return I_;TD=1;var e=ti();return I_=function(t){return typeof t=="object"?t!==null:e(t)},I_}var j_,ID;function Cl(){return ID||(ID=1,j_={}),j_}var P_,jD;function Rl(){if(jD)return P_;jD=1;var e=Cl(),t=Fn(),r=ti(),n=function(i){return r(i)?i:void 0};return P_=function(i,s){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][s]||t[i]&&t[i][s]},P_}var k_,PD;function Tl(){if(PD)return k_;PD=1;var e=$n();return k_=e({}.isPrototypeOf),k_}var N_,kD;function Vee(){if(kD)return N_;kD=1;var e=Fn(),t=e.navigator,r=t&&t.userAgent;return N_=r?String(r):"",N_}var M_,ND;function zee(){if(ND)return M_;ND=1;var e=Fn(),t=Vee(),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]))),M_=o,M_}var D_,MD;function uU(){if(MD)return D_;MD=1;var e=zee(),t=xi(),r=Fn(),n=r.String;return D_=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),D_}var q_,DD;function cU(){if(DD)return q_;DD=1;var e=uU();return q_=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",q_}var F_,qD;function lU(){if(qD)return F_;qD=1;var e=Rl(),t=ti(),r=Tl(),n=cU(),i=Object;return F_=n?function(s){return typeof s=="symbol"}:function(s){var a=e("Symbol");return t(a)&&r(a.prototype,i(s))},F_}var $_,FD;function tC(){if(FD)return $_;FD=1;var e=String;return $_=function(t){try{return e(t)}catch{return"Object"}},$_}var L_,$D;function Il(){if($D)return L_;$D=1;var e=ti(),t=tC(),r=TypeError;return L_=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},L_}var B_,LD;function rC(){if(LD)return B_;LD=1;var e=Il(),t=eC();return B_=function(r,n){var i=r[n];return t(i)?void 0:e(i)},B_}var U_,BD;function Wee(){if(BD)return U_;BD=1;var e=wa(),t=ti(),r=zi(),n=TypeError;return U_=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")},U_}var V_={exports:{}},z_,UD;function jl(){return UD||(UD=1,z_=!0),z_}var W_,VD;function Jee(){if(VD)return W_;VD=1;var e=Fn(),t=Object.defineProperty;return W_=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},W_}var zD;function fU(){if(zD)return V_.exports;zD=1;var e=jl(),t=Fn(),r=Jee(),n="__core-js_shared__",i=V_.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),V_.exports}var J_,WD;function pU(){if(WD)return J_;WD=1;var e=fU();return J_=function(t,r){return e[t]||(e[t]=r||{})},J_}var H_,JD;function nC(){if(JD)return H_;JD=1;var e=Ih(),t=Object;return H_=function(r){return t(e(r))},H_}var K_,HD;function Wi(){if(HD)return K_;HD=1;var e=$n(),t=nC(),r=e({}.hasOwnProperty);return K_=Object.hasOwn||function(i,s){return r(t(i),s)},K_}var G_,KD;function dU(){if(KD)return G_;KD=1;var e=$n(),t=0,r=Math.random(),n=e(1.1.toString);return G_=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},G_}var Y_,GD;function Ls(){if(GD)return Y_;GD=1;var e=Fn(),t=pU(),r=Wi(),n=dU(),i=uU(),s=cU(),a=e.Symbol,o=t("wks"),u=s?a.for||a:a&&a.withoutSetter||n;return Y_=function(c){return r(o,c)||(o[c]=i&&r(a,c)?a[c]:u("Symbol."+c)),o[c]},Y_}var X_,YD;function Hee(){if(YD)return X_;YD=1;var e=wa(),t=zi(),r=lU(),n=rC(),i=Wee(),s=Ls(),a=TypeError,o=s("toPrimitive");return X_=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)},X_}var Z_,XD;function hU(){if(XD)return Z_;XD=1;var e=Hee(),t=lU();return Z_=function(r){var n=e(r,"string");return t(n)?n:n+""},Z_}var Q_,ZD;function mU(){if(ZD)return Q_;ZD=1;var e=Fn(),t=zi(),r=e.document,n=t(r)&&t(r.createElement);return Q_=function(i){return n?r.createElement(i):{}},Q_}var eE,QD;function gU(){if(QD)return eE;QD=1;var e=ms(),t=xi(),r=mU();return eE=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),eE}var eq;function yU(){if(eq)return E_;eq=1;var e=ms(),t=wa(),r=aU(),n=Al(),i=Ol(),s=hU(),a=Wi(),o=gU(),u=Object.getOwnPropertyDescriptor;return E_.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])},E_}var tE,tq;function Kee(){if(tq)return tE;tq=1;var e=xi(),t=ti(),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 tE=n,tE}var rE,rq;function vU(){if(rq)return rE;rq=1;var e=sU(),t=Il(),r=xl(),n=e(e.bind);return rE=function(i,s){return t(i),s===void 0?i:r?n(i,s):function(){return i.apply(s,arguments)}},rE}var nE={},iE,nq;function bU(){if(nq)return iE;nq=1;var e=ms(),t=xi();return iE=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),iE}var sE,iq;function mo(){if(iq)return sE;iq=1;var e=zi(),t=String,r=TypeError;return sE=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},sE}var sq;function Ru(){if(sq)return nE;sq=1;var e=ms(),t=gU(),r=bU(),n=mo(),i=hU(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return nE.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},nE}var aE,aq;function Bs(){if(aq)return aE;aq=1;var e=ms(),t=Ru(),r=Al();return aE=e?function(n,i,s){return t.f(n,i,r(1,s))}:function(n,i,s){return n[i]=s,n},aE}var oE,oq;function Tu(){if(oq)return oE;oq=1;var e=Fn(),t=Z2(),r=sU(),n=ti(),i=yU().f,s=Kee(),a=Cl(),o=vU(),u=Bs(),c=Wi(),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 oE=function(f,h){var d=f.target,g=f.global,y=f.stat,v=f.proto,_=g?e:y?e[d]:e[d]&&e[d].prototype,b=g?a:a[d]||u(a,d,{})[d],S=b.prototype,w,E,A,R,I,O,D,P,F;for(R in h)w=s(g?R:d+(y?".":"#")+R,f.forced),E=!w&&_&&c(_,R),O=b[R],E&&(f.dontCallGetSet?(F=i(_,R),D=F&&F.value):D=_[R]),I=E&&D?D:h[R],!(!w&&!v&&typeof O==typeof I)&&(f.bind&&E?P=o(I,e):f.wrap&&E?P=l(I):v&&n(I)?P=r(I):P=I,(f.sham||I&&I.sham||O&&O.sham)&&u(P,"sham",!0),u(b,R,P),v&&(A=d+"Prototype",c(a,A)||u(a,A,{}),u(a[A],R,I),f.real&&S&&(w||!S[R])&&u(S,R,I)))},oE}var uE,uq;function Gee(){if(uq)return uE;uq=1;var e=Math.ceil,t=Math.floor;return uE=Math.trunc||function(n){var i=+n;return(i>0?t:e)(i)},uE}var cE,cq;function iC(){if(cq)return cE;cq=1;var e=Gee();return cE=function(t){var r=+t;return r!==r||r===0?0:e(r)},cE}var lE,lq;function Yee(){if(lq)return lE;lq=1;var e=iC(),t=Math.max,r=Math.min;return lE=function(n,i){var s=e(n);return s<0?t(s+i,0):r(s,i)},lE}var fE,fq;function Xee(){if(fq)return fE;fq=1;var e=iC(),t=Math.min;return fE=function(r){var n=e(r);return n>0?t(n,9007199254740991):0},fE}var pE,pq;function _U(){if(pq)return pE;pq=1;var e=Xee();return pE=function(t){return e(t.length)},pE}var dE,dq;function Zee(){if(dq)return dE;dq=1;var e=Ol(),t=Yee(),r=_U(),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 dE={includes:n(!0),indexOf:n(!1)},dE}var hE,hq;function sC(){return hq||(hq=1,hE={}),hE}var mE,mq;function EU(){if(mq)return mE;mq=1;var e=$n(),t=Wi(),r=Ol(),n=Zee().indexOf,i=sC(),s=e([].push);return mE=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},mE}var gE,gq;function aC(){return gq||(gq=1,gE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),gE}var yE,yq;function SU(){if(yq)return yE;yq=1;var e=EU(),t=aC();return yE=Object.keys||function(n){return e(n,t)},yE}var vE={},vq;function wU(){return vq||(vq=1,vE.f=Object.getOwnPropertySymbols),vE}var bE,bq;function Qee(){if(bq)return bE;bq=1;var e=ms(),t=$n(),r=wa(),n=xi(),i=SU(),s=wU(),a=aU(),o=nC(),u=oU(),c=Object.assign,l=Object.defineProperty,f=t([].concat);return bE=!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,_=1,b=s.f,S=a.f;v>_;)for(var w=u(arguments[_++]),E=b?f(i(w),b(w)):i(w),A=E.length,R=0,I;A>R;)I=E[R++],(!e||r(S,w,I))&&(y[I]=w[I]);return y}:c,bE}var _q;function ete(){if(_q)return pD;_q=1;var e=Tu(),t=Qee();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t}),pD}var _E,Eq;function tte(){if(Eq)return _E;Eq=1,ete();var e=Cl();return _E=e.Object.assign,_E}var EE,Sq;function rte(){if(Sq)return EE;Sq=1;var e=tte();return EE=e,EE}var SE,wq;function nte(){if(wq)return SE;wq=1;var e=rte();return SE=e,SE}var wE,xq;function ite(){if(xq)return wE;xq=1;var e=nte();return wE=e,wE}var xE,Aq;function ste(){return Aq||(Aq=1,xE=ite()),xE}var ate=ste();const Oq=We.getDefaultExportFromCjs(ate);var Cq={},AE,Rq;function ote(){if(Rq)return AE;Rq=1;var e=$n();return AE=e([].slice),AE}var OE,Tq;function ute(){if(Tq)return OE;Tq=1;var e=$n(),t=Il(),r=zi(),n=Wi(),i=ote(),s=xl(),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 OE=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},OE}var Iq;function cte(){if(Iq)return Cq;Iq=1;var e=Tu(),t=ute();return e({target:"Function",proto:!0,forced:Function.bind!==t},{bind:t}),Cq}var CE,jq;function lte(){if(jq)return CE;jq=1;var e=Fn(),t=Cl();return CE=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]},CE}var RE,Pq;function fte(){if(Pq)return RE;Pq=1,cte();var e=lte();return RE=e("Function","bind"),RE}var TE,kq;function pte(){if(kq)return TE;kq=1;var e=Tl(),t=fte(),r=Function.prototype;return TE=function(n){var i=n.bind;return n===r||e(r,n)&&i===r.bind?t:i},TE}var IE,Nq;function dte(){if(Nq)return IE;Nq=1;var e=pte();return IE=e,IE}var jE,Mq;function hte(){if(Mq)return jE;Mq=1;var e=dte();return jE=e,jE}var PE,Dq;function mte(){if(Dq)return PE;Dq=1;var e=hte();return PE=e,PE}var kE,qq;function gte(){return qq||(qq=1,kE=mte()),kE}var yte=gte();const vte=We.getDefaultExportFromCjs(yte);function Bx(){var e;return Bx=Oq?vte(e=Oq).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},Bx.apply(null,arguments)}var NE={exports:{}};/*!
|
|
86
|
-
Copyright (c) 2018 Jed Watson.
|
|
87
|
-
Licensed under the MIT License (MIT), see
|
|
88
|
-
http://jedwatson.github.io/classnames
|
|
89
|
-
*/var Fq;function bte(){return Fq||(Fq=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})()})(NE)),NE.exports}var _te=bte();const Ete=We.getDefaultExportFromCjs(_te);var Yu={},ME,$q;function Ste(){return $q||($q=1,ME=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()}}),ME}var DE,Lq;function wte(){if(Lq)return DE;Lq=1;var e=Ste(),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 DE=i,DE}var Bq;function xte(){if(Bq)return Yu;Bq=1;function e(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(E)}Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.CopyToClipboard=void 0;var t=i(Lt),r=i(wte()),n=["text","onCopy","options","children"];function i(E){return E&&E.__esModule?E:{default:E}}function s(E,A){var R=Object.keys(E);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(E);A&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(E,O).enumerable})),R.push.apply(R,I)}return R}function a(E){for(var A=1;A<arguments.length;A++){var R=arguments[A]!=null?arguments[A]:{};A%2?s(Object(R),!0).forEach(function(I){S(E,I,R[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(I){Object.defineProperty(E,I,Object.getOwnPropertyDescriptor(R,I))})}return E}function o(E,A){if(E==null)return{};var R=u(E,A),I,O;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);for(O=0;O<D.length;O++)I=D[O],!(A.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(E,I)&&(R[I]=E[I])}return R}function u(E,A){if(E==null)return{};var R={},I=Object.keys(E),O,D;for(D=0;D<I.length;D++)O=I[D],!(A.indexOf(O)>=0)&&(R[O]=E[O]);return R}function c(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function l(E,A){for(var R=0;R<A.length;R++){var I=A[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}function f(E,A,R){return A&&l(E.prototype,A),Object.defineProperty(E,"prototype",{writable:!1}),E}function h(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),A&&d(E,A)}function d(E,A){return d=Object.setPrototypeOf||function(I,O){return I.__proto__=O,I},d(E,A)}function g(E){var A=_();return function(){var I=b(E),O;if(A){var D=b(this).constructor;O=Reflect.construct(I,arguments,D)}else O=I.apply(this,arguments);return y(this,O)}}function y(E,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(E)}function v(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function _(){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(E){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(E)}function S(E,A,R){return A in E?Object.defineProperty(E,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):E[A]=R,E}var w=(function(E){h(R,E);var A=g(R);function R(){var I;c(this,R);for(var O=arguments.length,D=new Array(O),P=0;P<O;P++)D[P]=arguments[P];return I=A.call.apply(A,[this].concat(D)),S(v(I),"onClick",function(F){var M=I.props,G=M.text,ee=M.onCopy,H=M.children,Q=M.options,re=t.default.Children.only(H),ne=(0,r.default)(G,Q);ee&&ee(G,ne),re&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(F)}),I}return f(R,[{key:"render",value:function(){var O=this.props;O.text,O.onCopy,O.options;var D=O.children,P=o(O,n),F=t.default.Children.only(D);return t.default.cloneElement(F,a(a({},P),{},{onClick:this.onClick}))}}]),R})(t.default.PureComponent);return Yu.CopyToClipboard=w,S(w,"defaultProps",{onCopy:void 0,options:void 0}),Yu}var qE,Uq;function Ate(){if(Uq)return qE;Uq=1;var e=xte(),t=e.CopyToClipboard;return t.CopyToClipboard=t,qE=t,qE}var Ote=Ate();function Rp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rp=function(t){return typeof t}:Rp=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}function Cte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rte(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 Tte(e,t,r){return t&&Rte(e.prototype,t),e}function Ite(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vq(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 jte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vq(r,!0).forEach(function(n){Ite(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vq(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pte(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&&Vx(e,t)}function Ux(e){return Ux=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ux(e)}function Vx(e,t){return Vx=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vx(e,t)}function kte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nte(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:kte(e)}var zq={};function Mte(e){return e!==null&&Rp(e)==="object"&&typeof e.get=="function"&&typeof e.has=="function"}function Dte(e){return e==null}function qte(e,t,r){return Dte(e)?r:Mte(e)?e.has(t)?e.get(t):r:hasOwnProperty.call(e,t)?e[t]:r}function Wq(e,t,r){for(var n=0;n!==t.length;)if(e=qte(e,t[n++],zq),e===zq)return r;return e}function Jq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Fte(t,r),i=e||Object.keys(jte({},r,{},t));return i.every(n)}function Fte(e,t){return function(r){if(typeof r=="string")return jr(t[r],e[r]);if(Array.isArray(r))return jr(Wq(t,r),Wq(e,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var $te=(function(e){Pte(t,e);function t(){return Cte(this,t),Nte(this,Ux(t).apply(this,arguments))}return Tte(t,[{key:"shouldComponentUpdate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!Jq(this.updateOnProps,this.props,n,"updateOnProps")||!Jq(this.updateOnStates,this.state,i,"updateOnStates")}}]),t})(Lt.Component),Xu={},FE,Hq;function Lte(){if(Hq)return FE;Hq=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 We.commonjsGlobal=="object"&&We.commonjsGlobal&&We.commonjsGlobal.Object===Object&&We.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(E,A,R){var I,O,D,P,F,M,G=0,ee=!1,H=!1,Q=!0;if(typeof E!="function")throw new TypeError(e);A=w(A)||0,_(R)&&(ee=!!R.leading,H="maxWait"in R,D=H?d(w(R.maxWait)||0,A):D,Q="trailing"in R?!!R.trailing:Q);function re(V){var fe=I,me=O;return I=O=void 0,G=V,P=E.apply(me,fe),P}function ne(V){return G=V,F=setTimeout(ie,A),ee?re(V):P}function B(V){var fe=V-M,me=V-G,Ce=A-fe;return H?g(Ce,D-me):Ce}function J(V){var fe=V-M,me=V-G;return M===void 0||fe>=A||fe<0||H&&me>=D}function ie(){var V=y();if(J(V))return oe(V);F=setTimeout(ie,B(V))}function oe(V){return F=void 0,Q&&I?re(V):(I=O=void 0,P)}function ce(){F!==void 0&&clearTimeout(F),G=0,I=M=O=F=void 0}function te(){return F===void 0?P:oe(y())}function z(){var V=y(),fe=J(V);if(I=arguments,O=this,M=V,fe){if(F===void 0)return ne(M);if(H)return F=setTimeout(ie,A),re(M)}return F===void 0&&(F=setTimeout(ie,A)),P}return z.cancel=ce,z.flush=te,z}function _(E){var A=typeof E;return!!E&&(A=="object"||A=="function")}function b(E){return!!E&&typeof E=="object"}function S(E){return typeof E=="symbol"||b(E)&&h.call(E)==r}function w(E){if(typeof E=="number")return E;if(S(E))return t;if(_(E)){var A=typeof E.valueOf=="function"?E.valueOf():E;E=_(A)?A+"":A}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var R=s.test(E);return R||a.test(E)?o(E.slice(2),R?2:8):i.test(E)?t:+E}return FE=v,FE}var Kq;function Bte(){if(Kq)return Xu;Kq=1;function e(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(E)}Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.DebounceInput=void 0;var t=i(Lt),r=i(Lte()),n=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function i(E){return E&&E.__esModule?E:{default:E}}function s(E,A){if(E==null)return{};var R=a(E,A),I,O;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);for(O=0;O<D.length;O++)I=D[O],!(A.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(E,I)&&(R[I]=E[I])}return R}function a(E,A){if(E==null)return{};var R={},I=Object.keys(E),O,D;for(D=0;D<I.length;D++)O=I[D],!(A.indexOf(O)>=0)&&(R[O]=E[O]);return R}function o(E,A){var R=Object.keys(E);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(E);A&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(E,O).enumerable})),R.push.apply(R,I)}return R}function u(E){for(var A=1;A<arguments.length;A++){var R=arguments[A]!=null?arguments[A]:{};A%2?o(Object(R),!0).forEach(function(I){S(E,I,R[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(R)):o(Object(R)).forEach(function(I){Object.defineProperty(E,I,Object.getOwnPropertyDescriptor(R,I))})}return E}function c(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function l(E,A){for(var R=0;R<A.length;R++){var I=A[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}function f(E,A,R){return A&&l(E.prototype,A),Object.defineProperty(E,"prototype",{writable:!1}),E}function h(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),A&&d(E,A)}function d(E,A){return d=Object.setPrototypeOf||function(I,O){return I.__proto__=O,I},d(E,A)}function g(E){var A=_();return function(){var I=b(E),O;if(A){var D=b(this).constructor;O=Reflect.construct(I,arguments,D)}else O=I.apply(this,arguments);return y(this,O)}}function y(E,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(E)}function v(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function _(){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(E){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(E)}function S(E,A,R){return A in E?Object.defineProperty(E,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):E[A]=R,E}var w=(function(E){h(R,E);var A=g(R);function R(I){var O;c(this,R),O=A.call(this,I),S(v(O),"onChange",function(P){P.persist();var F=O.state.value,M=O.props.minLength;O.setState({value:P.target.value},function(){var G=O.state.value;if(G.length>=M){O.notify(P);return}F.length>G.length&&O.notify(u(u({},P),{},{target:u(u({},P.target),{},{value:""})}))})}),S(v(O),"onKeyDown",function(P){P.key==="Enter"&&O.forceNotify(P);var F=O.props.onKeyDown;F&&(P.persist(),F(P))}),S(v(O),"onBlur",function(P){O.forceNotify(P);var F=O.props.onBlur;F&&(P.persist(),F(P))}),S(v(O),"createNotifier",function(P){if(P<0)O.notify=function(){return null};else if(P===0)O.notify=O.doNotify;else{var F=(0,r.default)(function(M){O.isDebouncing=!1,O.doNotify(M)},P);O.notify=function(M){O.isDebouncing=!0,F(M)},O.flush=function(){return F.flush()},O.cancel=function(){O.isDebouncing=!1,F.cancel()}}}),S(v(O),"doNotify",function(){var P=O.props.onChange;P.apply(void 0,arguments)}),S(v(O),"forceNotify",function(P){var F=O.props.debounceTimeout;if(!(!O.isDebouncing&&F>0)){O.cancel&&O.cancel();var M=O.state.value,G=O.props.minLength;M.length>=G?O.doNotify(P):O.doNotify(u(u({},P),{},{target:u(u({},P.target),{},{value:M})}))}}),O.isDebouncing=!1,O.state={value:typeof I.value>"u"||I.value===null?"":I.value};var D=O.props.debounceTimeout;return O.createNotifier(D),O}return f(R,[{key:"componentDidUpdate",value:function(O){if(!this.isDebouncing){var D=this.props,P=D.value,F=D.debounceTimeout,M=O.debounceTimeout,G=O.value,ee=this.state.value;typeof P<"u"&&G!==P&&ee!==P&&this.setState({value:P}),F!==M&&this.createNotifier(F)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var O=this.props,D=O.element;O.onChange,O.value,O.minLength,O.debounceTimeout;var P=O.forceNotifyByEnter,F=O.forceNotifyOnBlur,M=O.onKeyDown,G=O.onBlur,ee=O.inputRef,H=s(O,n),Q=this.state.value,re;P?re={onKeyDown:this.onKeyDown}:M?re={onKeyDown:M}:re={};var ne;F?ne={onBlur:this.onBlur}:G?ne={onBlur:G}:ne={};var B=ee?{ref:ee}:{};return t.default.createElement(D,u(u(u(u({},H),{},{onChange:this.onChange,value:Q},re),ne),B))}}]),R})(t.default.PureComponent);return Xu.DebounceInput=w,S(w,"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}),Xu}var $E,Gq;function Ute(){if(Gq)return $E;Gq=1;var e=Bte(),t=e.DebounceInput;return t.DebounceInput=t,$E=t,$E}var Vte=Ute();const zte=We.getDefaultExportFromCjs(Vte);var Wte=yh();const Jte=We.getDefaultExportFromCjs(Wte);var op={exports:{}},LE={},BE,Yq;function jh(){return Yq||(Yq=1,BE={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}),BE}var Cs={},Xq;function xU(){if(Xq)return Cs;Xq=1;const e=jh(),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 Cs.words=()=>({type:e.SET,set:r(),not:!1}),Cs.notWords=()=>({type:e.SET,set:r(),not:!0}),Cs.ints=()=>({type:e.SET,set:t(),not:!1}),Cs.notInts=()=>({type:e.SET,set:t(),not:!0}),Cs.whitespace=()=>({type:e.SET,set:n(),not:!1}),Cs.notWhitespace=()=>({type:e.SET,set:n(),not:!0}),Cs.anyChar=()=>({type:e.SET,set:i(),not:!0}),Cs}var Zq;function Hte(){return Zq||(Zq=1,(function(e){const t=jh(),r=xU(),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)}})(LE)),LE}var Po={},Qq;function Kte(){if(Qq)return Po;Qq=1;const e=jh();return Po.wordBoundary=()=>({type:e.POSITION,value:"b"}),Po.nonWordBoundary=()=>({type:e.POSITION,value:"B"}),Po.begin=()=>({type:e.POSITION,value:"^"}),Po.end=()=>({type:e.POSITION,value:"$"}),Po}var eF;function Gte(){if(eF)return op.exports;eF=1;const e=Hte(),t=jh(),r=xU(),n=Kte();return op.exports=i=>{var s=0,a,o,u={type:t.ROOT,stack:[]},c=u,l=u.stack,f=[],h=E=>{e.error(i,`Nothing to repeat at column ${E-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 _=[];c.options.push(_),l=_;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(s)),S,w;b!==null?(l.length===0&&h(s),S=parseInt(b[1],10),w=b[2]?b[3]?parseInt(b[3],10):1/0:S,s+=b[0].length,l.push({type:t.REPETITION,min:S,max:w,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},op.exports.types=t,op.exports}var UE,tF;function Yte(){if(tF)return UE;tF=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 UE=t,UE}var VE,rF;function Xte(){if(rF)return VE;rF=1;const e=Gte(),t=Yte(),r=e.types;return VE=class pc{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:pc.prototype.max!=null?pc.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 pc(i,s),i._randexp=a):(a=i._randexp,a._setDefaults(i)),a.gen()}static sugar(){RegExp.prototype.gen=function(){return pc.randexp(this)}}},VE}var Zte=Xte();const Qte=We.getDefaultExportFromCjs(Zte);var zE,nF;function ere(){if(nF)return zE;nF=1;var e=o2(),t=Eu(),r=sl(),n=Wr(),i=oo(),s=al(),a=gh(),o=vh(),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 zE=h,zE}var tre=ere();const rre=We.getDefaultExportFromCjs(tre);var nre=e8();const ire=We.getDefaultExportFromCjs(nre);var WE,iF;function AU(){if(iF)return WE;iF=1;var e=ds(),t=Wr(),r=Tn(),n="[object String]";function i(s){return typeof s=="string"||!t(s)&&r(s)&&e(s)==n}return WE=i,WE}var sre=AU();const are=We.getDefaultExportFromCjs(sre);var JE,sF;function ore(){if(sF)return JE;sF=1;var e=Cn(),t=function(){return e.Date.now()};return JE=t,JE}var HE,aF;function ure(){if(aF)return HE;aF=1;var e=Rn(),t=ore(),r=_8(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,c){var l,f,h,d,g,y,v=0,_=!1,b=!1,S=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(_=!!c.leading,b="maxWait"in c,h=b?i(r(c.maxWait)||0,u):h,S="trailing"in c?!!c.trailing:S);function w(M){var G=l,ee=f;return l=f=void 0,v=M,d=o.apply(ee,G),d}function E(M){return v=M,g=setTimeout(I,u),_?w(M):d}function A(M){var G=M-y,ee=M-v,H=u-G;return b?s(H,h-ee):H}function R(M){var G=M-y,ee=M-v;return y===void 0||G>=u||G<0||b&&ee>=h}function I(){var M=t();if(R(M))return O(M);g=setTimeout(I,A(M))}function O(M){return g=void 0,S&&l?w(M):(l=f=void 0,d)}function D(){g!==void 0&&clearTimeout(g),v=0,l=y=f=g=void 0}function P(){return g===void 0?d:O(t())}function F(){var M=t(),G=R(M);if(l=arguments,f=this,y=M,G){if(g===void 0)return E(y);if(b)return clearTimeout(g),g=setTimeout(I,u),w(y)}return g===void 0&&(g=setTimeout(I,u)),d}return F.cancel=D,F.flush=P,F}return HE=a,HE}var cre=ure();const lre=We.getDefaultExportFromCjs(cre);var KE,oF;function fre(){if(oF)return KE;oF=1;var e=bh(),t=fl(),r=ol(),n=Rn(),i=uo();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 KE=s,KE}var GE,uF;function OU(){if(uF)return GE;uF=1;var e=fre();function t(r,n,i){return r==null?r:e(r,n,i)}return GE=t,GE}var pre=OU();const dre=We.getDefaultExportFromCjs(pre);var YE={},cF;function hre(){return cF||(cF=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}})(YE)),YE}var XE,lF;function CU(){return lF||(lF=1,XE={}),XE}var ZE,fF;function mre(){if(fF)return ZE;fF=1;var e=hre(),t=CU(),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},_=g?h:t,b="curry"in d&&d.curry,S="fixed"in d&&d.fixed,w="rearg"in d&&d.rearg,E=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},R=A.ary,I=A.assign,O=A.clone,D=A.curry,P=A.forEach,F=A.isArray,M=A.isError,G=A.isFunction,ee=A.isWeakMap,H=A.keys,Q=A.rearg,re=A.toInteger,ne=A.toPath,B=H(e.aryMethod),J={castArray:function(_e){return function(){var we=arguments[0];return F(we)?_e(s(we)):_e.apply(void 0,arguments)}},iteratee:function(_e){return function(){var we=arguments[0],Ae=arguments[1],U=_e(we,Ae),T=U.length;return v.cap&&typeof Ae=="number"?(Ae=Ae>2?Ae-2:1,T&&T<=Ae?U:i(U,Ae)):U}},mixin:function(_e){return function(we){var Ae=this;if(!G(Ae))return _e(Ae,Object(we));var U=[];return P(H(we),function(T){G(we[T])&&U.push([T,Ae.prototype[T]])}),_e(Ae,Object(we)),P(U,function(T){var k=T[1];G(k)?Ae.prototype[T[0]]=k:delete Ae.prototype[T[0]]}),Ae}},nthArg:function(_e){return function(we){var Ae=we<0?1:re(we)+1;return D(_e(we),Ae)}},rearg:function(_e){return function(we,Ae){var U=Ae?Ae.length:0;return D(_e(we,Ae),U)}},runInContext:function(_e){return function(we){return c(l,_e(we),d)}}};function ie(_e,we){if(v.cap){var Ae=e.iterateeRearg[_e];if(Ae)return Ce(we,Ae);var U=!g&&e.iterateeAry[_e];if(U)return me(we,U)}return we}function oe(_e,we,Ae){return b||v.curry&&Ae>1?D(we,Ae):we}function ce(_e,we,Ae){if(v.fixed&&(S||!e.skipFixed[_e])){var U=e.methodSpread[_e],T=U&&U.start;return T===void 0?R(we,Ae):o(we,T)}return we}function te(_e,we,Ae){return v.rearg&&Ae>1&&(w||!e.skipRearg[_e])?Q(we,e.methodRearg[_e]||e.aryRearg[Ae]):we}function z(_e,we){we=ne(we);for(var Ae=-1,U=we.length,T=U-1,k=O(Object(_e)),W=k;W!=null&&++Ae<U;){var se=we[Ae],ue=W[se];ue!=null&&!(G(ue)||M(ue)||ee(ue))&&(W[se]=O(Ae==T?ue:Object(ue))),W=W[se]}return k}function V(_e){return je.runInContext.convert(_e)(void 0)}function fe(_e,we){var Ae=e.aliasToReal[_e]||_e,U=e.remap[Ae]||Ae,T=d;return function(k){var W=g?E:A,se=g?E[U]:we,ue=I(I({},T),k);return c(W,Ae,se,ue)}}function me(_e,we){return Ne(_e,function(Ae){return typeof Ae=="function"?i(Ae,we):Ae})}function Ce(_e,we){return Ne(_e,function(Ae){var U=we.length;return n(Q(i(Ae,U),we),U)})}function Ne(_e,we){return function(){var Ae=arguments.length;if(!Ae)return _e();for(var U=Array(Ae);Ae--;)U[Ae]=arguments[Ae];var T=v.rearg?0:Ae-1;return U[T]=we(U[T]),_e.apply(void 0,U)}}function he(_e,we,Ae){var U,T=e.aliasToReal[_e]||_e,k=we,W=J[T];return W?k=W(we):v.immutable&&(e.mutate.array[T]?k=u(we,s):e.mutate.object[T]?k=u(we,a(we)):e.mutate.set[T]&&(k=u(we,z))),P(B,function(se){return P(e.aryMethod[se],function(ue){if(T==ue){var ge=e.methodSpread[T],Me=ge&&ge.afterRearg;return U=Me?ce(T,te(T,k,se),se):te(T,ce(T,k,se),se),U=ie(T,U),U=oe(T,U,se),!1}}),!U}),U||(U=k),U==we&&(U=b?D(U,1):function(){return we.apply(this,arguments)}),U.convert=fe(T,we),U.placeholder=we.placeholder=Ae,U}if(!y)return he(f,h,_);var je=h,Be=[];return P(B,function(_e){P(e.aryMethod[_e],function(we){var Ae=je[e.remap[we]||we];Ae&&Be.push([we,he(we,Ae,je)])})}),P(H(je),function(_e){var we=je[_e];if(typeof we=="function"){for(var Ae=Be.length;Ae--;)if(Be[Ae][0]==_e)return;we.convert=fe(_e,we),Be.push([_e,we])}}),P(Be,function(_e){je[_e[0]]=_e[1]}),je.convert=V,je.placeholder=je,P(H(je),function(_e){P(e.realToAlias[_e]||[],function(we){je[we]=je[_e]})}),je}return ZE=c,ZE}var QE,pF;function RU(){if(pF)return QE;pF=1;var e=d8(),t=e&&new e;return QE=t,QE}var eS,dF;function TU(){if(dF)return eS;dF=1;var e=cl(),t=RU(),r=t?function(n,i){return t.set(n,i),n}:e;return eS=r,eS}var tS,hF;function Ph(){if(hF)return tS;hF=1;var e=mh(),t=Rn();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 tS=r,tS}var rS,mF;function gre(){if(mF)return rS;mF=1;var e=Ph(),t=Cn(),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 rS=n,rS}var nS,gF;function IU(){if(gF)return nS;gF=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 nS=t,nS}var iS,yF;function jU(){if(yF)return iS;yF=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 iS=t,iS}var sS,vF;function yre(){if(vF)return sS;vF=1;function e(t,r){for(var n=t.length,i=0;n--;)t[n]===r&&++i;return i}return sS=e,sS}var aS,bF;function oC(){if(bF)return aS;bF=1;function e(){}return aS=e,aS}var oS,_F;function uC(){if(_F)return oS;_F=1;var e=mh(),t=oC(),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,oS=n,oS}var uS,EF;function vre(){if(EF)return uS;EF=1;function e(){}return uS=e,uS}var cS,SF;function PU(){if(SF)return cS;SF=1;var e=RU(),t=vre(),r=e?function(n){return e.get(n)}:t;return cS=r,cS}var lS,wF;function bre(){if(wF)return lS;wF=1;var e={};return lS=e,lS}var fS,xF;function _re(){if(xF)return fS;xF=1;var e=bre(),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 fS=n,fS}var pS,AF;function kU(){if(AF)return pS;AF=1;var e=mh(),t=oC();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,pS=r,pS}var dS,OF;function Ere(){if(OF)return dS;OF=1;var e=uC(),t=kU(),r=il();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 dS=n,dS}var hS,CF;function Sre(){if(CF)return hS;CF=1;var e=uC(),t=kU(),r=oC(),n=Wr(),i=Tn(),s=Ere(),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,hS=u,hS}var mS,RF;function wre(){if(RF)return mS;RF=1;var e=uC(),t=PU(),r=_re(),n=Sre();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 mS=i,mS}var gS,TF;function NU(){if(TF)return gS;TF=1;var e=TU(),t=t8(),r=t(e);return gS=r,gS}var yS,IF;function xre(){if(IF)return yS;IF=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;function r(n){var i=n.match(e);return i?i[1].split(t):[]}return yS=r,yS}var vS,jF;function Are(){if(jF)return vS;jF=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,`{
|
|
90
|
-
/* [wrapped with `+n+`] */
|
|
91
|
-
`)}return vS=t,vS}var bS,PF;function Ore(){if(PF)return bS;PF=1;function e(t){return t!==t}return bS=e,bS}var _S,kF;function Cre(){if(kF)return _S;kF=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 _S=e,_S}var ES,NF;function Rre(){if(NF)return ES;NF=1;var e=b8(),t=Ore(),r=Cre();function n(i,s,a){return s===s?r(i,s,a):e(i,t,a)}return ES=n,ES}var SS,MF;function Tre(){if(MF)return SS;MF=1;var e=Rre();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return SS=t,SS}var wS,DF;function Ire(){if(DF)return wS;DF=1;var e=p2(),t=Tre(),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 wS=h,wS}var xS,qF;function MU(){if(qF)return xS;qF=1;var e=xre(),t=Are(),r=n2(),n=Ire();function i(s,a,o){var u=a+"";return r(s,t(u,n(e(u),o)))}return xS=i,xS}var AS,FF;function DU(){if(FF)return AS;FF=1;var e=wre(),t=NU(),r=MU(),n=4,i=8,s=32,a=64;function o(u,c,l,f,h,d,g,y,v,_){var b=c&i,S=b?g:void 0,w=b?void 0:g,E=b?d:void 0,A=b?void 0:d;c|=b?s:a,c&=~(b?a:s),c&n||(c&=-4);var R=[u,c,h,E,S,A,w,y,v,_],I=l.apply(void 0,R);return e(u)&&t(I,R),I.placeholder=f,r(I,u,c)}return AS=o,AS}var OS,$F;function qU(){if($F)return OS;$F=1;function e(t){var r=t;return r.placeholder}return OS=e,OS}var CS,LF;function jre(){if(LF)return CS;LF=1;var e=il(),t=ol(),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 CS=n,CS}var RS,BF;function cC(){if(BF)return RS;BF=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 RS=t,RS}var TS,UF;function FU(){if(UF)return TS;UF=1;var e=IU(),t=jU(),r=yre(),n=Ph(),i=DU(),s=qU(),a=jre(),o=cC(),u=Cn(),c=1,l=2,f=8,h=16,d=128,g=512;function y(v,_,b,S,w,E,A,R,I,O){var D=_&d,P=_&c,F=_&l,M=_&(f|h),G=_&g,ee=F?void 0:n(v);function H(){for(var Q=arguments.length,re=Array(Q),ne=Q;ne--;)re[ne]=arguments[ne];if(M)var B=s(H),J=r(re,B);if(S&&(re=e(re,S,w,M)),E&&(re=t(re,E,A,M)),Q-=J,M&&Q<O){var ie=o(re,B);return i(v,_,y,H.placeholder,b,re,ie,R,I,O-Q)}var oe=P?b:this,ce=F?oe[v]:v;return Q=re.length,R?re=a(re,R):G&&Q>1&&re.reverse(),D&&I<Q&&(re.length=I),this&&this!==u&&this instanceof H&&(ce=ee||n(ce)),ce.apply(oe,re)}return H}return TS=y,TS}var IS,VF;function Pre(){if(VF)return IS;VF=1;var e=r2(),t=Ph(),r=FU(),n=DU(),i=qU(),s=cC(),a=Cn();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 _=d<3&&g[0]!==v&&g[d-1]!==v?[]:s(g,v);if(d-=_.length,d<l)return n(u,c,r,h.placeholder,void 0,g,_,void 0,void 0,l-d);var b=this&&this!==a&&this instanceof h?f:u;return e(b,this,g)}return h}return IS=o,IS}var jS,zF;function kre(){if(zF)return jS;zF=1;var e=r2(),t=Ph(),r=Cn(),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),_=this&&this!==r&&this instanceof f?l:s;++g<y;)v[g]=u[g];for(;d--;)v[g++]=arguments[++h];return e(_,c?o:this,v)}return f}return jS=i,jS}var PS,WF;function Nre(){if(WF)return PS;WF=1;var e=IU(),t=jU(),r=cC(),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,_=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(!(_||b))return h;y&i&&(h[2]=d[2],v|=g&i?0:a);var S=d[3];if(S){var w=h[3];h[3]=w?e(w,S,d[4]):S,h[4]=w?r(h[3],n):d[4]}return S=d[5],S&&(w=h[5],h[5]=w?t(w,S,d[6]):S,h[6]=w?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 PS=f,PS}var kS,JF;function lC(){if(JF)return kS;JF=1;var e=TU(),t=gre(),r=Pre(),n=FU(),i=kre(),s=PU(),a=Nre(),o=NU(),u=MU(),c=f2(),l="Expected a function",f=1,h=2,d=8,g=16,y=32,v=64,_=Math.max;function b(S,w,E,A,R,I,O,D){var P=w&h;if(!P&&typeof S!="function")throw new TypeError(l);var F=A?A.length:0;if(F||(w&=-97,A=R=void 0),O=O===void 0?O:_(c(O),0),D=D===void 0?D:c(D),F-=R?R.length:0,w&v){var M=A,G=R;A=R=void 0}var ee=P?void 0:s(S),H=[S,w,E,A,R,M,G,I,O,D];if(ee&&a(H,ee),S=H[0],w=H[1],E=H[2],A=H[3],R=H[4],D=H[9]=H[9]===void 0?P?0:S.length:_(H[9]-F,0),!D&&w&(d|g)&&(w&=-25),!w||w==f)var Q=t(S,w,E);else w==d||w==g?Q=r(S,w,D):(w==y||w==(f|y))&&!R.length?Q=i(S,w,E,A):Q=n.apply(void 0,H);var re=ee?e:o;return u(re(Q,H),S,w)}return kS=b,kS}var NS,HF;function Mre(){if(HF)return NS;HF=1;var e=lC(),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 NS=r,NS}var MS,KF;function Dre(){if(KF)return MS;KF=1;var e=d2(),t=4;function r(n){return e(n,t)}return MS=r,MS}var DS,GF;function qre(){if(GF)return DS;GF=1;var e=lC(),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={},DS=r,DS}var qS,YF;function Fre(){if(YF)return qS;YF=1;var e=ds(),t=Tn(),r=yh(),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 qS=s,qS}var FS,XF;function $re(){if(XF)return FS;XF=1;var e=Eu(),t=Tn(),r="[object WeakMap]";function n(i){return t(i)&&e(i)==r}return FS=n,FS}var $S,ZF;function Lre(){if(ZF)return $S;ZF=1;var e=d2(),t=pl(),r=1;function n(i){return t(typeof i=="function"?i:e(i,r))}return $S=n,$S}var LS,QF;function Bre(){if(QF)return LS;QF=1;var e=lC(),t=C8(),r=256,n=t(function(i,s){return e(i,r,void 0,void 0,void 0,s)});return LS=n,LS}var BS,e$;function Ure(){if(e$)return BS;e$=1;var e=i2(),t=il(),r=Wr(),n=ll(),i=g8(),s=uo(),a=$s();function o(u){return r(u)?e(u,s):n(u)?[u]:t(i(a(u)))}return BS=o,BS}var US,t$;function Vre(){return t$||(t$=1,US={ary:Mre(),assign:x8(),clone:Dre(),curry:qre(),forEach:p2(),isArray:Wr(),isError:Fre(),isFunction:nl(),isWeakMap:$re(),iteratee:Lre(),keys:o2(),rearg:Bre(),toInteger:f2(),toPath:Ure()}),US}var VS,r$;function zre(){if(r$)return VS;r$=1;var e=mre(),t=Vre();function r(n,i,s){return e(t,n,i,s)}return VS=r,VS}var zS,n$;function $U(){if(n$)return zS;n$=1;var e=zre(),t=e("set",OU());return t.placeholder=CU(),zS=t,zS}var WS,i$;function Wre(){return i$||(i$=1,WS=$U()),WS}var Jre=Wre();const Hre=We.getDefaultExportFromCjs(Jre);/*!
|
|
92
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
93
|
-
* (c) 2017-2022 Joachim Wester
|
|
94
|
-
* MIT licensed
|
|
95
|
-
*/var Kre=(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)}})(),Gre=Object.prototype.hasOwnProperty;function zx(e,t){return Gre.call(e,t)}function Wx(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)zx(e,i)&&n.push(i);return n}function Yn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Jx(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 Ba(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function LU(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Hx(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Hx(e[t]))return!0}else if(typeof e=="object"){for(var n=Wx(e),i=n.length,s=0;s<i;s++)if(Hx(e[n[s]]))return!0}}return!1}function s$(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(`
|
|
96
|
-
`)}var BU=(function(e){Kre(t,e);function t(r,n,i,s,a){var o=this.constructor,u=e.call(this,s$(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=s$(r,{name:n,index:i,operation:s,tree:a}),u}return t})(Error),Er=BU,Yre=Yn,Vo={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=qc(r,this.path);n&&(n=Yn(n));var i=Ga(r,{op:"remove",path:this.from}).removed;return Ga(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=qc(r,this.from);return Ga(r,{op:"add",path:this.path,value:Yn(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Fc(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Xre={add:function(e,t,r){return Jx(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:Vo.move,copy:Vo.copy,test:Vo.test,_get:Vo._get};function qc(e,t){if(t=="")return e;var r={op:"_get",path:t};return Ga(e,r),r.value}function Ga(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):Zp(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=qc(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=Fc(e,t.value),a.test===!1)throw new Er("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 Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e);return a}}else{n||(e=Yn(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=Zp;;){if(d=u[l],d&&d.indexOf("~")!=-1&&(d=LU(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&&!Jx(d))throw new Er("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);Jx(d)&&(d=~~d)}if(l>=f){if(r&&t.op==="add"&&d>c.length)throw new Er("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=Xre[t.op].call(t,c,d,e);if(a.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}}else if(l>=f){var a=Vo[t.op].call(t,c,d,e);if(a.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}if(c=c[d],r&&l<f&&(!c||typeof c!="object"))throw new Er("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}}function ua(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Yn(e));for(var s=new Array(t.length),a=0,o=t.length;a<o;a++)s[a]=Ga(e,t[a],r,!0,i,a),e=s[a].newDocument;return s.newDocument=e,s}function Zre(e,t,r){var n=Ga(e,t);if(n.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Zp(e,t,r,n){if(typeof e!="object"||e===null||Array.isArray(e))throw new Er("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(Vo[e.op]){if(typeof e.path!="string")throw new Er("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Er('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 Er("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 Er("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")&&Hx(e.value))throw new Er("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 Er("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 Er("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=UU([a],r);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new Er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function UU(e,t,r){try{if(!Array.isArray(e))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)ua(Yn(t),Yn(e),r||!0);else{r=r||Zp;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(i){if(i instanceof Er)return i;throw i}}function Fc(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(!Fc(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],!Fc(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}const Qre=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:Er,_areEquals:Fc,applyOperation:Ga,applyPatch:ua,applyReducer:Zre,deepClone:Yre,getValueByPointer:qc,validate:UU,validator:Zp},Symbol.toStringTag,{value:"Module"}));/*!
|
|
97
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
98
|
-
* (c) 2017-2021 Joachim Wester
|
|
99
|
-
* MIT license
|
|
100
|
-
*/var fC=new WeakMap,ene=(function(){function e(t){this.observers=new Map,this.obj=t}return e})(),tne=(function(){function e(t,r){this.callback=t,this.observer=r}return e})();function rne(e){return fC.get(e)}function nne(e,t){return e.observers.get(t)}function ine(e,t){e.observers.delete(t.callback)}function sne(e,t){t.unobserve()}function ane(e,t){var r=[],n,i=rne(e);if(!i)i=new ene(e),fC.set(e,i);else{var s=nne(i,t);n=s&&s.observer}if(n)return n;if(n={},i.value=Yn(e),t){n.callback=t,n.next=null;var a=function(){Kx(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(){Kx(n),clearTimeout(n.next),ine(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 tne(t,n)),n}function Kx(e,t){t===void 0&&(t=!1);var r=fC.get(e.object);pC(r.value,e.object,e.patches,"",t),e.patches.length&&ua(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function pC(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var s=Wx(t),a=Wx(e),o=!1,u=a.length-1;u>=0;u--){var c=a[u],l=e[c];if(zx(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)?pC(l,f,r,n+"/"+Ba(c),i):l!==f&&(i&&r.push({op:"test",path:n+"/"+Ba(c),value:Yn(l)}),r.push({op:"replace",path:n+"/"+Ba(c),value:Yn(f)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+Ba(c),value:Yn(l)}),r.push({op:"remove",path:n+"/"+Ba(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];!zx(e,c)&&t[c]!==void 0&&r.push({op:"add",path:n+"/"+Ba(c),value:Yn(t[c])})}}}function one(e,t,r){r===void 0&&(r=!1);var n=[];return pC(e,t,n,"",r),n}const une=Object.freeze(Object.defineProperty({__proto__:null,compare:one,generate:Kx,observe:ane,unobserve:sne},Symbol.toStringTag,{value:"Module"}));Object.assign({},Qre,une,{JsonPatchError:BU,deepClone:Yn,escapePathComponent:Ba,unescapePathComponent:LU});var JS,a$;function cne(){if(a$)return JS;a$=1;var e=function(b){return t(b)&&!r(b)};function t(_){return!!_&&typeof _=="object"}function r(_){var b=Object.prototype.toString.call(_);return b==="[object RegExp]"||b==="[object Date]"||s(_)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function s(_){return _.$$typeof===i}function a(_){return Array.isArray(_)?[]:{}}function o(_,b){return b.clone!==!1&&b.isMergeableObject(_)?y(a(_),_,b):_}function u(_,b,S){return _.concat(b).map(function(w){return o(w,S)})}function c(_,b){if(!b.customMerge)return y;var S=b.customMerge(_);return typeof S=="function"?S:y}function l(_){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(_).filter(function(b){return Object.propertyIsEnumerable.call(_,b)}):[]}function f(_){return Object.keys(_).concat(l(_))}function h(_,b){try{return b in _}catch{return!1}}function d(_,b){return h(_,b)&&!(Object.hasOwnProperty.call(_,b)&&Object.propertyIsEnumerable.call(_,b))}function g(_,b,S){var w={};return S.isMergeableObject(_)&&f(_).forEach(function(E){w[E]=o(_[E],S)}),f(b).forEach(function(E){d(_,E)||(h(_,E)&&S.isMergeableObject(b[E])?w[E]=c(E,S)(_[E],b[E],S):w[E]=o(b[E],S))}),w}function y(_,b,S){S=S||{},S.arrayMerge=S.arrayMerge||u,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var w=Array.isArray(b),E=Array.isArray(_),A=w===E;return A?w?S.arrayMerge(_,b,S):g(_,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(w,E){return y(w,E,S)},{})};var v=y;return JS=v,JS}var lne=cne();const o$=We.getDefaultExportFromCjs(lne),Jt={add:pne,replace:Tp,remove:dne,merge:hne,mergeDeep:mne,context:gne,getIn:_ne,applyPatch:fne,parentPathMatch:bne,flatten:Pl,fullyNormalizeArray:Ene,normalizeArray:zU,isPromise:Sne,forEachNew:yne,forEachNewPrimitive:vne,isJsonPatch:HU,isContextPatch:Ane,isPatch:kh,isMutation:KU,isAdditiveMutation:Qp,isGenerator:xne,isFunction:JU,isObject:Ya,isError:wne};function fne(e,t,r){if(r=r||{},t={...t,path:t.path&&u$(t.path)},t.op==="merge"){const n=HS(e,t.path);Object.assign(n,t.value),ua(e,[Tp(t.path,n)])}else if(t.op==="mergeDeep"){const n=HS(e,t.path),i=o$(n,t.value,{customMerge:s=>{if(s==="enum")return(a,o)=>Array.isArray(a)&&Array.isArray(o)?[...new Set([...a,...o])]:o$(a,o)}});e=ua(e,[Tp(t.path,i)]).newDocument}else if(t.op==="add"&&t.path===""&&Ya(t.value)){const n=Object.keys(t.value).reduce((i,s)=>(i.push({op:"add",path:`/${u$(s)}`,value:t.value[s]}),i),[]);ua(e,n)}else if(t.op==="replace"&&t.path===""){let{value:n}=t;r.allowMetaPatches&&t.meta&&Qp(t)&&(Array.isArray(t.value)||Ya(t.value))&&(n={...n,...t.meta}),e=n}else if(ua(e,[t]),r.allowMetaPatches&&t.meta&&Qp(t)&&(Array.isArray(t.value)||Ya(t.value))){const i={...HS(e,t.path),...t.meta};ua(e,[Tp(t.path,i)])}return e}function u$(e){return Array.isArray(e)?e.length<1?"":`/${e.map(t=>(t+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function pne(e,t){return{op:"add",path:e,value:t}}function Tp(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function dne(e){return{op:"remove",path:e}}function hne(e,t){return{type:"mutation",op:"merge",path:e,value:t}}function mne(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}}function gne(e,t){return{type:"context",path:e,value:t}}function yne(e,t){try{return VU(e,Yx,t)}catch(r){return r}}function vne(e,t){try{return VU(e,Gx,t)}catch(r){return r}}function VU(e,t,r){const n=e.filter(Qp).map(a=>t(a.value,r,a.path))||[],i=Pl(n);return WU(i)}function Gx(e,t,r){return r=r||[],Array.isArray(e)?e.map((n,i)=>Gx(n,t,r.concat(i))):Ya(e)?Object.keys(e).map(n=>Gx(e[n],t,r.concat(n))):t(e,r[r.length-1],r)}function Yx(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)=>Yx(s,t,r.concat(a)));i&&(n=n.concat(i))}else if(Ya(e)){const i=Object.keys(e).map(s=>Yx(e[s],t,r.concat(s)));i&&(n=n.concat(i))}return n=Pl(n),n}function bne(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 _ne(e,t){return t.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,e)}function Ene(e){return WU(Pl(zU(e)))}function zU(e){return Array.isArray(e)?e:[e]}function Pl(e){return[].concat(...e.map(t=>Array.isArray(t)?Pl(t):t))}function WU(e){return e.filter(t=>typeof t<"u")}function Ya(e){return e&&typeof e=="object"}function Sne(e){return Ya(e)&&JU(e.then)}function JU(e){return e&&typeof e=="function"}function wne(e){return e instanceof Error}function HU(e){if(kh(e)){const{op:t}=e;return t==="add"||t==="remove"||t==="replace"}return!1}function xne(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function KU(e){return HU(e)||kh(e)&&e.type==="mutation"}function Qp(e){return KU(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function Ane(e){return kh(e)&&e.type==="context"}function kh(e){return e&&typeof e=="object"}function HS(e,t){try{return qc(e,t)}catch(r){return console.error(r),{}}}var c$={},l$={},f$={},KS,p$;function dC(){if(p$)return KS;p$=1;var e=pU(),t=dU(),r=e("keys");return KS=function(n){return r[n]||(r[n]=t(n))},KS}var GS,d$;function One(){if(d$)return GS;d$=1;var e=xi();return GS=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),GS}var YS,h$;function hC(){if(h$)return YS;h$=1;var e=Wi(),t=ti(),r=nC(),n=dC(),i=One(),s=n("IE_PROTO"),a=Object,o=a.prototype;return YS=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},YS}var XS,m$;function Cne(){if(m$)return XS;m$=1;var e=$n(),t=Il();return XS=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},XS}var ZS,g$;function Rne(){if(g$)return ZS;g$=1;var e=zi();return ZS=function(t){return e(t)||t===null},ZS}var QS,y$;function Tne(){if(y$)return QS;y$=1;var e=Rne(),t=String,r=TypeError;return QS=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")},QS}var e1,v$;function Nh(){if(v$)return e1;v$=1;var e=Cne(),t=zi(),r=Ih(),n=Tne();return e1=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),e1}var t1={},b$;function Ine(){if(b$)return t1;b$=1;var e=EU(),t=aC(),r=t.concat("length","prototype");return t1.f=Object.getOwnPropertyNames||function(i){return e(i,r)},t1}var r1,_$;function jne(){if(_$)return r1;_$=1;var e=Rl(),t=$n(),r=Ine(),n=wU(),i=mo(),s=t([].concat);return r1=e("Reflect","ownKeys")||function(o){var u=r.f(i(o)),c=n.f;return c?s(u,c(o)):u},r1}var n1,E$;function GU(){if(E$)return n1;E$=1;var e=Wi(),t=jne(),r=yU(),n=Ru();return n1=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))}},n1}var i1={},S$;function Pne(){if(S$)return i1;S$=1;var e=ms(),t=bU(),r=Ru(),n=mo(),i=Ol(),s=SU();return i1.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},i1}var s1,w$;function kne(){if(w$)return s1;w$=1;var e=Rl();return s1=e("document","documentElement"),s1}var a1,x$;function mC(){if(x$)return a1;x$=1;var e=mo(),t=Pne(),r=aC(),n=sC(),i=kne(),s=mU(),a=dC(),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+":",w;return b.style.display="none",i.appendChild(b),b.src=String(S),w=b.contentWindow.document,w.open(),w.write(d("document.F=Object")),w.close(),w.F},v,_=function(){try{v=new ActiveXObject("htmlfile")}catch{}_=typeof document<"u"?document.domain&&v?g(v):y():g(v);for(var b=r.length;b--;)delete _[c][r[b]];return _()};return n[f]=!0,a1=Object.create||function(S,w){var E;return S!==null?(h[c]=e(S),E=new h,h[c]=null,E[f]=S):E=_(),w===void 0?E:t.f(E,w)},a1}var o1,A$;function YU(){if(A$)return o1;A$=1;var e=zi(),t=Bs();return o1=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},o1}var u1,O$;function Nne(){if(O$)return u1;O$=1;var e=$n(),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 u1=function(a,o){if(s&&typeof a=="string"&&!t.prepareStackTrace)for(;o--;)a=r(a,i,"");return a},u1}var c1,C$;function Mne(){if(C$)return c1;C$=1;var e=xi(),t=Al();return c1=!e(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",t(1,7)),r.stack!==7):!0}),c1}var l1,R$;function XU(){if(R$)return l1;R$=1;var e=Bs(),t=Nne(),r=Mne(),n=Error.captureStackTrace;return l1=function(i,s,a,o){r&&(n?n(i,s):e(i,"stack",t(a,o)))},l1}var f1,T$;function Iu(){return T$||(T$=1,f1={}),f1}var p1,I$;function Dne(){if(I$)return p1;I$=1;var e=Ls(),t=Iu(),r=e("iterator"),n=Array.prototype;return p1=function(i){return i!==void 0&&(t.Array===i||n[r]===i)},p1}var d1,j$;function gC(){if(j$)return d1;j$=1;var e=Ls(),t=e("toStringTag"),r={};return r[t]="z",d1=String(r)==="[object z]",d1}var h1,P$;function yC(){if(P$)return h1;P$=1;var e=gC(),t=ti(),r=Q2(),n=Ls(),i=n("toStringTag"),s=Object,a=r((function(){return arguments})())==="Arguments",o=function(u,c){try{return u[c]}catch{}};return h1=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},h1}var m1,k$;function ZU(){if(k$)return m1;k$=1;var e=yC(),t=rC(),r=eC(),n=Iu(),i=Ls(),s=i("iterator");return m1=function(a){if(!r(a))return t(a,s)||t(a,"@@iterator")||n[e(a)]},m1}var g1,N$;function qne(){if(N$)return g1;N$=1;var e=wa(),t=Il(),r=mo(),n=tC(),i=ZU(),s=TypeError;return g1=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")},g1}var y1,M$;function Fne(){if(M$)return y1;M$=1;var e=wa(),t=mo(),r=rC();return y1=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},y1}var v1,D$;function $ne(){if(D$)return v1;D$=1;var e=vU(),t=wa(),r=mo(),n=tC(),i=Dne(),s=_U(),a=Tl(),o=qne(),u=ZU(),c=Fne(),l=TypeError,f=function(d,g){this.stopped=d,this.result=g},h=f.prototype;return v1=function(d,g,y){var v=y&&y.that,_=!!(y&&y.AS_ENTRIES),b=!!(y&&y.IS_RECORD),S=!!(y&&y.IS_ITERATOR),w=!!(y&&y.INTERRUPTED),E=e(g,v),A,R,I,O,D,P,F,M=function(ee){return A&&c(A,"normal"),new f(!0,ee)},G=function(ee){return _?(r(ee),w?E(ee[0],ee[1],M):E(ee[0],ee[1])):w?E(ee,M):E(ee)};if(b)A=d.iterator;else if(S)A=d;else{if(R=u(d),!R)throw new l(n(d)+" is not iterable");if(i(R)){for(I=0,O=s(d);O>I;I++)if(D=G(d[I]),D&&a(h,D))return D;return new f(!1)}A=o(d,R)}for(P=b?d.next:A.next;!(F=t(P,A)).done;){try{D=G(F.value)}catch(ee){c(A,"throw",ee)}if(typeof D=="object"&&D&&a(h,D))return D}return new f(!1)},v1}var b1,q$;function vC(){if(q$)return b1;q$=1;var e=yC(),t=String;return b1=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(r)},b1}var _1,F$;function QU(){if(F$)return _1;F$=1;var e=vC();return _1=function(t,r){return t===void 0?arguments.length<2?"":r:e(t)},_1}var $$;function Lne(){if($$)return f$;$$=1;var e=Tu(),t=Tl(),r=hC(),n=Nh(),i=GU(),s=mC(),a=Bs(),o=Al(),u=YU(),c=XU(),l=$ne(),f=QU(),h=Ls(),d=h("toStringTag"),g=Error,y=[].push,v=function(S,w){var E=t(_,this),A;n?A=n(new g,E?r(this):_):(A=E?this:s(_),a(A,d,"Error")),w!==void 0&&a(A,"message",f(w)),c(A,v,A.stack,1),arguments.length>2&&u(A,arguments[2]);var R=[];return l(S,y,{that:R}),a(A,"errors",R),A};n?n(v,g):i(v,g,{name:!0});var _=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}),f$}var L$;function e5(){return L$||(L$=1,Lne()),l$}var B$;function t5(){return B$||(B$=1,e5()),c$}var U$={},E1,V$;function Bne(){if(V$)return E1;V$=1;var e=Ru().f;return E1=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(i){r[n]=i}})},E1}var S1,z$;function Une(){if(z$)return S1;z$=1;var e=ti(),t=zi(),r=Nh();return S1=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},S1}var w1,W$;function r5(){if(W$)return w1;W$=1;var e=Rl(),t=Wi(),r=Bs(),n=Tl(),i=Nh(),s=GU(),a=Bne(),o=Une(),u=QU(),c=YU(),l=XU(),f=ms(),h=jl();return w1=function(d,g,y,v){var _="stackTraceLimit",b=v?2:1,S=d.split("."),w=S[S.length-1],E=e.apply(null,S);if(E){var A=E.prototype;if(!h&&t(A,"cause")&&delete A.cause,!y)return E;var R=e("Error"),I=g(function(O,D){var P=u(v?D:O,void 0),F=v?new E(O):new E;return P!==void 0&&r(F,"message",P),l(F,I,F.stack,2),this&&n(A,this)&&o(F,this,I),arguments.length>b&&c(F,arguments[b]),F});if(I.prototype=A,w!=="Error"?i?i(I,R):s(I,R,{name:!0}):f&&_ in E&&(a(I,E,_),a(I,E,"prepareStackTrace")),s(I,E),!h)try{A.name!==w&&r(A,"name",w),A.constructor=I}catch{}return I}},w1}var J$;function Vne(){if(J$)return U$;J$=1;var e=Tu(),t=Fn(),r=Z2(),n=r5(),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)}}),U$}var H$={},K$;function zne(){if(K$)return H$;K$=1;var e=Tu(),t=Rl(),r=Z2(),n=xi(),i=r5(),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)}),H$}var x1,G$;function Wne(){return G$||(G$=1,x1=function(){}),x1}var A1,Y$;function Jne(){if(Y$)return A1;Y$=1;var e=Fn(),t=ti(),r=e.WeakMap;return A1=t(r)&&/native code/.test(String(r)),A1}var O1,X$;function n5(){if(X$)return O1;X$=1;var e=Jne(),t=Fn(),r=zi(),n=Bs(),i=Wi(),s=fU(),a=dC(),o=sC(),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 w;if(!r(S)||(w=h(S)).type!==b)throw new c("Incompatible receiver, "+b+" required");return w}};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 _=a("state");o[_]=!0,f=function(b,S){if(i(b,_))throw new c(u);return S.facade=b,n(b,_,S),S},h=function(b){return i(b,_)?b[_]:{}},d=function(b){return i(b,_)}}return O1={set:f,get:h,has:d,enforce:g,getterFor:y},O1}var C1,Z$;function Hne(){if(Z$)return C1;Z$=1;var e=ms(),t=Wi(),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 C1={EXISTS:i,PROPER:s,CONFIGURABLE:a},C1}var R1,Q$;function i5(){if(Q$)return R1;Q$=1;var e=Bs();return R1=function(t,r,n,i){return i&&i.enumerable?t[r]=n:e(t,r,n),t},R1}var T1,e3;function s5(){if(e3)return T1;e3=1;var e=xi(),t=ti(),r=zi(),n=mC(),i=hC(),s=i5(),a=Ls(),o=jl(),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}),T1={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:c},T1}var I1,t3;function Kne(){if(t3)return I1;t3=1;var e=gC(),t=yC();return I1=e?{}.toString:function(){return"[object "+t(this)+"]"},I1}var j1,r3;function bC(){if(r3)return j1;r3=1;var e=gC(),t=Ru().f,r=Bs(),n=Wi(),i=Kne(),s=Ls(),a=s("toStringTag");return j1=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))},j1}var P1,n3;function Gne(){if(n3)return P1;n3=1;var e=s5().IteratorPrototype,t=mC(),r=Al(),n=bC(),i=Iu(),s=function(){return this};return P1=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},P1}var k1,i3;function a5(){if(i3)return k1;i3=1;var e=Tu(),t=wa(),r=jl(),n=Hne(),i=ti(),s=Gne(),a=hC(),o=Nh(),u=bC(),c=Bs(),l=i5(),f=Ls(),h=Iu(),d=s5(),g=n.PROPER,y=n.CONFIGURABLE,v=d.IteratorPrototype,_=d.BUGGY_SAFARI_ITERATORS,b=f("iterator"),S="keys",w="values",E="entries",A=function(){return this};return k1=function(R,I,O,D,P,F,M){s(O,I,D);var G=function(ce){if(ce===P&&ne)return ne;if(!_&&ce&&ce in Q)return Q[ce];switch(ce){case S:return function(){return new O(this,ce)};case w:return function(){return new O(this,ce)};case E:return function(){return new O(this,ce)}}return function(){return new O(this)}},ee=I+" Iterator",H=!1,Q=R.prototype,re=Q[b]||Q["@@iterator"]||P&&Q[P],ne=!_&&re||G(P),B=I==="Array"&&Q.entries||re,J,ie,oe;if(B&&(J=a(B.call(new R)),J!==Object.prototype&&J.next&&(!r&&a(J)!==v&&(o?o(J,v):i(J[b])||l(J,b,A)),u(J,ee,!0,!0),r&&(h[ee]=A))),g&&P===w&&re&&re.name!==w&&(!r&&y?c(Q,"name",w):(H=!0,ne=function(){return t(re,this)})),P)if(ie={values:G(w),keys:F?ne:G(S),entries:G(E)},M)for(oe in ie)(_||H||!(oe in Q))&&l(Q,oe,ie[oe]);else e({target:I,proto:!0,forced:_||H},ie);return(!r||M)&&Q[b]!==ne&&l(Q,b,ne,{name:P}),h[I]=ne,ie},k1}var N1,s3;function o5(){return s3||(s3=1,N1=function(e,t){return{value:e,done:t}}),N1}var M1,a3;function u5(){if(a3)return M1;a3=1;var e=Ol(),t=Wne(),r=Iu(),n=n5(),i=Ru().f,s=a5(),a=o5(),o=jl(),u=ms(),c="Array Iterator",l=n.set,f=n.getterFor(c);M1=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 M1}var o3={},D1,u3;function Yne(){if(u3)return D1;u3=1;var e=$n(),t=iC(),r=vC(),n=Ih(),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 D1={codeAt:o(!1),charAt:o(!0)},D1}var c3;function Xne(){if(c3)return o3;c3=1;var e=Yne().charAt,t=vC(),r=n5(),n=a5(),i=o5(),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))}),o3}var q1,l3;function Zne(){if(l3)return q1;l3=1,Vne(),e5(),zne(),u5(),Xne();var e=Cl();return q1=e.AggregateError,q1}var f3={},F1,p3;function Qne(){return p3||(p3=1,F1={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}),F1}var d3;function eie(){if(d3)return f3;d3=1,u5();var e=Qne(),t=Fn(),r=bC(),n=Iu();for(var i in e)r(t[i],i),n[i]=n.Array;return f3}var $1,h3;function tie(){if(h3)return $1;h3=1,t5();var e=Zne();return eie(),$1=e,$1}var L1,m3;function rie(){if(m3)return L1;m3=1;var e=tie();return L1=e,L1}var B1,g3;function nie(){if(g3)return B1;g3=1,t5();var e=rie();return B1=e,B1}var U1,y3;function iie(){return y3||(y3=1,U1=nie()),U1}var V1,v3;function sie(){return v3||(v3=1,V1=iie()),V1}var aie=sie();const oie=We.getDefaultExportFromCjs(aie);class uie extends oie{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}
|
|
101
|
-
CAUSE: ${i.stack}`)}}}class vr extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(uie,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}
|
|
102
|
-
CAUSE: ${n.stack}`)}}}class ls extends vr{constructor(t,r){if(super(t,r),r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class At extends vr{}class z1 extends At{}var _C=function(){return!1},Us=function(){return!0};function cr(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ht(e){return function t(r){return arguments.length===0||cr(r)?t:e.apply(this,arguments)}}function mt(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return cr(r)?t:Ht(function(i){return e(r,i)});default:return cr(r)&&cr(n)?t:cr(r)?Ht(function(i){return e(i,n)}):cr(n)?Ht(function(i){return e(r,i)}):e(r,n)}}}function cie(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 Mh(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 EC(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&&(!cr(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,cr(u)?o=!0:s-=1,a+=1}return!o&&s<=0?r.apply(this,n):Mh(Math.max(0,s),EC(e,n,r))}}var kr=mt(function(t,r){return t===1?Ht(r):Mh(t,EC(t,[],r))});function fn(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return cr(r)?t:mt(function(s,a){return e(r,s,a)});case 2:return cr(r)&&cr(n)?t:cr(r)?mt(function(s,a){return e(s,n,a)}):cr(n)?mt(function(s,a){return e(r,s,a)}):Ht(function(s){return e(r,n,s)});default:return cr(r)&&cr(n)&&cr(i)?t:cr(r)&&cr(n)?mt(function(s,a){return e(s,a,i)}):cr(r)&&cr(i)?mt(function(s,a){return e(s,n,a)}):cr(n)&&cr(i)?mt(function(s,a){return e(r,s,a)}):cr(r)?Ht(function(s){return e(s,n,i)}):cr(n)?Ht(function(s){return e(r,s,i)}):cr(i)?Ht(function(s){return e(r,n,s)}):e(r,n,i)}}}const go=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function lie(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function xa(e,t,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!go(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(lie(n)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(n)}}return r.apply(this,arguments)}}function Dh(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const ei={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var fie=(function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=ei.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=Dh(this.xf["@@transducer/step"](t,!1))),t},e})();function pie(e){return function(t){return new fie(e,t)}}var SC=mt(xa(["all"],pie,function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));function b3(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}function ed(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}function die(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function gi(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function hie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const Sc=typeof Object.is=="function"?Object.is:hie;var _3=Object.prototype.toString,c5=(function(){return _3.call(arguments)==="[object Arguments]"?function(t){return _3.call(t)==="[object Arguments]"}:function(t){return gi("callee",t)}})(),mie=!{toString:null}.propertyIsEnumerable("toString"),E3=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S3=(function(){return arguments.propertyIsEnumerable("length")})(),gie=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},eo=Ht(typeof Object.keys=="function"&&!S3?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var r,n,i=[],s=S3&&c5(t);for(r in t)gi(r,t)&&(!s||r!=="length")&&(i[i.length]=r);if(mie)for(n=E3.length-1;n>=0;)r=E3[n],gi(r,t)&&!gie(i,r)&&(i[i.length]=r),n-=1;return i}),Li=Ht(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function w3(e,t,r,n){var i=b3(e),s=b3(t);function a(o,u){return wC(o,u,r.slice(),n.slice())}return!ed(function(o,u){return!ed(a,u,o)},s,i)}function wC(e,t,r,n){if(Sc(e,t))return!0;var i=Li(e);if(i!==Li(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"&&die(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&Sc(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Sc(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:w3(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:w3(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=eo(e);if(a.length!==eo(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(!(gi(c,t)&&wC(t[c],e[c],o,u)))return!1;s-=1}return!0}var Aa=mt(function(t,r){return wC(t,r,[],[])});function yie(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(Aa(e[r],t))return r;r+=1}return-1}function td(e,t){return yie(t,e,0)>=0}function Ip(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}function W1(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 Zu=function(t){return(t<10?"0":"")+t},vie=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Zu(t.getUTCMonth()+1)+"-"+Zu(t.getUTCDate())+"T"+Zu(t.getUTCHours())+":"+Zu(t.getUTCMinutes())+":"+Zu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function l5(e){return function(){return!e.apply(this,arguments)}}function kl(e,t,r){for(var n=0,i=r.length;n<i;)t=e(t,r[n]),n+=1;return t}function bie(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 rd(e){return Object.prototype.toString.call(e)==="[object Object]"}var _ie=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=ei.init,e.prototype["@@transducer/result"]=ei.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e})();function Eie(e){return function(t){return new _ie(e,t)}}var Sie=mt(xa(["fantasy-land/filter","filter"],Eie,function(e,t){return rd(t)?kl(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},eo(t)):bie(e,t)})),wie=mt(function(t,r){return Sie(l5(t),r)});function f5(e,t){var r=function(a){var o=t.concat([e]);return td(a,o)?"<Circular>":f5(a,o)},n=function(s,a){return Ip(function(o){return W1(o)+": "+r(s[o])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ip(r,e).join(", ")+"))";case"[object Array]":return"["+Ip(r,e).concat(n(e,wie(function(s){return/^\d+$/.test(s)},eo(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):W1(vie(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())+")":W1(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,eo(e)).join(", ")+"}"}}var uu=Ht(function(t){return f5(t,[])}),p5=mt(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=uu(t),o=n(a,uu(r));return o!==void 0&&o===a?t:r}),xie=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=ei.init,e.prototype["@@transducer/result"]=ei.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e})(),Aie=function(t){return function(r){return new xie(t,r)}},qh=mt(xa(["fantasy-land/map","map"],Aie,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return kr(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return kl(function(n,i){return n[i]=t(r[i]),n},{},eo(r));default:return Ip(t,r)}}));const ju=Number.isInteger||function(t){return t<<0===t};function xC(e){return Object.prototype.toString.call(e)==="[object String]"}function Fh(e,t){var r=e<0?t.length+e:e;return xC(t)?t.charAt(r):t[r]}var Nl=mt(function(t,r){if(r!=null)return ju(t)?Fh(t,r):r[t]}),d5=mt(function(t,r){return qh(Nl(t),r)}),Oie=Ht(function(t){return go(t)?!0:!t||typeof t!="object"||xC(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),x3=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function h5(e,t,r){return function(i,s,a){if(Oie(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[x3]!=null)return r(i,s,a[x3]());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 Cie(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 m5=mt(function(t,r){return Mh(t.length,function(){return t.apply(r,arguments)})});function Rie(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 Tie(e,t,r,n){return e["@@transducer/result"](r[n](m5(e["@@transducer/step"],e),t))}var AC=h5(Cie,Tie,Rie),Iie=(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 g5(e){return new Iie(e)}var Pu=fn(function(e,t,r){return AC(typeof e=="function"?g5(e):e,t,r)}),jie=Ht(function(t){return kr(Pu(p5,0,d5("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})}),ct=Ht(function(t){return function(){return t}}),Pie=mt(function(t,r){return t&&r}),kie=Ht(function(t){return kr(Pu(p5,0,d5("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 Nie(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Mie(e,t,r,n){return r[n](e,t)}var Die=h5(kl,Mie,Nie),qie=mt(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))}:Die(function(n,i){return cie(n,qh(i,r))},[],t)}),Fie=mt(function(t,r){return t.apply(this,r)}),OC=Ht(function(t){return kr(t.length,t)});function $ie(e,t,r){if(ju(e)&&go(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 nd=Ht(function(t){return t==null}),Ue=fn(function e(t,r,n){if(t.length===0)return r;var i=t[0];if(t.length>1){var s=!nd(n)&&gi(i,n)&&typeof n[i]=="object"?n[i]:ju(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,s)}return $ie(i,r,n)}),Lie=fn(function(t,r,n){return Ue([t],r,n)});function CC(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var Bie=mt(function(t,r){var n=kr(t,r);return kr(t,function(){return kl(qie,qh(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),RC=Ht(function(t){return Bie(t.length,t)}),Ml=mt(function(t,r){return CC(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:RC(Pie)(t,r)});function y5(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 v5(e,t,r){if(r||(r=new Vie),Uie(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(Li(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 y5(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 Uie(e){var t=typeof e;return e==null||t!="object"&&t!="function"}var Vie=(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})(),zie=Ht(function(t){return function(r,n){return t(r,n)?-1:t(n,r)?1:0}}),Wie=Ht(function(t){return!t}),Dl=RC(Wie);function Jie(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function TC(e,t){return function(){var r=arguments.length;if(r===0)return t();var n=arguments[r-1];return go(n)||typeof n[e]!="function"?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var ql=fn(TC("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)})),Hie=Ht(TC("tail",ql(1,1/0)));function nn(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Mh(arguments[0].length,Pu(Jie,arguments[0],Hie(arguments)))}var Kie=Ht(function(e){return Fh(0,e)});function Gie(e){return e}var b5=Ht(Gie),Yie=(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"]=ei.init,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(gi(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,v5(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t},e})();function Xie(e,t,r){return function(n){return new Yie(e,t,r,n)}}var Zie=EC(4,[],xa([],Xie,function(t,r,n,i){var s=g5(function(a,o){var u=n(o),c=t(gi(u,a)?a[u]:v5(r),o);return c&&c["@@transducer/reduced"]?Dh(a):(a[u]=c,a)});return AC(s,{},i)})),cu=mt(function(t,r){return r==null||r!==r?t:r}),Qie=(function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!A3(t,!0,this)},e.prototype.has=function(t){return A3(t,!1,this)},e})();function A3(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?td(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?td(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}var ese=mt(function(t,r){for(var n=[],i=0,s=t.length,a=r.length,o=new Qie,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}),tse=fn(function(t,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(t,r),i});function rse(e,t){if(t==null)return t;if(ju(e)&&go(t))return tse(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}function nse(e,t){if(ju(e)&&go(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}var Xn=mt(function e(t,r){if(r==null)return r;switch(t.length){case 0:return r;case 1:return rse(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return r[n]==null?nse(n,r):Lie(n,e(i,r[n]),r)}}),ise=(function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=ei.init,e.prototype["@@transducer/result"]=ei.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?Dh(n):n},e})();function sse(e){return function(t){return new ise(e,t)}}var ase=mt(xa(["take"],sse,function(t,r){return ql(0,t<0?1/0:t,r)}));function ose(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return ql(0,r+1,t)}var use=(function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=ei.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=AC(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 cse(e){return function(t){return new use(e,t)}}var lse=mt(xa([],cse,ose)),$h=Ht(function(e){return Fh(-1,e)}),fse=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=ei.init,e.prototype["@@transducer/result"]=ei.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 pse(e){return function(t){return new fse(e,t)}}var dse=mt(xa(["dropWhile"],pse,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return ql(n,1/0,r)})),hse=mt(function(t,r){return t||r}),mse=mt(function(t,r){return CC(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:RC(hse)(t,r)});function gse(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 yse=Ht(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():go(t)?[]:xC(t)?"":rd(t)?{}:c5(t)?(function(){return arguments})():gse(t)?t.constructor.from(""):void 0}),vse=Ht(function(t){return kr(t.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,t.apply(this,i)})}),bse=mt(TC("groupBy",Zie(function(e,t){return e.push(t),e},[]))),_se=mt(function(t,r){if(t.length===0||nd(r))return!1;for(var n=r,i=0;i<t.length;)if(!nd(n)&&gi(t[i],n))n=n[t[i]],i+=1;else return!1;return!0}),wc=mt(function(t,r){return _se([t],r)}),Oa=function(e,t){switch(arguments.length){case 0:return Oa;case 1:return(function(){return function r(n){switch(arguments.length){case 0:return r;default:return Sc(e,n)}}})();default:return Sc(e,t)}},IC=fn(function(t,r,n){return kr(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),Ese=mt(td),Sse=ql(0,-1),jC=mt(function(t,r){return kr(t+1,function(){var n=arguments[t];if(n!=null&&CC(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(uu(n)+' does not have a method named "'+r+'"')})}),Fl=Ht(function(t){return t!=null&&Aa(t,yse(t))}),_5=Ht(function(t){return!Fl(t)}),E5=jC(1,"join");function O3(e){return Object.prototype.toString.call(e)==="[object Number]"}var wse=mt(function(t,r){return function(n){return function(i){return qh(function(s){return r(s,i)},n(t(i)))}}});function PC(e,t){for(var r=t,n=0;n<e.length;n+=1){if(r==null)return;var i=e[n];ju(i)?r=Fh(i,r):r=r[i]}return r}var xse=mt(function(t,r){return kl(function(n,i){return n[i]=t(r[i],i,r),n},{},eo(r))}),Ase=fn(function(t,r,n){var i={},s;r=r||{},n=n||{};for(s in r)gi(s,r)&&(i[s]=gi(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)gi(s,n)&&!gi(s,i)&&(i[s]=n[s]);return i}),Ose=fn(function e(t,r,n){return Ase(function(i,s,a){return rd(s)&&rd(a)?e(t,s,a):t(i,s,a)},r,n)}),Lh=mt(function(t,r){return Ose(function(n,i,s){return s},t,r)}),Cse=mt(function(t,r){return SC(l5(t),r)}),S5=function(e){return{value:e,map:function(t){return S5(t(e))}}},Rse=fn(function(t,r,n){return t(function(i){return S5(r(i))})(n).value}),zr=mt(PC),w5=fn(function(t,r,n){return cu(t,PC(r,n))}),Bh=fn(function(t,r,n){return t(PC(r,n))}),x5=mt(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}),A5=fn(function(t,r,n){return Aa(t,Nl(r,n))}),id=fn(function(t,r,n){return cu(t,Nl(r,n))}),Tse=fn(function(t,r,n){return t(Nl(r,n))}),Ise=mt(function(t,r){if(!(O3(t)&&O3(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}),jse=Ht(Dh),O5=fn(function(t,r,n){return n.replace(t,r)}),Pse=mt(function(t,r){return Array.prototype.slice.call(r,0).sort(t)}),C5=jC(1,"split"),kse=mt(function(e,t){return Aa(ase(e.length,t),e)});function Nse(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Mse=mt(function(t,r){if(!Nse(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+uu(t));return y5(t).test(r)}),Dse=(function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=ei.init,e.prototype["@@transducer/result"]=ei.result,e.prototype["@@transducer/step"]=function(t,r){return ed(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e})();function qse(e){return function(t){return new Dse(e,t)}}var R5=mt(xa([],qse,function(e,t){for(var r=0,n=t.length,i=[],s;r<n;)s=t[r],ed(e,s,i)||(i[i.length]=s),r+=1;return i})),Fse=fn(function(t,r,n){return t(n)?r(n):n}),Uh=ct(void 0),Ca=Aa(Uh()),T5=Dl(Ca),I5=Aa(null),j5=Dl(I5),$se=Dl(nd),Lse=kr(1,nn(Li,Oa("GeneratorFunction"))),Bse=kr(1,nn(Li,Oa("AsyncFunction"))),yo=kie([nn(Li,Oa("Function")),Lse,Bse]),P5=kr(1,yo(Array.isArray)?Array.isArray:nn(Li,Oa("Array"))),Use=Ml(P5,Fl),Vse=Ml(P5,_5),vo=kr(1,nn(Li,Oa("String"))),zse=Aa("");function Xx(e){"@babel/helpers - typeof";return Xx=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},Xx(e)}var k5=function(t){return Xx(t)==="object"},Wse=kr(1,Ml(j5,mse(k5,yo))),Jse=Dl(Wse),Vh=jie([vo,Jse,_5]),Hse=Dl(yo),Kse=kr(1,Ml(j5,k5)),Gse=nn(Li,Oa("Object")),Yse=nn(uu,Aa(uu(Object))),Xse=Bh(Ml(yo,Yse),["constructor"]),Bi=kr(1,function(e){if(!Kse(e)||!Gse(e))return!1;var t=Object.getPrototypeOf(e);return I5(t)?!0:Xse(t)}),Zse=kr(1,nn(Li,Oa("RegExp")));function Qse(e){return nae(e)||rae(e)||tae(e)||eae()}function eae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
103
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tae(e,t){if(e){if(typeof e=="string")return Zx(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)?Zx(e,t):void 0}}function rae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nae(e){if(Array.isArray(e))return Zx(e)}function Zx(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 iae=zie(function(e,t){return e.length>t.length}),sae=nn(Pse(iae),Kie,Nl("length")),aae=OC(function(e,t,r){var n=r.apply(void 0,Qse(e));return $se(n)?jse(n):t}),oae=function(t){var r=sae(t);return kr(r,function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return Pu(aae(i),void 0,t)})},N5=IC(Vse,oae,Uh),zh=vse(Ese),$c=kr(3,function(e,t,r){var n=zr(e,r),i=zr(Sse(e),r);if(!Hse(n)&&!Use(e)){var s=m5(n,i);return Fie(s,t)}}),uae=Fse(vo,O5(/[.*+?^${}()|[\]\\-]/g,"\\$&")),cae=function(t,r,n){if(n==null||t==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},C3=function(t,r){if(typeof t!="string"&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))},lae=function(t){if(typeof t!="string"&&!(t instanceof String)&&!(t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},fae=function(t,r,n){cae(t,r,n),C3(n,"str"),C3(r,"replaceValue"),lae(t);var i=new RegExp(Zse(t)?t:uae(t),"g");return O5(i,r,n)},pae=kr(3,fae),dae=jC(2,"replaceAll"),hae=yo(String.prototype.replaceAll)?dae:pae,mae=OC(function(e,t){return nn(C5(""),lse(zh(e)),E5(""))(t)}),M5=OC(function(e,t){return nn(C5(""),dse(zh(e)),E5(""))(t)}),J1={exports:{}},R3;function gae(){if(R3)return J1.exports;R3=1;var e=J1.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 _=1;_<arguments.length;_++)v[_-1]=arguments[_];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},J1.exports}var yae=gae();const sd=We.getDefaultExportFromCjs(yae),kC=()=>Bh(Mse(/^win/),["platform"],sd),NC=e=>{try{const t=new URL(e);return mae(":",t.protocol)}catch{return}};nn(NC,T5);const vae=e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""},D5=e=>{if(sd.browser)return!1;const t=NC(e);return Ca(t)||t==="file"||/^[a-zA-Z]$/.test(t)},MC=e=>{const t=NC(e);return t==="http"||t==="https"},q5=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=id(!1,"keepFileProtocol",t),i=id(kC,"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=hae("/","\\",s),s.substring(1,3)===":\\"&&(s=s[0].toUpperCase()+s.substring(1))),s},bae=e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;kC()&&(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},F5=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},Xt=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Qx=()=>{if(sd.browser)return Xt(globalThis.location.href);const e=sd.cwd(),t=$h(e);return["/","\\"].includes(t)?e:e+(kC()?"\\":"/")},Xr=(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()},Wh=e=>{if(D5(e))return bae(q5(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},rs=e=>D5(e)?q5(e):decodeURI(e);let Lc=class{constructor({uri:t,mediaType:r="text/plain",data:n,parseResult:i}){X(this,"uri");X(this,"mediaType");X(this,"data");X(this,"parseResult");this.uri=t,this.mediaType=r,this.data=n,this.parseResult=i}get extension(){return vo(this.uri)?vae(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Li(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class lu{constructor({refs:t=[],circular:r=!1}={}){X(this,"rootRef");X(this,"refs");X(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=vo(t)?t:t.uri;return T5(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 $5={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:b5,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},_ae=wse(zr(["resolve","baseURI"]),Ue(["resolve","baseURI"])),Eae=e=>zse(e)?Qx():e,L5=(e,t)=>{const r=Lh(e,t);return Rse(_ae,Eae,r)};class Sae extends vr{constructor(r,n){super(r,{cause:n.cause});X(this,"plugin");this.plugin=n.plugin}}const DC=async(e,t,r)=>{const n=await Promise.all(r.map($c([e],t)));return r.filter((i,s)=>n[s])},qC=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 Sae("Error while running plugin",{cause:s,plugin:i})}return Promise.reject(n)};class eA extends vr{}class FC extends vr{}class B5 extends FC{}class U5 extends B5{}const wae=async(e,t)=>{const r=t.resolve.resolvers.map(i=>{const s=Object.create(i);return Object.assign(s,t.resolve.resolverOpts)}),n=await DC("canRead",[e,t],r);if(Fl(n))throw new U5(e.uri);try{const{result:i}=await qC("read",[e],n);return i}catch(i){throw new FC(`Error while reading file "${e.uri}"`,{cause:i})}},xae=async(e,t)=>{const r=t.parse.parsers.map(i=>{const s=Object.create(i);return Object.assign(s,t.parse.parserOpts)}),n=await DC("canParse",[e,t],r);if(Fl(n))throw new U5(e.uri);try{const{plugin:i,result:s}=await qC("parse",[e,t],n);return!i.allowEmpty&&s.isEmpty?Promise.reject(new eA(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(i){throw new eA(`Error while parsing file "${e.uri}"`,{cause:i})}},Aae=async(e,t)=>{const r=new Lc({uri:Wh(Xt(e)),mediaType:t.parse.mediaType}),n=await wae(r,t);return xae(new Lc({...r,data:n}),t)};var Rr={},H1,T3;function Oae(){if(T3)return H1;T3=1;function e(t){return t===null}return H1=e,H1}var K1,I3;function Cae(){if(I3)return K1;I3=1;var e=ds(),t=Tn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return K1=n,K1}var G1,j3;function Rae(){if(j3)return G1;j3=1;var e=ds(),t=Tn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return G1=n,G1}var Y1,P3;function $C(){if(P3)return Y1;P3=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 Y1=e,Y1}var X1,k3;function Tae(){if(k3)return X1;k3=1;var e=u2();function t(r,n){return e(r,n)}return X1=t,X1}var Z1,N3;function Jh(){if(N3)return Z1;N3=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 Z1=e,Z1}var Q1,M3;function Hh(){if(M3)return Q1;M3=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 Q1=t,Q1}var ew,D3;function Kh(){if(D3)return ew;D3=1;const e=Hh();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]()}),ew=r,ew}var tw,q3;function Vs(){if(q3)return tw;q3=1;const e=Tae(),t=Jh(),r=Kh();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 tw=n,tw}var rw,F3;function Iae(){if(F3)return rw;F3=1;const e=Vs();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 rw=t,rw}var nw,$3;function jae(){if($3)return nw;$3=1;const e=Vs();return nw=class extends e{constructor(r,n,i){super(r,n,i),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},nw}var iw,L3;function Pae(){if(L3)return iw;L3=1;const e=Vs();return iw=class extends e{constructor(r,n,i){super(r,n,i),this.element="number"}primitive(){return"number"}},iw}var sw,B3;function kae(){if(B3)return sw;B3=1;const e=Vs();return sw=class extends e{constructor(r,n,i){super(r,n,i),this.element="boolean"}primitive(){return"boolean"}},sw}var aw,U3;function V5(){if(U3)return aw;U3=1;const e=Hh(),t=Vs(),r=Kh();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]()}),aw=n,aw}var ow,V3;function z5(){if(V3)return ow;V3=1;const e=Jh(),t=Vs();return ow=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)}},ow}var uw,z3;function W5(){if(z3)return uw;z3=1;const e=Hh(),t=Kh();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 uw=r,uw}var cw,W3;function Nae(){if(W3)return cw;W3=1;const e=Hh(),t=Rn(),r=V5(),n=z5(),i=W5();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 cw=s,cw}var lw,J3;function Mae(){if(J3)return lw;J3=1;const e=Vs();return lw=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)}},lw}var fw,H3;function Dae(){if(H3)return fw;H3=1;const e=Vs();return fw=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)}},fw}var pw,K3;function J5(){if(K3)return pw;K3=1;const e=Vs(),t=Iae(),r=jae(),n=Pae(),i=kae(),s=V5(),a=z5(),o=Nae(),u=Mae(),c=Dae(),l=Kh(),f=W5(),h=Jh();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,pw={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},pw}var dw,G3;function qae(){if(G3)return dw;G3=1;const e=Oae(),t=AU(),r=Cae(),n=Rae(),i=Rn(),s=$C(),a=J5();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,dw=o,dw}var hw,Y3;function Fae(){if(Y3)return hw;Y3=1;const e=$C();return hw=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]))})}},hw}var X3;function $ae(){if(X3)return Rr;X3=1;const e=qae(),t=J5();return Rr.Namespace=e,Rr.namespace=function(n){return new e(n)},Rr.KeyValuePair=Jh(),Rr.ArraySlice=t.ArraySlice,Rr.ObjectSlice=t.ObjectSlice,Rr.Element=t.Element,Rr.StringElement=t.StringElement,Rr.NumberElement=t.NumberElement,Rr.BooleanElement=t.BooleanElement,Rr.NullElement=t.NullElement,Rr.ArrayElement=t.ArrayElement,Rr.ObjectElement=t.ObjectElement,Rr.MemberElement=t.MemberElement,Rr.RefElement=t.RefElement,Rr.LinkElement=t.LinkElement,Rr.refract=t.refract,Rr.JSONSerialiser=$C(),Rr.JSON06Serialiser=Fae(),Rr}var ve=$ae();class ad extends ve.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 od extends ve.StringElement{constructor(t,r,n){super(t,r,n),this.element="comment"}}class Ui extends ve.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(Ca(r))return!1;const n=this.content.findIndex(i=>i===r);return n===-1?!1:(this.content[n]=t,!0)}}class ud extends ve.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 ve.ArrayElement([t.start.row,t.start.column,t.start.char]),n=new ve.ArrayElement([t.end.row,t.end.column,t.end.char]);r.classes.push("position"),n.classes.push("position"),this.push(r).push(n)}}const Lae=(e,t)=>typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="function",Bae=e=>typeof e=="object"&&e!=null&&"_storedElement"in e&&typeof e._storedElement=="string"&&"_content"in e,Uae=(e,t)=>typeof t=="object"&&t!==null&&"primitive"in t?typeof t.primitive=="function"&&t.primitive()===e:!1,Vae=(e,t)=>typeof t=="object"&&t!==null&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ve.ArrayElement)&&t.classes.includes(e),na=(e,t)=>typeof t=="object"&&t!==null&&"element"in t&&t.element===e,Ve=e=>e({hasMethod:Lae,hasBasicElementProps:Bae,primitiveEq:Uae,isElementType:na,hasClass:Vae}),Or=Ve(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.Element||e(r)&&t(void 0,r)),ft=Ve(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.StringElement||e(r)&&t("string",r)),LC=Ve(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.NumberElement||e(r)&&t("number",r)),BC=Ve(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.NullElement||e(r)&&t("null",r)),$l=Ve(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.BooleanElement||e(r)&&t("boolean",r)),Dt=Ve(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ve.ObjectElement||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),tn=Ve(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ve.ArrayElement&&!(n instanceof ve.ObjectElement)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),Ji=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ve.MemberElement||e(n)&&t("member",n)&&r(void 0,n)),H5=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ve.LinkElement||e(n)&&t("link",n)&&r(void 0,n)),K5=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ve.RefElement||e(n)&&t("ref",n)&&r(void 0,n)),zae=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ad||e(n)&&t("annotation",n)&&r("array",n)),Wae=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof od||e(n)&&t("comment",n)&&r("string",n)),G5=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ui||e(n)&&t("parseResult",n)&&r("array",n)),Y5=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ud||e(n)&&t("sourceMap",n)&&r("array",n)),Xa=e=>na("object",e)||na("array",e)||na("boolean",e)||na("number",e)||na("string",e)||na("null",e)||na("member",e),Ll=e=>Y5(e.meta.get("sourceMap")),Jae=(e,t)=>{if(e.length===0)return!0;const r=t.attributes.get("symbols");return tn(r)?SC(zh(r.toValue()),e):!1},fu=(e,t)=>e.length===0?!0:SC(zh(t.classes.toValue()),e),Hae=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Ll,includesClasses:fu,includesSymbols:Jae,isAnnotationElement:zae,isArrayElement:tn,isBooleanElement:$l,isCommentElement:Wae,isElement:Or,isLinkElement:H5,isMemberElement:Ji,isNullElement:BC,isNumberElement:LC,isObjectElement:Dt,isParseResultElement:G5,isPrimitiveElement:Xa,isRefElement:K5,isSourceMapElement:Y5,isStringElement:ft},Symbol.toStringTag,{value:"Module"}));class X5 extends ve.Namespace{constructor(){super(),this.register("annotation",ad),this.register("comment",od),this.register("parseResult",Ui),this.register("sourceMap",ud)}}const Z5=new X5,zs=e=>{const t=new X5;return Bi(e)&&t.use(e),t},Q5=()=>({predicates:{...Hae},namespace:Z5}),Gh=(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},It={},Bl=e=>e==null?void 0:e.type,e9=e=>typeof Bl(e)=="string",UC=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Yh=(e,{visitFnGetter:t=Gh,nodeTypeGetter:r=Bl,breakSymbol:n=It,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 _={...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 w=S.call(e[b],y,l,f,h,d,_);if(typeof(w==null?void 0:w.then)=="function")throw new ls("Async visitor not supported in sync mode",{visitor:e[b],visitFn:S});if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(_,b){g.replaceWith(_,b),y=_}};for(let _=0;_<e.length;_+=1)if(u[_]===o){const b=t(e[_],r(y),!0);if(typeof b=="function"){const S=b.call(e[_],y,l,f,h,d,v);if(typeof(S==null?void 0:S.then)=="function")throw new ls("Async visitor not supported in sync mode",{visitor:e[_],visitFn:b});if(S===n)u[_]=n;else if(S!==void 0&&S!==s)return S}}else u[_]===y&&(u[_]=o)}}},Kae=(e,{visitFnGetter:t=Gh,nodeTypeGetter:r=Bl,breakSymbol:n=It,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 _={...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 w=await S.call(e[b],y,l,f,h,d,_);if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},async leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(_,b){g.replaceWith(_,b),y=_}};for(let _=0;_<e.length;_+=1)if(u[_]===o){const b=t(e[_],r(y),!0);if(typeof b=="function"){const S=await b.call(e[_],y,l,f,h,d,v);if(S===n)u[_]=n;else if(S!==void 0&&S!==s)return S}}else u[_]===y&&(u[_]=o)}}};Yh[Symbol.for("nodejs.util.promisify.custom")]=Kae;const VC=(e,t,{keyMap:r=null,state:n={},breakSymbol:i=It,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Gh,nodeTypeGetter:u=Bl,nodePredicate:c=e9,nodeCloneFn:l=UC,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(e),v=[e],_=-1,b,S=[],w=e;const E=[],A=[];do{_+=1;const O=_===v.length;let D;const P=O&&S.length!==0;if(O){if(D=A.length===0?void 0:E.pop(),w=b,b=A.pop(),P)if(y){w=w.slice();let M=0;for(const[G,ee]of S){const H=G-M;ee===s?(w.splice(H,1),M+=1):w[H]=ee}}else{w=l(w);for(const[M,G]of S)w[M]=G}_=g.index,v=g.keys,S=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(D=y?_:v[_],w=b[D],w===s||w===void 0)continue;E.push(D)}let F;if(!Array.isArray(w)){var R;if(!c(w))throw new ls(`Invalid AST Node: ${String(w)}`,{node:w});if(f&&A.includes(w)){typeof h=="function"&&h(w,D,b,E,A),E.pop();continue}const M=o(t,u(w),O);if(M){for(const[ee,H]of Object.entries(n))t[ee]=H;const G={replaceWith(ee,H){typeof H=="function"?H(ee,w,D,b,E,A):b&&(b[D]=ee),O||(w=ee)}};F=M.call(t,w,D,b,E,A,G)}if(typeof((R=F)===null||R===void 0?void 0:R.then)=="function")throw new ls("Async visitor not supported in sync mode",{visitor:t,visitFn:M});if(F===i)break;if(F===a){if(!O){E.pop();continue}}else if(F!==void 0&&(S.push([D,F]),!O))if(c(F))w=F;else{E.pop();continue}}if(F===void 0&&P&&S.push([D,w]),!O){var I;g={inArray:y,index:_,keys:v,edits:S,prev:g},y=Array.isArray(w),v=y?w:(I=d[u(w)])!==null&&I!==void 0?I:[],_=-1,S=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return S.length!==0?S[S.length-1][1]:e};VC[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:i=It,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Gh,nodeTypeGetter:u=Bl,nodePredicate:c=e9,nodeCloneFn:l=UC,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(e),v=[e],_=-1,b,S=[],w=e;const E=[],A=[];do{_+=1;const I=_===v.length;let O;const D=I&&S.length!==0;if(I){if(O=A.length===0?void 0:E.pop(),w=b,b=A.pop(),D)if(y){w=w.slice();let F=0;for(const[M,G]of S){const ee=M-F;G===s?(w.splice(ee,1),F+=1):w[ee]=G}}else{w=l(w);for(const[F,M]of S)w[F]=M}_=g.index,v=g.keys,S=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(O=y?_:v[_],w=b[O],w===s||w===void 0)continue;E.push(O)}let P;if(!Array.isArray(w)){if(!c(w))throw new ls(`Invalid AST Node: ${String(w)}`,{node:w});if(f&&A.includes(w)){typeof h=="function"&&h(w,O,b,E,A),E.pop();continue}const F=o(t,u(w),I);if(F){for(const[G,ee]of Object.entries(n))t[G]=ee;const M={replaceWith(G,ee){typeof ee=="function"?ee(G,w,O,b,E,A):b&&(b[O]=G),I||(w=G)}};P=await F.call(t,w,O,b,E,A,M)}if(P===i)break;if(P===a){if(!I){E.pop();continue}}else if(P!==void 0&&(S.push([O,P]),!I))if(c(P))w=P;else{E.pop();continue}}if(P===void 0&&D&&S.push([O,w]),!I){var R;g={inArray:y,index:_,keys:v,edits:S,prev:g},y=Array.isArray(w),v=y?w:(R=d[u(w)])!==null&&R!==void 0?R:[],_=-1,S=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return S.length!==0?S[S.length-1][1]:e};class t9 extends ls{constructor(r,n){super(r,n);X(this,"value");typeof n<"u"&&(this.value=n.value)}}class Gae extends t9{}class Yae extends t9{}const Ye=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ve.KeyValuePair){const{key:i,value:s}=e,a=Or(i)?Ye(i,n):i,o=Or(s)?Ye(s,n):s,u=new ve.KeyValuePair(a,o);return r.set(e,u),u}if(e instanceof ve.ObjectSlice){const i=o=>Ye(o,n),s=[...e].map(i),a=new ve.ObjectSlice(s);return r.set(e,a),a}if(e instanceof ve.ArraySlice){const i=o=>Ye(o,n),s=[...e].map(i),a=new ve.ArraySlice(s);return r.set(e,a),a}if(Or(e)){const i=Ur(e);if(r.set(e,i),e.content)if(Or(e.content))i.content=Ye(e.content,n);else if(e.content instanceof ve.KeyValuePair)i.content=Ye(e.content,n);else if(Array.isArray(e.content)){const s=a=>Ye(a,n);i.content=e.content.map(s)}else i.content=e.content;else i.content=e.content;return i}throw new Gae("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ye.safe=e=>{try{return Ye(e)}catch{return e}};const r9=e=>{const{key:t,value:r}=e;return new ve.KeyValuePair(t,r)},Xae=e=>{const t=[...e];return new ve.ArraySlice(t)},Zae=e=>{const t=[...e];return new ve.ObjectSlice(t)},n9=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Ye(e.meta)),e.attributes.length>0&&(t._attributes=Ye(e.attributes)),Or(e.content)){const r=e.content;t.content=n9(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ve.KeyValuePair?t.content=r9(e.content):t.content=e.content;return t},Ur=e=>{if(e instanceof ve.KeyValuePair)return r9(e);if(e instanceof ve.ObjectSlice)return Zae(e);if(e instanceof ve.ArraySlice)return Xae(e);if(Or(e))return n9(e);throw new Yae("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ur.safe=e=>{try{return Ur(e)}catch{return e}};const ku=e=>Dt(e)?"ObjectElement":tn(e)?"ArrayElement":Ji(e)?"MemberElement":ft(e)?"StringElement":$l(e)?"BooleanElement":LC(e)?"NumberElement":BC(e)?"NullElement":H5(e)?"LinkElement":K5(e)?"RefElement":void 0,i9=e=>Or(e)?Ur(e):UC(e),s9=nn(ku,vo),gs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class a9{constructor({predicate:t=_C,returnOnTrue:r,returnOnFalse:n}={}){X(this,"result");X(this,"predicate");X(this,"returnOnTrue");X(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 Nr=(e,t,{keyMap:r=gs,...n}={})=>VC(e,t,{keyMap:r,nodeTypeGetter:ku,nodePredicate:s9,nodeCloneFn:i9,...n});Nr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=gs,...n}={})=>VC[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:ku,nodePredicate:s9,nodeCloneFn:i9,...n});const o9={toolboxCreator:Q5,visitorOptions:{nodeTypeGetter:ku,exposeEdits:!0}},ys=(e,t,r={})=>{if(t.length===0)return e;const n=Lh(o9,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(l=>l(a)),u=Yh(o.map(id({},"visitor")),{...s});o.forEach($c(["pre"],[]));const c=Nr(e,u,s);return o.forEach($c(["post"],[])),c},Qae=async(e,t,r={})=>{if(t.length===0)return e;const n=Lh(o9,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(h=>h(a)),u=Yh[Symbol.for("nodejs.util.promisify.custom")],c=Nr[Symbol.for("nodejs.util.promisify.custom")],l=u(o.map(id({},"visitor")),{...s});await Promise.allSettled(o.map($c(["pre"],[])));const f=await c(e,l,s);return await Promise.allSettled(o.map($c(["post"],[]))),f};ys[Symbol.for("nodejs.util.promisify.custom")]=Qae;var mw={exports:{}},Z3;function eoe(){return Z3||(Z3=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=(w,E,A)=>E in w?r(w,E,{enumerable:!0,configurable:!0,writable:!0,value:A}):w[E]=A,c=(w,E)=>{for(var A in E||(E={}))a.call(E,A)&&u(w,A,E[A]);if(s)for(var A of s(E))o.call(E,A)&&u(w,A,E[A]);return w},l=(w,E)=>{for(var A in E)r(w,A,{get:E[A],enumerable:!0})},f=(w,E,A,R)=>{if(E&&typeof E=="object"||typeof E=="function")for(let I of i(E))!a.call(w,I)&&I!==A&&r(w,I,{get:()=>E[I],enumerable:!(R=n(E,I))||R.enumerable});return w},h=w=>f(r({},"__esModule",{value:!0}),w),d=(w,E,A)=>u(w,typeof E!="symbol"?E+"":E,A),g={};l(g,{DEFAULT_OPTIONS:()=>_,DEFAULT_UUID_LENGTH:()=>v,default:()=>S});var y="5.3.2",v=6,_={dictionary:"alphanum",shuffle:!0,debug:!1,length:v,counter:0},b=class{constructor(E={}){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",(...P)=>{const F=[...P];if(F[0]="[short-unique-id] ".concat(P[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...F);return}}),d(this,"_normalizeDictionary",(P,F)=>{let M;if(P&&Array.isArray(P)&&P.length>1)M=P;else{M=[],this.dictIndex=0;const G="_".concat(P,"_dict_ranges"),ee=this._dict_ranges[G];let H=0;for(const[,re]of Object.entries(ee)){const[ne,B]=re;H+=Math.abs(B-ne)}M=new Array(H);let Q=0;for(const[,re]of Object.entries(ee)){this.dictRange=re,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const ne=this.lowerBound<=this.upperBound,B=this.lowerBound,J=this.upperBound;if(ne)for(let ie=B;ie<J;ie++)M[Q++]=String.fromCharCode(ie),this.dictIndex=ie;else for(let ie=B;ie>J;ie--)M[Q++]=String.fromCharCode(ie),this.dictIndex=ie}M.length=Q}if(F){const G=M.length;for(let ee=G-1;ee>0;ee--){const H=Math.floor(Math.random()*(ee+1));[M[ee],M[H]]=[M[H],M[ee]]}}return M}),d(this,"setDictionary",(P,F)=>{this.dict=this._normalizeDictionary(P,F),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,"seq",()=>this.sequentialUUID()),d(this,"sequentialUUID",()=>{const P=this.dictLength,F=this.dict;let M=this.counter;const G=[];do{const H=M%P;M=Math.trunc(M/P),G.push(F[H])}while(M!==0);const ee=G.join("");return this.counter+=1,ee}),d(this,"rnd",(P=this.uuidLength||v)=>this.randomUUID(P)),d(this,"randomUUID",(P=this.uuidLength||v)=>{if(P===null||typeof P>"u"||P<1)throw new Error("Invalid UUID Length Provided");const F=new Array(P),M=this.dictLength,G=this.dict;for(let ee=0;ee<P;ee++){const H=Math.floor(Math.random()*M);F[ee]=G[H]}return F.join("")}),d(this,"fmt",(P,F)=>this.formattedUUID(P,F)),d(this,"formattedUUID",(P,F)=>{const M={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return P.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const H=ee.slice(0,2),Q=Number.parseInt(ee.slice(2),10);return H==="$s"?M[H]().padStart(Q,"0"):H==="$t"&&F?M[H](Q,F):M[H](Q)})}),d(this,"availableUUIDs",(P=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**P).toFixed(0))),d(this,"_collisionCache",new Map),d(this,"approxMaxBeforeCollision",(P=this.availableUUIDs(this.uuidLength))=>{const F=P,M=this._collisionCache.get(F);if(M!==void 0)return M;const G=Number.parseFloat(Math.sqrt(Math.PI/2*P).toFixed(20));return this._collisionCache.set(F,G),G}),d(this,"collisionProbability",(P=this.availableUUIDs(this.uuidLength),F=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(P)/this.availableUUIDs(F)).toFixed(20))),d(this,"uniqueness",(P=this.availableUUIDs(this.uuidLength))=>{const F=Number.parseFloat((1-this.approxMaxBeforeCollision(P)/P).toFixed(20));return F>1?1:F<0?0:F}),d(this,"getVersion",()=>this.version),d(this,"stamp",(P,F)=>{const M=Math.floor(+(F||new Date)/1e3).toString(16);if(typeof P=="number"&&P===0)return M;if(typeof P!="number"||P<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(`
|
|
104
|
-
`));const G=P-9,ee=Math.round(Math.random()*(G>15?15:G)),H=this.randomUUID(G);return"".concat(H.substring(0,ee)).concat(M).concat(H.substring(ee)).concat(ee.toString(16))}),d(this,"parseStamp",(P,F)=>{if(F&&!/t0|t[1-9]\d{1,}/.test(F))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const M=F?F.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const H={$r:ne=>[...Array(ne)].map(()=>"r").join(""),$s:ne=>[...Array(ne)].map(()=>"s").join(""),$t:ne=>[...Array(ne)].map(()=>"t").join("")},Q=ee.slice(0,2),re=Number.parseInt(ee.slice(2),10);return H[Q](re)}).replace(/^(.*?)(t{8,})(.*)$/g,(ee,H,Q)=>P.substring(H.length,H.length+Q.length)):P;if(M.length===8)return new Date(Number.parseInt(M,16)*1e3);if(M.length<10)throw new Error("Stamp length invalid");const G=Number.parseInt(M.substring(M.length-1),16);return new Date(Number.parseInt(M.substring(G,G+8),16)*1e3)}),d(this,"setCounter",P=>{this.counter=P}),d(this,"validate",(P,F)=>{const M=F?this._normalizeDictionary(F):this.dict;return P.split("").every(G=>M.includes(G))});const A=c(c({},_),E);this.counter=0,this.debug=!1,this.dict=[],this.version=y;const{dictionary:R,shuffle:I,length:O,counter:D}=A;this.uuidLength=O,this.setDictionary(R,I),this.setCounter(D),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)})(mw)),mw.exports}var toe=eoe();const roe=We.getDefaultExportFromCjs(toe);class noe extends ls{constructor(r,n){super(r,n);X(this,"value");typeof n<"u"&&(this.value=n.value)}}class zC{constructor({length:t=6}={}){X(this,"uuid");X(this,"identityMap");this.uuid=new roe({length:t}),this.identityMap=new WeakMap}identify(t){if(!Or(t))throw new noe("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&ft(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 ve.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 zC;class ioe extends Array{constructor(){super(...arguments);X(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new z1("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new z1("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new z1("latest method in MediaTypes class is not yet implemented.")}}const soe=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Or(e)&&(e.meta.length>0&&(n.meta=Ye(e.meta)),e.attributes.length>0&&(n.attributes=Ye(e.attributes))),ys(n,r,{toolboxCreator:Q5,visitorOptions:{nodeTypeGetter:ku}})},Ai=e=>(t,r={})=>soe(t,{...r,Type:e});ve.ObjectElement.refract=Ai(ve.ObjectElement);ve.ArrayElement.refract=Ai(ve.ArrayElement);ve.StringElement.refract=Ai(ve.StringElement);ve.BooleanElement.refract=Ai(ve.BooleanElement);ve.NullElement.refract=Ai(ve.NullElement);ve.NumberElement.refract=Ai(ve.NumberElement);ve.LinkElement.refract=Ai(ve.LinkElement);ve.RefElement.refract=Ai(ve.RefElement);ad.refract=Ai(ad);od.refract=Ai(od);Ui.refract=Ai(Ui);ud.refract=Ai(ud);const aoe=(e,t)=>{const r=new a9({predicate:e});return Nr(t,r),new ve.ArraySlice(r.result)},u9=(e,t)=>{const r=new a9({predicate:e,returnOnTrue:It});return Nr(t,r),w5(void 0,[0],r.result)},c9=e=>typeof(e==null?void 0:e.type)=="string"?e.type:ku(e),l9={EphemeralObject:["content"],EphemeralArray:["content"],...gs},f9=(e,t,{keyMap:r=l9,...n}={})=>Nr(e,t,{keyMap:r,nodeTypeGetter:c9,nodePredicate:Us,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});f9[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=l9,...r}={})=>Nr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:c9,nodePredicate:Us,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class ooe{constructor(t){X(this,"type","EphemeralArray");X(this,"content",[]);X(this,"reference");this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class uoe{constructor(t){X(this,"type","EphemeralObject");X(this,"content",[]);X(this,"reference");this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let coe=class{constructor(){X(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new uoe(t.content);return this.references.set(t,r),r}});X(this,"EphemeralObject",{leave:t=>t.toObject()});X(this,"MemberElement",{enter:t=>[t.key,t.value]});X(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new ooe(t.content);return this.references.set(t,r),r}});X(this,"EphemeralArray",{leave:t=>t.toArray()});X(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 ft(t.href)?t.href.toValue():""}};const Pe=e=>Or(e)?ft(e)||LC(e)||$l(e)||BC(e)?e.toValue():f9(e,new coe):e,jp=(e,t=new WeakMap)=>(Ji(e)?(t.set(e.key,e),jp(e.key,t),t.set(e.value,e),jp(e.value,t)):e.children.forEach(r=>{t.set(r,e),jp(r,t)}),t),loe=(e,t,r)=>{const n=r.get(e);Ji(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)))},foe=(e,t,r)=>{const n=r.get(e);Dt(n)&&(n.content=n.map((i,s,a)=>a===e?(r.delete(e),r.set(t,n),t):a))},poe=(e,t,r)=>{const n=r.get(e);tn(n)&&(n.content=n.map(i=>i===e?(r.delete(e),r.set(t,n),t):i))};class doe{constructor({element:t}){X(this,"element");X(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:jp(this.element);const i=this.edges.get(t);if(!Ca(i))return Dt(i)?foe(t,r,this.edges):tn(i)?poe(t,r,this.edges):Ji(i)&&loe(t,r,this.edges),this.element}}const hoe=(e,t,r)=>new doe({element:r}).transclude(e,t),Ra=(e,t)=>{const r=cu(e,t);return xse(n=>{if(Bi(n)&&wc("$ref",n)&&Tse(vo,"$ref",n)){const i=zr(["$ref"],n),s=M5("#/",i);return zr(s.split("/"),r)}return Bi(n)?Ra(n,r):n},e)},p9=(e,t=Z5)=>{if(vo(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Bi(e)&&wc("element",e)?t.fromRefract(e):t.toElement(e)},cd=e=>{const t=e.meta.length>0?Ye(e.meta):void 0,r=e.attributes.length>0?Ye(e.attributes):void 0;return new e.constructor(void 0,t,r)},ld=(e,t)=>t.clone&&t.isMergeableElement(e)?vi(cd(e),e,t):e,moe=(e,t)=>{if(typeof t.customMerge!="function")return vi;const r=t.customMerge(e,t);return typeof r=="function"?r:vi},goe=e=>typeof e.customMetaMerge!="function"?t=>Ye(t):e.customMetaMerge,yoe=e=>typeof e.customAttributesMerge!="function"?t=>Ye(t):e.customAttributesMerge,voe=(e,t,r)=>e.concat(t)["fantasy-land/map"](n=>ld(n,r)),boe=(e,t,r)=>{const n=Dt(e)?cd(e):cd(t);return Dt(e)&&e.forEach((i,s,a)=>{const o=Ur(a);o.value=ld(i,r),n.content.push(o)}),t.forEach((i,s,a)=>{const o=Pe(s);let u;if(Dt(e)&&e.hasKey(o)&&r.isMergeableElement(i)){const c=e.get(o);u=Ur(a),u.value=moe(s,r)(c,i,r)}else u=Ur(a),u.value=ld(i,r);n.remove(o),n.content.push(u)}),n},up={clone:!0,isMergeableElement:e=>Dt(e)||tn(e),arrayElementMerge:voe,objectElementMerge:boe,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},vi=(e,t,r)=>{var n,i,s;const a={...up,...r};a.isMergeableElement=(n=a.isMergeableElement)!==null&&n!==void 0?n:up.isMergeableElement,a.arrayElementMerge=(i=a.arrayElementMerge)!==null&&i!==void 0?i:up.arrayElementMerge,a.objectElementMerge=(s=a.objectElementMerge)!==null&&s!==void 0?s:up.objectElementMerge;const o=tn(t),u=tn(e);if(!(o===u))return ld(t,a);const l=o&&typeof a.arrayElementMerge=="function"?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a);return l.meta=goe(a)(e.meta,t.meta),l.attributes=yoe(a)(e.attributes,t.attributes),l};vi.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new ve.ObjectElement:e.reduce((r,n)=>vi(r,n,t),cd(e[0]))};class WC extends vr{}class d9 extends WC{}const _oe=async(e,t)=>{let r=e,n=!1;if(!G5(e)){const a=Ur(e);a.classes.push("result"),r=new Ui([a]),n=!0}const i=new Lc({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),s=await DC("canDereference",[i,t],t.dereference.strategies);if(Fl(s))throw new d9(i.uri);try{const{result:a}=await qC("dereference",[i,t],s);return n?a.get(0):a}catch(a){throw new WC(`Error while dereferencing file "${i.uri}"`,{cause:a})}};let Ul=class{constructor({name:t,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:i=[],mediaTypes:s=[]}){X(this,"name");X(this,"allowEmpty");X(this,"sourceMap");X(this,"fileExtensions");X(this,"mediaTypes");this.name=t,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=i,this.mediaTypes=s}};class Eoe{constructor({name:t}){X(this,"name");this.name=t}}class Soe extends Eoe{constructor(r){const{name:n="http-resolver",timeout:i=5e3,redirects:s=5,withCredentials:a=!1}=r??{};super({name:n});X(this,"timeout");X(this,"redirects");X(this,"withCredentials");this.timeout=i,this.redirects=s,this.withCredentials=a}canRead(r){return MC(r.uri)}}class woe{constructor({name:t}){X(this,"name");this.name=t}}class xoe{constructor({name:t}){X(this,"name");this.name=t}}class gw 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(Or(n)&&t(n))return n}}let Ps=class{constructor({uri:t,depth:r=0,refSet:n,value:i}){X(this,"uri");X(this,"depth");X(this,"value");X(this,"refSet");X(this,"errors");this.uri=t,this.value=i,this.depth=r,this.refSet=n,this.errors=[]}};class h9 extends vr{}class Aoe extends h9{}class Ooe extends vr{}class JC extends Ooe{}class Coe extends h9{constructor(t){super(`Invalid JSON Schema $anchor "${t}".`)}}class Ho extends WC{}class Roe extends FC{}class Ds extends eA{}const Toe=async(e,t={})=>{const r=L5($5,t);return _oe(e,r)},{fetch:Ioe,Response:joe,Headers:Poe,Request:koe,FormData:Noe,File:Moe,Blob:Doe}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=Ioe);typeof globalThis.Headers>"u"&&(globalThis.Headers=Poe);typeof globalThis.Request>"u"&&(globalThis.Request=koe);typeof globalThis.Response>"u"&&(globalThis.Response=joe);typeof globalThis.FormData>"u"&&(globalThis.FormData=Noe);typeof globalThis.File>"u"&&(globalThis.File=Moe);typeof globalThis.Blob>"u"&&(globalThis.Blob=Doe);function Q3(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 qoe(e){if(Array.isArray(e))return e}function Foe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $oe(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 Loe(e,t,r){return t&&$oe(e.prototype,t),e}function m9(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Boe(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 Uoe(){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 Voe(e,t){return qoe(e)||Boe(e,t)||zoe(e,t)||Uoe()}function Ko(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function zoe(e,t){if(e){if(typeof e=="string")return Q3(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 Q3(e,t)}}var g9=function(e){throw TypeError(e)},y9=function(e,t,r){return t.has(e)||g9("Cannot "+r)},vn=function(e,t,r){return y9(e,t,"read from private field"),r?r.call(e):t.get(e)},eL=function(e,t,r){return t.has(e)?g9("Cannot add the same private member more than once"):m9(t,WeakSet)?t.add(e):t.set(e,r)},yw=function(e,t,r,n){return y9(e,t,"write to private field"),t.set(e,r),r},Nu=function(e){return Object.prototype.toString.call(e)},v9=function(e){return ArrayBuffer.isView(e)&&!m9(e,DataView)},Woe=function(e){return Nu(e)==="[object Date]"},Joe=function(e){return Nu(e)==="[object RegExp]"},Hoe=function(e){return Nu(e)==="[object Error]"},Koe=function(e){return Nu(e)==="[object Boolean]"},Goe=function(e){return Nu(e)==="[object Number]"},Yoe=function(e){return Nu(e)==="[object String]"},b9=Array.isArray,Xoe=Object.getOwnPropertyDescriptor,Zoe=Object.prototype.propertyIsEnumerable,Qoe=Object.getOwnPropertySymbols,Pp=Object.prototype.hasOwnProperty;function HC(e){for(var t=Object.keys(e),r=Qoe(e),n=0;n<r.length;n++)Zoe.call(e,r[n])&&t.push(r[n]);return t}function eue(e,t){var r;return!(!((r=Xoe(e,t))===null||r===void 0)&&r.writable)}function _9(e,t){if((typeof e>"u"?"undefined":Ko(e))==="object"&&e!==null){var r;if(b9(e))r=[];else if(Woe(e))r=new Date(e.getTime?e.getTime():e);else if(Joe(e))r=new RegExp(e);else if(Hoe(e))r={message:e.message};else if(Koe(e)||Goe(e)||Yoe(e))r=Object(e);else{if(v9(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var n=t.includeSymbols?HC: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 E9={includeSymbols:!1,immutable:!1};function tL(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E9,n=[],i=[],s=!0,a=r.includeSymbols?HC:Object.keys,o=!!r.immutable;return(function u(c){var l=o?_9(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(F){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.isRoot||(d.parent.node[d.key]=F),d.node=F,M&&(h=!1)},delete:function(F){delete d.parent.node[d.key],F&&(h=!1)},remove:function(F){b9(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],F&&(h=!1)},keys:null,before:function(F){f.before=F},after:function(F){f.after=F},pre:function(F){f.pre=F},post:function(F){f.post=F},stop:function(){s=!1},block:function(){h=!1}};if(!s)return d;function g(){if(Ko(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 P=0;P<i.length;P++)if(i[P].node_===c){d.circular=i[P];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(Ko(d.node)==="object"&&d.node!==null&&!d.circular){i.push(d),g();var v,_=!0,b=!1,S=void 0;try{for(var w=Object.entries((v=d.keys)!==null&&v!==void 0?v:[])[Symbol.iterator](),E;!(_=(E=w.next()).done);_=!0){var A=Voe(E.value,2),R=A[0],I=A[1],O;n.push(I),f.pre&&f.pre.call(d,d.node[I],I);var D=u(d.node[I]);o&&Pp.call(d.node,I)&&!eue(d.node,I)&&(d.node[I]=D.node),D.isLast=!((O=d.keys)===null||O===void 0)&&O.length?+R===d.keys.length-1:!1,D.isFirst=+R==0,f.post&&f.post.call(d,D),n.pop()}}catch(P){b=!0,S=P}finally{try{!_&&w.return!=null&&w.return()}finally{if(b)throw S}}i.pop()}return f.after&&f.after.call(d,d.node),d})(e).node}var In,ia,vs=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E9;Foe(this,e),eL(this,In),eL(this,ia),yw(this,In,t),yw(this,ia,r)}return Loe(e,[{key:"get",value:function(r){for(var n=vn(this,In),i=0;n&&i<r.length;i++){var s=r[i];if(!Pp.call(n,s)||!vn(this,ia).includeSymbols&&(typeof s>"u"?"undefined":Ko(s))==="symbol")return;n=n[s]}return n}},{key:"has",value:function(r){for(var n=vn(this,In),i=0;n&&i<r.length;i++){var s=r[i];if(!Pp.call(n,s)||!vn(this,ia).includeSymbols&&(typeof s>"u"?"undefined":Ko(s))==="symbol")return!1;n=n[s]}return!0}},{key:"set",value:function(r,n){var i=vn(this,In),s=0;for(s=0;s<r.length-1;s++){var a=r[s];Pp.call(i,a)||(i[a]={}),i=i[a]}return i[r[s]]=n,n}},{key:"map",value:function(r){return tL(vn(this,In),r,{immutable:!0,includeSymbols:!!vn(this,ia).includeSymbols})}},{key:"forEach",value:function(r){return yw(this,In,tL(vn(this,In),r,vn(this,ia))),vn(this,In)}},{key:"reduce",value:function(r,n){var i=arguments.length===1,s=i?vn(this,In):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=vn(this,ia);return v9(vn(this,In))?vn(this,In).slice():(function s(a){for(var o=0;o<r.length;o++)if(r[o]===a)return n[o];if((typeof a>"u"?"undefined":Ko(a))==="object"&&a!==null){var u=_9(a,i);r.push(a),n.push(u);var c=i.includeSymbols?HC: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})(vn(this,In))}}]),e})();In=new WeakMap;ia=new WeakMap;var bs=function(e,t){return new vs(e,t)};bs.get=function(e,t,r){return new vs(e,r).get(t)};bs.set=function(e,t,r,n){return new vs(e,n).set(t,r)};bs.has=function(e,t,r){return new vs(e,r).has(t)};bs.map=function(e,t,r){return new vs(e,r).map(t)};bs.forEach=function(e,t,r){return new vs(e,r).forEach(t)};bs.reduce=function(e,t,r,n){return new vs(e,n).reduce(t,r)};bs.paths=function(e,t){return new vs(e,t).paths()};bs.nodes=function(e,t){return new vs(e,t).nodes()};bs.clone=function(e,t){return new vs(e,t).clone()};var tue=bs;const S9="application/json, application/yaml",fd="https://swagger.io",rue=Object.freeze({url:"/"}),w9=3e3,nue=["properties"],iue=["properties"],sue=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],aue=["schema/example","items/example"];function x9(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return nue.indexOf(t)>-1&&iue.indexOf(r)===-1||sue.indexOf(n)>-1||aue.some(i=>n.indexOf(i)>-1)}function oue(e,t,{specmap:r,getBaseUrlForNodePath:n=s=>r.getContext([...t,...s]).baseDoc,targetKeys:i=["$ref","$$ref"]}={}){const s=[];return tue(e).forEach(function(){if(i.includes(this.key)&&typeof this.node=="string"){const o=this.path,u=t.concat(this.path),c=tA(this.node,n(o));s.push(r.replace(u,c))}}),s}function tA(e,t){const[r,n]=e.split("#"),i=t??"",s=r??"";let a;if(MC(i))a=Xr(i,s);else{const o=Xr(fd,i),c=Xr(o,s).replace(fd,"");a=s.startsWith("/")?c:c.substring(1)}return n?`${a}#${n}`:a}const uue=/^([a-z]+:\/\/|\/\/)/i;class pu extends ls{}const js={},rL=new WeakMap,cue=[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"],lue=e=>cue.some(t=>t(e)),fue={key:"$ref",plugin:(e,t,r,n)=>{const i=n.getInstance(),s=r.slice(0,-1);if(x9(s)||lue(s))return;const{baseDoc:a}=n.getContext(r);if(typeof e!="string")return new pu("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:r});const o=O9(e),u=o[0],c=o[1]||"";let l;try{l=a||u?A9(u,a):null}catch(y){return rA(y,{pointer:c,$ref:e,basePath:l,fullPath:r})}let f,h;if(gue(c,l,s,n)&&!i.useCircularStructures){const y=tA(e,l);return e===y?null:Jt.replace(r,y)}if(l==null?(h=GC(c),f=n.get(h),typeof f>"u"&&(f=new pu(`Could not resolve reference: ${e}`,{pointer:c,$ref:e,baseDoc:a,fullPath:r}))):(f=C9(l,c),f.__value!=null?f=f.__value:f=f.catch(y=>{throw rA(y,{pointer:c,$ref:e,baseDoc:a,fullPath:r})})),f instanceof Error)return[Jt.remove(r),f];const d=tA(e,l),g=Jt.replace(s,f,{$$ref:d});if(l&&l!==a)return[g,Jt.context(s,{baseDoc:l})];try{if(!yue(n.state,g)||i.useCircularStructures)return g}catch{return null}}},KC=Object.assign(fue,{docCache:js,absoluteify:A9,clearCache:pue,JSONRefError:pu,wrapError:rA,getDoc:R9,split:O9,extractFromDoc:C9,fetchJSON:due,extract:nA,jsonPointerToArray:GC,unescapeJsonPointerToken:T9});function A9(e,t){if(!uue.test(e)){if(!t)throw new pu(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Xr(t,e)}return e}function rA(e,t){let r;return e&&e.response&&e.response.body?r=`${e.response.body.code} ${e.response.body.message}`:r=e.message,new pu(`Could not resolve reference: ${r}`,{...t,cause:e})}function O9(e){return(e+"").split("#")}function C9(e,t){const r=js[e];if(r&&!Jt.isPromise(r))try{const n=nA(t,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return R9(e).then(n=>nA(t,n))}function pue(e){typeof e<"u"?delete js[e]:Object.keys(js).forEach(t=>{delete js[t]})}function R9(e){const t=js[e];return t?Jt.isPromise(t)?t:Promise.resolve(t):(js[e]=KC.fetchJSON(e).then(r=>(js[e]=r,r)),js[e])}function due(e){return fetch(e,{headers:{Accept:S9},loadSpec:!0}).then(t=>t.text()).then(t=>Qa.load(t))}function nA(e,t){const r=GC(e);if(r.length<1)return t;const n=Jt.getIn(t,r);if(typeof n>"u")throw new pu(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function GC(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(T9)}function T9(e){return typeof e!="string"?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function I9(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function hue(e){return e.length===0?"":`/${e.map(I9).join("/")}`}const mue=e=>!e||e==="/"||e==="#";function vw(e,t){if(mue(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return e.indexOf(t)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function gue(e,t,r,n){let i=rL.get(n);i||(i={},rL.set(n,i));const s=hue(r),a=`${t||"<specmap-base>"}#${e}`,o=s.replace(/allOf\/\d+\/?/g,""),u=n.contextTree.get([]).baseDoc;if(t===u&&vw(o,e))return!0;let c="";if(r.some(f=>(c=`${c}/${I9(f)}`,i[c]&&i[c].some(h=>vw(h,a)||vw(a,h)))))return!0;i[o]=(i[o]||[]).concat(a)}function yue(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 Jt.isObject(i)&&(r.indexOf(i)>=0||Object.keys(i).some(s=>n(i[s])))}}const vue={key:"allOf",plugin:(e,t,r,n,i)=>{if(i.meta&&i.meta.$$ref)return;const s=r.slice(0,-1);if(x9(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=oue(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}},bue={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const i=Object.assign([],e),s=r.slice(0,-1),a={...Jt.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 Jt.replace(r,i)}return Jt.replace(r,e)}},_ue={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 Jt.replace(r,i)}};class Eue{constructor(t){this.root=bw(t||{})}set(t,r){const n=this.getParent(t,!0);if(!n){pd(this.root,r,null);return}const i=t[t.length-1],{children:s}=n;if(s[i]){pd(s[i],r,n);return}s[i]=bw(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]=bw(null,n)),s[i]},this.root)}}function bw(e,t){return pd({children:{}},e,t)}function pd(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]=pd(i,i.value,e)}),e}const nL=100,iL=()=>{};class Sue{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 Eue,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Jt,{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(Jt.isFunction),this.patches.push(Jt.add([],this.spec)),this.patches.push(Jt.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]):Jt.isFunction(t)?s=t:Jt.isObject(t)&&(s=a(t)),Object.assign(s.bind(i),{pluginName:t.name||r,isGenerator:Jt.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(Jt.isAdditiveMutation).entries())if(g<w9)yield*d(y.value,y.path,y);else return;function*d(g,y,v){if(!Jt.isObject(g))o.key===y[y.length-1]&&(yield o.plugin(g,o.key,y,f));else{const _=y.length-1,b=y[_],S=y.indexOf("properties"),w=b==="properties"&&_===S,E=f.allowMetaPatches&&h[g.$$ref];for(const A of Object.keys(g)){const R=g[A],I=y.concat(A),O=Jt.isObject(R),D=g.$$ref;if(E||O&&(f.allowMetaPatches&&D&&u(n,I)&&(h[D]=!0),yield*d(R,I,v)),!w&&A===o.key){const P=u(n,y);(!n||P)&&(yield o.plugin(R,A,I,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){Jt.normalizeArray(t).forEach(r=>{if(r instanceof Error){this.errors.push(r);return}try{if(!Jt.isObject(r)){this.debug("updatePatches","Got a non-object patch",r);return}if(this.showDebug&&this.allPatches.push(r),Jt.isPromise(r.value)){this.promisedPatches.push(r),this.promisedPatchThen(r);return}if(Jt.isContextPatch(r)){this.setContext(r.path,r.value);return}Jt.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=Jt.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 Jt.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]>nL)return Promise.resolve({spec:t.state,errors:t.errors.concat(new Error(`We've reached a hard limit of ${nL} 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(iL,iL))).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=Jt.fullyNormalizeArray(s),t.updatePatches(s,r))}}}function wue(e){return new Sue(e).dispatch()}const ko={refs:KC,allOf:vue,parameters:bue,properties:_ue};function j9(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:S9},credentials:i}).then(a=>a.body)}function YC(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=>YC(r,t))}class iA extends File{constructor(t,r="",n={}){super([t],r,n),this.data=t}valueOf(){return this.data}toString(){return this.valueOf()}}const xue=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Aue=e=>/^[a-z0-9\-._~]+$/i.test(e);function k9(e,t="reserved"){return[...e].map(r=>{if(Aue(r)||xue(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 XC(e){const{value:t}=e;return Array.isArray(t)?Oue(e):typeof t=="object"?Cue(e):Rue(e)}function Zr(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?k9(e,t):e??""}function Oue({key:e,value:t,style:r,explode:n,escape:i}){if(r==="simple")return t.map(s=>Zr(s,i)).join(",");if(r==="label")return`.${t.map(s=>Zr(s,i)).join(".")}`;if(r==="matrix")return t.map(s=>Zr(s,i)).reduce((s,a)=>!s||n?`${s||""};${e}=${a}`:`${s},${a}`,"");if(r==="form"){const s=n?`&${e}=`:",";return t.map(a=>Zr(a,i)).join(s)}if(r==="spaceDelimited"){const s=n?`${e}=`:"";return t.map(a=>Zr(a,i)).join(` ${s}`)}if(r==="pipeDelimited"){const s=n?`${e}=`:"";return t.map(a=>Zr(a,i)).join(`|${s}`)}}function Cue({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=Zr(t[o],i),c=n?"=":",";return`${a?`${a},`:""}${o}${c}${u}`},"");if(r==="label")return s.reduce((a,o)=>{const u=Zr(t[o],i),c=n?"=":".";return`${a?`${a}.`:"."}${o}${c}${u}`},"");if(r==="matrix"&&n)return s.reduce((a,o)=>{const u=Zr(t[o],i);return`${a?`${a};`:";"}${o}=${u}`},"");if(r==="matrix")return s.reduce((a,o)=>{const u=Zr(t[o],i);return`${a?`${a},`:`;${e}=`}${o},${u}`},"");if(r==="form")return s.reduce((a,o)=>{const u=Zr(t[o],i);return`${a?`${a}${n?"&":","}`:""}${o}${n?"=":","}${u}`},"")}function Rue({key:e,value:t,style:r,escape:n}){if(r==="simple")return Zr(t,n);if(r==="label")return`.${Zr(t,n)}`;if(r==="matrix")return`;${e}=${Zr(t,n)}`;if(r==="form"||r==="deepObject")return Zr(t,n)}const Tue={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Iue={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function N9(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(YC(o)||P9(o))return[[c,o]];if(s)return sL(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 sL(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 iA(d,"blob",{type:a.contentType});return[[c,g]]}const l=u(String(o)),f=new iA(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(Iue[n||"csv"])]]:[[c,""]]}function sL(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=>Zr(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(Tue[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 jue(e){return Object.entries(e).reduce((t,[r,n])=>{for(const[i,s]of N9(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 Pue=(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 aL(e){const t=Object.keys(e).reduce((r,n)=>{for(const[i,s]of N9(n,e[n]))s instanceof iA?r[i]=s.valueOf():r[i]=s;return r},{});return Pue(t,{encode:!1})}function ZC(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 YC(u)||P9(u)}),a=e.headers["content-type"]||e.headers["Content-Type"];if(s||/multipart\/form-data/i.test(a)){const o=jue(e.form);e.formdata=o,e.body=o}else e.body=aL(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,aL(r));e.url=s+u,delete e.query}return e}const kue=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Nue(e,t){if(t){if(t.indexOf("application/json")===0||t.indexOf("+json")>0)return JSON.parse(e);if(t.indexOf("application/xml")===0||t.indexOf("+xml")>0)return e}return Qa.load(e)}function Mue(e){return e.includes(", ")?e.split(", "):e}function Due(e={}){return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((t,[r,n])=>(t[r]=Mue(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:Due(e.headers)},i=n.headers["content-type"],s=r||kue(i);return(s?e.text:e.blob||e.buffer).call(e).then(o=>{if(n.text=o,n.data=o,s)try{const u=Nue(o,i);n.body=u,n.obj=u}catch(u){n.parseError=u}return n})}async function Bc(e,t={}){typeof e=="object"&&(t=e,e=t.url),t.headers=t.headers||{},t=ZC(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 que(e,t,r){return r=r||(n=>n),t=t||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=ZC(n),n=t(n),r(e(n)))}const QC=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},D9=e=>{const{fetch:t,http:r}=e;return t||r||Bc};async function eR(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=QC(e),d=D9(e),g=f.find(v=>v.match(t));return y(t);async function y(v){h&&(ko.refs.docCache[h]=v),ko.refs.fetchJSON=j9(d,{requestInterceptor:o,responseInterceptor:u});const _=[ko.refs];typeof a=="function"&&_.push(ko.parameters),typeof s=="function"&&_.push(ko.properties),r!=="strict"&&_.push(ko.allOf);const b=await wue({spec:v,context:{baseDoc:h},plugins:_,allowMetaPatches:n,pathDiscriminator:i,parameterMacro:a,modelPropertyMacro:s,useCircularStructures:l});return c||(b.spec=g.normalize(b.spec)),b}}const q9=e=>e.replace(/\W/gi,"_");function Fue(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()}${q9(e)}`}function Xh(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?q9(e.operationId):Fue(t,r,{v2OperationIdCompatibilityMode:n})}function tR(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=Xh(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(!Array.isArray(u[d]))u[d]=h[d];else if(d==="parameters")for(const g of h[d])u[d].some(v=>!Bi(v)&&!Bi(g)?!1:v===g?!0:["name","$ref","$$ref"].some(_=>typeof v[_]=="string"&&typeof g[_]=="string"&&v[_]===g[_]))||u[d].push(g)}}}}return t.$$normalized=!0,e}const F9={name:"generic",match(){return!0},normalize(e){const{spec:t}=tR({spec:e});return t},async resolve(e){return eR(e)}};async function $ue(e){return eR(e)}const Lue=e=>{try{const{swagger:t}=e;return t==="2.0"}catch{return!1}},$9=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},rR=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},L9=e=>$9(e)||rR(e),B9={name:"openapi-2",match(e){return Lue(e)},normalize(e){const{spec:t}=tR({spec:e});return t},async resolve(e){return $ue(e)}};async function Bue(e){return eR(e)}const U9={name:"openapi-3-0",match(e){return $9(e)},normalize(e){const{spec:t}=tR({spec:e});return t},async resolve(e){return Bue(e)}},Uue=e=>{try{const t=e.startsWith("#")?e.slice(1):e;return decodeURIComponent(t)}catch{return e}},hi=e=>{const t=e.indexOf("#"),r=t===-1?"#":e.substring(t);return Uue(r)};function Vl(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let t="";return t+=`; JavaScript Object Notation (JSON) Pointer ABNF syntax
|
|
105
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6901
|
|
106
|
-
`,t+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used
|
|
107
|
-
`,t+=`reference-token = *( unescaped / escaped )
|
|
108
|
-
`,t+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
|
|
109
|
-
`,t+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
|
|
110
|
-
`,t+=`escaped = "~" ( "0" / "1" )
|
|
111
|
-
`,t+=` ; representing '~' and '/', respectively
|
|
112
|
-
`,t+=`
|
|
113
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
|
|
114
|
-
`,t+=`array-location = array-index / array-dash
|
|
115
|
-
`,t+=`array-index = %x30 / ( %x31-39 *(%x30-39) )
|
|
116
|
-
`,t+=` ; "0", or digits without a leading "0"
|
|
117
|
-
`,t+=`array-dash = "-"
|
|
118
|
-
`,t+=`
|
|
119
|
-
`,t+=`; Surrogate named rules
|
|
120
|
-
`,t+=`slash = "/"
|
|
121
|
-
`,t}}const Oi=function(){const t=_t,r=ri,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,_,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,_=void 0,b=void 0},w=()=>{const re=`${i}initializeCallbacks(): `;let ne;for(v=[],_=[],ne=0;ne<f.length;ne+=1)v[ne]=void 0;for(ne=0;ne<h.length;ne+=1)_[ne]=void 0;let B;const J=[];for(ne=0;ne<f.length;ne+=1)J.push(f[ne].lower);for(ne=0;ne<h.length;ne+=1)J.push(h[ne].lower);for(const ie in n.callbacks)if(n.callbacks.hasOwnProperty(ie)){if(ne=J.indexOf(ie.toLowerCase()),ne<0)throw new Error(`${re}syntax callback '${ie}' not a rule or udt name`);if(B=n.callbacks[ie]?n.callbacks[ie]:void 0,typeof B=="function"||B===void 0)ne<f.length?v[ne]=B:_[ne-f.length]=B;else throw new Error(`${re}syntax callback[${ie}] must be function reference or falsy)`)}};n.parse=(re,ne,B,J)=>{const ie=`${i}parse(): `;S(),g=r.stringToChars(B),f=re.rules,h=re.udts;const oe=ne.toLowerCase();let ce;for(const z in f)if(f.hasOwnProperty(z)&&oe===f[z].lower){ce=f[z].index;break}if(ce===void 0)throw new Error(`${ie}start rule name '${startRule}' not recognized`);w(),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:ce}],Q(0,0),d=void 0;let te=!1;switch(y.state){case t.ACTIVE:throw new Error(`${ie}final state should never be 'ACTIVE'`);case t.NOMATCH:te=!1;break;case t.EMPTY:case t.MATCH:y.phraseLength===g.length?te=!0:te=!1;break;default:throw new Error("unrecognized state")}return{success:te,state:y.state,stateName:t.idName(y.state),length:g.length,matched:y.phraseLength,maxMatched:l,maxTreeDepth:u,nodeHits:c}};const E=(re,ne)=>{const B=d[re];for(let J=0;J<B.children.length&&(Q(B.children[J],ne),y.state===t.NOMATCH);J+=1);},A=(re,ne)=>{let B,J,ie,oe;const ce=d[re];n.ast&&(J=n.ast.getLength()),B=!0,ie=ne,oe=0;for(let te=0;te<ce.children.length;te+=1)if(Q(ce.children[te],ie),y.state===t.NOMATCH){B=!1;break}else ie+=y.phraseLength,oe+=y.phraseLength;B?(y.state=oe===0?t.EMPTY:t.MATCH,y.phraseLength=oe):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(J))},R=(re,ne)=>{let B,J,ie,oe;const ce=d[re];if(ce.max===0){y.state=t.EMPTY,y.phraseLength=0;return}for(J=ne,ie=0,oe=0,n.ast&&(B=n.ast.getLength());!(J>=g.length||(Q(re+1,J),y.state===t.NOMATCH)||y.state===t.EMPTY||(oe+=1,ie+=y.phraseLength,J+=y.phraseLength,oe===ce.max)););y.state===t.EMPTY||oe>=ce.min?(y.state=ie===0?t.EMPTY:t.MATCH,y.phraseLength=ie):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(B))},I=(re,ne,B,J)=>{if(ne.phraseLength>B){let ie=`${i}opRNM(${re.name}): callback function error: `;throw ie+=`sysData.phraseLength: ${ne.phraseLength}`,ie+=` must be <= remaining chars: ${B}`,new Error(ie)}switch(ne.state){case t.ACTIVE:if(!J)throw new Error(`${i}opRNM(${re.name}): callback function return error. ACTIVE state not allowed.`);break;case t.EMPTY:ne.phraseLength=0;break;case t.MATCH:ne.phraseLength===0&&(ne.state=t.EMPTY);break;case t.NOMATCH:ne.phraseLength=0;break;default:throw new Error(`${i}opRNM(${re.name}): callback function return error. Unrecognized return state: ${ne.state}`)}},O=(re,ne)=>{let B,J,ie;const oe=d[re],ce=f[oe.index],te=v[ce.index];if(a||(J=n.ast&&n.ast.ruleDefined(oe.index),J&&(B=n.ast.getLength(),n.ast.down(oe.index,f[oe.index].name))),te){const z=g.length-ne;te(y,g,ne,b),I(ce,y,z,!0),y.state===t.ACTIVE&&(ie=d,d=ce.opcodes,Q(0,ne),d=ie,te(y,g,ne,b),I(ce,y,z,!1))}else ie=d,d=ce.opcodes,Q(0,ne),d=ie;a||J&&(y.state===t.NOMATCH?n.ast.setLength(B):n.ast.up(oe.index,ce.name,ne,y.phraseLength))},D=(re,ne)=>{const B=d[re];y.state=t.NOMATCH,ne<g.length&&B.min<=g[ne]&&g[ne]<=B.max&&(y.state=t.MATCH,y.phraseLength=1)},P=(re,ne)=>{const B=d[re],J=B.string.length;if(y.state=t.NOMATCH,ne+J<=g.length){for(let ie=0;ie<J;ie+=1)if(g[ne+ie]!==B.string[ie])return;y.state=t.MATCH,y.phraseLength=J}},F=(re,ne)=>{let B;const J=d[re];y.state=t.NOMATCH;const ie=J.string.length;if(ie===0){y.state=t.EMPTY;return}if(ne+ie<=g.length){for(let oe=0;oe<ie;oe+=1)if(B=g[ne+oe],B>=65&&B<=90&&(B+=32),B!==J.string[oe])return;y.state=t.MATCH,y.phraseLength=ie}},M=(re,ne,B)=>{if(ne.phraseLength>B){let J=`${i}opUDT(${re.name}): callback function error: `;throw J+=`sysData.phraseLength: ${ne.phraseLength}`,J+=` must be <= remaining chars: ${B}`,new Error(J)}switch(ne.state){case t.ACTIVE:throw new Error(`${i}opUDT(${re.name}) ACTIVE state return not allowed.`);case t.EMPTY:if(re.empty)ne.phraseLength=0;else throw new Error(`${i}opUDT(${re.name}) may not return EMPTY.`);break;case t.MATCH:if(ne.phraseLength===0)if(re.empty)ne.state=t.EMPTY;else throw new Error(`${i}opUDT(${re.name}) may not return EMPTY.`);break;case t.NOMATCH:ne.phraseLength=0;break;default:throw new Error(`${i}opUDT(${re.name}): callback function return error. Unrecognized return state: ${ne.state}`)}},G=(re,ne)=>{let B,J,ie;const oe=d[re],ce=h[oe.index];y.UdtIndex=ce.index,a||(ie=n.ast&&n.ast.udtDefined(oe.index),ie&&(J=f.length+oe.index,B=n.ast.getLength(),n.ast.down(J,ce.name)));const te=g.length-ne;_[oe.index](y,g,ne,b),M(ce,y,te),a||ie&&(y.state===t.NOMATCH?n.ast.setLength(B):n.ast.up(J,ce.name,ne,y.phraseLength))},ee=(re,ne)=>{switch(a+=1,Q(re+1,ne),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}`)}},H=(re,ne)=>{switch(a+=1,Q(re+1,ne),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}`)}},Q=(re,ne)=>{const B=`${i}opExecute(): `,J=d[re];switch(c+=1,o>u&&(u=o),o+=1,y.refresh(),n.trace&&n.trace.down(J,ne),J.type){case t.ALT:E(re,ne);break;case t.CAT:A(re,ne);break;case t.REP:R(re,ne);break;case t.RNM:O(re,ne);break;case t.TRG:D(re,ne);break;case t.TBS:P(re,ne);break;case t.TLS:F(re,ne);break;case t.UDT:G(re,ne);break;case t.AND:ee(re,ne);break;case t.NOT:H(re,ne);break;default:throw new Error(`${B}unrecognized operator`)}a||ne+y.phraseLength>l&&(l=ne+y.phraseLength),n.stats&&n.stats.collect(J,y),n.trace&&n.trace.up(J,y.state,ne,y.phraseLength),o-=1}},nR=function(){const t="parser.js: Ast()): ",r=_t,n=ri,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 _=[];for(v=0;v<s.length;v+=1)_.push(s[v].lower);for(v=0;v<a.length;v+=1)_.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=_.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 _=f.length,b=l.pop();return f.push({name:g,thisIndex:_,thatIndex:b,state:r.SEM_POST,callbackIndex:d,phraseIndex:y,phraseLength:v,stack:l.length}),f[b].thatIndex=_,f[b].phraseIndex=y,f[b].phraseLength=v,_},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"?>
|
|
122
|
-
`,d+=`<root nodes="${f.length/2}" characters="${o.length}">
|
|
123
|
-
`,d+=`<!-- input string -->
|
|
124
|
-
`,d+=h(g+2),d+=n.charsToString(o),d+=`
|
|
125
|
-
`,f.forEach(y=>{y.state===r.SEM_PRE?(g+=1,d+=h(g),d+=`<node name="${y.name}" index="${y.phraseIndex}" length="${y.phraseLength}">
|
|
126
|
-
`,d+=h(g+2),d+=n.charsToString(o,y.phraseIndex,y.phraseLength),d+=`
|
|
127
|
-
`):(d+=h(g),d+=`</node><!-- name="${y.name}" -->
|
|
128
|
-
`,g-=1)}),d+=`</root>
|
|
129
|
-
`,d}},Vue=function(){const t=_t,r=ri,n="parser.js: Trace(): ";let i,s,a,o="",u=0;const c=100,l=this,f=d=>{let g="",y=0;if(d>=0)for(;d--;)y+=1,y===5?(g+="|",y=0):g+=".";return g};l.init=(d,g,y)=>{s=d,a=g,i=y};const h=d=>{let g;switch(d.type){case t.ALT:g="ALT";break;case t.CAT:g="CAT";break;case t.REP:d.max===1/0?g=`REP(${d.min},inf)`:g=`REP(${d.min},${d.max})`;break;case t.RNM:g=`RNM(${s[d.index].name})`;break;case t.TRG:g=`TRG(${d.min},${d.max})`;break;case t.TBS:d.string.length>6?g=`TBS(${r.charsToString(d.string,0,3)}...)`:g=`TBS(${r.charsToString(d.string,0,6)})`;break;case t.TLS:d.string.length>6?g=`TLS(${r.charsToString(d.string,0,3)}...)`:g=`TLS(${r.charsToString(d.string,0,6)})`;break;case t.UDT:g=`UDT(${a[d.index].name})`;break;case t.AND:g="AND";break;case t.NOT:g="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return g};l.down=(d,g)=>{const y=f(u),v=Math.min(c,i.length-g);let _=r.charsToString(i,g,v);v<i.length-g&&(_+="..."),_=`${y}|-|[${h(d)}]${_}
|
|
130
|
-
`,o+=_,u+=1},l.up=(d,g,y,v)=>{const _=`${n}trace.up: `;u-=1;const b=f(u);let S,w,E;switch(g){case t.EMPTY:E="|E|",w="''";break;case t.MATCH:E="|M|",S=Math.min(c,v),S<v?w=`'${r.charsToString(i,y,S)}...'`:w=`'${r.charsToString(i,y,S)}'`;break;case t.NOMATCH:E="|N|",w="";break;default:throw new Error(`${_} unrecognized state`)}w=`${b}${E}[${h(d)}]${w}
|
|
131
|
-
`,o+=w},l.displayTrace=()=>o},zue=function(){const t=_t,r="parser.js: Stats(): ";let n,i,s;const a=[],o=[],u=[];this.init=(v,_)=>{n=v,i=_,g()},this.collect=(v,_)=>{y(s,_.state,_.phraseLength),y(a[v.type],_.state,_.phraseLength),v.type===t.RNM&&y(o[v.index],_.state,_.phraseLength),v.type===t.UDT&&y(u[v.index],_.state,_.phraseLength)},this.displayStats=()=>{let v="";const _={match:0,empty:0,nomatch:0,total:0},b=(S,w,E,A,R)=>{_.match+=w,_.empty+=E,_.nomatch+=A,_.total+=R;const I=c(w),O=c(E),D=c(A),P=c(R);return`${S} | ${I} | ${O} | ${D} | ${P} |
|
|
132
|
-
`};return v+=` OPERATOR STATS
|
|
133
|
-
`,v+=` | MATCH | EMPTY | NOMATCH | TOTAL |
|
|
134
|
-
`,v+=b(" ALT",a[t.ALT].match,a[t.ALT].empty,a[t.ALT].nomatch,a[t.ALT].total),v+=b(" CAT",a[t.CAT].match,a[t.CAT].empty,a[t.CAT].nomatch,a[t.CAT].total),v+=b(" REP",a[t.REP].match,a[t.REP].empty,a[t.REP].nomatch,a[t.REP].total),v+=b(" RNM",a[t.RNM].match,a[t.RNM].empty,a[t.RNM].nomatch,a[t.RNM].total),v+=b(" TRG",a[t.TRG].match,a[t.TRG].empty,a[t.TRG].nomatch,a[t.TRG].total),v+=b(" TBS",a[t.TBS].match,a[t.TBS].empty,a[t.TBS].nomatch,a[t.TBS].total),v+=b(" TLS",a[t.TLS].match,a[t.TLS].empty,a[t.TLS].nomatch,a[t.TLS].total),v+=b(" UDT",a[t.UDT].match,a[t.UDT].empty,a[t.UDT].nomatch,a[t.UDT].total),v+=b(" AND",a[t.AND].match,a[t.AND].empty,a[t.AND].nomatch,a[t.AND].total),v+=b(" NOT",a[t.NOT].match,a[t.NOT].empty,a[t.NOT].nomatch,a[t.NOT].total),v+=b("TOTAL",_.match,_.empty,_.nomatch,_.total),v},this.displayHits=v=>{let _="";const b=(S,w,E,A,R)=>{s.match+=S,s.empty+=w,s.nomatch+=E,s.total+=A;const I=c(S),O=c(w),D=c(E),P=c(A);return`| ${I} | ${O} | ${D} | ${P} | ${R}
|
|
135
|
-
`};typeof v=="string"&&v.toLowerCase()[0]==="a"?(o.sort(l),u.sort(l),_+=` RULES/UDTS ALPHABETICALLY
|
|
136
|
-
`):typeof v=="string"&&v.toLowerCase()[0]==="i"?(o.sort(h),u.sort(h),_+=` RULES/UDTS BY INDEX
|
|
137
|
-
`):(o.sort(f),u.sort(f),_+=` RULES/UDTS BY HIT COUNT
|
|
138
|
-
`),_+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME
|
|
139
|
-
`;for(let S=0;S<o.length;S+=1){let w=o[S];w.total&&(_+=b(w.match,w.empty,w.nomatch,w.total,w.name))}for(let S=0;S<u.length;S+=1){let w=u[S];w.total&&(_+=b(w.match,w.empty,w.nomatch,w.total,w.name))}return _};const c=v=>v<10?` ${v}`:v<100?` ${v}`:v<1e3?` ${v}`:v<1e4?` ${v}`:v<1e5?` ${v}`:v<1e6?` ${v}`:`${v}`,l=(v,_)=>v.lower<_.lower?-1:v.lower>_.lower?1:0,f=(v,_)=>v.total<_.total?1:v.total>_.total?-1:l(v,_),h=(v,_)=>v.index<_.index?-1:v.index>_.index?1:0,d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},g=()=>{a.length=0,s=new d,a[t.ALT]=new d,a[t.CAT]=new d,a[t.REP]=new d,a[t.RNM]=new d,a[t.TRG]=new d,a[t.TBS]=new d,a[t.TLS]=new d,a[t.UDT]=new d,a[t.AND]=new d,a[t.NOT]=new d,o.length=0;for(let v=0;v<n.length;v+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:n[v].name,lower:n[v].lower,index:n[v].index});if(i.length>0){u.length=0;for(let v=0;v<i.length;v+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:i[v].name,lower:i[v].lower,index:i[v].index})}},y=(v,_)=>{switch(v.total+=1,_){case t.EMPTY:v.empty+=1;break;case t.MATCH:v.match+=1;break;case t.NOMATCH:v.nomatch+=1;break;default:throw new Error(`${r}collect(): incStat(): unrecognized state: ${_}`)}}},ri={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)}},_t={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 _t.ALT:return"ALT";case _t.CAT:return"CAT";case _t.REP:return"REP";case _t.RNM:return"RNM";case _t.TRG:return"TRG";case _t.TBS:return"TBS";case _t.TLS:return"TLS";case _t.UDT:return"UDT";case _t.AND:return"AND";case _t.NOT:return"NOT";case _t.ACTIVE:return"ACTIVE";case _t.EMPTY:return"EMPTY";case _t.MATCH:return"MATCH";case _t.NOMATCH:return"NOMATCH";case _t.SEM_PRE:return"SEM_PRE";case _t.SEM_POST:return"SEM_POST";case _t.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class ca extends Error{constructor(t,r=void 0){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.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
|
|
140
|
-
CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class V9 extends ca{}const _w=e=>(t,r,n,i,s)=>{if(!(typeof s=="object"&&s!==null&&!Array.isArray(s)))throw new V9("parser's user data must be an object");if(t===_t.SEM_PRE){const a={type:e,text:ri.charsToString(r,n,i),start:n,length:i,children:[]};s.stack.length>0?s.stack[s.stack.length-1].children.push(a):s.root=a,s.stack.push(a)}t===_t.SEM_POST&&s.stack.pop()};class Wue extends nR{constructor(){super(),this.callbacks["json-pointer"]=_w("json-pointer"),this.callbacks["reference-token"]=_w("reference-token"),this.callbacks.slash=_w("text")}getTree(){const t={stack:[],root:null};return this.translate(t),delete t.stack,t}}const Jue=e=>{if(typeof e!="string")throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};class Hue extends Wue{getTree(){const{root:t}=super.getTree();return t.children.filter(({type:r})=>r==="reference-token").map(({text:r})=>Jue(r))}}class Kue extends Array{toString(){return this.map(t=>`"${String(t)}"`).join(", ")}}class Gue extends Vue{inferExpectations(){const t=this.displayTrace().split(`
|
|
141
|
-
`),r=new Set;let n=-1;for(let i=0;i<t.length;i++){const s=t[i];if(s.includes("M|")){const a=s.match(/]'(.*)'$/);a&&a[1]&&(n=i)}if(i>n){const a=s.match(/N\|\[TLS\(([^)]+)\)]/);a&&r.add(a[1])}}return new Kue(...r)}}const Yue=new Vl,Xue=(e,{translator:t=new Hue,stats:r=!1,trace:n=!1}={})=>{if(typeof e!="string")throw new TypeError("JSON Pointer must be a string");try{const i=new Oi;t&&(i.ast=t),r&&(i.stats=new zue),n&&(i.trace=new Gue);const s=i.parse(Yue,"json-pointer",e);return{result:s,tree:s.success&&t?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(i){throw new V9("Unexpected error during JSON Pointer parsing",{cause:i,jsonPointer:e})}};new Vl;new Oi;new Vl;new Oi;const Zue=new Vl,Que=new Oi,ece=e=>{if(typeof e!="string")return!1;try{return Que.parse(Zue,"array-index",e).success}catch{return!1}},tce=new Vl,rce=new Oi,nce=e=>{if(typeof e!="string")return!1;try{return rce.parse(tce,"array-dash",e).success}catch{return!1}},ice=e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};class sce extends ca{}const z9=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return e.length===0?"":`/${e.map(t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return ice(String(t))}).join("/")}`}catch(t){throw new sce("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};var Hn,Yo,Xo;class ace{constructor(t,r={}){As(this,Hn);As(this,Yo);As(this,Xo);Io(this,Hn,t),hr(this,Hn).steps=[],hr(this,Hn).failed=!1,hr(this,Hn).failedAt=-1,hr(this,Hn).message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,hr(this,Hn).context={...r,realm:r.realm.name},Io(this,Yo,[]),Io(this,Xo,r.realm)}step({referenceToken:t,input:r,output:n,success:i=!0,reason:s}){const a=hr(this,Yo).length;hr(this,Yo).push(t);const o={referenceToken:t,referenceTokenPosition:a,input:r,inputType:hr(this,Xo).isObject(r)?"object":hr(this,Xo).isArray(r)?"array":"unrecognized",output:n,success:i};s&&(o.reason=s),hr(this,Hn).steps.push(o),i||(hr(this,Hn).failed=!0,hr(this,Hn).failedAt=a,hr(this,Hn).message=s)}}Hn=new WeakMap,Yo=new WeakMap,Xo=new WeakMap;class W9{constructor(){X(this,"name","")}isArray(t){throw new ca("Realm.isArray(node) must be implemented in a subclass")}isObject(t){throw new ca("Realm.isObject(node) must be implemented in a subclass")}sizeOf(t){throw new ca("Realm.sizeOf(node) must be implemented in a subclass")}has(t,r){throw new ca("Realm.has(node) must be implemented in a subclass")}evaluate(t,r){throw new ca("Realm.evaluate(node) must be implemented in a subclass")}}class Za extends ca{}class zo extends Za{}class oce extends W9{constructor(){super(...arguments);X(this,"name","json")}isArray(r){return Array.isArray(r)}isObject(r){return typeof r=="object"&&r!==null&&!this.isArray(r)}sizeOf(r){return this.isArray(r)?r.length:this.isObject(r)?Object.keys(r).length:0}has(r,n){if(this.isArray(r)){const i=Number(n),s=i>>>0;if(i!==s)throw new zo(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return s<this.sizeOf(r)&&Object.prototype.hasOwnProperty.call(r,i)}return this.isObject(r)?Object.prototype.hasOwnProperty.call(r,n):!1}evaluate(r,n){return this.isArray(r)?r[Number(n)]:r[n]}}class uce extends Za{}class J9 extends Za{}const cce=(e,t,{strictArrays:r=!0,strictObjects:n=!0,realm:i=new oce,trace:s=!0}={})=>{const{result:a,tree:o,trace:u}=Xue(t,{trace:!!s}),c=typeof s=="object"&&s!==null?new ace(s,{jsonPointer:t,referenceTokens:o,strictArrays:r,strictObjects:n,realm:i,value:e}):null;try{let l;if(!a.success){let f=`Invalid JSON Pointer: "${t}". Syntax error at position ${a.maxMatched}`;throw f+=u?`, expected ${u.inferExpectations()}`:"",new Za(f,{jsonPointer:t,currentValue:e,realm:i.name})}return o.reduce((f,h,d)=>{if(i.isArray(f)){if(nce(h)){if(r)throw new zo(`Invalid array index "-" at position ${d} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,String(i.sizeOf(f))),c==null||c.step({referenceToken:h,input:f,output:l}),l}if(!ece(h))throw new zo(`Invalid array index "${h}" at position ${d} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});const g=Number(h);if(!Number.isSafeInteger(g))throw new zo(`Invalid array index "${h}" at position ${d} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});if(!i.has(f,h)&&r)throw new zo(`Invalid array index "${h}" at position ${d} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,h),c==null||c.step({referenceToken:h,input:f,output:l}),l}if(i.isObject(f)){if(!i.has(f,h)&&n)throw new J9(`Invalid object key "${h}" at position ${d} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,h),c==null||c.step({referenceToken:h,input:f,output:l}),l}throw new uce(`Invalid reference token "${h}" at position ${d} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name})},e)}catch(l){throw c==null||c.step({referenceToken:l.referenceToken,input:l.currentValue,success:!1,reason:l.message}),l instanceof Za?l:new Za("Unexpected error during JSON Pointer evaluation",{cause:l,jsonPointer:t,referenceTokens:o})}};class lce extends W9{constructor(){super(...arguments);X(this,"name","apidom")}isArray(r){return tn(r)}isObject(r){return Dt(r)}sizeOf(r){return this.isArray(r)||this.isObject(r)?r.length:0}has(r,n){if(this.isArray(r)){const i=Number(n),s=i>>>0;if(i!==s)throw new zo(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return s<this.sizeOf(r)}if(this.isObject(r)){const i=r.keys(),s=new Set(i);if(i.length!==s.size)throw new J9(`Object key "${n}" is not unique — JSON Pointer requires unique member names`,{referenceToken:n,currentValue:r,realm:this.name});return r.hasKey(n)}return!1}evaluate(r,n){return this.isArray(r)?r.get(Number(n)):r.get(n)}}const Di=(e,t,r={})=>cce(e,t,{...r,realm:new lce});class iR extends ioe{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 $h(this.filterByFormat(t))}}const du=new iR("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 zl=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="callback"}},Wl=class extends ve.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)}},Jl=class extends ve.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)}},Hl=class extends ve.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)}},Zh=class extends ve.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)}},Kl=class extends ve.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)}},Gl=class extends ve.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)}},Mu=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ve.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ve.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(Mu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Yl=class extends ve.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)}},Xl=class extends ve.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)}},Zl=class extends ve.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(ft(this.operationRef)){var t;return(t=this.operationRef)===null||t===void 0?void 0:t.meta.get("operation")}if(ft(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)}},Ql=class extends ve.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)}},Qh=class extends ve.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)}},em=class extends ve.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)}},ef=class extends ve.StringElement{constructor(t,r,n){super(t,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class tm extends ve.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 tf=class extends ve.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 ve.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)}},Du=class extends ve.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 ve.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ve.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(Du.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let rf=class extends ve.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)}},nf=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="paths"}},sf=class extends ve.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)}},af=class extends ve.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 ve.BooleanElement(!1)}set required(t){this.set("required",t)}},of=class extends ve.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)}},uf=class extends ve.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)}},qu=class extends ve.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 Fu extends ve.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 cf extends ve.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 lf=class extends ve.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 fce={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",qu),t.register("jSONReference",Fu),t.register("media",cf),t.register("linkDescription",lf),t}},ff=e=>{if(Or(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},pce={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...gs};let H9=class{constructor(t){X(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=vi(r.meta,t.meta),Ll(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=vi(r.attributes,t.attributes))}},qt=class extends H9{enter(t){return this.element=Ye(t),It}};const K9=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let i of r)delete n[i];Object.defineProperties(e,n)},Uc=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return r===null?t:Uc(r,[...t,r])},dce=(...e)=>{if(e.length===0)return;let t;const r=e.map(n=>Uc(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},oL=(e,t,r=[])=>{var n;const i=(n=dce(...e))!==null&&n!==void 0?n:Object.prototype,s=Object.create(i),a=Uc(i);for(let o of e){let u=Uc(o);for(let c=u.length-1;c>=0;c--){let l=u[c];a.indexOf(l)===-1&&(K9(s,l,["constructor",...r]),a.push(l))}}return s.constructor=t,s},sA=e=>e.filter((t,r)=>e.indexOf(t)==r),G9=new WeakMap,hce=e=>G9.get(e),mce=(e,t)=>G9.set(e,t),uL=(e,t)=>{var r,n;const i=sA([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of i)s[a]=sA([...(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},cL=(e,t)=>{var r,n,i,s;return{property:uL((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:uL((i=e==null?void 0:e.method)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.method)!==null&&s!==void 0?s:{})}},gce=(e,t)=>{var r,n,i,s,a,o;return{class:sA([...(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:cL((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:cL((a=e==null?void 0:e.instance)!==null&&a!==void 0?a:{},(o=t==null?void 0:t.instance)!==null&&o!==void 0?o:{})}},yce=new Map,vce=(...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let i of n){const s=Uc(i.prototype).map(c=>c.constructor),a=(t=hce(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]},bce=(...e)=>{const t=vce(...e).map(r=>yce.get(r)).filter(r=>!!r);return t.length==0?{}:t.length==1?t[0]:t.reduce((r,n)=>gce(r,n))};function Le(...e){var t,r,n;const i=e.map(o=>o.prototype);function s(...o){for(const u of e)K9(this,new u(...o))}s.prototype=oL(i,s),Object.setPrototypeOf(s,oL(e,null,["prototype"]));let a=s;{const o=bce(...e);for(let u of(t=o==null?void 0:o.class)!==null&&t!==void 0?t:[]){const c=u(a);c&&(a=c)}lL((r=o==null?void 0:o.static)!==null&&r!==void 0?r:{},a),lL((n=o==null?void 0:o.instance)!==null&&n!==void 0?n:{},a.prototype)}return mce(a,e),a}const lL=(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 ni=class extends H9{constructor({specObj:r,...n}){super({...n});X(this,"specObj");X(this,"passingOptionsNames",["specObj","parent"]);this.specObj=r}retrievePassingOptions(){return x5(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=zr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return Bh(yo,["visitors",...r],this.specObj)?zr(["visitors",...r],this.specObj):zr(["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 qt&&(s==null?void 0:s.constructor)===qt?Ye(n):(Nr(n,s,i),s.element)}},to=class extends ni{constructor({specPath:r,ignoredFields:n,...i}){super({...i});X(this,"specPath");X(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(ft(a)&&i.includes(Pe(a))&&!this.ignoredFields.includes(Pe(a))){const u=this.toRefractedElement([...n,"fixedFields",Pe(a)],s),c=new ve.MemberElement(Ye(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else this.ignoredFields.includes(Pe(a))||this.element.content.push(Ye(o))}),this.copyMetaAndAttributes(r,this.element),It}};class Mr{constructor({parent:t}){X(this,"parent");this.parent=t}}const Y9=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n)),sR=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fu||e(n)&&t("JSONReference",n)&&r("object",n)),X9=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cf||e(n)&&t("media",n)&&r("object",n)),_ce=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lf||e(n)&&t("linkDescription",n)&&r("object",n)),Ece=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:sR,isJSONSchemaElement:Y9,isLinkDescriptionElement:_ce,isMediaElement:X9},Symbol.toStringTag,{value:"Module"}));let Z9=class extends Le(to,Mr,qt){constructor(t){super(t),this.element=new qu,this.specPath=ct(["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,to.prototype.ObjectElement.call(this,t)}handleDialectIdentifier(t){if(Ca(this.parent)&&!ft(t.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Y9(this.parent)&&!ft(t.get("$schema"))){const r=cu(Pe(this.parent.meta.get("inheritedDialectIdentifier")),Pe(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(t,r="id"){const n=this.parent!==void 0?Ye(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ve.ArrayElement,i=Pe(t.get(r));Vh(i)&&n.push(i),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const fs=e=>Dt(e)&&e.hasKey("$ref");let Q9=class extends Le(ni,Mr,qt){ObjectElement(t){const r=fs(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,t),It}ArrayElement(t){return this.element=new ve.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}};class Sce extends qt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-required"),r}}let wce=class extends ni{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,...s}){super({...s});X(this,"specPath");X(this,"ignoredFields");X(this,"fieldPatternPredicate",_C);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i)}ObjectElement(r){return r.forEach((n,i,s)=>{if(!this.ignoredFields.includes(Pe(i))&&this.fieldPatternPredicate(Pe(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ve.MemberElement(Ye(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(Pe(i))||this.element.content.push(Ye(s))}),this.copyMetaAndAttributes(r,this.element),It}},Ta=class extends wce{constructor(t){super(t),this.fieldPatternPredicate=Vh}},xce=class extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},Ace=class extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class Oce extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class Cce extends qt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-enum"),r}}let Rce=class extends qt{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}},Tce=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}},Ice=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}},jce=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}};class Pce extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let kce=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.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),It}};class Nce extends Le(to,qt){constructor(t){super(t),this.element=new Fu,this.specPath=ct(["document","objects","JSONReference"])}ObjectElement(t){const r=to.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let Mce=class extends qt{StringElement(t){const r=this.enter(t);return this.element.classes.push("reference-value"),r}},Dce=class extends ni{constructor({alternator:r,...n}){super({...n});X(this,"alternator");this.alternator=r}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>IC(s,ct(a),Uh)),i=N5(n)(r);return this.element=this.toRefractedElement(i,r),It}},No=class extends Dce{constructor(t){super(t),this.alternator=[{predicate:fs,specPath:["document","objects","JSONReference"]},{predicate:Us,specPath:["document","objects","JSONSchema"]}]}};class qce extends Le(to,qt){constructor(t){super(t),this.element=new cf,this.specPath=ct(["document","objects","Media"])}}let e7=class extends Le(to,qt){constructor(t){super(t),this.element=new lf,this.specPath=ct(["document","objects","LinkDescription"])}};const Yr={visitors:{value:qt,JSONSchemaOrJSONReferenceVisitor:No,document:{objects:{JSONSchema:{$visitor:Z9,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:No,items:Q9,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Sce,properties:xce,additionalProperties:No,patternProperties:Ace,dependencies:Oce,enum:Cce,type:Rce,allOf:Tce,anyOf:Ice,oneOf:jce,not:No,definitions:Pce,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:kce,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Nce,fixedFields:{$ref:Mce}},Media:{$visitor:qce,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:e7,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:No,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:No}}}}}},Fce=()=>{const e=zs(fce);return{predicates:{...Ece,isStringElement:ft},namespace:e}},$ce=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Yr}={})=>{const i=ve.refract(e),s=Ra(n),a=zr(t,s),o=new a({specObj:s});return Nr(i,o),ys(o.element,r,{toolboxCreator:Fce,visitorOptions:{keyMap:pce,nodeTypeGetter:ff}})},rm=e=>(t,r={})=>$ce(t,{specPath:e,...r});qu.refract=rm(["visitors","document","objects","JSONSchema","$visitor"]);Fu.refract=rm(["visitors","document","objects","JSONReference","$visitor"]);cf.refract=rm(["visitors","document","objects","Media","$visitor"]);lf.refract=rm(["visitors","document","objects","LinkDescription","$visitor"]);let nm=class extends qu{constructor(t,r,n){super(t,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new At("idProp getter in Schema class is not not supported.")}set idProp(t){throw new At("idProp setter in Schema class is not not supported.")}get $schema(){throw new At("$schema getter in Schema class is not not supported.")}set $schema(t){throw new At("$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 At("patternProperties getter in Schema class is not not supported.")}set patternProperties(t){throw new At("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new At("dependencies getter in Schema class is not not supported.")}set dependencies(t){throw new At("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 At("definitions getter in Schema class is not not supported.")}set definitions(t){throw new At("definitions setter in Schema class is not not supported.")}get base(){throw new At("base getter in Schema class is not not supported.")}set base(t){throw new At("base setter in Schema class is not not supported.")}get links(){throw new At("links getter in Schema class is not not supported.")}set links(t){throw new At("links setter in Schema class is not not supported.")}get media(){throw new At("media getter in Schema class is not not supported.")}set media(t){throw new At("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)}},pf=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityRequirement"}},df=class extends ve.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)}},hf=class extends ve.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)}},mf=class extends ve.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)}},im=class extends ve.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)}},sm=class extends ve.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 Lce={namespace:e=>{const{base:t}=e;return t.register("callback",zl),t.register("components",Wl),t.register("contact",Jl),t.register("discriminator",Hl),t.register("encoding",Zh),t.register("example",Kl),t.register("externalDocumentation",Gl),t.register("header",Mu),t.register("info",Yl),t.register("license",Xl),t.register("link",Zl),t.register("mediaType",Ql),t.register("oAuthFlow",Qh),t.register("oAuthFlows",em),t.register("openapi",ef),t.register("openApi3_0",tm),t.register("operation",tf),t.register("parameter",Du),t.register("pathItem",rf),t.register("paths",nf),t.register("reference",sf),t.register("requestBody",af),t.register("response",of),t.register("responses",uf),t.register("schema",nm),t.register("securityRequirement",pf),t.register("securityScheme",df),t.register("server",hf),t.register("serverVariable",mf),t.register("tag",im),t.register("xml",sm),t}},xd=class xd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(xd.primaryClass)}};X(xd,"primaryClass","servers");let dd=xd;const Ad=class Ad extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ad.primaryClass)}};X(Ad,"primaryClass","security");let aA=Ad;const Od=class Od extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Od.primaryClass)}};X(Od,"primaryClass","tags");let oA=Od;const Cd=class Cd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Cd.primaryClass)}};X(Cd,"primaryClass","server-variables");let uA=Cd;const Rd=class Rd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Rd.primaryClass)}};X(Rd,"primaryClass","components-schemas");let hd=Rd;const Td=class Td extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Td.primaryClass)}};X(Td,"primaryClass","components-responses");let cA=Td;const Id=class Id extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Id.primaryClass),this.classes.push("parameters")}};X(Id,"primaryClass","components-parameters");let lA=Id;const jd=class jd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(jd.primaryClass),this.classes.push("examples")}};X(jd,"primaryClass","components-examples");let fA=jd;const Pd=class Pd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Pd.primaryClass)}};X(Pd,"primaryClass","components-request-bodies");let pA=Pd;const kd=class kd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(kd.primaryClass)}};X(kd,"primaryClass","components-headers");let dA=kd;const Nd=class Nd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Nd.primaryClass)}};X(Nd,"primaryClass","components-security-schemes");let hA=Nd;const Md=class Md extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Md.primaryClass)}};X(Md,"primaryClass","components-links");let mA=Md;const Dd=class Dd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Dd.primaryClass)}};X(Dd,"primaryClass","components-callbacks");let gA=Dd;const qd=class qd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(qd.primaryClass),this.classes.push("servers")}};X(qd,"primaryClass","path-item-servers");let yA=qd;const Fd=class Fd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Fd.primaryClass),this.classes.push("parameters")}};X(Fd,"primaryClass","path-item-parameters");let vA=Fd;const $d=class $d extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push($d.primaryClass),this.classes.push("parameters")}};X($d,"primaryClass","operation-parameters");let md=$d;const Ld=class Ld extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ld.primaryClass),this.classes.push("examples")}};X(Ld,"primaryClass","parameter-examples");let bA=Ld;const Bd=class Bd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Bd.primaryClass),this.classes.push("content")}};X(Bd,"primaryClass","parameter-content");let _A=Bd;const Ud=class Ud extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ud.primaryClass)}};X(Ud,"primaryClass","operation-tags");let EA=Ud;const Vd=class Vd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Vd.primaryClass)}};X(Vd,"primaryClass","operation-callbacks");let SA=Vd;const zd=class zd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(zd.primaryClass),this.classes.push("security")}};X(zd,"primaryClass","operation-security");let gd=zd;var Ja;let Bce=(Ja=class extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ja.primaryClass),this.classes.push("servers")}},X(Ja,"primaryClass","operation-servers"),Ja);const Wd=class Wd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Wd.primaryClass),this.classes.push("content")}};X(Wd,"primaryClass","request-body-content");let wA=Wd;const Jd=class Jd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Jd.primaryClass),this.classes.push("examples")}};X(Jd,"primaryClass","media-type-examples");let xA=Jd;const Hd=class Hd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Hd.primaryClass)}};X(Hd,"primaryClass","media-type-encoding");let AA=Hd;const Kd=class Kd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Kd.primaryClass)}};X(Kd,"primaryClass","encoding-headers");let OA=Kd;const Gd=class Gd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Gd.primaryClass)}};X(Gd,"primaryClass","response-headers");let CA=Gd;const Yd=class Yd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Yd.primaryClass),this.classes.push("content")}};X(Yd,"primaryClass","response-content");let RA=Yd;const Xd=class Xd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Xd.primaryClass)}};X(Xd,"primaryClass","response-links");let TA=Xd;const Zd=class Zd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Zd.primaryClass)}};X(Zd,"primaryClass","discriminator-mapping");let IA=Zd;const Qd=class Qd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Qd.primaryClass)}};X(Qd,"primaryClass","oauth-flow-scopes");let jA=Qd;const eh=class eh extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(eh.primaryClass)}};X(eh,"primaryClass","link-parameters");let PA=eh;const th=class th extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(th.primaryClass),this.classes.push("examples")}};X(th,"primaryClass","header-examples");let kA=th;const rh=class rh extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(rh.primaryClass),this.classes.push("content")}};X(rh,"primaryClass","header-content");let NA=rh;const Uce=e=>{if(Or(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Vce={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"],...gs};class t7{constructor(t={}){X(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=vi(r.meta,t.meta),Ll(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=vi(r.attributes,t.attributes))}}class ze extends t7{enter(t){return this.element=Ye(t),It}}class Hi extends t7{constructor({specObj:r,passingOptionsNames:n,openApiGenericElement:i,openApiSemanticElement:s,...a}){super({...a});X(this,"specObj");X(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);X(this,"openApiGenericElement");X(this,"openApiSemanticElement");this.specObj=r,this.openApiGenericElement=i,this.openApiSemanticElement=s,Array.isArray(n)&&(this.passingOptionsNames=n)}retrievePassingOptions(){return x5(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=zr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return Bh(yo,["visitors",...r],this.specObj)?zr(["visitors",...r],this.specObj):zr(["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 ze&&(s==null?void 0:s.constructor)===ze?Ye(n):(Nr(n,s,i),s.element)}}const or=e=>Dt(e)&&e.hasKey("$ref"),zce=Dt,Wce=Dt,r7=e=>ft(e.key)&&kse("x-",Pe(e.key));class Et extends Hi{constructor({specPath:r,ignoredFields:n,canSupportSpecificationExtensions:i,specificationExtensionPredicate:s,...a}){super({...a});X(this,"specPath");X(this,"ignoredFields");X(this,"canSupportSpecificationExtensions",!0);X(this,"specificationExtensionPredicate",r7);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(ft(a)&&i.includes(Pe(a))&&!this.ignoredFields.includes(Pe(a))){const u=this.toRefractedElement([...n,"fixedFields",Pe(a)],s),c=new ve.MemberElement(Ye(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(Pe(a))||this.element.content.push(Ye(o))}),this.copyMetaAndAttributes(r,this.element),It}}class Jce extends Le(Et,ze){constructor(t){super(t),this.element=new tm,this.specPath=ct(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){return Et.prototype.ObjectElement.call(this,t)}}class Hce extends Le(Hi,ze){StringElement(t){const r=new ef(Pe(t));return this.copyMetaAndAttributes(t,r),this.element=r,It}}class Kce extends Hi{MemberElement(t){return this.element=Ye(t),this.element.classes.push("specification-extension"),It}}let Gce=class extends Le(Et,ze){constructor(t){super(t),this.element=new Yl,this.specPath=ct(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class Yce extends ze{StringElement(t){const r=super.enter(t);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let Xce=class extends Le(Et,ze){constructor(t){super(t),this.element=new Jl,this.specPath=ct(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},Zce=class extends Le(Et,ze){constructor(t){super(t),this.element=new Xl,this.specPath=ct(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},Qce=class extends Le(Et,ze){constructor(t){super(t),this.element=new Zl,this.specPath=ct(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return(ft(this.element.operationId)||ft(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class ele extends ze{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class tle extends ze{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class hu extends Hi{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,canSupportSpecificationExtensions:s,specificationExtensionPredicate:a,...o}){super({...o});X(this,"specPath");X(this,"ignoredFields");X(this,"fieldPatternPredicate",_C);X(this,"canSupportSpecificationExtensions",!1);X(this,"specificationExtensionPredicate",r7);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(Pe(i))&&this.fieldPatternPredicate(Pe(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ve.MemberElement(Ye(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(Pe(i))||this.element.content.push(Ye(s))}),this.copyMetaAndAttributes(r,this.element),It}}class yt extends hu{constructor(t){super(t),this.fieldPatternPredicate=Vh}}let rle=class extends Le(yt,ze){constructor(t){super(t),this.element=new PA,this.specPath=ct(["value"])}},nle=class extends Le(Et,ze){constructor(t){super(t),this.element=new hf,this.specPath=ct(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class ile extends ze{StringElement(t){const r=super.enter(t);return this.element.classes.push("server-url"),r}}let aR=class extends Le(Hi,ze){constructor(t){super(t),this.element=new dd}ArrayElement(t){return t.forEach(r=>{const n=zce(r)?["document","objects","Server"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}},sle=class extends Le(Et,ze){constructor(t){super(t),this.element=new mf,this.specPath=ct(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class ale extends Le(yt,ze){constructor(t){super(t),this.element=new uA,this.specPath=ct(["document","objects","ServerVariable"])}}let ole=class extends Le(Et,ze){constructor(t){super(t),this.element=new Ql,this.specPath=ct(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class ps extends Hi{constructor({alternator:r,...n}){super({...n});X(this,"alternator");this.alternator=r||[]}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>IC(s,ct(a),Uh)),i=N5(n)(r);return this.element=this.toRefractedElement(i,r),It}}const ule=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zl||e(n)&&t("callback",n)&&r("object",n)),cle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wl||e(n)&&t("components",n)&&r("object",n)),lle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jl||e(n)&&t("contact",n)&&r("object",n)),fle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kl||e(n)&&t("example",n)&&r("object",n)),ple=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("externalDocumentation",n)&&r("object",n)),$u=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mu||e(n)&&t("header",n)&&r("object",n)),dle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yl||e(n)&&t("info",n)&&r("object",n)),hle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xl||e(n)&&t("license",n)&&r("object",n)),mle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zl||e(n)&&t("link",n)&&r("object",n)),gle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ef||e(n)&&t("openapi",n)&&r("string",n)),yle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof tm||e(i)&&t("openApi3_0",i)&&r("object",i)&&n("api",i)),n7=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tf||e(n)&&t("operation",n)&&r("object",n)),vle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Du||e(n)&&t("parameter",n)&&r("object",n)),oR=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rf||e(n)&&t("pathItem",n)&&r("object",n)),ble=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nf||e(n)&&t("paths",n)&&r("object",n)),Qt=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sf||e(n)&&t("reference",n)&&r("object",n)),_le=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof af||e(n)&&t("requestBody",n)&&r("object",n)),am=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof of||e(n)&&t("response",n)&&r("object",n)),Ele=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uf||e(n)&&t("responses",n)&&r("object",n)),Sle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nm||e(n)&&t("schema",n)&&r("object",n)),wle=e=>$l(e)&&e.classes.includes("boolean-json-schema"),xle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pf||e(n)&&t("securityRequirement",n)&&r("object",n)),Ale=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof df||e(n)&&t("securityScheme",n)&&r("object",n)),Ole=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hf||e(n)&&t("server",n)&&r("object",n)),Cle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mf||e(n)&&t("serverVariable",n)&&r("object",n)),om=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("mediaType",n)&&r("object",n)),i7=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof dd||e(i)&&t("array",i)&&r("array",i)&&n("servers",i)),Rle=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("discriminator",n)&&r("object",n)),Tle=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:wle,isCallbackElement:ule,isComponentsElement:cle,isContactElement:lle,isDiscriminatorElement:Rle,isExampleElement:fle,isExternalDocumentationElement:ple,isHeaderElement:$u,isInfoElement:dle,isLicenseElement:hle,isLinkElement:mle,isMediaTypeElement:om,isOpenApi3_0Element:yle,isOpenapiElement:gle,isOperationElement:n7,isParameterElement:vle,isPathItemElement:oR,isPathsElement:ble,isReferenceElement:Qt,isRequestBodyElement:_le,isResponseElement:am,isResponsesElement:Ele,isSchemaElement:Sle,isSecurityRequirementElement:xle,isSecuritySchemeElement:Ale,isServerElement:Ole,isServerVariableElement:Cle,isServersElement:i7},Symbol.toStringTag,{value:"Module"}));let Ile=class extends Le(ps,ze){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Qt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},uR=class extends Le(yt,ze){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("examples"),this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},jle=class extends uR{constructor(t){super(t),this.element=new xA}},Ple=class extends Le(yt,ze){constructor(t){super(t),this.element=new AA,this.specPath=ct(["document","objects","Encoding"])}},kle=class extends Le(yt,ze){constructor(t){super(t),this.element=new pf,this.specPath=ct(["value"])}},Nle=class extends Le(Hi,ze){constructor(t){super(t),this.element=new aA}ArrayElement(t){return t.forEach(r=>{if(Dt(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Ye(r))}),this.copyMetaAndAttributes(t,this.element),It}},Mle=class extends Le(Et,ze){constructor(t){super(t),this.element=new Wl,this.specPath=ct(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},Dle=class extends Le(Et,ze){constructor(t){super(t),this.element=new im,this.specPath=ct(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},qle=class extends Le(Et,ze){constructor(t){super(t),this.element=new sf,this.specPath=ct(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&this.element.classes.push("reference-element"),r}},Fle=class extends ze{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}},$le=class extends Le(Et,ze){constructor(t){super(t),this.element=new Du,this.specPath=ct(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.contentProp)&&this.element.contentProp.filter(om).forEach((n,i)=>{n.setMetaProperty("media-type",Pe(i))}),r}},Lle=class extends Le(ps,ze){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Qt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Ble=class extends Le(Et,ze){constructor(t){super(t),this.element=new Mu,this.specPath=ct(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},Ule=class extends Le(ps,ze){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Qt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Vle=class extends uR{constructor(t){super(t),this.element=new kA}},um=class extends Le(yt,ze){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("content"),this.specPath=ct(["document","objects","MediaType"])}},zle=class extends um{constructor(t){super(t),this.element=new NA}},Wle=class extends Le(Et,ze){constructor(t){super(t),this.element=new nm,this.specPath=ct(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const fL=Yr.visitors.document.objects.JSONSchema.fixedFields.allOf;let Jle=class extends fL{ArrayElement(t){const r=fL.prototype.ArrayElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const pL=Yr.visitors.document.objects.JSONSchema.fixedFields.anyOf;let Hle=class extends pL{ArrayElement(t){const r=pL.prototype.ArrayElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const dL=Yr.visitors.document.objects.JSONSchema.fixedFields.oneOf;let Kle=class extends dL{ArrayElement(t){const r=dL.prototype.ArrayElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const hL=Yr.visitors.document.objects.JSONSchema.fixedFields.items;let Gle=class extends hL{ObjectElement(t){const r=hL.prototype.ObjectElement.call(this,t);return Qt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(t){return this.enter(t)}};const mL=Yr.visitors.document.objects.JSONSchema.fixedFields.properties;let Yle=class extends mL{ObjectElement(t){const r=mL.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const Xle=Yr.visitors.document.objects.JSONSchema.fixedFields.type;class Zle extends Xle{ArrayElement(t){return this.enter(t)}}const gL=Yr.visitors.JSONSchemaOrJSONReferenceVisitor;class yL extends gL{ObjectElement(t){const r=gL.prototype.enter.call(this,t);return Qt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let Qle=class extends Le(Et,ze){constructor(t){super(t),this.element=new Hl,this.specPath=ct(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class efe extends Le(yt,ze){constructor(t){super(t),this.element=new IA,this.specPath=ct(["value"])}}let tfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new sm,this.specPath=ct(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},rfe=class extends uR{constructor(t){super(t),this.element=new bA}},nfe=class extends um{constructor(t){super(t),this.element=new _A}},ife=class extends Le(yt,ze){constructor(t){super(t),this.element=new hd,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},sfe=class extends Le(yt,ze){constructor(t){super(t),this.element=new cA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(am).forEach((n,i)=>{n.setMetaProperty("http-status-code",Pe(i))}),r}},afe=class extends Le(yt,ze){constructor(t){super(t),this.element=new lA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},ofe=class extends Le(yt,ze){constructor(t){super(t),this.element=new fA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class ufe extends Le(yt,ze){constructor(t){super(t),this.element=new pA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let cfe=class extends Le(yt,ze){constructor(t){super(t),this.element=new dA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter($u).forEach((n,i)=>{n.setMetaProperty("header-name",Pe(i))}),r}};class lfe extends Le(yt,ze){constructor(t){super(t),this.element=new hA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let ffe=class extends Le(yt,ze){constructor(t){super(t),this.element=new mA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},pfe=class extends Le(yt,ze){constructor(t){super(t),this.element=new gA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},dfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new Kl,this.specPath=ct(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return ft(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class hfe extends ze{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let mfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new Gl,this.specPath=ct(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},gfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new Zh,this.specPath=ct(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.headers)&&this.element.headers.filter($u).forEach((n,i)=>{n.setMetaProperty("header-name",Pe(i))}),r}},yfe=class extends Le(yt,ze){constructor(t){super(t),this.element=new OA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!$u(n))return;const s=Pe(i);n.setMetaProperty("headerName",s)}),r}},vfe=class extends Le(hu,ze){constructor(t){super(t),this.element=new nf,this.specPath=ct(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Us}ObjectElement(t){const r=hu.prototype.ObjectElement.call(this,t);return this.element.filter(oR).forEach((n,i)=>{i.classes.push("openapi-path-template"),i.classes.push("path-template"),n.setMetaProperty("path",Ye(i))}),r}},bfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new af,this.specPath=ct(["document","objects","RequestBody"])}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.contentProp)&&this.element.contentProp.filter(om).forEach((n,i)=>{n.setMetaProperty("media-type",Pe(i))}),r}},_fe=class extends um{constructor(t){super(t),this.element=new wA}},Efe=class extends Le(hu,ze){constructor(t){super(t),this.element=new zl,this.specPath=ct(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(oR).forEach((n,i)=>{n.setMetaProperty("runtime-expression",Pe(i))}),r}},Sfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new of,this.specPath=ct(["document","objects","Response"])}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.contentProp)&&this.element.contentProp.filter(om).forEach((n,i)=>{n.setMetaProperty("media-type",Pe(i))}),Dt(this.element.headers)&&this.element.headers.filter($u).forEach((n,i)=>{n.setMetaProperty("header-name",Pe(i))}),r}};class wfe extends Le(yt,ze){constructor(t){super(t),this.element=new CA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!$u(n))return;const s=Pe(i);n.setMetaProperty("header-name",s)}),r}}class xfe extends um{constructor(t){super(t),this.element=new RA}}class Afe extends Le(yt,ze){constructor(t){super(t),this.element=new TA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class vL extends Le(Et,hu){constructor({specPathFixedFields:r,specPathPatternedFields:n,...i}){super({...i});X(this,"specPathFixedFields");X(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,...ese(r.keys(),s)],Et.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,hu.prototype.ObjectElement.call(this,r)}catch(s){throw this.specPath=n,s}return It}}let Ofe=class extends Le(vL,ze){constructor(t){super(t),this.element=new uf,this.specPathFixedFields=ct(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>or(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ise(100,600).join("|")})$`).test(String(r))}ObjectElement(t){const r=vL.prototype.ObjectElement.call(this,t);return this.element.filter(Qt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(am).forEach((n,i)=>{const s=Ye(i);this.fieldPatternPredicate(Pe(s))&&n.setMetaProperty("http-status-code",s)}),r}};class Cfe extends Le(ps,ze){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Response"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Qt(this.element)?this.element.setMetaProperty("referenced-element","response"):am(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let Rfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new tf,this.specPath=ct(["document","objects","Operation"])}},Tfe=class extends ze{constructor(t){super(t),this.element=new EA}ArrayElement(t){return this.element=this.element.concat(Ye(t)),It}},s7=class extends Le(Hi,ze){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("parameters")}ArrayElement(t){return t.forEach(r=>{const n=or(r)?["document","objects","Reference"]:["document","objects","Parameter"],i=this.toRefractedElement(n,r);Qt(i)&&i.setMetaProperty("referenced-element","parameter"),this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}},Ife=class extends s7{constructor(t){super(t),this.element=new md}},jfe=class extends ps{constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","RequestBody"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Qt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class Pfe extends Le(yt,ze){constructor(r){super(r);X(this,"specPath");this.element=new SA,this.specPath=n=>or(n)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const n=yt.prototype.ObjectElement.call(this,r);return this.element.filter(Qt).forEach(i=>{i.setMetaProperty("referenced-element","callback")}),n}}class kfe extends Le(Hi,ze){constructor(t){super(t),this.element=new gd}ArrayElement(t){return t.forEach(r=>{const n=Dt(r)?["document","objects","SecurityRequirement"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}}let Nfe=class extends aR{constructor(t){super(t),this.element=new Bce}},Mfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new rf,this.specPath=ct(["document","objects","PathItem"])}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return this.element.filter(n7).forEach((n,i)=>{const s=Ye(i);s.content=Pe(s).toUpperCase(),n.setMetaProperty("http-method",s)}),ft(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class Dfe extends ze{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class qfe extends aR{constructor(t){super(t),this.element=new yA}}class Ffe extends s7{constructor(t){super(t),this.element=new vA}}let $fe=class extends Le(Et,ze){constructor(t){super(t),this.element=new df,this.specPath=ct(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},Lfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new em,this.specPath=ct(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},Bfe=class extends Le(Et,ze){constructor(t){super(t),this.element=new Qh,this.specPath=ct(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class Ufe extends Le(yt,ze){constructor(t){super(t),this.element=new jA,this.specPath=ct(["value"])}}class Vfe extends Le(Hi,ze){constructor(t){super(t),this.element=new oA}ArrayElement(t){return t.forEach(r=>{const n=Wce(r)?["document","objects","Tag"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),It}}const{fixedFields:qr}=Yr.visitors.document.objects.JSONSchema,Se={visitors:{value:ze,document:{objects:{OpenApi:{$visitor:Jce,fixedFields:{openapi:Hce,info:{$ref:"#/visitors/document/objects/Info"},servers:aR,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Nle,tags:Vfe,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Gce,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:Yce}},Contact:{$visitor:Xce,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Zce,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:nle,fixedFields:{url:ile,description:{$ref:"#/visitors/value"},variables:ale}},ServerVariable:{$visitor:sle,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Mle,fixedFields:{schemas:ife,responses:sfe,parameters:afe,examples:ofe,requestBodies:ufe,headers:cfe,securitySchemes:lfe,links:ffe,callbacks:pfe}},Paths:{$visitor:vfe},PathItem:{$visitor:Mfe,fixedFields:{$ref:Dfe,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:qfe,parameters:Ffe}},Operation:{$visitor:Rfe,fixedFields:{tags:Tfe,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Ife,requestBody:jfe,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Pfe,deprecated:{$ref:"#/visitors/value"},security:kfe,servers:Nfe}},ExternalDocumentation:{$visitor:mfe,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:$le,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:Lle,example:{$ref:"#/visitors/value"},examples:rfe,content:nfe}},RequestBody:{$visitor:bfe,fixedFields:{description:{$ref:"#/visitors/value"},content:_fe,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ole,fixedFields:{schema:Ile,example:{$ref:"#/visitors/value"},examples:jle,encoding:Ple}},Encoding:{$visitor:gfe,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:yfe,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Ofe,fixedFields:{default:Cfe}},Response:{$visitor:Sfe,fixedFields:{description:{$ref:"#/visitors/value"},headers:wfe,content:xfe,links:Afe}},Callback:{$visitor:Efe},Example:{$visitor:dfe,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:hfe}},Link:{$visitor:Qce,fixedFields:{operationRef:ele,operationId:tle,parameters:rle,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ble,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:Ule,example:{$ref:"#/visitors/value"},examples:Vle,content:zle}},Tag:{$visitor:Dle,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:qle,fixedFields:{$ref:Fle}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Wle,fixedFields:{title:qr.title,multipleOf:qr.multipleOf,maximum:qr.maximum,exclusiveMaximum:qr.exclusiveMaximum,minimum:qr.minimum,exclusiveMinimum:qr.exclusiveMinimum,maxLength:qr.maxLength,minLength:qr.minLength,pattern:qr.pattern,maxItems:qr.maxItems,minItems:qr.minItems,uniqueItems:qr.uniqueItems,maxProperties:qr.maxProperties,minProperties:qr.minProperties,required:qr.required,enum:qr.enum,type:Zle,allOf:Jle,anyOf:Hle,oneOf:Kle,not:yL,items:Gle,properties:Yle,additionalProperties:yL,description:qr.description,format:qr.format,default:qr.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:Qle,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:efe}},XML:{$visitor:tfe,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:$fe,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:Lfe,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:Bfe,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Ufe}},SecurityRequirement:{$visitor:kle}},extension:{$visitor:Kce}}}},zfe=()=>{const e=zs(Lce);return{predicates:{...Tle,isElement:Or,isStringElement:ft,isArrayElement:tn,isObjectElement:Dt,isMemberElement:Ji,includesClasses:fu,hasElementSourceMap:Ll},namespace:e}},Wfe=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ve.refract(e),i=Ra(Se),s=zr(t,i),a=new s({specObj:i});return Nr(n,a),ys(a.element,r,{toolboxCreator:zfe,visitorOptions:{keyMap:Vce,nodeTypeGetter:Uce}})},Bt=e=>(t,r={})=>Wfe(t,{specPath:e,...r});zl.refract=Bt(["visitors","document","objects","Callback","$visitor"]);Wl.refract=Bt(["visitors","document","objects","Components","$visitor"]);Jl.refract=Bt(["visitors","document","objects","Contact","$visitor"]);Kl.refract=Bt(["visitors","document","objects","Example","$visitor"]);Hl.refract=Bt(["visitors","document","objects","Discriminator","$visitor"]);Zh.refract=Bt(["visitors","document","objects","Encoding","$visitor"]);Gl.refract=Bt(["visitors","document","objects","ExternalDocumentation","$visitor"]);Mu.refract=Bt(["visitors","document","objects","Header","$visitor"]);Yl.refract=Bt(["visitors","document","objects","Info","$visitor"]);Xl.refract=Bt(["visitors","document","objects","License","$visitor"]);Zl.refract=Bt(["visitors","document","objects","Link","$visitor"]);Ql.refract=Bt(["visitors","document","objects","MediaType","$visitor"]);Qh.refract=Bt(["visitors","document","objects","OAuthFlow","$visitor"]);em.refract=Bt(["visitors","document","objects","OAuthFlows","$visitor"]);ef.refract=Bt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);tm.refract=Bt(["visitors","document","objects","OpenApi","$visitor"]);tf.refract=Bt(["visitors","document","objects","Operation","$visitor"]);Du.refract=Bt(["visitors","document","objects","Parameter","$visitor"]);rf.refract=Bt(["visitors","document","objects","PathItem","$visitor"]);nf.refract=Bt(["visitors","document","objects","Paths","$visitor"]);sf.refract=Bt(["visitors","document","objects","Reference","$visitor"]);af.refract=Bt(["visitors","document","objects","RequestBody","$visitor"]);of.refract=Bt(["visitors","document","objects","Response","$visitor"]);uf.refract=Bt(["visitors","document","objects","Responses","$visitor"]);nm.refract=Bt(["visitors","document","objects","Schema","$visitor"]);pf.refract=Bt(["visitors","document","objects","SecurityRequirement","$visitor"]);df.refract=Bt(["visitors","document","objects","SecurityScheme","$visitor"]);hf.refract=Bt(["visitors","document","objects","Server","$visitor"]);mf.refract=Bt(["visitors","document","objects","ServerVariable","$visitor"]);im.refract=Bt(["visitors","document","objects","Tag","$visitor"]);sm.refract=Bt(["visitors","document","objects","XML","$visitor"]);class cm extends zl{}class lm extends Wl{get pathItems(){return this.get("pathItems")}set pathItems(t){this.set("pathItems",t)}}let fm=class extends Jl{};class cR extends Hl{}class lR extends Zh{}let pm=class extends Kl{};class dm extends Gl{}class hm extends Mu{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}let mm=class extends Yl{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 nh=class nh extends ve.StringElement{constructor(t,r,n){super(t,r,n),this.element="jsonSchemaDialect"}};X(nh,"default",new nh("https://spec.openapis.org/oas/3.1/dialect/base"));let ro=nh,gm=class extends Xl{get identifier(){return this.get("identifier")}set identifier(t){this.set("identifier",t)}},ym=class extends Zl{};class vm extends Ql{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class fR extends Qh{}class pR extends em{}class dR extends ef{}class Ia extends ve.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 gf=class extends tf{get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}};class bm extends Du{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class ba extends rf{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 _m extends nf{}class ja extends sf{}Object.defineProperty(ja.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});Object.defineProperty(ja.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});class Em extends af{}let Sm=class extends of{},wm=class extends uf{},yf=class extends qu{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new At("id keyword from Core vocabulary has been renamed to $id.")}set idProp(t){throw new At("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)}},vf=class extends lf{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 At("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(t){throw new At("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 At("method keyword from Hyper-Schema vocabulary has been removed.")}set method(t){throw new At("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new At("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(t){throw new At("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 Jfe={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",yf),t.register("jSONReference",Fu),t.register("media",cf),t.register("linkDescription",vf),t}},Hfe={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...gs};let a7=class extends Z9{constructor(t){super(t),this.element=new yf}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)}},Kfe=class extends Q9{BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),It}};class Gfe extends qt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-examples"),r}}let o7=class extends e7{constructor(t){super(t),this.element=new vf}};const Kr=nn(Ue(["visitors","document","objects","JSONSchema","$visitor"],a7),Xn(["visitors","document","objects","JSONSchema","fixedFields","id"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","$id"],Yr.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","contains"],Yr.visitors.JSONSchemaOrJSONReferenceVisitor),Ue(["visitors","document","objects","JSONSchema","fixedFields","items"],Kfe),Ue(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Yr.visitors.JSONSchemaOrJSONReferenceVisitor),Ue(["visitors","document","objects","JSONSchema","fixedFields","const"],Yr.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","examples"],Gfe),Ue(["visitors","document","objects","LinkDescription","$visitor"],o7),Ue(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Yr.visitors.JSONSchemaOrJSONReferenceVisitor),Xn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Ue(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Yr.visitors.JSONSchemaOrJSONReferenceVisitor),Xn(["visitors","document","objects","LinkDescription","fixedFields","method"]),Xn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Ue(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Yr.visitors.value))(Yr),Yfe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yf||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n)),Xfe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vf||e(n)&&t("linkDescription",n)&&r("object",n)),Zfe=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:sR,isJSONSchemaElement:Yfe,isLinkDescriptionElement:Xfe,isMediaElement:X9},Symbol.toStringTag,{value:"Module"})),Qfe=()=>{const e=zs(Jfe);return{predicates:{...Zfe,isStringElement:ft},namespace:e}},epe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Kr}={})=>{const i=ve.refract(e),s=Ra(n),a=zr(t,s),o=new a({specObj:s});return Nr(i,o),ys(o.element,r,{toolboxCreator:Qfe,visitorOptions:{keyMap:Hfe,nodeTypeGetter:ff}})},u7=e=>(t,r={})=>epe(t,{specPath:e,...r});yf.refract=u7(["visitors","document","objects","JSONSchema","$visitor"]);vf.refract=u7(["visitors","document","objects","LinkDescription","$visitor"]);let bf=class extends yf{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 At('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(t){throw new At('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)}},_f=class extends vf{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 At("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(t){throw new At("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 At("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(t){throw new At("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 tpe={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",bf),t.register("jSONReference",Fu),t.register("linkDescription",_f),t}},rpe={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...gs};let c7=class extends a7{constructor(t){super(t),this.element=new bf}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},l7=class extends o7{constructor(t){super(t),this.element=new _f}};const sa=nn(Ue(["visitors","document","objects","JSONSchema","$visitor"],c7),Ue(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Kr.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","if"],Kr.visitors.JSONSchemaOrJSONReferenceVisitor),Ue(["visitors","document","objects","JSONSchema","fixedFields","then"],Kr.visitors.JSONSchemaOrJSONReferenceVisitor),Ue(["visitors","document","objects","JSONSchema","fixedFields","else"],Kr.visitors.JSONSchemaOrJSONReferenceVisitor),Xn(["visitors","document","objects","JSONSchema","fixedFields","media"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Kr.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Kr.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Kr.visitors.value),Ue(["visitors","document","objects","LinkDescription","$visitor"],l7),Ue(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Kr.visitors.value),Ue(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Kr.visitors.value),Xn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Ue(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Kr.visitors.value),Ue(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Kr.visitors.value),Ue(["visitors","document","objects","LinkDescription","fixedFields","description"],Kr.visitors.value),Ue(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Kr.visitors.value),Ue(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Kr.visitors.JSONSchemaOrJSONReferenceVisitor),Xn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Ue(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Kr.visitors.value))(Kr),npe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bf||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n)),ipe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _f||e(n)&&t("linkDescription",n)&&r("object",n)),spe=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:sR,isJSONSchemaElement:npe,isLinkDescriptionElement:ipe},Symbol.toStringTag,{value:"Module"})),ape=()=>{const e=zs(tpe);return{predicates:{...spe,isStringElement:ft},namespace:e}},ope=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=sa}={})=>{const i=ve.refract(e),s=Ra(n),a=zr(t,s),o=new a({specObj:s});return Nr(i,o),ys(o.element,r,{toolboxCreator:ape,visitorOptions:{keyMap:rpe,nodeTypeGetter:ff}})},f7=e=>(t,r={})=>ope(t,{specPath:e,...r});bf.refract=f7(["visitors","document","objects","JSONSchema","$visitor"]);_f.refract=f7(["visitors","document","objects","LinkDescription","$visitor"]);let Ef=class extends bf{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 At("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(t){throw new At("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 At("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(t){throw new At("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)}},Sf=class extends _f{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 upe={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Ef),t.register("linkDescription",Sf),t}},cpe={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...gs};let Gr=class extends c7{constructor(t){super(t),this.element=new Ef}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=to.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class lpe extends qt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-$vocabulary"),r}}class fpe extends qt{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let p7=class extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-$defs"),this.specPath=ct(["document","objects","JSONSchema"])}},d7=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.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),It}},h7=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.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),It}},m7=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.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),It}},g7=class extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ct(["document","objects","JSONSchema"])}};class ppe extends Le(ni,Mr,qt){ObjectElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),It}ArrayElement(t){return this.element=new ve.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),It}BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),It}}let y7=class extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=ct(["document","objects","JSONSchema"])}},v7=class extends Le(Ta,Mr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=ct(["document","objects","JSONSchema"])}};class dpe extends qt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-dependentRequired"),r}}let b7=class extends l7{constructor(t){super(t),this.element=new Sf}};const kp=nn(Ue(["visitors","document","objects","JSONSchema","$visitor"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],lpe),Ue(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],sa.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],sa.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],sa.visitors.value),Xn(["visitors","document","objects","JSONReference","$visitor"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","$ref"],fpe),Xn(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","$defs"],p7),Ue(["visitors","document","objects","JSONSchema","fixedFields","allOf"],d7),Ue(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],h7),Ue(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],m7),Ue(["visitors","document","objects","JSONSchema","fixedFields","not"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","if"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","then"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","else"],Gr),Xn(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],g7),Ue(["visitors","document","objects","JSONSchema","fixedFields","items"],ppe),Ue(["visitors","document","objects","JSONSchema","fixedFields","contains"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","properties"],y7),Ue(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],v7),Ue(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Gr),Ue(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],sa.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","minContains"],sa.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],dpe),Ue(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],sa.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Gr),Ue(["visitors","document","objects","LinkDescription","$visitor"],b7),Ue(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Gr),Ue(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Gr),Ue(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Gr),Ue(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Gr))(sa),hpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ef||e(n)&&t("JSONSchema201909",n)&&r("object",n)),mpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sf||e(n)&&t("linkDescription",n)&&r("object",n)),gpe=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:hpe,isLinkDescriptionElement:mpe},Symbol.toStringTag,{value:"Module"})),ype=()=>{const e=zs(upe);return{predicates:{...gpe,isStringElement:ft},namespace:e}},vpe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=kp}={})=>{const i=ve.refract(e),s=Ra(n),a=zr(t,s),o=new a({specObj:s});return Nr(i,o),ys(o.element,r,{toolboxCreator:ype,visitorOptions:{keyMap:cpe,nodeTypeGetter:ff}})},_7=e=>(t,r={})=>vpe(t,{specPath:e,...r});Ef.refract=_7(["visitors","document","objects","JSONSchema","$visitor"]);Sf.refract=_7(["visitors","document","objects","LinkDescription","$visitor"]);class wf extends Ef{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 At("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(t){throw new At("$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 At("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(t){throw new At("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}}class xm extends Sf{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 bpe={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",wf),t.register("linkDescription",xm),t}},_pe={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...gs};let Fr=class extends Gr{constructor(t){super(t),this.element=new wf}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},E7=class extends Le(ni,Mr,qt){constructor(t){super(t),this.element=new ve.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),It}},Epe=class extends b7{constructor(t){super(t),this.element=new xm}};const S7=nn(Ue(["visitors","document","objects","JSONSchema","$visitor"],Fr),Xn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],kp.visitors.value),Xn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],kp.visitors.value),Ue(["visitors","document","objects","JSONSchema","fixedFields","not"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","if"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","then"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","else"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],E7),Ue(["visitors","document","objects","JSONSchema","fixedFields","items"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","contains"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Fr),Xn(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Ue(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Fr),Ue(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Fr),Ue(["visitors","document","objects","LinkDescription","$visitor"],Epe),Ue(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Fr),Ue(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Fr),Ue(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Fr),Ue(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Fr))(kp),Spe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wf||e(n)&&t("JSONSchema202012",n)&&r("object",n)),wpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xm||e(n)&&t("linkDescription",n)&&r("object",n)),xpe=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Spe,isLinkDescriptionElement:wpe},Symbol.toStringTag,{value:"Module"})),Ape=()=>{const e=zs(bpe);return{predicates:{...xpe,isStringElement:ft},namespace:e}},Ope=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=S7}={})=>{const i=ve.refract(e),s=Ra(n),a=zr(t,s),o=new a({specObj:s});return Nr(i,o),ys(o.element,r,{toolboxCreator:Ape,visitorOptions:{keyMap:_pe,nodeTypeGetter:ff}})},w7=e=>(t,r={})=>Ope(t,{specPath:e,...r});wf.refract=w7(["visitors","document","objects","JSONSchema","$visitor"]);xm.refract=w7(["visitors","document","objects","LinkDescription","$visitor"]);class _a extends wf{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 Am extends pf{}class Om extends df{}class Cm extends hf{}class Rm extends mf{}class hR extends im{}class mR extends sm{}const gR={namespace:e=>{const{base:t}=e;return t.register("callback",cm),t.register("components",lm),t.register("contact",fm),t.register("discriminator",cR),t.register("encoding",lR),t.register("example",pm),t.register("externalDocumentation",dm),t.register("header",hm),t.register("info",mm),t.register("jsonSchemaDialect",ro),t.register("license",gm),t.register("link",ym),t.register("mediaType",vm),t.register("oAuthFlow",fR),t.register("oAuthFlows",pR),t.register("openapi",dR),t.register("openApi3_1",Ia),t.register("operation",gf),t.register("parameter",bm),t.register("pathItem",ba),t.register("paths",_m),t.register("reference",ja),t.register("requestBody",Em),t.register("response",Sm),t.register("responses",wm),t.register("schema",_a),t.register("securityRequirement",Am),t.register("securityScheme",Om),t.register("server",Cm),t.register("serverVariable",Rm),t.register("tag",hR),t.register("xml",mR),t}},ih=class ih extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(ih.primaryClass)}};X(ih,"primaryClass","components-path-items");let MA=ih;const sh=class sh extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(sh.primaryClass)}};X(sh,"primaryClass","webhooks");let DA=sh;const yi=e=>{if(Or(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},qi={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"],...gs};class xf{constructor(t,r,n){X(this,"internalStore");this.storageElement=t,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let t=this.storageElement.get(this.storageField);Dt(t)||(t=new ve.ObjectElement,this.storageElement.set(this.storageField,t));let r=t.get(this.storageSubField);tn(r)||(r=new ve.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 Cpe=({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:Pe(o.name)===Pe(u.name)&&Pe(o.in)===Pe(u.in),s=[];let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new xf(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=$h(s);if(!Array.isArray(h)||h.length===0)return;const d=n([...f,c,o]);if(a.includes(d))return;const g=w5([],["parameters","content"],o),y=R5(i,[...g,...h]);o.parameters=new md(y),a.append(d)}}}}},Rpe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i,s;return{visitor:{OpenApi3_1Element:{enter(a){s=new xf(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 gd((g=i)===null||g===void 0?void 0:g.content),s.append(f)}}}}}},qA=e=>e.replace(/\s/g,""),FA=e=>e.replace(/\W/gi,"_"),Tpe=(e,t)=>{const r=FA(qA(t.toLowerCase())),n=FA(qA(e));return`${r}${n}`},Ipe=(e,t,r)=>{const n=qA(e);return n.length>0?FA(n):Tpe(t,r)},jpe=({storageField:e="x-normalized",operationIdNormalizer:t=Ipe}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:i,namespace:s}=r,a=[],o=[],u=[];let c;return{visitor:{OpenApi3_1Element:{enter(l){c=new xf(l,e,"operation-ids")},leave(){const l=bse(f=>Pe(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(Pe(f.operationId)),d=o.find(g=>Pe(g.meta.get("originalOperationId"))===h);typeof d>"u"||(f.operationId=Ye.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=cu("path",Pe(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(Pe(l.operationId)),_=$h(a),b=cu("method",Pe(l.meta.get("http-method"))),S=t(v,_,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))}}}}},Ppe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new xf(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=>Ye.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",[Ye(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Ye(s.example)),i.append(h)))}}}}}},kpe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new xf(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=>Ye.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",[Ye(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Ye(s.example)),i.append(h)))}}}}}},Npe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cm||e(n)&&t("callback",n)&&r("object",n)),Mpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lm||e(n)&&t("components",n)&&r("object",n)),Dpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fm||e(n)&&t("contact",n)&&r("object",n)),qpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pm||e(n)&&t("example",n)&&r("object",n)),Fpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dm||e(n)&&t("externalDocumentation",n)&&r("object",n)),$pe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hm||e(n)&&t("header",n)&&r("object",n)),Lpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mm||e(n)&&t("info",n)&&r("object",n)),x7=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ro||e(n)&&t("jsonSchemaDialect",n)&&r("string",n)),Bpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gm||e(n)&&t("license",n)&&r("object",n)),Upe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ym||e(n)&&t("link",n)&&r("object",n)),Vpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dR||e(n)&&t("openapi",n)&&r("string",n)),A7=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof Ia||e(i)&&t("openApi3_1",i)&&r("object",i)&&n("api",i)),O7=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gf||e(n)&&t("operation",n)&&r("object",n)),zpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bm||e(n)&&t("parameter",n)&&r("object",n)),no=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ba||e(n)&&t("pathItem",n)&&r("object",n)),Wpe=e=>{if(!no(e)||!ft(e.$ref))return!1;const t=Pe(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Jpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _m||e(n)&&t("paths",n)&&r("object",n)),bo=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ja||e(n)&&t("reference",n)&&r("object",n)),Hpe=e=>{if(!bo(e)||!ft(e.$ref))return!1;const t=Pe(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Kpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Em||e(n)&&t("requestBody",n)&&r("object",n)),Gpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sm||e(n)&&t("response",n)&&r("object",n)),Ype=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wm||e(n)&&t("responses",n)&&r("object",n)),Fi=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _a||e(n)&&t("schema",n)&&r("object",n)),yR=e=>$l(e)&&e.classes.includes("boolean-json-schema"),Xpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Am||e(n)&&t("securityRequirement",n)&&r("object",n)),Zpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Om||e(n)&&t("securityScheme",n)&&r("object",n)),Qpe=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cm||e(n)&&t("server",n)&&r("object",n)),ede=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rm||e(n)&&t("serverVariable",n)&&r("object",n)),tde=Ve(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vm||e(n)&&t("mediaType",n)&&r("object",n)),rde=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:yR,isCallbackElement:Npe,isComponentsElement:Mpe,isContactElement:Dpe,isExampleElement:qpe,isExternalDocumentationElement:Fpe,isHeaderElement:$pe,isInfoElement:Lpe,isJsonSchemaDialectElement:x7,isLicenseElement:Bpe,isLinkElement:Upe,isMediaTypeElement:tde,isOpenApi3_1Element:A7,isOpenapiElement:Vpe,isOperationElement:O7,isParameterElement:zpe,isPathItemElement:no,isPathItemElementExternal:Wpe,isPathsElement:Jpe,isReferenceElement:bo,isReferenceElementExternal:Hpe,isRequestBodyElement:Kpe,isResponseElement:Gpe,isResponsesElement:Ype,isSchemaElement:Fi,isSecurityRequirementElement:Xpe,isSecuritySchemeElement:Zpe,isServerElement:Qpe,isServerVariableElement:ede},Symbol.toStringTag,{value:"Module"})),nde=e=>{const t=e.reduce((r,n,i)=>{if(Ji(n)){const s=String(Pe(n.key));r.push(s)}else if(tn(e[i-2])){const s=String(e[i-2].content.indexOf(n));r.push(s)}return r},[]);return z9(t)},C7=()=>{const e=zs(gR);return{predicates:{...rde,isElement:Or,isStringElement:ft,isArrayElement:tn,isObjectElement:Dt,isMemberElement:Ji,isServersElement:i7,includesClasses:fu,hasElementSourceMap:Ll},ancestorLineageToJSONPointer:nde,namespace:e}};class ide extends Le(Et,ze){constructor(t){super(t),this.element=new Ia,this.specPath=ct(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(t){return this.openApiGenericElement=t,Et.prototype.ObjectElement.call(this,t)}}const sde=Se.visitors.document.objects.Info.$visitor;class ade extends sde{constructor(t){super(t),this.element=new mm}}const ode=Se.visitors.document.objects.Contact.$visitor;class ude extends ode{constructor(t){super(t),this.element=new fm}}const cde=Se.visitors.document.objects.License.$visitor;class lde extends cde{constructor(t){super(t),this.element=new gm}}const fde=Se.visitors.document.objects.Link.$visitor;class pde extends fde{constructor(t){super(t),this.element=new ym}}class dde extends Le(Hi,ze){StringElement(t){const r=new ro(Pe(t));return this.copyMetaAndAttributes(t,r),this.element=r,It}}const hde=Se.visitors.document.objects.Server.$visitor;class mde extends hde{constructor(t){super(t),this.element=new Cm}}const gde=Se.visitors.document.objects.ServerVariable.$visitor;class yde extends gde{constructor(t){super(t),this.element=new Rm}}const vde=Se.visitors.document.objects.MediaType.$visitor;class bde extends vde{constructor(t){super(t),this.element=new vm}}const _de=Se.visitors.document.objects.SecurityRequirement.$visitor;class Ede extends _de{constructor(t){super(t),this.element=new Am}}const Sde=Se.visitors.document.objects.Components.$visitor;class wde extends Sde{constructor(t){super(t),this.element=new lm}}const xde=Se.visitors.document.objects.Tag.$visitor;class Ade extends xde{constructor(t){super(t),this.element=new hR}}const Ode=Se.visitors.document.objects.Reference.$visitor;class Cde extends Ode{constructor(t){super(t),this.element=new ja}}const Rde=Se.visitors.document.objects.Parameter.$visitor;class Tde extends Rde{constructor(t){super(t),this.element=new bm}}const Ide=Se.visitors.document.objects.Header.$visitor;class jde extends Ide{constructor(t){super(t),this.element=new hm}}class Pde extends Le(Et,Mr,ze){constructor(t){super(t),this.element=new _a,this.specPath=ct(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ro.default,this.passingOptionsNames.push("parent")}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=Et.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(t){return Fr.prototype.BooleanElement.call(this,t)}get defaultDialectIdentifier(){let t;return this.openApiSemanticElement!==void 0&&x7(this.openApiSemanticElement.jsonSchemaDialect)?t=Pe(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&ft(this.openApiGenericElement.get("jsonSchemaDialect"))?t=Pe(this.openApiGenericElement.get("jsonSchemaDialect")):t=Pe(this.jsonSchemaDefaultDialect),t}handleDialectIdentifier(t){return Fr.prototype.handleDialectIdentifier.call(this,t)}handleSchemaIdentifier(t){return Fr.prototype.handleSchemaIdentifier.call(this,t)}}class kde extends p7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}let Nde=class extends d7{constructor(t){super(t),this.passingOptionsNames.push("parent")}};class Mde extends h7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Dde extends m7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class qde extends g7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Fde extends E7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class $de extends y7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Lde extends v7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}const Bde=Se.visitors.document.objects.Discriminator.$visitor;class Ude extends Bde{constructor(t){super(t),this.element=new cR,this.canSupportSpecificationExtensions=!0}}const Vde=Se.visitors.document.objects.XML.$visitor;class zde extends Vde{constructor(t){super(t),this.element=new mR}}class Wde extends Le(yt,ze){constructor(t){super(t),this.element=new hd,this.specPath=ct(["document","objects","Schema"])}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Fi).forEach((n,i)=>{n.setMetaProperty("schemaName",Pe(i))}),r}}class Jde extends Le(yt,ze){constructor(t){super(t),this.element=new MA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(bo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Hde=Se.visitors.document.objects.Example.$visitor;class Kde extends Hde{constructor(t){super(t),this.element=new pm}}const Gde=Se.visitors.document.objects.ExternalDocumentation.$visitor;class Yde extends Gde{constructor(t){super(t),this.element=new dm}}const Xde=Se.visitors.document.objects.Encoding.$visitor;class Zde extends Xde{constructor(t){super(t),this.element=new lR}}const Qde=Se.visitors.document.objects.Paths.$visitor;class ehe extends Qde{constructor(t){super(t),this.element=new _m}}const the=Se.visitors.document.objects.RequestBody.$visitor;class rhe extends the{constructor(t){super(t),this.element=new Em}}const bL=Se.visitors.document.objects.Callback.$visitor;class nhe extends bL{constructor(t){super(t),this.element=new cm,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=bL.prototype.ObjectElement.call(this,t);return this.element.filter(bo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const ihe=Se.visitors.document.objects.Response.$visitor;class she extends ihe{constructor(t){super(t),this.element=new Sm}}const ahe=Se.visitors.document.objects.Responses.$visitor;class ohe extends ahe{constructor(t){super(t),this.element=new wm}}const uhe=Se.visitors.document.objects.Operation.$visitor;class che extends uhe{constructor(t){super(t),this.element=new gf}}const lhe=Se.visitors.document.objects.PathItem.$visitor;class fhe extends lhe{constructor(t){super(t),this.element=new ba}}const phe=Se.visitors.document.objects.SecurityScheme.$visitor;class dhe extends phe{constructor(t){super(t),this.element=new Om}}const hhe=Se.visitors.document.objects.OAuthFlows.$visitor;class mhe extends hhe{constructor(t){super(t),this.element=new pR}}const ghe=Se.visitors.document.objects.OAuthFlow.$visitor;class yhe extends ghe{constructor(t){super(t),this.element=new fR}}class vhe extends Le(yt,ze){constructor(t){super(t),this.element=new DA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(bo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(no).forEach((n,i)=>{n.setMetaProperty("webhook-name",Pe(i))}),r}}const{JSONSchema:bhe,LinkDescription:_he}=S7.visitors.document.objects,Ehe={visitors:{value:Se.visitors.value,document:{objects:{OpenApi:{$visitor:ide,fixedFields:{openapi:Se.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:dde,servers:Se.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:vhe,components:{$ref:"#/visitors/document/objects/Components"},security:Se.visitors.document.objects.OpenApi.fixedFields.security,tags:Se.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ade,fixedFields:{title:Se.visitors.document.objects.Info.fixedFields.title,description:Se.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Se.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Se.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:ude,fixedFields:{name:Se.visitors.document.objects.Contact.fixedFields.name,url:Se.visitors.document.objects.Contact.fixedFields.url,email:Se.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:lde,fixedFields:{name:Se.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Se.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:mde,fixedFields:{url:Se.visitors.document.objects.Server.fixedFields.url,description:Se.visitors.document.objects.Server.fixedFields.description,variables:Se.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:yde,fixedFields:{enum:Se.visitors.document.objects.ServerVariable.fixedFields.enum,default:Se.visitors.document.objects.ServerVariable.fixedFields.default,description:Se.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:wde,fixedFields:{schemas:Wde,responses:Se.visitors.document.objects.Components.fixedFields.responses,parameters:Se.visitors.document.objects.Components.fixedFields.parameters,examples:Se.visitors.document.objects.Components.fixedFields.examples,requestBodies:Se.visitors.document.objects.Components.fixedFields.requestBodies,headers:Se.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Se.visitors.document.objects.Components.fixedFields.securitySchemes,links:Se.visitors.document.objects.Components.fixedFields.links,callbacks:Se.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Jde}},Paths:{$visitor:ehe},PathItem:{$visitor:fhe,fixedFields:{$ref:Se.visitors.document.objects.PathItem.fixedFields.$ref,summary:Se.visitors.document.objects.PathItem.fixedFields.summary,description:Se.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:Se.visitors.document.objects.PathItem.fixedFields.servers,parameters:Se.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:che,fixedFields:{tags:Se.visitors.document.objects.Operation.fixedFields.tags,summary:Se.visitors.document.objects.Operation.fixedFields.summary,description:Se.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Se.visitors.document.objects.Operation.fixedFields.operationId,parameters:Se.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Se.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Se.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Se.visitors.document.objects.Operation.fixedFields.deprecated,security:Se.visitors.document.objects.Operation.fixedFields.security,servers:Se.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Yde,fixedFields:{description:Se.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Se.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Tde,fixedFields:{name:Se.visitors.document.objects.Parameter.fixedFields.name,in:Se.visitors.document.objects.Parameter.fixedFields.in,description:Se.visitors.document.objects.Parameter.fixedFields.description,required:Se.visitors.document.objects.Parameter.fixedFields.required,deprecated:Se.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Se.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Se.visitors.document.objects.Parameter.fixedFields.style,explode:Se.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Se.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Se.visitors.document.objects.Parameter.fixedFields.example,examples:Se.visitors.document.objects.Parameter.fixedFields.examples,content:Se.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:rhe,fixedFields:{description:Se.visitors.document.objects.RequestBody.fixedFields.description,content:Se.visitors.document.objects.RequestBody.fixedFields.content,required:Se.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:bde,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Se.visitors.document.objects.MediaType.fixedFields.example,examples:Se.visitors.document.objects.MediaType.fixedFields.examples,encoding:Se.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Zde,fixedFields:{contentType:Se.visitors.document.objects.Encoding.fixedFields.contentType,headers:Se.visitors.document.objects.Encoding.fixedFields.headers,style:Se.visitors.document.objects.Encoding.fixedFields.style,explode:Se.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Se.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:ohe,fixedFields:{default:Se.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:she,fixedFields:{description:Se.visitors.document.objects.Response.fixedFields.description,headers:Se.visitors.document.objects.Response.fixedFields.headers,content:Se.visitors.document.objects.Response.fixedFields.content,links:Se.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:nhe},Example:{$visitor:Kde,fixedFields:{summary:Se.visitors.document.objects.Example.fixedFields.summary,description:Se.visitors.document.objects.Example.fixedFields.description,value:Se.visitors.document.objects.Example.fixedFields.value,externalValue:Se.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:pde,fixedFields:{operationRef:Se.visitors.document.objects.Link.fixedFields.operationRef,operationId:Se.visitors.document.objects.Link.fixedFields.operationId,parameters:Se.visitors.document.objects.Link.fixedFields.parameters,requestBody:Se.visitors.document.objects.Link.fixedFields.requestBody,description:Se.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:jde,fixedFields:{description:Se.visitors.document.objects.Header.fixedFields.description,required:Se.visitors.document.objects.Header.fixedFields.required,deprecated:Se.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Se.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Se.visitors.document.objects.Header.fixedFields.style,explode:Se.visitors.document.objects.Header.fixedFields.explode,allowReserved:Se.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Se.visitors.document.objects.Header.fixedFields.example,examples:Se.visitors.document.objects.Header.fixedFields.examples,content:Se.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Ade,fixedFields:{name:Se.visitors.document.objects.Tag.fixedFields.name,description:Se.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Cde,fixedFields:{$ref:Se.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{..._he},Schema:{$visitor:Pde,fixedFields:{...bhe.fixedFields,$defs:kde,allOf:Nde,anyOf:Mde,oneOf:Dde,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:qde,prefixItems:Fde,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:$de,patternProperties:Lde,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:Ude,fixedFields:{propertyName:Se.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Se.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:zde,fixedFields:{name:Se.visitors.document.objects.XML.fixedFields.name,namespace:Se.visitors.document.objects.XML.fixedFields.namespace,prefix:Se.visitors.document.objects.XML.fixedFields.prefix,attribute:Se.visitors.document.objects.XML.fixedFields.attribute,wrapped:Se.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:dhe,fixedFields:{type:Se.visitors.document.objects.SecurityScheme.fixedFields.type,description:Se.visitors.document.objects.SecurityScheme.fixedFields.description,name:Se.visitors.document.objects.SecurityScheme.fixedFields.name,in:Se.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Se.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Se.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Se.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:mhe,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:yhe,fixedFields:{authorizationUrl:Se.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Se.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Se.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Se.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Ede}},extension:{$visitor:Se.visitors.document.extension.$visitor}}}},She=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ve.refract(e),i=Ra(Ehe),s=zr(t,i),a=new s({specObj:i});return Nr(n,a),ys(a.element,r,{toolboxCreator:C7,visitorOptions:{keyMap:qi,nodeTypeGetter:yi}})},$t=e=>(t,r={})=>She(t,{specPath:e,...r});cm.refract=$t(["visitors","document","objects","Callback","$visitor"]);lm.refract=$t(["visitors","document","objects","Components","$visitor"]);fm.refract=$t(["visitors","document","objects","Contact","$visitor"]);pm.refract=$t(["visitors","document","objects","Example","$visitor"]);cR.refract=$t(["visitors","document","objects","Discriminator","$visitor"]);lR.refract=$t(["visitors","document","objects","Encoding","$visitor"]);dm.refract=$t(["visitors","document","objects","ExternalDocumentation","$visitor"]);hm.refract=$t(["visitors","document","objects","Header","$visitor"]);mm.refract=$t(["visitors","document","objects","Info","$visitor"]);ro.refract=$t(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);gm.refract=$t(["visitors","document","objects","License","$visitor"]);ym.refract=$t(["visitors","document","objects","Link","$visitor"]);vm.refract=$t(["visitors","document","objects","MediaType","$visitor"]);fR.refract=$t(["visitors","document","objects","OAuthFlow","$visitor"]);pR.refract=$t(["visitors","document","objects","OAuthFlows","$visitor"]);dR.refract=$t(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Ia.refract=$t(["visitors","document","objects","OpenApi","$visitor"]);gf.refract=$t(["visitors","document","objects","Operation","$visitor"]);bm.refract=$t(["visitors","document","objects","Parameter","$visitor"]);ba.refract=$t(["visitors","document","objects","PathItem","$visitor"]);_m.refract=$t(["visitors","document","objects","Paths","$visitor"]);ja.refract=$t(["visitors","document","objects","Reference","$visitor"]);Em.refract=$t(["visitors","document","objects","RequestBody","$visitor"]);Sm.refract=$t(["visitors","document","objects","Response","$visitor"]);wm.refract=$t(["visitors","document","objects","Responses","$visitor"]);_a.refract=$t(["visitors","document","objects","Schema","$visitor"]);Am.refract=$t(["visitors","document","objects","SecurityRequirement","$visitor"]);Om.refract=$t(["visitors","document","objects","SecurityScheme","$visitor"]);Cm.refract=$t(["visitors","document","objects","Server","$visitor"]);Rm.refract=$t(["visitors","document","objects","ServerVariable","$visitor"]);hR.refract=$t(["visitors","document","objects","Tag","$visitor"]);mR.refract=$t(["visitors","document","objects","XML","$visitor"]);class whe extends Ul{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 Ui;if(n.length!==0){const s=new ve.StringElement(n);s.classes.push("result"),i.push(s)}return i}catch(r){throw new Ds(`Error parsing "${t.uri}"`,{cause:r})}}}class xhe extends woe{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 d9('"openapi-3-1" dereference strategy is not available.');const i=new lu,s=L5(r,{resolve:{internal:!1},dereference:{refSet:i}});return await n.dereference(t,s),i}}const{AbortController:Ahe,AbortSignal:Ohe}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=Ahe);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=Ohe);class Che extends Soe{constructor({swaggerHTTPClient:r=Bc,swaggerHTTPClientConfig:n={},...i}={}){super({...i,name:"http-swagger-client"});X(this,"swaggerHTTPClient",Bc);X(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 B5(`Error downloading "${r.uri}"`,{cause:l})}finally{clearTimeout(a)}}}class Rhe extends Ul{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 Ds("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ui,n=t.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const i=p9(JSON.parse(n));return i.classes.push("result"),r.push(i),r}catch(i){throw new Ds(`Error parsing "${t.uri}"`,{cause:i})}}}class The extends Ul{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 Qa.load(t.toString(),{schema:jc}),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new Ds("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ui,n=t.toString();try{const i=Qa.load(n,{schema:jc});if(this.allowEmpty&&typeof i>"u")return r;const s=p9(i);return s.classes.push("result"),r.push(s),r}catch(i){throw new Ds(`Error parsing "${t.uri}"`,{cause:i})}}}class Ihe extends Ul{constructor(r={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new iR(...du.filterByFormat("generic"),...du.filterByFormat("json")),...r});X(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 Ds("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ui,i=r.toString();if(this.allowEmpty&&i.trim()==="")return n;try{const s=JSON.parse(i),a=Ia.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Ds(`Error parsing "${r.uri}"`,{cause:s})}}}class jhe extends Ul{constructor(r={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new iR(...du.filterByFormat("generic"),...du.filterByFormat("yaml")),...r});X(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 Qa.load(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Ds("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ui,i=r.toString();try{const s=Qa.load(i,{schema:jc});if(this.allowEmpty&&typeof s>"u")return n;const a=Ia.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Ds(`Error parsing "${r.uri}"`,{cause:s})}}}const Tm=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),mu=e=>{const t=F5(e);return M5("#",t)},Phe=e=>{if(!Tm(e))throw new Coe(e);return e},vR=(e,t)=>{const r=Phe(e),n=u9(i=>Fi(i)&&Pe(i.$anchor)===r,t);if(Ca(n))throw new Aoe(`Evaluation failed on token: "${r}"`);return n},R7=(e,t)=>{if(typeof t.$ref>"u")return;const r=F5(Pe(t.$ref)),n=Pe(t.meta.get("ancestorsSchemaIdentifiers"));return`${Pu((s,a)=>Xr(s,Wh(Xt(a))),e,[...n,Pe(t.$ref)])}${r==="#"?"":r}`},khe=(e,t)=>{if(typeof t.$id>"u")return;const r=Pe(t.meta.get("ancestorsSchemaIdentifiers"));return Pu((n,i)=>Xr(n,Wh(Xt(i))),e,r)},xc=e=>{if(xc.cache.has(e))return xc.cache.get(e);const t=_a.refract(e);return xc.cache.set(e,t),t};xc.cache=new WeakMap;const an=e=>Xa(e)?xc(e):e,Im=(e,t)=>{const{cache:r}=Im,n=Xt(e),i=a=>Fi(a)&&typeof a.$id<"u";if(!r.has(t)){const a=aoe(i,t);r.set(t,Array.from(a))}const s=r.get(t).find(a=>khe(n,a)===n);if(Ca(s))throw new JC(`Evaluation failed on URI: "${e}"`);return Tm(mu(e))?vR(mu(e),s):Di(s,hi(e))};Im.cache=new WeakMap;const cp=Nr[Symbol.for("nodejs.util.promisify.custom")],Hr=new zC,li=(e,t,r,n)=>{Ji(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class Va{constructor({reference:t,namespace:r,options:n,indirections:i=[],ancestors:s=new gw,refractCache:a=new Map,allOfDiscriminatorMapping:o=new Map}){X(this,"indirections");X(this,"namespace");X(this,"reference");X(this,"options");X(this,"ancestors");X(this,"refractCache");X(this,"allOfDiscriminatorMapping");X(this,"OpenApi3_1Element",{leave:(t,r,n,i,s,a)=>{var o;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping))return;const u=Ur(t);return u.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),a.replaceWith(u,li),n?void 0:u}});this.indirections=i,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new gw(...s),this.refractCache=a,this.allOfDiscriminatorMapping=o}toBaseURI(t){return Xr(this.reference.uri,Wh(Xt(t)))}async toReference(t){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Roe(`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(A5(r,"uri"));const i=await Aae(rs(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new Ps({uri:r,value:Ye(i),depth:this.reference.depth+1});if(n.add(s),this.options.dereference.immutable){const a=new Ps({uri:`immutable://${r}`,value:i,depth:this.reference.depth+1});n.add(a)}return s}toAncestorLineage(t){const r=new Set(t.filter(Or));return[new gw(...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(Pe(t.$ref)),l=Xt(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return!1;const h=await this.toReference(Pe(t.$ref)),d=Xr(c,Pe(t.$ref));this.indirections.push(t);const g=hi(d);let y=Di(h.value.result,g);if(y.id=Hr.identify(y),Xa(y)){const E=Pe(t.meta.get("referenced-element")),A=`${E}-${Pe(Hr.identify(y))}`;this.refractCache.has(A)?y=this.refractCache.get(A):or(y)?(y=ja.refract(y),y.setMetaProperty("referenced-element",E),this.refractCache.set(A,y)):(y=this.namespace.getElementClass(E).refract(y),this.refractCache.set(A,y))}if(t===y)throw new vr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 vr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,_;const E=new ve.RefElement(y.id,{type:"reference",uri:h.uri,$ref:Pe(t.$ref)}),R=((v=(_=this.options.dereference.strategyOpts["openapi-3-1"])===null||_===void 0?void 0:_.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(E);return a.replaceWith(R,li),n?!1:R}}const b=Xt(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||bo(y)||S)&&!o.includesCycle(y)){u.add(t);const E=new Va({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await cp(y,E,{keyMap:qi,nodeTypeGetter:yi}),u.delete(t)}this.indirections.pop();const w=Ur(y);return w.setMetaProperty("id",Hr.generateId()),w.setMetaProperty("ref-fields",{$ref:Pe(t.$ref),description:Pe(t.description),summary:Pe(t.summary)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ye(Hr.identify(t))),Dt(y)&&Dt(w)&&(t.hasKey("description")&&"description"in y&&(w.remove("description"),w.set("description",t.get("description"))),t.hasKey("summary")&&"summary"in y&&(w.remove("summary"),w.set("summary",t.get("summary")))),a.replaceWith(w,li),n?!1:w}async PathItemElement(t,r,n,i,s,a){if(!ft(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(Pe(t.$ref)),l=Xt(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return;const h=await this.toReference(Pe(t.$ref)),d=Xr(c,Pe(t.$ref));this.indirections.push(t);const g=hi(d);let y=Di(h.value.result,g);if(y.id=Hr.identify(y),Xa(y)){const w=`path-item-${Pe(Hr.identify(y))}`;this.refractCache.has(w)?y=this.refractCache.get(w):(y=ba.refract(y),this.refractCache.set(w,y))}if(t===y)throw new vr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 vr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,_;const w=new ve.RefElement(y.id,{type:"path-item",uri:h.uri,$ref:Pe(t.$ref)}),A=((v=(_=this.options.dereference.strategyOpts["openapi-3-1"])===null||_===void 0?void 0:_.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(w);return a.replaceWith(A,li),n?!1:A}}const b=Xt(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||no(y)&&ft(y.$ref)||S)&&!o.includesCycle(y)){u.add(t);const w=new Va({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await cp(y,w,{keyMap:qi,nodeTypeGetter:yi}),u.delete(t)}if(this.indirections.pop(),no(y)){const w=new ba([...y.content],Ye(y.meta),Ye(y.attributes));w.setMetaProperty("id",Hr.generateId()),t.forEach((E,A,R)=>{w.remove(Pe(A)),w.content.push(R)}),w.remove("$ref"),w.setMetaProperty("ref-fields",{$ref:Pe(t.$ref)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ye(Hr.identify(t))),y=w}return a.replaceWith(y,li),n?void 0:y}async LinkElement(t,r,n,i,s,a){if(!ft(t.operationRef)&&!ft(t.operationId))return;if(ft(t.operationRef)&&ft(t.operationId))throw new vr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ft(t.operationRef)){var u;const l=hi(Pe(t.operationRef)),f=this.toBaseURI(Pe(t.operationRef)),h=Xt(this.reference.uri)===f,d=!h;if(!this.options.resolve.internal&&h||!this.options.resolve.external&&d)return;const g=await this.toReference(Pe(t.operationRef));if(o=Di(g.value.result,l),Xa(o)){const v=`operation-${Pe(Hr.identify(o))}`;this.refractCache.has(v)?o=this.refractCache.get(v):(o=gf.refract(o),this.refractCache.set(v,o))}o=Ur(o),o.setMetaProperty("ref-origin",g.uri);const y=Ur(t);return(u=y.operationRef)===null||u===void 0||u.meta.set("operation",o),a.replaceWith(y,li),n?void 0:y}if(ft(t.operationId)){var c;const l=Pe(t.operationId),f=await this.toReference(rs(this.reference.uri));if(o=u9(d=>O7(d)&&Or(d.operationId)&&d.operationId.equals(l),f.value.result),Ca(o))throw new vr(`OperationElement(operationId=${l}) not found.`);const h=Ur(t);return(c=h.operationId)===null||c===void 0||c.meta.set("operation",o),a.replaceWith(h,li),n?void 0:h}}async ExampleElement(t,r,n,i,s,a){if(!ft(t.externalValue))return;if(t.hasKey("value")&&ft(t.externalValue))throw new vr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Pe(t.externalValue)),u=Xt(this.reference.uri)===o,c=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&c)return;const l=await this.toReference(Pe(t.externalValue)),f=Ur(l.value.result);f.setMetaProperty("ref-origin",l.uri);const h=Ur(t);return h.value=f,a.replaceWith(h,li),n?void 0:h}async MemberElement(t,r,n,i,s,a){var o;const u=s[s.length-1];if(!Dt(u)||!u.classes.contains("discriminator-mapping"))return;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping)||!ft(t.key)||!ft(t.value)||this.indirections.includes(t))return!1;this.indirections.push(t);const[c,l]=this.toAncestorLineage([...s,n]),f=[...l].findLast(Fi),h=Ye(f.getMetaProperty("ancestorsSchemaIdentifiers")),d=Pe(t.value),y=/^[a-zA-Z0-9\\.\\-_]+$/.test(d)?`#/components/schemas/${d}`:d,v=new _a({$ref:y});v.setMetaProperty("ancestorsSchemaIdentifiers",h),l.add(v);const _=new Va({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping}),b=await cp(v,_,{keyMap:qi,nodeTypeGetter:yi});l.delete(v),this.indirections.pop();const S=Ur(t);return S.value.setMetaProperty("ref-schema",b),a.replaceWith(S,li),n?void 0:S}async SchemaElement(t,r,n,i,s,a){if(!ft(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]);let c=await this.toReference(rs(this.reference.uri)),{uri:l}=c;const f=R7(l,t),h=Xt(f),d=new Lc({uri:h}),g=Cse(D=>D.canRead(d),this.options.resolve.resolvers),y=!g;let v=Xt(this.reference.uri)===f,_=!v;this.indirections.push(t);let b;try{if(g||y){l=this.toBaseURI(f);const D=f,P=an(c.value.result);if(b=Im(D,P),b=an(b),b.id=Hr.identify(b),!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return}else{if(l=this.toBaseURI(f),v=Xt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference(rs(f));const D=hi(f),P=an(c.value.result);b=Di(P,D),b=an(b),b.id=Hr.identify(b)}}catch(D){if(y&&D instanceof JC)if(Tm(mu(f))){if(v=Xt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference(rs(f));const P=mu(f),F=an(c.value.result);b=vR(P,F),b=an(b),b.id=Hr.identify(b)}else{if(l=this.toBaseURI(f),v=Xt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference(rs(f));const P=hi(f),F=an(c.value.result);b=Di(F,P),b=an(b),b.id=Hr.identify(b)}else throw D}if(t===b)throw new vr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 vr("Circular reference detected");if(this.options.dereference.circular==="replace"){var S,w;const D=new ve.RefElement(b.id,{type:"json-schema",uri:c.uri,$ref:Pe(t.$ref)}),F=((S=(w=this.options.dereference.strategyOpts["openapi-3-1"])===null||w===void 0?void 0:w.circularReplacer)!==null&&S!==void 0?S:this.options.dereference.circularReplacer)(D);return a.replaceWith(F,li),n?!1:F}}const E=Xt(c.refSet.rootRef.uri)!==c.uri,A=["error","replace"].includes(this.options.dereference.circular);if((_||E||Fi(b)&&ft(b.$ref)||A)&&!o.includesCycle(b)){u.add(t);const D=new Va({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});b=await cp(b,D,{keyMap:qi,nodeTypeGetter:yi}),u.delete(t)}if(this.indirections.pop(),yR(b)){const D=Ye(b);return D.setMetaProperty("id",Hr.generateId()),D.setMetaProperty("ref-fields",{$ref:Pe(t.$ref),$refBaseURI:f}),D.setMetaProperty("ref-origin",c.uri),D.setMetaProperty("ref-referencing-element-id",Ye(Hr.identify(t))),a.replaceWith(D,li),n?!1:D}if(Fi(b)){var R;const D=new _a([...b.content],Ye(b.meta),Ye(b.attributes));if(D.setMetaProperty("id",Hr.generateId()),t.forEach((P,F,M)=>{D.remove(Pe(F)),D.content.push(M)}),D.remove("$ref"),D.setMetaProperty("ref-fields",{$ref:Pe(t.$ref),$refBaseURI:f}),D.setMetaProperty("ref-origin",c.uri),D.setMetaProperty("ref-referencing-element-id",Ye(Hr.identify(t))),(R=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&R!==void 0&&R.dereferenceDiscriminatorMapping){var I;const P=s[s.length-1],F=[...u].findLast(Fi),M=F==null?void 0:F.getMetaProperty("schemaName"),G=Pe(D.getMetaProperty("schemaName"));if(G&&M&&P!==null&&P!==void 0&&(I=P.classes)!==null&&I!==void 0&&I.contains("json-schema-allOf")){var O;const ee=(O=this.allOfDiscriminatorMapping.get(G))!==null&&O!==void 0?O:[];ee.push(F),this.allOfDiscriminatorMapping.set(G,ee)}}b=D}return a.replaceWith(b,li),n?void 0:b}}const Nhe=Nr[Symbol.for("nodejs.util.promisify.custom")];class Mhe extends xoe{constructor(t){super({...t??{},name:"openapi-3-1"})}canDereference(t){var r;return t.mediaType!=="text/plain"?du.includes(t.mediaType):A7((r=t.parseResult)===null||r===void 0?void 0:r.result)}async dereference(t,r){var n;const i=zs(gR),s=(n=r.dereference.refSet)!==null&&n!==void 0?n:new lu,a=new lu;let o=s,u;s.has(t.uri)?u=s.find(A5(t.uri,"uri")):(u=new Ps({uri:t.uri,value:t.parseResult}),s.add(u)),r.dereference.immutable&&(s.refs.map(f=>new Ps({...f,value:Ye(f.value)})).forEach(f=>a.add(f)),u=a.find(f=>f.uri===t.uri),o=a);const c=new Va({reference:u,namespace:i,options:r}),l=await Nhe(o.rootRef.value,c,{keyMap:qi,nodeTypeGetter:yi});return r.dereference.immutable&&a.refs.filter(f=>f.uri.startsWith("immutable://")).map(f=>new Ps({...f,uri:f.uri.replace(/^immutable:\/\//,"")})).forEach(f=>s.add(f)),r.dereference.refSet===null&&s.clean(),a.clean(),l}}const Dhe=e=>e.slice(2),Ni=e=>{const t=Dhe(e);return t.reduce((r,n,i)=>{if(Ji(n)){const s=String(Pe(n.key));r.push(s)}else if(tn(t[i-2])){const s=t[i-2].content.indexOf(n);r.push(s)}return r},[])};class qhe{constructor({modelPropertyMacro:t,options:r}){X(this,"modelPropertyMacro");X(this,"options");X(this,"SchemaElement",{leave:(t,r,n,i,s)=>{typeof t.properties>"u"||Dt(t.properties)&&t.properties.forEach(a=>{if(Dt(a))try{const c=this.modelPropertyMacro(Pe(a));a.set("default",c)}catch(c){var o,u;const l=new Error(c,{cause:c});l.fullPath=[...Ni([...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 Fhe{constructor({options:t}){X(this,"options");X(this,"SchemaElement",{leave(t,r,n,i,s){if(typeof t.allOf>"u")return;if(!tn(t.allOf)){var a,o;const f=new TypeError("allOf must be an array");f.fullPath=[...Ni([...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(Fi)){var c,l;const f=new TypeError("Elements in allOf must be objects");f.fullPath=[...Ni([...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=vi.all([...f.content,t],{customMerge:d=>Pe(d)==="enum"?(g,y)=>{if(fu(["json-schema-enum"],g)&&fu(["json-schema-enum"],y)){const v=(b,S)=>tn(b)||tn(S)||Dt(b)||Dt(S)?!1:b.equals(Pe(S)),_=Ur(g);return _.content=R5(v)([...g.content,...y.content]),_}return vi(g,y)}:vi});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 Ha;class $he{constructor({parameterMacro:t,options:r}){X(this,"parameterMacro");X(this,"options");As(this,Ha);X(this,"OperationElement",{enter:t=>{Io(this,Ha,t)},leave:()=>{Io(this,Ha,void 0)}});X(this,"ParameterElement",{leave:(t,r,n,i,s)=>{const a=hr(this,Ha)?Pe(hr(this,Ha)):null,o=Pe(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=Ni([...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}}Ha=new WeakMap;const lp=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t};class Lhe extends ls{}const{wrapError:Ew}=KC,Sw=Nr[Symbol.for("nodejs.util.promisify.custom")],fi=new zC,Da=(e,t,r,n)=>{Ji(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class Ac extends Va{constructor({allowMetaPatches:r=!0,useCircularStructures:n=!1,basePath:i=null,...s}){super(s);X(this,"useCircularStructures");X(this,"allowMetaPatches");X(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(Pe(r.$ref)),_=Xt(this.reference.uri)===v,b=!_;if(!this.options.resolve.internal&&_||!this.options.resolve.external&&b)return!1;const S=await this.toReference(Pe(r.$ref)),w=Xr(v,Pe(r.$ref));this.indirections.push(r);const E=hi(w);let A=Di(S.value.result,E);if(A.id=fi.identify(A),Xa(A)){const D=Pe(r.meta.get("referenced-element")),P=`${D}-${Pe(fi.identify(A))}`;this.refractCache.has(P)?A=this.refractCache.get(P):or(A)?(A=ja.refract(A),A.setMetaProperty("referenced-element",D),this.refractCache.set(P,A)):(A=this.namespace.getElementClass(D).refract(A),this.refractCache.set(P,A))}if(r===A)throw new vr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 vr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const D=new ve.RefElement(A.id,{type:"reference",uri:S.uri,$ref:Pe(r.$ref),baseURI:w,referencingElement:r}),F=((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(D,Da),i?!1:F}}const R=Xt(S.refSet.rootRef.uri)!==S.uri,I=["error","replace"].includes(this.options.dereference.circular);if((b||R||bo(A)||I)&&!g.includesCycle(A)){var l;y.add(r);const D=new Ac({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:[...Ni([...a,i,r]),"$ref"]});A=await Sw(A,D,{keyMap:qi,nodeTypeGetter:yi}),y.delete(r)}this.indirections.pop();const O=Ur(A);if(O.setMetaProperty("ref-fields",{$ref:Pe(r.$ref),description:Pe(r.description),summary:Pe(r.summary)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Ye(fi.identify(r))),Dt(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&&Dt(O)&&!O.hasKey("$$ref")){const D=Xr(v,w);O.set("$$ref",D)}return o.replaceWith(O,Da),i?!1:O}catch(g){var f,h,d;const y=lp(g),v=Ew(y,{baseDoc:this.reference.uri,$ref:Pe(r.$ref),pointer:hi(Pe(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ni([...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(!ft(r.$ref))return;if(this.indirections.includes(r)||fu(["cycle"],r.$ref))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(Pe(r.$ref)),_=Xt(this.reference.uri)===v,b=!_;if(!this.options.resolve.internal&&_||!this.options.resolve.external&&b)return;const S=await this.toReference(Pe(r.$ref)),w=Xr(v,Pe(r.$ref));this.indirections.push(r);const E=hi(w);let A=Di(S.value.result,E);if(A.id=fi.identify(A),Xa(A)){const O=`path-item-${Pe(fi.identify(A))}`;this.refractCache.has(O)?A=this.refractCache.get(O):(A=ba.refract(A),this.refractCache.set(O,A))}if(r===A)throw new vr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 vr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const O=new ve.RefElement(A.id,{type:"path-item",uri:S.uri,$ref:Pe(r.$ref),baseURI:w,referencingElement:r}),P=((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,Da),i?!1:P}}const R=Xt(S.refSet.rootRef.uri)!==S.uri,I=["error","replace"].includes(this.options.dereference.circular);if((b||R||no(A)&&ft(A.$ref)||I)&&!g.includesCycle(A)){var l;y.add(r);const O=new Ac({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:[...Ni([...a,i,r]),"$ref"]});A=await Sw(A,O,{keyMap:qi,nodeTypeGetter:yi}),y.delete(r)}if(this.indirections.pop(),no(A)){const O=new ba([...A.content],Ye(A.meta),Ye(A.attributes));if(r.forEach((D,P,F)=>{O.remove(Pe(P)),O.content.push(F)}),O.remove("$ref"),O.setMetaProperty("ref-fields",{$ref:Pe(r.$ref)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Ye(fi.identify(r))),this.allowMetaPatches&&typeof O.get("$$ref")>"u"){const D=Xr(v,w);O.set("$$ref",D)}A=O}return o.replaceWith(A,Da),i?void 0:A}catch(g){var f,h,d;const y=lp(g),v=Ew(y,{baseDoc:this.reference.uri,$ref:Pe(r.$ref),pointer:hi(Pe(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ni([...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(!ft(r.$ref))return;if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]);let v=await this.toReference(rs(this.reference.uri)),{uri:_}=v;const b=R7(_,r),S=Xt(b),w=new Lc({uri:S}),E=!this.options.resolve.resolvers.some(F=>F.canRead(w)),A=!E;let R=Xt(this.reference.uri)===b,I=!R;this.indirections.push(r);let O;try{if(E||A){_=this.toBaseURI(b);const F=b,M=an(v.value.result);if(O=Im(F,M),O=an(O),O.id=fi.identify(O),!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return}else{if(_=this.toBaseURI(b),R=Xt(this.reference.uri)===_,I=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return;v=await this.toReference(rs(b));const F=hi(b),M=an(v.value.result);O=Di(M,F),O=an(O),O.id=fi.identify(O)}}catch(F){if(A&&F instanceof JC)if(Tm(mu(b))){if(R=Xt(this.reference.uri)===_,I=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return;v=await this.toReference(rs(b));const M=mu(b),G=an(v.value.result);O=vR(M,G),O=an(O),O.id=fi.identify(O)}else{if(_=this.toBaseURI(Pe(b)),R=Xt(this.reference.uri)===_,I=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return;v=await this.toReference(rs(b));const M=hi(b),G=an(v.value.result);O=Di(G,M),O=an(O),O.id=fi.identify(O)}else throw F}if(r===O)throw new vr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 vr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const F=new ve.RefElement(O.id,{type:"json-schema",uri:v.uri,$ref:Pe(r.$ref),baseURI:Xr(_,b),referencingElement:r}),G=((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)(F);return o.replaceWith(G,Da),i?!1:G}}const D=Xt(v.refSet.rootRef.uri)!==v.uri,P=["error","replace"].includes(this.options.dereference.circular);if((I||D||Fi(O)&&ft(O.$ref)||P)&&!g.includesCycle(O)){var l;y.add(r);const F=new Ac({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:[...Ni([...a,i,r]),"$ref"]});O=await Sw(O,F,{keyMap:qi,nodeTypeGetter:yi}),y.delete(r)}if(this.indirections.pop(),yR(O)){const F=Ye(O);return F.setMetaProperty("ref-fields",{$ref:Pe(r.$ref)}),F.setMetaProperty("ref-origin",v.uri),F.setMetaProperty("ref-referencing-element-id",Ye(fi.identify(r))),o.replaceWith(F,Da),i?!1:F}if(Fi(O)){const F=new _a([...O.content],Ye(O.meta),Ye(O.attributes));if(r.forEach((M,G,ee)=>{F.remove(Pe(G)),F.content.push(ee)}),F.remove("$ref"),F.setMetaProperty("ref-fields",{$ref:Pe(r.$ref)}),F.setMetaProperty("ref-origin",v.uri),F.setMetaProperty("ref-referencing-element-id",Ye(fi.identify(r))),this.allowMetaPatches&&typeof F.get("$$ref")>"u"){const M=Xr(_,b);F.set("$$ref",M)}O=F}return o.replaceWith(O,Da),i?void 0:O}catch(g){var f,h,d;const y=lp(g),v=new Lhe(`Could not resolve reference: ${y.message}`,{baseDoc:this.reference.uri,$ref:Pe(r.$ref),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ni([...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=lp(f),d=Ew(h,{baseDoc:this.reference.uri,externalValue:Pe(r.externalValue),fullPath:(u=this.basePath)!==null&&u!==void 0?u:[...Ni([...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 Bhe=Yh[Symbol.for("nodejs.util.promisify.custom")];class Uhe{constructor({parameterMacro:t,modelPropertyMacro:r,mode:n,options:i,...s}){const a=[];a.push(new Ac({...s,options:i})),typeof r=="function"&&a.push(new qhe({modelPropertyMacro:r,options:i})),n!=="strict"&&a.push(new Fhe({options:i})),typeof t=="function"&&a.push(new $he({parameterMacro:t,options:i}));const o=Bhe(a,{nodeTypeGetter:yi});Object.assign(this,o)}}const Vhe=Nr[Symbol.for("nodejs.util.promisify.custom")];class zhe extends Mhe{constructor({allowMetaPatches:r=!1,parameterMacro:n=null,modelPropertyMacro:i=null,mode:s="non-strict",ancestors:a=[],...o}={}){super({...o});X(this,"allowMetaPatches");X(this,"parameterMacro");X(this,"modelPropertyMacro");X(this,"mode");X(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=zs(gR),a=(i=n.dereference.refSet)!==null&&i!==void 0?i:new lu,o=new lu;let u=a,c;a.has(r.uri)?c=a.find(h=>h.uri===r.uri):(c=new Ps({uri:r.uri,value:r.parseResult}),a.add(c)),n.dereference.immutable&&(a.refs.map(h=>new Ps({...h,value:Ye(h.value)})).forEach(h=>o.add(h)),c=o.find(h=>h.uri===r.uri),u=o);const l=new Uhe({reference:c,namespace:s,options:n,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),f=await Vhe(u.rootRef.value,l,{keyMap:qi,nodeTypeGetter:yi});return n.dereference.immutable&&o.refs.filter(h=>h.uri.startsWith("immutable://")).map(h=>new Ps({...h,uri:h.uri.replace(/^immutable:\/\//,"")})).forEach(h=>a.add(h)),n.dereference.refSet===null&&a.clean(),o.clean(),f}}const Whe=e=>{const t=Pe(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new ve.ObjectElement({$ref:t},Ye(r.meta),Ye(r.attributes))},jm=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}=jm,y=d.find(ee=>ee.match(t)),v=MC(Qx())?Qx():fd,_=QC(e),b=Xr(v,_);let S;g.has(t)?S=g.get(t):(S=Ia.refract(t),S.classes.push("result"),g.set(t,S));const w=new Ui([S]),E=z9(a),A=E===""?"":`#${E}`,R=Di(S,E),I=new Ps({uri:b,value:w}),O=new lu({refs:[I]});E!==""&&(O.rootRef=void 0);const D=[new Set([R])],P=[],F=await Toe(R,{resolve:{baseURI:`${b}${A}`,resolvers:[new Che({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:s}},strategies:[new xhe]},parse:{mediaType:du.latest(),parsers:[new Ihe({allowEmpty:!1,sourceMap:!1}),new jhe({allowEmpty:!1,sourceMap:!1}),new Rhe({allowEmpty:!1,sourceMap:!1}),new The({allowEmpty:!1,sourceMap:!1}),new whe({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new zhe({allowMetaPatches:o,useCircularStructures:u,parameterMacro:l,modelPropertyMacro:f,mode:h,ancestors:D})],refSet:O,dereferenceOpts:{errors:P},immutable:!1,circular:u?"ignore":"replace",circularReplacer:u?$5.dereference.circularReplacer:Whe}}),M=hoe(R,F,S),G=c?M:y.normalize(M);return{spec:Pe(G),errors:P}}catch(g){if(g instanceof Za)return{spec:t,errors:[]};throw g}};jm.cache=new WeakMap;const _L=e=>{if(!Dt(e))return e;const t=[jpe({operationIdNormalizer:(n,i,s)=>Xh({operationId:n},i,s,{v2OperationIdCompatibilityMode:!1})}),Cpe(),Rpe(),Ppe(),kpe()];return ys(e,t,{toolboxCreator:C7,visitorOptions:{keyMap:qi,nodeTypeGetter:yi}})},Jhe=e=>t=>{const r=Ia.refract(t);r.classes.push("result");const n=e(r),i=Pe(n);return jm.cache.set(i,n),Pe(n)},Hhe={name:"openapi-3-1-apidom",match(e){return rR(e)},normalize(e){if(!Or(e)&&Bi(e)&&!e.$$normalized){const t=Jhe(_L)(e);return t.$$normalized=!0,t}return Or(e)?_L(e):e},async resolve(e){return jm(e)}},Khe=async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,i=QC(e),s=D9(e),a=t||await j9(s,{requestInterceptor:r,responseInterceptor:n})(i),o={...e,spec:a};return e.strategies.find(c=>c.match(a)).resolve(o)},T7=e=>async t=>{const r={...e,...t};return Khe(r)},Ghe=T7({strategies:[U9,B9,F9]});function Yhe(){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
|
|
142
|
-
`,t+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
|
|
143
|
-
`,t+=`server-variable = "{" server-variable-name "}"
|
|
144
|
-
`,t+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
145
|
-
`,t+=`
|
|
146
|
-
`,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
|
|
147
|
-
`,t+=`; https://www.rfc-editor.org/errata/eid6937
|
|
148
|
-
`,t+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
|
|
149
|
-
`,t+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
|
|
150
|
-
`,t+=` / pct-encoded)
|
|
151
|
-
`,t+=` ; any Unicode character except: CTL, SP,
|
|
152
|
-
`,t+=` ; DQUOTE, "%" (aside from pct-encoded),
|
|
153
|
-
`,t+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',t+=`
|
|
154
|
-
`,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
|
|
155
|
-
`,t+=`DIGIT = %x30-39 ; 0-9
|
|
156
|
-
`,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
|
|
157
|
-
`,t+=`
|
|
158
|
-
`,t+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
159
|
-
`,t+=`
|
|
160
|
-
`,t+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
|
|
161
|
-
`,t+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
|
|
162
|
-
`,t+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
|
|
163
|
-
`,t+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
|
|
164
|
-
`,t+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
|
|
165
|
-
`,t+=` / %xD0000-DFFFD / %xE1000-EFFFD
|
|
166
|
-
`,t+=`
|
|
167
|
-
`,t+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
|
|
168
|
-
`,t}}const Xhe=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-url-template",ri.charsToString(t,r,n)])}return _t.SEM_OK},Zhe=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable",ri.charsToString(t,r,n)])}return _t.SEM_OK},Qhe=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable-name",ri.charsToString(t,r,n)])}return _t.SEM_OK},eme=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["literals",ri.charsToString(t,r,n)])}return _t.SEM_OK},tme=new Yhe,I7=e=>{const t=new Oi;return t.ast=new nR,t.ast.callbacks["server-url-template"]=Xhe,t.ast.callbacks["server-variable"]=Zhe,t.ast.callbacks["server-variable-name"]=Qhe,t.ast.callbacks.literals=eme,{result:t.parse(tme,"server-url-template",e),ast:t.ast}},rme=(e,{strict:t=!1}={})=>{try{const r=I7(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}},nme=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},ime=e=>nme(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),sme=["literals","server-variable-name"],ame=(e,t,r={})=>{const i={...{encoder:ime},...r},s=I7(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>sme.includes(u)).map(([u,c])=>u==="server-variable-name"?Object.hasOwn(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};function j7(){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
|
|
169
|
-
`,t+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
170
|
-
`,t+=`path-template = slash *( path-segment slash ) [ path-segment ]
|
|
171
|
-
`,t+=`path-segment = 1*( path-literal / template-expression )
|
|
172
|
-
`,t+=`slash = "/"
|
|
173
|
-
`,t+=`path-literal = 1*pchar
|
|
174
|
-
`,t+=`template-expression = "{" template-expression-param-name "}"
|
|
175
|
-
`,t+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
176
|
-
`,t+=`
|
|
177
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
178
|
-
`,t+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
179
|
-
`,t+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
180
|
-
`,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
|
|
181
|
-
`,t+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
182
|
-
`,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
|
|
183
|
-
`,t+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
|
|
184
|
-
`,t+=` / "*" / "+" / "," / ";" / "="
|
|
185
|
-
`,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
|
|
186
|
-
`,t+=`
|
|
187
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
188
|
-
`,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
189
|
-
`,t+=`DIGIT = %x30-39 ; 0-9
|
|
190
|
-
`,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
|
|
191
|
-
`,t}}const ome=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["slash",ri.charsToString(t,r,n)]),_t.SEM_OK),ume=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["path-template",ri.charsToString(t,r,n)])}return _t.SEM_OK},cme=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["path-literal",ri.charsToString(t,r,n)]),_t.SEM_OK),lme=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["template-expression",ri.charsToString(t,r,n)]),_t.SEM_OK),fme=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["template-expression-param-name",ri.charsToString(t,r,n)]),_t.SEM_OK),pme=new j7,dme=e=>{const t=new Oi;return t.ast=new nR,t.ast.callbacks["path-template"]=ume,t.ast.callbacks.slash=ome,t.ast.callbacks["path-literal"]=cme,t.ast.callbacks["template-expression"]=lme,t.ast.callbacks["template-expression-param-name"]=fme,{result:t.parse(pme,"path-template",e),ast:t.ast}},hme=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},mme=e=>hme(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),gme=["slash","path-literal","template-expression-param-name"],$A=(e,t,r={})=>{const i={...{encoder:mme},...r},s=dme(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>gme.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 j7;new Oi;const yme={body:vme,header:_me,query:Sme,path:Eme,formData:bme};function vme({req:e,value:t}){t!==void 0&&(e.body=t)}function bme({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 _me({req:e,parameter:t,value:r}){e.headers=e.headers||{},typeof r<"u"&&(e.headers[t.name]=r)}function Eme({req:e,value:t,parameter:r,baseURL:n}){if(t!==void 0){const i=e.url.replace(n,""),s=$A(i,{[r.name]:t});e.url=n+s}}function Sme({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 Pm(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 Af(){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
|
|
192
|
-
`,t+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
|
|
193
|
-
`,t+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
|
|
194
|
-
`,t+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
|
|
195
|
-
`,t+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
|
|
196
|
-
`,t+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
|
|
197
|
-
`,t+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
|
|
198
|
-
`,t+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
|
|
199
|
-
`,t+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
|
|
200
|
-
`,t+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
|
|
201
|
-
`,t+=` ; Allow all printable characters except CTLs, semicolon and SP
|
|
202
|
-
`,t+=`
|
|
203
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
|
|
204
|
-
`,t+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
|
|
205
|
-
`,t+=`
|
|
206
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
|
|
207
|
-
`,t+=`; https://www.rfc-editor.org/errata/eid5518
|
|
208
|
-
`,t+=`cookie-pair = cookie-name "=" cookie-value
|
|
209
|
-
`,t+=`cookie-name = token
|
|
210
|
-
`,t+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
|
|
211
|
-
`,t+=` ; https://www.rfc-editor.org/errata/eid8242
|
|
212
|
-
`,t+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
|
|
213
|
-
`,t+=` ; US-ASCII characters excluding CTLs,
|
|
214
|
-
`,t+=` ; whitespace, DQUOTE, comma, semicolon,
|
|
215
|
-
`,t+=` ; and backslash
|
|
216
|
-
`,t+=`
|
|
217
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
|
|
218
|
-
`,t+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
|
|
219
|
-
`,t+=`
|
|
220
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
|
|
221
|
-
`,t+=`token = 1*(tchar)
|
|
222
|
-
`,t+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
|
223
|
-
`,t+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',t+=` / DIGIT / ALPHA
|
|
224
|
-
`,t+=` ; any VCHAR, except delimiters
|
|
225
|
-
`,t+=`
|
|
226
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
|
|
227
|
-
`,t+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
|
|
228
|
-
`,t+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
|
|
229
|
-
`,t+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
|
|
230
|
-
`,t+=`SP = %x20 ; US-ASCII SP, space (32)
|
|
231
|
-
`,t+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
|
|
232
|
-
`,t+=`
|
|
233
|
-
`,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
234
|
-
`,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
235
|
-
`,t+=`DIGIT = %x30-39 ; 0-9
|
|
236
|
-
`,t+=`DQUOTE = %x22 ; " (Double Quote)
|
|
237
|
-
`,t+=`WSP = SP / HTAB ; white space
|
|
238
|
-
`,t+=`HTAB = %x09 ; horizontal tab
|
|
239
|
-
`,t+=`CRLF = CR LF ; Internet standard newline
|
|
240
|
-
`,t+=`CR = %x0D ; carriage return
|
|
241
|
-
`,t+=`LF = %x0A ; linefeed
|
|
242
|
-
`,t}}new Af;const wme=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)},xme=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),km=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),P7=e=>km(e)?e.slice(1,-1):e,k7=e=>`"${e}"`,N7=e=>e,Ame=new Oi,Ome=new Af,bR=(e,{strict:t=!0,quoted:r=null}={})=>{try{const n=t?"cookie-value":"lenient-cookie-value",i=Ame.parse(Ome,n,e);return typeof r=="boolean"?i.success&&r===km(e):i.success}catch{return!1}},M7=e=>{const r=new TextEncoder().encode(e).reduce((n,i)=>n+String.fromCharCode(i),"");return btoa(r)},Cme=(e,t=M7)=>{const r=String(e);if(bR(r))return r;const n=km(r),i=n?P7(r):r,s=t(i);return n?k7(s):s},Rme=e=>xme(M7(e)),Tme=e=>Cme(e,Rme),Ime=new Oi,jme=new Af,D7=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return Ime.parse(jme,r,e).success}catch{return!1}},Pme=e=>{if(!D7(e))throw new TypeError(`Invalid cookie name: ${e}`)},q7=e=>{if(!bR(e))throw new TypeError(`Invalid cookie value: ${e}`)},EL={encoders:{name:N7,value:Tme},validators:{name:Pme,value:q7}},kme=(e,t,r={})=>{const n={...r,encoders:{...EL.encoders,...r.encoders},validators:{...EL.validators,...r.validators}},i=n.encoders.name(e),s=n.encoders.value(t);return n.validators.name(i),n.validators.value(s),`${i}=${s}`},Nme=(e,t={})=>(Array.isArray(e)?e:typeof e=="object"&&e!==null?Object.entries(e):[]).map(([n,i])=>kme(n,i,t)).join("; "),Mme=new Oi,Dme=new Af,qme=e=>{const t=String(e);if(bR(t))return t;const r=km(t),n=r?P7(t):t;let i="";for(const s of n)i+=Mme.parse(Dme,"cookie-octet",s).success?s:wme(s);return r?k7(i):i};new Oi;new Af;const Fme=e=>{if(!D7(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},$me="%3D",Lme="%26",Bme=e=>qme(e).replace(/[=&]/gu,t=>t==="="?$me:Lme),LA=(e,t={})=>Nme(e,Lh({encoders:{name:N7,value:Bme},validators:{name:Fme,value:q7}},t));function Ume({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=$A(u,{[i]:t},{encoder:f=>k9(Pm(f,l))})}else c=$A(u,{[i]:t},{encoder:l=>XC({key:r.name,value:l,style:s||"simple",explode:a??!1,escape:"reserved"})});e.url=n+c}function Vme({req:e,value:t,parameter:r}){if(e.query=e.query||{},t!==void 0&&r.content){const n=Object.keys(r.content)[0],i=Pm(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 zme=["accept","authorization","content-type"];function Wme({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(zme.indexOf(t.name.toLowerCase())>-1)){if(r!==void 0&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=Pm(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(e.headers[t.name]=XC({key:t.name,value:r,style:t.style||"simple",explode:typeof t.explode>"u"?!1:t.explode,escape:!1}))}}function Jme({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=Pm(r,s);e.headers.Cookie=LA({[n]:a});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var i;const s=XC({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=LA({[n]:a})}}const Hme=Object.freeze(Object.defineProperty({__proto__:null,cookie:Jme,header:Wme,path:Ume,query:Vme},Symbol.toStringTag,{value:"Module"})),Kme=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:F7}=Kme;function Gme(e,t){const{operation:r,requestBody:n,securities:i,spec:s,attachContentTypeForEmptyPayload:a}=e;let{requestContentType:o}=e;t=Yme({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,_])=>{const b=parseInt(v,10);return b>=200&&b<300&&Bi(_.content)}).reduce((v,[,_])=>v.concat(Object.keys(_.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 _;try{_=JSON.parse(n[v])}catch{_=n[v]}t.form[v]={value:_,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(([_,b])=>{t.form[_]={value:b,encoding:y[_]||{}}})}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function Yme({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||"",_=g.password||"",b=F7(`${v}:${_}`);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||{},_=d["x-tokenName"]||"access_token",b=v[_];let S=v.token_type;(!S||S.toLowerCase()==="bearer")&&(S="Bearer"),s.headers.Authorization=`${S} ${b}`}}})}),s)}function Xme(e,t){const{spec:r,operation:n,securities:i,requestContentType:s,responseContentType:a,attachContentTypeForEmptyPayload:o}=e;if(t=Zme({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 Zme({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,_=y["x-tokenName"]||"access_token",b=d&&d[_];let S=d&&d.token_type;if(h)if(v==="apiKey"){const w=y.in==="query"?"query":"headers";i[w]=i[w]||{},i[w][y.name]=g}else if(v==="basic")if(g.header)i.headers.authorization=g.header;else{const w=g.username||"",E=g.password||"";g.base64=F7(`${w}:${E}`),i.headers.authorization=`Basic ${g.base64}`}else v==="oauth2"&&b&&(S=!S||S.toLowerCase()==="bearer"?"Bearer":S,i.headers.authorization=`${S} ${b}`)})}),i)}function Qme(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 ege(e,t){return Qme(e,t)||null}function $7(e,t){return`${t.toLowerCase()}-${e}`}function tge(e,t){return!e||!e.paths?null:ege(e,({pathName:r,method:n,operation:i})=>{if(!i||typeof i!="object")return!1;const s=i.operationId,a=Xh(i,r,n),o=$7(r,n);return[a,o,s].some(u=>u&&u===t)})}const SL=e=>Array.isArray(e)?e:[],Oc=(e,{recurse:t=!0,depth:r=1}={})=>{if(Bi(e)){if(e.type==="object"||e.type==="array"||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>w9)&&t){const n=Array.isArray(e.oneOf)?e.oneOf.find(s=>Oc(s,{recurse:t,depth:r+1})):void 0;if(n)return n;const i=Array.isArray(e.anyOf)?e.anyOf.find(s=>Oc(s,{recurse:t,depth:r+1})):void 0;if(i)return i}}},ww=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(Bi(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},Np=e=>{try{return new URL(e)}catch{const t=new URL(e,fd),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 rge extends ls{}const nge=(e,t)=>t.filter(r=>r.name===e),ige=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},sge={buildRequest:L7};function age({http:e,fetch:t,spec:r,operationId:n,pathName:i,method:s,parameters:a,securities:o,...u}){const c=e||t||Bc;i&&s&&!n&&(n=$7(i,s));const l=sge.buildRequest({spec:r,operationId:n,parameters:a,securities:o,http:c,...u});return l.body&&(Bi(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),c(l)}function L7(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 _=L9(t);y||(_?y=Hme:y=yme);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 w=tge(t,r);if(!w)throw new rge(`Operation ${r} not found`);const{operation:E={},method:A,pathName:R}=w;if(v=v??oge({spec:t,scheme:i,contextUrl:o,server:c,serverVariables:l,pathName:R,method:A,serverVariableEncoder:d}),S.url+=v,!r)return delete S.cookies,S;S.url+=R,S.method=`${A}`.toUpperCase(),g=g||{};const I=t.paths[R]||{};n&&(S.headers.accept=n);const O=ige([].concat(SL(E.parameters)).concat(SL(I.parameters)));O.forEach(P=>{const F=y[P.in];let M;if(P.in==="body"&&P.schema&&P.schema.properties&&(M=g),M=P&&P.name&&g[P.name],typeof M>"u"?M=P&&P.name&&g[`${P.in}.${P.name}`]:nge(P.name,O).length>1&&console.warn(`Parameter '${P.name}' is ambiguous because the defined spec has more than one parameter with the name: '${P.name}' and the passed-in parameter values did not define an 'in' value.`),M!==null){if(typeof P.default<"u"&&typeof M>"u"&&(M=P.default),typeof M>"u"&&P.required&&!P.allowEmptyValue)throw new Error(`Required parameter ${P.name} is not provided`);_&&typeof M=="string"&&(wc("type",P.schema)&&typeof P.schema.type=="string"&&Oc(P.schema,{recurse:!1})?M=ww({value:M,silentFail:!1}):wc("type",P.schema)&&Array.isArray(P.schema.type)&&Oc(P.schema,{recurse:!1})?M=ww({value:M,silentFail:!0}):!wc("type",P.schema)&&Oc(P.schema,{recurse:!0})&&(M=ww({value:M,silentFail:!0}))),F&&F({req:S,parameter:P,value:M,operation:E,spec:t,baseURL:v})}});const D={...e,operation:E};if(_?S=Gme(D,S):S=Xme(D,S),S.cookies&&Object.keys(S.cookies).length>0){const P=LA(S.cookies);Vh(S.headers.Cookie)?S.headers.Cookie+=`; ${P}`:S.headers.Cookie=P}return S.cookies&&delete S.cookies,ZC(S)}const BA=e=>e?e.replace(/\W/g,""):null;function oge(e){return L9(e.spec)?uge(e):lge(e)}const xw=e=>Array.isArray(e)&&e.length>0;function uge({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=xw(h)?h:xw(d)?d:xw(g)?g:[rue],n&&(f=c.find(y=>y.url===n),f&&(l=n)),l||([f]=c,l=f.url),rme(l,{strict:!0})){const y=Object.entries({...f.variables}).reduce((v,[_,b])=>(v[_]=b.default,v),{});l=ame(l,{...y,...s},{encoder:typeof a=="function"?a:b5})}return cge(l,i)}function cge(e="",t=""){const r=Np(e&&t?Xr(t,e):e),n=Np(t),i=BA(r.protocol)||BA(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 lge({spec:e,scheme:t,contextUrl:r=""}){const n=Np(r),i=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||i||BA(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 fge=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 Ghe({spec:d,...f,allowMetaPatches:!0,skipNormalization:!rR(e)});return!n&&Array.isArray(t)&&t.length&&(g.spec=t.reduce((y,v)=>y==null?void 0:y[v],g.spec)||null),g},pge=e=>async(t,r,n={})=>{const i={...e,...n};return fge(t,r,i)};var fp={exports:{}},Aw={};/**
|
|
243
|
-
* @license React
|
|
244
|
-
* use-sync-external-store-with-selector.production.js
|
|
245
|
-
*
|
|
246
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the MIT license found in the
|
|
249
|
-
* LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/var wL;function dge(){if(wL)return Aw;wL=1;var e=Lt;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 Aw.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(E){if(!_){if(_=!0,b=E,E=f(E),h!==void 0&&g.hasValue){var A=g.value;if(h(A,E))return S=A}return S=E}if(A=S,r(b,E))return A;var R=f(E);return h!==void 0&&h(A,R)?(b=E,A):(b=E,S=R)}var _=!1,b,S,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[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},Aw}var Ow={};/**
|
|
251
|
-
* @license React
|
|
252
|
-
* use-sync-external-store-with-selector.development.js
|
|
253
|
-
*
|
|
254
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
255
|
-
*
|
|
256
|
-
* This source code is licensed under the MIT license found in the
|
|
257
|
-
* LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/var xL;function hge(){return xL||(xL=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=Lt,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,o=t.useDebugValue;Ow.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(E){if(!_){if(_=!0,b=E,E=f(E),h!==void 0&&g.hasValue){var A=g.value;if(h(A,E))return S=A}return S=E}if(A=S,r(b,E))return A;var R=f(E);return h!==void 0&&h(A,R)?(b=E,A):(b=E,S=R)}var _=!1,b,S,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[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())})()),Ow}var AL;function mge(){return AL||(AL=1,process.env.NODE_ENV==="production"?fp.exports=dge():fp.exports=hge()),fp.exports}mge();var B7=ht.version.startsWith("19"),gge=Symbol.for(B7?"react.transitional.element":"react.element"),yge=Symbol.for("react.portal"),U7=Symbol.for("react.fragment"),V7=Symbol.for("react.strict_mode"),z7=Symbol.for("react.profiler"),_R=Symbol.for("react.consumer"),ER=Symbol.for("react.context"),SR=Symbol.for("react.forward_ref"),W7=Symbol.for("react.suspense"),J7=Symbol.for("react.suspense_list"),Nm=Symbol.for("react.memo"),H7=Symbol.for("react.lazy"),vge=Symbol.for("react.offscreen"),bge=Symbol.for("react.client.reference"),_ge=SR,Ege=Nm;function Sge(e){return typeof e=="string"||typeof e=="function"||e===U7||e===z7||e===V7||e===W7||e===J7||e===vge||typeof e=="object"&&e!==null&&(e.$$typeof===H7||e.$$typeof===Nm||e.$$typeof===ER||e.$$typeof===_R||e.$$typeof===SR||e.$$typeof===bge||e.getModuleId!==void 0)}function UA(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case gge:switch(e=e.type,e){case U7:case z7:case V7:case W7:case J7:return e;default:switch(e=e&&e.$$typeof,e){case ER:case SR:case H7:case Nm:return e;case _R:return e;default:return t}}case yge:return t}}}function wge(e){return B7?UA(e)===_R:UA(e)===ER}function xge(e){return UA(e)===Nm}function wR(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Cw(e,t){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||wR(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${t} in connect.`)}function Age(e,t,r){Cw(e,"mapStateToProps"),Cw(t,"mapDispatchToProps"),Cw(r,"mergeProps")}function Oge(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 _(b,S){const w=!s(S,c),E=!i(b,u,S,c);return u=b,c=S,w&&E?g():w?y():E?v():h}return function(S,w){return o?_(S,w):d(S,w)}}function Cge(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"&&Age(s,a,o),Oge(s,a,o,e,i)}function Rge(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 Tge(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 K7(e,t,r){Tge(e)||wR(`${r}() in ${t} must return a plain object. Instead received ${e}.`)}function VA(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function OL(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function G7(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=OL(e);let c=s(o,u);return typeof c=="function"&&(s.mapToProps=c,s.dependsOnOwnProps=OL(c),c=s(o,u)),process.env.NODE_ENV!=="production"&&K7(c,i,t),c},s}}function xR(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Ige(e){return e&&typeof e=="object"?VA(t=>Rge(e,t)):e?typeof e=="function"?G7(e,"mapDispatchToProps"):xR(e,"mapDispatchToProps"):VA(t=>({dispatch:t}))}function jge(e){return e?typeof e=="function"?G7(e,"mapStateToProps"):xR(e,"mapStateToProps"):VA(()=>({}))}function Pge(e,t,r){return{...r,...e,...t}}function kge(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"&&K7(a,n,"mergeProps")),a}}}function Nge(e){return e?typeof e=="function"?kge(e):xR(e,"mergeProps"):()=>Pge}function Mge(e){e()}function Dge(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Mge(()=>{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 CL={notify(){},get:()=>[]};function Y7(e,t){let r,n=CL,i=0,s=!1;function a(y){l();const v=n.subscribe(y);let _=!1;return()=>{_||(_=!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=Dge())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=CL)}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 qge=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fge=qge(),$ge=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Lge=$ge(),Bge=()=>Fge||Lge?ht.useLayoutEffect:ht.useEffect,yd=Bge();function RL(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Rw(e,t){if(RL(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])||!RL(e[r[i]],t[r[i]]))return!1;return!0}var Uge={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zge={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},X7={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wge={[_ge]:zge,[Ege]:X7};function TL(e){return xge(e)?X7:Wge[e.$$typeof]||Uge}var Jge=Object.defineProperty,Hge=Object.getOwnPropertyNames,IL=Object.getOwnPropertySymbols,Kge=Object.getOwnPropertyDescriptor,Gge=Object.getPrototypeOf,jL=Object.prototype;function zA(e,t){if(typeof t!="string"){if(jL){const s=Gge(t);s&&s!==jL&&zA(e,s)}let r=Hge(t);IL&&(r=r.concat(IL(t)));const n=TL(e),i=TL(t);for(let s=0;s<r.length;++s){const a=r[s];if(!Vge[a]&&!(i&&i[a])&&!(n&&n[a])){const o=Kge(t,a);try{Jge(e,a,o)}catch{}}}}return e}var Tw=Symbol.for("react-redux-context"),Iw=typeof globalThis<"u"?globalThis:{};function Yge(){if(!ht.createContext)return{};const e=Iw[Tw]??(Iw[Tw]=new Map);let t=e.get(ht.createContext);return t||(t=ht.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(ht.createContext,t)),t}var Z7=Yge(),Xge=[null,null],Zge=e=>{try{return JSON.stringify(e)}catch{return String(e)}};function Qge(e,t,r){yd(()=>e(...t),r)}function eye(e,t,r,n,i,s){e.current=n,r.current=!1,i.current&&(i.current=null,s())}function tye(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,_;try{v=n(y,i.current)}catch(b){_=b,h=b}_||(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 rye(e,t){return e===t}var PL=!1;function nye(e,t,r,{pure:n,areStatesEqual:i=rye,areOwnPropsEqual:s=Rw,areStatePropsEqual:a=Rw,areMergedPropsEqual:o=Rw,forwardRef:u=!1,context:c=Z7}={}){process.env.NODE_ENV!=="production"&&n!==void 0&&!PL&&(PL=!0,wR('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const l=c,f=jge(e),h=Ige(t),d=Nge(r),g=!!e;return v=>{if(process.env.NODE_ENV!=="production"&&!Sge(v))throw new Error(`You must pass a component to the function returned by connect. Instead received ${Zge(v)}`);const _=v.displayName||v.name||"Component",b=`Connect(${_})`,S={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:_,WrappedComponent:v,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:d,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:s,areMergedPropsEqual:o};function w(R){const[I,O,D]=ht.useMemo(()=>{const{reactReduxForwardedRef:he,...je}=R;return[R.context,he,je]},[R]),P=ht.useMemo(()=>{let he=l;if(I!=null&&I.Consumer&&process.env.NODE_ENV!=="production"){if(!wge(ht.createElement(I.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");he=I}return he},[I,l]),F=ht.useContext(P),M=!!R.store&&!!R.store.getState&&!!R.store.dispatch,G=!!F&&!!F.store;if(process.env.NODE_ENV!=="production"&&!M&&!G)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 ee=M?R.store:F.store,H=G?F.getServerState:ee.getState,Q=ht.useMemo(()=>Cge(ee.dispatch,S),[ee]),[re,ne]=ht.useMemo(()=>{if(!g)return Xge;const he=Y7(ee,M?void 0:F.subscription),je=he.notifyNestedSubs.bind(he);return[he,je]},[ee,M,F]),B=ht.useMemo(()=>M?F:{...F,subscription:re},[M,F,re]),J=ht.useRef(void 0),ie=ht.useRef(D),oe=ht.useRef(void 0),ce=ht.useRef(!1),te=ht.useRef(!1),z=ht.useRef(void 0);yd(()=>(te.current=!0,()=>{te.current=!1}),[]);const V=ht.useMemo(()=>()=>oe.current&&D===ie.current?oe.current:Q(ee.getState(),D),[ee,D]),fe=ht.useMemo(()=>je=>re?tye(g,ee,re,Q,ie,J,ce,te,oe,ne,je):()=>{},[re]);Qge(eye,[ie,J,ce,D,oe,ne]);let me;try{me=ht.useSyncExternalStore(fe,V,H?()=>Q(H(),D):V)}catch(he){throw z.current&&(he.message+=`
|
|
259
|
-
The error may be correlated with this previous error:
|
|
260
|
-
${z.current.stack}
|
|
261
|
-
|
|
262
|
-
`),he}yd(()=>{z.current=void 0,oe.current=void 0,J.current=me});const Ce=ht.useMemo(()=>ht.createElement(v,{...me,ref:O}),[O,v,me]);return ht.useMemo(()=>g?ht.createElement(P.Provider,{value:B},Ce):Ce,[P,Ce,B])}const A=ht.memo(w);if(A.WrappedComponent=v,A.displayName=w.displayName=b,u){const I=ht.forwardRef(function(D,P){return ht.createElement(A,{...D,reactReduxForwardedRef:P})});return I.displayName=b,I.WrappedComponent=v,zA(I,v)}return zA(A,v)}}var iye=nye;function sye(e){const{children:t,context:r,serverState:n,store:i}=e,s=ht.useMemo(()=>{const u=Y7(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=ht.useMemo(()=>i.getState(),[i]);yd(()=>{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||Z7;return ht.createElement(o.Provider,{value:s},t)}var aye=sye,oye=cl();const uye=We.getDefaultExportFromCjs(oye);function cye(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 lye(e,t){if(e==null)return{};var r,n,i=cye(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 WA(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 fye(e){if(Array.isArray(e))return WA(e)}function pye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dye(e,t){if(e){if(typeof e=="string")return WA(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)?WA(e,t):void 0}}function hye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
263
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JA(e){return fye(e)||pye(e)||dye(e)||hye()}function Vc(e){"@babel/helpers - typeof";return Vc=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},Vc(e)}function mye(e,t){if(Vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gye(e){var t=mye(e,"string");return Vc(t)=="symbol"?t:t+""}function Q7(e,t,r){return(t=gye(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HA(){return HA=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},HA.apply(null,arguments)}function kL(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 Wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kL(Object(r),!0).forEach(function(n){Q7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yye(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 jw={};function vye(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return jw[t]||(jw[t]=yye(e)),jw[t]}function bye(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=vye(n);return i.reduce(function(s,a){return Wo(Wo({},s),r[a])},t)}function NL(e){return e.join(" ")}function _ye(e,t){var r=0;return function(n){return r+=1,n.map(function(i,s){return eV({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(s)})})}}function eV(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=_ye(r,s),h;if(!s)h=Wo(Wo({},o),{},{className:NL(o.className)});else{var d=Object.keys(r).reduce(function(_,b){return b.split(".").forEach(function(S){_.includes(S)||_.push(S)}),_},[]),g=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&g.concat(o.className.filter(function(_){return!d.includes(_)}));h=Wo(Wo({},o),{},{className:NL(y)||void 0,style:bye(o.className,Object.assign({},o.style,i),r)})}var v=f(t.children);return Lt.createElement(c,HA({key:a},h),v)}}const Eye=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var Sye=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ML(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 la(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ML(Object(r),!0).forEach(function(n){Q7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ML(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var wye=/\n/g;function xye(e){return e.match(wye)}function Aye(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(i,s){var a=s+r;return Lt.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(a):n},"".concat(a,`
|
|
264
|
-
`))})}function Oye(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 Lt.createElement("code",{style:Object.assign({},r,i)},Aye({lines:t.replace(/\n$/,"").split(`
|
|
265
|
-
`),style:a,startingLineNumber:o}))}function Cye(e){return"".concat(e.toString().length,".25em")}function tV(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 rV(e,t,r){var n={display:"inline-block",minWidth:Cye(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,s=la(la({},n),i);return s}function Mp(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?la({},typeof o=="function"?o(r):o):{};if(g.className=g.className?[].concat(JA(g.className.trim().split(/\s+/)),JA(c)):c,r&&s){var y=rV(n,r,i);t.unshift(tV(r,y))}return f&l&&(g.style=la({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:t}}function nV(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(Mp({children:[i],className:JA(new Set(t))}));else if(i.children){var s=t.concat(i.properties.className);nV(i.children,s).forEach(function(a){return r.push(a)})}}return r}function Rye(e,t,r,n,i,s,a,o,u){var c,l=nV(e.value),f=[],h=-1,d=0;function g(E,A){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Mp({children:E,lineNumber:A,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:i,lineProps:r,className:R,showLineNumbers:n,wrapLongLines:u,wrapLines:t})}function y(E,A){if(n&&A&&i){var R=rV(o,A,a);E.unshift(tV(A,R))}return E}function v(E,A){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||R.length>0?g(E,A,R):y(E,A)}for(var _=function(){var A=l[d],R=A.children[0].value,I=xye(R);if(I){var O=R.split(`
|
|
266
|
-
`);O.forEach(function(D,P){var F=n&&f.length+s,M={type:"text",value:"".concat(D,`
|
|
267
|
-
`)};if(P===0){var G=l.slice(h+1,d).concat(Mp({children:[M],className:A.properties.className})),ee=v(G,F);f.push(ee)}else if(P===O.length-1){var H=l[d+1]&&l[d+1].children&&l[d+1].children[0],Q={type:"text",value:"".concat(D)};if(H){var re=Mp({children:[Q],className:A.properties.className});l.splice(d+1,0,re)}else{var ne=[Q],B=v(ne,F,A.properties.className);f.push(B)}}else{var J=[M],ie=v(J,F,A.properties.className);f.push(ie)}}),h=d}d++};d<l.length;)_();if(h!==l.length-1){var b=l.slice(h+1,l.length);if(b&&b.length){var S=n&&f.length+s,w=v(b,S);f.push(w)}}return t?f:(c=[]).concat.apply(c,f)}function Tye(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,s){return eV({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(s)})})}function iV(e){return e&&typeof e.highlightAuto<"u"}function Iye(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(iV(t)){var s=Eye(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 jye(e,t){return function(n){var i,s,a=n.language,o=n.children,u=n.style,c=u===void 0?t:u,l=n.customStyle,f=l===void 0?{}:l,h=n.codeTagProps,d=h===void 0?{className:a?"language-".concat(a):void 0,style:la(la({},c['code[class*="language-"]']),c['code[class*="language-'.concat(a,'"]')])}:h,g=n.useInlineStyles,y=g===void 0?!0:g,v=n.showLineNumbers,_=v===void 0?!1:v,b=n.showInlineLineNumbers,S=b===void 0?!0:b,w=n.startingLineNumber,E=w===void 0?1:w,A=n.lineNumberContainerStyle,R=n.lineNumberStyle,I=R===void 0?{}:R,O=n.wrapLines,D=n.wrapLongLines,P=D===void 0?!1:D,F=n.lineProps,M=F===void 0?{}:F,G=n.renderer,ee=n.PreTag,H=ee===void 0?"pre":ee,Q=n.CodeTag,re=Q===void 0?"code":Q,ne=n.code,B=ne===void 0?(Array.isArray(o)?o[0]:o)||"":ne,J=n.astGenerator,ie=lye(n,Sye);J=J||e;var oe=_?Lt.createElement(Oye,{containerStyle:A,codeStyle:d.style||{},numberStyle:I,startingLineNumber:E,codeString:B}):null,ce=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},te=iV(J)?"hljs":"prismjs",z=y?Object.assign({},ie,{style:Object.assign({},ce,f)}):Object.assign({},ie,{className:ie.className?"".concat(te," ").concat(ie.className):te,style:Object.assign({},f)});if(P?d.style=la({whiteSpace:"pre-wrap"},d.style):d.style=la({whiteSpace:"pre"},d.style),!J)return Lt.createElement(H,z,oe,Lt.createElement(re,d,B));(O===void 0&&G||P)&&(O=!0),G=G||Tye;var V=[{type:"text",value:B}],fe=Iye({astGenerator:J,language:a,code:B,defaultCodeValue:V});fe.language===null&&(fe.value=V);var me=(i=(s=B.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0,Ce=E+me,Ne=Rye(fe,O,M,_,S,E,Ce,I,P);return Lt.createElement(H,z,Lt.createElement(re,d,!S&&oe,G({rows:Ne,stylesheet:c,useInlineStyles:y})))}}var qa={},Pw,DL;function Pye(){if(DL)return Pw;DL=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(Ie){var qe=de[Ie];typeof qe=="object"&&!Object.isFrozen(qe)&&e(qe)}),de}var t=e,r=e;t.default=r;class n{constructor(Ie){Ie.data===void 0&&(Ie.data={}),this.data=Ie.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(de){return de.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(de,...Ie){const qe=Object.create(null);for(const nt in de)qe[nt]=de[nt];return Ie.forEach(function(nt){for(const dt in nt)qe[dt]=nt[dt]}),qe}const a="</span>",o=de=>!!de.kind;class u{constructor(Ie,qe){this.buffer="",this.classPrefix=qe.classPrefix,Ie.walk(this)}addText(Ie){this.buffer+=i(Ie)}openNode(Ie){if(!o(Ie))return;let qe=Ie.kind;Ie.sublanguage||(qe=`${this.classPrefix}${qe}`),this.span(qe)}closeNode(Ie){o(Ie)&&(this.buffer+=a)}value(){return this.buffer}span(Ie){this.buffer+=`<span class="${Ie}">`}}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(Ie){this.top.children.push(Ie)}openNode(Ie){const qe={kind:Ie,children:[]};this.add(qe),this.stack.push(qe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ie){return this.constructor._walk(Ie,this.rootNode)}static _walk(Ie,qe){return typeof qe=="string"?Ie.addText(qe):qe.children&&(Ie.openNode(qe),qe.children.forEach(nt=>this._walk(Ie,nt)),Ie.closeNode(qe)),Ie}static _collapse(Ie){typeof Ie!="string"&&Ie.children&&(Ie.children.every(qe=>typeof qe=="string")?Ie.children=[Ie.children.join("")]:Ie.children.forEach(qe=>{c._collapse(qe)}))}}class l extends c{constructor(Ie){super(),this.options=Ie}addKeyword(Ie,qe){Ie!==""&&(this.openNode(qe),this.addText(Ie),this.closeNode())}addText(Ie){Ie!==""&&this.add(Ie)}addSublanguage(Ie,qe){const nt=Ie.root;nt.kind=qe,nt.sublanguage=!0,this.add(nt)}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(qe=>h(qe)).join("")}function g(...de){return"("+de.map(qe=>h(qe)).join("|")+")"}function y(de){return new RegExp(de.toString()+"|").exec("").length-1}function v(de,Ie){const qe=de&&de.exec(Ie);return qe&&qe.index===0}const _=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(de,Ie="|"){let qe=0;return de.map(nt=>{qe+=1;const dt=qe;let wt=h(nt),Kt="";for(;wt.length>0;){const Fe=_.exec(wt);if(!Fe){Kt+=wt;break}Kt+=wt.substring(0,Fe.index),wt=wt.substring(Fe.index+Fe[0].length),Fe[0][0]==="\\"&&Fe[1]?Kt+="\\"+String(Number(Fe[1])+dt):(Kt+=Fe[0],Fe[0]==="("&&qe++)}return Kt}).map(nt=>`(${nt})`).join(Ie)}const S=/\b\B/,w="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",R="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",O="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D=(de={})=>{const Ie=/^#![ ]*\//;return de.binary&&(de.begin=d(Ie,/.*\b/,de.binary,/\b.*/)),s({className:"meta",begin:Ie,end:/$/,relevance:0,"on:begin":(qe,nt)=>{qe.index!==0&&nt.ignoreMatch()}},de)},P={begin:"\\\\[\\s\\S]",relevance:0},F={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},M={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},G={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/},ee=function(de,Ie,qe={}){const nt=s({className:"comment",begin:de,end:Ie,contains:[]},qe);return nt.contains.push(G),nt.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),nt},H=ee("//","$"),Q=ee("/\\*","\\*/"),re=ee("#","$"),ne={className:"number",begin:A,relevance:0},B={className:"number",begin:R,relevance:0},J={className:"number",begin:I,relevance:0},ie={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},oe={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]}]},ce={className:"title",begin:w,relevance:0},te={className:"title",begin:E,relevance:0},z={begin:"\\.\\s*"+E,relevance:0};var fe=Object.freeze({__proto__:null,MATCH_NOTHING_RE:S,IDENT_RE:w,UNDERSCORE_IDENT_RE:E,NUMBER_RE:A,C_NUMBER_RE:R,BINARY_NUMBER_RE:I,RE_STARTERS_RE:O,SHEBANG:D,BACKSLASH_ESCAPE:P,APOS_STRING_MODE:F,QUOTE_STRING_MODE:M,PHRASAL_WORDS_MODE:G,COMMENT:ee,C_LINE_COMMENT_MODE:H,C_BLOCK_COMMENT_MODE:Q,HASH_COMMENT_MODE:re,NUMBER_MODE:ne,C_NUMBER_MODE:B,BINARY_NUMBER_MODE:J,CSS_NUMBER_MODE:ie,REGEXP_MODE:oe,TITLE_MODE:ce,UNDERSCORE_TITLE_MODE:te,METHOD_GUARD:z,END_SAME_AS_BEGIN:function(de){return Object.assign(de,{"on:begin":(Ie,qe)=>{qe.data._beginMatch=Ie[1]},"on:end":(Ie,qe)=>{qe.data._beginMatch!==Ie[1]&&qe.ignoreMatch()}})}});function me(de,Ie){de.input[de.index-1]==="."&&Ie.ignoreMatch()}function Ce(de,Ie){Ie&&de.beginKeywords&&(de.begin="\\b("+de.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",de.__beforeBegin=me,de.keywords=de.keywords||de.beginKeywords,delete de.beginKeywords,de.relevance===void 0&&(de.relevance=0))}function Ne(de,Ie){Array.isArray(de.illegal)&&(de.illegal=g(...de.illegal))}function he(de,Ie){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 je(de,Ie){de.relevance===void 0&&(de.relevance=1)}const Be=["of","and","for","in","not","or","if","then","parent","list","value"],_e="keyword";function we(de,Ie,qe=_e){const nt={};return typeof de=="string"?dt(qe,de.split(" ")):Array.isArray(de)?dt(qe,de):Object.keys(de).forEach(function(wt){Object.assign(nt,we(de[wt],Ie,wt))}),nt;function dt(wt,Kt){Ie&&(Kt=Kt.map(Fe=>Fe.toLowerCase())),Kt.forEach(function(Fe){const Ke=Fe.split("|");nt[Ke[0]]=[wt,Ae(Ke[0],Ke[1])]})}}function Ae(de,Ie){return Ie?Number(Ie):U(de)?0:1}function U(de){return Be.includes(de.toLowerCase())}function T(de,{plugins:Ie}){function qe(Fe,Ke){return new RegExp(h(Fe),"m"+(de.case_insensitive?"i":"")+(Ke?"g":""))}class nt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ke,lt){lt.position=this.position++,this.matchIndexes[this.matchAt]=lt,this.regexes.push([lt,Ke]),this.matchAt+=y(Ke)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ke=this.regexes.map(lt=>lt[1]);this.matcherRe=qe(b(Ke),!0),this.lastIndex=0}exec(Ke){this.matcherRe.lastIndex=this.lastIndex;const lt=this.matcherRe.exec(Ke);if(!lt)return null;const it=lt.findIndex((pn,Ws)=>Ws>0&&pn!==void 0),Gt=this.matchIndexes[it];return lt.splice(0,it),Object.assign(lt,Gt)}}class dt{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ke){if(this.multiRegexes[Ke])return this.multiRegexes[Ke];const lt=new nt;return this.rules.slice(Ke).forEach(([it,Gt])=>lt.addRule(it,Gt)),lt.compile(),this.multiRegexes[Ke]=lt,lt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ke,lt){this.rules.push([Ke,lt]),lt.type==="begin"&&this.count++}exec(Ke){const lt=this.getMatcher(this.regexIndex);lt.lastIndex=this.lastIndex;let it=lt.exec(Ke);if(this.resumingScanAtSamePosition()&&!(it&&it.index===this.lastIndex)){const Gt=this.getMatcher(0);Gt.lastIndex=this.lastIndex+1,it=Gt.exec(Ke)}return it&&(this.regexIndex+=it.position+1,this.regexIndex===this.count&&this.considerAll()),it}}function wt(Fe){const Ke=new dt;return Fe.contains.forEach(lt=>Ke.addRule(lt.begin,{rule:lt,type:"begin"})),Fe.terminatorEnd&&Ke.addRule(Fe.terminatorEnd,{type:"end"}),Fe.illegal&&Ke.addRule(Fe.illegal,{type:"illegal"}),Ke}function Kt(Fe,Ke){const lt=Fe;if(Fe.isCompiled)return lt;[he].forEach(Gt=>Gt(Fe,Ke)),de.compilerExtensions.forEach(Gt=>Gt(Fe,Ke)),Fe.__beforeBegin=null,[Ce,Ne,je].forEach(Gt=>Gt(Fe,Ke)),Fe.isCompiled=!0;let it=null;if(typeof Fe.keywords=="object"&&(it=Fe.keywords.$pattern,delete Fe.keywords.$pattern),Fe.keywords&&(Fe.keywords=we(Fe.keywords,de.case_insensitive)),Fe.lexemes&&it)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return it=it||Fe.lexemes||/\w+/,lt.keywordPatternRe=qe(it,!0),Ke&&(Fe.begin||(Fe.begin=/\B|\b/),lt.beginRe=qe(Fe.begin),Fe.endSameAsBegin&&(Fe.end=Fe.begin),!Fe.end&&!Fe.endsWithParent&&(Fe.end=/\B|\b/),Fe.end&&(lt.endRe=qe(Fe.end)),lt.terminatorEnd=h(Fe.end)||"",Fe.endsWithParent&&Ke.terminatorEnd&&(lt.terminatorEnd+=(Fe.end?"|":"")+Ke.terminatorEnd)),Fe.illegal&&(lt.illegalRe=qe(Fe.illegal)),Fe.contains||(Fe.contains=[]),Fe.contains=[].concat(...Fe.contains.map(function(Gt){return W(Gt==="self"?Fe:Gt)})),Fe.contains.forEach(function(Gt){Kt(Gt,lt)}),Fe.starts&&Kt(Fe.starts,Ke),lt.matcher=wt(lt),lt}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||{}),Kt(de)}function k(de){return de?de.endsWithParent||k(de.starts):!1}function W(de){return de.variants&&!de.cachedVariants&&(de.cachedVariants=de.variants.map(function(Ie){return s(de,{variants:null},Ie)})),de.cachedVariants?de.cachedVariants:k(de)?s(de,{starts:de.starts?s(de.starts):null}):Object.isFrozen(de)?s(de):de}var se="10.7.3";function ue(de){return!!(de||de==="")}function ge(de){const Ie={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 nt={};return this.autoDetect?(nt=de.highlightAuto(this.code),this.detectedLanguage=nt.language):(nt=de.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),nt.value},autoDetect(){return!this.language||ue(this.autodetect)},ignoreIllegals(){return!0}},render(nt){return nt("pre",{},[nt("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Ie,VuePlugin:{install(nt){nt.component("highlightjs",Ie)}}}}const Me={"after:highlightElement":({el:de,result:Ie,text:qe})=>{const nt=$(de);if(!nt.length)return;const dt=document.createElement("div");dt.innerHTML=Ie.value,Ie.value=C(nt,$(dt),qe)}};function Xe(de){return de.nodeName.toLowerCase()}function $(de){const Ie=[];return(function qe(nt,dt){for(let wt=nt.firstChild;wt;wt=wt.nextSibling)wt.nodeType===3?dt+=wt.nodeValue.length:wt.nodeType===1&&(Ie.push({event:"start",offset:dt,node:wt}),dt=qe(wt,dt),Xe(wt).match(/br|hr|img|input/)||Ie.push({event:"stop",offset:dt,node:wt}));return dt})(de,0),Ie}function C(de,Ie,qe){let nt=0,dt="";const wt=[];function Kt(){return!de.length||!Ie.length?de.length?de:Ie:de[0].offset!==Ie[0].offset?de[0].offset<Ie[0].offset?de:Ie:Ie[0].event==="start"?de:Ie}function Fe(it){function Gt(pn){return" "+pn.nodeName+'="'+i(pn.value)+'"'}dt+="<"+Xe(it)+[].map.call(it.attributes,Gt).join("")+">"}function Ke(it){dt+="</"+Xe(it)+">"}function lt(it){(it.event==="start"?Fe:Ke)(it.node)}for(;de.length||Ie.length;){let it=Kt();if(dt+=i(qe.substring(nt,it[0].offset)),nt=it[0].offset,it===de){wt.reverse().forEach(Ke);do lt(it.splice(0,1)[0]),it=Kt();while(it===de&&it.length&&it[0].offset===nt);wt.reverse().forEach(Fe)}else it[0].event==="start"?wt.push(it[0].node):wt.pop(),lt(it.splice(0,1)[0])}return dt+i(qe.substr(nt))}const j={},Z=de=>{console.error(de)},pe=(de,...Ie)=>{console.log(`WARN: ${de}`,...Ie)},be=(de,Ie)=>{j[`${de}/${Ie}`]||(console.log(`Deprecated as of ${de}. ${Ie}`),j[`${de}/${Ie}`]=!0)},Oe=i,et=s,ot=Symbol("nomatch");var pt=function(de){const Ie=Object.create(null),qe=Object.create(null),nt=[];let dt=!0;const wt=/(^(<[^>]+>|\t|)+|\n)/gm,Kt="Could not find the language '{}', did you forget to load/include a language module?",Fe={disableAutodetect:!0,name:"Plain text",contains:[]};let Ke={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:l};function lt(De){return Ke.noHighlightRe.test(De)}function it(De){let Je=De.className+" ";Je+=De.parentNode?De.parentNode.className:"";const Rt=Ke.languageDetectRe.exec(Je);if(Rt){const Vt=vt(Rt[1]);return Vt||(pe(Kt.replace("{}",Rt[1])),pe("Falling back to no-highlight mode for this block.",De)),Vt?Rt[1]:"no-highlight"}return Je.split(/\s+/).find(Vt=>lt(Vt)||vt(Vt))}function Gt(De,Je,Rt,Vt){let xr="",Ii="";typeof Je=="object"?(xr=De,Rt=Je.ignoreIllegals,Ii=Je.language,Vt=void 0):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead.
|
|
268
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Ii=De,xr=Je);const si={code:xr,language:Ii};gn("before:highlight",si);const ai=si.result?si.result:pn(si.language,si.code,Rt,Vt);return ai.code=si.code,gn("after:highlight",ai),ai}function pn(De,Je,Rt,Vt){function xr(rt,st){const St=Zs.case_insensitive?st[0].toLowerCase():st[0];return Object.prototype.hasOwnProperty.call(rt.keywords,St)&&rt.keywords[St]}function Ii(){if(!xt.keywords){bt.addText(yr);return}let rt=0;xt.keywordPatternRe.lastIndex=0;let st=xt.keywordPatternRe.exec(yr),St="";for(;st;){St+=yr.substring(rt,st.index);const Ft=xr(xt,st);if(Ft){const[sn,Qs]=Ft;if(bt.addText(St),St="",Ma+=Qs,sn.startsWith("_"))St+=st[0];else{const ea=Zs.classNameAliases[sn]||sn;bt.addKeyword(st[0],ea)}}else St+=st[0];rt=xt.keywordPatternRe.lastIndex,st=xt.keywordPatternRe.exec(yr)}St+=yr.substr(rt),bt.addText(St)}function si(){if(yr==="")return;let rt=null;if(typeof xt.subLanguage=="string"){if(!Ie[xt.subLanguage]){bt.addText(yr);return}rt=pn(xt.subLanguage,yr,!0,Ff[xt.subLanguage]),Ff[xt.subLanguage]=rt.top}else rt=Js(yr,xt.subLanguage.length?xt.subLanguage:null);xt.relevance>0&&(Ma+=rt.relevance),bt.addSublanguage(rt.emitter,rt.language)}function ai(){xt.subLanguage!=null?si():Ii(),yr=""}function oi(rt){return rt.className&&bt.openNode(Zs.classNameAliases[rt.className]||rt.className),xt=Object.create(rt,{parent:{value:xt}}),xt}function Vn(rt,st,St){let Ft=v(rt.endRe,St);if(Ft){if(rt["on:end"]){const sn=new n(rt);rt["on:end"](st,sn),sn.isMatchIgnored&&(Ft=!1)}if(Ft){for(;rt.endsParent&&rt.parent;)rt=rt.parent;return rt}}if(rt.endsWithParent)return Vn(rt.parent,st,St)}function Nf(rt){return xt.matcher.regexIndex===0?(yr+=rt[0],1):(xs=!0,0)}function Mf(rt){const st=rt[0],St=rt.rule,Ft=new n(St),sn=[St.__beforeBegin,St["on:begin"]];for(const Qs of sn)if(Qs&&(Qs(rt,Ft),Ft.isMatchIgnored))return Nf(st);return St&&St.endSameAsBegin&&(St.endRe=f(st)),St.skip?yr+=st:(St.excludeBegin&&(yr+=st),ai(),!St.returnBegin&&!St.excludeBegin&&(yr=st)),oi(St),St.returnBegin?0:st.length}function Df(rt){const st=rt[0],St=Je.substr(rt.index),Ft=Vn(xt,rt,St);if(!Ft)return ot;const sn=xt;sn.skip?yr+=st:(sn.returnEnd||sn.excludeEnd||(yr+=st),ai(),sn.excludeEnd&&(yr=st));do xt.className&&bt.closeNode(),!xt.skip&&!xt.subLanguage&&(Ma+=xt.relevance),xt=xt.parent;while(xt!==Ft.parent);return Ft.starts&&(Ft.endSameAsBegin&&(Ft.starts.endRe=Ft.endRe),oi(Ft.starts)),sn.returnEnd?0:st.length}function qf(){const rt=[];for(let st=xt;st!==Zs;st=st.parent)st.className&&rt.unshift(st.className);rt.forEach(st=>bt.openNode(st))}let Na={};function Uu(rt,st){const St=st&&st[0];if(yr+=rt,St==null)return ai(),0;if(Na.type==="begin"&&st.type==="end"&&Na.index===st.index&&St===""){if(yr+=Je.slice(st.index,st.index+1),!dt){const Ft=new Error("0 width match regex");throw Ft.languageName=De,Ft.badRule=Na.rule,Ft}return 1}if(Na=st,st.type==="begin")return Mf(st);if(st.type==="illegal"&&!Rt){const Ft=new Error('Illegal lexeme "'+St+'" for mode "'+(xt.className||"<unnamed>")+'"');throw Ft.mode=xt,Ft}else if(st.type==="end"){const Ft=Df(st);if(Ft!==ot)return Ft}if(st.type==="illegal"&&St==="")return 1;if(ui>1e5&&ui>st.index*3)throw new Error("potential infinite loop, way more iterations than matches");return yr+=St,St.length}const Zs=vt(De);if(!Zs)throw Z(Kt.replace("{}",De)),new Error('Unknown language: "'+De+'"');const Xm=T(Zs,{plugins:nt});let Vu="",xt=Vt||Xm;const Ff={},bt=new Ke.__emitter(Ke);qf();let yr="",Ma=0,br=0,ui=0,xs=!1;try{for(xt.matcher.considerAll();;){ui++,xs?xs=!1:xt.matcher.considerAll(),xt.matcher.lastIndex=br;const rt=xt.matcher.exec(Je);if(!rt)break;const st=Je.substring(br,rt.index),St=Uu(st,rt);br=rt.index+St}return Uu(Je.substr(br)),bt.closeAllNodes(),bt.finalize(),Vu=bt.toHTML(),{relevance:Math.floor(Ma),value:Vu,language:De,illegal:!1,emitter:bt,top:xt}}catch(rt){if(rt.message&&rt.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:rt.message,context:Je.slice(br-100,br+100),mode:rt.mode},sofar:Vu,relevance:0,value:Oe(Je),emitter:bt};if(dt)return{illegal:!1,relevance:0,value:Oe(Je),emitter:bt,language:De,top:xt,errorRaised:rt};throw rt}}function Ws(De){const Je={relevance:0,emitter:new Ke.__emitter(Ke),value:Oe(De),illegal:!1,top:Fe};return Je.emitter.addText(De),Je}function Js(De,Je){Je=Je||Ke.languages||Object.keys(Ie);const Rt=Ws(De),Vt=Je.filter(vt).filter(Ut).map(oi=>pn(oi,De,!1));Vt.unshift(Rt);const xr=Vt.sort((oi,Vn)=>{if(oi.relevance!==Vn.relevance)return Vn.relevance-oi.relevance;if(oi.language&&Vn.language){if(vt(oi.language).supersetOf===Vn.language)return 1;if(vt(Vn.language).supersetOf===oi.language)return-1}return 0}),[Ii,si]=xr,ai=Ii;return ai.second_best=si,ai}function dn(De){return Ke.tabReplace||Ke.useBR?De.replace(wt,Je=>Je===`
|
|
269
|
-
`?Ke.useBR?"<br>":Je:Ke.tabReplace?Je.replace(/\t/g,Ke.tabReplace):Je):De}function Ti(De,Je,Rt){const Vt=Je?qe[Je]:Rt;De.classList.add("hljs"),Vt&&De.classList.add(Vt)}const Hs={"before:highlightElement":({el:De})=>{Ke.useBR&&(De.innerHTML=De.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
|
|
270
|
-
`))},"after:highlightElement":({result:De})=>{Ke.useBR&&(De.value=De.value.replace(/\n/g,"<br>"))}},Ks=/^(<[^>]+>|\t)+/gm,ws={"after:highlightElement":({result:De})=>{Ke.tabReplace&&(De.value=De.value.replace(Ks,Je=>Je.replace(/\t/g,Ke.tabReplace)))}};function hn(De){let Je=null;const Rt=it(De);if(lt(Rt))return;gn("before:highlightElement",{el:De,language:Rt}),Je=De;const Vt=Je.textContent,xr=Rt?Gt(Vt,{language:Rt,ignoreIllegals:!0}):Js(Vt);gn("after:highlightElement",{el:De,result:xr,text:Vt}),De.innerHTML=xr.value,Ti(De,Rt,xr.language),De.result={language:xr.language,re:xr.relevance,relavance:xr.relevance},xr.second_best&&(De.second_best={language:xr.second_best.language,re:xr.second_best.relevance,relavance:xr.second_best.relevance})}function Un(De){De.useBR&&(be("10.3.0","'useBR' will be removed entirely in v11.0"),be("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Ke=et(Ke,De)}const Gs=()=>{if(Gs.called)return;Gs.called=!0,be("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(hn)};function Ys(){be("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Yi=!0}let Yi=!1;function Dr(){if(document.readyState==="loading"){Yi=!0;return}document.querySelectorAll("pre code").forEach(hn)}function Ot(){Yi&&Dr()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Ot,!1);function tt(De,Je){let Rt=null;try{Rt=Je(de)}catch(Vt){if(Z("Language definition for '{}' could not be registered.".replace("{}",De)),dt)Z(Vt);else throw Vt;Rt=Fe}Rt.name||(Rt.name=De),Ie[De]=Rt,Rt.rawDefinition=Je.bind(null,de),Rt.aliases&&ur(Rt.aliases,{languageName:De})}function le(De){delete Ie[De];for(const Je of Object.keys(qe))qe[Je]===De&&delete qe[Je]}function Te(){return Object.keys(Ie)}function Ge(De){be("10.4.0","requireLanguage will be removed entirely in v11."),be("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const Je=vt(De);if(Je)return Je;throw new Error("The '{}' language is required, but not loaded.".replace("{}",De))}function vt(De){return De=(De||"").toLowerCase(),Ie[De]||Ie[qe[De]]}function ur(De,{languageName:Je}){typeof De=="string"&&(De=[De]),De.forEach(Rt=>{qe[Rt.toLowerCase()]=Je})}function Ut(De){const Je=vt(De);return Je&&!Je.disableAutodetect}function nr(De){De["before:highlightBlock"]&&!De["before:highlightElement"]&&(De["before:highlightElement"]=Je=>{De["before:highlightBlock"](Object.assign({block:Je.el},Je))}),De["after:highlightBlock"]&&!De["after:highlightElement"]&&(De["after:highlightElement"]=Je=>{De["after:highlightBlock"](Object.assign({block:Je.el},Je))})}function mn(De){nr(De),nt.push(De)}function gn(De,Je){const Rt=De;nt.forEach(function(Vt){Vt[Rt]&&Vt[Rt](Je)})}function Xs(De){return be("10.2.0","fixMarkup will be removed entirely in v11.0"),be("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),dn(De)}function gr(De){return be("10.7.0","highlightBlock will be removed entirely in v12.0"),be("10.7.0","Please use highlightElement now."),hn(De)}Object.assign(de,{highlight:Gt,highlightAuto:Js,highlightAll:Dr,fixMarkup:Xs,highlightElement:hn,highlightBlock:gr,configure:Un,initHighlighting:Gs,initHighlightingOnLoad:Ys,registerLanguage:tt,unregisterLanguage:le,listLanguages:Te,getLanguage:vt,registerAliases:ur,requireLanguage:Ge,autoDetection:Ut,inherit:et,addPlugin:mn,vuePlugin:ge(de).VuePlugin}),de.debugMode=function(){dt=!1},de.safeMode=function(){dt=!0},de.versionString=se;for(const De in fe)typeof fe[De]=="object"&&t(fe[De]);return Object.assign(de,fe),de.addPlugin(Hs),de.addPlugin(Me),de.addPlugin(ws),de}({});return Pw=pt,Pw}var kw={exports:{}},qL;function kye(){return qL||(qL=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,_=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(_(),10).toString(2);break;case"c":d=_(),typeof d=="string"||d instanceof String?l+=d:l+=String.fromCharCode(parseInt(d,10));break;case"d":l+=parseInt(_(),10);break;case"f":g=String(parseFloat(_()).toFixed(v||6)),l+=y?g:g.replace(/^0/,"");break;case"j":l+=JSON.stringify(_());break;case"o":l+="0"+parseInt(_(),10).toString(8);break;case"s":l+=_();break;case"x":l+="0x"+parseInt(_(),10).toString(16);break;case"X":l+="0x"+parseInt(_(),10).toString(16).toUpperCase();break;default:l+=f;break}else f==="%"?h=!0:l+=f;return l}})()})(kw)),kw.exports}var Nw,FL;function Nye(){if(FL)return Nw;FL=1;var e=kye(),t=r(Error);Nw=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 Nw}var $L;function Mye(){if($L)return qa;$L=1;var e=Pye(),t=Nye();qa.highlight=n,qa.highlightAuto=i,qa.registerLanguage=s,qa.listLanguages=a,qa.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,_,b){var S=e.configure({}),w=b||{},E=w.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 _!="string")throw t("Expected `string` for value, got `%s`",_);if(E==null&&(E=r),e.configure({__emitter:u,classPrefix:E}),A=e.highlight(_,{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,_){var b=_||{},S=b.subset||e.listLanguages();b.prefix;var w=S.length,E=-1,A,R,I,O;if(typeof v!="string")throw t("Expected `string` for value, got `%s`",v);for(R={relevance:0,language:null,value:[]},A={relevance:0,language:null,value:[]};++E<w;)O=S[E],e.getLanguage(O)&&(I=n(O,v,_),I.language=O,I.relevance>R.relevance&&(R=I),I.relevance>A.relevance&&(R=A,A=I));return R.language&&(A.secondBest=R),A}function s(v,_){e.registerLanguage(v,_)}function a(){return e.listLanguages()}function o(v,_){var b=v,S;_&&(b={},b[v]=_);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,_){this.openNode(_),this.addText(v),this.closeNode()}function l(v,_){var b=this.stack,S=b[b.length-1],w=v.rootNode.children,E=_?{type:"element",tagName:"span",properties:{className:[_]},children:w}:w;S.children=S.children.concat(E)}function f(v){var _=this.stack,b,S;v!==""&&(b=_[_.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 _=this.stack,b=this.options.classPrefix+v,S=_[_.length-1],w={type:"element",tagName:"span",properties:{className:[b]},children:[]};S.children.push(w),_.push(w)}function d(){this.stack.pop()}function g(){return""}function y(){}return qa}var Dye=Mye();const sV=We.getDefaultExportFromCjs(Dye);var aV=jye(sV,{});aV.registerLanguage=sV.registerLanguage;var Mw,LL;function qye(){if(LL)return Mw;LL=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=(H,{after:Q})=>{const re="</"+H[0].slice(1);return H.input.indexOf(re,Q)!==-1},g=e,y={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,Q)=>{const re=H[0].length+H.index,ne=H.input[re];if(ne==="<"){Q.ignoreMatch();return}ne===">"&&(d(H,{after:re})||Q.ignoreMatch())}},_={$pattern:e,keyword:t,literal:r,built_in:o},b="[0-9](_?[0-9])*",S=`\\.(${b})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${w})((${S})|\\.)?|(${S}))[eE][+-]?(${b})\\b`},{begin:`\\b(${w})\\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:_,contains:[]},R={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},I={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"css"}},O={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,A]},P={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]},F=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,I,O,E,h.REGEXP_MODE];A.contains=F.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(F)});const M=[].concat(P,A.contains),G=M.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(M)}]),ee={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:G};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:G},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,R,I,O,P,E,{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:[P,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:_,contains:G}]}]},{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:_,contains:["self",h.inherit(h.TITLE_MODE,{begin:g}),ee],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[ee,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",ee]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:g}),{begin:/\(\)/},ee]},{begin:/\$[(.]/}]}}return Mw=f,Mw}var Fye=qye();const $ye=We.getDefaultExportFromCjs(Fye);var Dw,BL;function Lye(){if(BL)return Dw;BL=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 Dw=e,Dw}var Bye=Lye();const Uye=We.getDefaultExportFromCjs(Bye);var qw,UL;function Vye(){if(UL)return qw;UL=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 qw=s,qw}var zye=Vye();const Wye=We.getDefaultExportFromCjs(zye);var Fw,VL;function Jye(){if(VL)return Fw;VL=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 Fw=r,Fw}var Hye=Jye();const Kye=We.getDefaultExportFromCjs(Hye);var $w,zL;function Gye(){if(zL)return $w;zL=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],_=[...v];return _.pop(),_.push(o),d.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return $w=e,$w}var Yye=Gye();const Xye=We.getDefaultExportFromCjs(Yye);var Lw,WL;function Zye(){if(WL)return Lw;WL=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 Lw=r,Lw}var Qye=Zye();const eve=We.getDefaultExportFromCjs(Qye);var Bw,JL;function tve(){if(JL)return Bw;JL=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]}]},_={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},w={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})]},E=[w,d,o,t.NUMBER_MODE,l,f,g,u,c,S],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",E,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return w.contains.unshift(A),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:s,contains:E.concat(y,v,_,b,A)}}return Bw=e,Bw}var rve=tve();const nve=We.getDefaultExportFromCjs(rve),ive={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"}},sve={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"}},ave={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"}},ove={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"}},uve={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"}},cve={"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"}},lve={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 Uw,HL;function fve(){return HL||(HL=1,Uw=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)}}),Uw}var pve=fve();const dve=We.getDefaultExportFromCjs(pve);var Vw,KL;function hve(){if(KL)return Vw;KL=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 Vw=e,Vw}var zw,GL;function mve(){if(GL)return zw;GL=1;var e=bh(),t=hve();function r(n,i){return t(n||[],i||[],e)}return zw=r,zw}var gve=mve();const yve=We.getDefaultExportFromCjs(gve);var vve=$s();const bve=We.getDefaultExportFromCjs(vve);/*!
|
|
271
|
-
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|
272
|
-
*
|
|
273
|
-
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
274
|
-
* Licensed under the MIT License.
|
|
275
|
-
*/var Ww,YL;function _ve(){if(YL)return Ww;YL=1;var e="",t;Ww=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 Ww}var Jw,XL;function Eve(){if(XL)return Jw;XL=1;var e=_ve(),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)};Jw=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,_){var b=y.value,S=y.type;S==="ClosingTag"&&h--;var w=e(l,h),E=w+b;if(S==="OpeningTag"&&h++,f){var A=_[v-1],R=_[v-2];S==="ClosingTag"&&A.type==="Text"&&R.type==="OpeningTag"&&(E=""+w+R.value+A.value+b,d.push(v-2,v-1))}return E});return d.forEach(function(y){return g[y]=null}),g.filter(function(y){return!!y}).join(`
|
|
276
|
-
`)};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 Jw}var Sve=Eve();const wve=We.getDefaultExportFromCjs(Sve);var Hw,ZL;function xve(){if(ZL)return Hw;ZL=1;var e=$s();function t(r){return e(r).toLowerCase()}return Hw=t,Hw}var Ave=xve();const Ove=We.getDefaultExportFromCjs(Ave);var pp;function oV(e){return pp=pp||document.createElement("textarea"),pp.innerHTML="&"+e+";",pp.value}var Cve=Object.prototype.hasOwnProperty;function Rve(e,t){return e?Cve.call(e,t):!1}function uV(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 Tve=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function zc(e){return e.indexOf("\\")<0?e:e.replace(Tve,"$1")}function cV(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 KA(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 Ive=/&([a-z#][a-z0-9]{1,31});/gi,jve=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Pve(e,t){var r=0,n=oV(t);return t!==n?n:t.charCodeAt(0)===35&&jve.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),cV(r))?KA(r):e}function io(e){return e.indexOf("&")<0?e:e.replace(Ive,Pve)}var kve=/[&<>"]/,Nve=/[&<>"]/g,Mve={"&":"&","<":"<",">":">",'"':"""};function Dve(e){return Mve[e]}function Mn(e){return kve.test(e)?e.replace(Nve,Dve):e}var Ze={};Ze.blockquote_open=function(){return`<blockquote>
|
|
277
|
-
`};Ze.blockquote_close=function(e,t){return"</blockquote>"+_o(e,t)};Ze.code=function(e,t){return e[t].block?"<pre><code>"+Mn(e[t].content)+"</code></pre>"+_o(e,t):"<code>"+Mn(e[t].content)+"</code>"};Ze.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(" "),Rve(i.rules.fence_custom,c[0]))return i.rules.fence_custom[c[0]](e,t,r,n,i);u=Mn(io(zc(l))),a=' class="'+o+u+'"'}return r.highlight?f=r.highlight.apply(r.highlight,[s.content].concat(c))||Mn(s.content):f=Mn(s.content),"<pre><code"+a+">"+f+"</code></pre>"+_o(e,t)};Ze.fence_custom={};Ze.heading_open=function(e,t){return"<h"+e[t].hLevel+">"};Ze.heading_close=function(e,t){return"</h"+e[t].hLevel+`>
|
|
278
|
-
`};Ze.hr=function(e,t,r){return(r.xhtmlOut?"<hr />":"<hr>")+_o(e,t)};Ze.bullet_list_open=function(){return`<ul>
|
|
279
|
-
`};Ze.bullet_list_close=function(e,t){return"</ul>"+_o(e,t)};Ze.list_item_open=function(){return"<li>"};Ze.list_item_close=function(){return`</li>
|
|
280
|
-
`};Ze.ordered_list_open=function(e,t){var r=e[t],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
|
|
281
|
-
`};Ze.ordered_list_close=function(e,t){return"</ol>"+_o(e,t)};Ze.paragraph_open=function(e,t){return e[t].tight?"":"<p>"};Ze.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?_o(e,t):"")};Ze.link_open=function(e,t,r){var n=e[t].title?' title="'+Mn(io(e[t].title))+'"':"",i=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+Mn(e[t].href)+'"'+n+i+">"};Ze.link_close=function(){return"</a>"};Ze.image=function(e,t,r){var n=' src="'+Mn(e[t].src)+'"',i=e[t].title?' title="'+Mn(io(e[t].title))+'"':"",s=' alt="'+(e[t].alt?Mn(io(zc(e[t].alt))):"")+'"',a=r.xhtmlOut?" /":"";return"<img"+n+s+i+a+">"};Ze.table_open=function(){return`<table>
|
|
282
|
-
`};Ze.table_close=function(){return`</table>
|
|
283
|
-
`};Ze.thead_open=function(){return`<thead>
|
|
284
|
-
`};Ze.thead_close=function(){return`</thead>
|
|
285
|
-
`};Ze.tbody_open=function(){return`<tbody>
|
|
286
|
-
`};Ze.tbody_close=function(){return`</tbody>
|
|
287
|
-
`};Ze.tr_open=function(){return"<tr>"};Ze.tr_close=function(){return`</tr>
|
|
288
|
-
`};Ze.th_open=function(e,t){var r=e[t];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ze.th_close=function(){return"</th>"};Ze.td_open=function(e,t){var r=e[t];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ze.td_close=function(){return"</td>"};Ze.strong_open=function(){return"<strong>"};Ze.strong_close=function(){return"</strong>"};Ze.em_open=function(){return"<em>"};Ze.em_close=function(){return"</em>"};Ze.del_open=function(){return"<del>"};Ze.del_close=function(){return"</del>"};Ze.ins_open=function(){return"<ins>"};Ze.ins_close=function(){return"</ins>"};Ze.mark_open=function(){return"<mark>"};Ze.mark_close=function(){return"</mark>"};Ze.sub=function(e,t){return"<sub>"+Mn(e[t].content)+"</sub>"};Ze.sup=function(e,t){return"<sup>"+Mn(e[t].content)+"</sup>"};Ze.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
|
|
289
|
-
`:`<br>
|
|
290
|
-
`};Ze.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
|
|
291
|
-
`:`<br>
|
|
292
|
-
`:`
|
|
293
|
-
`};Ze.text=function(e,t){return Mn(e[t].content)};Ze.htmlblock=function(e,t){return e[t].content};Ze.htmltag=function(e,t){return e[t].content};Ze.abbr_open=function(e,t){return'<abbr title="'+Mn(io(e[t].title))+'">'};Ze.abbr_close=function(){return"</abbr>"};Ze.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>"};Ze.footnote_block_open=function(e,t,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
|
|
294
|
-
`:`<hr class="footnotes-sep">
|
|
295
|
-
`;return n+`<section class="footnotes">
|
|
296
|
-
<ol class="footnotes-list">
|
|
297
|
-
`};Ze.footnote_block_close=function(){return`</ol>
|
|
298
|
-
</section>
|
|
299
|
-
`};Ze.footnote_open=function(e,t){var r=Number(e[t].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};Ze.footnote_close=function(){return`</li>
|
|
300
|
-
`};Ze.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>'};Ze.dl_open=function(){return`<dl>
|
|
301
|
-
`};Ze.dt_open=function(){return"<dt>"};Ze.dd_open=function(){return"<dd>"};Ze.dl_close=function(){return`</dl>
|
|
302
|
-
`};Ze.dt_close=function(){return`</dt>
|
|
303
|
-
`};Ze.dd_close=function(){return`</dd>
|
|
304
|
-
`};function lV(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?lV(e,t+2):t}var _o=Ze.getBreak=function(t,r){return r=lV(t,r),r<t.length&&t[r].type==="list_item_close"?"":`
|
|
305
|
-
`};function AR(){this.rules=uV({},Ze),this.getBreak=Ze.getBreak}AR.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};AR.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 ii(){this.__rules__=[],this.__cache__=null}ii.prototype.__find__=function(e){for(var t=this.__rules__.length,r=-1;t--;)if(this.__rules__[++r].name===e)return r;return-1};ii.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))})})};ii.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};ii.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};ii.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};ii.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};ii.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};ii.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};ii.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function qve(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 Eo(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}Eo.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};Eo.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level};Eo.prototype.cacheSet=function(e,t){for(var r=this.cache.length;r<=e;r++)this.cache.push(0);this.cache[e]=t};Eo.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function Wc(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 Fve(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 Eo(e,t,r,n,[]),s=Wc(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 $ve(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=Fve(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 GA(e){var t=io(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function fV(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=GA(zc(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=zc(e.src.slice(s,t)),!e.parser.validateLink(i))?!1:(e.linkContent=i,e.pos=t,!0)}function pV(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=zc(e.src.slice(n+1,t)),!0;if(r===92&&t+1<i){t+=2;continue}t++}return!1}function dV(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function Lve(e,t,r,n){var i,s,a,o,u,c,l,f,h;if(e.charCodeAt(0)!==91||e.indexOf("]:")===-1||(i=new Eo(e,t,r,n,[]),s=Wc(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(!fV(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&&pV(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=dV(e.slice(1,s)),typeof n.references[h]>"u"&&(n.references[h]={title:f,href:l}),a)}function Bve(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=Lve(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 Uve(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 Vve(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 QL=`
|
|
306
|
-
()[]'".,!?-`;function Kw(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function zve(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="(^|["+QL.split("").map(Kw).join("")+"])("+Object.keys(e.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,y){return y.length-g.length}).map(Kw).join("|")+")($|["+QL.split("").map(Kw).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 Wve=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Jve=/\((c|tm|r|p)\)/ig,Hve={c:"©",r:"®",p:"§",tm:"™"};function Kve(e){return e.indexOf("(")<0?e:e.replace(Jve,function(t,r){return Hve[r.toLowerCase()]})}function Gve(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=Kve(n),Wve.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 Yve=/['"]/,eB=/['"]/g,Xve=/[-\s()\[\]]/,tB="’";function rB(e,t){return t<0||t>=e.length?!1:!Xve.test(e[t])}function Mo(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function Zve(e){var t,r,n,i,s,a,o,u,c,l,f,h,d,g,y,v,_;if(e.options.typographer){for(_=[],y=e.tokens.length-1;y>=0;y--)if(e.tokens[y].type==="inline"){for(v=e.tokens[y].children,_.length=0,t=0;t<v.length;t++)if(r=v[t],!(r.type!=="text"||Yve.test(r.text))){for(o=v[t].level,d=_.length-1;d>=0&&!(_[d].level<=o);d--);_.length=d+1,n=r.content,s=0,a=n.length;e:for(;s<a&&(eB.lastIndex=s,i=eB.exec(n),!!i);){if(u=!rB(n,i.index-1),s=i.index+1,g=i[0]==="'",c=!rB(n,s),!c&&!u){g&&(r.content=Mo(r.content,i.index,tB));continue}if(f=!c,h=!u,h){for(d=_.length-1;d>=0&&(l=_[d],!(_[d].level<o));d--)if(l.single===g&&_[d].level===o){l=_[d],g?(v[l.token].content=Mo(v[l.token].content,l.pos,e.options.quotes[2]),r.content=Mo(r.content,i.index,e.options.quotes[3])):(v[l.token].content=Mo(v[l.token].content,l.pos,e.options.quotes[0]),r.content=Mo(r.content,i.index,e.options.quotes[1])),_.length=d;continue e}}f?_.push({token:t,pos:i.index,single:g,level:o}):h&&g&&(r.content=Mo(r.content,i.index,tB))}}}}}var Gw=[["block",qve],["abbr",$ve],["references",Bve],["inline",Uve],["footnote_tail",Vve],["abbr2",zve],["replacements",Gve],["smartquotes",Zve]];function hV(){this.options={},this.ruler=new ii;for(var e=0;e<Gw.length;e++)this.ruler.push(Gw[e][0],Gw[e][1])}hV.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 So(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}So.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};So.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};So.prototype.skipSpaces=function(t){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===32;t++);return t};So.prototype.skipChars=function(t,r){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};So.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};So.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 Qve(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 e0e(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 t0e(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 r0e(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 nB(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 iB(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 n0e(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 i0e(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,_,b,S,w,E,A=!0,R,I,O,D;if((f=iB(e,t))>=0)v=!0;else if((f=nB(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:w=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:w=[t,0],level:e.level++}),i=t,S=!1,R=e.parser.ruler.getRules("list");i<r&&(_=e.skipSpaces(f),h=e.eMarks[i],_>=h?d=1:d=_-f,d>4&&(d=1),d<1&&(d=1),s=f-e.bMarks[i]+d,e.tokens.push({type:"list_item_open",lines:E=[t,0],level:e.level++}),o=e.blkIndent,u=e.tight,a=e.tShift[t],c=e.parentType,e.tShift[t]=_-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,E[1]=i,_=e.bMarks[t],!(i>=r||e.isEmpty(i)||e.tShift[i]<e.blkIndent));){for(D=!1,I=0,O=R.length;I<O;I++)if(R[I](e,i,r,!0)){D=!0;break}if(D)break;if(v){if(f=iB(e,i),f<0)break}else if(f=nB(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}),w[1]=i,e.line=i,A&&n0e(e,b),!0}function s0e(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 a0e(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 o0e(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 mV={};["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){mV[e]=!0});var u0e=/^<([a-zA-Z]{1,15})[\s\/>]/,c0e=/^<\/([a-zA-Z]{1,15})[\s>]/;function l0e(e){var t=e|32;return t>=97&&t<=122}function f0e(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||l0e(i)){if(i===47){if(s=e.src.slice(o,u).match(c0e),!s)return!1}else if(s=e.src.slice(o,u).match(u0e),!s)return!1;if(mV[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 Yw(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function p0e(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=Yw(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=Yw(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=Yw(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 dp(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 d0e(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 h0e(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,_;if(n)return e.ddIndent<0?!1:dp(e,t)>=0;if(l=t+1,e.isEmpty(l)&&++l>r||e.tShift[l]<e.blkIndent||(i=dp(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(_=!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)&&(_=!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=dp(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=dp(e,s),i<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),u[1]=l,e.line=l,_&&d0e(e,c),!0}function m0e(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 hp=[["code",Qve],["fences",e0e,["paragraph","blockquote","list"]],["blockquote",t0e,["paragraph","blockquote","list"]],["hr",r0e,["paragraph","blockquote","list"]],["list",i0e,["paragraph","blockquote"]],["footnote",s0e,["paragraph"]],["heading",a0e,["paragraph","blockquote"]],["lheading",o0e],["htmlblock",f0e,["paragraph","blockquote"]],["table",p0e,["paragraph"]],["deflist",h0e,["paragraph"]],["paragraph",m0e]];function OR(){this.ruler=new ii;for(var e=0;e<hp.length;e++)this.ruler.push(hp[e][0],hp[e][1],{alt:(hp[e][2]||[]).slice()})}OR.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 g0e=/[\n\t]/g,y0e=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,v0e=/\u00a0/g;OR.prototype.parse=function(e,t,r,n){var i,s=0,a=0;if(!e)return[];e=e.replace(v0e," "),e=e.replace(y0e,`
|
|
307
|
-
`),e.indexOf(" ")>=0&&(e=e.replace(g0e,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 So(e,this,t,r,n),this.tokenize(i,i.line,i.lineMax)};function b0e(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 _0e(e,t){for(var r=e.pos;r<e.posMax&&!b0e(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}function E0e(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 CR=[];for(var sB=0;sB<256;sB++)CR.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){CR[e.charCodeAt(0)]=1});function S0e(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&&CR[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 w0e(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 x0e(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 A0e(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 O0e(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 aB(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function oB(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&&(aB(n)&&(a=!1),aB(i)&&(o=!1))),{can_open:a,can_close:o,delims:s}}function C0e(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=oB(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=oB(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 R0e=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function T0e(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(R0e,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}var I0e=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function j0e(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(I0e,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}function P0e(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=Wc(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,fV(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&&pV(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=Wc(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[dV(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 k0e(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=Wc(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 N0e(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 M0e=["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"],D0e=/^<([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])?)*)>/,q0e=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function F0e(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(q0e),n?M0e.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),a=GA(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(D0e),i?(s=i[0].slice(1,-1),a=GA("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 Mm(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 $0e=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,L0e=/[^"'=<>`\x00-\x20]+/,B0e=/'[^']*'/,U0e=/"[^"]*"/,V0e=Mm(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",L0e)("single_quoted",B0e)("double_quoted",U0e)(),z0e=Mm(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",$0e)("attr_value",V0e)(),W0e=Mm(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",z0e)(),J0e=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,H0e=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,K0e=/<[?].*?[?]>/,G0e=/<![A-Z]+\s+[^>]*>/,Y0e=/<!\[CDATA\[[\s\S]*?\]\]>/,X0e=Mm(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",W0e)("close_tag",J0e)("comment",H0e)("processing",K0e)("declaration",G0e)("cdata",Y0e)();function Z0e(e){var t=e|32;return t>=97&&t<=122}function Q0e(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&&!Z0e(r))||(n=e.src.slice(s).match(X0e),!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 ebe=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,tbe=/^&([a-z][a-z0-9]{1,31});/i;function rbe(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(ebe),i)return t||(n=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),e.pending+=cV(n)?KA(n):KA(65533)),e.pos+=i[0].length,!0}else if(i=e.src.slice(s).match(tbe),i){var o=oV(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 Xw=[["text",_0e],["newline",E0e],["escape",S0e],["backticks",w0e],["del",x0e],["ins",A0e],["mark",O0e],["emphasis",C0e],["sub",T0e],["sup",j0e],["links",P0e],["footnote_inline",k0e],["footnote_ref",N0e],["autolink",F0e],["htmltag",Q0e],["entity",rbe]];function Dm(){this.ruler=new ii;for(var e=0;e<Xw.length;e++)this.ruler.push(Xw[e][0],Xw[e][1]);this.validateLink=nbe}Dm.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)};Dm.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()};Dm.prototype.parse=function(e,t,r,n){var i=new Eo(e,this,t,r,n);this.tokenize(i)};function nbe(e){var t=["vbscript","javascript","file","data"],r=e.trim().toLowerCase();return r=io(r),!(r.indexOf(":")!==-1&&t.indexOf(r.split(":")[0])!==-1)}var ibe={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"]}}},sbe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},abe={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"]}}},obe={default:ibe,full:sbe,commonmark:abe};function gV(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 Pa(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
|
|
308
|
-
|
|
309
|
-
import Remarkable from 'remarkable';
|
|
310
|
-
import linkify from 'remarkable/linkify';
|
|
311
|
-
new Remarkable().use(linkify)
|
|
312
|
-
`),this.inline=new Dm,this.block=new OR,this.core=new hV,this.renderer=new AR,this.ruler=new ii,this.options={},this.configure(obe[e]),this.set(t||{})}Pa.prototype.set=function(e){uV(this.options,e)};Pa.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)})};Pa.prototype.use=function(e,t){return e(this,t),this};Pa.prototype.parse=function(e,t){var r=new gV(this,e,t);return this.core.process(r),r.tokens};Pa.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Pa.prototype.parseInline=function(e,t){var r=new gV(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Pa.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var ube="3.16.2";function cbe(e,t){for(var r in t)t.hasOwnProperty(r)&&e[r]===void 0&&(e[r]=t[r]);return e}function lbe(e,t,r){var n;return e.length>t&&(r==null?(r="…",n=3):n=r.length,e=e.substring(0,t-n)+r),e}function uB(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 Fa(e,t){for(var r=e.length-1;r>=0;r--)t(e[r])===!0&&e.splice(r,1)}function fbe(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 RR(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var YA=(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();)uB(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=uB(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 pbe(e,t,r){var n,i;r==null?(r="…",i=3,n=8):(i=r.length,n=r.length);var s=function(b){var S={},w=b,E=w.match(/^([a-z]+):\/\//i);return E&&(S.scheme=E[1],w=w.substr(E[0].length)),E=w.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(S.host=E[1],w=w.substr(E[0].length)),E=w.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(S.path=E[1],w=w.substr(E[0].length)),E=w.match(/^\?(.*?)(?=(#|$))/i),E&&(S.query=E[1],w=w.substr(E[0].length)),E=w.match(/^#(.*?)$/i),E&&(S.fragment=E[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 w=S/2,E=Math.ceil(w),A=-1*Math.floor(w),R="";return A<0&&(R=b.substr(A)),b.substr(0,E)+r+R};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 _="";return u>0&&(_=f.substr(-1*Math.floor(u/2))),(f.substr(0,Math.ceil(u/2))+r+_).substr(0,u+n)}function dbe(e,t,r){if(e.length<=t)return e;var n,i;r==null?(r="…",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 hbe(e,t,r){return lbe(e,t,r)}var cB=(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 YA({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"?pbe(t,n):i==="middle"?dbe(t,n):hbe(t,n)},e})(),Lu=(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})(),XA=function(e,t){return XA=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])},XA(e,t)};function _s(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");XA(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _r=function(){return _r=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},_r.apply(this,arguments)};var yV=(function(e){_s(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})(Lu),vV=(function(e){_s(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})(Lu),bV=(function(e){_s(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})(Lu),_V=(function(e){_s(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})(Lu),EV=(function(e){_s(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(/&/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,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(n)}catch{return n}},t})(Lu),Bu=(function(){function e(t){this.__jsduckDummyDocProp=null,this.tagBuilder=t.tagBuilder}return e})(),Zw=/[A-Za-z]/,mbe=/[\d]/,gbe=/[\D]/,$a=/\s/,Qw=/['"]/,ybe=/[\x00-\x1F\x7F]/,SV=/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,vbe=/\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,bbe=/\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,wV=SV+vbe+bbe,vd=/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,_be=wV+vd,Sr=wV+vd,dc=new RegExp("[".concat(Sr,"]")),Ebe="(?:["+vd+"]{1,3}\\.){3}["+vd+"]{1,3}",Sbe="["+Sr+"](?:["+Sr+"\\-_]{0,61}["+Sr+"])?",lB=function(e){return"(?=("+Sbe+"))\\"+e},ex=function(e){return"(?:"+lB(e)+"(?:\\."+lB(e+1)+"){0,126}|"+Ebe+")"},mp=dc,xV=/(?: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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,wbe=new RegExp("[".concat(Sr,"!#$%&'*+/=?^_`{|}~-]")),xbe=new RegExp("^".concat(xV.source,"$")),fB=(function(e){_s(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.localPartCharRegex=wbe,r.strictTldRegex=xbe,r}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.localPartCharRegex,s=this.strictTldRegex,a=[],o=r.length,u=new gp,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:_(d);break;case 4:b(d);break;case 5:S(d);break;case 6:w(d);break;case 7:E(d);break;default:RR(f)}l++}return I(),a;function g(O){O==="m"?A(1):i.test(O)&&A()}function y(O,D){O===":"?i.test(D)?(f=2,h=new gp(_r(_r({},h),{hasMailtoPrefix:!0}))):R():c[O]===D||(i.test(D)?f=2:D==="."?f=3:D==="@"?f=4:R())}function v(O){O==="."?f=3:O==="@"?f=4:i.test(O)||R()}function _(O){O==="."||O==="@"?R():i.test(O)?f=2:R()}function b(O){mp.test(O)?f=5:R()}function S(O){O==="."?f=7:O==="-"?f=6:mp.test(O)||I()}function w(O){O==="-"||O==="."?I():mp.test(O)?f=5:I()}function E(O){O==="."||O==="-"?I():mp.test(O)?(f=5,h=new gp(_r(_r({},h),{hasDomainDot:!0}))):I()}function A(O){O===void 0&&(O=2),f=O,h=new gp({idx:l})}function R(){f=0,h=u}function I(){if(h.hasDomainDot){var O=r.slice(h.idx,l);/[-.]$/.test(O)&&(O=O.slice(0,-1));var D=h.hasMailtoPrefix?O.slice(7):O;P(D)&&a.push(new yV({tagBuilder:n,matchedText:O,offset:h.idx,email:D}))}R();function P(F){var M=F.split(".").pop()||"",G=M.toLowerCase(),ee=s.test(G);return ee}}},t})(Bu),gp=(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})(),Abe=(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]*?["+SV+"]"),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})(),Obe=(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("[/?#](?:["+Sr+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+Sr+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",e.source,ex(2),")","|","(","(//)?",t.source,ex(6),")","|","(","(//)?",ex(10)+"\\.",xV.source,"(?![-"+_be+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")})(),Cbe=new RegExp("["+Sr+"]"),pB=(function(e){_s(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=Obe,n.wordCharRegExp=Cbe,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],_=c.index,b=y||v,S=r.charAt(_-1);if(!Abe.isValid(h,d)||_>0&&S==="@"||_>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 w=f.matchHasInvalidCharAfterTld(h,d);w>-1&&(h=h.substr(0,w))}var E=["http://","https://"].find(function(O){return!!d&&d.indexOf(O)!==-1});if(E){var A=h.indexOf(E);h=h.substr(A),d=d.substr(A),_=_+A}var R=d?"scheme":g?"www":"tld",I=!!d;u.push(new EV({tagBuilder:o,matchedText:h,offset:_,urlMatchType:R,url:h,protocolUrlMatch:I,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("^((.?//)?[-."+Sr+"]*[-"+Sr+"]\\.[-"+Sr+"]+)"),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})(Bu),dB=new RegExp("[_".concat(Sr,"]")),hB=(function(e){_s(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:RR(c)}o++}return y(),s;function f(v){v==="#"?(c=2,u=o):dc.test(v)&&(c=1)}function h(v){dc.test(v)||(c=0)}function d(v){dB.test(v)?c=3:dc.test(v)?c=1:c=0}function g(v){dB.test(v)||(y(),u=-1,dc.test(v)?c=1:c=0)}function y(){if(u>-1&&o-u<=140){var v=r.slice(u,o),_=new vV({tagBuilder:n,matchedText:v,offset:u,serviceName:i,hashtag:v.slice(1)});s.push(_)}}},t})(Bu),Rbe=["twitter","facebook","instagram","tiktok"],Tbe=/(?:(?:(?:(\+)?\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]+#?)*/,Ibe=/(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})/,jbe=new RegExp("".concat(Tbe.source,"|").concat(Ibe.source),"g"),mB=(function(e){_s(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.matcherRegex=jbe,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 _V({tagBuilder:i,matchedText:o,offset:a.index,number:u,plusSign:c}))}return s},t.prototype.testMatch=function(r){return gbe.test(r)},t})(Bu),Pbe=new RegExp("@[_".concat(Sr,"]{1,50}(?![_").concat(Sr,"])"),"g"),kbe=new RegExp("@[_.".concat(Sr,"]{1,30}(?![_").concat(Sr,"])"),"g"),Nbe=new RegExp("@[-_.".concat(Sr,"]{1,50}(?![-_").concat(Sr,"])"),"g"),Mbe=new RegExp("@[_.".concat(Sr,"]{1,23}[_").concat(Sr,"](?![_").concat(Sr,"])"),"g"),Dbe=new RegExp("[^"+Sr+"]"),gB=(function(e){_s(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:Pbe,instagram:kbe,soundcloud:Nbe,tiktok:Mbe},n.nonWordCharRegex=Dbe,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 bV({tagBuilder:a,matchedText:f,offset:c,serviceName:n,mention:h}))}}return o},t})(Bu);function qbe(e,t){for(var r=t.onOpenTag,n=t.onCloseTag,i=t.onText,s=t.onComment,a=t.onDoctype,o=new ts,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:_(d);break;case 3:v(d);break;case 4:b(d);break;case 5:S(d);break;case 6:w(d);break;case 7:E(d);break;case 8:A(d);break;case 9:R(d);break;case 10:I(d);break;case 11:O(d);break;case 12:D(d);break;case 13:P();break;case 14:F(d);break;case 15:M(d);break;case 16:G(d);break;case 17:ee(d);break;case 18:H(d);break;case 19:Q(d);break;case 20:re(d);break;default:RR(l)}u++}f<u&&ie();function g(te){te==="<"&&B()}function y(te){te==="!"?l=13:te==="/"?(l=2,h=new ts(_r(_r({},h),{isClosing:!0}))):te==="<"?B():Zw.test(te)?(l=3,h=new ts(_r(_r({},h),{isOpening:!0}))):(l=0,h=o)}function v(te){$a.test(te)?(h=new ts(_r(_r({},h),{name:oe()})),l=4):te==="<"?B():te==="/"?(h=new ts(_r(_r({},h),{name:oe()})),l=12):te===">"?(h=new ts(_r(_r({},h),{name:oe()})),J()):!Zw.test(te)&&!mbe.test(te)&&te!==":"&&ne()}function _(te){te===">"?ne():Zw.test(te)?l=3:ne()}function b(te){$a.test(te)||(te==="/"?l=12:te===">"?J():te==="<"?B():te==="="||Qw.test(te)||ybe.test(te)?ne():l=5)}function S(te){$a.test(te)?l=6:te==="/"?l=12:te==="="?l=7:te===">"?J():te==="<"?B():Qw.test(te)&&ne()}function w(te){$a.test(te)||(te==="/"?l=12:te==="="?l=7:te===">"?J():te==="<"?B():Qw.test(te)?ne():l=5)}function E(te){$a.test(te)||(te==='"'?l=8:te==="'"?l=9:/[>=`]/.test(te)?ne():te==="<"?B():l=10)}function A(te){te==='"'&&(l=11)}function R(te){te==="'"&&(l=11)}function I(te){$a.test(te)?l=4:te===">"?J():te==="<"&&B()}function O(te){$a.test(te)?l=4:te==="/"?l=12:te===">"?J():te==="<"?B():(l=4,ce())}function D(te){te===">"?(h=new ts(_r(_r({},h),{isClosing:!0})),J()):l=4}function P(te){e.substr(u,2)==="--"?(u+=2,h=new ts(_r(_r({},h),{type:"comment"})),l=14):e.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new ts(_r(_r({},h),{type:"doctype"})),l=20):ne()}function F(te){te==="-"?l=15:te===">"?ne():l=16}function M(te){te==="-"?l=18:te===">"?ne():l=16}function G(te){te==="-"&&(l=17)}function ee(te){te==="-"?l=18:l=16}function H(te){te===">"?J():te==="!"?l=19:te==="-"||(l=16)}function Q(te){te==="-"?l=17:te===">"?J():l=16}function re(te){te===">"?J():te==="<"&&B()}function ne(){l=0,h=o}function B(){l=1,h=new ts({idx:u})}function J(){var te=e.slice(f,h.idx);te&&i(te,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)),ne(),f=u+1}function ie(){var te=e.slice(f,u);i(te,f),f=u+1}function oe(){var te=h.idx+(h.isClosing?2:1);return e.slice(te,u).toLowerCase()}function ce(){u--}}var ts=(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})(),Fbe=(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&&Rbe.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"}:cbe(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(t){var r=this,n=["a","style","script"],i=0,s=[];return qbe(t,{onOpenTag:function(a){n.indexOf(a)>=0&&i++},onText:function(a,o){if(i===0){var u=/( | |<|<|>|>|"|"|')/gi,c=fbe(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||Fa(t,function(r){return r.getType()==="hashtag"}),this.email||Fa(t,function(r){return r.getType()==="email"}),this.phone||Fa(t,function(r){return r.getType()==="phone"}),this.mention||Fa(t,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||Fa(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||Fa(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||Fa(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,"<").replace(/>/g,">"));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 YA)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 hB({tagBuilder:t,serviceName:this.hashtag}),new fB({tagBuilder:t}),new mB({tagBuilder:t}),new gB({tagBuilder:t,serviceName:this.mention}),new pB({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 cB({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},e.version=ube,e.AnchorTagBuilder=cB,e.HtmlTag=YA,e.matcher={Email:fB,Hashtag:hB,Matcher:Bu,Mention:gB,Phone:mB,Url:pB},e.match={Email:yV,Hashtag:vV,Match:Lu,Mention:bV,Phone:_V,Url:EV},e})(),$be=/www|@|\:\/\//;function Lbe(e){return/^<a[>\s]/i.test(e)}function Bbe(e){return/^<\/a\s*>/i.test(e)}function Ube(){var e=[],t=new Fbe({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 Vbe(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"&&(Lbe(s.content)&&f>0&&f--,Bbe(s.content)&&f++),!(f>0)&&s.type==="text"&&$be.test(s.content)){if(d||(d=Ube(),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 zbe(e){e.core.ruler.push("linkify",Vbe)}/*! @license DOMPurify 3.2.7 | (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.7/LICENSE */const{entries:AV,setPrototypeOf:yB,isFrozen:Wbe,getPrototypeOf:Jbe,getOwnPropertyDescriptor:Hbe}=Object;let{freeze:xn,seal:bi,create:OV}=Object,{apply:ZA,construct:QA}=typeof Reflect<"u"&&Reflect;xn||(xn=function(t){return t});bi||(bi=function(t){return t});ZA||(ZA=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return t.apply(r,i)});QA||(QA=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 new t(...n)});const yp=An(Array.prototype.forEach),Kbe=An(Array.prototype.lastIndexOf),vB=An(Array.prototype.pop),Qu=An(Array.prototype.push),Gbe=An(Array.prototype.splice),Dp=An(String.prototype.toLowerCase),tx=An(String.prototype.toString),rx=An(String.prototype.match),ec=An(String.prototype.replace),Ybe=An(String.prototype.indexOf),Xbe=An(String.prototype.trim),ki=An(Object.prototype.hasOwnProperty),bn=An(RegExp.prototype.test),tc=Zbe(TypeError);function An(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return ZA(e,t,n)}}function Zbe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return QA(e,r)}}function Tt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dp;yB&&yB(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const s=r(i);s!==i&&(Wbe(t)||(t[n]=s),i=s)}e[i]=!0}return e}function Qbe(e){for(let t=0;t<e.length;t++)ki(e,t)||(e[t]=null);return e}function Rs(e){const t=OV(null);for(const[r,n]of AV(e))ki(e,r)&&(Array.isArray(n)?t[r]=Qbe(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Rs(n):t[r]=n);return t}function rc(e,t){for(;e!==null;){const n=Hbe(e,t);if(n){if(n.get)return An(n.get);if(typeof n.value=="function")return An(n.value)}e=Jbe(e)}function r(){return null}return r}const bB=xn(["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","search","section","select","shadow","slot","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"]),nx=xn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ix=xn(["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"]),e_e=xn(["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"]),sx=xn(["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"]),t_e=xn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_B=xn(["#text"]),EB=xn(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ax=xn(["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"]),SB=xn(["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"]),vp=xn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),r_e=bi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),n_e=bi(/<%[\w\W]*|[\w\W]*%>/gm),i_e=bi(/\$\{[\w\W]*/gm),s_e=bi(/^data-[\-\w.\u00B7-\uFFFF]+$/),a_e=bi(/^aria-[\-\w]+$/),CV=bi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),o_e=bi(/^(?:\w+script|data):/i),u_e=bi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),RV=bi(/^html$/i),c_e=bi(/^[a-z][.\w]*(-[.\w]+)+$/i);var wB=Object.freeze({__proto__:null,ARIA_ATTR:a_e,ATTR_WHITESPACE:u_e,CUSTOM_ELEMENT:c_e,DATA_ATTR:s_e,DOCTYPE_NAME:RV,ERB_EXPR:n_e,IS_ALLOWED_URI:CV,IS_SCRIPT_OR_DATA:o_e,MUSTACHE_EXPR:r_e,TMPLIT_EXPR:i_e});const nc={element:1,text:3,progressingInstruction:7,comment:8,document:9},l_e=function(){return typeof window>"u"?null:window},f_e=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}},xB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function TV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l_e();const t=tt=>TV(tt);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==nc.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=rc(g,"cloneNode"),v=rc(g,"remove"),_=rc(g,"nextSibling"),b=rc(g,"childNodes"),S=rc(g,"parentNode");if(typeof a=="function"){const tt=r.createElement("template");tt.content&&tt.content.ownerDocument&&(r=tt.content.ownerDocument)}let w,E="";const{implementation:A,createNodeIterator:R,createDocumentFragment:I,getElementsByTagName:O}=r,{importNode:D}=n;let P=xB();t.isSupported=typeof AV=="function"&&typeof S=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:G,DATA_ATTR:ee,ARIA_ATTR:H,IS_SCRIPT_OR_DATA:Q,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:ne}=wB;let{IS_ALLOWED_URI:B}=wB,J=null;const ie=Tt({},[...bB,...nx,...ix,...sx,..._B]);let oe=null;const ce=Tt({},[...EB,...ax,...SB,...vp]);let te=Object.seal(OV(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}})),z=null,V=null,fe=!0,me=!0,Ce=!1,Ne=!0,he=!1,je=!0,Be=!1,_e=!1,we=!1,Ae=!1,U=!1,T=!1,k=!0,W=!1;const se="user-content-";let ue=!0,ge=!1,Me={},Xe=null;const $=Tt({},["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 C=null;const j=Tt({},["audio","video","img","source","image","track"]);let Z=null;const pe=Tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let ot=et,Mt=!1,pt=null;const de=Tt({},[be,Oe,et],tx);let Ie=Tt({},["mi","mo","mn","ms","mtext"]),qe=Tt({},["annotation-xml"]);const nt=Tt({},["title","style","font","a","script"]);let dt=null;const wt=["application/xhtml+xml","text/html"],Kt="text/html";let Fe=null,Ke=null;const lt=r.createElement("form"),it=function(le){return le instanceof RegExp||le instanceof Function},Gt=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ke&&Ke===le)){if((!le||typeof le!="object")&&(le={}),le=Rs(le),dt=wt.indexOf(le.PARSER_MEDIA_TYPE)===-1?Kt:le.PARSER_MEDIA_TYPE,Fe=dt==="application/xhtml+xml"?tx:Dp,J=ki(le,"ALLOWED_TAGS")?Tt({},le.ALLOWED_TAGS,Fe):ie,oe=ki(le,"ALLOWED_ATTR")?Tt({},le.ALLOWED_ATTR,Fe):ce,pt=ki(le,"ALLOWED_NAMESPACES")?Tt({},le.ALLOWED_NAMESPACES,tx):de,Z=ki(le,"ADD_URI_SAFE_ATTR")?Tt(Rs(pe),le.ADD_URI_SAFE_ATTR,Fe):pe,C=ki(le,"ADD_DATA_URI_TAGS")?Tt(Rs(j),le.ADD_DATA_URI_TAGS,Fe):j,Xe=ki(le,"FORBID_CONTENTS")?Tt({},le.FORBID_CONTENTS,Fe):$,z=ki(le,"FORBID_TAGS")?Tt({},le.FORBID_TAGS,Fe):Rs({}),V=ki(le,"FORBID_ATTR")?Tt({},le.FORBID_ATTR,Fe):Rs({}),Me=ki(le,"USE_PROFILES")?le.USE_PROFILES:!1,fe=le.ALLOW_ARIA_ATTR!==!1,me=le.ALLOW_DATA_ATTR!==!1,Ce=le.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=le.SAFE_FOR_TEMPLATES||!1,je=le.SAFE_FOR_XML!==!1,Be=le.WHOLE_DOCUMENT||!1,Ae=le.RETURN_DOM||!1,U=le.RETURN_DOM_FRAGMENT||!1,T=le.RETURN_TRUSTED_TYPE||!1,we=le.FORCE_BODY||!1,k=le.SANITIZE_DOM!==!1,W=le.SANITIZE_NAMED_PROPS||!1,ue=le.KEEP_CONTENT!==!1,ge=le.IN_PLACE||!1,B=le.ALLOWED_URI_REGEXP||CV,ot=le.NAMESPACE||et,Ie=le.MATHML_TEXT_INTEGRATION_POINTS||Ie,qe=le.HTML_INTEGRATION_POINTS||qe,te=le.CUSTOM_ELEMENT_HANDLING||{},le.CUSTOM_ELEMENT_HANDLING&&it(le.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(te.tagNameCheck=le.CUSTOM_ELEMENT_HANDLING.tagNameCheck),le.CUSTOM_ELEMENT_HANDLING&&it(le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(te.attributeNameCheck=le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),le.CUSTOM_ELEMENT_HANDLING&&typeof le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(me=!1),U&&(Ae=!0),Me&&(J=Tt({},_B),oe=[],Me.html===!0&&(Tt(J,bB),Tt(oe,EB)),Me.svg===!0&&(Tt(J,nx),Tt(oe,ax),Tt(oe,vp)),Me.svgFilters===!0&&(Tt(J,ix),Tt(oe,ax),Tt(oe,vp)),Me.mathMl===!0&&(Tt(J,sx),Tt(oe,SB),Tt(oe,vp))),le.ADD_TAGS&&(J===ie&&(J=Rs(J)),Tt(J,le.ADD_TAGS,Fe)),le.ADD_ATTR&&(oe===ce&&(oe=Rs(oe)),Tt(oe,le.ADD_ATTR,Fe)),le.ADD_URI_SAFE_ATTR&&Tt(Z,le.ADD_URI_SAFE_ATTR,Fe),le.FORBID_CONTENTS&&(Xe===$&&(Xe=Rs(Xe)),Tt(Xe,le.FORBID_CONTENTS,Fe)),ue&&(J["#text"]=!0),Be&&Tt(J,["html","head","body"]),J.table&&(Tt(J,["tbody"]),delete z.tbody),le.TRUSTED_TYPES_POLICY){if(typeof le.TRUSTED_TYPES_POLICY.createHTML!="function")throw tc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof le.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=le.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else w===void 0&&(w=f_e(d,i)),w!==null&&typeof E=="string"&&(E=w.createHTML(""));xn&&xn(le),Ke=le}},pn=Tt({},[...nx,...ix,...e_e]),Ws=Tt({},[...sx,...t_e]),Js=function(le){let Te=S(le);(!Te||!Te.tagName)&&(Te={namespaceURI:ot,tagName:"template"});const Ge=Dp(le.tagName),vt=Dp(Te.tagName);return pt[le.namespaceURI]?le.namespaceURI===Oe?Te.namespaceURI===et?Ge==="svg":Te.namespaceURI===be?Ge==="svg"&&(vt==="annotation-xml"||Ie[vt]):!!pn[Ge]:le.namespaceURI===be?Te.namespaceURI===et?Ge==="math":Te.namespaceURI===Oe?Ge==="math"&&qe[vt]:!!Ws[Ge]:le.namespaceURI===et?Te.namespaceURI===Oe&&!qe[vt]||Te.namespaceURI===be&&!Ie[vt]?!1:!Ws[Ge]&&(nt[Ge]||!pn[Ge]):!!(dt==="application/xhtml+xml"&&pt[le.namespaceURI]):!1},dn=function(le){Qu(t.removed,{element:le});try{S(le).removeChild(le)}catch{v(le)}},Ti=function(le,Te){try{Qu(t.removed,{attribute:Te.getAttributeNode(le),from:Te})}catch{Qu(t.removed,{attribute:null,from:Te})}if(Te.removeAttribute(le),le==="is")if(Ae||U)try{dn(Te)}catch{}else try{Te.setAttribute(le,"")}catch{}},Hs=function(le){let Te=null,Ge=null;if(we)le="<remove></remove>"+le;else{const Ut=rx(le,/^[\r\n\t ]+/);Ge=Ut&&Ut[0]}dt==="application/xhtml+xml"&&ot===et&&(le='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+le+"</body></html>");const vt=w?w.createHTML(le):le;if(ot===et)try{Te=new h().parseFromString(vt,dt)}catch{}if(!Te||!Te.documentElement){Te=A.createDocument(ot,"template",null);try{Te.documentElement.innerHTML=Mt?E:vt}catch{}}const ur=Te.body||Te.documentElement;return le&&Ge&&ur.insertBefore(r.createTextNode(Ge),ur.childNodes[0]||null),ot===et?O.call(Te,Be?"html":"body")[0]:Be?Te.documentElement:ur},Ks=function(le){return R.call(le.ownerDocument||le,le,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ws=function(le){return le instanceof f&&(typeof le.nodeName!="string"||typeof le.textContent!="string"||typeof le.removeChild!="function"||!(le.attributes instanceof l)||typeof le.removeAttribute!="function"||typeof le.setAttribute!="function"||typeof le.namespaceURI!="string"||typeof le.insertBefore!="function"||typeof le.hasChildNodes!="function")},hn=function(le){return typeof o=="function"&&le instanceof o};function Un(tt,le,Te){yp(tt,Ge=>{Ge.call(t,le,Te,Ke)})}const Gs=function(le){let Te=null;if(Un(P.beforeSanitizeElements,le,null),ws(le))return dn(le),!0;const Ge=Fe(le.nodeName);if(Un(P.uponSanitizeElement,le,{tagName:Ge,allowedTags:J}),je&&le.hasChildNodes()&&!hn(le.firstElementChild)&&bn(/<[/\w!]/g,le.innerHTML)&&bn(/<[/\w!]/g,le.textContent)||le.nodeType===nc.progressingInstruction||je&&le.nodeType===nc.comment&&bn(/<[/\w]/g,le.data))return dn(le),!0;if(!J[Ge]||z[Ge]){if(!z[Ge]&&Yi(Ge)&&(te.tagNameCheck instanceof RegExp&&bn(te.tagNameCheck,Ge)||te.tagNameCheck instanceof Function&&te.tagNameCheck(Ge)))return!1;if(ue&&!Xe[Ge]){const vt=S(le)||le.parentNode,ur=b(le)||le.childNodes;if(ur&&vt){const Ut=ur.length;for(let nr=Ut-1;nr>=0;--nr){const mn=y(ur[nr],!0);mn.__removalCount=(le.__removalCount||0)+1,vt.insertBefore(mn,_(le))}}}return dn(le),!0}return le instanceof u&&!Js(le)||(Ge==="noscript"||Ge==="noembed"||Ge==="noframes")&&bn(/<\/no(script|embed|frames)/i,le.innerHTML)?(dn(le),!0):(he&&le.nodeType===nc.text&&(Te=le.textContent,yp([F,M,G],vt=>{Te=ec(Te,vt," ")}),le.textContent!==Te&&(Qu(t.removed,{element:le.cloneNode()}),le.textContent=Te)),Un(P.afterSanitizeElements,le,null),!1)},Ys=function(le,Te,Ge){if(k&&(Te==="id"||Te==="name")&&(Ge in r||Ge in lt))return!1;if(!(me&&!V[Te]&&bn(ee,Te))){if(!(fe&&bn(H,Te))){if(!oe[Te]||V[Te]){if(!(Yi(le)&&(te.tagNameCheck instanceof RegExp&&bn(te.tagNameCheck,le)||te.tagNameCheck instanceof Function&&te.tagNameCheck(le))&&(te.attributeNameCheck instanceof RegExp&&bn(te.attributeNameCheck,Te)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(Te,le))||Te==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&bn(te.tagNameCheck,Ge)||te.tagNameCheck instanceof Function&&te.tagNameCheck(Ge))))return!1}else if(!Z[Te]){if(!bn(B,ec(Ge,re,""))){if(!((Te==="src"||Te==="xlink:href"||Te==="href")&&le!=="script"&&Ybe(Ge,"data:")===0&&C[le])){if(!(Ce&&!bn(Q,ec(Ge,re,"")))){if(Ge)return!1}}}}}}return!0},Yi=function(le){return le!=="annotation-xml"&&rx(le,ne)},Dr=function(le){Un(P.beforeSanitizeAttributes,le,null);const{attributes:Te}=le;if(!Te||ws(le))return;const Ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:oe,forceKeepAttr:void 0};let vt=Te.length;for(;vt--;){const ur=Te[vt],{name:Ut,namespaceURI:nr,value:mn}=ur,gn=Fe(Ut),Xs=mn;let gr=Ut==="value"?Xs:Xbe(Xs);if(Ge.attrName=gn,Ge.attrValue=gr,Ge.keepAttr=!0,Ge.forceKeepAttr=void 0,Un(P.uponSanitizeAttribute,le,Ge),gr=Ge.attrValue,W&&(gn==="id"||gn==="name")&&(Ti(Ut,le),gr=se+gr),je&&bn(/((--!?|])>)|<\/(style|title|textarea)/i,gr)){Ti(Ut,le);continue}if(gn==="attributename"&&rx(gr,"href")){Ti(Ut,le);continue}if(Ge.forceKeepAttr)continue;if(!Ge.keepAttr){Ti(Ut,le);continue}if(!Ne&&bn(/\/>/i,gr)){Ti(Ut,le);continue}he&&yp([F,M,G],Je=>{gr=ec(gr,Je," ")});const De=Fe(le.nodeName);if(!Ys(De,gn,gr)){Ti(Ut,le);continue}if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!nr)switch(d.getAttributeType(De,gn)){case"TrustedHTML":{gr=w.createHTML(gr);break}case"TrustedScriptURL":{gr=w.createScriptURL(gr);break}}if(gr!==Xs)try{nr?le.setAttributeNS(nr,Ut,gr):le.setAttribute(Ut,gr),ws(le)?dn(le):vB(t.removed)}catch{Ti(Ut,le)}}Un(P.afterSanitizeAttributes,le,null)},Ot=function tt(le){let Te=null;const Ge=Ks(le);for(Un(P.beforeSanitizeShadowDOM,le,null);Te=Ge.nextNode();)Un(P.uponSanitizeShadowNode,Te,null),Gs(Te),Dr(Te),Te.content instanceof s&&tt(Te.content);Un(P.afterSanitizeShadowDOM,le,null)};return t.sanitize=function(tt){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null,Ge=null,vt=null,ur=null;if(Mt=!tt,Mt&&(tt="<!-->"),typeof tt!="string"&&!hn(tt))if(typeof tt.toString=="function"){if(tt=tt.toString(),typeof tt!="string")throw tc("dirty is not a string, aborting")}else throw tc("toString is not a function");if(!t.isSupported)return tt;if(_e||Gt(le),t.removed=[],typeof tt=="string"&&(ge=!1),ge){if(tt.nodeName){const mn=Fe(tt.nodeName);if(!J[mn]||z[mn])throw tc("root node is forbidden and cannot be sanitized in-place")}}else if(tt instanceof o)Te=Hs("<!---->"),Ge=Te.ownerDocument.importNode(tt,!0),Ge.nodeType===nc.element&&Ge.nodeName==="BODY"||Ge.nodeName==="HTML"?Te=Ge:Te.appendChild(Ge);else{if(!Ae&&!he&&!Be&&tt.indexOf("<")===-1)return w&&T?w.createHTML(tt):tt;if(Te=Hs(tt),!Te)return Ae?null:T?E:""}Te&&we&&dn(Te.firstChild);const Ut=Ks(ge?tt:Te);for(;vt=Ut.nextNode();)Gs(vt),Dr(vt),vt.content instanceof s&&Ot(vt.content);if(ge)return tt;if(Ae){if(U)for(ur=I.call(Te.ownerDocument);Te.firstChild;)ur.appendChild(Te.firstChild);else ur=Te;return(oe.shadowroot||oe.shadowrootmode)&&(ur=D.call(n,ur,!0)),ur}let nr=Be?Te.outerHTML:Te.innerHTML;return Be&&J["!doctype"]&&Te.ownerDocument&&Te.ownerDocument.doctype&&Te.ownerDocument.doctype.name&&bn(RV,Te.ownerDocument.doctype.name)&&(nr="<!DOCTYPE "+Te.ownerDocument.doctype.name+`>
|
|
313
|
-
`+nr),he&&yp([F,M,G],mn=>{nr=ec(nr,mn," ")}),w&&T?w.createHTML(nr):nr},t.setConfig=function(){let tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gt(tt),_e=!0},t.clearConfig=function(){Ke=null,_e=!1},t.isValidAttribute=function(tt,le,Te){Ke||Gt({});const Ge=Fe(tt),vt=Fe(le);return Ys(Ge,vt,Te)},t.addHook=function(tt,le){typeof le=="function"&&Qu(P[tt],le)},t.removeHook=function(tt,le){if(le!==void 0){const Te=Kbe(P[tt],le);return Te===-1?void 0:Gbe(P[tt],Te,1)[0]}return vB(P[tt])},t.removeHooks=function(tt){P[tt]=[]},t.removeAllHooks=function(){P=xB()},t}var p_e=TV(),ox,AB;function d_e(){if(AB)return ox;AB=1;var e=$s(),t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source);function n(i){return i=e(i),i&&r.test(i)?i.replace(t,"\\$&"):i}return ox=n,ox}var h_e=d_e();const m_e=We.getDefaultExportFromCjs(h_e);var ux,OB;function g_e(){if(OB)return ux;OB=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return ux=r,ux}var cx,CB;function y_e(){if(CB)return cx;CB=1;var e=g_e(),t=v8();function r(n,i){return n!=null&&t(n,i,e)}return cx=r,cx}var v_e=y_e();const b_e=We.getDefaultExportFromCjs(v_e);var __e=$U();const E_e=We.getDefaultExportFromCjs(__e);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var S_e={7:function(e){var t,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(_,b,S){return Function.prototype.apply.call(_,b,S)};t=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var i=Number.isNaN||function(_){return _!=_};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(_,b){return new Promise((function(S,w){function E(R){_.removeListener(b,A),w(R)}function A(){typeof _.removeListener=="function"&&_.removeListener("error",E),S([].slice.call(arguments))}y(_,b,A,{once:!0}),b!=="error"&&(function(I,O,D){typeof I.on=="function"&&y(I,"error",O,D)})(_,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,_,b,S){var w,E,A;if(o(b),(E=v._events)===void 0?(E=v._events=Object.create(null),v._eventsCount=0):(E.newListener!==void 0&&(v.emit("newListener",_,b.listener?b.listener:b),E=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),(w=u(v))>0&&A.length>w&&!A.warned){A.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");R.name="MaxListenersExceededWarning",R.emitter=v,R.type=_,R.count=A.length,(function(O){console&&console.warn&&console.warn(O)})(R)}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,_,b){var S={fired:!1,wrapFn:void 0,target:v,type:_,listener:b},w=l.bind(S);return w.listener=b,S.wrapFn=w,w}function h(v,_,b){var S=v._events;if(S===void 0)return[];var w=S[_];return w===void 0?[]:typeof w=="function"?b?[w.listener||w]:[w]:b?(function(A){for(var R=new Array(A.length),I=0;I<R.length;++I)R[I]=A[I].listener||A[I];return R})(w):g(w,w.length)}function d(v){var _=this._events;if(_!==void 0){var b=_[v];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}function g(v,_){for(var b=new Array(_),S=0;S<_;++S)b[S]=v[S];return b}function y(v,_,b,S){if(typeof v.on=="function")S.once?v.once(_,b):v.on(_,b);else{if(typeof v.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v);v.addEventListener(_,(function w(E){S.once&&v.removeEventListener(_,w),b(E)}))}}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(_){if(typeof _!="number"||_<0||i(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(_){for(var b=[],S=1;S<arguments.length;S++)b.push(arguments[S]);var w=_==="error",E=this._events;if(E!==void 0)w=w&&E.error===void 0;else if(!w)return!1;if(w){var A;if(b.length>0&&(A=b[0]),A instanceof Error)throw A;var R=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw R.context=A,R}var I=E[_];if(I===void 0)return!1;if(typeof I=="function")n(I,this,b);else{var O=I.length,D=g(I,O);for(S=0;S<O;++S)n(D[S],this,b)}return!0},s.prototype.addListener=function(_,b){return c(this,_,b,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(_,b){return c(this,_,b,!0)},s.prototype.once=function(_,b){return o(b),this.on(_,f(this,_,b)),this},s.prototype.prependOnceListener=function(_,b){return o(b),this.prependListener(_,f(this,_,b)),this},s.prototype.removeListener=function(_,b){var S,w,E,A,R;if(o(b),(w=this._events)===void 0)return this;if((S=w[_])===void 0)return this;if(S===b||S.listener===b)--this._eventsCount==0?this._events=Object.create(null):(delete w[_],w.removeListener&&this.emit("removeListener",_,S.listener||b));else if(typeof S!="function"){for(E=-1,A=S.length-1;A>=0;A--)if(S[A]===b||S[A].listener===b){R=S[A].listener,E=A;break}if(E<0)return this;E===0?S.shift():(function(O,D){for(;D+1<O.length;D++)O[D]=O[D+1];O.pop()})(S,E),S.length===1&&(w[_]=S[0]),w.removeListener!==void 0&&this.emit("removeListener",_,R||b)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(_){var b,S,w;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[_]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete S[_]),this;if(arguments.length===0){var E,A=Object.keys(S);for(w=0;w<A.length;++w)(E=A[w])!=="removeListener"&&this.removeAllListeners(E);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(b=S[_])=="function")this.removeListener(_,b);else if(b!==void 0)for(w=b.length-1;w>=0;w--)this.removeListener(_,b[w]);return this},s.prototype.listeners=function(_){return h(this,_,!0)},s.prototype.rawListeners=function(_){return h(this,_,!1)},s.listenerCount=function(v,_){return typeof v.listenerCount=="function"?v.listenerCount(_):d.call(v,_)},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,_){return _^y&(v^_)}function l(y,v,_){return y&v|_&(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,_=0|this._a,b=0|this._b,S=0|this._c,w=0|this._d,E=0|this._e,A=0|this._f,R=0|this._g,I=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 D=0;D<64;++D){var P=I+h(E)+c(E,A,R)+a[D]+v[D]|0,F=f(_)+l(_,b,S)|0;I=R,R=A,A=E,E=w+P|0,w=S,S=b,b=_,_=P+F|0}this._a=_+this._a|0,this._b=b+this._b|0,this._c=S+this._c|0,this._d=w+this._d|0,this._e=E+this._e|0,this._f=A+this._f|0,this._g=R+this._g|0,this._h=I+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,w){return new Array(w||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 _(b){Object.keys(b).forEach((function(S){y.push((function(E,A){return E+'="'+i(A)+'"'})(S,b[S]))}))}switch(typeof d){case"object":if(d===null)break;d._attr&&_(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"?_(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?`
|
|
314
|
-
`:"")),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?`
|
|
315
|
-
`:"")),!f)return u(!1,c.indent?`
|
|
316
|
-
`:"");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(w){y?n.nextTick(w):w()}function _(w,E){if(E!==void 0&&(h+=E),w&&!d&&(f=f||new s,d=!0),w&&d){var A=h;v((function(){f.emit("data",A)})),h=""}}function b(w,E){o(_,a(w,g,g?1:0),E)}function S(){if(f){var w=h;v((function(){f.emit("data",w),f.emit("end"),f.readable=!1,f.emit("close")}))}}return v((function(){y=!1})),l.declaration&&(function(E){var A={version:"1.0",encoding:E.encoding||"UTF-8"};E.standalone&&(A.standalone=E.standalone),b({"?xml":{_attr:A}}),h=h.replace("/>","?>")})(l.declaration),c&&c.forEach?c.forEach((function(w,E){var A;E+1===c.length&&(A=S),b(w,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(_){var b=(function(w){if(!w)return"utf8";for(var E;;)switch(w){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 w;default:if(E)return;w=(""+w).toLowerCase(),E=!0}})(_);if(typeof b!="string"&&(n.isEncoding===i||!i(_)))throw new Error("Unknown encoding: "+_);return b||_})(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,w){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 _=v.charCodeAt(v.length-1);if(_>=55296&&_<=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 _=(function(w,E,A){var R=E.length-1;if(R<A)return 0;var I=a(E[R]);return I>=0?(I>0&&(w.lastNeed=I-1),I):--R<A||I===-2?0:(I=a(E[R]),I>=0?(I>0&&(w.lastNeed=I-2),I):--R<A||I===-2?0:(I=a(E[R]),I>=0?(I>0&&(I===2?I=0:w.lastNeed=I-3),I):0))})(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=_;var b=y.length-(_-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.
|
|
317
|
-
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(w){var E=!1;return function(){if(!E){E=!0;for(var A=arguments.length,R=new Array(A),I=0;I<A;I++)R[I]=arguments[I];w.apply(this,R)}}})(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(w){u.call(a,w)},_=function(){var w;return c&&!g?(a._readableState&&a._readableState.ended||(w=new n),u.call(a,w)):l&&!h?(a._writableState&&a._writableState.ended||(w=new n),u.call(a,w)):void 0},b=function(){a.req.on("finish",d)};return(function(w){return w.setHeader&&typeof w.abort=="function"})(a)?(a.on("complete",d),a.on("abort",_),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",_),function(){a.removeListener("complete",d),a.removeListener("abort",_),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",_)}}},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(U){if(U>a)throw new RangeError('The value "'+U+'" is invalid for option "size"');const T=new Uint8Array(U);return Object.setPrototypeOf(T,u.prototype),T}function u(U,T,k){if(typeof U=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(U)}return c(U,T,k)}function c(U,T,k){if(typeof U=="string")return(function(ge,Me){if(typeof Me=="string"&&Me!==""||(Me="utf8"),!u.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me);const Xe=0|y(ge,Me);let $=o(Xe);const C=$.write(ge,Me);return C!==Xe&&($=$.slice(0,C)),$})(U,T);if(ArrayBuffer.isView(U))return(function(ge){if(je(ge,Uint8Array)){const Me=new Uint8Array(ge);return d(Me.buffer,Me.byteOffset,Me.byteLength)}return h(ge)})(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(je(U,ArrayBuffer)||U&&je(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(je(U,SharedArrayBuffer)||U&&je(U.buffer,SharedArrayBuffer)))return d(U,T,k);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const W=U.valueOf&&U.valueOf();if(W!=null&&W!==U)return u.from(W,T,k);const se=(function(ge){if(u.isBuffer(ge)){const Me=0|g(ge.length),Xe=o(Me);return Xe.length===0||ge.copy(Xe,0,0,Me),Xe}if(ge.length!==void 0)return typeof ge.length!="number"||Be(ge.length)?o(0):h(ge);if(ge.type==="Buffer"&&Array.isArray(ge.data))return h(ge.data)})(U);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return u.from(U[Symbol.toPrimitive]("string"),T,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}function l(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function f(U){return l(U),o(U<0?0:0|g(U))}function h(U){const T=U.length<0?0:0|g(U.length),k=o(T);for(let W=0;W<T;W+=1)k[W]=255&U[W];return k}function d(U,T,k){if(T<0||U.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<T+(k||0))throw new RangeError('"length" is outside of buffer bounds');let W;return W=T===void 0&&k===void 0?new Uint8Array(U):k===void 0?new Uint8Array(U,T):new Uint8Array(U,T,k),Object.setPrototypeOf(W,u.prototype),W}function g(U){if(U>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|U}function y(U,T){if(u.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||je(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const k=U.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&k===0)return 0;let se=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Ce(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*k;case"hex":return k>>>1;case"base64":return Ne(U).length;default:if(se)return W?-1:Ce(U).length;T=(""+T).toLowerCase(),se=!0}}function v(U,T,k){let W=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0)<=(T>>>=0))return"";for(U||(U="utf8");;)switch(U){case"hex":return G(this,T,k);case"utf8":case"utf-8":return D(this,T,k);case"ascii":return F(this,T,k);case"latin1":case"binary":return M(this,T,k);case"base64":return O(this,T,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,T,k);default:if(W)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),W=!0}}function _(U,T,k){const W=U[T];U[T]=U[k],U[k]=W}function b(U,T,k,W,se){if(U.length===0)return-1;if(typeof k=="string"?(W=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),Be(k=+k)&&(k=se?0:U.length-1),k<0&&(k=U.length+k),k>=U.length){if(se)return-1;k=U.length-1}else if(k<0){if(!se)return-1;k=0}if(typeof T=="string"&&(T=u.from(T,W)),u.isBuffer(T))return T.length===0?-1:S(U,T,k,W,se);if(typeof T=="number")return T&=255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(U,T,k):Uint8Array.prototype.lastIndexOf.call(U,T,k):S(U,[T],k,W,se);throw new TypeError("val must be string, number or Buffer")}function S(U,T,k,W,se){let ue,ge=1,Me=U.length,Xe=T.length;if(W!==void 0&&((W=String(W).toLowerCase())==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(U.length<2||T.length<2)return-1;ge=2,Me/=2,Xe/=2,k/=2}function $(C,j){return ge===1?C[j]:C.readUInt16BE(j*ge)}if(se){let C=-1;for(ue=k;ue<Me;ue++)if($(U,ue)===$(T,C===-1?0:ue-C)){if(C===-1&&(C=ue),ue-C+1===Xe)return C*ge}else C!==-1&&(ue-=ue-C),C=-1}else for(k+Xe>Me&&(k=Me-Xe),ue=k;ue>=0;ue--){let C=!0;for(let j=0;j<Xe;j++)if($(U,ue+j)!==$(T,j)){C=!1;break}if(C)return ue}return-1}function w(U,T,k,W){k=Number(k)||0;const se=U.length-k;W?(W=Number(W))>se&&(W=se):W=se;const ue=T.length;let ge;for(W>ue/2&&(W=ue/2),ge=0;ge<W;++ge){const Me=parseInt(T.substr(2*ge,2),16);if(Be(Me))return ge;U[k+ge]=Me}return ge}function E(U,T,k,W){return he(Ce(T,U.length-k),U,k,W)}function A(U,T,k,W){return he((function(ue){const ge=[];for(let Me=0;Me<ue.length;++Me)ge.push(255&ue.charCodeAt(Me));return ge})(T),U,k,W)}function R(U,T,k,W){return he(Ne(T),U,k,W)}function I(U,T,k,W){return he((function(ue,ge){let Me,Xe,$;const C=[];for(let j=0;j<ue.length&&!((ge-=2)<0);++j)Me=ue.charCodeAt(j),Xe=Me>>8,$=Me%256,C.push($),C.push(Xe);return C})(T,U.length-k),U,k,W)}function O(U,T,k){return T===0&&k===U.length?n.fromByteArray(U):n.fromByteArray(U.slice(T,k))}function D(U,T,k){k=Math.min(U.length,k);const W=[];let se=T;for(;se<k;){const ue=U[se];let ge=null,Me=ue>239?4:ue>223?3:ue>191?2:1;if(se+Me<=k){let Xe,$,C,j;switch(Me){case 1:ue<128&&(ge=ue);break;case 2:Xe=U[se+1],(192&Xe)==128&&(j=(31&ue)<<6|63&Xe,j>127&&(ge=j));break;case 3:Xe=U[se+1],$=U[se+2],(192&Xe)==128&&(192&$)==128&&(j=(15&ue)<<12|(63&Xe)<<6|63&$,j>2047&&(j<55296||j>57343)&&(ge=j));break;case 4:Xe=U[se+1],$=U[se+2],C=U[se+3],(192&Xe)==128&&(192&$)==128&&(192&C)==128&&(j=(15&ue)<<18|(63&Xe)<<12|(63&$)<<6|63&C,j>65535&&j<1114112&&(ge=j))}}ge===null?(ge=65533,Me=1):ge>65535&&(ge-=65536,W.push(ge>>>10&1023|55296),ge=56320|1023&ge),W.push(ge),se+=Me}return(function(ge){const Me=ge.length;if(Me<=P)return String.fromCharCode.apply(String,ge);let Xe="",$=0;for(;$<Me;)Xe+=String.fromCharCode.apply(String,ge.slice($,$+=P));return Xe})(W)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=(function(){try{const T=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(T,k),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(U,T,k){return c(U,T,k)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(U,T,k){return(function(se,ue,ge){return l(se),se<=0?o(se):ue!==void 0?typeof ge=="string"?o(se).fill(ue,ge):o(se).fill(ue):o(se)})(U,T,k)},u.allocUnsafe=function(U){return f(U)},u.allocUnsafeSlow=function(U){return f(U)},u.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==u.prototype},u.compare=function(T,k){if(je(T,Uint8Array)&&(T=u.from(T,T.offset,T.byteLength)),je(k,Uint8Array)&&(k=u.from(k,k.offset,k.byteLength)),!u.isBuffer(T)||!u.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===k)return 0;let W=T.length,se=k.length;for(let ue=0,ge=Math.min(W,se);ue<ge;++ue)if(T[ue]!==k[ue]){W=T[ue],se=k[ue];break}return W<se?-1:se<W?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,k){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return u.alloc(0);let W;if(k===void 0)for(k=0,W=0;W<T.length;++W)k+=T[W].length;const se=u.allocUnsafe(k);let ue=0;for(W=0;W<T.length;++W){let ge=T[W];if(je(ge,Uint8Array))ue+ge.length>se.length?(u.isBuffer(ge)||(ge=u.from(ge)),ge.copy(se,ue)):Uint8Array.prototype.set.call(se,ge,ue);else{if(!u.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(se,ue)}ue+=ge.length}return se},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 k=0;k<T;k+=2)_(this,k,k+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 k=0;k<T;k+=4)_(this,k,k+3),_(this,k+1,k+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 k=0;k<T;k+=8)_(this,k,k+7),_(this,k+1,k+6),_(this,k+2,k+5),_(this,k+3,k+4);return this},u.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?D(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 k=t.INSPECT_MAX_BYTES;return T=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(T+=" ... "),"<Buffer "+T+">"},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(T,k,W,se,ue){if(je(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(k===void 0&&(k=0),W===void 0&&(W=T?T.length:0),se===void 0&&(se=0),ue===void 0&&(ue=this.length),k<0||W>T.length||se<0||ue>this.length)throw new RangeError("out of range index");if(se>=ue&&k>=W)return 0;if(se>=ue)return-1;if(k>=W)return 1;if(this===T)return 0;let ge=(ue>>>=0)-(se>>>=0),Me=(W>>>=0)-(k>>>=0);const Xe=Math.min(ge,Me),$=this.slice(se,ue),C=T.slice(k,W);for(let j=0;j<Xe;++j)if($[j]!==C[j]){ge=$[j],Me=C[j];break}return ge<Me?-1:Me<ge?1:0},u.prototype.includes=function(T,k,W){return this.indexOf(T,k,W)!==-1},u.prototype.indexOf=function(T,k,W){return b(this,T,k,W,!0)},u.prototype.lastIndexOf=function(T,k,W){return b(this,T,k,W,!1)},u.prototype.write=function(T,k,W,se){if(k===void 0)se="utf8",W=this.length,k=0;else if(W===void 0&&typeof k=="string")se=k,W=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k>>>=0,isFinite(W)?(W>>>=0,se===void 0&&(se="utf8")):(se=W,W=void 0)}const ue=this.length-k;if((W===void 0||W>ue)&&(W=ue),T.length>0&&(W<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");let ge=!1;for(;;)switch(se){case"hex":return w(this,T,k,W);case"utf8":case"utf-8":return E(this,T,k,W);case"ascii":case"latin1":case"binary":return A(this,T,k,W);case"base64":return R(this,T,k,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,T,k,W);default:if(ge)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),ge=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function F(U,T,k){let W="";k=Math.min(U.length,k);for(let se=T;se<k;++se)W+=String.fromCharCode(127&U[se]);return W}function M(U,T,k){let W="";k=Math.min(U.length,k);for(let se=T;se<k;++se)W+=String.fromCharCode(U[se]);return W}function G(U,T,k){const W=U.length;(!T||T<0)&&(T=0),(!k||k<0||k>W)&&(k=W);let se="";for(let ue=T;ue<k;++ue)se+=_e[U[ue]];return se}function ee(U,T,k){const W=U.slice(T,k);let se="";for(let ue=0;ue<W.length-1;ue+=2)se+=String.fromCharCode(W[ue]+256*W[ue+1]);return se}function H(U,T,k){if(U%1!=0||U<0)throw new RangeError("offset is not uint");if(U+T>k)throw new RangeError("Trying to access beyond buffer length")}function Q(U,T,k,W,se,ue){if(!u.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>se||T<ue)throw new RangeError('"value" argument is out of bounds');if(k+W>U.length)throw new RangeError("Index out of range")}function re(U,T,k,W,se){z(T,W,se,U,k,7);let ue=Number(T&BigInt(4294967295));U[k++]=ue,ue>>=8,U[k++]=ue,ue>>=8,U[k++]=ue,ue>>=8,U[k++]=ue;let ge=Number(T>>BigInt(32)&BigInt(4294967295));return U[k++]=ge,ge>>=8,U[k++]=ge,ge>>=8,U[k++]=ge,ge>>=8,U[k++]=ge,k}function ne(U,T,k,W,se){z(T,W,se,U,k,7);let ue=Number(T&BigInt(4294967295));U[k+7]=ue,ue>>=8,U[k+6]=ue,ue>>=8,U[k+5]=ue,ue>>=8,U[k+4]=ue;let ge=Number(T>>BigInt(32)&BigInt(4294967295));return U[k+3]=ge,ge>>=8,U[k+2]=ge,ge>>=8,U[k+1]=ge,ge>>=8,U[k]=ge,k+8}function B(U,T,k,W,se,ue){if(k+W>U.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function J(U,T,k,W,se){return T=+T,k>>>=0,se||B(U,0,k,4),i.write(U,T,k,W,23,4),k+4}function ie(U,T,k,W,se){return T=+T,k>>>=0,se||B(U,0,k,8),i.write(U,T,k,W,52,8),k+8}u.prototype.slice=function(T,k){const W=this.length;(T=~~T)<0?(T+=W)<0&&(T=0):T>W&&(T=W),(k=k===void 0?W:~~k)<0?(k+=W)<0&&(k=0):k>W&&(k=W),k<T&&(k=T);const se=this.subarray(T,k);return Object.setPrototypeOf(se,u.prototype),se},u.prototype.readUintLE=u.prototype.readUIntLE=function(T,k,W){T>>>=0,k>>>=0,W||H(T,k,this.length);let se=this[T],ue=1,ge=0;for(;++ge<k&&(ue*=256);)se+=this[T+ge]*ue;return se},u.prototype.readUintBE=u.prototype.readUIntBE=function(T,k,W){T>>>=0,k>>>=0,W||H(T,k,this.length);let se=this[T+--k],ue=1;for(;k>0&&(ue*=256);)se+=this[T+--k]*ue;return se},u.prototype.readUint8=u.prototype.readUInt8=function(T,k){return T>>>=0,k||H(T,1,this.length),this[T]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(T,k){return T>>>=0,k||H(T,2,this.length),this[T]|this[T+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(T,k){return T>>>=0,k||H(T,2,this.length),this[T]<<8|this[T+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(T,k){return T>>>=0,k||H(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,k){return T>>>=0,k||H(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},u.prototype.readBigUInt64LE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=k+256*this[++T]+65536*this[++T]+this[++T]*2**24,ue=this[++T]+256*this[++T]+65536*this[++T]+W*2**24;return BigInt(se)+(BigInt(ue)<<BigInt(32))})),u.prototype.readBigUInt64BE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=k*2**24+65536*this[++T]+256*this[++T]+this[++T],ue=this[++T]*2**24+65536*this[++T]+256*this[++T]+W;return(BigInt(se)<<BigInt(32))+BigInt(ue)})),u.prototype.readIntLE=function(T,k,W){T>>>=0,k>>>=0,W||H(T,k,this.length);let se=this[T],ue=1,ge=0;for(;++ge<k&&(ue*=256);)se+=this[T+ge]*ue;return ue*=128,se>=ue&&(se-=Math.pow(2,8*k)),se},u.prototype.readIntBE=function(T,k,W){T>>>=0,k>>>=0,W||H(T,k,this.length);let se=k,ue=1,ge=this[T+--se];for(;se>0&&(ue*=256);)ge+=this[T+--se]*ue;return ue*=128,ge>=ue&&(ge-=Math.pow(2,8*k)),ge},u.prototype.readInt8=function(T,k){return T>>>=0,k||H(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},u.prototype.readInt16LE=function(T,k){T>>>=0,k||H(T,2,this.length);const W=this[T]|this[T+1]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt16BE=function(T,k){T>>>=0,k||H(T,2,this.length);const W=this[T+1]|this[T]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt32LE=function(T,k){return T>>>=0,k||H(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},u.prototype.readInt32BE=function(T,k){return T>>>=0,k||H(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},u.prototype.readBigInt64LE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=this[T+4]+256*this[T+5]+65536*this[T+6]+(W<<24);return(BigInt(se)<<BigInt(32))+BigInt(k+256*this[++T]+65536*this[++T]+this[++T]*2**24)})),u.prototype.readBigInt64BE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=(k<<24)+65536*this[++T]+256*this[++T]+this[++T];return(BigInt(se)<<BigInt(32))+BigInt(this[++T]*2**24+65536*this[++T]+256*this[++T]+W)})),u.prototype.readFloatLE=function(T,k){return T>>>=0,k||H(T,4,this.length),i.read(this,T,!0,23,4)},u.prototype.readFloatBE=function(T,k){return T>>>=0,k||H(T,4,this.length),i.read(this,T,!1,23,4)},u.prototype.readDoubleLE=function(T,k){return T>>>=0,k||H(T,8,this.length),i.read(this,T,!0,52,8)},u.prototype.readDoubleBE=function(T,k){return T>>>=0,k||H(T,8,this.length),i.read(this,T,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(T,k,W,se){T=+T,k>>>=0,W>>>=0,!se&&Q(this,T,k,W,Math.pow(2,8*W)-1,0);let ue=1,ge=0;for(this[k]=255&T;++ge<W&&(ue*=256);)this[k+ge]=T/ue&255;return k+W},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(T,k,W,se){T=+T,k>>>=0,W>>>=0,!se&&Q(this,T,k,W,Math.pow(2,8*W)-1,0);let ue=W-1,ge=1;for(this[k+ue]=255&T;--ue>=0&&(ge*=256);)this[k+ue]=T/ge&255;return k+W},u.prototype.writeUint8=u.prototype.writeUInt8=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,1,255,0),this[k]=255&T,k+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,65535,0),this[k]=255&T,this[k+1]=T>>>8,k+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,65535,0),this[k]=T>>>8,this[k+1]=255&T,k+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,4294967295,0),this[k+3]=T>>>24,this[k+2]=T>>>16,this[k+1]=T>>>8,this[k]=255&T,k+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,4294967295,0),this[k]=T>>>24,this[k+1]=T>>>16,this[k+2]=T>>>8,this[k+3]=255&T,k+4},u.prototype.writeBigUInt64LE=we((function(T,k=0){return re(this,T,k,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=we((function(T,k=0){return ne(this,T,k,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(T,k,W,se){if(T=+T,k>>>=0,!se){const Xe=Math.pow(2,8*W-1);Q(this,T,k,W,Xe-1,-Xe)}let ue=0,ge=1,Me=0;for(this[k]=255&T;++ue<W&&(ge*=256);)T<0&&Me===0&&this[k+ue-1]!==0&&(Me=1),this[k+ue]=(T/ge|0)-Me&255;return k+W},u.prototype.writeIntBE=function(T,k,W,se){if(T=+T,k>>>=0,!se){const Xe=Math.pow(2,8*W-1);Q(this,T,k,W,Xe-1,-Xe)}let ue=W-1,ge=1,Me=0;for(this[k+ue]=255&T;--ue>=0&&(ge*=256);)T<0&&Me===0&&this[k+ue+1]!==0&&(Me=1),this[k+ue]=(T/ge|0)-Me&255;return k+W},u.prototype.writeInt8=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,1,127,-128),T<0&&(T=255+T+1),this[k]=255&T,k+1},u.prototype.writeInt16LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,32767,-32768),this[k]=255&T,this[k+1]=T>>>8,k+2},u.prototype.writeInt16BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,32767,-32768),this[k]=T>>>8,this[k+1]=255&T,k+2},u.prototype.writeInt32LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,2147483647,-2147483648),this[k]=255&T,this[k+1]=T>>>8,this[k+2]=T>>>16,this[k+3]=T>>>24,k+4},u.prototype.writeInt32BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[k]=T>>>24,this[k+1]=T>>>16,this[k+2]=T>>>8,this[k+3]=255&T,k+4},u.prototype.writeBigInt64LE=we((function(T,k=0){return re(this,T,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=we((function(T,k=0){return ne(this,T,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(T,k,W){return J(this,T,k,!0,W)},u.prototype.writeFloatBE=function(T,k,W){return J(this,T,k,!1,W)},u.prototype.writeDoubleLE=function(T,k,W){return ie(this,T,k,!0,W)},u.prototype.writeDoubleBE=function(T,k,W){return ie(this,T,k,!1,W)},u.prototype.copy=function(T,k,W,se){if(!u.isBuffer(T))throw new TypeError("argument should be a Buffer");if(W||(W=0),se||se===0||(se=this.length),k>=T.length&&(k=T.length),k||(k=0),se>0&&se<W&&(se=W),se===W||T.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("sourceEnd out of bounds");se>this.length&&(se=this.length),T.length-k<se-W&&(se=T.length-k+W);const ue=se-W;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,W,se):Uint8Array.prototype.set.call(T,this.subarray(W,se),k),ue},u.prototype.fill=function(T,k,W,se){if(typeof T=="string"){if(typeof k=="string"?(se=k,k=0,W=this.length):typeof W=="string"&&(se=W,W=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!u.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(T.length===1){const ge=T.charCodeAt(0);(se==="utf8"&&ge<128||se==="latin1")&&(T=ge)}}else typeof T=="number"?T&=255:typeof T=="boolean"&&(T=Number(T));if(k<0||this.length<k||this.length<W)throw new RangeError("Out of range index");if(W<=k)return this;let ue;if(k>>>=0,W=W===void 0?this.length:W>>>0,T||(T=0),typeof T=="number")for(ue=k;ue<W;++ue)this[ue]=T;else{const ge=u.isBuffer(T)?T:u.from(T,se),Me=ge.length;if(Me===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(ue=0;ue<W-k;++ue)this[ue+k]=ge[ue%Me]}return this};const oe={};function ce(U,T,k){oe[U]=class extends k{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${U}]`,this.stack,delete this.name}get code(){return U}set code(se){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:se,writable:!0})}toString(){return`${this.name} [${U}]: ${this.message}`}}}function te(U){let T="",k=U.length;const W=U[0]==="-"?1:0;for(;k>=W+4;k-=3)T=`_${U.slice(k-3,k)}${T}`;return`${U.slice(0,k)}${T}`}function z(U,T,k,W,se,ue){if(U>k||U<T){const ge=typeof T=="bigint"?"n":"";let Me;throw Me=T===0||T===BigInt(0)?`>= 0${ge} and < 2${ge} ** ${8*(ue+1)}${ge}`:`>= -(2${ge} ** ${8*(ue+1)-1}${ge}) and < 2 ** ${8*(ue+1)-1}${ge}`,new oe.ERR_OUT_OF_RANGE("value",Me,U)}(function(Me,Xe,$){V(Xe,"offset"),Me[Xe]!==void 0&&Me[Xe+$]!==void 0||fe(Xe,Me.length-($+1))})(W,se,ue)}function V(U,T){if(typeof U!="number")throw new oe.ERR_INVALID_ARG_TYPE(T,"number",U)}function fe(U,T,k){throw Math.floor(U)!==U?(V(U,k),new oe.ERR_OUT_OF_RANGE("offset","an integer",U)):T<0?new oe.ERR_BUFFER_OUT_OF_BOUNDS:new oe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${T}`,U)}ce("ERR_BUFFER_OUT_OF_BOUNDS",(function(U){return U?`${U} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),ce("ERR_INVALID_ARG_TYPE",(function(U,T){return`The "${U}" argument must be of type number. Received type ${typeof T}`}),TypeError),ce("ERR_OUT_OF_RANGE",(function(U,T,k){let W=`The value of "${U}" is out of range.`,se=k;return Number.isInteger(k)&&Math.abs(k)>2**32?se=te(String(k)):typeof k=="bigint"&&(se=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(se=te(se)),se+="n"),W+=` It must be ${T}. Received ${se}`,W}),RangeError);const me=/[^+/0-9A-Za-z-_]/g;function Ce(U,T){let k;T=T||1/0;const W=U.length;let se=null;const ue=[];for(let ge=0;ge<W;++ge){if(k=U.charCodeAt(ge),k>55295&&k<57344){if(!se){if(k>56319){(T-=3)>-1&&ue.push(239,191,189);continue}if(ge+1===W){(T-=3)>-1&&ue.push(239,191,189);continue}se=k;continue}if(k<56320){(T-=3)>-1&&ue.push(239,191,189),se=k;continue}k=65536+(se-55296<<10|k-56320)}else se&&(T-=3)>-1&&ue.push(239,191,189);if(se=null,k<128){if((T-=1)<0)break;ue.push(k)}else if(k<2048){if((T-=2)<0)break;ue.push(k>>6|192,63&k|128)}else if(k<65536){if((T-=3)<0)break;ue.push(k>>12|224,k>>6&63|128,63&k|128)}else{if(!(k<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;ue.push(k>>18|240,k>>12&63|128,k>>6&63|128,63&k|128)}}return ue}function Ne(U){return n.toByteArray((function(k){if((k=(k=k.split("=")[0]).trim().replace(me,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k})(U))}function he(U,T,k,W){let se;for(se=0;se<W&&!(se+k>=T.length||se>=U.length);++se)T[se+k]=U[se];return se}function je(U,T){return U instanceof T||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===T.name}function Be(U){return U!=U}const _e=(function(){const U="0123456789abcdef",T=new Array(256);for(let k=0;k<16;++k){const W=16*k;for(let se=0;se<16;++se)T[W+se]=U[k]+U[se]}return T})();function we(U){return typeof BigInt>"u"?Ae:U}function Ae(){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=_H},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,i=r(496);function s(a,o){this._block=n.alloc(a),this._finalSize=o,this._blockSize=a,this._len=0}s.prototype.update=function(a,o){a=i(a,o||"utf8");for(var u=this._block,c=this._blockSize,l=a.length,f=this._len,h=0;h<l;){for(var d=f%c,g=Math.min(l-h,c-d),y=0;y<g;y++)u[d+y]=a[h+y];h+=g,(f+=g)%c==0&&this._update(u)}return this._len+=l,this},s.prototype.digest=function(a){var o=this._len%this._blockSize;this._block[o]=128,this._block.fill(0,o+1),o>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=8*this._len;if(u<=4294967295)this._block.writeUInt32BE(u,this._blockSize-4);else{var c=(4294967295&u)>>>0,l=(u-c)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);var f=this._hash();return a?f.toString(a):f},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=s},412:function(e,t,r){var n,i=r(606);e.exports=O,O.ReadableState=I,r(7).EventEmitter;var s=function(V,fe){return V.listeners(fe).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,_=r(48).F,b=_.ERR_INVALID_ARG_TYPE,S=_.ERR_STREAM_PUSH_AFTER_EOF,w=_.ERR_METHOD_NOT_IMPLEMENTED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(O,a);var A=y.errorOrDestroy,R=["error","close","destroy","pause","resume"];function I(z,V,fe){n=n||r(382),z=z||{},typeof fe!="boolean"&&(fe=V instanceof n),this.objectMode=!!z.objectMode,fe&&(this.objectMode=this.objectMode||!!z.readableObjectMode),this.highWaterMark=v(this,z,"readableHighWaterMark",fe),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=z.emitClose!==!1,this.autoDestroy=!!z.autoDestroy,this.destroyed=!1,this.defaultEncoding=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(f||(f=r(141).I),this.decoder=new f(z.encoding),this.encoding=z.encoding)}function O(z){if(n=n||r(382),!(this instanceof O))return new O(z);var V=this instanceof n;this._readableState=new I(z,this,V),this.readable=!0,z&&(typeof z.read=="function"&&(this._read=z.read),typeof z.destroy=="function"&&(this._destroy=z.destroy)),a.call(this)}function D(z,V,fe,me,Ce){c("readableAddChunk",V);var Ne,he=z._readableState;if(V===null)he.reading=!1,(function(Be,_e){if(c("onEofChunk"),!_e.ended){if(_e.decoder){var we=_e.decoder.end();we&&we.length&&(_e.buffer.push(we),_e.length+=_e.objectMode?1:we.length)}_e.ended=!0,_e.sync?G(Be):(_e.needReadable=!1,_e.emittedReadable||(_e.emittedReadable=!0,ee(Be)))}})(z,he);else if(Ce||(Ne=(function(Be,_e){var we;return(function(U){return o.isBuffer(U)||U instanceof u})(_e)||typeof _e=="string"||_e===void 0||Be.objectMode||(we=new b("chunk",["string","Buffer","Uint8Array"],_e)),we})(he,V)),Ne)A(z,Ne);else if(he.objectMode||V&&V.length>0)if(typeof V=="string"||he.objectMode||Object.getPrototypeOf(V)===o.prototype||(V=(function(Be){return o.from(Be)})(V)),me)he.endEmitted?A(z,new E):P(z,he,V,!0);else if(he.ended)A(z,new S);else{if(he.destroyed)return!1;he.reading=!1,he.decoder&&!fe?(V=he.decoder.write(V),he.objectMode||V.length!==0?P(z,he,V,!1):H(z,he)):P(z,he,V,!1)}else me||(he.reading=!1,H(z,he));return!he.ended&&(he.length<he.highWaterMark||he.length===0)}function P(z,V,fe,me){V.flowing&&V.length===0&&!V.sync?(V.awaitDrain=0,z.emit("data",fe)):(V.length+=V.objectMode?1:fe.length,me?V.buffer.unshift(fe):V.buffer.push(fe),V.needReadable&&G(z)),H(z,V)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(V){this._readableState&&(this._readableState.destroyed=V)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(z,V){V(z)},O.prototype.push=function(z,V){var fe,me=this._readableState;return me.objectMode?fe=!0:typeof z=="string"&&((V=V||me.defaultEncoding)!==me.encoding&&(z=o.from(z,V),V=""),fe=!0),D(this,z,V,!1,fe)},O.prototype.unshift=function(z){return D(this,z,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(z){f||(f=r(141).I);var V=new f(z);this._readableState.decoder=V,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,me="";fe!==null;)me+=V.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),me!==""&&this._readableState.buffer.push(me),this._readableState.length=me.length,this};var F=1073741824;function M(z,V){return z<=0||V.length===0&&V.ended?0:V.objectMode?1:z!=z?V.flowing&&V.length?V.buffer.head.data.length:V.length:(z>V.highWaterMark&&(V.highWaterMark=(function(me){return me>=F?me=F:(me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,me++),me})(z)),z<=V.length?z:V.ended?V.length:(V.needReadable=!0,0))}function G(z){var V=z._readableState;c("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(c("emitReadable",V.flowing),V.emittedReadable=!0,i.nextTick(ee,z))}function ee(z){var V=z._readableState;c("emitReadable_",V.destroyed,V.length,V.ended),V.destroyed||!V.length&&!V.ended||(z.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,J(z)}function H(z,V){V.readingMore||(V.readingMore=!0,i.nextTick(Q,z,V))}function Q(z,V){for(;!V.reading&&!V.ended&&(V.length<V.highWaterMark||V.flowing&&V.length===0);){var fe=V.length;if(c("maybeReadMore read 0"),z.read(0),fe===V.length)break}V.readingMore=!1}function re(z){var V=z._readableState;V.readableListening=z.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:z.listenerCount("data")>0&&z.resume()}function ne(z){c("readable nexttick read 0"),z.read(0)}function B(z,V){c("resume",V.reading),V.reading||z.read(0),V.resumeScheduled=!1,z.emit("resume"),J(z),V.flowing&&!V.reading&&z.read(0)}function J(z){var V=z._readableState;for(c("flow",V.flowing);V.flowing&&z.read()!==null;);}function ie(z,V){return V.length===0?null:(V.objectMode?fe=V.buffer.shift():!z||z>=V.length?(fe=V.decoder?V.buffer.join(""):V.buffer.length===1?V.buffer.first():V.buffer.concat(V.length),V.buffer.clear()):fe=V.buffer.consume(z,V.decoder),fe);var fe}function oe(z){var V=z._readableState;c("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,i.nextTick(ce,V,z))}function ce(z,V){if(c("endReadableNT",z.endEmitted,z.length),!z.endEmitted&&z.length===0&&(z.endEmitted=!0,V.readable=!1,V.emit("end"),z.autoDestroy)){var fe=V._writableState;(!fe||fe.autoDestroy&&fe.finished)&&V.destroy()}}function te(z,V){for(var fe=0,me=z.length;fe<me;fe++)if(z[fe]===V)return fe;return-1}O.prototype.read=function(z){c("read",z),z=parseInt(z,10);var V=this._readableState,fe=z;if(z!==0&&(V.emittedReadable=!1),z===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return c("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?oe(this):G(this),null;if((z=M(z,V))===0&&V.ended)return V.length===0&&oe(this),null;var me,Ce=V.needReadable;return c("need readable",Ce),(V.length===0||V.length-z<V.highWaterMark)&&c("length less than watermark",Ce=!0),V.ended||V.reading?c("reading or ended",Ce=!1):Ce&&(c("do read"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(z=M(fe,V))),(me=z>0?ie(z,V):null)===null?(V.needReadable=V.length<=V.highWaterMark,z=0):(V.length-=z,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),fe!==z&&V.ended&&oe(this)),me!==null&&this.emit("data",me),me},O.prototype._read=function(z){A(this,new w("_read()"))},O.prototype.pipe=function(z,V){var fe=this,me=this._readableState;switch(me.pipesCount){case 0:me.pipes=z;break;case 1:me.pipes=[me.pipes,z];break;default:me.pipes.push(z)}me.pipesCount+=1,c("pipe count=%d opts=%j",me.pipesCount,V);var Ce=(!V||V.end!==!1)&&z!==i.stdout&&z!==i.stderr?he:T;function Ne(k,W){c("onunpipe"),k===fe&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,(function(){c("cleanup"),z.removeListener("close",Ae),z.removeListener("finish",U),z.removeListener("drain",je),z.removeListener("error",we),z.removeListener("unpipe",Ne),fe.removeListener("end",he),fe.removeListener("end",T),fe.removeListener("data",_e),Be=!0,!me.awaitDrain||z._writableState&&!z._writableState.needDrain||je()})())}function he(){c("onend"),z.end()}me.endEmitted?i.nextTick(Ce):fe.once("end",Ce),z.on("unpipe",Ne);var je=(function(W){return function(){var ue=W._readableState;c("pipeOnDrain",ue.awaitDrain),ue.awaitDrain&&ue.awaitDrain--,ue.awaitDrain===0&&s(W,"data")&&(ue.flowing=!0,J(W))}})(fe);z.on("drain",je);var Be=!1;function _e(k){c("ondata");var W=z.write(k);c("dest.write",W),W===!1&&((me.pipesCount===1&&me.pipes===z||me.pipesCount>1&&te(me.pipes,z)!==-1)&&!Be&&(c("false write response, pause",me.awaitDrain),me.awaitDrain++),fe.pause())}function we(k){c("onerror",k),T(),z.removeListener("error",we),s(z,"error")===0&&A(z,k)}function Ae(){z.removeListener("finish",U),T()}function U(){c("onfinish"),z.removeListener("close",Ae),T()}function T(){c("unpipe"),fe.unpipe(z)}return fe.on("data",_e),(function(W,se,ue){if(typeof W.prependListener=="function")return W.prependListener(se,ue);W._events&&W._events[se]?Array.isArray(W._events[se])?W._events[se].unshift(ue):W._events[se]=[ue,W._events[se]]:W.on(se,ue)})(z,"error",we),z.once("close",Ae),z.once("finish",U),z.emit("pipe",fe),me.flowing||(c("pipe resume"),fe.resume()),z},O.prototype.unpipe=function(z){var V=this._readableState,fe={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return z&&z!==V.pipes||(z||(z=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,z&&z.emit("unpipe",this,fe)),this;if(!z){var me=V.pipes,Ce=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var Ne=0;Ne<Ce;Ne++)me[Ne].emit("unpipe",this,{hasUnpiped:!1});return this}var he=te(V.pipes,z);return he===-1||(V.pipes.splice(he,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),z.emit("unpipe",this,fe)),this},O.prototype.on=function(z,V){var fe=a.prototype.on.call(this,z,V),me=this._readableState;return z==="data"?(me.readableListening=this.listenerCount("readable")>0,me.flowing!==!1&&this.resume()):z==="readable"&&(me.endEmitted||me.readableListening||(me.readableListening=me.needReadable=!0,me.flowing=!1,me.emittedReadable=!1,c("on readable",me.length,me.reading),me.length?G(this):me.reading||i.nextTick(ne,this))),fe},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(z,V){var fe=a.prototype.removeListener.call(this,z,V);return z==="readable"&&i.nextTick(re,this),fe},O.prototype.removeAllListeners=function(z){var V=a.prototype.removeAllListeners.apply(this,arguments);return z!=="readable"&&z!==void 0||i.nextTick(re,this),V},O.prototype.resume=function(){var z=this._readableState;return z.flowing||(c("resume"),z.flowing=!z.readableListening,(function(fe,me){me.resumeScheduled||(me.resumeScheduled=!0,i.nextTick(B,fe,me))})(this,z)),z.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(z){var V=this,fe=this._readableState,me=!1;for(var Ce in z.on("end",(function(){if(c("wrapped end"),fe.decoder&&!fe.ended){var he=fe.decoder.end();he&&he.length&&V.push(he)}V.push(null)})),z.on("data",(function(he){c("wrapped data"),fe.decoder&&(he=fe.decoder.write(he)),fe.objectMode&&he==null||(fe.objectMode||he&&he.length)&&(V.push(he)||(me=!0,z.pause()))})),z)this[Ce]===void 0&&typeof z[Ce]=="function"&&(this[Ce]=(function(je){return function(){return z[je].apply(z,arguments)}})(Ce));for(var Ne=0;Ne<R.length;Ne++)z.on(R[Ne],this.emit.bind(this,R[Ne]));return this._read=function(he){c("wrapped _read",he),me&&(me=!1,z.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(V){this._readableState&&(this._readableState.flowing=V)}}),O._fromList=ie,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(O.from=function(z,V){return d===void 0&&(d=r(157)),d(O,z,V)})},496:function(e){e.exports=iK},499:function(e){var t={"&":"&",'"':""","'":"'","<":"<",">":">"};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 _=1;_<arguments.length;_++)v[_-1]=arguments[_];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 _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.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 _=this._readableState;(v.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.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(H){var Q=this;this.next=null,this.entry=null,this.finish=function(){(function(ne,B,J){var ie=ne.entry;for(ne.entry=null;ie;){var oe=ie.callback;B.pendingcb--,oe(J),ie=ie.next}B.corkedRequestsFree.next=ne})(Q,H)}}e.exports=O,O.WritableState=I;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,_=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,S=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,E=d.ERR_UNKNOWN_ENCODING,A=f.errorOrDestroy;function R(){}function I(H,Q,re){n=n||r(382),H=H||{},typeof re!="boolean"&&(re=Q instanceof n),this.objectMode=!!H.objectMode,re&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=h(this,H,"writableHighWaterMark",re),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ne=H.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){(function(ie,oe){var ce=ie._writableState,te=ce.sync,z=ce.writecb;if(typeof z!="function")throw new v;if((function(me){me.writing=!1,me.writecb=null,me.length-=me.writelen,me.writelen=0})(ce),oe)(function(me,Ce,Ne,he,je){--Ce.pendingcb,Ne?(i.nextTick(je,he),i.nextTick(ee,me,Ce),me._writableState.errorEmitted=!0,A(me,he)):(je(he),me._writableState.errorEmitted=!0,A(me,he),ee(me,Ce))})(ie,ce,te,oe,z);else{var V=M(ce)||ie.destroyed;V||ce.corked||ce.bufferProcessing||!ce.bufferedRequest||F(ie,ce),te?i.nextTick(P,ie,ce,V,z):P(ie,ce,V,z)}})(Q,B)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function O(H){var Q=this instanceof(n=n||r(382));if(!Q&&!l.call(O,this))return new O(H);this._writableState=new I(H,this,Q),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),o.call(this)}function D(H,Q,re,ne,B,J,ie){Q.writelen=ne,Q.writecb=ie,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new b("write")):re?H._writev(B,Q.onwrite):H._write(B,J,Q.onwrite),Q.sync=!1}function P(H,Q,re,ne){re||(function(J,ie){ie.length===0&&ie.needDrain&&(ie.needDrain=!1,J.emit("drain"))})(H,Q),Q.pendingcb--,ne(),ee(H,Q)}function F(H,Q){Q.bufferProcessing=!0;var re=Q.bufferedRequest;if(H._writev&&re&&re.next){var ne=Q.bufferedRequestCount,B=new Array(ne),J=Q.corkedRequestsFree;J.entry=re;for(var ie=0,oe=!0;re;)B[ie]=re,re.isBuf||(oe=!1),re=re.next,ie+=1;B.allBuffers=oe,D(H,Q,!0,Q.length,B,"",J.finish),Q.pendingcb++,Q.lastBufferedRequest=null,J.next?(Q.corkedRequestsFree=J.next,J.next=null):Q.corkedRequestsFree=new s(Q),Q.bufferedRequestCount=0}else{for(;re;){var ce=re.chunk,te=re.encoding,z=re.callback;if(D(H,Q,!1,Q.objectMode?1:ce.length,ce,te,z),re=re.next,Q.bufferedRequestCount--,Q.writing)break}re===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=re,Q.bufferProcessing=!1}function M(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function G(H,Q){H._final((function(re){Q.pendingcb--,re&&A(H,re),Q.prefinished=!0,H.emit("prefinish"),ee(H,Q)}))}function ee(H,Q){var re=M(Q);if(re&&((function(J,ie){ie.prefinished||ie.finalCalled||(typeof J._final!="function"||ie.destroyed?(ie.prefinished=!0,J.emit("prefinish")):(ie.pendingcb++,ie.finalCalled=!0,i.nextTick(G,J,ie)))})(H,Q),Q.pendingcb===0&&(Q.finished=!0,H.emit("finish"),Q.autoDestroy))){var ne=H._readableState;(!ne||ne.autoDestroy&&ne.endEmitted)&&H.destroy()}return re}r(698)(O,o),I.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,re=[];Q;)re.push(Q),Q=Q.next;return re},(function(){try{Object.defineProperty(I.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(Q){return!!l.call(this,Q)||this===O&&Q&&Q._writableState instanceof I}})):l=function(Q){return Q instanceof this},O.prototype.pipe=function(){A(this,new _)},O.prototype.write=function(H,Q,re){var ne=this._writableState,B=!1,J=!ne.objectMode&&(function(oe){return u.isBuffer(oe)||oe instanceof c})(H);return J&&!u.isBuffer(H)&&(H=(function(oe){return u.from(oe)})(H)),typeof Q=="function"&&(re=Q,Q=null),J?Q="buffer":Q||(Q=ne.defaultEncoding),typeof re!="function"&&(re=R),ne.ending?(function(oe,ce){var te=new w;A(oe,te),i.nextTick(ce,te)})(this,re):(J||(function(oe,ce,te,z){var V;return te===null?V=new S:typeof te=="string"||ce.objectMode||(V=new g("chunk",["string","Buffer"],te)),!V||(A(oe,V),i.nextTick(z,V),!1)})(this,ne,H,re))&&(ne.pendingcb++,B=(function(oe,ce,te,z,V,fe){if(!te){var me=(function(Be,_e,we){return Be.objectMode||Be.decodeStrings===!1||typeof _e!="string"||(_e=u.from(_e,we)),_e})(ce,z,V);z!==me&&(te=!0,V="buffer",z=me)}var Ce=ce.objectMode?1:z.length;ce.length+=Ce;var Ne=ce.length<ce.highWaterMark;if(Ne||(ce.needDrain=!0),ce.writing||ce.corked){var he=ce.lastBufferedRequest;ce.lastBufferedRequest={chunk:z,encoding:V,isBuf:te,callback:fe,next:null},he?he.next=ce.lastBufferedRequest:ce.bufferedRequest=ce.lastBufferedRequest,ce.bufferedRequestCount+=1}else D(oe,ce,!1,Ce,z,V,fe);return Ne})(this,ne,J,H,Q,re)),B},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,H.writing||H.corked||H.bufferProcessing||!H.bufferedRequest||F(this,H))},O.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new E(Q);return this._writableState.defaultEncoding=Q,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(H,Q,re){re(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(H,Q,re){var ne=this._writableState;return typeof H=="function"?(re=H,H=null,Q=null):typeof Q=="function"&&(re=Q,Q=null),H!=null&&this.write(H,Q),ne.corked&&(ne.corked=1,this.uncork()),ne.ending||(function(J,ie,oe){ie.ending=!0,ee(J,ie),oe&&(ie.finished?i.nextTick(oe):J.once("finish",oe)),ie.ended=!0,J.writable=!1})(this,ne,re),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(Q){this._writableState&&(this._writableState.destroyed=Q)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(H,Q){Q(H)}},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 _=y[Symbol.toPrimitive];if(_!==void 0){var b=_.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,_=0;v;)f(v.data,y,_),_+=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,_=y.data;for(g-=_.length;y=y.next;){var b=y.data,S=g>b.length?b.length:g;if(S===b.length?_+=b:_+=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,_}},{key:"_getBuffer",value:function(g){var y=u.allocUnsafe(g),v=this.head,_=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?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(S));break}++_}return this.length-=_,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,_=0|this._c,b=0|this._d,S=0|this._e,w=0;w<16;++w)g[w]=h.readInt32BE(4*w);for(;w<80;++w)g[w]=(d=g[w-3]^g[w-8]^g[w-14]^g[w-16])<<1|d>>>31;for(var E=0;E<80;++E){var A=~~(E/20),R=c(y)+f(A,v,_,b)+S+g[E]+a[A]|0;S=b,b=_,_=l(v),v=y,y=R}this._a=y+this._a|0,this._b=v+this._b|0,this._c=_+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(_,b){var S=b<h.length-1;return(function(E,A,R,I){I=(function(F){var M=!1;return function(){M||(M=!0,F.apply(void 0,arguments))}})(I);var O=!1;E.on("close",(function(){O=!0})),n===void 0&&(n=r(238)),n(E,{readable:A,writable:R},(function(P){if(P)return I(P);O=!0,I()}));var D=!1;return function(P){if(!O&&!D)return D=!0,(function(M){return M.setHeader&&typeof M.abort=="function"})(E)?E.abort():typeof E.destroy=="function"?E.destroy():void I(P||new a("pipe"))}})(_,S,b>0,(function(w){g||(g=w),w&&v.forEach(u),S||(v.forEach(u),y(g))}))}));return h.reduce(c)}},802:function(e,t,r){e.exports=function(i){var s=i.toLowerCase(),a=e.exports[s];if(!a)throw new Error(s+" is not supported (we accept pull requests)");return new a},e.exports.sha=r(816),e.exports.sha1=r(737),e.exports.sha224=r(710),e.exports.sha256=r(107),e.exports.sha384=r(827),e.exports.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,_=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 w=0;w<80;++w){var E=~~(w/20),A=0|((h=g)<<5|h>>>27)+l(E,y,v,_)+b+d[w]+a[E];b=_,_=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=_+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,w){return w^b&(S^w)}function l(b,S,w){return b&S|w&(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 _(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,w=0|this._ah,E=0|this._bh,A=0|this._ch,R=0|this._dh,I=0|this._eh,O=0|this._fh,D=0|this._gh,P=0|this._hh,F=0|this._al,M=0|this._bl,G=0|this._cl,ee=0|this._dl,H=0|this._el,Q=0|this._fl,re=0|this._gl,ne=0|this._hl,B=0;B<32;B+=2)S[B]=b.readInt32BE(4*B),S[B+1]=b.readInt32BE(4*B+4);for(;B<160;B+=2){var J=S[B-30],ie=S[B-30+1],oe=d(J,ie),ce=g(ie,J),te=y(J=S[B-4],ie=S[B-4+1]),z=v(ie,J),V=S[B-14],fe=S[B-14+1],me=S[B-32],Ce=S[B-32+1],Ne=ce+fe|0,he=oe+V+_(Ne,ce)|0;he=(he=he+te+_(Ne=Ne+z|0,z)|0)+me+_(Ne=Ne+Ce|0,Ce)|0,S[B]=he,S[B+1]=Ne}for(var je=0;je<160;je+=2){he=S[je],Ne=S[je+1];var Be=l(w,E,A),_e=l(F,M,G),we=f(w,F),Ae=f(F,w),U=h(I,H),T=h(H,I),k=a[je],W=a[je+1],se=c(I,O,D),ue=c(H,Q,re),ge=ne+T|0,Me=P+U+_(ge,ne)|0;Me=(Me=(Me=Me+se+_(ge=ge+ue|0,ue)|0)+k+_(ge=ge+W|0,W)|0)+he+_(ge=ge+Ne|0,Ne)|0;var Xe=Ae+_e|0,$=we+Be+_(Xe,Ae)|0;P=D,ne=re,D=O,re=Q,O=I,Q=H,I=R+Me+_(H=ee+ge|0,ee)|0,R=A,ee=G,A=E,G=M,E=w,M=F,w=Me+$+_(F=ge+Xe|0,ge)|0}this._al=this._al+F|0,this._bl=this._bl+M|0,this._cl=this._cl+G|0,this._dl=this._dl+ee|0,this._el=this._el+H|0,this._fl=this._fl+Q|0,this._gl=this._gl+re|0,this._hl=this._hl+ne|0,this._ah=this._ah+w+_(this._al,F)|0,this._bh=this._bh+E+_(this._bl,M)|0,this._ch=this._ch+A+_(this._cl,G)|0,this._dh=this._dh+R+_(this._dl,ee)|0,this._eh=this._eh+I+_(this._el,H)|0,this._fh=this._fh+O+_(this._fl,Q)|0,this._gh=this._gh+D+_(this._gl,re)|0,this._hh=this._hh+P+_(this._hl,ne)|0},u.prototype._hash=function(){var b=s.allocUnsafe(64);function S(w,E,A){b.writeInt32BE(w,A),b.writeInt32BE(E,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,w,E){return(w=(function(R){var I=(function(D,P){if(typeof D!="object"||D===null)return D;var F=D[Symbol.toPrimitive];if(F!==void 0){var M=F.call(D,P);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(D)})(R,"string");return typeof I=="symbol"?I:String(I)})(w))in S?Object.defineProperty(S,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):S[w]=E,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,w){return{value:S,done:w}}function y(S){var w=S[o];if(w!==null){var E=S[d].read();E!==null&&(S[f]=null,S[o]=null,S[u]=null,w(g(E,!1)))}}function v(S){i.nextTick(y,S)}var _=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(n={get stream(){return this[d]},next:function(){var w=this,E=this[c];if(E!==null)return Promise.reject(E);if(this[l])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise((function(O,D){i.nextTick((function(){w[c]?D(w[c]):O(g(void 0,!0))}))}));var A,R=this[f];if(R)A=new Promise((function(D,P){return function(F,M){D.then((function(){P[l]?F(g(void 0,!0)):P[h](F,M)}),M)}})(R,this));else{var I=this[d].read();if(I!==null)return Promise.resolve(g(I,!1));A=new Promise(this[h])}return this[f]=A,A}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var w=this;return new Promise((function(E,A){w[d].destroy(null,(function(R){R?A(R):E(g(void 0,!0))}))}))})),n),_);e.exports=function(w){var E,A=Object.create(b,(s(E={},d,{value:w,writable:!0}),s(E,o,{value:null,writable:!0}),s(E,u,{value:null,writable:!0}),s(E,c,{value:null,writable:!0}),s(E,l,{value:w._readableState.endEmitted,writable:!0}),s(E,h,{value:function(I,O){var D=A[d].read();D?(A[f]=null,A[o]=null,A[u]=null,I(g(D,!1))):(A[o]=I,A[u]=O)},writable:!0}),E));return A[f]=null,a(w,(function(R){if(R&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=A[u];return I!==null&&(A[f]=null,A[o]=null,A[u]=null,I(R)),void(A[c]=R)}var O=A[o];O!==null&&(A[f]=null,A[o]=null,A[u]=null,O(g(void 0,!0))),A[l]=!0})),w.on("readable",v.bind(null,A)),A}},987:function(e){e.exports=aK}},RB={};function Ee(e){var t=RB[e];if(t!==void 0)return t.exports;var r=RB[e]={exports:{}};return S_e[e](r,r.exports,Ee),r.exports}Ee.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return Ee.d(t,{a:t}),t},Ee.d=function(e,t){for(var r in t)Ee.o(t,r)&&!Ee.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Ee.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Ee.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ee.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var IV={};Ee.d(IV,{A:function(){return JCe}});var eO={};Ee.r(eO),Ee.d(eO,{CLEAR:function(){return kR},CLEAR_BY:function(){return NR},NEW_AUTH_ERR:function(){return PR},NEW_SPEC_ERR:function(){return IR},NEW_SPEC_ERR_BATCH:function(){return jR},NEW_THROWN_ERR:function(){return qm},NEW_THROWN_ERR_BATCH:function(){return TR},clear:function(){return j_e},clearBy:function(){return P_e},newAuthErr:function(){return I_e},newSpecErr:function(){return R_e},newSpecErrBatch:function(){return T_e},newThrownErr:function(){return O_e},newThrownErrBatch:function(){return C_e}});var tO={};Ee.r(tO),Ee.d(tO,{AUTHORIZE:function(){return qR},AUTHORIZE_OAUTH2:function(){return $R},CONFIGURE_AUTH:function(){return LR},LOGOUT:function(){return FR},RESTORE_AUTHORIZATION:function(){return BR},SHOW_AUTH_POPUP:function(){return DR},authPopup:function(){return sEe},authorize:function(){return z_e},authorizeAccessCodeWithBasicAuthentication:function(){return eEe},authorizeAccessCodeWithFormParams:function(){return Q_e},authorizeApplication:function(){return Z_e},authorizeOauth2:function(){return G_e},authorizeOauth2WithPersistOption:function(){return Y_e},authorizePassword:function(){return X_e},authorizeRequest:function(){return tEe},authorizeWithPersistOption:function(){return W_e},configureAuth:function(){return rEe},logout:function(){return J_e},logoutWithPersistOption:function(){return H_e},persistAuthorizationIfNeeded:function(){return iEe},preAuthorizeImplicit:function(){return K_e},restoreAuthorization:function(){return nEe},showDefinitions:function(){return V_e}});var rO={};Ee.r(rO),Ee.d(rO,{authorized:function(){return pEe},definitionsForRequirements:function(){return fEe},definitionsToAuthorize:function(){return uEe},getConfigs:function(){return hEe},getDefinitionsByNames:function(){return lEe},isAuthorized:function(){return dEe},selectAuthPath:function(){return cEe},shownDefinitions:function(){return oEe}});var nO={};Ee.r(nO),Ee.d(nO,{TOGGLE_CONFIGS:function(){return zR},UPDATE_CONFIGS:function(){return VR},downloadConfig:function(){return OEe},getConfigByUrl:function(){return CEe},loaded:function(){return AEe},toggle:function(){return xEe},update:function(){return wEe}});var iO={};Ee.r(iO),Ee.d(iO,{get:function(){return REe}});var sO={};Ee.r(sO),Ee.d(sO,{transform:function(){return MEe}});var aO={};Ee.r(aO),Ee.d(aO,{transform:function(){return DEe}});var oO={};Ee.r(oO),Ee.d(oO,{allErrors:function(){return UV},lastError:function(){return FEe}});var uO={};Ee.r(uO),Ee.d(uO,{SHOW:function(){return KR},UPDATE_FILTER:function(){return JR},UPDATE_LAYOUT:function(){return WR},UPDATE_MODE:function(){return HR},changeMode:function(){return YEe},show:function(){return GEe},updateFilter:function(){return KEe},updateLayout:function(){return HEe}});var cO={};Ee.r(cO),Ee.d(cO,{current:function(){return ZEe},currentFilter:function(){return QEe},isShown:function(){return JV},showSummary:function(){return tSe},whatMode:function(){return eSe}});var lO={};Ee.r(lO),Ee.d(lO,{taggedOperations:function(){return rSe}});var fO={};Ee.r(fO),Ee.d(fO,{getActiveLanguage:function(){return cSe},getDefaultExpanded:function(){return lSe},getGenerators:function(){return XV},getSnippetGenerators:function(){return uSe}});var pO={};Ee.r(pO),Ee.d(pO,{JsonSchemaArrayItemFile:function(){return ZR},JsonSchemaArrayItemText:function(){return XR},JsonSchemaForm:function(){return rz},JsonSchema_array:function(){return iz},JsonSchema_boolean:function(){return sz},JsonSchema_object:function(){return az},JsonSchema_string:function(){return nz}});var dO={};Ee.r(dO),Ee.d(dO,{allowTryItOutFor:function(){return f1e},basePath:function(){return i1e},canExecuteScheme:function(){return b1e},consumes:function(){return Ez},consumesOptionsFor:function(){return v1e},contentTypeValues:function(){return g1e},currentProducesFor:function(){return Pz},definitions:function(){return n1e},externalDocs:function(){return XSe},findDefinition:function(){return r1e},getOAS3RequiredRequestBodyContentType:function(){return E1e},getParameter:function(){return d1e},hasHost:function(){return h1e},host:function(){return s1e},info:function(){return yz},isMediaTypeSchemaPropertiesEqual:function(){return S1e},isOAS3:function(){return YSe},lastError:function(){return VSe},mutatedRequestFor:function(){return l1e},mutatedRequests:function(){return Rz},operationScheme:function(){return kz},operationWithMeta:function(){return Iz},operations:function(){return _z},operationsWithRootInherited:function(){return wz},operationsWithTags:function(){return Az},parameterInclusionSettingFor:function(){return Tz},parameterValues:function(){return jz},parameterWithMeta:function(){return p1e},parameterWithMetaByIdentity:function(){return tT},parametersIncludeIn:function(){return m1e},parametersIncludeType:function(){return jO},paths:function(){return bz},produces:function(){return Sz},producesOptionsFor:function(){return y1e},requestFor:function(){return c1e},requests:function(){return Cz},responseFor:function(){return u1e},responses:function(){return Oz},schemes:function(){return a1e},security:function(){return e1e},securityDefinitions:function(){return t1e},semver:function(){return ZSe},spec:function(){return Ln},specJS:function(){return HSe},specJson:function(){return QR},specJsonWithResolvedSubtrees:function(){return Ki},specResolved:function(){return KSe},specResolvedSubtree:function(){return GSe},specSource:function(){return JSe},specStr:function(){return WSe},tagDetails:function(){return xz},taggedOperations:function(){return o1e},tags:function(){return eT},url:function(){return zSe},validOperationMethods:function(){return QSe},validateBeforeExecute:function(){return _1e},validationErrors:function(){return Nz},version:function(){return vz}});var hO={};Ee.r(hO),Ee.d(hO,{CLEAR_REQUEST:function(){return fT},CLEAR_RESPONSE:function(){return lT},CLEAR_VALIDATE_PARAMS:function(){return pT},LOG_REQUEST:function(){return qz},SET_MUTATED_REQUEST:function(){return cT},SET_REQUEST:function(){return uT},SET_RESPONSE:function(){return oT},SET_SCHEME:function(){return hT},UPDATE_EMPTY_PARAM_INCLUSION:function(){return sT},UPDATE_JSON:function(){return iT},UPDATE_OPERATION_META_VALUE:function(){return Vm},UPDATE_PARAM:function(){return Um},UPDATE_RESOLVED:function(){return dT},UPDATE_RESOLVED_SUBTREE:function(){return zm},UPDATE_SPEC:function(){return rT},UPDATE_URL:function(){return nT},VALIDATE_PARAMS:function(){return aT},changeConsumesValue:function(){return U1e},changeParam:function(){return M1e},changeParamByIdentity:function(){return D1e},changeProducesValue:function(){return V1e},clearRequest:function(){return X1e},clearResponse:function(){return Y1e},clearValidateParams:function(){return B1e},execute:function(){return G1e},executeRequest:function(){return K1e},invalidateResolvedSubtreeCache:function(){return F1e},logRequest:function(){return H1e},parseToJson:function(){return j1e},requestResolvedSubtree:function(){return N1e},resolveSpec:function(){return P1e},setMutatedRequest:function(){return J1e},setRequest:function(){return W1e},setResponse:function(){return z1e},setScheme:function(){return Z1e},updateEmptyParamInclusion:function(){return L1e},updateJsonSpec:function(){return I1e},updateResolved:function(){return R1e},updateResolvedSubtree:function(){return q1e},updateSpec:function(){return C1e},updateUrl:function(){return T1e},validateParams:function(){return $1e}});var mO={};Ee.r(mO),Ee.d(mO,{executeRequest:function(){return rwe},updateJsonSpec:function(){return twe},updateSpec:function(){return ewe},validateParams:function(){return nwe}});var gO={};Ee.r(gO),Ee.d(gO,{Button:function(){return dW},Col:function(){return Sxe},Collapse:function(){return gW},Container:function(){return Exe},Input:function(){return Axe},Link:function(){return mW},Row:function(){return wxe},Select:function(){return hW},TextArea:function(){return xxe}});var yO={};Ee.r(yO),Ee.d(yO,{basePath:function(){return aAe},consumes:function(){return oAe},definitions:function(){return tAe},findDefinition:function(){return eAe},hasHost:function(){return rAe},host:function(){return sAe},produces:function(){return uAe},schemes:function(){return cAe},securityDefinitions:function(){return nAe},validOperationMethods:function(){return iAe}});var vO={};Ee.r(vO),Ee.d(vO,{definitionsToAuthorize:function(){return lAe}});var bO={};Ee.r(bO),Ee.d(bO,{callbacksOperations:function(){return yAe},findSchema:function(){return gAe},isOAS3:function(){return hAe},isOAS30:function(){return dAe},isSwagger2:function(){return pAe},servers:function(){return mAe}});var _O={};Ee.r(_O),Ee.d(_O,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Jm},CLEAR_REQUEST_BODY_VALUE:function(){return AT},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return xT},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return _T},UPDATE_REQUEST_BODY_INCLUSION:function(){return bT},UPDATE_REQUEST_BODY_VALUE:function(){return yT},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return vT},UPDATE_REQUEST_CONTENT_TYPE:function(){return ET},UPDATE_RESPONSE_CONTENT_TYPE:function(){return ST},UPDATE_SELECTED_SERVER:function(){return gT},UPDATE_SERVER_VARIABLE_VALUE:function(){return wT},clearRequestBodyValidateError:function(){return zAe},clearRequestBodyValue:function(){return JAe},initRequestBodyValidateError:function(){return WAe},setActiveExamplesMember:function(){return $Ae},setRequestBodyInclusion:function(){return FAe},setRequestBodyValidateError:function(){return VAe},setRequestBodyValue:function(){return DAe},setRequestContentType:function(){return LAe},setResponseContentType:function(){return BAe},setRetainRequestBodyValueFlag:function(){return qAe},setSelectedServer:function(){return MAe},setServerVariableValue:function(){return UAe}});var EO={};Ee.r(EO),Ee.d(EO,{activeExamplesMember:function(){return tOe},hasUserEditedBody:function(){return ZAe},requestBodyErrors:function(){return eOe},requestBodyInclusionSetting:function(){return QAe},requestBodyValue:function(){return GAe},requestContentType:function(){return rOe},responseContentType:function(){return nOe},selectDefaultRequestBodyValue:function(){return XAe},selectedServer:function(){return KAe},serverEffectiveValue:function(){return aOe},serverVariableValue:function(){return iOe},serverVariables:function(){return sOe},shouldRetainRequestBodyValue:function(){return YAe},validOperationMethods:function(){return cOe},validateBeforeExecute:function(){return oOe},validateShallowRequired:function(){return uOe}});var p=(function(e){var t={};return Ee.d(t,e),t})({Component:function(){return ht.Component},PureComponent:function(){return ht.PureComponent},createContext:function(){return ht.createContext},createElement:function(){return ht.createElement},default:function(){return ht.default},forwardRef:function(){return ht.forwardRef},useCallback:function(){return ht.useCallback},useContext:function(){return ht.useContext},useEffect:function(){return ht.useEffect},useMemo:function(){return ht.useMemo},useRef:function(){return ht.useRef},useState:function(){return ht.useState}}),hc=(function(e){var t={};return Ee.d(t,e),t})({applyMiddleware:function(){return mK},bindActionCreators:function(){return hK},compose:function(){return $6},createStore:function(){return F6}}),K=(function(e){var t={};return Ee.d(t,e),t})({List:function(){return La.List},Map:function(){return La.Map},OrderedMap:function(){return La.OrderedMap},Seq:function(){return La.Seq},Set:function(){return La.Set},default:function(){return yK},fromJS:function(){return La.fromJS}}),w_e=Ee(919),Jc=Ee.n(w_e),x_e=(function(e){var t={};return Ee.d(t,e),t})({combineReducers:function(){return wK.combineReducers}}),jV=(function(e){var t={};return Ee.d(t,e),t})({serializeError:function(){return AK.serializeError}}),A_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return gG}});const qm="err_new_thrown_err",TR="err_new_thrown_err_batch",IR="err_new_spec_err",jR="err_new_spec_err_batch",PR="err_new_auth_err",kR="err_clear",NR="err_clear_by";function O_e(e){return{type:qm,payload:(0,jV.serializeError)(e)}}function C_e(e){return{type:TR,payload:e}}function R_e(e){return{type:IR,payload:e}}function T_e(e){return{type:jR,payload:e}}function I_e(e){return{type:PR,payload:e}}function j_e(e={}){return{type:kR,payload:e}}function P_e(e=()=>!0){return{type:NR,payload:e}}var sr=(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})(),mc=((function(e){var t={};Ee.d(t,e)})({}),(function(e){var t={};Ee.d(t,e)})({}),(function(e){var t={};return Ee.d(t,e),t})({default:function(){return NG}})),k_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return pY}}),PV=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return vY}}),N_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return _Y}}),TB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return SY}}),M_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return OY}}),D_e=Ee(209),Jo=Ee.n(D_e),q_e=Ee(802),F_e=Ee.n(q_e);const $_e=K.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function qp(e,{isOAS3:t}={}){if(!K.default.Map.isMap(e))return{schema:K.default.Map(),parameterContentMediaType:null};if(!t)return e.get("in")==="body"?{schema:e.get("schema",K.default.Map()),parameterContentMediaType:null}:{schema:e.filter(((r,n)=>$_e.includes(n))),parameterContentMediaType:null};if(e.get("content")){const r=e.get("content",K.default.Map({})).keySeq().first();return{schema:e.getIn(["content",r,"schema"],K.default.Map()),parameterContentMediaType:r}}return{schema:e.get("schema")?e.get("schema",K.default.Map()):K.default.Map(),parameterContentMediaType:null}}var IB=Ee(287).Buffer;const jB="default",Of=e=>K.default.Iterable.isIterable(e),gu=e=>Of(e)?e.toJS():e;function za(e){return is(e)?gu(e):{}}function ns(e){if(Of(e)||e instanceof sr.File||!is(e))return e;if(Array.isArray(e))return K.default.Seq(e).map(ns).toList();if((0,TB.default)(e.entries)){const t=(function(n){if(!(0,TB.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 K.default.OrderedMap(t).map(ns)}return K.default.OrderedMap(e).map(ns)}function wo(e){return Array.isArray(e)?e:[e]}function lx(e){return typeof e=="function"}function is(e){return!!e&&typeof e=="object"}function qs(e){return typeof e=="function"}function bd(e){return Array.isArray(e)}const L_e=mc.default;function Pi(e,t){return Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n],n),r)),{})}function PB(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 B_e(e){return({dispatch:t,getState:r})=>n=>i=>typeof i=="function"?i(e()):n(i)}function SO(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"),_=t.get("pattern");const b=r||o===!0,S=e!=null,w=b||S&&l==="array"||!(!b&&!S),E=a&&e===null;if(b&&!S&&!E&&!n&&!l)return s.push("Required field is not provided"),s;if(E||!l||!w)return[];let A=l==="string"&&e,R=l==="array"&&Array.isArray(e)&&e.length,I=l==="array"&&K.default.List.isList(e)&&e.count();const O=[A,R,I,l==="array"&&typeof e=="string"&&e,l==="file"&&e instanceof sr.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((D=>!!D));if(b&&!O&&!n)return s.push("Required field is not provided"),s;if(l==="object"&&(i===null||i==="application/json")){let D=e;if(typeof e=="string")try{D=JSON.parse(e)}catch{return s.push("Parameter string value must be valid JSON"),s}t&&t.has("required")&&qs(o.isList)&&o.isList()&&o.forEach((P=>{D[P]===void 0&&s.push({propKey:P,error:"Required property not found"})})),t&&t.has("properties")&&t.get("properties").forEach(((P,F)=>{const M=SO(D[F],P,!1,n,i);s.push(...M.map((G=>({propKey:F,error:G}))))}))}if(_){let D=((P,F)=>{if(!new RegExp(F).test(P))return"Value must follow pattern "+F})(e,_);D&&s.push(D)}if(v&&l==="array"){let D=((P,F)=>{if(!P&&F>=1||P&&P.length<F)return`Array must contain at least ${F} item${F===1?"":"s"}`})(e,v);D&&s.push(D)}if(y&&l==="array"){let D=((P,F)=>{if(P&&P.length>F)return`Array must not contain more then ${F} item${F===1?"":"s"}`})(e,y);D&&s.push({needRemove:!0,error:D})}if(g&&l==="array"){let D=((P,F)=>{if(P&&(F==="true"||F===!0)){const M=(0,K.fromJS)(P),G=M.toSet();if(P.length>G.size){let ee=(0,K.Set)();if(M.forEach(((H,Q)=>{M.filter((re=>qs(re.equals)?re.equals(H):re===H)).size>1&&(ee=ee.add(Q))})),ee.size!==0)return ee.map((H=>({index:H,error:"No duplicates allowed."}))).toArray()}}})(e,g);D&&s.push(...D)}if(h||h===0){let D=((P,F)=>{if(P.length>F)return`Value must be no longer than ${F} character${F!==1?"s":""}`})(e,h);D&&s.push(D)}if(d){let D=((P,F)=>{if(P.length<F)return`Value must be at least ${F} character${F!==1?"s":""}`})(e,d);D&&s.push(D)}if(u||u===0){let D=((P,F)=>{if(P>F)return`Value must be less than or equal to ${F}`})(e,u);D&&s.push(D)}if(c||c===0){let D=((P,F)=>{if(P<F)return`Value must be greater than or equal to ${F}`})(e,c);D&&s.push(D)}if(l==="string"){let D;if(D=f==="date-time"?(P=>{if(isNaN(Date.parse(P)))return"Value must be a DateTime"})(e):f==="uuid"?(P=>{if(P=P.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(P))return"Value must be a Guid"})(e):(P=>{if(P&&typeof P!="string")return"Value must be a string"})(e),!D)return s;s.push(D)}else if(l==="boolean"){let D=(P=>{if(P!=="true"&&P!=="false"&&P!==!0&&P!==!1)return"Value must be a boolean"})(e);if(!D)return s;s.push(D)}else if(l==="number"){let D=(P=>{if(!/^-?\d+(\.?\d+)?$/.test(P))return"Value must be a number"})(e);if(!D)return s;s.push(D)}else if(l==="integer"){let D=(P=>{if(!/^-?\d+$/.test(P))return"Value must be an integer"})(e);if(!D)return s;s.push(D)}else if(l==="array"){if(!R&&!I)return s;e&&e.forEach(((D,P)=>{const F=SO(D,t.get("items"),!1,n,i);s.push(...F.map((M=>({index:P,error:M}))))}))}else if(l==="file"){let D=(P=>{if(P&&!(P instanceof sr.File))return"Value must be a file"})(e);if(!D)return s;s.push(D)}return s}const Cf=e=>{let t;return t=e instanceof IB?e:IB.from(e.toString(),"utf-8"),t.toString("base64")},kB={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)}},Fm=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("&")},U_e=(e,t,r)=>!!(0,k_e.default)(r,(n=>(0,N_e.default)(e[n],t[n])));function NB(e){return!(!e||e.indexOf("localhost")>=0||e.indexOf("127.0.0.1")>=0||e==="none")}const Hc=e=>typeof e=="string"||e instanceof String?e.trim().replace(/\s/g,"%20"):"",kV=e=>(0,M_e.default)(Hc(e).replace(/%20/g,"_")),ka=e=>{const t=/^x-/;return K.Map.isMap(e)?e.filter(((r,n)=>t.test(n))):Object.keys(e).filter((r=>t.test(r)))},NV=e=>e.filter(((t,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function MV(e,t,r=()=>!0){if(typeof e!="object"||Array.isArray(e)||e===null||!t)return e;const n=Object.assign({},e);return Object.keys(n).forEach((i=>{i===t&&r(n[i],i)?delete n[i]:n[i]=MV(n[i],t,r)})),n}function rn(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 _d(e,{returnAll:t=!1,allowHashes:r=!0}={}){if(!K.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 DV(e,t){return _d(e,{returnAll:!0}).map((r=>t[r])).filter((r=>r!==void 0))[0]}function MB(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const MR=e=>!e||!(!Of(e)||!e.isEmpty()),DB=e=>e;class qV{constructor(t={}){Jc()(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=[B_e(c)];const f=sr.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||hc.compose;return(0,hc.createStore)(o,u,f((0,hc.applyMiddleware)(...l)))})(n,i,s)})(DB,(0,K.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(t,r=!0){var n=wO(t,this.getSystem());FV(this.system,n),r&&this.buildSystem(),xO.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:K.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,n){return(function(s,a){let o=Object.keys(s).reduce(((u,c)=>(u[c]=(function(f,h){return(d=new K.Map,g)=>{if(!f)return d;let y=f[g.type];if(y){const v=gc(y,h)(d,g);return v===null?d:v}return d}})(s[c],a),u)),{});return Object.keys(o).length?(0,x_e.combineReducers)(o):DB})(Pi(r,(i=>i.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(t){let r=t[0].toUpperCase()+t.slice(1);return PB(this.system.statePlugins,((n,i)=>{let s=n[t];if(s)return{[i+r]:s}}))}getSelectors(){return this.getType("selectors")}getActions(){return Pi(this.getType("actions"),(t=>PB(t,((r,n)=>{if(lx(r))return{[n]:r}}))))}getWrappedAndBoundActions(t){return Pi(this.getBoundActions(t),((r,n)=>{let i=this.system.statePlugins[n.slice(0,-7)].wrapActions;return i?Pi(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(!lx(l))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return gc(l,this.getSystem)}),s||Function.prototype)):s})):r}))}getWrappedAndBoundSelectors(t,r){return Pi(this.getBoundSelectors(t,r),((n,i)=>{let s=[i.slice(0,-9)],a=this.system.statePlugins[s].wrapSelectors;return a?Pi(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(!lx(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 Pi(this.getSelectors(),((n,i)=>{let s=[i.slice(0,-9)];return Pi(n,(a=>(...o)=>{let u=gc(a,this.getSystem).apply(null,[t().getIn(s),...o]);return typeof u=="function"&&(u=gc(u,this.getSystem)(r())),u}))}))}getBoundActions(t){t=t||this.getStore().dispatch;const r=this.getActions(),n=i=>typeof i!="function"?Pi(i,(s=>n(s))):(...s)=>{var a=null;try{a=i(...s)}catch(o){a={type:qm,error:!0,payload:(0,jV.serializeError)(o)}}finally{return a}};return Pi(r,(i=>(0,hc.bindActionCreators)(n(i),t)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(t){return r=>Jc()({},this.getWrappedAndBoundActions(r),this.getFn(),t)}}function wO(e,t){return is(e)&&!bd(e)?(0,A_e.default)({},e):qs(e)?wO(e(t),t):bd(e)?e.map((r=>wO(r,t))).reduce(FV,{components:t.getComponents()}):{}}function xO(e,t,{hasLoaded:r}={}){let n=r;return is(e)&&!bd(e)&&typeof e.afterLoad=="function"&&(n=!0,gc(e.afterLoad,t.getSystem).call(this,t)),qs(e)?xO.call(this,e(t),t,{hasLoaded:n}):bd(e)?e.map((i=>xO.call(this,i,t,{hasLoaded:n}))):n}function FV(e={},t={}){if(!is(e))return{};if(!is(t))return e;t.wrapComponents&&(Pi(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(is(r))for(let n in r){const i=r[n];if(!is(i))continue;const{wrapActions:s,wrapSelectors:a}=i;if(is(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(is(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 Jc()(e,t)}function gc(e,t,{logErrors:r=!0}={}){return typeof e!="function"?e:function(...n){try{return e.call(this,...n)}catch(i){if(r){const{uncaughtExceptionHandler:s}=t().getConfigs();typeof s=="function"?s(i):console.error(i)}return null}}}var Kc=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return jY}});const DR="show_popup",qR="authorize",FR="logout",$R="authorize_oauth2",LR="configure_auth",BR="restore_authorization";function V_e(e){return{type:DR,payload:e}}function z_e(e){return{type:qR,payload:e}}const W_e=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function J_e(e){return{type:FR,payload:e}}const H_e=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},K_e=e=>({authActions:t,errActions:r})=>{let{auth:n,token:i,isValid:s}=e,{schema:a,name:o}=n,u=a.get("flow");delete sr.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 G_e(e){return{type:$R,payload:e}}const Y_e=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},X_e=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 "+Cf(o+":"+u);break;default:console.warn(`Warning: invalid passwordType ${a} was passed, not including client id and secret`)}return t.authorizeRequest({body:Fm(c),url:r.get("tokenUrl"),name:n,headers:l,query:{},auth:e})},Z_e=e=>({authActions:t})=>{let{schema:r,scopes:n,name:i,clientId:s,clientSecret:a}=e,o={Authorization:"Basic "+Cf(s+":"+a)},u={grant_type:"client_credentials",scope:n.join(" ")};return t.authorizeRequest({body:Fm(u),name:i,url:r.get("tokenUrl"),auth:e,headers:o})},Q_e=({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:Fm(u),name:i,url:n.get("tokenUrl"),auth:e})},eEe=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={Authorization:"Basic "+Cf(s+":"+a)},c={grant_type:"authorization_code",code:e.code,client_id:s,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:Fm(c),name:i,url:n.get("tokenUrl"),auth:e,headers:u})},tEe=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,Kc.default)(d,b,!0)}else u=(0,Kc.default)(d,a.url(),!0);typeof y=="object"&&(u.query=Object.assign({},u.query,y));const v=u.toString();let _=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:_,query:l,body:c,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(b){let S=JSON.parse(b.data),w=S&&(S.error||""),E=S&&(S.parseError||"");b.ok?w||E?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 w=b.response.data;try{const E=typeof w=="string"?JSON.parse(w):w;E.error&&(S+=`, error: ${E.error}`),E.error_description&&(S+=`, description: ${E.error_description}`)}catch{}}i.newAuthErr({authId:h,level:"error",source:"auth",message:S})}))};function rEe(e){return{type:LR,payload:e}}function nEe(e){return{type:BR,payload:e}}const iEe=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;const r=e.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},sEe=(e,t)=>()=>{sr.swaggerUIRedirectOauth2=t,sr.open(e)};var aEe={[DR]:(e,{payload:t})=>e.set("showDefinitions",t),[qR]:(e,{payload:t})=>{let r=(0,K.fromJS)(t),n=e.get("authorized")||(0,K.Map)();return r.entrySeq().forEach((([i,s])=>{if(!qs(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 "+Cf(o+":"+u)}),n=n.setIn([i,"schema"],s.get("schema"))}})),e.set("authorized",n)},[$R]:(e,{payload:t})=>{let r,{auth:n,token:i}=t;n.token=Object.assign({},i),r=(0,K.fromJS)(n);let s=e.get("authorized")||(0,K.Map)();return s=s.set(r.get("name"),r),e.set("authorized",s)},[FR]:(e,{payload:t})=>{let r=e.get("authorized").withMutations((n=>{t.forEach((i=>{n.delete(i)}))}));return e.set("authorized",r)},[LR]:(e,{payload:t})=>e.set("configs",t),[BR]:(e,{payload:t})=>e.set("authorized",(0,K.fromJS)(t.authorized))},ut=(function(e){var t={};return Ee.d(t,e),t})({createSelector:function(){return w8}});const $m=e=>e,oEe=(0,ut.createSelector)($m,(e=>e.get("showDefinitions"))),uEe=(0,ut.createSelector)($m,(()=>({specSelectors:e})=>{let t=e.securityDefinitions()||(0,K.Map)({}),r=(0,K.List)();return t.entrySeq().forEach((([n,i])=>{let s=(0,K.Map)();s=s.set(n,i),r=r.push(s)})),r})),cEe=(e,t)=>({specSelectors:r})=>(0,K.List)(r.isOAS3()?["components","securitySchemes",t]:["securityDefinitions",t]),lEe=(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,K.List)();return t.valueSeq().forEach((s=>{let a=(0,K.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},fEe=(e,t=(0,K.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,K.List)();let i=(0,K.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");K.List.isList(c)&&K.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},pEe=(0,ut.createSelector)($m,(e=>e.get("authorized")||(0,K.Map)())),dEe=(e,t)=>({authSelectors:r})=>{let n=r.authorized();return K.List.isList(t)?!!t.toJS().filter((i=>Object.keys(i).map((s=>!!n.get(s))).indexOf(!1)===-1)).length:null},hEe=(0,ut.createSelector)($m,(e=>e.get("configs"))),mEe=(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})},gEe=(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)})}},yEe=(e,t)=>r=>{if(e(r),t.getConfigs().persistAuthorization)try{const[{schema:n,value:i}]=Object.values(r),s=(0,K.fromJS)(n),a=s.get("type")==="apiKey",o=s.get("in")==="cookie";a&&o&&(document.cookie=`${s.get("name")}=${i}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},vEe=(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 jn=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return vH}}),UR=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return pX}});class bEe extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,UR.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("LockIcon");return p.default.createElement(n,r)}}var qB=bEe;class _Ee extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,UR.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("UnlockIcon");return p.default.createElement(n,r)}}var FB=_Ee;function $V(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=SEe.bind(null,e),this.rootInjects.preauthorizeBasic=EEe.bind(null,e)},components:{LockAuthIcon:qB,UnlockAuthIcon:FB,LockAuthOperationIcon:qB,UnlockAuthOperationIcon:FB},statePlugins:{auth:{reducers:aEe,actions:tO,selectors:rO,wrapActions:{authorize:yEe,logout:vEe}},configs:{wrapActions:{loaded:gEe}},spec:{wrapActions:{execute:mEe}}}}}function EEe(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 SEe(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 ks=(function(e){var t={};return Ee.d(t,e),t})({JSON_SCHEMA:function(){return jc},default:function(){return Qa}});const VR="configs_update",zR="configs_toggle";function wEe(e,t){return{type:VR,payload:{[e]:t}}}function xEe(e){return{type:zR,payload:e}}const AEe=()=>()=>{},OEe=e=>t=>{const{fn:{fetch:r}}=t;return r(e)},CEe=(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 ks.default.load(o)}catch(c){return u&&u.errActions.newThrownErr(new Error(c)),{}}})(a.text,r))}},REe=(e,t)=>e.getIn(Array.isArray(t)?t:[t]);var TEe={[VR]:(e,t)=>e.merge((0,K.fromJS)(t.payload)),[zR]:(e,t)=>{const r=t.payload,n=e.get(r);return e.set(r,!n)}};function LV(){return{statePlugins:{configs:{reducers:TEe,actions:nO,selectors:iO}}}}const fx=e=>e?history.pushState(null,null,`#${e}`):window.location.hash="";var IEe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return NQ}});const $B="layout_scroll_to",LB="layout_clear_scroll";var jEe={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),IEe.default.createScroller(t).to(e)}catch(n){console.error(n)}},scrollTo:e=>({type:$B,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:LB}),readyToScroll:(e,t)=>r=>{const n=r.layoutSelectors.getScrollToKey();K.default.is(n,(0,K.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:{[$B]:(e,t)=>e.set("scrollToKey",K.default.fromJS(t.payload)),[LB]: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 fx("/");a.length===2?fx(Hc(`/${encodeURIComponent(o)}/${encodeURIComponent(u)}`)):a.length===1&&fx(Hc(`/${encodeURIComponent(o)}`))}catch(i){console.error(i)}}}}}},BB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Dee}}),PEe=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);X(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))}},kEe=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);X(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 BV(){return[jEe,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...r)=>{e(...r);const n=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:PEe,OperationTag:kEe}}]}var NEe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Lee}});function MEe(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 AO=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Uee}});function DEe(e,{jsSpec:t}){return e}const qEe=[sO,aO];function ic(e){let t={jsSpec:{}};return(0,NEe.default)(qEe,((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 px={line:0,level:"error",message:"Unknown error"};const UV=(0,ut.createSelector)((e=>e),(e=>e.get("errors",(0,K.List)()))),FEe=(0,ut.createSelector)(UV,(e=>e.last()));function VV(e){return{statePlugins:{err:{reducers:{[qm]:(t,{payload:r})=>{let n=Object.assign(px,r,{type:"thrown"});return t.update("errors",(i=>(i||(0,K.List)()).push((0,K.fromJS)(n)))).update("errors",(i=>ic(i)))},[TR]:(t,{payload:r})=>(r=r.map((n=>(0,K.fromJS)(Object.assign(px,n,{type:"thrown"})))),t.update("errors",(n=>(n||(0,K.List)()).concat((0,K.fromJS)(r)))).update("errors",(n=>ic(n)))),[IR]:(t,{payload:r})=>{let n=(0,K.fromJS)(r);return n=n.set("type","spec"),t.update("errors",(i=>(i||(0,K.List)()).push((0,K.fromJS)(n)).sortBy((s=>s.get("line"))))).update("errors",(i=>ic(i)))},[jR]:(t,{payload:r})=>(r=r.map((n=>(0,K.fromJS)(Object.assign(px,n,{type:"spec"})))),t.update("errors",(n=>(n||(0,K.List)()).concat((0,K.fromJS)(r)))).update("errors",(n=>ic(n)))),[PR]:(t,{payload:r})=>{let n=(0,K.fromJS)(Object.assign({},r));return n=n.set("type","auth"),t.update("errors",(i=>(i||(0,K.List)()).push((0,K.fromJS)(n)))).update("errors",(i=>ic(i)))},[kR]:(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})},[NR]:(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:eO,selectors:oO}}}}function $Ee(e,t){return e.filter(((r,n)=>n.indexOf(t)!==-1))}function zV(){return{fn:{opsFilter:$Ee}}}var Pt=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Bx}}),LEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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"})),BEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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"})),UEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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"})),VEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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"})),zEe=({className:e=null,width:t=15,height:r=16,...n})=>p.default.createElement("svg",(0,Pt.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"}))),WEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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"})),JEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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"})),WV=()=>({components:{ArrowUpIcon:LEe,ArrowDownIcon:BEe,ArrowIcon:UEe,CloseIcon:VEe,CopyIcon:zEe,LockIcon:WEe,UnlockIcon:JEe}});const WR="layout_update_layout",JR="layout_update_filter",HR="layout_update_mode",KR="layout_show";function HEe(e){return{type:WR,payload:e}}function KEe(e){return{type:JR,payload:e}}function GEe(e,t=!0){return e=wo(e),{type:KR,payload:{thing:e,shown:t}}}function YEe(e,t=""){return e=wo(e),{type:HR,payload:{thing:e,mode:t}}}var XEe={[WR]:(e,t)=>e.set("layout",t.payload),[JR]:(e,t)=>e.set("filter",t.payload),[KR]:(e,t)=>{const r=t.payload.shown,n=(0,K.fromJS)(t.payload.thing);return e.update("shown",(0,K.fromJS)({}),(i=>i.set(n,r)))},[HR]:(e,t)=>{let r=t.payload.thing,n=t.payload.mode;return e.setIn(["modes"].concat(r),(n||"")+"")}};const ZEe=e=>e.get("layout"),QEe=e=>e.get("filter"),JV=(e,t,r)=>(t=wo(t),e.get("shown",(0,K.fromJS)({})).get((0,K.fromJS)(t),r)),eSe=(e,t,r="")=>(t=wo(t),e.getIn(["modes",...t],r)),tSe=(0,ut.createSelector)((e=>e),(e=>!JV(e,"editor"))),rSe=(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 HV(){return{statePlugins:{layout:{reducers:XEe,actions:uO,selectors:cO},spec:{wrapSelectors:lO}}}}function KV({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 dx=!1;function GV(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(dx=!0,e(...t)),updateJsonSpec:(e,t)=>(...r)=>{const n=t.getConfigs().onComplete;return dx&&typeof n=="function"&&(setTimeout(n,0),dx=!1),e(...r)}}}}}}const UB=e=>{const t="_**[]";return e.indexOf(t)<0?e:e.split(t)[0].trim()},nSe=e=>e==="-d "||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",iSe=e=>(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
|
|
318
|
-
`))==="-d "?e.replace(/-d /g,`-d ^
|
|
319
|
-
`):/^[_\/-]/g.test(e)?e:'"'+e+'"',sSe=e=>e==="-d "?e:/\n/.test(e)?`@"
|
|
320
|
-
${e.replace(/`/g,"``").replace(/\$/g,"`$")}
|
|
321
|
-
"@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,"''")}'`,GR=(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(K.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=UB(d);u(),c(),o("-F"),g instanceof sr.File&&typeof g.valueOf()=="string"?a(`${y}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof sr.File?a(`${y}=@${g.name}${g.type?`;type=${g.type}`:""}`):a(`${y}=${g}`)}else if(h instanceof sr.File)u(),c(),o(`--data-binary '@${h.name}'`);else{u(),c(),o("-d ");let d=h;K.Map.isMap(d)?o((function(y){let v=[];for(let[_,b]of y.get("body").entrySeq()){let S=UB(_);b instanceof sr.File?v.push(` "${S}": {
|
|
322
|
-
"name": "${b.name}"${b.type?`,
|
|
323
|
-
"type": "${b.type}"`:""}
|
|
324
|
-
}`):v.push(` "${S}": ${JSON.stringify(b,null,2).replace(/(\r\n|\r|\n)/g,`
|
|
325
|
-
`)}`)}return`{
|
|
326
|
-
${v.join(`,
|
|
327
|
-
`)}
|
|
328
|
-
}`})(e)):(typeof d!="string"&&(d=JSON.stringify(d)),o(d))}else h||e.get("method")!=="POST"||(u(),c(),o("-d ''"));return s},aSe=e=>GR(e,sSe,"`\n",".exe"),YV=e=>GR(e,nSe,`\\
|
|
329
|
-
`),oSe=e=>GR(e,iSe,`^
|
|
330
|
-
`),YR=e=>e||(0,K.Map)(),XV=(0,ut.createSelector)(YR,(e=>{const t=e.get("languages"),r=e.get("generators",(0,K.Map)());return!t||t.isEmpty()?r:r.filter(((n,i)=>t.includes(i)))})),uSe=e=>({fn:t})=>XV(e).map(((r,n)=>{const i=(s=>t[`requestSnippetGenerator_${s}`])(n);return typeof i!="function"?null:r.set("fn",i)})).filter((r=>r)),cSe=(0,ut.createSelector)(YR,(e=>e.get("activeLanguage"))),lSe=(0,ut.createSelector)(YR,(e=>e.get("defaultExpanded")));var kt=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Ete}}),Lm=(function(e){var t={};return Ee.d(t,e),t})({CopyToClipboard:function(){return Ote.CopyToClipboard}});const fSe={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"},pSe={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 dSe=({request:e,requestSnippetsSelectors:t,getComponent:r})=>{var _;const n=(0,p.useRef)(null),i=r("ArrowUpIcon"),s=r("ArrowDownIcon"),a=r("SyntaxHighlighter",!0),[o,u]=(0,p.useState)((_=t.getSnippetGenerators())==null?void 0:_.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?pSe:fSe,v=b=>{const{target:S,deltaY:w}=b,{scrollHeight:E,offsetHeight:A,scrollTop:R}=S;E>A&&(R===0&&w<0||A+R>=E&&w>0)&&b.preventDefault()};return(0,p.useEffect)((()=>{}),[]),(0,p.useEffect)((()=>{const b=Array.from(n.current.childNodes).filter((S=>{var w;return!!S.nodeType&&((w=S.classList)==null?void 0:w.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,kt.default)("btn",{active:b===o}),style:y(b),key:b,onClick:()=>(w=>{o!==w&&u(w)})(b)},p.default.createElement("h4",{style:b===o?{color:"white"}:{}},S.get("title")))))),p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement(Lm.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))))},ZV=()=>({components:{RequestSnippets:dSe},fn:{requestSnippetGenerator_curl_bash:YV,requestSnippetGenerator_curl_cmd:oSe,requestSnippetGenerator_curl_powershell:aSe},statePlugins:{requestSnippets:{selectors:fO}}});const ah=class ah extends p.Component{constructor(r,n){super(r,n);X(this,"toggleCollapsed",()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})});X(this,"onLoad",r=>{if(r&&this.props.layoutSelectors){const n=this.props.layoutSelectors.getScrollToKey();K.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||ah.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)}};X(ah,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:K.default.List([])});let OO=ah;const hSe=({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 mSe=({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=Jo()(5).toString("base64"),g=Jo()(5).toString("base64"),y=Jo()(5).toString("base64"),v=Jo()(5).toString("base64"),_=u.isOAS3(),{activeTab:b,tabs:S,onTabChange:w}=hSe({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,kt.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:w,role:"tab"},r?"Edit Value":"Example Value")),e&&p.default.createElement("li",{className:(0,kt.default)("tabitem",{active:b===S.model}),role:"presentation"},p.default.createElement("button",{"aria-controls":v,"aria-selected":b===S.model,className:(0,kt.default)("tablinks",{inactive:r}),"data-name":"model",id:y,onClick:w,role:"tab"},_?"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 gSe extends p.Component{constructor(){super(...arguments);X(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,Pt.default)({},this.props,{getConfigs:n,expanded:s,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var VB,ySe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return $te}});function CO(){return CO=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},CO.apply(null,arguments)}var QV=e=>p.createElement("svg",CO({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),VB||(VB=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 zB=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class ez extends ySe.default{constructor(){super(...arguments);X(this,"getModelName",r=>r.indexOf("#/definitions/")!==-1?zB(r.replace(/^.*#\/definitions\//,"")):r.indexOf("#/components/schemas/")!==-1?zB(r.replace(/^.*#\/components\/schemas\//,"")):void 0);X(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",_=s&&s.get("$$ref"),b=s&&s.get("$ref");if(!o&&_&&(o=this.getModelName(_)),b){const w=this.getModelName(b),E=this.getRefSchema(w);K.Map.isMap(E)?(s=E.mergeDeep(s),_||(s=s.set("$$ref",b),_=b)):K.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(QV,{height:"20px",width:"20px"}));const S=i.isOAS3()&&s.get("deprecated");switch(u=u!==void 0?u:!!_,v=s&&s.get("type")||v,v){case"object":return p.default.createElement(d,(0,Pt.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,Pt.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,Pt.default)({},this.props,{getComponent:r,getConfigs:n,schema:s,name:o,deprecated:S,required:a}))}}}X(ez,"propTypes",{schema:BB.default.map.isRequired,getComponent:jn.default.func.isRequired,getConfigs:jn.default.func.isRequired,specSelectors:jn.default.object.isRequired,name:jn.default.string,displayName:jn.default.string,isRef:jn.default.bool,required:jn.default.bool,expandDepth:jn.default.number,depth:jn.default.number,specPath:BB.default.list.isRequired,includeReadOnly:jn.default.bool,includeWriteOnly:jn.default.bool});class vSe extends p.Component{constructor(){super(...arguments);X(this,"getSchemaBasePath",()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"]);X(this,"getCollapsedContent",()=>" ");X(this,"handleToggle",(r,n)=>{const{layoutActions:i}=this.props;i.show([...this.getSchemaBasePath(),r],n),n&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),r])});X(this,"onLoadModels",r=>{r&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),r)});X(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),_=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(_,null):p.default.createElement(b,null))),p.default.createElement(g,{isOpened:f},o.entrySeq().map((([S])=>{const w=[...l,S],E=K.default.List(w),A=r.specResolvedSubtree(w),R=r.specJson().getIn(w),I=K.Map.isMap(A)?A:K.default.Map(),O=K.Map.isMap(R)?R:K.default.Map(),D=I.get("title")||O.get("title")||S,P=i.isShown(w,!1);P&&I.size===0&&O.size>0&&this.props.specActions.requestResolvedSubtree(w);const F=p.default.createElement(d,{name:S,expandDepth:c,schema:I||K.default.Map(),displayName:D,fullPath:w,specPath:E,getComponent:n,specSelectors:r,getConfigs:a,layoutSelectors:i,layoutActions:s,includeReadOnly:!0,includeWriteOnly:!0}),M=p.default.createElement("span",{className:"model-box"},p.default.createElement("span",{className:"model model-title"},D));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:E})),p.default.createElement(y,{classes:"model-box",collapsedContent:this.getCollapsedContent(S),onToggle:this.handleToggle,title:M,displayName:D,modelName:S,specPath:E,layoutSelectors:i,layoutActions:s,hideSelfOnExpand:!0,expanded:c>0&&P},F))})).toArray()))}}var bSe=({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 RO(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function _Se(e,t){return e?RO(e)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(e):new URL(e,t).href:t}function Vi(e,t,{selectedServer:r=""}={}){try{return(function(i,s,{selectedServer:a=""}={}){if(!i)return;if(RO(i))return i;const o=_Se(a,s);return RO(o)?new URL(i,o).href:new URL(i,window.location.href).href})(e,t,{selectedServer:r})}catch{return}}function wr(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}`:t.startsWith("../")?`..${i.pathname}${i.search}${i.hash}`:`${i.pathname.substring(1)}${i.search}${i.hash}`:String(i)}catch{return r}}class ESe 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,_=o>2||o===2&&l.last()!=="items";if(!t)return null;const{showExtensions:b}=a(),S=b?ka(t):(0,K.List)();let w=t.get("description"),E=t.get("properties"),A=t.get("additionalProperties"),R=t.get("title")||n||r,I=t.get("required"),O=t.filter(((V,fe)=>["maxProperties","minProperties","nullable","example"].indexOf(fe)!==-1)),D=t.get("deprecated"),P=t.getIn(["externalDocs","url"]),F=t.getIn(["externalDocs","description"]);const M=s("JumpToPath",!0),G=s("Markdown",!0),ee=s("Model"),H=s("ModelCollapse"),Q=s("Property"),re=s("Link"),ne=s("ModelExtensions"),B=()=>p.default.createElement("span",{className:"model-jump-to-path"},p.default.createElement(M,{path:l})),J=p.default.createElement("span",null,p.default.createElement("span",null,"{"),"...",p.default.createElement("span",null,"}"),i?p.default.createElement(B,null):""),ie=h.isOAS3()?t.get("allOf"):null,oe=h.isOAS3()?t.get("anyOf"):null,ce=h.isOAS3()?t.get("oneOf"):null,te=h.isOAS3()?t.get("not"):null,z=R&&p.default.createElement("span",{className:"model-title"},i&&t.get("$$ref")&&p.default.createElement("span",{className:(0,kt.default)("model-hint",{"model-hint--embedded":_})},t.get("$$ref")),p.default.createElement("span",{className:"model-title__text"},R));return p.default.createElement("span",{className:"model"},p.default.createElement(H,{modelName:r,title:z,onToggle:u,expanded:!!c||o<=d,collapsedContent:J},p.default.createElement("span",{className:"brace-open object"},"{"),i?p.default.createElement(B,null):null,p.default.createElement("span",{className:"inner-object"},p.default.createElement("table",{className:"model"},p.default.createElement("tbody",null,w?p.default.createElement("tr",{className:"description"},p.default.createElement("td",null,"description:"),p.default.createElement("td",null,p.default.createElement(G,{source:w}))):null,P&&p.default.createElement("tr",{className:"external-docs"},p.default.createElement("td",null,"externalDocs:"),p.default.createElement("td",null,p.default.createElement(re,{target:"_blank",href:wr(P)},F||P))),D?p.default.createElement("tr",{className:"property"},p.default.createElement("td",null,"deprecated:"),p.default.createElement("td",null,"true")):null,E&&E.size?E.entrySeq().filter((([,V])=>(!V.get("readOnly")||g)&&(!V.get("writeOnly")||y))).map((([V,fe])=>{let me=v()&&fe.get("deprecated"),Ce=K.List.isList(I)&&I.contains(V),Ne=["property-row"];return me&&Ne.push("deprecated"),Ce&&Ne.push("required"),p.default.createElement("tr",{key:V,className:Ne.join(" ")},p.default.createElement("td",null,V,Ce&&p.default.createElement("span",{className:"star"},"*")),p.default.createElement("td",null,p.default.createElement(ee,(0,Pt.default)({key:`object-${r}-${V}_${fe}`},f,{required:Ce,getComponent:s,specPath:l.push("properties",V),getConfigs:a,schema:fe,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(ne,{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(ee,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("additionalProperties"),getConfigs:a,schema:A,depth:o+1})))):null,ie?p.default.createElement("tr",null,p.default.createElement("td",null,"allOf ->"),p.default.createElement("td",null,ie.map(((V,fe)=>p.default.createElement("div",{key:fe},p.default.createElement(ee,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("allOf",fe),getConfigs:a,schema:V,depth:o+1}))))))):null,oe?p.default.createElement("tr",null,p.default.createElement("td",null,"anyOf ->"),p.default.createElement("td",null,oe.map(((V,fe)=>p.default.createElement("div",{key:fe},p.default.createElement(ee,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("anyOf",fe),getConfigs:a,schema:V,depth:o+1}))))))):null,ce?p.default.createElement("tr",null,p.default.createElement("td",null,"oneOf ->"),p.default.createElement("td",null,ce.map(((V,fe)=>p.default.createElement("div",{key:fe},p.default.createElement(ee,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("oneOf",fe),getConfigs:a,schema:V,depth:o+1}))))))):null,te?p.default.createElement("tr",null,p.default.createElement("td",null,"not ->"),p.default.createElement("td",null,p.default.createElement("div",null,p.default.createElement(ee,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("not"),getConfigs:a,schema:te,depth:o+1}))))):null))),p.default.createElement("span",{className:"brace-close"},"}")),O.size?O.entrySeq().map((([V,fe])=>p.default.createElement(Q,{key:`${V}-${fe}`,propKey:V,propVal:fe,propClass:"property"}))):null)}}class SSe 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(((E,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"),_=t("Model"),b=t("Property"),S=t("Link"),w=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:w,expanded:i<=s,collapsedContent:"[...]"},"[",h.size?h.entrySeq().map((([E,A])=>p.default.createElement(b,{key:`${E}-${A}`,propKey:E,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:wr(d)},g||d)),p.default.createElement("span",null,p.default.createElement(_,(0,Pt.default)({},this.props,{getConfigs:r,specPath:u.push("items"),name:null,schema:l,required:!1,depth:i+1}))),"]"))}}const bp="property primitive";class wSe 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=ka(t);let v=t.filter(((D,P)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(P)===-1)).filterNot(((D,P)=>y.has(P))),_=t.getIn(["externalDocs","url"]),b=t.getIn(["externalDocs","description"]);const S=r("Markdown",!0),w=r("EnumModel"),E=r("Property"),A=r("ModelCollapse"),R=r("Link"),I=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((([D,P])=>p.default.createElement(E,{key:`${D}-${P}`,propKey:D,propVal:P,propClass:bp}))):null,u&&y.size>0?p.default.createElement(I,{extensions:y,propClass:`${bp} extension`}):null,g?p.default.createElement(S,{source:g}):null,_&&p.default.createElement("div",{className:"external-docs"},p.default.createElement(R,{target:"_blank",href:wr(_)},b||_)),f&&f.size?p.default.createElement("span",null,p.default.createElement("br",null),p.default.createElement("span",{className:bp},"xml:"),f.entrySeq().map((([D,P])=>p.default.createElement("span",{key:`${D}-${P}`,className:bp},p.default.createElement("br",null)," ",D,": ",String(P)))).toArray()):null,h&&p.default.createElement(w,{value:h,getComponent:r}))))}}class xSe extends p.default.Component{constructor(){super(...arguments);X(this,"onChange",r=>{this.setScheme(r.target.value)});X(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 ASe 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 tz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return zte}});const xo={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,K.List)()};class rz 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.getSchemaObjectType(t),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||!K.List.isList(c)||l!=="array"&&l!=="object"||(d=s("JsonSchema_object")),d||(d=s("JsonSchema_string")),p.default.createElement(d,(0,Pt.default)({},this.props,{errors:r,fn:a,getComponent:s,value:n,onChange:i,schema:t,disabled:o}))}}X(rz,"defaultProps",xo);class nz extends p.Component{constructor(){super(...arguments);X(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)});X(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?(Of(n)||typeof n=="object")&&(n=rn(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(tz.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})}}X(nz,"defaultProps",xo);class iz extends p.PureComponent{constructor(r,n){super(r,n);X(this,"onChange",()=>{this.props.onChange(this.state.value)});X(this,"onItemChange",(r,n)=>{this.setState((({value:i})=>({value:i.set(n,r)})),this.onChange)});X(this,"removeItem",r=>{this.setState((({value:n})=>({value:n.delete(r)})),this.onChange)});X(this,"addItem",()=>{const{fn:r}=this.props;let n=hx(this.state.value);this.setState((()=>({value:n.push(r.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)});X(this,"onEnumChange",r=>{this.setState((()=>({value:r})),this.onChange)});this.state={value:hx(r.value),schema:r.schema}}UNSAFE_componentWillReceiveProps(r){const n=hx(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.get("items"),g=a.getSchemaObjectType(d),y=a.getSchemaObjectTypeLabel(d),v=i.getIn(["items","format"]),_=i.get("items");let b,S=!1,w=g==="file"||g==="string"&&v==="binary";if(g&&v?b=r(`JsonSchema_${g}_${v}`):g!=="boolean"&&g!=="array"&&g!=="object"||(b=r(`JsonSchema_${g}`)),!K.List.isList(d==null?void 0:d.get("type"))||g!=="array"&&g!=="object"||(b=r("JsonSchema_object")),b||w||(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 E=r("Button");return p.default.createElement("div",{className:"json-schema-array"},f?l.map(((A,R)=>{const I=(0,K.fromJS)([...s.filter((O=>O.index===R)).map((O=>O.error))]);return p.default.createElement("div",{key:R,className:"json-schema-form-item"},w?p.default.createElement(ZR,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:I,getComponent:r}):S?p.default.createElement(XR,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:I}):p.default.createElement(b,(0,Pt.default)({},this.props,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:I,schema:_,getComponent:r,fn:a})),o?null:p.default.createElement(E,{className:`btn btn-sm json-schema-form-item-remove ${c.length?"invalid":null}`,title:c.length?c:"",onClick:()=>this.removeItem(R)}," - "))})):null,o?null:p.default.createElement(E,{className:`btn btn-sm json-schema-form-item-add ${u.length?"invalid":null}`,title:u.length?u:"",onClick:this.addItem},"Add ",y," item"))}}X(iz,"defaultProps",xo);class XR extends p.Component{constructor(){super(...arguments);X(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?(Of(r)||typeof r=="object")&&(r=rn(r)):r="",n=n.toJS?n.toJS():[],p.default.createElement(tz.default,{type:"text",className:n.length?"invalid":"",title:n.length?n:"",value:r,minLength:0,debounceTimeout:350,placeholder:i,onChange:this.onChange,disabled:s})}}X(XR,"defaultProps",xo);class ZR extends p.Component{constructor(){super(...arguments);X(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})}}X(ZR,"defaultProps",xo);class sz extends p.Component{constructor(){super(...arguments);X(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})}}X(sz,"defaultProps",xo);const OSe=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 az extends p.PureComponent{constructor(){super();X(this,"onChange",r=>{this.props.onChange(r)});X(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,kt.default)({invalid:i.length}),title:i.length?OSe(i).join(", "):"",value:rn(n),disabled:s,onChange:this.handleOnChange}))}}X(az,"defaultProps",xo);function hx(e){return K.List.isList(e)?e:Array.isArray(e)?(0,K.fromJS)(e):(0,K.List)()}const CSe=({extensions:e,propClass:t=""})=>e.entrySeq().map((([r,n])=>{const i=gu(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 Fs=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Jte}});const RSe=(e,t)=>{const r=K.Map.isMap(e);if(!r&&!(0,Fs.default)(e))return!1;const n=r?e.get("type"):e.type;return t===n||Array.isArray(t)&&t.includes(n)},oz=(e,t=new WeakSet)=>{if(e==null||t.has(e))return"any";t.add(e);const{type:r,items:n}=e;return Object.hasOwn(e,"items")?n?`array<${oz(n,t)}>`:"array<any>":r},TSe=e=>oz(gu(e));var uz=()=>({components:{modelExample:mSe,ModelWrapper:gSe,ModelCollapse:OO,Model:ez,Models:vSe,EnumModel:bSe,ObjectModel:ESe,ArrayModel:SSe,PrimitiveModel:wSe,ModelExtensions:CSe,schemes:xSe,SchemesContainer:ASe,...pO},fn:{hasSchemaType:RSe,getSchemaObjectTypeLabel:TSe}}),ISe=Ee(123),cz=Ee.n(ISe),lz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Qte}}),as=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return rre}});const mx=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((r,n)=>r===t[n])),jSe=(...e)=>e;class PSe extends Map{delete(t){const r=Array.from(this.keys()).find(mx(t));return super.delete(r)}get(t){const r=Array.from(this.keys()).find(mx(t));return super.get(r)}has(t){return Array.from(this.keys()).findIndex(mx(t))!==-1}}var Rf=(e,t=jSe)=>{const{Cache:r}=mc.default;mc.default.Cache=PSe;const n=(0,mc.default)(e,t);return mc.default.Cache=r,n};const WB={string:e=>e.pattern?(t=>{try{const r=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),n=t.replace(r,"100"),i=new lz.default(n);return i.max=100,i.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_time:()=>new Date().toISOString().substring(11),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},JB=e=>{e=za(e);let{type:t,format:r}=e,n=WB[`${t}_${r}`]||WB[t];return qs(n)?n(e):"Unknown Type: "+e.type},kSe=e=>MV(e,"$$ref",(t=>typeof t=="string"&&t.indexOf("#")>-1)),fz=["maxProperties","minProperties"],pz=["minItems","maxItems"],dz=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],NSe=["minLength","maxLength"],Go=(e,t,r={})=>{const n={...e};if(["example","default","enum","xml","type",...fz,...pz,...dz,...NSe].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=za(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=Go(n.items,t.items,r)),n},di=(e,t={},r=void 0,n=!1)=>{e&&qs(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 M=za(s?e.oneOf[0]:e.anyOf[0]);if(!(e=Go(e,M,t)).xml&&M.xml&&(e.xml=M.xml),e.example!==void 0&&M.example!==void 0)i=!0;else if(M.properties){e.properties||(e.properties={});let G=za(M.properties);for(let ee in G)Object.prototype.hasOwnProperty.call(G,ee)&&(G[ee]&&G[ee].deprecated||G[ee]&&G[ee].readOnly&&!t.includeReadOnly||G[ee]&&G[ee].writeOnly&&!t.includeWriteOnly||e.properties[ee]||(e.properties[ee]=G[ee],!M.required&&Array.isArray(M.required)&&M.required.indexOf(ee)!==-1&&(e.required?e.required.push(ee):e.required=[ee])))}}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:_,prefix:b,namespace:S}=u,w={};n&&(_=_||"notagname",v=(b?b+":":"")+_,S)&&(o[b?"xmlns:"+b:"xmlns"]=S),n&&(w[v]=[]);const E=M=>M.some((G=>Object.prototype.hasOwnProperty.call(e,G)));e&&!c&&(f||h||E(fz)?c="object":d||E(pz)?c="array":E(dz)?(c="number",e.type="number"):i||e.enum||(c="string",e.type="string"));const A=M=>{if((e==null?void 0:e.maxItems)!=null&&(M=M.slice(0,e==null?void 0:e.maxItems)),(e==null?void 0:e.minItems)!=null){let G=0;for(;M.length<(e==null?void 0:e.minItems);)M.push(M[G++%M.length])}return M},R=za(f);let I,O=0;const D=()=>e&&e.maxProperties!==null&&e.maxProperties!==void 0&&O>=e.maxProperties,P=M=>!e||e.maxProperties===null||e.maxProperties===void 0||!D()&&(!(G=>!(e&&e.required&&e.required.length&&e.required.includes(G)))(M)||e.maxProperties-O-(()=>{if(!e||!e.required)return 0;let G=0;return n?e.required.forEach((ee=>G+=w[ee]===void 0?0:1)):e.required.forEach((ee=>{var H;return G+=((H=w[v])==null?void 0:H.find((Q=>Q[ee]!==void 0)))===void 0?0:1})),e.required.length-G})()>0);if(I=n?(M,G=void 0)=>{if(e&&R[M]){if(R[M].xml=R[M].xml||{},R[M].xml.attribute){const H=Array.isArray(R[M].enum)?R[M].enum[0]:void 0,Q=R[M].example,re=R[M].default;return void(o[R[M].xml.name||M]=Q!==void 0?Q:re!==void 0?re:H!==void 0?H:JB(R[M]))}R[M].xml.name=R[M].xml.name||M}else R[M]||h===!1||(R[M]={xml:{name:M}});let ee=di(e&&R[M]||void 0,t,G,n);P(M)&&(O++,Array.isArray(ee)?w[v]=w[v].concat(ee):w[v].push(ee))}:(M,G)=>{if(P(M)){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===M){for(let ee in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[ee])!==-1){w[M]=ee;break}}else w[M]=di(R[M],t,G,n);O++}},i){let M;if(M=kSe(r!==void 0?r:l!==void 0?l:e.default),!n){if(typeof M=="number"&&c==="string")return`${M}`;if(typeof M!="string"||c==="string")return M;try{return JSON.parse(M)}catch{return M}}if(e||(c=Array.isArray(M)?"array":typeof M),c==="array"){if(!Array.isArray(M)){if(typeof M=="string")return M;M=[M]}const G=e?e.items:void 0;G&&(G.xml=G.xml||u||{},G.xml.name=G.xml.name||u.name);let ee=M.map((H=>di(G,t,H,n)));return ee=A(ee),u.wrapped?(w[v]=ee,(0,as.default)(o)||w[v].push({_attr:o})):w=ee,w}if(c==="object"){if(typeof M=="string")return M;for(let G in M)Object.prototype.hasOwnProperty.call(M,G)&&(e&&R[G]&&R[G].readOnly&&!g||e&&R[G]&&R[G].writeOnly&&!y||(e&&R[G]&&R[G].xml&&R[G].xml.attribute?o[R[G].xml.name||G]=M[G]:I(G,M[G])));return(0,as.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,as.default)(o)?M:[{_attr:o},M],w}if(c==="object"){for(let M in R)Object.prototype.hasOwnProperty.call(R,M)&&(R[M]&&R[M].deprecated||R[M]&&R[M].readOnly&&!g||R[M]&&R[M].writeOnly&&!y||I(M));if(n&&o&&w[v].push({_attr:o}),D())return w;if(h===!0)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},O++;else if(h){const M=za(h),G=di(M,t,void 0,n);if(n&&M.xml&&M.xml.name&&M.xml.name!=="notagname")w[v].push(G);else{const ee=M["x-additionalPropertiesName"]||"additionalProp",H=e.minProperties!==null&&e.minProperties!==void 0&&O<e.minProperties?e.minProperties-O:3;for(let Q=1;Q<=H;Q++){if(D())return w;if(n){const re={};re[ee+Q]=G.notagname,w[v].push(re)}else w[ee+Q]=G;O++}}}return w}if(c==="array"){if(!d)return;let M;if(n&&(d.xml=d.xml||(e==null?void 0:e.xml)||{},d.xml.name=d.xml.name||u.name),Array.isArray(d.anyOf))M=d.anyOf.map((G=>di(Go(G,d,t),t,void 0,n)));else if(Array.isArray(d.oneOf))M=d.oneOf.map((G=>di(Go(G,d,t),t,void 0,n)));else{if(!(!n||n&&u.wrapped))return di(d,t,void 0,n);M=[di(d,t,void 0,n)]}return M=A(M),n&&u.wrapped?(w[v]=M,(0,as.default)(o)||w[v].push({_attr:o}),w):M}let F;if(e&&Array.isArray(e.enum))F=wo(e.enum)[0];else{if(!e)return;if(F=JB(e),typeof F=="number"){let M=e.minimum;M!=null&&(e.exclusiveMinimum&&M++,F=M);let G=e.maximum;G!=null&&(e.exclusiveMaximum&&G--,F=G)}if(typeof F=="string"&&(e.maxLength!==null&&e.maxLength!==void 0&&(F=F.slice(0,e.maxLength)),e.minLength!==null&&e.minLength!==void 0)){let M=0;for(;F.length<e.minLength;)F+=F[M++%F.length]}}if(c!=="file")return n?(w[v]=(0,as.default)(o)?F:[{_attr:o},F],w):F},HB=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),TO=(e,t,r)=>{const n=di(e,t,r,!0);if(n)return typeof n=="string"?n:cz()(n,{declaration:!0,indent:" "})},IO=(e,t,r)=>di(e,t,r,!1),hz=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],KB=Rf(TO,hz),GB=Rf(IO,hz),MSe=e=>{var t;return((t=gu(e))==null?void 0:t.type)??"string"},DSe=[{when:/json/,shouldStringifyTypes:["string"]}],qSe=["object"];var FSe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.memoizedSampleFromSchema(t,r,i),o=typeof a,u=DSe.reduce(((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c),qSe);return(0,PV.default)(u,(c=>c===o))?JSON.stringify(a,null,2):a},$Se=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.getJsonSampleSchema(t,r,n,i);let o;try{o=ks.default.dump(ks.default.load(a),{lineWidth:-1},{schema:ks.JSON_SCHEMA}),o[o.length-1]===`
|
|
331
|
-
`&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},LSe=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"?>
|
|
332
|
-
<!-- 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)},BSe=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)},mz=({getSystem:e})=>{const t=FSe(e),r=$Se(e),n=LSe(e),i=BSe(e);return{fn:{jsonSchema5:{inferSchema:HB,sampleFromSchema:IO,sampleFromSchemaGeneric:di,createXMLExample:TO,memoizedSampleFromSchema:GB,memoizedCreateXMLExample:KB,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Go},inferSchema:HB,sampleFromSchema:IO,sampleFromSchemaGeneric:di,createXMLExample:TO,memoizedSampleFromSchema:GB,memoizedCreateXMLExample:KB,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Go,getSchemaObjectType:MSe}}},Bm=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ire}});const USe=["get","put","post","delete","options","head","patch","trace"],Es=e=>e||(0,K.Map)(),VSe=(0,ut.createSelector)(Es,(e=>e.get("lastError"))),zSe=(0,ut.createSelector)(Es,(e=>e.get("url"))),WSe=(0,ut.createSelector)(Es,(e=>e.get("spec")||"")),JSe=(0,ut.createSelector)(Es,(e=>e.get("specSource")||"not-editor")),QR=(0,ut.createSelector)(Es,(e=>e.get("json",(0,K.Map)()))),HSe=(0,ut.createSelector)(QR,(e=>e.toJS())),KSe=(0,ut.createSelector)(Es,(e=>e.get("resolved",(0,K.Map)()))),GSe=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),gz=(e,t)=>K.Map.isMap(e)&&K.Map.isMap(t)?t.get("$$ref")?t:(0,K.OrderedMap)().mergeWith(gz,e,t):t,Ki=(0,ut.createSelector)(Es,(e=>(0,K.OrderedMap)().mergeWith(gz,e.get("json"),e.get("resolvedSubtrees")))),Ln=e=>QR(e),YSe=(0,ut.createSelector)(Ln,(()=>!1)),yz=(0,ut.createSelector)(Ln,(e=>Mz(e&&e.get("info")))),XSe=(0,ut.createSelector)(Ln,(e=>Mz(e&&e.get("externalDocs")))),vz=(0,ut.createSelector)(yz,(e=>e&&e.get("version"))),ZSe=(0,ut.createSelector)(vz,(e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1))),bz=(0,ut.createSelector)(Ki,(e=>e.get("paths"))),QSe=(0,Bm.default)(["get","put","post","delete","options","head","patch"]),_z=(0,ut.createSelector)(bz,(e=>{let t=(0,K.List)();return!K.Map.isMap(e)||e.isEmpty()||e.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((i,s)=>{USe.indexOf(s)<0||(t=t.push((0,K.fromJS)({path:n,method:s,operation:i,id:`${s}-${n}`})))}))})),t})),Ez=(0,ut.createSelector)(Ln,(e=>(0,K.Set)(e.get("consumes")))),Sz=(0,ut.createSelector)(Ln,(e=>(0,K.Set)(e.get("produces")))),e1e=(0,ut.createSelector)(Ln,(e=>e.get("security",(0,K.List)()))),t1e=(0,ut.createSelector)(Ln,(e=>e.get("securityDefinitions"))),r1e=(e,t)=>{const r=e.getIn(["resolvedSubtrees","definitions",t],null),n=e.getIn(["json","definitions",t],null);return r||n||null},n1e=(0,ut.createSelector)(Ln,(e=>{const t=e.get("definitions");return K.Map.isMap(t)?t:(0,K.Map)()})),i1e=(0,ut.createSelector)(Ln,(e=>e.get("basePath"))),s1e=(0,ut.createSelector)(Ln,(e=>e.get("host"))),a1e=(0,ut.createSelector)(Ln,(e=>e.get("schemes",(0,K.Map)()))),wz=(0,ut.createSelector)([_z,Ez,Sz],((e,t,r)=>e.map((n=>n.update("operation",(i=>K.Map.isMap(i)?i.withMutations((s=>(s.get("consumes")||s.update("consumes",(a=>(0,K.Set)(a).merge(t))),s.get("produces")||s.update("produces",(a=>(0,K.Set)(a).merge(r))),s))):(0,K.Map)())))))),eT=(0,ut.createSelector)(Ln,(e=>{const t=e.get("tags",(0,K.List)());return K.List.isList(t)?t.filter((r=>K.Map.isMap(r))):(0,K.List)()})),xz=(e,t)=>(eT(e)||(0,K.List)()).filter(K.Map.isMap).find((r=>r.get("name")===t),(0,K.Map)()),Az=(0,ut.createSelector)(wz,eT,((e,t)=>e.reduce(((r,n)=>{let i=(0,K.Set)(n.getIn(["operation","tags"]));return i.count()<1?r.update("default",(0,K.List)(),(s=>s.push(n))):i.reduce(((s,a)=>s.update(a,(0,K.List)(),(o=>o.push(n)))),r)}),t.reduce(((r,n)=>r.set(n.get("name"),(0,K.List)())),(0,K.OrderedMap)())))),o1e=e=>({getConfigs:t})=>{let{tagsSorter:r,operationsSorter:n}=t();return Az(e).sortBy(((i,s)=>s),((i,s)=>{let a=typeof r=="function"?r:kB.tagsSorter[r];return a?a(i,s):null})).map(((i,s)=>{let a=typeof n=="function"?n:kB.operationsSorter[n],o=a?i.sort(a):i;return(0,K.Map)({tagDetails:xz(e,s),operations:o})}))},Oz=(0,ut.createSelector)(Es,(e=>e.get("responses",(0,K.Map)()))),Cz=(0,ut.createSelector)(Es,(e=>e.get("requests",(0,K.Map)()))),Rz=(0,ut.createSelector)(Es,(e=>e.get("mutatedRequests",(0,K.Map)()))),u1e=(e,t,r)=>Oz(e).getIn([t,r],null),c1e=(e,t,r)=>Cz(e).getIn([t,r],null),l1e=(e,t,r)=>Rz(e).getIn([t,r],null),f1e=()=>!0,tT=(e,t,r)=>{const n=Ki(e).getIn(["paths",...t,"parameters"],(0,K.OrderedMap)()),i=e.getIn(["meta","paths",...t,"parameters"],(0,K.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,K.OrderedMap)().merge(s,a,o)})).find((s=>s.get("in")===r.get("in")&&s.get("name")===r.get("name")),(0,K.OrderedMap)())},Tz=(e,t,r,n)=>{const i=`${n}.${r}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",i],!1)},p1e=(e,t,r,n)=>{const i=Ki(e).getIn(["paths",...t,"parameters"],(0,K.OrderedMap)()).find((s=>s.get("in")===n&&s.get("name")===r),(0,K.OrderedMap)());return tT(e,t,i)},Iz=(e,t,r)=>{const n=Ki(e).getIn(["paths",t,r],(0,K.OrderedMap)()),i=e.getIn(["meta","paths",t,r],(0,K.OrderedMap)()),s=n.get("parameters",(0,K.List)()).map((a=>tT(e,[t,r],a)));return(0,K.OrderedMap)().merge(n,i).set("parameters",s)};function d1e(e,t,r,n){return t=t||[],e.getIn(["meta","paths",...t,"parameters"],(0,K.fromJS)([])).find((i=>K.Map.isMap(i)&&i.get("name")===r&&i.get("in")===n))||(0,K.Map)()}const h1e=(0,ut.createSelector)(Ln,(e=>{const t=e.get("host");return typeof t=="string"&&t.length>0&&t[0]!=="/"}));function jz(e,t,r){return t=t||[],Iz(e,...t).get("parameters",(0,K.List)()).reduce(((n,i)=>{let s=r&&i.get("in")==="body"?i.get("value_xml"):i.get("value");return K.List.isList(s)&&(s=s.filter((a=>a!==""))),n.set(_d(i,{allowHashes:!1}),s)}),(0,K.fromJS)({}))}function m1e(e,t=""){if(K.List.isList(e))return e.some((r=>K.Map.isMap(r)&&r.get("in")===t))}function jO(e,t=""){if(K.List.isList(e))return e.some((r=>K.Map.isMap(r)&&r.get("type")===t))}function g1e(e,t){t=t||[];let r=Ki(e).getIn(["paths",...t],(0,K.fromJS)({})),n=e.getIn(["meta","paths",...t],(0,K.fromJS)({})),i=Pz(e,t);const s=r.get("parameters")||new K.List,a=n.get("consumes_value")?n.get("consumes_value"):jO(s,"file")?"multipart/form-data":jO(s,"formData")?"application/x-www-form-urlencoded":void 0;return(0,K.fromJS)({requestContentType:a,responseContentType:i})}function Pz(e,t){t=t||[];const r=Ki(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 y1e(e,t){t=t||[];const r=Ki(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 v1e(e,t){t=t||[];const r=Ki(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 kz=(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||""},b1e=(e,t,r)=>["http","https"].indexOf(kz(e,t,r))>-1,Nz=(e,t)=>{t=t||[];const r=e.getIn(["meta","paths",...t,"parameters"],(0,K.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 K.Map.isMap(u.get("error"))?i(u.get("error"),l):{error:u.get("error"),path:l}};return K.List.isList(s)?s.map((u=>K.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},_1e=(e,t)=>Nz(e,t).length===0,E1e=(e,t)=>{let r={requestBody:!1,requestContentType:{}},n=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,K.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},S1e=(e,t,r,n)=>{if((r||n)&&r===n)return!0;let i=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,K.fromJS)([]));if(i.size<2||!r||!n)return!1;let s=i.getIn([r,"schema","properties"],(0,K.fromJS)([])),a=i.getIn([n,"schema","properties"],(0,K.fromJS)([]));return!!s.equals(a)};function Mz(e){return K.Map.isMap(e)?e:new K.Map}var w1e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return are}}),x1e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return lre}}),Dz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return dre}}),A1e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Hre}});const rT="spec_update_spec",nT="spec_update_url",iT="spec_update_json",Um="spec_update_param",sT="spec_update_empty_param_inclusion",aT="spec_validate_param",oT="spec_set_response",uT="spec_set_request",cT="spec_set_mutated_request",qz="spec_log_request",lT="spec_clear_response",fT="spec_clear_request",pT="spec_clear_validate_param",Vm="spec_update_operation_meta_value",dT="spec_update_resolved",zm="spec_update_resolved_subtree",hT="set_scheme",O1e=e=>(0,w1e.default)(e)?e:"";function C1e(e){const t=O1e(e).replace(/\t/g," ");if(typeof e=="string")return{type:rT,payload:t}}function R1e(e){return{type:dT,payload:e}}function T1e(e){return{type:nT,payload:e}}function I1e(e){return{type:iT,payload:e}}const j1e=e=>({specActions:t,specSelectors:r,errActions:n})=>{let{specStr:i}=r,s=null;try{e=e||i(),n.clear({source:"parser"}),s=ks.default.load(e,{schema:ks.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 YB=!1;const P1e=(e,t)=>({specActions:r,specSelectors:n,errActions:i,fn:{fetch:s,resolve:a,AST:o={}},getConfigs:u})=>{YB||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),YB=!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 _=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(_)}return r.updateResolved(y)}))};let Ed=[];const k1e=(0,x1e.default)((()=>{const e=Ed.reduce(((t,{path:r,system:n})=>(t.has(n)||t.set(n,[]),t.get(n).push(r),t)),new Map);Ed=[],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,Bm.default)(void 0),f=u.specStr(),{modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y}=r.getConfigs();try{const v=await t.reduce((async(_,b)=>{let{resultMap:S,specWithCurrentSubtrees:w}=await _;const{errors:E,spec:A}=await s(w,b,{baseDoc:String(new URL(u.url(),document.baseURI)),modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y});if(i.allErrors().size&&n.clearBy((R=>{var I;return R.get("type")!=="thrown"||R.get("source")!=="resolver"||!((I=R.get("fullPath"))!=null&&I.every(((O,D)=>O===b[D]||b[D]===void 0)))})),Array.isArray(E)&&E.length>0){let R=E.map((I=>(I.line=I.fullPath?l(f,I.fullPath):null,I.path=I.fullPath?I.fullPath.join("."):null,I.level="error",I.type="thrown",I.source="resolver",Object.defineProperty(I,"message",{enumerable:!0,value:I.message}),I)));n.newThrownErrBatch(R)}return A&&u.isOAS3()&&b[0]==="components"&&b[1]==="securitySchemes"&&await Promise.all(Object.values(A).filter((R=>(R==null?void 0:R.type)==="openIdConnect")).map((async R=>{const I={url:R.openIdConnectUrl,requestInterceptor:g,responseInterceptor:y};try{const O=await a(I);O instanceof Error||O.status>=400?console.error(O.statusText+" "+I.url):R.openIdConnectData=JSON.parse(O.text)}catch(O){console.error(O)}}))),(0,Dz.default)(S,b,A),w=(0,A1e.default)(b,A,w),{resultMap:S,specWithCurrentSubtrees:w}}),Promise.resolve({resultMap:(u.specResolvedSubtree([])||(0,K.Map)()).toJS(),specWithCurrentSubtrees:u.specJS()}));c.updateResolvedSubtree([],v.resultMap)}catch(v){console.error(v)}}))}),35),N1e=e=>t=>{Ed.find((({path:r,system:n})=>n===t&&r.toString()===e.toString()))||(Ed.push({path:e,system:t}),k1e())};function M1e(e,t,r,n,i){return{type:Um,payload:{path:e,value:n,paramName:t,paramIn:r,isXml:i}}}function D1e(e,t,r,n){return{type:Um,payload:{path:e,param:t,value:r,isXml:n}}}const q1e=(e,t)=>({type:zm,payload:{path:e,value:t}}),F1e=()=>({type:zm,payload:{path:[],value:(0,K.Map)()}}),$1e=(e,t)=>({type:aT,payload:{pathMethod:e,isOAS3:t}}),L1e=(e,t,r,n)=>({type:sT,payload:{pathMethod:e,paramName:t,paramIn:r,includeEmptyValue:n}});function B1e(e){return{type:pT,payload:{pathMethod:e}}}function U1e(e,t){return{type:Vm,payload:{path:e,value:t,key:"consumes_value"}}}function V1e(e,t){return{type:Vm,payload:{path:e,value:t,key:"produces_value"}}}const z1e=(e,t,r)=>({payload:{path:e,method:t,res:r},type:oT}),W1e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:uT}),J1e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:cT}),H1e=e=>({payload:e,type:qz}),K1e=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=DV(g,e.parameters);(!y||y&&y.size===0)&&(e.parameters[g.get("name")]="")}})),e.contextUrl=(0,Kc.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 _=s.requestBodyValue(a,o),b=s.requestBodyInclusionSetting(a,o);_&&_.toJS?e.requestBody=_.map((S=>K.Map.isMap(S)?S.get("value"):S)).filter(((S,w)=>(Array.isArray(S)?S.length!==0:!MR(S))||b.get(w))).toJS():e.requestBody=_}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.**
|
|
333
|
-
**Possible Reasons:**
|
|
334
|
-
- CORS
|
|
335
|
-
- Network Failure
|
|
336
|
-
- URL scheme must be "http" or "https" for CORS request.`),r.setResponse(e.pathName,e.method,{error:!0,err:g})}))},G1e=({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 Y1e(e,t){return{type:lT,payload:{path:e,method:t}}}function X1e(e,t){return{type:fT,payload:{path:e,method:t}}}function Z1e(e,t,r){return{type:hT,payload:{scheme:e,path:t,method:r}}}var Q1e={[rT]:(e,t)=>typeof t.payload=="string"?e.set("spec",t.payload):e,[nT]:(e,t)=>e.set("url",t.payload+""),[iT]:(e,t)=>e.set("json",ns(t.payload)),[dT]:(e,t)=>e.setIn(["resolved"],ns(t.payload)),[zm]:(e,t)=>{const{value:r,path:n}=t.payload;return e.setIn(["resolvedSubtrees",...n],ns(r))},[Um]:(e,{payload:t})=>{let{path:r,paramName:n,paramIn:i,param:s,value:a,isXml:o}=t,u=s?_d(s):`${i}.${n}`;const c=o?"value_xml":"value";return e.setIn(["meta","paths",...r,"parameters",u,c],(0,K.fromJS)(a))},[sT]:(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)},[aT]:(e,{payload:{pathMethod:t,isOAS3:r}})=>{const n=Ki(e).getIn(["paths",...t]),i=jz(e,t).toJS();return e.updateIn(["meta","paths",...t,"parameters"],(0,K.fromJS)({}),(s=>n.get("parameters",(0,K.List)()).reduce(((a,o)=>{const u=DV(o,i),c=Tz(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:_}=qp(f,{isOAS3:d});return SO(h,v,y,g,_)})(o,u,{bypassRequiredCheck:c,isOAS3:r});return a.setIn([_d(o),"errors"],(0,K.fromJS)(l))}),s)))},[pT]:(e,{payload:{pathMethod:t}})=>e.updateIn(["meta","paths",...t,"parameters"],(0,K.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,K.fromJS)([])))))),[oT]:(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],ns(i));return sr.Blob&&i.data instanceof sr.Blob&&(s=s.setIn(["responses",r,n,"text"],i.data)),s},[uT]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["requests",r,n],ns(t)),[cT]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["mutatedRequests",r,n],ns(t)),[Vm]:(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,K.fromJS)(r)):e},[lT]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["responses",t,r]),[fT]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["requests",t,r]),[hT]:(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 ewe=(e,{specActions:t})=>(...r)=>{e(...r),t.parseToJson(...r)},twe=(e,{specActions:t})=>(...r)=>{e(...r),t.invalidateResolvedSubtreeCache();const[n]=r,i=(0,AO.default)(n,["paths"])||{};Object.keys(i).forEach((s=>{const a=(0,AO.default)(i,[s]);(0,Fs.default)(a)&&a.$ref&&t.requestResolvedSubtree(["paths",s])})),t.requestResolvedSubtree(["components","securitySchemes"])},rwe=(e,{specActions:t})=>r=>(t.logRequest(r),e(r)),nwe=(e,{specSelectors:t})=>r=>e(r,t.isOAS3());var Fz=()=>({statePlugins:{spec:{wrapActions:{...mO},reducers:{...Q1e},actions:{...hO},selectors:{...dO}}}}),XB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return F9}}),ZB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return B9}}),QB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return U9}}),e6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Hhe}}),iwe=(function(e){var t={};return Ee.d(t,e),t})({makeResolve:function(){return T7}}),t6=(function(e){var t={};return Ee.d(t,e),t})({buildRequest:function(){return L7},execute:function(){return age}}),gx=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Bc},makeHttp:function(){return que},serializeRes:function(){return M9}}),swe=(function(e){var t={};return Ee.d(t,e),t})({makeResolveSubtree:function(){return pge}}),$z=(function(e){var t={};return Ee.d(t,e),t})({opId:function(){return Xh}});const awe=(e,t)=>(...r)=>{e(...r);const n=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=n};function Lz({configs:e,getConfigs:t}){return{fn:{fetch:(0,gx.makeHttp)(gx.default,e.preFetch,e.postFetch),buildRequest:t6.buildRequest,execute:t6.execute,resolve:(0,iwe.makeResolve)({strategies:[e6.default,QB.default,ZB.default,XB.default]}),resolveSubtree:async(r,n,i={})=>{const s=t(),a={modelPropertyMacro:s.modelPropertyMacro,parameterMacro:s.parameterMacro,requestInterceptor:s.requestInterceptor,responseInterceptor:s.responseInterceptor,strategies:[e6.default,QB.default,ZB.default,XB.default]};return(0,swe.makeResolveSubtree)(a)(r,n,i)},serializeRes:gx.serializeRes,opId:$z.opId},statePlugins:{configs:{wrapActions:{loaded:awe}}}}}function Bz(){return{fn:{shallowEqualKeys:U_e,sanitizeUrl:wr}}}var Uz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return cH.default}}),Vz=(function(e){var t={};return Ee.d(t,e),t})({Provider:function(){return aye},connect:function(){return iye}}),zz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return uye}});const owe=e=>t=>{const{fn:r}=e();class n extends p.Component{render(){return p.default.createElement(t,(0,Pt.default)({},e(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(t)})`,n},uwe=(e,t)=>r=>{const{fn:n}=e();class i extends p.Component{render(){return p.default.createElement(Vz.Provider,{store:t},p.default.createElement(r,(0,Pt.default)({},this.props,this.context)))}}return i.displayName=`WithRoot(${n.getDisplayName(r)})`,i},r6=(e,t,r)=>(0,hc.compose)(r?uwe(e,r):zz.default,(0,Vz.connect)(((n,i)=>{var o;const s={...i,...e()};return(((o=t.prototype)==null?void 0:o.mapStateToProps)||(u=>({state:u})))(n,s)})),owe(e))(t),n6=(e,t,r,n)=>{for(const i in t){const s=t[i];typeof s=="function"&&s(r[i],n[i],e())}},cwe=(e,t,r)=>(n,i)=>{const{fn:s}=e(),a=r(n,"root");class o extends p.Component{constructor(c,l){super(c,l),n6(e,i,c,{})}UNSAFE_componentWillReceiveProps(c){n6(e,i,c,this.props)}render(){const c=(0,UR.default)(this.props,i?Object.keys(i):[]);return p.default.createElement(a,c)}}return o.displayName=`WithMappedContainer(${s.getDisplayName(a)})`,o},lwe=(e,t,r,n)=>i=>{const s=r(e,t,n)("App","root"),{createRoot:a}=Uz.default;a(i).render(p.default.createElement(s,null))},PO=(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"?r6(e,a,t()):r6(e,a):a:(s.failSilently||e().log.warn("Could not find component:",n),null)},fwe=e=>e.displayName||e.name||"Component";var Wz=({getComponents:e,getStore:t,getSystem:r})=>{const n=(i=PO(r,t,e),L_e(i,((...a)=>JSON.stringify(a))));var i;const s=(a=>Rf(a,((...o)=>o)))(cwe(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:s,render:lwe(r,t,PO,e)},fn:{getDisplayName:fwe}}},Jz=({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");Uz.default.render(p.default.createElement(f,null),l)})(t,r,PO,n)),{rootInjects:i}};function Hz(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 sr?g=new URL(i):(g=document.createElement("a"),g.href=i),g.protocol!=="https:"&&sr.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!==sr.location.origin){const y=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${sr.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,ut.createSelector)((i=>i||(0,K.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 Ts=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return aV}}),i6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return $ye}}),pwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Uye}}),dwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Wye}}),hwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Kye}}),mwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Xye}}),gwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return eve}}),ywe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return nve}}),vwe=()=>{Ts.default.registerLanguage("json",pwe.default),Ts.default.registerLanguage("js",i6.default),Ts.default.registerLanguage("xml",dwe.default),Ts.default.registerLanguage("yaml",mwe.default),Ts.default.registerLanguage("http",gwe.default),Ts.default.registerLanguage("bash",hwe.default),Ts.default.registerLanguage("powershell",ywe.default),Ts.default.registerLanguage("javascript",i6.default)},Kz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ive}}),bwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return sve}}),_we=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ave}}),Ewe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ove}}),Swe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return uve}}),wwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return cve}}),xwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return lve}});const Awe={agate:Kz.default,arta:bwe.default,monokai:_we.default,nord:Ewe.default,obsidian:Swe.default,"tomorrow-night":wwe.default,idea:xwe.default},Owe=Kz.default;var Cwe=({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(Ts.default,{language:e,className:t,style:u},i)},Rwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return dve}}),Twe=({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(Lm.CopyToClipboard,{text:a},p.default.createElement("button",null))),r?p.default.createElement("button",{className:"download-contents",onClick:()=>{(0,Rwe.default)(a,e)}},"Download"):null,p.default.createElement(u,{language:s,className:(0,kt.default)(t,"microlight"),renderPlainText:({children:l,PlainTextViewer:f})=>p.default.createElement(f,{className:t},l)},a))},Iwe=({className:e="",children:t})=>p.default.createElement("pre",{className:(0,kt.default)("microlight",e)},t),jwe=(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 Pwe=()=>({afterLoad:vwe,rootInjects:{syntaxHighlighting:{styles:Awe,defaultStyle:Owe}},components:{SyntaxHighlighter:Cwe,HighlightCode:Twe,PlainTextViewer:Iwe}}),kwe=()=>({wrapComponents:{SyntaxHighlighter:jwe}});var Gz=()=>[Pwe,kwe],Nwe=()=>{const{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.29.2",GIT_COMMIT:"g9124f59b",GIT_DIRTY:!0,BUILD_TIME:"Fri, 03 Oct 2025 09:39:12 GMT"};sr.versions=sr.versions||{},sr.versions.swaggerUI={version:r,gitRevision:t,gitDirty:e,buildTimestamp:n}},Yz=()=>({afterLoad:Nwe}),Mwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return yve}});const Xz=console.error,Dwe=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,Pt.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 Zz=({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 Qz 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}}X(Qz,"defaultProps",{targetName:"this component",getComponent:()=>Zz,fn:{componentDidCatch:Xz},children:null});var qwe=Qz,eW=({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,Mwe.default)(n,Array(n.length).fill(((s,{fn:a})=>a.withErrorBoundary(s))));return{fn:{componentDidCatch:Xz,withErrorBoundary:Dwe(r)},components:{ErrorBoundary:qwe,Fallback:Zz},wrapComponents:i}};class Fwe 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 $we=Fwe;class Lwe extends p.default.Component{constructor(){super(...arguments);X(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 Bwe 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 Uwe 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 Vwe extends p.default.Component{constructor(){super(...arguments);X(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 zwe extends p.default.Component{constructor(r,n){super(r,n);X(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});X(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});X(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)});X(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 Wwe 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 Jwe 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 Hwe extends p.default.Component{constructor(r,n){super(r,n);X(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,_)=>p.default.createElement(l,{error:v,key:_}))))}}class Kwe extends p.default.Component{constructor(r,n){super(r,n);X(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,_)=>p.default.createElement(l,{error:v,key:_}))))}}function Gwe(e){const{example:t,showValue:r,getComponent:n}=e,i=n("Markdown",!0),s=n("HighlightCode",!0);return t&&K.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,rn(t.get("value")))):null):null}class tW extends p.default.PureComponent{constructor(){super(...arguments);X(this,"_onSelect",(r,{isSyntheticChange:n=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(r,{isSyntheticChange:n})});X(this,"_onDomSelect",r=>{if(typeof this.props.onSelect=="function"){const n=r.target.selectedOptions[0].getAttribute("value");this._onSelect(n,{isSyntheticChange:!1})}});X(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,K.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},K.Map.isMap(o)&&o.get("summary")||u))).valueSeq()))}}X(tW,"defaultProps",{examples:(0,K.Map)({}),onSelect:(...r)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...r),currentExampleKey:null,showLabels:!0});const yx=e=>K.List.isList(e)?e:rn(e);class rW extends p.default.PureComponent{constructor(r){super(r);X(this,"_getStateForCurrentNamespace",()=>{const{currentNamespace:r}=this.props;return(this.state[r]||(0,K.Map)()).toObject()});X(this,"_setStateForCurrentNamespace",r=>{const{currentNamespace:n}=this.props;return this._setStateForNamespace(n,r)});X(this,"_setStateForNamespace",(r,n)=>{const i=(this.state[r]||(0,K.Map)()).mergeDeep(n);return this.setState({[r]:i})});X(this,"_isCurrentUserInputSameAsExampleValue",()=>{const{currentUserInputValue:r}=this.props;return this._getCurrentExampleValue()===r});X(this,"_getValueForExample",(r,n)=>{const{examples:i}=n||this.props;return yx((i||(0,K.Map)({})).getIn([r,"value"]))});X(this,"_getCurrentExampleValue",r=>{const{currentKey:n}=r||this.props;return this._getValueForExample(n,r||this.props)});X(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(yx(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(yx(l))});const n=this._getCurrentExampleValue();this.state={[r.currentNamespace]:(0,K.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=>K.Map.isMap(f)&&(f.get("value")===n||rn(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})}}X(rW,"defaultProps",{userHasEditedBody:!1,examples:(0,K.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 Ywe({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:K.default.List.isList(o)&&(d=o.toArray()),d.length>0){let w=i.scopeSeparator||" ";f.push("scope="+encodeURIComponent(d.join(w)))}let g=Cf(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 w=(function(){return MB(Jo()(32).toString("base64"))})(),E=(function(R){return MB(F_e()("sha256").update(R).digest("base64"))})(w);f.push("code_challenge="+E),f.push("code_challenge_method=S256"),e.codeVerifier=w}let{additionalQueryStringParams:y}=i;for(let w in y)y[w]!==void 0&&f.push([w,y[w]].map(encodeURIComponent).join("="));const v=a.get("authorizationUrl");let _;_=s?(0,Kc.default)(wr(v),s,!0).toString():wr(v);let b,S=[_,f.join("&")].join(typeof v!="string"||v.includes("?")?"&":"?");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 Xwe extends p.default.Component{constructor(r,n){super(r,n);X(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});X(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"}),Ywe({auth:this.state,currentServer:a.serverEffectiveValue(a.selectedServer()),authActions:r,errActions:n,configs:o,authConfigs:u})});X(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))})});X(this,"onInputChange",r=>{let{target:{dataset:{name:n},value:i}}=r,s={[n]:i};this.setState(s)});X(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:[]})});X(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 _=v()?r.get("openIdConnectUrl"):null;const b="implicit",S="password",w=v()?_?"authorization_code":"authorizationCode":"accessCode",E=v()?_?"client_credentials":"clientCredentials":"application",A=i.selectAuthPath(a);let R=!!(i.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,I=r.get("flow"),O=I===w&&R?I+" with PKCE":I,D=r.get("allowedScopes")||r.get("scopes"),P=!!i.authorized().get(a),F=s.allErrors().filter((ee=>ee.get("authId")===a)),M=!F.filter((ee=>ee.get("source")==="validation")).size,G=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,G&&p.default.createElement(g,{source:r.get("description")}),P&&p.default.createElement("h6",null,"Authorized"),_&&p.default.createElement("p",null,"OpenID Connect URL: ",p.default.createElement("code",null,_)),(I===b||I===w)&&p.default.createElement("p",null,"Authorization URL: ",p.default.createElement("code",null,r.get("authorizationUrl"))),(I===S||I===w||I===E)&&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)),I!==S?null:p.default.createElement(c,null,p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"oauth_username"},"username:"),P?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:"),P?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:"),P?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"))))),(I===E||I===b||I===w||I===S)&&(!P||P&&this.state.clientId)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_id_${I}`},"client_id:"),P?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_id_${I}`,type:"text",required:I===S,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(I===E||I===w||I===S)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_secret_${I}`},"client_secret:"),P?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_secret_${I}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!P&&D&&D.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")),D.map(((ee,H)=>p.default.createElement(c,{key:H},p.default.createElement("div",{className:"checkbox"},p.default.createElement(u,{"data-value":H,id:`${H}-${I}-checkbox-${this.state.name}`,disabled:P,checked:this.state.scopes.includes(H),type:"checkbox",onChange:this.onScopeChange}),p.default.createElement("label",{htmlFor:`${H}-${I}-checkbox-${this.state.name}`},p.default.createElement("span",{className:"item"}),p.default.createElement("div",{className:"text"},p.default.createElement("p",{className:"name"},H),p.default.createElement("p",{className:"description"},ee))))))).toArray()):null,F.valueSeq().map(((ee,H)=>p.default.createElement(h,{error:ee,key:H}))),p.default.createElement("div",{className:"auth-btn-wrapper"},M&&(P?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 Zwe extends p.Component{constructor(){super(...arguments);X(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 Qwe=({headers:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Response headers"),p.default.createElement("pre",{className:"microlight"},e)),exe=({duration:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Request duration"),p.default.createElement("pre",{className:"microlight"},e," ms"));class txe 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"),_=t.get("duration"),b=Object.keys(d),S=d["content-type"]||d["Content-Type"],w=r("responseBody"),E=b.map((D=>{var P=Array.isArray(d[D])?d[D].join():d[D];return p.default.createElement("span",{className:"headerline",key:D}," ",D,": ",P," ")})),A=E.length!==0,R=r("Markdown",!0),I=r("RequestSnippets",!0),O=r("curl",!0);return p.default.createElement("div",null,l&&c?p.default.createElement(I,{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(R,{source:`${t.get("name")!==""?`${t.get("name")}: `:""}${t.get("message")}`}):null,v?p.default.createElement(w,{content:v,contentType:S,url:h,headers:d,getConfigs:n,getComponent:r}):null,A?p.default.createElement(Qwe,{headers:E}):null,i&&_?p.default.createElement(exe,{duration:_}):null)))))}}class nW extends p.default.Component{constructor(r,n){super(r,n);X(this,"getDefinitionUrl",()=>{let{specSelectors:r}=this.props;return new Kc.default(r.url(),sr.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=wr(this.state.validatorUrl);return typeof n=="object"&&Object.keys(n).length?null:this.state.url&&NB(this.state.validatorUrl)&&NB(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(rxe,{src:`${i}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class rxe 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 nxe extends p.default.Component{constructor(){super(...arguments);X(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"),_=K.default.List(["paths",y,v]);return l.indexOf(v)===-1?null:p.default.createElement(f,{key:`${y}-${v}`,specPath:_,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 iW 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"),_=u("ArrowDownIcon");let b,S=t.getIn(["tagDetails","description"],null),w=t.getIn(["tagDetails","externalDocs","description"]),E=t.getIn(["tagDetails","externalDocs","url"]);b=qs(i)&&qs(i.selectedServer)?Vi(E,c,{selectedServer:i.selectedServer()}):E;let A=["operations-tag",r],R=s.isShown(A,l==="full"||l==="list");return p.default.createElement("div",{className:R?"opblock-tag-section is-open":"opblock-tag-section"},p.default.createElement("h3",{onClick:()=>a.show(A,!R),className:S?"opblock-tag":"opblock-tag no-desc",id:A.map((I=>kV(I))).join("-"),"data-tag":r,"data-is-open":R},p.default.createElement(g,{enabled:f,isShown:R,path:Hc(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:wr(b),onClick:I=>I.stopPropagation(),target:"_blank"},w||b))):null,p.default.createElement("button",{"aria-expanded":R,className:"expand-operation",title:R?"Collapse operation":"Expand operation",onClick:()=>a.show(A,!R)},R?p.default.createElement(v,{className:"arrow"}):p.default.createElement(_,{className:"arrow"}))),p.default.createElement(h,{isOpened:R},n))}}X(iW,"defaultProps",{tagObj:K.default.fromJS({}),tag:""});class sW 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:_}=this.props,b=this.props.operation,{deprecated:S,isShown:w,path:E,method:A,op:R,tag:I,operationId:O,allowTryItOut:D,displayRequestDuration:P,tryItOutEnabled:F,executeInProgress:M}=b.toJS(),{description:G,externalDocs:ee,schemes:H}=R;const Q=ee?Vi(ee.url,d.url(),{selectedServer:_.selectedServer()}):"";let re=b.getIn(["op"]),ne=re.get("responses"),B=(function(T,k){if(!K.default.Iterable.isIterable(T))return K.default.List();let W=T.getIn(Array.isArray(k)?k:[k]);return K.default.List.isList(W)?W:K.default.List()})(re,["parameters"]),J=d.operationScheme(E,A),ie=["operations",I,O],oe=ka(re);const ce=l("responses"),te=l("parameters"),z=l("execute"),V=l("clear"),fe=l("Collapse"),me=l("Markdown",!0),Ce=l("schemes"),Ne=l("OperationServers"),he=l("OperationExt"),je=l("OperationSummary"),Be=l("Link"),{showExtensions:_e}=f();if(ne&&r&&r.size>0){let U=!ne.get(String(r.get("status")))&&!ne.get("default");r=r.set("notDocumented",U)}let we=[E,A];const Ae=d.validationErrors([E,A]);return p.default.createElement("div",{className:S?"opblock opblock-deprecated":w?`opblock opblock-${A} is-open`:`opblock opblock-${A}`,id:kV(ie.join("-"))},p.default.createElement(je,{operationProps:b,isShown:w,toggleShown:i,getComponent:l,authActions:g,authSelectors:y,specPath:t}),p.default.createElement(fe,{isOpened:w},p.default.createElement("div",{className:"opblock-body"},re&&re.size||re===null?null:p.default.createElement(QV,{height:"32px",width:"32px",className:"opblock-loading-animation"}),S&&p.default.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),G&&p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("div",{className:"opblock-description"},p.default.createElement(me,{source:G}))),Q?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"},ee.description&&p.default.createElement("span",{className:"opblock-external-docs__description"},p.default.createElement(me,{source:ee.description})),p.default.createElement(Be,{target:"_blank",className:"opblock-external-docs__link",href:wr(Q)},Q))):null,re&&re.size?p.default.createElement(te,{parameters:B,specPath:t.push("parameters"),operation:re,onChangeKey:we,onTryoutClick:s,onResetClick:a,onCancelClick:o,tryItOutEnabled:F,allowTryItOut:D,fn:c,getComponent:l,specActions:h,specSelectors:d,pathMethod:[E,A],getConfigs:f,oas3Actions:v,oas3Selectors:_}):null,F?p.default.createElement(Ne,{getComponent:l,path:E,method:A,operationServers:re.get("servers"),pathServers:d.paths().getIn([E,"servers"]),getSelectedServer:_.selectedServer,setSelectedServer:v.setSelectedServer,setServerVariableValue:v.setServerVariableValue,getServerVariable:_.serverVariableValue,getEffectiveServerValue:_.serverEffectiveValue}):null,F&&D&&H&&H.size?p.default.createElement("div",{className:"opblock-schemes"},p.default.createElement(Ce,{schemes:H,path:E,method:A,specActions:h,currentScheme:J})):null,!F||!D||Ae.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,Ae.map(((U,T)=>p.default.createElement("li",{key:T}," ",U," "))))),p.default.createElement("div",{className:F&&r&&D?"btn-group":"execute-wrapper"},F&&D?p.default.createElement(z,{operation:re,specActions:h,specSelectors:d,oas3Selectors:_,oas3Actions:v,path:E,method:A,onExecute:u,disabled:M}):null,F&&r&&D?p.default.createElement(V,{specActions:h,path:E,method:A}):null),M?p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})):null,ne?p.default.createElement(ce,{responses:ne,request:n,tryItOutResponse:r,getComponent:l,getConfigs:f,specSelectors:d,oas3Actions:v,oas3Selectors:_,specActions:h,produces:d.producesOptionsFor([E,A]),producesValue:d.currentProducesFor([E,A]),specPath:t.push("responses"),path:E,method:A,displayRequestDuration:P,fn:c}):null,_e&&oe.size?p.default.createElement(he,{extensions:oe,getComponent:l}):null)))}}X(sW,"defaultProps",{operation:null,response:null,request:null,specPath:(0,K.List)(),summary:""});class aW extends p.PureComponent{constructor(r,n){super(r,n);X(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)});X(this,"onCancelClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});X(this,"onTryoutClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});X(this,"onResetClick",r=>{const n=this.props.oas3Selectors.selectDefaultRequestBodyValue(...r),i=this.props.oas3Selectors.requestContentType(...r);if(i==="application/x-www-form-urlencoded"||i==="multipart/form-data"){const s=JSON.parse(n);Object.entries(s).forEach((([a,o])=>{Array.isArray(o)?s[a]=s[a].map((u=>typeof u=="object"?JSON.stringify(u,null,2):u)):typeof o=="object"&&(s[a]=JSON.stringify(s[a],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,K.fromJS)(s),pathMethod:r})}else this.props.oas3Actions.setRequestBodyValue({value:n,pathMethod:r})});X(this,"onExecute",()=>{this.setState({executeInProgress:!0})});X(this,"getResolvedSubtree",()=>{const{specSelectors:r,path:n,method:i,specPath:s}=this.props;return s?r.specResolvedSubtree(s.toJS()):r.specResolvedSubtree(["paths",n,i])});X(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,$z.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:_,specPath:b,specSelectors:S,specActions:w,getComponent:E,getConfigs:A,layoutSelectors:R,layoutActions:I,authActions:O,authSelectors:D,oas3Actions:P,oas3Selectors:F,fn:M}=this.props;const G=E("operation"),ee=this.getResolvedSubtree()||(0,K.Map)(),H=(0,K.fromJS)({op:ee,tag:n,path:i,summary:r.getIn(["operation","summary"])||"",deprecated:ee.get("deprecated")||r.getIn(["operation","deprecated"])||!1,method:s,security:a,isAuthorized:o,operationId:u,originalOperationId:ee.getIn(["operation","__originalOperationId"]),showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:_,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return p.default.createElement(G,{operation:H,response:d,request:g,isShown:l,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:b,specActions:w,specSelectors:S,oas3Actions:P,oas3Selectors:F,layoutActions:I,layoutSelectors:R,authActions:O,authSelectors:D,getComponent:E,getConfigs:A,fn:M})}}X(aW,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});var ixe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return bve}});class oW 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:_}=f,b=a.get("security");const S=n("authorizeOperationBtn",!0),w=n("OperationSummaryMethod"),E=n("OperationSummaryPath"),A=n("JumpToPath",!0),R=n("CopyToClipboardBtn",!0),I=n("ArrowUpIcon"),O=n("ArrowDownIcon"),D=b&&!!b.count(),P=D&&b.size===1&&b.first().isEmpty(),F=!D||P;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(w,{method:l}),p.default.createElement("div",{className:"opblock-summary-path-description-wrapper"},p.default.createElement(E,{getComponent:n,operationProps:a,specPath:o}),h?p.default.createElement("div",{className:"opblock-summary-description"},(0,ixe.default)(_||u)):null),v&&(y||g)?p.default.createElement("span",{className:"opblock-summary-operation-id"},y||g):null),p.default.createElement(R,{textToCopy:`${o.get(1)}`}),F?null:p.default.createElement(S,{isAuthorized:c,onClick:()=>{const M=s.definitionsForRequirements(b);i.showDefinitions(M)}}),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(I,{className:"arrow"}):p.default.createElement(O,{className:"arrow"})))}}X(oW,"defaultProps",{operationProps:null,specPath:(0,K.List)(),summary:""});class uW extends p.PureComponent{render(){let{method:t}=this.props;return p.default.createElement("span",{className:"opblock-summary-method"},t.toUpperCase())}}X(uW,"defaultProps",{operationProps:null});class sxe 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:Hc(`${a}/${o}`),text:c}))}}var axe=({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})))))))},oxe=({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 mT(e,t="_"){return e.replace(/[^\w-]/g,t)}const oh=class oh extends p.default.Component{constructor(){super(...arguments);X(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r));X(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(I){let O=I.keySeq();return O.contains(jB)?jB:O.filter((D=>(D+"")[0]==="2")).sort().first()})(r);const v=i("contentType"),_=i("liveResponse"),b=i("response");let S=this.props.produces&&this.props.produces.size?this.props.produces:oh.defaultProps.produces;const w=a.isOAS3()?(function(I){if(!K.default.OrderedMap.isOrderedMap(I)||!I.size)return null;const O=I.find(((F,M)=>M.startsWith("2")&&Object.keys(F.get("content")||{}).length>0)),D=I.get("default")||K.default.OrderedMap(),P=(D.get("content")||K.default.OrderedMap()).keySeq().toJS().length?D:null;return O||P})(r):null,E=mT(`${h}${f}_responses`),A=`${E}_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:E,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(_,{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:E,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((([R,I])=>{let O=n&&n.get("status")==R?"response_current":"";return p.default.createElement(b,{key:R,path:f,method:h,specPath:l.push(R),isDefault:y===R,fn:o,className:O,code:R,response:I,specSelectors:a,controlsAcceptHeader:I===w,onContentTypeChange:this.onResponseContentTypeChange,contentType:u,getConfigs:s,activeExamplesKey:d.activeExamplesMember(f,h,"responses",R),oas3Actions:g,getComponent:i})})).toArray()))))}};X(oh,"defaultProps",{tryItOutResponse:null,produces:(0,K.fromJS)(["application/json"]),displayRequestDuration:!1});let kO=oh;function Wm(e){return(function(r){try{return!!JSON.parse(r)}catch{return null}})(e)?"json":null}var Ox;let uxe=(Ox=class extends p.default.Component{constructor(r,n){super(r,n);X(this,"_onContentTypeChange",r=>{const{onContentTypeChange:n,controlsAcceptHeader:i}=this.props;this.setState({responseContentType:r}),n({value:r,controlsAcceptHeader:i})});X(this,"getTargetExamplesKey",()=>{const{response:r,contentType:n,activeExamplesKey:i}=this.props,s=this.state.responseContentType||n,a=r.getIn(["content",s],(0,K.Map)({})).get("examples",null).keySeq().first();return i||a});this.state={responseContentType:""}}render(){var te;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,_=f.isOAS3();const{showExtensions:b}=l();let S=b?ka(s):null,w=s.get("headers"),E=s.get("links");const A=c("ResponseExtension"),R=c("headers"),I=c("HighlightCode",!0),O=c("modelExample"),D=c("Markdown",!0),P=c("operationLink"),F=c("contentType"),M=c("ExamplesSelect"),G=c("Example");var ee,H;const Q=this.state.responseContentType||h,re=s.getIn(["content",Q],(0,K.Map)({})),ne=re.get("examples",null);if(_){const z=re.get("schema");ee=z?y(z.toJS()):null,H=z?(0,K.List)(["content",this.state.responseContentType,"schema"]):o}else ee=s.get("schema"),H=s.has("schema")?o.push("schema"):o;let B,J,ie=!1,oe={includeReadOnly:!0};if(_)if(J=(te=re.get("schema"))==null?void 0:te.toJS(),K.Map.isMap(ne)&&!ne.isEmpty()){const z=this.getTargetExamplesKey(),V=fe=>K.Map.isMap(fe)?fe.get("value"):void 0;B=V(ne.get(z,(0,K.Map)({}))),B===void 0&&(B=V(ne.values().next().value)),ie=!0}else re.get("example")!==void 0&&(B=re.get("example"),ie=!0);else{J=ee,oe={...oe,includeWriteOnly:!0};const z=s.getIn(["examples",Q]);z&&(B=z,ie=!0)}const ce=((z,V)=>{if(z==null)return null;const fe=Wm(z)?"json":null;return p.default.createElement("div",null,p.default.createElement(V,{className:"example",language:fe},rn(z)))})(v(J,Q,oe,ie?B:void 0),I);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(D,{source:s.get("description")})),b&&S.size?S.entrySeq().map((([z,V])=>p.default.createElement(A,{key:`${z}-${V}`,xKey:z,xVal:V}))):null,_&&s.get("content")?p.default.createElement("section",{className:"response-controls"},p.default.createElement("div",{className:(0,kt.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(F,{value:this.state.responseContentType,contentTypes:s.get("content")?s.get("content").keySeq():(0,K.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),K.Map.isMap(ne)&&!ne.isEmpty()?p.default.createElement("div",{className:"response-control-examples"},p.default.createElement("small",{className:"response-control-examples__title"},"Examples"),p.default.createElement(M,{examples:ne,currentExampleKey:this.getTargetExamplesKey(),onSelect:z=>g.setActiveExamplesMember({name:z,pathMethod:[r,n],contextType:"responses",contextName:i}),showLabels:!1})):null):null,ce||ee?p.default.createElement(O,{specPath:H,getComponent:c,getConfigs:l,specSelectors:f,schema:ns(ee),example:ce,includeReadOnly:!0}):null,_&&ne?p.default.createElement(G,{example:ne.get(this.getTargetExamplesKey(),(0,K.Map)({})),getComponent:c,getConfigs:l,omitValue:!0}):null,w?p.default.createElement(R,{headers:w,getComponent:c}):null),_?p.default.createElement("td",{className:"response-col_links"},E?E.toSeq().entrySeq().map((([z,V])=>p.default.createElement(P,{key:z,name:z,link:V,getComponent:c}))):p.default.createElement("i",null,"No links")):null)}},X(Ox,"defaultProps",{response:(0,K.fromJS)({}),onContentTypeChange:()=>{}}),Ox);var cxe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"response__extension"},e,": ",String(t)),lxe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return wve}}),s6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Ove}});class fxe extends p.default.PureComponent{constructor(){super(...arguments);X(this,"state",{parsedContent:null});X(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 _=(function(S){let w;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((E=>(w=E.exec(S),w!==null))),w!==null&&w.length>1)try{return decodeURIComponent(w[1])}catch(E){console.error(E)}return null})(v);_!==null&&(y=_)}f=sr.navigator&&sr.navigator.msSaveOrOpenBlob?p.default.createElement("div",null,p.default.createElement("a",{href:g,onClick:()=>sr.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;Wm(r)&&(h="json");try{l=JSON.stringify(JSON.parse(r),null," ")}catch{l=`can't parse JSON. Raw result:
|
|
337
|
-
|
|
338
|
-
`+r}f=p.default.createElement(u,{language:h,downloadable:!0,fileName:`${c}.json`,canCopy:!0},l)}else/xml/i.test(n)?(l=(0,lxe.default)(r,{textNodesOnSameLine:!0,indentor:" "}),f=p.default.createElement(u,{downloadable:!0,fileName:`${c}.xml`,canCopy:!0},l)):f=(0,s6.default)(n)==="text/html"||/text\/plain/.test(n)?p.default.createElement(u,{downloadable:!0,fileName:`${c}.html`,canCopy:!0},r):(0,s6.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 cW extends p.Component{constructor(r){super(r);X(this,"onChange",(r,n,i)=>{let{specActions:{changeParamByIdentity:s},onChangeKey:a}=this.props;s(a,r,n,i)});X(this,"onChangeConsumesWrapper",r=>{let{specActions:{changeConsumesValue:n},onChangeKey:i}=this.props;n(i,r)});X(this,"toggleTab",r=>r==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):r==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0);X(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 _=c("parameterRow"),b=c("TryItOutButton"),S=c("contentType"),w=c("Callbacks",!0),E=c("RequestBody",!0),A=a&&s,R=f.isOAS3(),I=`${mT(`${d[1]}${d[0]}_requests`)}_select`,O=v.get("requestBody"),D=Object.values(i.reduce(((P,F)=>{if(K.Map.isMap(F)){const M=F.get("in");P[M]??(P[M]=[]),P[M].push(F)}return P}),{})).reduce(((P,F)=>P.concat(F)),[]);return p.default.createElement("div",{className:"opblock-section"},p.default.createElement("div",{className:"opblock-section-header"},R?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"},D.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,D.map(((P,F)=>p.default.createElement(_,{fn:u,specPath:o.push(F.toString()),getComponent:c,getConfigs:l,rawParam:P,param:f.parameterWithMetaByIdentity(d,P),key:`${P.get("in")}.${P.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(w,{callbacks:(0,K.Map)(v.get("callbacks")),specPath:o.slice(0,-1).push("callbacks")})):null,R&&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:I},p.default.createElement(S,{value:y.requestContentType(...d),contentTypes:O.get("content",(0,K.List)()).keySeq(),onChange:P=>{this.onChangeMediaType({value:P,pathMethod:d})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:I}))),p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement(E,{setRetainRequestBodyValueFlag:P=>g.setRetainRequestBodyValueFlag({value:P,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:P=>{this.props.oas3Actions.setActiveExamplesMember({name:P,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(P,F)=>{if(F){const M=y.requestBodyValue(...d),G=K.Map.isMap(M)?M:(0,K.Map)();return g.setRequestBodyValue({pathMethod:d,value:G.setIn(F,P)})}g.setRequestBodyValue({value:P,pathMethod:d})},onChangeIncludeEmpty:(P,F)=>{g.setRequestBodyInclusion({pathMethod:d,value:F,name:P})},contentType:y.requestContentType(...d)}))))}}X(cW,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});var pxe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"parameter__extension"},e,": ",String(t));const dxe={onChange:()=>{},isIncludedOptions:{}};class lW extends p.Component{constructor(){super(...arguments);X(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,kt.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"))}}X(lW,"defaultProps",dxe);class hxe extends p.Component{constructor(r,n){super(r,n);X(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)});X(this,"_onExampleSelect",r=>{this.props.oas3Actions.setActiveExamplesMember({name:r,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})});X(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)});X(this,"setDefaultValue",()=>{let{specSelectors:r,pathMethod:n,rawParam:i,oas3Selectors:s,fn:a}=this.props;const o=r.parameterWithMetaByIdentity(n,i)||(0,K.Map)();let{schema:u}=qp(o,{isOAS3:r.isOAS3()});const c=o.get("content",(0,K.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||K.List.isList(f)||(f=rn(f));const h=a.getSchemaObjectType(u),d=a.getSchemaObjectType(u==null?void 0:u.get("items"));f!==void 0?this.onChangeWrapper(f):h==="object"&&l&&!o.get("examples")?this.onChangeWrapper(K.List.isList(l)?l:rn(l)):h==="array"&&d==="object"&&l&&!o.get("examples")&&this.onChangeWrapper(K.List.isList(l)?l:(0,K.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 K.Map;if(u=u.isEmpty()?a:u,o){let{schema:f}=qp(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,K.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"),_=i("ParamBody");let b=r.get("in"),S=b!=="body"?null:p.default.createElement(_,{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 w=i("modelExample"),E=i("Markdown",!0),A=i("ParameterExt"),R=i("ParameterIncludeEmpty"),I=i("ExamplesSelectValueRetainer"),O=i("Example");let{schema:D}=qp(r,{isOAS3:d}),P=c.parameterWithMetaByIdentity(l,n)||(0,K.Map)();d&&(D=this.composeJsonSchema(D));let F=D?D.get("format"):null,M=b==="formData",G="FormData"in sr,ee=r.get("required");const H=o.getSchemaObjectType(D),Q=o.getSchemaObjectType(D==null?void 0:D.get("items")),re=o.getSchemaObjectTypeLabel(D),ne=!S&&H==="object",B=!S&&Q==="object";let J,ie,oe,ce,te=P?P.get("value"):"",z=y?NV(D):null,V=g?ka(r):null,fe=!1;r!==void 0&&D&&(J=D.get("items")),J!==void 0?(ie=J.get("enum"),oe=J.get("default")):D&&(ie=D.get("enum")),ie&&ie.size&&ie.size>0&&(fe=!0),r!==void 0&&(D&&(oe=D.get("default")),oe===void 0&&(oe=r.get("default")),ce=r.get("example"),ce===void 0&&(ce=r.get("x-example")));const me=S?null:p.default.createElement(v,{fn:o,getComponent:i,value:te,required:ee,disabled:!a,description:r.get("name"),onChange:this.onChangeWrapper,errors:P.get("errors"),schema:D});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:ee?"parameter__name required":"parameter__name"},r.get("name"),ee?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},re,F&&p.default.createElement("span",{className:"prop-format"},"($",F,")")),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(E,{source:r.get("description")}):null,!S&&a||!fe?null:p.default.createElement(E,{className:"parameter__enum",source:"<i>Available values</i> : "+ie.map((function(Ce){return Ce})).toArray().map(String).join(", ")}),!S&&a||oe===void 0?null:p.default.createElement(E,{className:"parameter__default",source:"<i>Default value</i> : "+oe}),!S&&a||ce===void 0?null:p.default.createElement(E,{source:"<i>Example</i> : "+ce}),M&&!G&&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(I,{examples:r.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:i,defaultToFirstExample:!0,currentKey:h.activeExamplesMember(...l,"parameters",this.getParamKey()),currentUserInputValue:te})):null,ne||B?p.default.createElement(w,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:D,example:me}):me,S&&D?p.default.createElement(w,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:D,example:S,includeWriteOnly:!0}):null,!S&&a&&r.get("allowEmptyValue")?p.default.createElement(R,{onChange:this.onChangeIncludeEmpty,isIncluded:c.parameterInclusionSettingFor(l,r.get("name"),r.get("in")),isDisabled:!MR(te)}):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&&z.size?z.entrySeq().map((([Ce,Ne])=>p.default.createElement(A,{key:`${Ce}-${Ne}`,xKey:Ce,xVal:Ne}))):null,g&&V.size?V.entrySeq().map((([Ce,Ne])=>p.default.createElement(A,{key:`${Ce}-${Ne}`,xKey:Ce,xVal:Ne}))):null))}}class mxe extends p.Component{constructor(){super(...arguments);X(this,"handleValidateParameters",()=>{let{specSelectors:r,specActions:n,path:i,method:s}=this.props;return n.validateParams([i,s]),r.validateBeforeExecute([i,s])});X(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)});X(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})});X(this,"handleValidationResultFail",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearValidateParams([n,i]),setTimeout((()=>{r.validateParams([n,i])}),40)});X(this,"handleValidationResult",r=>{r?this.handleValidationResultPass():this.handleValidationResultFail()});X(this,"onClick",()=>{let r=this.handleValidateParameters(),n=this.handleValidateRequestBody(),i=r&&n;this.handleValidationResult(i)});X(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 gxe 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(!K.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 yxe 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(vxe,{key:h,error:f.get("error")||f,jumpToLine:o}):d==="spec"?p.default.createElement(bxe,{key:h,error:f,jumpToLine:o}):void 0})))))}}const vxe=({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")?fW(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)},bxe=({error:e,jumpToLine:t=null})=>{let r=null;return e.get("path")?r=K.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,fW(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 fW(e){return(e||"").split(" ").map((t=>t[0].toUpperCase()+t.slice(1))).join(" ")}const _xe=()=>{};class pW extends p.default.Component{constructor(){super(...arguments);X(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}}X(pW,"defaultProps",{onChange:_xe,value:null,contentTypes:(0,K.fromJS)(["application/json"])});function Tf(...e){return e.filter((t=>!!t)).join(" ").trim()}class Exe 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,Pt.default)({},n,{className:Tf(n.className,i)}))}}const vx={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class Sxe 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 vx){if(!Object.prototype.hasOwnProperty.call(vx,l))continue;let f=vx[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=Tf(o.className,...u);return p.default.createElement("section",(0,Pt.default)({},o,{className:c}))}}class wxe extends p.default.Component{render(){return p.default.createElement("div",(0,Pt.default)({},this.props,{className:Tf(this.props.className,"wrapper")}))}}class dW extends p.default.Component{render(){return p.default.createElement("button",(0,Pt.default)({},this.props,{className:Tf(this.props.className,"button")}))}}X(dW,"defaultProps",{className:""});const xxe=e=>p.default.createElement("textarea",e),Axe=e=>p.default.createElement("input",e);class hW extends p.default.Component{constructor(r,n){let i;super(r,n);X(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))})))}}X(hW,"defaultProps",{multiple:!1,allowEmptyValue:!0});class mW extends p.default.Component{render(){return p.default.createElement("a",(0,Pt.default)({},this.props,{rel:"noopener noreferrer",className:Tf(this.props.className,"link")}))}}const a6=({children:e})=>p.default.createElement("div",{className:"no-margin"}," ",e," ");class gW extends p.default.Component{renderNotAnimated(){return this.props.isOpened?p.default.createElement(a6,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(a6,null,n)):this.renderNotAnimated()}}X(gW,"defaultProps",{isOpened:!1,animated:!1});class Oxe 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",_=y,b=r.isShown([v,_]);return p.default.createElement(Cxe,{key:y,path:d,method:g,id:d+"-"+g,shown:b,showOpId:_,showOpIdPrefix:v,href:`#operation-${_}`,onClick:n.show})})).toArray()))})).toArray(),s.size<1&&p.default.createElement("h3",null," No operations defined in spec! "))}}class Cxe 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(mW,{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 Rxe 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,Pt.default)({},i,{ref:s=>this.inputRef=s}))}}class Txe 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 Ixe extends p.default.PureComponent{render(){const{url:t,getComponent:r}=this.props,n=r("Link");return p.default.createElement(n,{target:"_blank",href:wr(t)},p.default.createElement("span",{className:"url"}," ",t))}}class jxe 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=Vi(t.get("termsOfService"),u,{selectedServer:o}),d=t.get("contact"),g=t.get("license"),y=Vi(a&&a.get("url"),u,{selectedServer:o}),v=a&&a.get("description"),_=s("Markdown",!0),b=s("Link"),S=s("VersionStamp"),w=s("OpenAPIVersion"),E=s("InfoUrl"),A=s("InfoBasePath"),R=s("License"),I=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(w,{oasVersion:"2.0"}))),n||i?p.default.createElement(A,{host:n,basePath:i}):null,r&&p.default.createElement(E,{getComponent:s,url:r})),p.default.createElement("div",{className:"description"},p.default.createElement(_,{source:l})),h&&p.default.createElement("div",{className:"info__tos"},p.default.createElement(b,{target:"_blank",href:wr(h)},"Terms of service")),(d==null?void 0:d.size)>0&&p.default.createElement(I,{getComponent:s,data:d,selectedServer:o,url:r}),(g==null?void 0:g.size)>0&&p.default.createElement(R,{getComponent:s,license:g,selectedServer:o,url:r}),y?p.default.createElement(b,{className:"info__extdocs",target:"_blank",href:wr(y)},v||y):null)}}var Pxe=jxe;class kxe 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 Nxe extends p.default.Component{render(){const{data:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","the developer"),a=Vi(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:wr(a),target:"_blank"},s," - Website")),o&&p.default.createElement(u,{href:wr(`mailto:${o}`)},a?`Send email to ${s}`:`Contact ${s}`))}}var Mxe=Nxe;class Dxe extends p.default.Component{render(){const{license:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","License"),a=Vi(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:wr(a)},s)):p.default.createElement("span",null,s))}}var qxe=Dxe;class Fxe extends p.default.Component{render(){return null}}class $xe 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(Lm.CopyToClipboard,{text:this.props.textToCopy},p.default.createElement(r,null)))}}class Lxe extends p.default.Component{render(){return p.default.createElement("div",{className:"footer"})}}class Bxe extends p.default.Component{constructor(){super(...arguments);X(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 bx=Function.prototype,uh=class uh extends p.PureComponent{constructor(r,n){super(r,n);X(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})});X(this,"sample",r=>{let{param:n,fn:i}=this.props,s=i.inferSchema(n.toJS());return i.getSampleSchema(s,r,{includeWriteOnly:!0})});X(this,"onChange",(r,{isEditBox:n,isXml:i})=>{this.setState({value:r,isEditBox:n}),this._onChange(r,i)});X(this,"_onChange",(r,n)=>{(this.props.onChange||bx)(r,n)});X(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})});X(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,K.List)()),d=s.contentTypeValues(a).get("requestContentType"),g=this.props.consumes&&this.props.consumes.size?this.props.consumes:uh.defaultProp.consumes,{value:y,isEditBox:v}=this.state,_=null;Wm(y)&&(_="json");const b=`${mT(`${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:_},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}))))}};X(uh,"defaultProp",{consumes:(0,K.fromJS)(["application/json"]),param:(0,K.fromJS)({}),onChange:bx,onChangeConsumes:bx});let NO=uh;class Uxe extends p.default.Component{render(){const{request:t,getComponent:r}=this.props,n=YV(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(Lm.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 Vxe=({propKey:e,propVal:t,propClass:r})=>p.default.createElement("span",{className:r},p.default.createElement("br",null),e,": ",String(t));class yW 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"))}}X(yW,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class vW 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"),")."))))}}X(vW,"defaultProps",{alsoShow:null,children:null,bypass:!1});var zxe=({version:e})=>p.default.createElement("small",null,p.default.createElement("pre",{className:"version"}," ",e," ")),Wxe=({oasVersion:e})=>p.default.createElement("small",{className:"version-stamp"},p.default.createElement("pre",{className:"version"},"OAS ",e)),Jxe=({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)),Hxe=()=>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"})))))),bW=(function(e){var t={};return Ee.d(t,e),t})({Remarkable:function(){return Pa}}),Kxe=(function(e){var t={};return Ee.d(t,e),t})({linkify:function(){return zbe}}),MO=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return p_e}});MO.default.addHook&&MO.default.addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e}));var Gxe=function({source:t,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof t!="string")return null;const i=new bW.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(Kxe.linkify);i.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:s}=n(),a=i.render(t),o=Gc(a,{useUnsafeMarkdown:s});return t&&a&&o?p.default.createElement("div",{className:(0,kt.default)(r,"markdown"),dangerouslySetInnerHTML:{__html:o}}):null};function Gc(e,{useUnsafeMarkdown:t=!1}={}){const r=t,n=t?[]:["style","class"];return t&&!Gc.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),Gc.hasWarnedAboutDeprecation=!0),MO.default.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}Gc.hasWarnedAboutDeprecation=!1;class Yxe 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),_=r.isSwagger2(),b=r.isOAS3(),S=r.isOAS31(),w=!r.specStr(),E=r.loadingStatus();let A=null;if(E==="loading"&&(A=p.default.createElement("div",{className:"info"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})))),E==="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)))),E==="failedConfig"){const F=t.lastError(),M=F?F.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,M)))}if(!A&&w&&(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 R=r.servers(),I=r.schemes(),O=R&&R.size,D=I&&I.size,P=!!r.securityDefinitions();return p.default.createElement("div",{className:"swagger-ui"},p.default.createElement(i,null),p.default.createElement(a,{isSwagger2:_,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||D||P?p.default.createElement("div",{className:"scheme-container"},p.default.createElement(f,{className:"schemes wrapper",mobile:12},O||D?p.default.createElement("div",{className:"schemes-server-container"},O?p.default.createElement(d,null):null,D?p.default.createElement(g,null):null):null,P?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 Xxe=()=>({components:{App:$we,authorizationPopup:Lwe,authorizeBtn:Bwe,AuthorizeBtnContainer:Uwe,authorizeOperationBtn:Vwe,auths:zwe,AuthItem:Wwe,authError:Jwe,oauth2:Xwe,apiKeyAuth:Hwe,basicAuth:Kwe,clear:Zwe,liveResponse:txe,InitializedInput:Rxe,info:Pxe,InfoContainer:kxe,InfoUrl:Ixe,InfoBasePath:Txe,Contact:Mxe,License:qxe,JumpToPath:Fxe,CopyToClipboardBtn:$xe,onlineValidatorBadge:nW,operations:nxe,operation:sW,OperationSummary:oW,OperationSummaryMethod:uW,OperationSummaryPath:sxe,responses:kO,response:uxe,ResponseExtension:cxe,responseBody:fxe,parameters:cW,parameterRow:hxe,execute:mxe,headers:gxe,errors:yxe,contentType:pW,overview:Oxe,footer:Lxe,FilterContainer:Bxe,ParamBody:NO,curl:Uxe,Property:Vxe,TryItOutButton:yW,Markdown:Gxe,BaseLayout:Yxe,VersionPragmaFilter:vW,VersionStamp:zxe,OperationExt:axe,OperationExtRow:oxe,ParameterExt:pxe,ParameterIncludeEmpty:lW,OperationTag:iW,OperationContainer:aW,OpenAPIVersion:Wxe,DeepLink:Jxe,SvgAssets:Hxe,Example:Gwe,ExamplesSelect:tW,ExamplesSelectValueRetainer:rW}}),Zxe=()=>({components:{...gO}}),_W=()=>[LV,Bz,KV,Wz,Jz,Fz,VV,WV,HV,uz,mz,Xxe,Zxe,Lz,$V,Hz,BV,zV,GV,ZV,Gz,Yz,eW()];const Qxe=(0,K.Map)();function If(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 jf=If((0,Bm.default)(null)),eAe=If(((e,t)=>r=>r.getSystem().specSelectors.findSchema(t))),tAe=If((()=>e=>{const t=e.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return K.Map.isMap(t)?t:Qxe})),rAe=If((()=>e=>e.getSystem().specSelectors.specJson().hasIn(["servers",0]))),nAe=If((0,ut.createSelector)(Ki,(e=>e.getIn(["components","securitySchemes"])||null))),iAe=(e,t)=>(r,...n)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...n),sAe=jf,aAe=jf,oAe=jf,uAe=jf,cAe=jf,lAe=(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,ut.createSelector)((e=>e),(({specSelectors:e})=>e.securityDefinitions()),((e,t)=>{let r=(0,K.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,K.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 K.Map({[n]:u.filter((c=>c!==void 0))}))})),s!=="http"&&s!=="apiKey"||(r=r.push(new K.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 K.Map),c=(0,K.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 K.Map({[n]:c.filter((l=>l!==void 0))}))}))}})),r})));function Pf(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,Pt.default)({},n,r,{Ori:t})):p.default.createElement(t,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}const fAe=(0,K.Map)(),pAe=()=>e=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(e.getSystem().specSelectors.specJson()),dAe=()=>e=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(e.getSystem().specSelectors.specJson()),hAe=()=>e=>e.getSystem().specSelectors.isOAS30();function EW(e){return(t,...r)=>n=>{if(n.specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null}}const mAe=EW((()=>e=>e.specSelectors.specJson().get("servers",fAe))),gAe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","components","schemas",t],null),n=e.getIn(["json","components","schemas",t],null);return r||n||null},yAe=EW(((e,{callbacks:t,specPath:r})=>n=>{const i=n.specSelectors.validOperationMethods();return K.Map.isMap(t)?t.reduce(((s,a,o)=>{if(!K.Map.isMap(a))return s;const u=a.reduce(((c,l,f)=>{if(!K.Map.isMap(l))return c;const h=l.entrySeq().filter((([d])=>i.includes(d))).map((([d,g])=>({operation:(0,K.Map)({operation:g}),method:d,path:f,callbackName:o,specPath:r.concat([o,f,d])})));return c.concat(h)}),(0,K.List)());return s.concat(u)}),(0,K.List)()).groupBy((s=>s.callbackName)).map((s=>s.toArray())).toObject():{}}));var vAe=({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 Sd=(e,t,r,n)=>{const i=e.getIn(["content",t])??(0,K.OrderedMap)(),s=i.get("schema",(0,K.OrderedMap)()).toJS(),a=i.get("examples")!==void 0,o=i.get("example"),u=a?i.getIn(["examples",r,"value"]):o;return rn(n.getSampleSchema(s,t,{includeWriteOnly:!0},u))};var bAe=({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 _=B=>{h(B.target.files[0])},b=B=>{let J={key:B,shouldDispatchInit:!1,defaultValue:!0};return n.get(B,"no value")==="no value"&&(J.shouldDispatchInit=!0),J},S=s("Markdown",!0),w=s("modelExample"),E=s("RequestBodyEditor"),A=s("HighlightCode",!0),R=s("ExamplesSelectValueRetainer"),I=s("Example"),O=s("ParameterIncludeEmpty"),{showCommonExtensions:D}=a(),P=(t==null?void 0:t.get("description"))??null,F=(t==null?void 0:t.get("content"))??new K.OrderedMap;c=c||F.keySeq().first()||"";const M=F.get(c)??(0,K.OrderedMap)(),G=M.get("schema",(0,K.OrderedMap)()),ee=M.get("examples",null),H=ee==null?void 0:ee.map(((B,J)=>{const ie=B==null?void 0:B.get("value",null);return ie&&(B=B.set("value",Sd(t,c,J,u),ie)),B}));if(i=K.List.isList(i)?i:(0,K.List)(),u.isFileUploadIntended(M==null?void 0:M.get("schema"),c)){const B=s("Input");return l?p.default.createElement(B,{type:"file",onChange:_}):p.default.createElement("i",null,"Example values are not available for ",p.default.createElement("code",null,c)," media types.")}if(!M.size)return null;if(u.hasSchemaType(M.get("schema"),"object")&&(c==="application/x-www-form-urlencoded"||c.indexOf("multipart/")===0)&&G.get("properties",(0,K.OrderedMap)()).size>0){const B=s("JsonSchemaForm"),J=s("ParameterExt"),ie=G.get("properties",(0,K.OrderedMap)());return r=K.Map.isMap(r)?r:(0,K.OrderedMap)(),p.default.createElement("div",{className:"table-container"},P&&p.default.createElement(S,{source:P}),p.default.createElement("table",null,p.default.createElement("tbody",null,K.Map.isMap(ie)&&ie.entrySeq().map((([oe,ce])=>{var k,W,se,ue;if(ce.get("readOnly"))return;const te=(W=(k=ce.get("oneOf"))==null?void 0:k.get(0))==null?void 0:W.toJS(),z=(ue=(se=ce.get("anyOf"))==null?void 0:se.get(0))==null?void 0:ue.toJS();ce=(0,K.fromJS)(u.mergeJsonSchema(ce.toJS(),te??z??{}));let V=D?NV(ce):null;const fe=G.get("required",(0,K.List)()).includes(oe),me=u.getSchemaObjectType(ce),Ce=u.getSchemaObjectTypeLabel(ce),Ne=u.getSchemaObjectType(ce==null?void 0:ce.get("items")),he=ce.get("format"),je=ce.get("description"),Be=r.getIn([oe,"value"]),_e=r.getIn([oe,"errors"])||i,we=n.get(oe)||!1;let Ae=u.getSampleSchema(ce,!1,{includeWriteOnly:!0});Ae===!1&&(Ae="false"),Ae===0&&(Ae="0"),typeof Ae!="string"&&me==="object"&&(Ae=rn(Ae)),typeof Ae=="string"&&me==="array"&&(Ae=JSON.parse(Ae));const U=u.isFileUploadIntended(ce),T=p.default.createElement(B,{fn:u,dispatchInitialValue:!U,schema:ce,description:oe,getComponent:s,value:Be===void 0?Ae:Be,required:fe,errors:_e,onChange:ge=>{h(ge,[oe])}});return p.default.createElement("tr",{key:oe,className:"parameters","data-property-name":oe},p.default.createElement("td",{className:"parameters-col_name"},p.default.createElement("div",{className:fe?"parameter__name required":"parameter__name"},oe,fe?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},Ce,he&&p.default.createElement("span",{className:"prop-format"},"($",he,")"),D&&V.size?V.entrySeq().map((([ge,Me])=>p.default.createElement(J,{key:`${ge}-${Me}`,xKey:ge,xVal:Me}))):null),p.default.createElement("div",{className:"parameter__deprecated"},ce.get("deprecated")?"deprecated":null)),p.default.createElement("td",{className:"parameters-col_description"},p.default.createElement(S,{source:je}),l?p.default.createElement("div",null,me==="object"||Ne==="object"?p.default.createElement(w,{getComponent:s,specPath:f.push("schema"),getConfigs:a,isExecute:l,specSelectors:o,schema:ce,example:T}):T,fe?null:p.default.createElement(O,{onChange:ge=>d(oe,ge),isIncluded:we,isIncludedOptions:b(oe),isDisabled:Array.isArray(Be)?Be.length!==0:!MR(Be)})):null))})))))}const Q=Sd(t,c,g,u);let re=null;Wm(Q)&&(re="json");const ne=l?p.default.createElement(E,{value:r,errors:i,defaultValue:Q,onChange:h,getComponent:s}):p.default.createElement(A,{className:"body-param__example",language:re},rn(r)||Q);return p.default.createElement("div",null,P&&p.default.createElement(S,{source:P}),H?p.default.createElement(R,{userHasEditedBody:e,examples:H,currentKey:g,currentUserInputValue:r,onSelect:B=>{y(B)},updateValue:h,defaultToFirstExample:!0,getComponent:s,setRetainRequestBodyValueFlag:v}):null,p.default.createElement(w,{getComponent:s,getConfigs:a,specSelectors:o,expandDepth:1,isExecute:l,schema:M.get("schema"),specPath:f.push("content",c),example:ne,includeWriteOnly:!0}),H?p.default.createElement(I,{example:H.get(g),getComponent:s,getConfigs:a}):null)};class _Ae 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(`
|
|
339
|
-
`).map(((f,h)=>h>0?Array(c+1).join(" ")+f:f)).join(`
|
|
340
|
-
`)})(0,JSON.stringify(a,null,2))||"{}",p.default.createElement("br",null)))}}var EAe=_Ae,SAe=({servers:e,currentServer:t,setSelectedServer:r,setServerVariableValue:n,getServerVariable:i,getEffectiveServerValue:s})=>{const a=(e.find((l=>l.get("url")===t))||(0,K.OrderedMap)()).get("variables")||(0,K.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,K.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 wAe 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 xAe=Function.prototype;class SW extends p.PureComponent{constructor(r,n){super(r,n);X(this,"applyDefaultValue",r=>{const{onChange:n,defaultValue:i}=r||this.props;return this.setState({value:i}),n(i)});X(this,"onChange",r=>{this.props.onChange(rn(r))});X(this,"onDomChange",r=>{const n=r.target.value;this.setState({value:n},(()=>this.onChange(n)))});this.state={value:rn(r.value)||r.defaultValue},r.onChange(r.value)}UNSAFE_componentWillReceiveProps(r){this.props.value!==r.value&&r.value!==this.state.value&&this.setState({value:rn(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,kt.default)("body-param__text",{invalid:s}),title:n.size?n.join(", "):"",value:i,onChange:this.onDomChange}))}}X(SW,"defaultProps",{onChange:xAe,userHasEditedBody:!1});class AAe extends p.default.Component{constructor(r,n){super(r,n);X(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((_=>_.get("authId")===s));if(d==="basic"){let _=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})),_&&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:"),_?p.default.createElement("code",null," ",_," "):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:"),_?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(((_,b)=>p.default.createElement(l,{error:_,key:b})))):p.default.createElement("div",null,p.default.createElement("em",null,p.default.createElement("b",null,s)," HTTP authentication: unsupported scheme ",`'${d}'`))}}class OAe extends p.default.Component{constructor(){super(...arguments);X(this,"setSelectedServer",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setSelectedServer(r,`${n}:${i}`)});X(this,"setServerVariableValue",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...r,namespace:`${n}:${i}`})});X(this,"getSelectedServer",()=>{const{path:r,method:n}=this.props;return this.props.getSelectedServer(`${r}:${n}`)});X(this,"getServerVariable",(r,n)=>{const{path:i,method:s}=this.props;return this.props.getServerVariable({namespace:`${i}:${s}`,server:r},n)});X(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 CAe={Callbacks:vAe,HttpAuth:AAe,RequestBody:bAe,Servers:SAe,ServersContainer:wAe,RequestBodyEditor:SW,OperationServers:OAe,operationLink:EAe};const DO=new bW.Remarkable("commonmark");DO.block.ruler.enable(["table"]),DO.set({linkTarget:"_blank"});var RAe=Pf((({source:e,className:t="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof e!="string")return null;if(e){const{useUnsafeMarkdown:n}=r(),i=Gc(DO.render(e),{useUnsafeMarkdown:n});let s;return typeof i=="string"&&(s=i.trim()),p.default.createElement("div",{dangerouslySetInnerHTML:{__html:s},className:(0,kt.default)(t,"renderedMarkdown")})}return null})),TAe=Pf((({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)})),IAe=Pf(nW);class jAe 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,Pt.default)({},this.props,{getConfigs:t,depth:1,expandDepth:this.props.expandDepth||0})))}}var PAe=Pf(jAe),kAe=Pf((({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)})),NAe={Markdown:RAe,AuthItem:TAe,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,Pt.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:kAe,model:PAe,onlineValidatorBadge:IAe};const gT="oas3_set_servers",yT="oas3_set_request_body_value",vT="oas3_set_request_body_retain_flag",bT="oas3_set_request_body_inclusion",_T="oas3_set_active_examples_member",ET="oas3_set_request_content_type",ST="oas3_set_response_content_type",wT="oas3_set_server_variable_value",xT="oas3_set_request_body_validate_error",Jm="oas3_clear_request_body_validate_error",AT="oas3_clear_request_body_value";function MAe(e,t){return{type:gT,payload:{selectedServerUrl:e,namespace:t}}}function DAe({value:e,pathMethod:t}){return{type:yT,payload:{value:e,pathMethod:t}}}const qAe=({value:e,pathMethod:t})=>({type:vT,payload:{value:e,pathMethod:t}});function FAe({value:e,pathMethod:t,name:r}){return{type:bT,payload:{value:e,pathMethod:t,name:r}}}function $Ae({name:e,pathMethod:t,contextType:r,contextName:n}){return{type:_T,payload:{name:e,pathMethod:t,contextType:r,contextName:n}}}function LAe({value:e,pathMethod:t}){return{type:ET,payload:{value:e,pathMethod:t}}}function BAe({value:e,path:t,method:r}){return{type:ST,payload:{value:e,path:t,method:r}}}function UAe({server:e,namespace:t,key:r,val:n}){return{type:wT,payload:{server:e,namespace:t,key:r,val:n}}}const VAe=({path:e,method:t,validationErrors:r})=>({type:xT,payload:{path:e,method:t,validationErrors:r}}),zAe=({path:e,method:t})=>({type:Jm,payload:{path:e,method:t}}),WAe=({pathMethod:e})=>({type:Jm,payload:{path:e[0],method:e[1]}}),JAe=({pathMethod:e})=>({type:AT,payload:{pathMethod:e}});var HAe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return m_e}});const Ci=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},KAe=Ci(((e,t)=>{const r=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(r)||""})),GAe=Ci(((e,t,r)=>e.getIn(["requestData",t,r,"bodyValue"])||null)),YAe=Ci(((e,t,r)=>e.getIn(["requestData",t,r,"retainBodyValue"])||!1)),XAe=(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 Sd(s.specResolvedSubtree(["paths",t,r,"requestBody"]),o,i.activeExamplesMember(t,r,"requestBody","requestBody"),a)}return null},ZAe=Ci(((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(K.Map.isMap(c)&&(c=rn(c.mapEntries((f=>K.Map.isMap(f[1])?[f[0],f[1].get("value")]:f)).toJS())),K.List.isList(c)&&(c=rn(c)),u){const f=Sd(l,u,i.activeExamplesMember(t,r,"requestBody","requestBody"),a);o=!!c&&c!==f}return o})),QAe=Ci(((e,t,r)=>e.getIn(["requestData",t,r,"bodyInclusion"])||(0,K.Map)())),eOe=Ci(((e,t,r)=>e.getIn(["requestData",t,r,"errors"])||null)),tOe=Ci(((e,t,r,n,i)=>e.getIn(["examples",t,r,n,i,"activeExample"])||null)),rOe=Ci(((e,t,r)=>e.getIn(["requestData",t,r,"requestContentType"])||null)),nOe=Ci(((e,t,r)=>e.getIn(["requestData",t,r,"responseContentType"])||null)),iOe=Ci(((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})),sOe=Ci(((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,K.OrderedMap)()})),aOe=Ci(((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,K.OrderedMap)();let i=n;return r.map(((s,a)=>{i=i.replace(new RegExp(`{${(0,HAe.default)(a)}}`,"g"),s)})),i})),oOe=(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))),uOe=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let i=[];if(!K.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},cOe=(0,Bm.default)(["get","put","post","delete","options","head","patch","trace"]);var lOe={[gT]:(e,{payload:{selectedServerUrl:t,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return e.setIn(n,t)},[yT]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;if(!K.Map.isMap(t))return e.setIn(["requestData",n,i,"bodyValue"],t);let s=e.getIn(["requestData",n,i,"bodyValue"])||(0,K.Map)();K.Map.isMap(s)||(s=(0,K.Map)());let a=s;const[...o]=t.keys();return o.forEach((u=>{let c=t.getIn([u]);a.has(u)&&K.Map.isMap(c)||(a=a.setIn([u,"value"],c))})),e.setIn(["requestData",n,i,"bodyValue"],a)},[vT]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"retainBodyValue"],t)},[bT]:(e,{payload:{value:t,pathMethod:r,name:n}})=>{let[i,s]=r;return e.setIn(["requestData",i,s,"bodyInclusion",n],t)},[_T]:(e,{payload:{name:t,pathMethod:r,contextType:n,contextName:i}})=>{let[s,a]=r;return e.setIn(["examples",s,a,n,i,"activeExample"],t)},[ET]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"requestContentType"],t)},[ST]:(e,{payload:{value:t,path:r,method:n}})=>e.setIn(["requestData",r,n,"responseContentType"],t),[wT]:(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)},[xT]:(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,K.fromJS)(i));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:s}=n;return e.updateIn(["requestData",t,r,"bodyValue"],(0,K.fromJS)({}),(a=>s.reduce(((o,u)=>o.setIn([u,"errors"],(0,K.fromJS)(i))),a)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[Jm]:(e,{payload:{path:t,method:r}})=>{const n=e.getIn(["requestData",t,r,"bodyValue"]);if(!K.Map.isMap(n))return e.setIn(["requestData",t,r,"errors"],(0,K.fromJS)([]));const[...i]=n.keys();return i?e.updateIn(["requestData",t,r,"bodyValue"],(0,K.fromJS)({}),(s=>i.reduce(((a,o)=>a.setIn([o,"errors"],(0,K.fromJS)([]))),s))):e},[AT]:(e,{payload:{pathMethod:t}})=>{let[r,n]=t;const i=e.getIn(["requestData",r,n,"bodyValue"]);return i?K.Map.isMap(i)?e.setIn(["requestData",r,n,"bodyValue"],(0,K.Map)()):e.setIn(["requestData",r,n,"bodyValue"],""):e}};function qO({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=K.Map.isMap(n);if(!u&&!(0,Fs.default)(n))return!1;const c=u?n.get("format"):n.format;return a.hasSchemaType(n,"string")&&["binary","byte"].includes(c)})(e);return{components:CAe,wrapComponents:NAe,statePlugins:{spec:{wrapSelectors:yO,selectors:bO},auth:{wrapSelectors:vO},oas3:{actions:{..._O},reducers:lOe,selectors:{...EO}}},fn:{isFileUploadIntended:t,isFileUploadIntendedOAS30:t}}}var fOe=({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,K.List)(a.specPath),allowTryItOut:!1})))))))},pOe=({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:wr(n)},r)):p.default.createElement("span",null,r))},dOe=({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:wr(n),target:"_blank"},r," - Website")),i&&p.default.createElement(s,{href:wr(`mailto:${i}`)},n?`Send email to ${r}`:`Contact ${r}`))},hOe=({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("OpenAPIVersion"),b=e("InfoUrl"),S=e("InfoBasePath"),w=e("License",!0),E=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(_,{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:wr(c)},"Terms of service")),h.size>0&&p.default.createElement(E,null),d.size>0&&p.default.createElement(w,null),l&&p.default.createElement(y,{className:"info__extdocs",target:"_blank",href:wr(l)},f||l),p.default.createElement(A,null))},mOe=({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:wr(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."))))))},gOe=({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 yOe=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,vOe=(0,p.forwardRef)((({schema:e,getComponent:t,onToggle:r=()=>{},specPath:n},i)=>{const s=t("JSONSchema202012"),a=yOe(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 bOe=vOe,_Oe=({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"),_=i("ArrowDownIcon"),{getTitle:b}=a.jsonSchema202012.useFn();(0,p.useEffect)((()=>{const R=Object.entries(o).some((([D])=>r.isShown([...c,D],!1))),I=d&&(f>1||R),O=t.specResolvedSubtree(c)!=null;I&&!O&&e.requestResolvedSubtree(c)}),[d,f]);const S=(0,p.useCallback)((()=>{n.show(c,!d)}),[d]),w=(0,p.useCallback)((R=>{R!==null&&n.readyToScroll(c,R)}),[]),E=R=>I=>{I!==null&&n.readyToScroll([...c,R],I)},A=R=>(I,O)=>{const D=[...c,R];O?(t.specResolvedSubtree(D)!=null||e.requestResolvedSubtree([...c,R]),n.show(D,!0)):n.show(D,!1)};return!u||f<0?null:p.default.createElement("section",{className:(0,kt.default)("models",{"is-open":d}),ref:w},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(_,null))),p.default.createElement(g,{isOpened:d},Object.entries(o).map((([R,I])=>{const O=b(I,{lookup:"basic"})||R;return p.default.createElement(y,{key:R,ref:E(R),schema:I,name:O,onExpand:A(R)})}))))},EOe=({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 SOe extends p.default.Component{constructor(r,n){super(r,n);X(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});X(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});X(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)});X(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 wOe=SOe;const wW=e=>{const t=e.get("openapi");return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},o6=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},xW=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)},u6=e=>(t,...r)=>n=>{const i=e(t,n,...r);return typeof i=="function"?i(n):i},Ss=e=>(t,r)=>n=>r.specSelectors.isOAS31()?p.default.createElement(e,(0,Pt.default)({},n,{originalComponent:t,getSystem:r.getSystem})):p.default.createElement(t,n),_x=(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 xOe=Ss((({getSystem:e})=>{const t=e().getComponent("OAS31License",!0);return p.default.createElement(t,null)})),AOe=Ss((({getSystem:e})=>{const t=e().getComponent("OAS31Contact",!0);return p.default.createElement(t,null)})),OOe=Ss((({getSystem:e})=>{const t=e().getComponent("OAS31Info",!0);return p.default.createElement(t,null)}));const COe=(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)},AW=e=>{if(typeof e!="function")return null;const t=e();return()=>[...t,"discriminator","xml","externalDocs","example","$$ref"]},yc=Ss((({getSystem:e,...t})=>{const r=e(),{getComponent:n,fn:i,getConfigs:s}=r,a=s(),o=n("OAS31Model"),u=n("withJSONSchema202012SystemContext");return yc.ModelWithJSONSchemaContext??(yc.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:AW(i.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(yc.ModelWithJSONSchemaContext,t)}));var ROe=yc;const oa=Ss((({getSystem:e})=>{const{getComponent:t,fn:r,getConfigs:n}=e(),i=n();if(oa.ModelsWithJSONSchemaContext)return p.default.createElement(oa.ModelsWithJSONSchemaContext,null);const s=t("OAS31Models",!0),a=t("withJSONSchema202012SystemContext");return oa.ModelsWithJSONSchemaContext??(oa.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:AW(r.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(oa.ModelsWithJSONSchemaContext,null)}));oa.ModelsWithJSONSchemaContext=null;var TOe=oa,IOe=(e,t)=>r=>{const n=t.specSelectors.isOAS31(),i=t.getComponent("OAS31VersionPragmaFilter");return p.default.createElement(i,(0,Pt.default)({isOAS31:n},r))};const jOe=Ss((({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 POe=jOe,kOe=Ss((({getSystem:e,...t})=>{const r=e().getComponent("OAS31Auths",!0);return p.default.createElement(r,t)}));const OT=(0,K.Map)(),NOe=(0,ut.createSelector)(((e,t)=>t.specSelectors.specJson()),wW),MOe=()=>e=>{const t=e.specSelectors.specJson().get("webhooks");return K.Map.isMap(t)?t:OT},DOe=(0,ut.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(!K.Map.isMap(n))return r;const s=n.entrySeq().filter((([a])=>t.includes(a))).map((([a,o])=>({operation:(0,K.Map)({operation:o}),method:a,path:i,specPath:["webhooks",i,a]})));return r.concat(s)}),(0,K.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),qOe=()=>e=>{const t=e.specSelectors.info().get("license");return K.Map.isMap(t)?t:OT},FOe=()=>e=>e.specSelectors.license().get("name","License"),$Oe=()=>e=>e.specSelectors.license().get("url"),LOe=(0,ut.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,r)=>{if(r)return Vi(r,e,{selectedServer:t})})),BOe=()=>e=>e.specSelectors.license().get("identifier"),UOe=()=>e=>{const t=e.specSelectors.info().get("contact");return K.Map.isMap(t)?t:OT},VOe=()=>e=>e.specSelectors.contact().get("name","the developer"),zOe=()=>e=>e.specSelectors.contact().get("email"),WOe=()=>e=>e.specSelectors.contact().get("url"),JOe=(0,ut.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,r)=>{if(r)return Vi(r,e,{selectedServer:t})})),HOe=()=>e=>e.specSelectors.info().get("title"),KOe=()=>e=>e.specSelectors.info().get("summary"),GOe=()=>e=>e.specSelectors.info().get("description"),YOe=()=>e=>e.specSelectors.info().get("termsOfService"),XOe=(0,ut.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],((e,t,r)=>{if(r)return Vi(r,e,{selectedServer:t})})),ZOe=()=>e=>e.specSelectors.externalDocs().get("description"),QOe=()=>e=>e.specSelectors.externalDocs().get("url"),e2e=(0,ut.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],((e,t,r)=>{if(r)return Vi(r,e,{selectedServer:t})})),t2e=()=>e=>e.specSelectors.specJson().get("jsonSchemaDialect"),r2e=()=>"https://spec.openapis.org/oas/3.1/dialect/base",n2e=(0,ut.createSelector)(((e,t)=>t.specSelectors.definitions()),((e,t)=>t.specSelectors.specResolvedSubtree(["components","schemas"])),((e,t)=>K.Map.isMap(e)?K.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():{})),i2e=(e,t)=>(r,...n)=>t.specSelectors.isOAS31()||e(...n),s2e=xW((()=>(e,t)=>t.oas31Selectors.selectLicenseUrl())),a2e=xW((()=>(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 K.Map({[i]:s})))})),n})),o2e=(0,ut.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?Vi(r,e,{selectedServer:t}):n?`https://spdx.org/licenses/${n}.html`:void 0));var u2e=({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},c2e=({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(),_=a?ka(r):[],b=!!(r.name||r.namespace||r.prefix||_.length>0),S=o("Accordion"),w=o("ExpandDeepButton"),E=i("OpenAPI31Extensions"),A=i("JSONSchema202012PathContext")(),R=i("JSONSchema202012LevelContext")(),I=(0,p.useCallback)((()=>{h?g():d()}),[h,d,g]),O=(0,p.useCallback)(((D,P)=>{P?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(R.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:I},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),p.default.createElement(w,{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,kt.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)))),_.length>0&&p.default.createElement(E,{openAPISpecObj:r,openAPIExtensions:_,getSystem:t})))))},l2e=({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))))},f2e=({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,_]=l(),b=a?ka(r):[],S=!!(r.mapping||b.length>0),w=o("Accordion"),E=o("ExpandDeepButton"),A=i("OpenAPI31Extensions"),R=i("JSONSchema202012PathContext")(),I=i("JSONSchema202012LevelContext")(),O=(0,p.useCallback)((()=>{d?y():g()}),[d,g,y]),D=(0,p.useCallback)(((P,F)=>{F?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:p.default.createElement(R.Provider,{value:h},p.default.createElement(I.Provider,{value:_},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(w,{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(E,{expanded:d,onClick:D})):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,kt.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(l2e,{discriminator:r})),b.length>0&&p.default.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},p2e=({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"})))},d2e=({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,_]=l(),b=a?ka(r):[],S=!!(r.description||r.url||b.length>0),w=o("Accordion"),E=o("ExpandDeepButton"),A=i("JSONSchema202012KeywordDescription"),R=i("Link"),I=i("OpenAPI31Extensions"),O=i("JSONSchema202012PathContext")(),D=i("JSONSchema202012LevelContext")(),P=(0,p.useCallback)((()=>{d?y():g()}),[d,g,y]),F=(0,p.useCallback)(((M,G)=>{G?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(D.Provider,{value:_},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(w,{expanded:d,onChange:P},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),p.default.createElement(E,{expanded:d,onClick:F})):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,kt.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(R,{target:"_blank",href:wr(r.url)},r.url))))),b.length>0&&p.default.createElement(I,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},h2e=({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})))},m2e=Ss(h2e);const g2e=Ss((({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 y2e=g2e,v2e=({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),_=a(g,e);return p.default.createElement("li",{key:g,className:(0,kt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":v})},p.default.createElement(f,{name:g,schema:y,dependentRequired:_}))})))))},b2e=Ss(v2e),_2e=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:COe})}if(typeof t.sampleFromSchema=="function"&&t.jsonSchema202012){const s=_x({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,getSchemaObjectTypeLabel:a=>t.jsonSchema202012.getType(gu(a)),getSchemaObjectType:a=>{var o;return t.jsonSchema202012.foldType((o=gu(a))==null?void 0:o.type)}},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=K.Map.isMap(a);if(!c&&!(0,Fs.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}=_x({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=i,this.fn.isFileUploadIntendedOAS31=n,t.jsonSchema202012){const{hasSchemaType:s}=_x({hasSchemaType:t.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=s}},E2e=({fn:e})=>{const t=e.createSystemSelector||u6,r=e.createOnlyOAS31Selector||o6;return{afterLoad:_2e,fn:{isOAS31:wW,createSystemSelector:u6,createOnlyOAS31Selector:o6},components:{Webhooks:fOe,JsonSchemaDialect:mOe,MutualTLSAuth:EOe,OAS31Info:hOe,OAS31License:pOe,OAS31Contact:dOe,OAS31VersionPragmaFilter:gOe,OAS31Model:bOe,OAS31Models:_Oe,OAS31Auths:wOe,JSONSchema202012KeywordExample:u2e,JSONSchema202012KeywordXml:c2e,JSONSchema202012KeywordDiscriminator:f2e,JSONSchema202012KeywordExternalDocs:d2e,OpenAPI31Extensions:p2e},wrapComponents:{InfoContainer:OOe,License:xOe,Contact:AOe,VersionPragmaFilter:IOe,Model:ROe,Models:TOe,AuthItem:POe,auths:kOe,JSONSchema202012KeywordDescription:m2e,JSONSchema202012KeywordExamples:y2e,JSONSchema202012KeywordProperties:b2e},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:a2e}},spec:{selectors:{isOAS31:t(NOe),license:qOe,selectLicenseNameField:FOe,selectLicenseUrlField:$Oe,selectLicenseIdentifierField:r(BOe),selectLicenseUrl:t(LOe),contact:UOe,selectContactNameField:VOe,selectContactEmailField:zOe,selectContactUrlField:WOe,selectContactUrl:t(JOe),selectInfoTitleField:HOe,selectInfoSummaryField:r(KOe),selectInfoDescriptionField:GOe,selectInfoTermsOfServiceField:YOe,selectInfoTermsOfServiceUrl:t(XOe),selectExternalDocsDescriptionField:ZOe,selectExternalDocsUrlField:QOe,selectExternalDocsUrl:t(e2e),webhooks:r(MOe),selectWebhooksOperations:r(t(DOe)),selectJsonSchemaDialectField:t2e,selectJsonSchemaDialectDefault:r2e,selectSchemas:t(n2e)},wrapSelectors:{isOAS3:i2e,selectLicenseUrl:s2e}},oas31:{selectors:{selectLicenseUrl:r(t(o2e))}}}}};const S2e=jn.default.object,w2e=jn.default.bool,so=(jn.default.oneOfType([S2e,w2e]),(0,p.createContext)(null));so.displayName="JSONSchemaContext";const Ri=(0,p.createContext)(0);Ri.displayName="JSONSchemaLevelContext";const FO=(0,p.createContext)(new Set),Bn=(0,p.createContext)([]);class Pn{}X(Pn,"Collapsed","collapsed"),X(Pn,"Expanded","expanded"),X(Pn,"DeeplyExpanded","deeply-expanded");const CT=()=>{const{config:e}=(0,p.useContext)(so);return e},$e=e=>{const{components:t}=(0,p.useContext)(so);return t[e]||null},Zt=(e=void 0)=>{const{fn:t}=(0,p.useContext)(so);return e!==void 0?t[e]:t},OW=()=>{const[,e]=(0,p.useState)(null),{state:t}=(0,p.useContext)(so);return{state:t,setState:r=>{r(t),e({})}}},_i=()=>{const e=(0,p.useContext)(Ri);return[e,e+1]},On=e=>{const t=(0,p.useContext)(Bn),{setState:r}=OW(),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===Pn.Collapsed&&Object.keys(c.paths).forEach((l=>{l.startsWith(a)&&c.paths[l]===Pn.DeeplyExpanded&&(c.paths[l]=Pn.Expanded)}))},u=c=>{Object.keys(c.paths).forEach((l=>{l.startsWith(a)&&(c.paths[l]=i)}))};s.deep?r(u):r(o)}}},Gi=e=>{const[t]=_i(),{defaultExpandedLevels:r}=CT(),{path:n,pathMutator:i}=On(e),{path:s}=On(),{state:a}=OW(),o=a.paths[n.toString()],u=a.paths[s.toString()]??a.paths[s.slice(0,-1).toString()],c=o??(r-t>0?Pn.Expanded:Pn.Collapsed),l=c!==Pn.Collapsed;return(0,p.useEffect)((()=>{i(u===Pn.DeeplyExpanded?Pn.DeeplyExpanded:c)}),[u]),{isExpanded:l,setExpanded:(0,p.useCallback)(((f={deep:!1})=>{i(f.deep?Pn.DeeplyExpanded:Pn.Expanded)}),[]),setCollapsed:(0,p.useCallback)(((f={deep:!1})=>{i(Pn.Collapsed,f)}),[])}},c6=(e=void 0)=>{if(e===void 0)return(0,p.useContext)(FO);const t=(0,p.useContext)(FO);return new Set([...t,e])},x2e=(0,p.forwardRef)((({schema:e,name:t="",dependentRequired:r=[],onExpand:n=()=>{},identifier:i=""},s)=>{const a=Zt(),o=i||(e==null?void 0:e.$id)||t,{path:u}=On(o),{isExpanded:c,setExpanded:l,setCollapsed:f}=Gi(o),[h,d]=_i(),g=(()=>{const[$]=_i();return $>0})(),y=a.isExpandable(e)||r.length>0,v=($=>c6().has($))(e),_=c6(e),b=a.stringifyConstraints(e),S=$e("Accordion"),w=$e("Keyword$schema"),E=$e("Keyword$vocabulary"),A=$e("Keyword$id"),R=$e("Keyword$anchor"),I=$e("Keyword$dynamicAnchor"),O=$e("Keyword$ref"),D=$e("Keyword$dynamicRef"),P=$e("Keyword$defs"),F=$e("Keyword$comment"),M=$e("KeywordAllOf"),G=$e("KeywordAnyOf"),ee=$e("KeywordOneOf"),H=$e("KeywordNot"),Q=$e("KeywordIf"),re=$e("KeywordThen"),ne=$e("KeywordElse"),B=$e("KeywordDependentSchemas"),J=$e("KeywordPrefixItems"),ie=$e("KeywordItems"),oe=$e("KeywordContains"),ce=$e("KeywordProperties"),te=$e("KeywordPatternProperties"),z=$e("KeywordAdditionalProperties"),V=$e("KeywordPropertyNames"),fe=$e("KeywordUnevaluatedItems"),me=$e("KeywordUnevaluatedProperties"),Ce=$e("KeywordType"),Ne=$e("KeywordEnum"),he=$e("KeywordConst"),je=$e("KeywordConstraint"),Be=$e("KeywordDependentRequired"),_e=$e("KeywordContentSchema"),we=$e("KeywordTitle"),Ae=$e("KeywordDescription"),U=$e("KeywordDefault"),T=$e("KeywordDeprecated"),k=$e("KeywordReadOnly"),W=$e("KeywordWriteOnly"),se=$e("KeywordExamples"),ue=$e("ExtensionKeywords"),ge=$e("ExpandDeepButton"),Me=(0,p.useCallback)((($,C)=>{C?l():f(),n($,C,!1)}),[n,l,f]),Xe=(0,p.useCallback)((($,C)=>{C?l({deep:!0}):f({deep:!0}),n($,C,!0)}),[n,l,f]);return p.default.createElement(Bn.Provider,{value:u},p.default.createElement(Ri.Provider,{value:d},p.default.createElement(FO.Provider,{value:_},p.default.createElement("article",{ref:s,"data-json-schema-level":h,className:(0,kt.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:Me},p.default.createElement(we,{title:t,schema:e})),p.default.createElement(ge,{expanded:c,onClick:Xe})):p.default.createElement(we,{title:t,schema:e}),p.default.createElement(T,{schema:e}),p.default.createElement(k,{schema:e}),p.default.createElement(W,{schema:e}),p.default.createElement(Ce,{schema:e,isCircular:v}),b.length>0&&b.map(($=>p.default.createElement(je,{key:`${$.scope}-${$.value}`,constraint:$})))),p.default.createElement("div",{className:(0,kt.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!c})},c&&p.default.createElement(p.default.Fragment,null,p.default.createElement(Ae,{schema:e}),!v&&y&&p.default.createElement(p.default.Fragment,null,p.default.createElement(ce,{schema:e}),p.default.createElement(te,{schema:e}),p.default.createElement(z,{schema:e}),p.default.createElement(me,{schema:e}),p.default.createElement(V,{schema:e}),p.default.createElement(M,{schema:e}),p.default.createElement(G,{schema:e}),p.default.createElement(ee,{schema:e}),p.default.createElement(H,{schema:e}),p.default.createElement(Q,{schema:e}),p.default.createElement(re,{schema:e}),p.default.createElement(ne,{schema:e}),p.default.createElement(B,{schema:e}),p.default.createElement(J,{schema:e}),p.default.createElement(ie,{schema:e}),p.default.createElement(fe,{schema:e}),p.default.createElement(oe,{schema:e}),p.default.createElement(_e,{schema:e})),p.default.createElement(Ne,{schema:e}),p.default.createElement(he,{schema:e}),p.default.createElement(Be,{schema:e,dependentRequired:r}),p.default.createElement(U,{schema:e}),p.default.createElement(se,{schema:e}),p.default.createElement(w,{schema:e}),p.default.createElement(E,{schema:e}),p.default.createElement(A,{schema:e}),p.default.createElement(R,{schema:e}),p.default.createElement(I,{schema:e}),p.default.createElement(O,{schema:e}),!v&&y&&p.default.createElement(P,{schema:e}),p.default.createElement(D,{schema:e}),p.default.createElement(F,{schema:e}),p.default.createElement(ue,{schema:e})))))))}));var CW=x2e,RW=({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,TW=({schema:e})=>{const t="$vocabulary",{path:r}=On(t),{isExpanded:n,setExpanded:i,setCollapsed:s}=Gi(t),a=$e("Accordion"),o=(0,p.useCallback)((()=>{n?s():i()}),[n,i,s]);return e!=null&&e.$vocabulary?typeof e.$vocabulary!="object"?null:p.default.createElement(Bn.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,kt.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},IW=({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,jW=({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,PW=({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,kW=({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,NW=({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,MW=({schema:e})=>{const t=(e==null?void 0:e.$defs)||{},r="$defs",{path:n}=On(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Gi(r),[o,u]=_i(),c=$e("Accordion"),l=$e("ExpandDeepButton"),f=$e("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(Bn.Provider,{value:n},p.default.createElement(Ri.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,kt.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})))))))))},DW=({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,qW=({schema:e})=>{const t=(e==null?void 0:e.allOf)||[],r=Zt(),n="allOf",{path:i}=On(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Gi(n),[u,c]=_i(),l=$e("Accordion"),f=$e("ExpandDeepButton"),h=$e("JSONSchema"),d=$e("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Bn.Provider,{value:i},p.default.createElement(Ri.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,kt.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,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},FW=({schema:e})=>{const t=(e==null?void 0:e.anyOf)||[],r=Zt(),n="anyOf",{path:i}=On(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Gi(n),[u,c]=_i(),l=$e("Accordion"),f=$e("ExpandDeepButton"),h=$e("JSONSchema"),d=$e("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Bn.Provider,{value:i},p.default.createElement(Ri.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,kt.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,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},$W=({schema:e})=>{const t=(e==null?void 0:e.oneOf)||[],r=Zt(),n="oneOf",{path:i}=On(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Gi(n),[u,c]=_i(),l=$e("Accordion"),f=$e("ExpandDeepButton"),h=$e("JSONSchema"),d=$e("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Bn.Provider,{value:i},p.default.createElement(Ri.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,kt.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,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},LW=({schema:e})=>{const t=Zt(),r=$e("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"}))},BW=({schema:e})=>{const t=Zt(),r=$e("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"}))},UW=({schema:e})=>{const t=Zt(),r=$e("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"}))},VW=({schema:e})=>{const t=Zt(),r=$e("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"}))},zW=({schema:e})=>{const t=(e==null?void 0:e.dependentSchemas)||[],r="dependentSchemas",{path:n}=On(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Gi(r),[o,u]=_i(),c=$e("Accordion"),l=$e("ExpandDeepButton"),f=$e("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(Bn.Provider,{value:n},p.default.createElement(Ri.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,kt.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})))))))))},WW=({schema:e})=>{const t=(e==null?void 0:e.prefixItems)||[],r=Zt(),n="prefixItems",{path:i}=On(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Gi(n),[u,c]=_i(),l=$e("Accordion"),f=$e("ExpandDeepButton"),h=$e("JSONSchema"),d=$e("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Bn.Provider,{value:i},p.default.createElement(Ri.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,kt.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,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},JW=({schema:e})=>{const t=Zt(),r=$e("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"}))},HW=({schema:e})=>{const t=Zt(),r=$e("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"}))},KW=({schema:e})=>{const t=Zt(),r=(e==null?void 0:e.properties)||{},n=Array.isArray(e==null?void 0:e.required)?e.required:[],i=$e("JSONSchema"),{path:s}=On("properties");return Object.keys(r).length===0?null:p.default.createElement(Bn.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,kt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":u})},p.default.createElement(i,{name:a,schema:o,dependentRequired:c}))})))))},GW=({schema:e})=>{const t=(e==null?void 0:e.patternProperties)||{},r=$e("JSONSchema"),{path:n}=On("patternProperties");return Object.keys(t).length===0?null:p.default.createElement(Bn.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})))))))},YW=({schema:e})=>{const t=Zt(),r=$e("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"}))},XW=({schema:e})=>{const t=Zt(),r=$e("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},ZW=({schema:e})=>{const t=Zt(),r=$e("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"}))},QW=({schema:e})=>{const t=Zt(),r=$e("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"}))},eJ=({schema:e,isCircular:t=!1})=>{const r=Zt().getType(e),n=t?" [circular]":"";return p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},tJ=({schema:e})=>{const t=$e("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},rJ=({schema:e})=>{const t=Zt(),r=$e("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 nJ=e=>typeof e=="string"?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,iJ=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""},sJ=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},aJ=e=>typeof e=="boolean",oJ=(e,t)=>e!==null&&typeof e=="object"&&Object.hasOwn(e,t),uJ=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},cJ=e=>e===null||["number","bigint","boolean"].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(cJ).join(", ")}]`:JSON.stringify(e),_p=(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},A2e=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",_=y&&(!d||c<f),b=v&&(!g||l>h);return(d||y)&&(g||v)?`${_?"(":"["}${_?f:c}, ${b?h:l}${b?")":"]"}`:d||y?`${_?">":"≥"} ${_?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=_p("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=_p(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=_p("contained items",e==null?void 0:e.minContains,e==null?void 0:e.maxContains);a!==null&&t.push({scope:"array",value:a});const o=_p("properties",e==null?void 0:e.minProperties,e==null?void 0:e.maxProperties);return o!==null&&t.push({scope:"object",value:o}),t},O2e=(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)):[],Hm=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),lJ=()=>["$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"],fJ=e=>t=>{const r=e().getSchemaKeywords();return Hm(t)?((n,i)=>{const s=new Set(i);return n.filter((a=>!s.has(a)))})(Object.keys(t),r):[]},C2e=(e,t)=>{const r=K.Map.isMap(e);if(!r&&!Hm(e))return!1;const n=s=>t===s||Array.isArray(t)&&t.includes(s),i=r?e.get("type"):e.type;return K.List.isList(i)||Array.isArray(i)?i.some((s=>n(s))):n(i)},R2e=({constraint:e})=>Hm(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 pJ=p.default.memo(R2e),dJ=({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,hJ=({schema:e})=>{const t=Zt(),r=$e("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"}))},mJ=({title:e="",schema:t})=>{const r=Zt(),n=e||r.getTitle(t);return n?p.default.createElement("div",{className:"json-schema-2020-12__title"},n):null},gJ=({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,yJ=({schema:e})=>{const t=Zt(),r=$e("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},vJ=({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"),bJ=({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"),_J=({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"),EJ=({schema:e})=>{const t=(e==null?void 0:e.examples)||[],r=$e("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},SJ=({schema:e})=>{const t=Zt(),r="ExtensionKeywords",{path:n}=On(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Gi(r),[o,u]=_i(),c=$e("Accordion"),l=$e("ExpandDeepButton"),f=$e("JSONViewer"),{showExtensionKeywords:h}=CT(),d=t.getExtensionKeywords(e),g=(0,p.useCallback)((()=>{i?a():s()}),[i,s,a]),y=(0,p.useCallback)(((v,_)=>{_?s({deep:!0}):a({deep:!0})}),[s,a]);return h&&d.length!==0?p.default.createElement(Bn.Provider,{value:n},p.default.createElement(Ri.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,kt.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 $O=({name:e,value:t,className:r})=>{const n=Zt(),{path:i}=On(e),{isExpanded:s,setExpanded:a,setCollapsed:o}=Gi(e),[u,c]=_i(),l=$e("Accordion"),f=$e("ExpandDeepButton"),h=typeof t=="string"||typeof t=="number"||typeof t=="bigint"||typeof t=="boolean"||typeof t=="symbol"||t==null,d=(v=>Hm(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,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return h?p.default.createElement("div",{className:(0,kt.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,kt.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(Bn.Provider,{value:i},p.default.createElement(Ri.Provider,{value:c},p.default.createElement("div",{className:(0,kt.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,kt.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,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement($O,{name:`#${_}`,value:v,className:r})))):Object.entries(t).map((([v,_])=>p.default.createElement("li",{key:v,className:"json-schema-2020-12-property"},p.default.createElement($O,{name:v,value:_,className:r})))))))))};var wJ=$O,xJ=({expanded:e=!1,children:t,onChange:r})=>{const n=$e("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,kt.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)))},AJ=({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")},OJ=()=>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 CJ=(e,t={})=>{const r={components:{JSONSchema:CW,Keyword$schema:RW,Keyword$vocabulary:TW,Keyword$id:IW,Keyword$anchor:jW,Keyword$dynamicAnchor:PW,Keyword$ref:kW,Keyword$dynamicRef:NW,Keyword$defs:MW,Keyword$comment:DW,KeywordAllOf:qW,KeywordAnyOf:FW,KeywordOneOf:$W,KeywordNot:LW,KeywordIf:BW,KeywordThen:UW,KeywordElse:VW,KeywordDependentSchemas:zW,KeywordPrefixItems:WW,KeywordItems:JW,KeywordContains:HW,KeywordProperties:KW,KeywordPatternProperties:GW,KeywordAdditionalProperties:YW,KeywordPropertyNames:XW,KeywordUnevaluatedItems:ZW,KeywordUnevaluatedProperties:QW,KeywordType:eJ,KeywordEnum:tJ,KeywordConst:rJ,KeywordConstraint:pJ,KeywordDependentRequired:dJ,KeywordContentSchema:hJ,KeywordTitle:mJ,KeywordDescription:gJ,KeywordDefault:yJ,KeywordDeprecated:vJ,KeywordReadOnly:bJ,KeywordWriteOnly:_J,KeywordExamples:EJ,ExtensionKeywords:SJ,JSONViewer:wJ,Accordion:xJ,ExpandDeepButton:AJ,ChevronRightIcon:OJ,...t.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:nJ,getTitle:iJ(Zt),getType:sJ(Zt),isBooleanJSONSchema:aJ,hasKeyword:oJ,isExpandable:uJ(Zt),stringify:cJ,stringifyConstraints:A2e,getDependentRequired:O2e,getSchemaKeywords:lJ,getExtensionKeywords:fJ(Zt),...t.fn},state:{paths:{}}},n=i=>p.default.createElement(so.Provider,{value:r},p.default.createElement(e,i));return n.contexts={JSONSchemaContext:so},n.displayName=e.displayName,n},T2e=({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"),_=n("JSONSchema202012KeywordAnyOf"),b=n("JSONSchema202012KeywordOneOf"),S=n("JSONSchema202012KeywordNot"),w=n("JSONSchema202012KeywordIf"),E=n("JSONSchema202012KeywordThen"),A=n("JSONSchema202012KeywordElse"),R=n("JSONSchema202012KeywordDependentSchemas"),I=n("JSONSchema202012KeywordPrefixItems"),O=n("JSONSchema202012KeywordItems"),D=n("JSONSchema202012KeywordContains"),P=n("JSONSchema202012KeywordProperties"),F=n("JSONSchema202012KeywordPatternProperties"),M=n("JSONSchema202012KeywordAdditionalProperties"),G=n("JSONSchema202012KeywordPropertyNames"),ee=n("JSONSchema202012KeywordUnevaluatedItems"),H=n("JSONSchema202012KeywordUnevaluatedProperties"),Q=n("JSONSchema202012KeywordType"),re=n("JSONSchema202012KeywordEnum"),ne=n("JSONSchema202012KeywordConst"),B=n("JSONSchema202012KeywordConstraint"),J=n("JSONSchema202012KeywordDependentRequired"),ie=n("JSONSchema202012KeywordContentSchema"),oe=n("JSONSchema202012KeywordTitle"),ce=n("JSONSchema202012KeywordDescription"),te=n("JSONSchema202012KeywordDefault"),z=n("JSONSchema202012KeywordDeprecated"),V=n("JSONSchema202012KeywordReadOnly"),fe=n("JSONSchema202012KeywordWriteOnly"),me=n("JSONSchema202012KeywordExamples"),Ce=n("JSONSchema202012ExtensionKeywords"),Ne=n("JSONSchema202012JSONViewer"),he=n("JSONSchema202012Accordion"),je=n("JSONSchema202012ExpandDeepButton"),Be=n("JSONSchema202012ChevronRightIcon");return CJ(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:_,KeywordOneOf:b,KeywordNot:S,KeywordIf:w,KeywordThen:E,KeywordElse:A,KeywordDependentSchemas:R,KeywordPrefixItems:I,KeywordItems:O,KeywordContains:D,KeywordProperties:P,KeywordPatternProperties:F,KeywordAdditionalProperties:M,KeywordPropertyNames:G,KeywordUnevaluatedItems:ee,KeywordUnevaluatedProperties:H,KeywordType:Q,KeywordEnum:re,KeywordConst:ne,KeywordConstraint:B,KeywordDependentRequired:J,KeywordContentSchema:ie,KeywordTitle:oe,KeywordDescription:ce,KeywordDefault:te,KeywordDeprecated:z,KeywordReadOnly:V,KeywordWriteOnly:fe,KeywordExamples:me,ExtensionKeywords:Ce,JSONViewer:Ne,Accordion:he,ExpandDeepButton:je,ChevronRightIcon:Be,...r.components},config:{showExtensionKeywords:s.showExtensions,...r.config},fn:{...r.fn}})};var RJ=({getSystem:e,fn:t})=>{const r=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:CW,JSONSchema202012Keyword$schema:RW,JSONSchema202012Keyword$vocabulary:TW,JSONSchema202012Keyword$id:IW,JSONSchema202012Keyword$anchor:jW,JSONSchema202012Keyword$dynamicAnchor:PW,JSONSchema202012Keyword$ref:kW,JSONSchema202012Keyword$dynamicRef:NW,JSONSchema202012Keyword$defs:MW,JSONSchema202012Keyword$comment:DW,JSONSchema202012KeywordAllOf:qW,JSONSchema202012KeywordAnyOf:FW,JSONSchema202012KeywordOneOf:$W,JSONSchema202012KeywordNot:LW,JSONSchema202012KeywordIf:BW,JSONSchema202012KeywordThen:UW,JSONSchema202012KeywordElse:VW,JSONSchema202012KeywordDependentSchemas:zW,JSONSchema202012KeywordPrefixItems:WW,JSONSchema202012KeywordItems:JW,JSONSchema202012KeywordContains:HW,JSONSchema202012KeywordProperties:KW,JSONSchema202012KeywordPatternProperties:GW,JSONSchema202012KeywordAdditionalProperties:YW,JSONSchema202012KeywordPropertyNames:XW,JSONSchema202012KeywordUnevaluatedItems:ZW,JSONSchema202012KeywordUnevaluatedProperties:QW,JSONSchema202012KeywordType:eJ,JSONSchema202012KeywordEnum:tJ,JSONSchema202012KeywordConst:rJ,JSONSchema202012KeywordConstraint:pJ,JSONSchema202012KeywordDependentRequired:dJ,JSONSchema202012KeywordContentSchema:hJ,JSONSchema202012KeywordTitle:mJ,JSONSchema202012KeywordDescription:gJ,JSONSchema202012KeywordDefault:yJ,JSONSchema202012KeywordDeprecated:vJ,JSONSchema202012KeywordReadOnly:bJ,JSONSchema202012KeywordWriteOnly:_J,JSONSchema202012KeywordExamples:EJ,JSONSchema202012ExtensionKeywords:SJ,JSONSchema202012JSONViewer:wJ,JSONSchema202012Accordion:xJ,JSONSchema202012ExpandDeepButton:AJ,JSONSchema202012ChevronRightIcon:OJ,withJSONSchema202012Context:CJ,withJSONSchema202012SystemContext:T2e(e()),JSONSchema202012PathContext:()=>Bn,JSONSchema202012LevelContext:()=>Ri},fn:{upperFirst:nJ,jsonSchema202012:{getTitle:iJ(r),getType:sJ(r),isExpandable:uJ(r),isBooleanJSONSchema:aJ,hasKeyword:oJ,useFn:Zt,useConfig:CT,useComponent:$e,useIsExpanded:Gi,usePath:On,useLevel:_i,getSchemaKeywords:lJ,getExtensionKeywords:fJ(r),hasSchemaType:C2e}}}},I2e=(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),j2e=()=>{throw new Error("Not implemented")};const Km=e=>Jo()(e),Fp=e=>e.at(0),Wa=e=>typeof e=="boolean",Mi=e=>(0,Fs.default)(e),Is=e=>Wa(e)||Mi(e);var Gm=class{constructor(){X(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]}},TJ=()=>0,IJ=()=>0,P2e=()=>.1,k2e=()=>.1,N2e=()=>"user@example.com",M2e=()=>"실례@example.com",D2e=()=>"example.com",q2e=()=>"실례.com",F2e=()=>"198.51.100.42",$2e=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",L2e=()=>"https://example.com/",B2e=()=>"path/index.html",U2e=()=>"https://실례.com/",V2e=()=>"path/실례.html",z2e=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",W2e=()=>"https://example.com/dictionary/{term:1}/{term}",J2e=()=>"/a/b/c",H2e=()=>"1/0",K2e=()=>new Date().toISOString(),G2e=()=>new Date().toISOString().substring(0,10),Y2e=()=>new Date().toISOString().substring(11),X2e=()=>"P3D",Z2e=()=>"********",Q2e=()=>"^[a-z]+$",Yc,y6;const $p=new(y6=class extends Gm{constructor(){super(...arguments);As(this,Yc,{int32:TJ,int64:IJ,float:P2e,double:k2e,email:N2e,"idn-email":M2e,hostname:D2e,"idn-hostname":q2e,ipv4:F2e,ipv6:$2e,uri:L2e,"uri-reference":B2e,iri:U2e,"iri-reference":V2e,uuid:z2e,"uri-template":W2e,"json-pointer":J2e,"relative-json-pointer":H2e,"date-time":K2e,date:G2e,time:Y2e,duration:X2e,password:Z2e,regex:Q2e});X(this,"data",{...hr(this,Yc)})}get defaults(){return{...hr(this,Yc)}}},Yc=new WeakMap,y6),jJ=(e,t)=>typeof t=="function"?$p.register(e,t):t===null?$p.unregister(e):$p.get(e);jJ.getDefaults=()=>$p.defaults;var Ym=jJ,eCe=Ee(287).Buffer,tCe=e=>eCe.from(e).toString("ascii"),rCe=Ee(287).Buffer,nCe=e=>rCe.from(e).toString("utf8"),iCe=Ee(287).Buffer,sCe=e=>iCe.from(e).toString("binary"),aCe=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
|
|
341
|
-
`;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},oCe=Ee(287).Buffer,uCe=e=>oCe.from(e).toString("hex"),cCe=Ee(287).Buffer,lCe=e=>{const t=cCe.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},fCe=Ee(287).Buffer,pCe=e=>fCe.from(e).toString("base64"),dCe=Ee(287).Buffer,hCe=e=>dCe.from(e).toString("base64url"),Xc,v6;const Lp=new(v6=class extends Gm{constructor(){super(...arguments);As(this,Xc,{"7bit":tCe,"8bit":nCe,binary:sCe,"quoted-printable":aCe,base16:uCe,base32:lCe,base64:pCe,base64url:hCe});X(this,"data",{...hr(this,Xc)})}get defaults(){return{...hr(this,Xc)}}},Xc=new WeakMap,v6),PJ=(e,t)=>typeof t=="function"?Lp.register(e,t):t===null?Lp.unregister(e):Lp.get(e);PJ.getDefaults=()=>Lp.defaults;var kJ=PJ,mCe={"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"},gCe={"image/*":()=>Km(25).toString("binary")},yCe={"audio/*":()=>Km(25).toString("binary")},vCe={"video/*":()=>Km(25).toString("binary")},bCe={"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/*":()=>Km(25).toString("binary")},Zc,b6;const $o=new(b6=class extends Gm{constructor(){super(...arguments);As(this,Zc,{...mCe,...gCe,...yCe,...vCe,...bCe});X(this,"data",{...hr(this,Zc)})}get defaults(){return{...hr(this,Zc)}}},Zc=new WeakMap,b6),NJ=(e,t)=>{if(typeof t=="function")return $o.register(e,t);if(t===null)return $o.unregister(e);const r=e.split(";").at(0),n=`${r.split("/").at(0)}/*`;return $o.get(e)||$o.get(r)||$o.get(n)};NJ.getDefaults=()=>$o.defaults;var MJ=NJ;const Ex=(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 _Ce=(e,{sample:t}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:i}=e,{pattern:s,format:a}=e,o=kJ(r)||zz.default;let u;return u=typeof s=="string"?Ex((c=>{try{const l=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),f=c.replace(l,"100"),h=new lz.default(f);return h.max=100,h.gen()}catch{return"string"}})(s),e):typeof a=="string"?(c=>{const{format:l}=c,f=Ym(l);return typeof f=="function"?f(c):"string"})(e):Is(i)&&typeof n=="string"&&t!==void 0?Array.isArray(t)||typeof t=="object"?JSON.stringify(t):Ex(String(t),e):typeof n=="string"?(c=>{const{contentMediaType:l}=c,f=MJ(l);return typeof f=="function"?f(c):"string"})(e):Ex("string",e),o(u)};const DJ=(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 ECe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Ym(i);return typeof s=="function"?s(n):0})(e):0,DJ(r,e)},SCe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Ym(i);if(typeof s=="function")return s(n);switch(i){case"int32":return TJ();case"int64":return IJ()}return 0})(e):0,DJ(r,e)},wCe=e=>typeof e.default!="boolean"||e.default,Ep=new Proxy({array:I2e,object:j2e,string:_Ce,number:ECe,integer:SCe,boolean:wCe,null:()=>null},{get:(e,t)=>typeof t=="string"&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`});const l6=["array","object","number","integer","string","boolean","null"],vc=e=>{if(!Mi(e))return!1;const{examples:t,example:r,default:n}=e;return!!(Array.isArray(t)&&t.length>=1)||n!==void 0||r!==void 0},LO=e=>{if(!Mi(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},wd={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"]};wd.number=wd.integer;const Sx="string",f6=e=>e===void 0?null:e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e,Bp=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=Fp(t.length>0?t:e);if(l6.includes(r))return r}}return l6.includes(e)?e:null},BO=(e,t=new WeakSet)=>{if(!Mi(e)||t.has(e))return Sx;t.add(e);let{type:r,const:n}=e;if(r=Bp(r),typeof r!="string"){const i=Object.keys(wd);e:for(let s=0;s<i.length;s+=1){const a=i[s],o=wd[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=f6(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=>BO(f,t)));return Bp(l)}return null},s=i("allOf"),a=i("anyOf"),o=i("oneOf"),u=e.not?BO(e.not,t):null;(s||a||o||u)&&(r=Bp([s,a,o,u].filter(Boolean)))}if(typeof r!="string"&&vc(e)){const i=LO(e),s=f6(i);r=typeof s=="string"?s:r}return t.delete(e),r||Sx},p6=e=>BO(e),wx=e=>Wa(e)?(t=>t===!1?{not:{}}:{})(e):Mi(e)?e:{},bc=(e,t,r={})=>{if(Wa(e)&&e===!0)return!0;if(Wa(e)&&e===!1)return!1;if(Wa(t)&&t===!0)return!0;if(Wa(t)&&t===!1)return!1;if(!Is(e))return t;if(!Is(t))return e;const n={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&typeof t.type=="string"){const i=wo(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]=bc(o,a,r)}}return Is(t.items)&&Is(e.items)&&(n.items=bc(e.items,t.items,r)),Is(t.contains)&&Is(e.contains)&&(n.contains=bc(e.contains,t.contains,r)),Is(t.contentSchema)&&Is(e.contentSchema)&&(n.contentSchema=bc(e.contentSchema,t.contentSchema,r)),n};var Lo=bc;const Br=(e,t={},r=void 0,n=!1)=>{var P,F,M,G,ee,H,Q,re,ne;if(e==null&&r===void 0)return;typeof(e==null?void 0:e.toJS)=="function"&&(e=e.toJS()),e=wx(e);let i=r!==void 0||vc(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 B=wx(Fp(s?e.oneOf:e.anyOf));!(e=Lo(e,B,t)).xml&&B.xml&&(e.xml=B.xml),vc(e)&&vc(B)&&(i=!0)}const o={};let{xml:u,properties:c,additionalProperties:l,items:f,contains:h}=e||{},d=p6(e),{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:_,prefix:b,namespace:S}=u,w={};Object.hasOwn(e,"type")||(e.type=d),n&&(_=_||"notagname",v=(b?`${b}:`:"")+_,S)&&(o[b?`xmlns:${b}`:"xmlns"]=S),n&&(w[v]=[]);const E=za(c);let A,R=0;const I=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&R>=e.maxProperties,O=B=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!I()&&(!(J=>!Array.isArray(e.required)||e.required.length===0||!e.required.includes(J))(B)||e.maxProperties-R-(()=>{if(!Array.isArray(e.required)||e.required.length===0)return 0;let J=0;return n?e.required.forEach((ie=>J+=w[ie]===void 0?0:1)):e.required.forEach((ie=>{var oe;J+=((oe=w[v])==null?void 0:oe.find((ce=>ce[ie]!==void 0)))===void 0?0:1})),e.required.length-J})()>0);if(A=n?(B,J=void 0)=>{if(e&&E[B]){if(E[B].xml=E[B].xml||{},E[B].xml.attribute){const oe=Array.isArray(E[B].enum)?Fp(E[B].enum):void 0;if(vc(E[B]))o[E[B].xml.name||B]=LO(E[B]);else if(oe!==void 0)o[E[B].xml.name||B]=oe;else{const ce=wx(E[B]),te=p6(ce),z=E[B].xml.name||B;if(te==="array"){const V=Br(E[B],t,J,!1);o[z]=V.map((fe=>(0,Fs.default)(fe)?"UnknownTypeObject":Array.isArray(fe)?"UnknownTypeArray":fe)).join(" ")}else o[z]=te==="object"?"UnknownTypeObject":Ep[te](ce)}return}E[B].xml.name=E[B].xml.name||B}else E[B]||l===!1||(E[B]={xml:{name:B}});let ie=Br(E[B],t,J,n);O(B)&&(R++,Array.isArray(ie)?w[v]=w[v].concat(ie):w[v].push(ie))}:(B,J)=>{var ie;if(O(B)){if((0,Fs.default)((ie=e.discriminator)==null?void 0:ie.mapping)&&e.discriminator.propertyName===B&&typeof e.$$ref=="string"){for(const oe in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[oe])!==-1){w[B]=oe;break}}else w[B]=Br(E[B],t,J,n);R++}},i){let B;if(B=r!==void 0?r:LO(e),!n){if(typeof B=="number"&&d==="string")return`${B}`;if(typeof B!="string"||d==="string")return B;try{return JSON.parse(B)}catch{return B}}if(d==="array"){if(!Array.isArray(B)){if(typeof B=="string")return B;B=[B]}let J=[];return Mi(f)&&(f.xml=f.xml||u||{},f.xml.name=f.xml.name||u.name,J=B.map((ie=>Br(f,t,ie,n)))),Mi(h)&&(h.xml=h.xml||u||{},h.xml.name=h.xml.name||u.name,J=[Br(h,t,void 0,n),...J]),J=Ep.array(e,{sample:J}),u.wrapped?(w[v]=J,(0,as.default)(o)||w[v].push({_attr:o})):w=J,w}if(d==="object"){if(typeof B=="string")return B;for(const J in B)Object.hasOwn(B,J)&&((P=E[J])!=null&&P.readOnly&&!g||(F=E[J])!=null&&F.writeOnly&&!y||((G=(M=E[J])==null?void 0:M.xml)!=null&&G.attribute?o[E[J].xml.name||J]=B[J]:A(J,B[J])));return(0,as.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,as.default)(o)?B:[{_attr:o},B],w}if(d==="array"){let B=[];if(Mi(h))if(n&&(h.xml=h.xml||e.xml||{},h.xml.name=h.xml.name||u.name),Array.isArray(h.anyOf)){const{anyOf:J,...ie}=f;B.push(...h.anyOf.map((oe=>Br(Lo(oe,ie,t),t,void 0,n))))}else if(Array.isArray(h.oneOf)){const{oneOf:J,...ie}=f;B.push(...h.oneOf.map((oe=>Br(Lo(oe,ie,t),t,void 0,n))))}else{if(!(!n||n&&u.wrapped))return Br(h,t,void 0,n);B.push(Br(h,t,void 0,n))}if(Mi(f))if(n&&(f.xml=f.xml||e.xml||{},f.xml.name=f.xml.name||u.name),Array.isArray(f.anyOf)){const{anyOf:J,...ie}=f;B.push(...f.anyOf.map((oe=>Br(Lo(oe,ie,t),t,void 0,n))))}else if(Array.isArray(f.oneOf)){const{oneOf:J,...ie}=f;B.push(...f.oneOf.map((oe=>Br(Lo(oe,ie,t),t,void 0,n))))}else{if(!(!n||n&&u.wrapped))return Br(f,t,void 0,n);B.push(Br(f,t,void 0,n))}return B=Ep.array(e,{sample:B}),n&&u.wrapped?(w[v]=B,(0,as.default)(o)||w[v].push({_attr:o}),w):B}if(d==="object"){for(let B in E)Object.hasOwn(E,B)&&((ee=E[B])!=null&&ee.deprecated||(H=E[B])!=null&&H.readOnly&&!g||(Q=E[B])!=null&&Q.writeOnly&&!y||A(B));if(n&&o&&w[v].push({_attr:o}),I())return w;if(Wa(l)&&l)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},R++;else if(Mi(l)){const B=l,J=Br(B,t,void 0,n);if(n&&typeof((re=B==null?void 0:B.xml)==null?void 0:re.name)=="string"&&((ne=B==null?void 0:B.xml)==null?void 0:ne.name)!=="notagname")w[v].push(J);else{const ie=(B==null?void 0:B["x-additionalPropertiesName"])||"additionalProp",oe=Number.isInteger(e.minProperties)&&e.minProperties>0&&R<e.minProperties?e.minProperties-R:3;for(let ce=1;ce<=oe;ce++){if(I())return w;if(n){const te={};te[ie+ce]=J.notagname,w[v].push(te)}else w[ie+ce]=J;R++}}}return w}let D;if(e.const!==void 0)D=e.const;else if(e&&Array.isArray(e.enum))D=Fp(wo(e.enum));else{const B=Mi(e.contentSchema)?Br(e.contentSchema,t,void 0,n):void 0;D=Ep[d](e,{sample:B})}return n?(w[v]=(0,as.default)(o)?D:[{_attr:o},D],w):D},qJ=(e,t,r)=>{const n=Br(e,t,r,!0);if(n)return typeof n=="string"?n:cz()(n,{declaration:!0,indent:" "})},FJ=(e,t,r)=>Br(e,t,r,!1),$J=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],xCe=Rf(qJ,$J),ACe=Rf(FJ,$J);var Qc,_6;const d6=new(_6=class extends Gm{constructor(){super(...arguments);As(this,Qc,{});X(this,"data",{...hr(this,Qc)})}get defaults(){return{...hr(this,Qc)}}},Qc=new WeakMap,_6);var OCe=(e,t)=>(t!==void 0&&d6.register(e,t),d6.get(e));const CCe=[{when:/json/,shouldStringifyTypes:["string"]}],RCe=["object"];var TCe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.memoizedSampleFromSchema(t,r,i),o=typeof a,u=CCe.reduce(((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c),RCe);return(0,PV.default)(u,(c=>c===o))?JSON.stringify(a,null,2):a},ICe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.getJsonSampleSchema(t,r,n,i);let o;try{o=ks.default.dump(ks.default.load(a),{lineWidth:-1},{schema:ks.JSON_SCHEMA}),o[o.length-1]===`
|
|
342
|
-
`&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},jCe=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"?>
|
|
343
|
-
<!-- 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)},PCe=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)},LJ=({getSystem:e})=>{const t=TCe(e),r=ICe(e),n=jCe(e),i=PCe(e);return{fn:{jsonSchema202012:{sampleFromSchema:FJ,sampleFromSchemaGeneric:Br,sampleOptionAPI:OCe,sampleEncoderAPI:kJ,sampleFormatAPI:Ym,sampleMediaTypeAPI:MJ,createXMLExample:qJ,memoizedSampleFromSchema:ACe,memoizedCreateXMLExample:xCe,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Lo,foldType:Bp}}}};function BJ(){return[_W,qO,RJ,LJ,E2e]}var kCe=e=>()=>({fn:e.fn,components:e.components}),NCe=e=>{const t=Jc()({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}},MCe=()=>e=>{const t=e.queryConfigEnabled?(()=>{const r=new URLSearchParams(sr.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,Dz.default)(r,n,i),r)),{})},DCe=({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},qCe=()=>()=>{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},mr=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:[BJ],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/"],uncaughtExceptionHandler:null}),FCe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return b_e}}),$Ce=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return E_e}}),Sp=(e,t=[])=>Array.isArray(e)?e:t,pi=(e,t=!1)=>e===!0||e==="true"||e===1||e==="1"||e!==!1&&e!=="false"&&e!==0&&e!=="0"&&t,LCe=e=>e===null||e==="null"?null:e,BCe=e=>{const t=String(e);return pi(e,t)},h6=(e,t)=>typeof e=="function"?e:t,UCe=e=>Array.isArray(e)?e:null,wp=e=>typeof e=="function"?e:null,xx=e=>e===null||e==="null"?null:String(e),Ax=(e,t=-1)=>{const r=parseInt(e,10);return Number.isNaN(r)?t:r},Do=(e,t={})=>(0,Fs.default)(e)?e:t,m6=e=>typeof e=="function"||typeof e=="string"?e:null,qo=e=>String(e),VCe=(e,t)=>(0,Fs.default)(e)?e:e===!1||e==="false"||e===0||e==="0"?{activated:!1}:t,zCe=e=>e===void 0||e==="undefined"?void 0:String(e),UJ={components:{typeCaster:Do},configs:{typeCaster:Do},configUrl:{typeCaster:xx},deepLinking:{typeCaster:pi,defaultValue:mr.deepLinking},defaultModelExpandDepth:{typeCaster:Ax,defaultValue:mr.defaultModelExpandDepth},defaultModelRendering:{typeCaster:qo},defaultModelsExpandDepth:{typeCaster:Ax,defaultValue:mr.defaultModelsExpandDepth},displayOperationId:{typeCaster:pi,defaultValue:mr.displayOperationId},displayRequestDuration:{typeCaster:pi,defaultValue:mr.displayRequestDuration},docExpansion:{typeCaster:qo},dom_id:{typeCaster:xx},domNode:{typeCaster:LCe},fileUploadMediaTypes:{typeCaster:Sp,defaultValue:mr.fileUploadMediaTypes},filter:{typeCaster:BCe},fn:{typeCaster:Do},initialState:{typeCaster:Do},layout:{typeCaster:qo},maxDisplayedTags:{typeCaster:Ax,defaultValue:mr.maxDisplayedTags},modelPropertyMacro:{typeCaster:wp},oauth2RedirectUrl:{typeCaster:zCe},onComplete:{typeCaster:wp},operationsSorter:{typeCaster:m6},paramaterMacro:{typeCaster:wp},persistAuthorization:{typeCaster:pi,defaultValue:mr.persistAuthorization},plugins:{typeCaster:Sp,defaultValue:mr.plugins},presets:{typeCaster:Sp,defaultValue:mr.presets},requestInterceptor:{typeCaster:h6,defaultValue:mr.requestInterceptor},requestSnippets:{typeCaster:Do,defaultValue:mr.requestSnippets},requestSnippetsEnabled:{typeCaster:pi,defaultValue:mr.requestSnippetsEnabled},responseInterceptor:{typeCaster:h6,defaultValue:mr.responseInterceptor},showCommonExtensions:{typeCaster:pi,defaultValue:mr.showCommonExtensions},showExtensions:{typeCaster:pi,defaultValue:mr.showExtensions},showMutatedRequest:{typeCaster:pi,defaultValue:mr.showMutatedRequest},spec:{typeCaster:Do,defaultValue:mr.spec},supportedSubmitMethods:{typeCaster:Sp,defaultValue:mr.supportedSubmitMethods},syntaxHighlight:{typeCaster:VCe,defaultValue:mr.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:pi,defaultValue:mr.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:qo},tagsSorter:{typeCaster:m6},tryItOutEnabled:{typeCaster:pi,defaultValue:mr.tryItOutEnabled},url:{typeCaster:qo},urls:{typeCaster:UCe},"urls.primaryName":{typeCaster:qo},validatorUrl:{typeCaster:xx},withCredentials:{typeCaster:pi,defaultValue:mr.withCredentials},uncaughtExceptionHandler:{typeCaster:wp}},VJ=e=>Object.entries(UJ).reduce(((t,[r,{typeCaster:n,defaultValue:i}])=>{if((0,FCe.default)(t,r)){const s=n((0,AO.default)(t,r),i);t=(0,$Ce.default)(r,s,t)}return t}),{...e}),WCe=(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=Jc()(e,...i);return r!==Symbol.for("domNode")&&(s.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(s.urls)&&(s.urls.primaryName=n),VJ(s)};function fa(e){const t=MCe()(e),r=qCe()(),n=fa.config.merge({},fa.config.defaults,r,e,t),i=NCe(n),s=kCe(n),a=new qV(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 DCe({url:f,system:o})(n),d=fa.config.merge({},n,h,t);u(d),h!==null&&c(d),l(d)})(),o):(u(n),c(n),l(n),o)}fa.System=qV,fa.config={defaults:mr,merge:WCe,typeCast:VJ,typeCastMappings:UJ},fa.presets={base:_W,apis:BJ},fa.plugins={Auth:$V,Configs:LV,DeepLining:BV,Err:VV,Filter:zV,Icons:WV,JSONSchema5:uz,JSONSchema5Samples:mz,JSONSchema202012:RJ,JSONSchema202012Samples:LJ,Layout:HV,Logs:KV,OpenAPI30:qO,OpenAPI31:qO,OnComplete:GV,RequestSnippets:ZV,Spec:Fz,SwaggerClient:Lz,Util:Bz,View:Wz,ViewLegacy:Jz,DownloadUrl:Hz,SyntaxHighlighting:Gz,Versions:Yz,SafeRender:eW};var JCe=fa,ha=IV.A;const{config:Yt}=ha,g6=e=>{const t=Lt.useRef();return Lt.useEffect(()=>{t.current=e},[e]),t.current},kf=({spec:e=Yt.defaults.spec,url:t=Yt.defaults.url,layout:r=Yt.defaults.layout,requestInterceptor:n=Yt.defaults.requestInterceptor,responseInterceptor:i=Yt.defaults.responseInterceptor,supportedSubmitMethods:s=Yt.defaults.supportedSubmitMethods,queryConfigEnabled:a=Yt.defaults.queryConfigEnabled,plugins:o=Yt.defaults.plugins,displayOperationId:u=Yt.defaults.displayOperationId,showMutatedRequest:c=Yt.defaults.showMutatedRequest,docExpansion:l=Yt.defaults.docExpansion,defaultModelExpandDepth:f=Yt.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=Yt.defaults.defaultModelsExpandDepth,defaultModelRendering:d=Yt.defaults.defaultModelRendering,presets:g=Yt.defaults.presets,deepLinking:y=Yt.defaults.deepLinking,showExtensions:v=Yt.defaults.showExtensions,showCommonExtensions:_=Yt.defaults.showCommonExtensions,filter:b=Yt.defaults.filter,requestSnippetsEnabled:S=Yt.defaults.requestSnippetsEnabled,requestSnippets:w=Yt.defaults.requestSnippets,tryItOutEnabled:E=Yt.defaults.tryItOutEnabled,displayRequestDuration:A=Yt.defaults.displayRequestDuration,withCredentials:R=Yt.defaults.withCredentials,persistAuthorization:I=Yt.defaults.persistAuthorization,oauth2RedirectUrl:O=Yt.defaults.oauth2RedirectUrl,onComplete:D=null,initialState:P=Yt.defaults.initialState,uncaughtExceptionHandler:F=Yt.defaults.uncaughtExceptionHandler})=>{const[M,G]=Lt.useState(null),ee=M==null?void 0:M.getComponent("App","root"),H=g6(e),Q=g6(t);return Lt.useEffect(()=>{const re=ha({plugins:o,spec:e,url:t,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:d,presets:[ha.presets.apis,...g],requestInterceptor:n,responseInterceptor:i,onComplete:()=>{typeof D=="function"&&D(re)},docExpansion:l,supportedSubmitMethods:s,queryConfigEnabled:a,defaultModelExpandDepth:f,displayOperationId:u,tryItOutEnabled:E,displayRequestDuration:A,requestSnippetsEnabled:S,requestSnippets:w,showMutatedRequest:c,deepLinking:y,showExtensions:v,showCommonExtensions:_,filter:b,persistAuthorization:I,withCredentials:R,initialState:P,uncaughtExceptionHandler:F,...typeof O=="string"?{oauth2RedirectUrl:O}:{}});G(re)},[]),Lt.useEffect(()=>{if(M){const re=M.specSelectors.url();(t!==re||t!==Q)&&(M.specActions.updateSpec(""),t&&(M.specActions.updateUrl(t),M.specActions.download(t)))}},[M,t]),Lt.useEffect(()=>{if(M){const re=M.specSelectors.specStr();if(e&&e!==ha.config.defaults.spec&&(e!==re||e!==H)){const ne=typeof e=="object"?JSON.stringify(e):e;M.specActions.updateSpec(ne)}}},[M,e]),ee?Lt.createElement(ee,null):null};kf.System=ha.System;kf.presets=ha.presets;kf.plugins=ha.plugins;kf.config=ha.config;class HCe extends Lt.Component{render(){const{getComponent:t}=this.props,r=t("operations",!0);return Tr.jsx("div",{className:"swagger-ui",children:Tr.jsx(r,{})})}}const KCe=()=>({components:{OperationsLayout:HCe}}),GCe=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}}}}}),YCe=({inputUrl:e,inputJSON:t,className:r,format:n,nodeKey:i,editor:s,create:a})=>{const{t:o}=aH.useTranslation(),[u,c]=Lt.useState(""),[l,f]=Lt.useState(""),[h,d]=Lt.useState(!1),[g,y]=Lt.useState(!1),[v,_]=Lt.useState(!1),[b,S]=Lt.useState(!0);Lt.useEffect(()=>{a&&_(!0)},[a]),Lt.useEffect(()=>{v?We.blockScroll():We.unblockScroll()},[v]);const w=A=>{A.preventDefault(),s.update(()=>{const R=We.us(i);We.$isSwaggerNode(R)&&(_(!1),R.setSrc(u||l),R.setJSON(l))})},{operation:E}=Lt.useMemo(()=>e?{operation:new URL(e).hash.split("/").pop()||""}:{operation:""},[e,t]);return e?Tr.jsxs(Jn.Box,{pos:"relative",mih:45,children:[Tr.jsx(Jn.LoadingOverlay,{visible:b,zIndex:1e3,overlayProps:{blur:4},loaderProps:{size:"xs"}}),Tr.jsx(kf,{url:t,onComplete:()=>{S(!1)},responseInterceptor:A=>(A.ok||(S(!1),s.update(()=>{const R=We.us(i);We.$isSwaggerNode(R)&&(_(!1),R.setSrc(""),R.setJSON(""))}),uH.showErrorNotification({message:o("editor.validation.swaggerUnavailable")}),S(!0)),A),plugins:[GCe({operation:E}),KCe],layout:"OperationsLayout"})]}):Tr.jsxs(Jn.Popover,{width:400,position:"bottom",shadow:"md",opened:v,onChange:_,defaultOpened:!0,withinPortal:!0,children:[Tr.jsx(Jn.Popover.Target,{children:Tr.jsx(Jn.Flex,{w:"100%",children:Tr.jsx(We.p,{className:r,format:n,nodeKey:i,children:Tr.jsx(We.EmptyNodeButton,{title:o("editor.swagger.add"),icon:"api",onClick:()=>_(A=>!A),nodeKey:i})})})}),Tr.jsx(Jn.Popover.Dropdown,{"aria-hidden":!v,tabIndex:v?0:-1,children:Tr.jsx("form",{onSubmit:w,children:Tr.jsxs(Jn.Stack,{gap:16,children:[Tr.jsx(Jn.Box,{children:Tr.jsx(Jn.TextInput,{maxLength:500,placeholder:"https://api.example.com/v3/swagger.json","data-autofocus":!0,type:"url",value:l,rightSection:l?null:Tr.jsx("span",{style:{color:"red"},children:"*"}),onChange:A=>{f(A.currentTarget.value),y(!1)}})}),Tr.jsx(Jn.Box,{children:Tr.jsx(Jn.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)}})}),Tr.jsx(Jn.Center,{children:Tr.jsx(Jn.Button,{w:"100%",type:"submit",disabled:!l,children:o("editor.video.apply")})})]})})})]})};exports.default=YCe;
|