@open-wa/api 5.13.0 → 5.14.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.
Files changed (138) hide show
  1. package/dashboard-neo/dist/assets/AgentScalarDrawer.vue-FgV2bvw3.js +17 -0
  2. package/dashboard-neo/dist/assets/DeveloperToolsPanel.vue-B84rTUOX.js +1 -0
  3. package/dashboard-neo/dist/assets/ExploreScalarModal.vue-aMynzJW3.js +1 -0
  4. package/dashboard-neo/dist/assets/ScalarIconMagnifyingGlass-DG_XKbvk.js +1 -0
  5. package/dashboard-neo/dist/assets/ScalarModal-D0AYYqNp.js +1 -0
  6. package/dashboard-neo/dist/assets/ScalarVirtualText.vue-LeMF9PcH.js +2 -0
  7. package/dashboard-neo/dist/assets/SchemaLanguage.vue-DoLH3juK.js +14 -0
  8. package/dashboard-neo/dist/assets/__vite-browser-external-BLGeRQCw.js +1 -0
  9. package/dashboard-neo/dist/assets/_plugin-vue_export-helper-DNHJktYG.js +1 -0
  10. package/dashboard-neo/dist/assets/{basic-shape-diamond.svg-Bu9cSItR.js → basic-shape-diamond.svg-BbjRNovc.js} +1 -1
  11. package/dashboard-neo/dist/assets/{basic-shape-hexagon.svg-BJoiyAUL.js → basic-shape-hexagon.svg-CXuGam44.js} +1 -1
  12. package/dashboard-neo/dist/assets/{basic-shape-primary-circle-ellipse-round.svg-Daoaje72.js → basic-shape-primary-circle-ellipse-round.svg-R9--YRIe.js} +1 -1
  13. package/dashboard-neo/dist/assets/{basic-shape-primary-square-rectangle.svg-YLGG3FKF.js → basic-shape-primary-square-rectangle.svg-CLKm0dFt.js} +1 -1
  14. package/dashboard-neo/dist/assets/{basic-shape-shield.svg-DqNRriX3.js → basic-shape-shield.svg-D9XmV6Xe.js} +1 -1
  15. package/dashboard-neo/dist/assets/browser-CUn5l15H.js +3 -0
  16. package/dashboard-neo/dist/assets/browser-D8omC0Vw.js +1 -0
  17. package/dashboard-neo/dist/assets/{browser-D8y2XapB.js → browser-e_rmFpD2.js} +29 -29
  18. package/dashboard-neo/dist/assets/browser-wgcf3kAE.js +1 -0
  19. package/dashboard-neo/dist/assets/ci-info-jUp9wEQz.js +1 -0
  20. package/dashboard-neo/dist/assets/{computer-device-desktop-monitor.svg-WQ9f9Yyd.js → computer-device-desktop-monitor.svg-C2k2KSmP.js} +1 -1
  21. package/dashboard-neo/dist/assets/{computer-device-desktop.svg-C1QoHpfb.js → computer-device-desktop.svg-DWOMzpl-.js} +1 -1
  22. package/dashboard-neo/dist/assets/{computer-device-laptop.svg-DftDi_i4.js → computer-device-laptop.svg-CrziwADC.js} +1 -1
  23. package/dashboard-neo/dist/assets/{computer-device-mobile-phone-android-samsung-back.svg-CKgWwk-M.js → computer-device-mobile-phone-android-samsung-back.svg-C0bN7z6H.js} +1 -1
  24. package/dashboard-neo/dist/assets/{computer-device-mobile-phone-android-samsung.svg-ZImmEqwi.js → computer-device-mobile-phone-android-samsung.svg-CvDN9LVY.js} +1 -1
  25. package/dashboard-neo/dist/assets/{computer-device-mobile-phone-iphone-x-back.svg-xBrw0QqX.js → computer-device-mobile-phone-iphone-x-back.svg-DCqM9ADt.js} +1 -1
  26. package/dashboard-neo/dist/assets/{computer-device-mobile-phone-iphone-x.svg-DDxQeDBi.js → computer-device-mobile-phone-iphone-x.svg-Bbbq_e9m.js} +1 -1
  27. package/dashboard-neo/dist/assets/{computer-device-mobile-tablet-touch.svg-DYfniPU8.js → computer-device-mobile-tablet-touch.svg-DQtRQS3L.js} +1 -1
  28. package/dashboard-neo/dist/assets/{computer-device-mobile-tablet.svg-Dq0gutQK.js → computer-device-mobile-tablet.svg-B_TYhHTc.js} +1 -1
  29. package/dashboard-neo/dist/assets/{computer-device-network-ethernet-cat6.svg-CwHOvloq.js → computer-device-network-ethernet-cat6.svg-CAvF2CPb.js} +1 -1
  30. package/dashboard-neo/dist/assets/{computer-device-network-lan-www.svg-C8Bh80nT.js → computer-device-network-lan-www.svg-BGt5w-PT.js} +1 -1
  31. package/dashboard-neo/dist/assets/{computer-device-network-wifi-connection.svg-5hFcG1t3.js → computer-device-network-wifi-connection.svg-D1uTIp2I.js} +1 -1
  32. package/dashboard-neo/dist/assets/{computer-device-network-wifi-router.svg-BgDGwjhn.js → computer-device-network-wifi-router.svg-7vh5XpYe.js} +1 -1
  33. package/dashboard-neo/dist/assets/dist-aU5svJ8D.js +81 -0
  34. package/dashboard-neo/dist/assets/{ecology-science-erlenmeyer-flask.svg-Bu4pbH8x.js → ecology-science-erlenmeyer-flask.svg-Du_ufRwv.js} +1 -1
  35. package/dashboard-neo/dist/assets/get-example-value-COf0TWTn.js +5 -0
  36. package/dashboard-neo/dist/assets/hls-D6a35TnA.js +44 -0
  37. package/dashboard-neo/dist/assets/{image-flash-lightning.svg-D5m0nHLE.js → image-flash-lightning.svg-BzbpSj7z.js} +1 -1
  38. package/dashboard-neo/dist/assets/{image-picture-flower.svg-DCs_cHUn.js → image-picture-flower.svg-BkWAF_tt.js} +1 -1
  39. package/dashboard-neo/dist/assets/index-BQQSR8lA.css +1 -0
  40. package/dashboard-neo/dist/assets/index-Dg65QVeC.js +2938 -0
  41. package/dashboard-neo/dist/assets/{interface-alert-exclamation-diamond.svg-2G3xLwqx.js → interface-alert-exclamation-diamond.svg-DMUTAZTM.js} +1 -1
  42. package/dashboard-neo/dist/assets/{interface-alert-exclamation-triangle-warning.svg-CbZWnWWp.js → interface-alert-exclamation-triangle-warning.svg-C_r1TisZ.js} +1 -1
  43. package/dashboard-neo/dist/assets/{interface-alert-information-circle.svg-D0Rq0ioQ.js → interface-alert-information-circle.svg-u2XNocWI.js} +1 -1
  44. package/dashboard-neo/dist/assets/{interface-award-crown.svg-BPfuHoAi.js → interface-award-crown.svg-DFpfFmwi.js} +1 -1
  45. package/dashboard-neo/dist/assets/{interface-bookmark.svg-CUSjRJiw.js → interface-bookmark-tag.svg-Cx123al_.js} +1 -1
  46. package/dashboard-neo/dist/assets/{interface-bookmark-tag.svg-CUSjRJiw.js → interface-bookmark.svg-Cx123al_.js} +1 -1
  47. package/dashboard-neo/dist/assets/{interface-calendar-date-one.svg-BAvbb3-o.js → interface-calendar-date-one.svg-BuwdPMjb.js} +1 -1
  48. package/dashboard-neo/dist/assets/{interface-content-book-open-pages.svg-DRedEoaB.js → interface-content-book-open-pages.svg-Cv9myurD.js} +1 -1
  49. package/dashboard-neo/dist/assets/{interface-content-book-page.svg-bnWYwJAk.js → interface-content-book-page.svg-Cq1wTMFz.js} +1 -1
  50. package/dashboard-neo/dist/assets/{interface-content-file.svg-BqNPbXHO.js → interface-content-file.svg-DRoRXpk0.js} +1 -1
  51. package/dashboard-neo/dist/assets/{interface-copy-clipboard.svg-Dyphh54o.js → interface-copy-clipboard.svg-DwlO-I1E.js} +1 -1
  52. package/dashboard-neo/dist/assets/{interface-edit-attachment.svg-BuRbX7t8.js → interface-edit-attachment.svg-Cx_JhqFz.js} +1 -1
  53. package/dashboard-neo/dist/assets/{interface-edit-binocular.svg-CYYevEGv.js → interface-edit-binocular.svg-De7fHjoY.js} +1 -1
  54. package/dashboard-neo/dist/assets/{interface-edit-magic-wand.svg-DR2BzOMe.js → interface-edit-magic-wand.svg-CtwNFsh-.js} +1 -1
  55. package/dashboard-neo/dist/assets/{interface-edit-tool-paint-roller.svg-BNgZ4_-f.js → interface-edit-tool-paint-roller.svg-CgZEyTDO.js} +1 -1
  56. package/dashboard-neo/dist/assets/{interface-edit-tool-pencil.svg-CTbomxh-.js → interface-edit-tool-pencil.svg-BwmXd_Zj.js} +1 -1
  57. package/dashboard-neo/dist/assets/{interface-favorite-award.svg-Bw67_iOy.js → interface-favorite-award.svg-DYQDa3Y4.js} +1 -1
  58. package/dashboard-neo/dist/assets/{interface-favorite-flag.svg-DaNMlOpZ.js → interface-favorite-flag.svg-CLfYv5Y3.js} +1 -1
  59. package/dashboard-neo/dist/assets/{interface-favorite-heart.svg-r70vyk7c.js → interface-favorite-heart.svg-BlqLYZOp.js} +1 -1
  60. package/dashboard-neo/dist/assets/{interface-favorite-star.svg-DkU3mkcO.js → interface-favorite-star.svg-CNrPKoa6.js} +1 -1
  61. package/dashboard-neo/dist/assets/{interface-favorite-stars-sparkles.svg-BxWiHdGA.js → interface-favorite-stars-sparkles.svg-B2w9YO5b.js} +1 -1
  62. package/dashboard-neo/dist/assets/{interface-hierarchy-flowchart.svg-BPHEXJJS.js → interface-hierarchy-flowchart.svg-UNkJOFlB.js} +1 -1
  63. package/dashboard-neo/dist/assets/{interface-home-house.svg-B63-LGqz.js → interface-home-house.svg-CVRMVm4O.js} +1 -1
  64. package/dashboard-neo/dist/assets/{interface-hyperlink.svg-C_lm0LzO.js → interface-hyperlink.svg-BFPfKdNN.js} +1 -1
  65. package/dashboard-neo/dist/assets/{interface-lighting-brightness.svg-DmqVOdtF.js → interface-lighting-brightness.svg-CaMbuuf5.js} +1 -1
  66. package/dashboard-neo/dist/assets/{interface-lock-closed.svg-xwC9xUEf.js → interface-lock-closed.svg-JzHWC_5u.js} +1 -1
  67. package/dashboard-neo/dist/assets/{interface-lock-open-unlock.svg-0P7d1Er7.js → interface-lock-open-unlock.svg-R2LcxbUj.js} +1 -1
  68. package/dashboard-neo/dist/assets/{interface-login-key.svg-DSUnFVoR.js → interface-login-key.svg-CqdgTxav.js} +1 -1
  69. package/dashboard-neo/dist/assets/{interface-search.svg-Cki10DmM.js → interface-search.svg-DtkbYObP.js} +1 -1
  70. package/dashboard-neo/dist/assets/{interface-setting-cog.svg-B1g7SeN7.js → interface-setting-cog.svg-DxpIa50D.js} +1 -1
  71. package/dashboard-neo/dist/assets/{interface-share-megaphone-bullhorn.svg-Bn-98V1I.js → interface-share-megaphone-bullhorn.svg-D4nP-w3d.js} +1 -1
  72. package/dashboard-neo/dist/assets/{interface-share-rocket.svg-CxDqnOQE.js → interface-share-rocket.svg-Dz8a08W1.js} +1 -1
  73. package/dashboard-neo/dist/assets/{interface-share-satellite.svg-Dr6tbP-H.js → interface-share-satellite.svg-QKsjaKjp.js} +1 -1
  74. package/dashboard-neo/dist/assets/{interface-share-space-ship.svg-BcrSZOha.js → interface-share-space-ship.svg-CJF5dAaS.js} +1 -1
  75. package/dashboard-neo/dist/assets/{interface-share.svg-WJStd-hf.js → interface-share.svg-wQd8Nsev.js} +1 -1
  76. package/dashboard-neo/dist/assets/{interface-signal-square.svg-sR1Jwdkj.js → interface-signal-square.svg-D0NOqQxq.js} +1 -1
  77. package/dashboard-neo/dist/assets/{interface-time-clock-circle.svg-CI-FR3Z0.js → interface-time-clock-circle.svg-BJW0u9-H.js} +1 -1
  78. package/dashboard-neo/dist/assets/{interface-time-hour-glass.svg-BCH_wujz.js → interface-time-hour-glass.svg-B1dUhHPg.js} +1 -1
  79. package/dashboard-neo/dist/assets/{interface-users-multiple.svg-7liAj7tU.js → interface-users-multiple.svg-BcYwsudu.js} +1 -1
  80. package/dashboard-neo/dist/assets/{interface-weather-moon.svg-CEEqAhxr.js → interface-weather-moon.svg-8rI1aLcW.js} +1 -1
  81. package/dashboard-neo/dist/assets/{mail-chat-bubble-square.svg-DgBmT6at.js → mail-chat-bubble-square.svg-BQF7qZmb.js} +1 -1
  82. package/dashboard-neo/dist/assets/{mail-send-email-paper-airplane.svg-BtW62yNd.js → mail-send-email-paper-airplane.svg-BL9e4Cnv.js} +1 -1
  83. package/dashboard-neo/dist/assets/{mail-send-envelope.svg-B2ofGi0G.js → mail-send-envelope.svg-Csgf3j08.js} +1 -1
  84. package/dashboard-neo/dist/assets/modal-BuAmB_fi.js +3 -0
  85. package/dashboard-neo/dist/assets/{money-cashier-receipt.svg-oYv7RkCx.js → money-cashier-receipt.svg-CNd40BTi.js} +1 -1
  86. package/dashboard-neo/dist/assets/{money-currency-dollar-pay.svg-BRFYydmz.js → money-currency-dollar-pay.svg-B9CyAscz.js} +1 -1
  87. package/dashboard-neo/dist/assets/{money-graph-arrow-increase.svg-ChmHgfEP.js → money-graph-arrow-increase.svg-JEDWVl1S.js} +1 -1
  88. package/dashboard-neo/dist/assets/{money-graph-bar-chart-increase.svg-D6G7lFzR.js → money-graph-bar-chart-increase.svg-BqSGr6MP.js} +1 -1
  89. package/dashboard-neo/dist/assets/{nature-ecology-leaf.svg-C0Sj6pgM.js → nature-ecology-leaf.svg-C4-FCSPc.js} +1 -1
  90. package/dashboard-neo/dist/assets/parse-description-vE2la_xE.js +2 -0
  91. package/dashboard-neo/dist/assets/parse-html-description-BP1Bs0F_.js +1 -0
  92. package/dashboard-neo/dist/assets/parse-json-pointer-segments-3ftC8SuQ.js +1 -0
  93. package/dashboard-neo/dist/assets/{phone-telephone.svg-2UFzF1dr.js → phone-telephone.svg-BplabboN.js} +1 -1
  94. package/dashboard-neo/dist/assets/preload-helper-BS_cDXsn.js +1 -0
  95. package/dashboard-neo/dist/assets/prevent-pollution-DPDD94Gp.js +1 -0
  96. package/dashboard-neo/dist/assets/{programming-bug.svg-22hsMxQO.js → programming-bug.svg-BhZMmdtA.js} +1 -1
  97. package/dashboard-neo/dist/assets/{programming-cloud.svg-CLQxx35l.js → programming-cloud.svg-DbakdzIB.js} +1 -1
  98. package/dashboard-neo/dist/assets/{programming-computer-database-server.svg-DfQW4OzL.js → programming-computer-database-server.svg-BRHdyIDO.js} +1 -1
  99. package/dashboard-neo/dist/assets/{programming-computer-database.svg-BA4JjA4C.js → programming-computer-database.svg-L62JcdAJ.js} +1 -1
  100. package/dashboard-neo/dist/assets/{programming-module-four-layout.svg-ZqZ8jvaZ.js → programming-module-four-layout.svg-9ZpykChc.js} +1 -1
  101. package/dashboard-neo/dist/assets/{programming-module-three.svg-C4IJTyw0.js → programming-module-three.svg-CVY8nhgR.js} +1 -1
  102. package/dashboard-neo/dist/assets/{programming-module.svg-iETi-2b0.js → programming-module.svg-DwyQ8Wg0.js} +1 -1
  103. package/dashboard-neo/dist/assets/{programming-script-code.svg-rCOsoRKw.js → programming-script-code.svg-DToA2yNX.js} +1 -1
  104. package/dashboard-neo/dist/assets/reactivity.esm-bundler-CGTvMeXp.js +1 -0
  105. package/dashboard-neo/dist/assets/redirect-to-proxy-C4MzPP9w.js +1 -0
  106. package/dashboard-neo/dist/assets/rolldown-runtime-BWaJ3C7D.js +1 -0
  107. package/dashboard-neo/dist/assets/runtime-core.esm-bundler-DuBrNcf5.js +18 -0
  108. package/dashboard-neo/dist/assets/schema-BhNr2Gp3.js +687 -0
  109. package/dashboard-neo/dist/assets/{shopping-cart.svg-Dc4piS12.js → shopping-cart.svg-JcsjuK74.js} +1 -1
  110. package/dashboard-neo/dist/assets/{shopping-gift-present.svg--51cUtCZ.js → shopping-gift-present.svg-CkAa3Par.js} +1 -1
  111. package/dashboard-neo/dist/assets/{shopping-shipping-box-parcel-package.svg-BDlugNqF.js → shopping-shipping-box-parcel-package.svg-BP_wKIr4.js} +1 -1
  112. package/dashboard-neo/dist/assets/slugger-DkxnPIt5.js +12 -0
  113. package/dashboard-neo/dist/assets/{tag-new-circle.svg-IzWjXHZQ.js → tag-new-circle.svg-CW6E2EDY.js} +1 -1
  114. package/dashboard-neo/dist/assets/{travel-map-earth-globe.svg-BdyEHtN7.js → travel-map-earth-globe.svg-uxhS8dkv.js} +1 -1
  115. package/dashboard-neo/dist/assets/types-B2F2Hsa7.js +1 -0
  116. package/dashboard-neo/dist/assets/use-register-link-Chgxu-we.js +1 -0
  117. package/dashboard-neo/dist/assets/workspace-events-B-T7-4Hh.js +55 -0
  118. package/dashboard-neo/dist/index.html +22 -10
  119. package/dist/index.cjs +84 -92
  120. package/dist/index.d.cts +0 -17
  121. package/dist/index.d.cts.map +1 -1
  122. package/package.json +10 -10
  123. package/dashboard-neo/dist/assets/AgentScalarDrawer.vue-BnDsuf6m.js +0 -25
  124. package/dashboard-neo/dist/assets/__vite-browser-external-PaJ7c2l8.js +0 -1
  125. package/dashboard-neo/dist/assets/browser-DfBsyWtF.js +0 -40
  126. package/dashboard-neo/dist/assets/ci-info-CDtqIEnS.js +0 -1
  127. package/dashboard-neo/dist/assets/hls-D9b4QHpD.js +0 -42
  128. package/dashboard-neo/dist/assets/index-BOp-_zqb.js +0 -2469
  129. package/dashboard-neo/dist/assets/index-u08XsVQ9.css +0 -1
  130. package/dashboard-neo/dist/assets/markdown-BSj1FMVF.js +0 -68
  131. package/dashboard-neo/dist/assets/modal-nZ7FbWsp.js +0 -5
  132. package/dashboard-neo/dist/assets/parse-html-description-HRIisAnu.js +0 -5
  133. package/dashboard-neo/dist/assets/preload-helper-4fm5x995.js +0 -1
  134. package/dashboard-neo/dist/assets/reactivity.esm-bundler-BNk6Zv_g.js +0 -1
  135. package/dashboard-neo/dist/assets/request-example-_ni4k2bu.js +0 -16
  136. package/dashboard-neo/dist/assets/rolldown-runtime-B0Z9INg1.js +0 -1
  137. package/dashboard-neo/dist/assets/runtime-core.esm-bundler-2tpRQTw-.js +0 -18
  138. package/dashboard-neo/dist/assets/workspace-events-BBP1JVYk.js +0 -100
@@ -1,54 +1,54 @@
1
- import{r as e}from"./rolldown-runtime-B0Z9INg1.js";var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}var g=e=>(f(e)||m(e))&&!!e.anchor,_=Symbol(`break visit`),v=Symbol(`skip children`),y=Symbol(`remove node`);function b(e,t){let n=ee(t);l(e)?x(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):x(null,e,n,Object.freeze([]))}b.BREAK=_,b.SKIP=v,b.REMOVE=y;function x(e,t,n,r){let i=w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),x(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=x(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=x(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=x(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}async function S(e,t){let n=ee(t);l(e)?await C(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):await C(null,e,n,Object.freeze([]))}S.BREAK=_,S.SKIP=v,S.REMOVE=y;async function C(e,t,n,r){let i=await w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),C(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await C(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=await C(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=await C(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}function ee(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function w(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(u(t))return n.Map?.(e,t,r);if(p(t))return n.Seq?.(e,t,r);if(d(t))return n.Pair?.(e,t,r);if(f(t))return n.Scalar?.(e,t,r);if(c(t))return n.Alias?.(e,t,r)}function T(e,t,n){let r=t[t.length-1];if(m(r))r.items[e]=n;else if(d(r))e===`key`?r.key=n:r.value=n;else if(l(r))r.contents=n;else{let e=c(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var te={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},ne=e=>e.replace(/[!,[\]{}]/g,e=>te[e]),E=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ne(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&h(e.contents)){let t={};b(e.contents,(e,n)=>{h(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
2
- `)}};E.defaultYaml={explicit:!1,version:`1.2`},E.defaultTags={"!!":`tag:yaml.org,2002:`};function re(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function ie(e){let t=new Set;return b(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ae(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function oe(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=ie(e);let a=ae(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(f(t.node)||m(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function D(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=D(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=D(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=D(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=D(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function O(e,t,n){if(Array.isArray(e))return e.map((e,t)=>O(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!g(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var se=class{constructor(e){Object.defineProperty(this,s,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!l(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=O(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?D(i,{"":o},``,o):o}},k=class extends se{constructor(e){super(t),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],b(e,{Node:(e,t)=>{(c(t)||g(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(O(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=ce(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(re(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function ce(e,t,n){if(c(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(m(t)){let r=0;for(let i of t.items){let t=ce(e,i,n);t>r&&(r=t)}return r}if(d(t)){let r=ce(e,t.key,n),i=ce(e,t.value,n);return Math.max(r,i)}return 1}var le=e=>!e||typeof e!=`function`&&typeof e!=`object`,A=class extends se{constructor(e){super(a),this.value=e}toJSON(e,t){return t?.keep?this.value:O(this.value,e,t)}toString(){return String(this.value)}};A.BLOCK_FOLDED=`BLOCK_FOLDED`,A.BLOCK_LITERAL=`BLOCK_LITERAL`,A.PLAIN=`PLAIN`,A.QUOTE_DOUBLE=`QUOTE_DOUBLE`,A.QUOTE_SINGLE=`QUOTE_SINGLE`;var ue=`tag:yaml.org,2002:`;function de(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function j(e,t,n){if(l(e)&&(e=e.contents),h(e))return e;if(d(e)){let t=n.schema[r].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:a,onTagObj:s,schema:c,sourceObjects:u}=n,f;if(i&&e&&typeof e==`object`){if(f=u.get(e),f)return f.anchor??(f.anchor=a(e)),new k(f.anchor);f={anchor:null,node:null},u.set(e,f)}t?.startsWith(`!!`)&&(t=ue+t.slice(2));let p=de(e,t,c.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new A(e);return f&&(f.node=t),t}p=e instanceof Map?c[r]:Symbol.iterator in Object(e)?c[o]:c[r]}s&&(s(p),delete n.onTagObj);let m=p?.createNode?p.createNode(n.schema,e,n):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(n.schema,e,n):new A(e);return t?m.tag=t:p.default||(m.tag=p.tag),f&&(f.node=m),m}function fe(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return j(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var M=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,pe=class extends se{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>h(t)||d(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(M(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(m(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,fe(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(m(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&f(i)?i.value:i:m(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!d(t))return!1;let n=t.value;return n==null||e&&f(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return m(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(m(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,fe(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},me=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function N(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var P=(e,t,n)=>e.endsWith(`
3
- `)?N(n,t):n.includes(`
1
+ import{r as e}from"./rolldown-runtime-BWaJ3C7D.js";var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}var g=e=>(f(e)||m(e))&&!!e.anchor,_=Symbol(`break visit`),v=Symbol(`skip children`),y=Symbol(`remove node`);function b(e,t){let n=ee(t);l(e)?x(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):x(null,e,n,Object.freeze([]))}b.BREAK=_,b.SKIP=v,b.REMOVE=y;function x(e,t,n,r){let i=w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),x(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=x(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=x(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=x(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}async function S(e,t){let n=ee(t);l(e)?await C(null,e.contents,n,Object.freeze([e]))===y&&(e.contents=null):await C(null,e,n,Object.freeze([]))}S.BREAK=_,S.SKIP=v,S.REMOVE=y;async function C(e,t,n,r){let i=await w(e,t,n,r);if(h(i)||d(i))return T(e,r,i),C(e,i,n,r);if(typeof i!=`symbol`){if(m(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await C(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===_)return _;else i===y&&(t.items.splice(e,1),--e)}}else if(d(t)){r=Object.freeze(r.concat(t));let e=await C(`key`,t.key,n,r);if(e===_)return _;e===y&&(t.key=null);let i=await C(`value`,t.value,n,r);if(i===_)return _;i===y&&(t.value=null)}}return i}function ee(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function w(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(u(t))return n.Map?.(e,t,r);if(p(t))return n.Seq?.(e,t,r);if(d(t))return n.Pair?.(e,t,r);if(f(t))return n.Scalar?.(e,t,r);if(c(t))return n.Alias?.(e,t,r)}function T(e,t,n){let r=t[t.length-1];if(m(r))r.items[e]=n;else if(d(r))e===`key`?r.key=n:r.value=n;else if(l(r))r.contents=n;else{let e=c(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var te={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},ne=e=>e.replace(/[!,[\]{}]/g,e=>te[e]),E=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ne(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&h(e.contents)){let t={};b(e.contents,(e,n)=>{h(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||e&&!r.some(e=>e.startsWith(a))||t.push(`%TAG ${i} ${a}`);return t.join(`
2
+ `)}};E.defaultYaml={explicit:!1,version:`1.2`},E.defaultTags={"!!":`tag:yaml.org,2002:`};function re(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function ie(e){let t=new Set;return b(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ae(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function oe(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=ie(e);let a=ae(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(f(t.node)||m(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function D(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=D(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=D(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=D(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=D(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function O(e,t,n){if(Array.isArray(e))return e.map((e,t)=>O(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!g(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var se=class{constructor(e){Object.defineProperty(this,s,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!l(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=O(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?D(i,{"":o},``,o):o}},ce=class extends se{constructor(e){super(t),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],b(e,{Node:(e,t)=>{(c(t)||g(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(O(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=le(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(re(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function le(e,t,n){if(c(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(m(t)){let r=0;for(let i of t.items){let t=le(e,i,n);t>r&&(r=t)}return r}if(d(t)){let r=le(e,t.key,n),i=le(e,t.value,n);return Math.max(r,i)}return 1}var ue=e=>!e||typeof e!=`function`&&typeof e!=`object`,k=class extends se{constructor(e){super(a),this.value=e}toJSON(e,t){return t?.keep?this.value:O(this.value,e,t)}toString(){return String(this.value)}};k.BLOCK_FOLDED=`BLOCK_FOLDED`,k.BLOCK_LITERAL=`BLOCK_LITERAL`,k.PLAIN=`PLAIN`,k.QUOTE_DOUBLE=`QUOTE_DOUBLE`,k.QUOTE_SINGLE=`QUOTE_SINGLE`;var de=`tag:yaml.org,2002:`;function fe(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function A(e,t,n){if(l(e)&&(e=e.contents),h(e))return e;if(d(e)){let t=n.schema[r].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:a,onTagObj:s,schema:c,sourceObjects:u}=n,f;if(i&&e&&typeof e==`object`){if(f=u.get(e),f)return f.anchor??(f.anchor=a(e)),new ce(f.anchor);f={anchor:null,node:null},u.set(e,f)}t?.startsWith(`!!`)&&(t=de+t.slice(2));let p=fe(e,t,c.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new k(e);return f&&(f.node=t),t}p=e instanceof Map?c[r]:Symbol.iterator in Object(e)?c[o]:c[r]}s&&(s(p),delete n.onTagObj);let m=p?.createNode?p.createNode(n.schema,e,n):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(n.schema,e,n):new k(e);return t?m.tag=t:p.default||(m.tag=p.tag),f&&(f.node=m),m}function pe(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return A(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var j=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,me=class extends se{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>h(t)||d(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(j(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(m(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,pe(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(m(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&f(i)?i.value:i:m(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!d(t))return!1;let n=t.value;return n==null||e&&f(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return m(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(m(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,pe(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},he=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function M(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var N=(e,t,n)=>e.endsWith(`
3
+ `)?M(n,t):n.includes(`
4
4
  `)?`
5
- `+N(n,t):(e.endsWith(` `)?``:` `)+n,he=`flow`,ge=`block`,_e=`quoted`;function ve(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=ye(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
6
- `)n===`block`&&(h=ye(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
5
+ `+M(n,t):(e.endsWith(` `)?``:` `)+n,ge=`flow`,_e=`block`,ve=`quoted`;function ye(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=be(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
6
+ `)n===`block`&&(h=be(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
7
7
  `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
8
- `&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function ye(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
9
- `);r=t,i=t+1,a=e[i]}return r}var be=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),xe=e=>/^(%|---|\.\.\.)/m.test(e);function Se(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
10
- `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function Ce(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(xe(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
8
+ `&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function be(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
9
+ `);r=t,i=t+1,a=e[i]}return r}var xe=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Se=e=>/^(%|---|\.\.\.)/m.test(e);function Ce(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
10
+ `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function P(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(Se(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
11
11
 
12
12
  `;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
13
- `,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:ve(o,a,_e,be(t,!1))}function we(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
14
- `)||/[ \t]\n|\n[ \t]/.test(e))return Ce(e,t);let n=t.indent||(xe(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:ve(r,n,he,be(t,!1))}function F(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=Ce;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?we:i&&!t?Ce:n?we:Ce}return r(e,t)}var Te;try{Te=RegExp(`(^|(?<!
13
+ `,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:ye(o,a,ve,xe(t,!1))}function we(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
14
+ `)||/[ \t]\n|\n[ \t]/.test(e))return P(e,t);let n=t.indent||(Se(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:ye(r,n,ge,xe(t,!1))}function F(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=P;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?we:i&&!t?P:n?we:P}return r(e,t)}var Te;try{Te=RegExp(`(^|(?<!
15
15
  ))
16
16
  +(?!
17
- |$)`,`g`)}catch{Te=/\n+(?!\n|$)/g}function Ee({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return F(n,r);let l=r.indent||(r.forceBlockIndent||xe(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===A.BLOCK_FOLDED?!1:t===A.BLOCK_LITERAL||!Se(n,c,l.length);if(!n)return u?`|
17
+ |$)`,`g`)}catch{Te=/\n+(?!\n|$)/g}function Ee({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return F(n,r);let l=r.indent||(r.forceBlockIndent||Se(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===k.BLOCK_FOLDED?!1:t===k.BLOCK_LITERAL||!Ce(n,c,l.length);if(!n)return u?`|
18
18
  `:`>
19
19
  `;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
20
20
  `&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
21
21
  `);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
22
22
  `&&(p=p.slice(0,-1)),p.replace(Te,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
23
23
  `)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
24
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=be(r,!0);o!==`folded`&&t!==A.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=ve(`${v}${e}${p}`,l,ge,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function De(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
24
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=xe(r,!0);o!==`folded`&&t!==k.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=ye(`${v}${e}${p}`,l,_e,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function De(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
25
25
  `)||u&&/[[\]{},]/.test(a))return F(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
26
- `)?F(a,t):Ee(e,t,n,r);if(!s&&!u&&i!==A.PLAIN&&a.includes(`
27
- `))return Ee(e,t,n,r);if(xe(a)){if(c===``)return t.forceBlockIndent=!0,Ee(e,t,n,r);if(s&&c===l)return F(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return F(a,t)}return s?d:ve(d,c,he,be(t,!1))}function I(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==A.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=A.QUOTE_DOUBLE);let c=e=>{switch(e){case A.BLOCK_FOLDED:case A.BLOCK_LITERAL:return i||a?F(o.value,t):Ee(o,t,n,r);case A.QUOTE_DOUBLE:return Ce(o.value,t);case A.QUOTE_SINGLE:return we(o.value,t);case A.PLAIN:return De(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function Oe(e,t){let n=Object.assign({blockQuote:!0,commentString:me,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function ke(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(f(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function Ae(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(f(e)||m(e))&&e.anchor;a&&re(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function L(e,t,n,r){if(d(e))return e.toString(t,n,r);if(c(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=h(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=ke(t.doc.schema.tags,a);let o=Ae(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):f(a)?I(a,t,n,r):a.toString(t,n,r);return o?f(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function je({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,g=h(e)&&e.comment||null;if(d){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(m(e)||!h(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!d&&(!e||g&&t==null&&!n.inFlow||m(e)||(f(e)?e.type===A.BLOCK_FOLDED||e.type===A.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!_&&(d||!a),indent:s+c});let v=!1,y=!1,b=L(e,n,()=>v=!0,()=>y=!0);if(!_&&!n.inFlow&&b.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(n.inFlow){if(a||t==null)return v&&r&&r(),b===``?`?`:_?`? ${b}`:b}else if(a&&!d||t==null&&_)return b=`? ${b}`,g&&!v?b+=P(b,n.indent,l(g)):y&&i&&i(),b;v&&(g=null),_?(g&&(b+=P(b,n.indent,l(g))),b=`? ${b}\n${s}:`):(b=`${b}:`,g&&(b+=P(b,n.indent,l(g))));let x,S,C;h(t)?(x=!!t.spaceBefore,S=t.commentBefore,C=t.comment):(x=!1,S=null,C=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!_&&!g&&f(t)&&(n.indentAtStart=b.length+1),y=!1,!u&&c.length>=2&&!n.inFlow&&!_&&p(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let ee=!1,w=L(t,n,()=>ee=!0,()=>y=!0),T=` `;if(g||x||S){if(T=x?`
28
- `:``,S){let e=l(S);T+=`\n${N(e,n.indent)}`}w===``&&!n.inFlow?T===`
26
+ `)?F(a,t):Ee(e,t,n,r);if(!s&&!u&&i!==k.PLAIN&&a.includes(`
27
+ `))return Ee(e,t,n,r);if(Se(a)){if(c===``)return t.forceBlockIndent=!0,Ee(e,t,n,r);if(s&&c===l)return F(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return F(a,t)}return s?d:ye(d,c,ge,xe(t,!1))}function I(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==k.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=k.QUOTE_DOUBLE);let c=e=>{switch(e){case k.BLOCK_FOLDED:case k.BLOCK_LITERAL:return i||a?F(o.value,t):Ee(o,t,n,r);case k.QUOTE_DOUBLE:return P(o.value,t);case k.QUOTE_SINGLE:return we(o.value,t);case k.PLAIN:return De(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function Oe(e,t){let n=Object.assign({blockQuote:!0,commentString:he,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function ke(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(f(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function Ae(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(f(e)||m(e))&&e.anchor;a&&re(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function L(e,t,n,r){if(d(e))return e.toString(t,n,r);if(c(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=h(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=ke(t.doc.schema.tags,a);let o=Ae(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):f(a)?I(a,t,n,r):a.toString(t,n,r);return o?f(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function je({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,g=h(e)&&e.comment||null;if(d){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(m(e)||!h(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!d&&(!e||g&&t==null&&!n.inFlow||m(e)||(f(e)?e.type===k.BLOCK_FOLDED||e.type===k.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!_&&(d||!a),indent:s+c});let v=!1,y=!1,b=L(e,n,()=>v=!0,()=>y=!0);if(!_&&!n.inFlow&&b.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(n.inFlow){if(a||t==null)return v&&r&&r(),b===``?`?`:_?`? ${b}`:b}else if(a&&!d||t==null&&_)return b=`? ${b}`,g&&!v?b+=N(b,n.indent,l(g)):y&&i&&i(),b;v&&(g=null),_?(g&&(b+=N(b,n.indent,l(g))),b=`? ${b}\n${s}:`):(b=`${b}:`,g&&(b+=N(b,n.indent,l(g))));let x,S,C;h(t)?(x=!!t.spaceBefore,S=t.commentBefore,C=t.comment):(x=!1,S=null,C=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!_&&!g&&f(t)&&(n.indentAtStart=b.length+1),y=!1,!u&&c.length>=2&&!n.inFlow&&!_&&p(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let ee=!1,w=L(t,n,()=>ee=!0,()=>y=!0),T=` `;if(g||x||S){if(T=x?`
28
+ `:``,S){let e=l(S);T+=`\n${M(e,n.indent)}`}w===``&&!n.inFlow?T===`
29
29
  `&&C&&(T=`
30
30
 
31
31
  `):T+=`\n${n.indent}`}else if(!_&&m(t)){let e=w[0],r=w.indexOf(`
32
32
  `),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=w.indexOf(` `);e===`&`&&n!==-1&&n<r&&w[n+1]===`!`&&(n=w.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(T=`\n${n.indent}`)}}else(w===``||w[0]===`
33
- `)&&(T=``);return b+=T+w,n.inFlow?ee&&r&&r():C&&!ee?b+=P(b,n.indent,l(C)):y&&i&&i(),b}function Me(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var Ne=`<<`,R={identify:e=>e===Ne||typeof e==`symbol`&&e.description===Ne,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new A(Symbol(Ne)),{addToJSMap:Fe}),stringify:()=>Ne},Pe=(e,t)=>(R.identify(t)||f(t)&&(!t.type||t.type===A.PLAIN)&&R.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===R.tag&&e.default);function Fe(e,t,n){let r=Le(e,n);if(p(r))for(let n of r.items)Ie(e,t,n);else if(Array.isArray(r))for(let n of r)Ie(e,t,n);else Ie(e,t,r)}function Ie(e,t,n){let r=Le(e,n);if(!u(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Le(e,t){return e&&c(t)?t.resolve(e.doc,e):t}function Re(e,t,{key:n,value:r}){if(h(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Pe(e,n))Fe(e,t,r);else{let i=O(n,``,e);if(t instanceof Map)t.set(i,O(r,i,e));else if(t instanceof Set)t.add(i);else{let a=ze(n,i,e),o=O(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function ze(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(h(e)&&n?.doc){let t=Oe(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Me(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Be(e,t,n){return new z(j(e,void 0,n),j(t,void 0,n))}var z=class e{constructor(e,t=null){Object.defineProperty(this,s,{value:i}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return h(n)&&(n=n.clone(t)),h(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Re(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?je(this,e,t,n):JSON.stringify(this)}};function Ve(e,t,n){return(t.inFlow??e.flow?Ue:He)(e,t,n)}function He({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),f=!1,p=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(h(i))!f&&i.spaceBefore&&p.push(``),We(n,p,i.commentBefore,f),i.comment&&(o=i.comment);else if(d(i)){let e=h(i.key)?i.key:null;e&&(!f&&e.spaceBefore&&p.push(``),We(n,p,e.commentBefore,f))}f=!1;let s=L(i,u,()=>o=null,()=>f=!0);o&&(s+=P(s,a,l(o))),f&&o&&(f=!1),p.push(r+s)}let m;if(p.length===0)m=i.start+i.end;else{m=p[0];for(let e=1;e<p.length;++e){let t=p[e];m+=t?`\n${c}${t}`:`
33
+ `)&&(T=``);return b+=T+w,n.inFlow?ee&&r&&r():C&&!ee?b+=N(b,n.indent,l(C)):y&&i&&i(),b}function Me(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var Ne=`<<`,R={identify:e=>e===Ne||typeof e==`symbol`&&e.description===Ne,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new k(Symbol(Ne)),{addToJSMap:Fe}),stringify:()=>Ne},Pe=(e,t)=>(R.identify(t)||f(t)&&(!t.type||t.type===k.PLAIN)&&R.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===R.tag&&e.default);function Fe(e,t,n){let r=Le(e,n);if(p(r))for(let n of r.items)Ie(e,t,n);else if(Array.isArray(r))for(let n of r)Ie(e,t,n);else Ie(e,t,r)}function Ie(e,t,n){let r=Le(e,n);if(!u(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Le(e,t){return e&&c(t)?t.resolve(e.doc,e):t}function Re(e,t,{key:n,value:r}){if(h(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Pe(e,n))Fe(e,t,r);else{let i=O(n,``,e);if(t instanceof Map)t.set(i,O(r,i,e));else if(t instanceof Set)t.add(i);else{let a=ze(n,i,e),o=O(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function ze(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(h(e)&&n?.doc){let t=Oe(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Me(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Be(e,t,n){return new z(A(e,void 0,n),A(t,void 0,n))}var z=class e{constructor(e,t=null){Object.defineProperty(this,s,{value:i}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return h(n)&&(n=n.clone(t)),h(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return Re(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?je(this,e,t,n):JSON.stringify(this)}};function Ve(e,t,n){return(t.inFlow??e.flow?Ue:He)(e,t,n)}function He({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),f=!1,p=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(h(i))!f&&i.spaceBefore&&p.push(``),We(n,p,i.commentBefore,f),i.comment&&(o=i.comment);else if(d(i)){let e=h(i.key)?i.key:null;e&&(!f&&e.spaceBefore&&p.push(``),We(n,p,e.commentBefore,f))}f=!1;let s=L(i,u,()=>o=null,()=>f=!0);o&&(s+=N(s,a,l(o))),f&&o&&(f=!1),p.push(r+s)}let m;if(p.length===0)m=i.start+i.end;else{m=p[0];for(let e=1;e<p.length;++e){let t=p[e];m+=t?`\n${c}${t}`:`
34
34
  `}}return e?(m+=`
35
- `+N(l(e),c),s&&s()):f&&o&&o(),m}function Ue({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,f=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(h(i))i.spaceBefore&&f.push(``),We(t,f,i.commentBefore,!1),i.comment&&(a=i.comment);else if(d(i)){let e=h(i.key)?i.key:null;e&&(e.spaceBefore&&f.push(``),We(t,f,e.commentBefore,!1),e.comment&&(l=!0));let n=h(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=L(i,c,()=>a=null);l||=f.length>u||o.includes(`
36
- `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=f.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=P(o,r,s(a))),f.push(o),u=f.length}let{start:p,end:m}=n;if(f.length===0)return p+m;if(!l){let e=f.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=p;for(let t of f)e+=t?`\n${a}${i}${t}`:`
37
- `;return`${e}\n${i}${m}`}return`${p}${o}${f.join(` `)}${o}${m}`}function We({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=N(t(r),e);n.push(i.trimStart())}}function B(e,t){let n=f(t)?t.value:t;for(let r of e)if(d(r)&&(r.key===t||r.key===n||f(r.key)&&r.key.value===n))return r}var V=class extends pe{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(r,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Be(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=d(e)?e:!e||typeof e!=`object`||!(`key`in e)?new z(e,e?.value):new z(e.key,e.value);let r=B(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);f(r.value)&&le(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=B(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=B(this.items,e)?.value;return(!t&&f(n)?n.value:n)??void 0}has(e){return!!B(this.items,e)}set(e,t){this.add(new z(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)Re(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!d(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ve(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},H={collection:`map`,default:!0,nodeClass:V,tag:`tag:yaml.org,2002:map`,resolve(e,t){return u(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>V.from(e,t,n)},U=class extends pe{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(o,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Ge(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=Ge(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&f(r)?r.value:r}has(e){let t=Ge(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Ge(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];f(r)&&le(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(O(e,String(r++),t));return n}toString(e,t,n){return e?Ve(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(j(a,void 0,n))}}return i}};function Ge(e){let t=f(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var W={collection:`seq`,default:!0,nodeClass:U,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return p(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>U.from(e,t,n)},Ke={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),I(e,t,n,r)}},qe={identify:e=>e==null,createNode:()=>new A(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new A(null),stringify:({source:e},t)=>typeof e==`string`&&qe.test.test(e)?e:t.options.nullStr},Je={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new A(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&Je.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function G({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var Ye={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:G},Xe={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():G(e)}},Ze={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new A(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:G},Qe=e=>typeof e==`bigint`||Number.isInteger(e),$e=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function et(e,t,n){let{value:r}=e;return Qe(r)&&r>=0?n+r.toString(t):G(e)}var tt={identify:e=>Qe(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>$e(e,2,8,n),stringify:e=>et(e,8,`0o`)},nt={identify:Qe,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>$e(e,0,10,n),stringify:G},rt={identify:e=>Qe(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>$e(e,2,16,n),stringify:e=>et(e,16,`0x`)},it=[H,W,Ke,qe,Je,tt,nt,rt,Ye,Xe,Ze];function at(e){return typeof e==`bigint`||Number.isInteger(e)}var ot=({value:e})=>JSON.stringify(e),st=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:ot},{identify:e=>e==null,createNode:()=>new A(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:ot},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:ot},{identify:at,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>at(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ot}],ct=[H,W].concat(st,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),lt={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=A.BLOCK_LITERAL,t!==A.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===A.BLOCK_LITERAL?`
38
- `:` `)}return I({comment:e,type:t,value:s},r,i,a)}};function ut(e,t){if(p(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!d(r)){if(u(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new z(new A(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=d(r)?r:new z(r)}}else t(`Expected a sequence for this tag`);return e}function dt(e,t,n){let{replacer:r}=n,i=new U(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Be(o,s,n))}return i}var ft={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:ut,createNode:dt},pt=class e extends U{constructor(){super(),this.add=V.prototype.add.bind(this),this.delete=V.prototype.delete.bind(this),this.get=V.prototype.get.bind(this),this.has=V.prototype.has.bind(this),this.set=V.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(d(e)?(r=O(e.key,``,t),i=O(e.value,r,t)):r=O(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=dt(e,t,n),i=new this;return i.items=r.items,i}};pt.tag=`tag:yaml.org,2002:omap`;var mt={collection:`seq`,identify:e=>e instanceof Map,nodeClass:pt,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=ut(e,t),r=[];for(let{key:e}of n.items)f(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new pt,n)},createNode:(e,t,n)=>pt.from(e,t,n)};function ht({value:e,source:t},n){return t&&(e?gt:_t).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var gt={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new A(!0),stringify:ht},_t={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new A(!1),stringify:ht},vt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:G},yt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():G(e)}},bt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new A(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:G},K=e=>typeof e==`bigint`||Number.isInteger(e);function xt(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function St(e,t,n){let{value:r}=e;if(K(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return G(e)}var Ct={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>xt(e,2,2,n),stringify:e=>St(e,2,`0b`)},wt={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>xt(e,1,8,n),stringify:e=>St(e,8,`0`)},Tt={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>xt(e,0,10,n),stringify:G},Et={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>xt(e,2,16,n),stringify:e=>St(e,16,`0x`)},Dt=class e extends V{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=d(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new z(e.key,null):new z(e,null),B(this.items,t.key)||this.items.push(t)}get(e,t){let n=B(this.items,e);return!t&&d(n)?f(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=B(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new z(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Be(e,null,n));return i}};Dt.tag=`tag:yaml.org,2002:set`;var Ot={collection:`map`,identify:e=>e instanceof Set,nodeClass:Dt,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>Dt.from(e,t,n),resolve(e,t){if(u(e)){if(e.hasAllNullValues(!0))return Object.assign(new Dt,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function kt(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function At(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return G(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var jt={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>kt(e,n),stringify:At},Mt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>kt(e,!1),stringify:At},Nt={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Nt.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=kt(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Pt=[H,W,Ke,qe,gt,_t,Ct,wt,Tt,Et,vt,yt,bt,lt,R,mt,ft,Ot,jt,Mt,Nt],Ft=new Map([[`core`,it],[`failsafe`,[H,W,Ke]],[`json`,ct],[`yaml11`,Pt],[`yaml-1.1`,Pt]]),It={binary:lt,bool:Je,float:Ze,floatExp:Xe,floatNaN:Ye,floatTime:Mt,int:nt,intHex:rt,intOct:tt,intTime:jt,map:H,merge:R,null:qe,omap:mt,pairs:ft,seq:W,set:Ot,timestamp:Nt},Lt={"tag:yaml.org,2002:binary":lt,"tag:yaml.org,2002:merge":R,"tag:yaml.org,2002:omap":mt,"tag:yaml.org,2002:pairs":ft,"tag:yaml.org,2002:set":Ot,"tag:yaml.org,2002:timestamp":Nt};function Rt(e,t,n){let r=Ft.get(t);if(r&&!e)return n&&!r.includes(R)?r.concat(R):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(Ft.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(R)),i.reduce((e,t)=>{let n=typeof t==`string`?It[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(It).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var zt=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Bt=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:s,sortMapEntries:c,toStringDefaults:l}){this.compat=Array.isArray(e)?Rt(e,`compat`):e?Rt(null,e):null,this.name=typeof s==`string`&&s||`core`,this.knownTags=i?Lt:{},this.tags=Rt(t,this.name,n),this.toStringOptions=l??null,Object.defineProperty(this,r,{value:H}),Object.defineProperty(this,a,{value:Ke}),Object.defineProperty(this,o,{value:W}),this.sortMapEntries=typeof c==`function`?c:c===!0?zt:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Vt(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=Oe(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(N(t,``))}let o=!1,s=null;if(e.contents){if(h(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(N(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=L(e.contents,i,()=>s=null,t);s&&(c+=P(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(L(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
39
- `)?(n.push(`...`),n.push(N(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(N(a(t),``)))}return n.join(`
35
+ `+M(l(e),c),s&&s()):f&&o&&o(),m}function Ue({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,f=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(h(i))i.spaceBefore&&f.push(``),We(t,f,i.commentBefore,!1),i.comment&&(a=i.comment);else if(d(i)){let e=h(i.key)?i.key:null;e&&(e.spaceBefore&&f.push(``),We(t,f,e.commentBefore,!1),e.comment&&(l=!0));let n=h(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=L(i,c,()=>a=null);l||=f.length>u||o.includes(`
36
+ `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=f.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=N(o,r,s(a))),f.push(o),u=f.length}let{start:p,end:m}=n;if(f.length===0)return p+m;if(!l){let e=f.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=p;for(let t of f)e+=t?`\n${a}${i}${t}`:`
37
+ `;return`${e}\n${i}${m}`}return`${p}${o}${f.join(` `)}${o}${m}`}function We({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=M(t(r),e);n.push(i.trimStart())}}function B(e,t){let n=f(t)?t.value:t;for(let r of e)if(d(r)&&(r.key===t||r.key===n||f(r.key)&&r.key.value===n))return r}var V=class extends me{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(r,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Be(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=d(e)?e:!e||typeof e!=`object`||!(`key`in e)?new z(e,e?.value):new z(e.key,e.value);let r=B(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);f(r.value)&&ue(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=B(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=B(this.items,e)?.value;return(!t&&f(n)?n.value:n)??void 0}has(e){return!!B(this.items,e)}set(e,t){this.add(new z(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)Re(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!d(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ve(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},H={collection:`map`,default:!0,nodeClass:V,tag:`tag:yaml.org,2002:map`,resolve(e,t){return u(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>V.from(e,t,n)},U=class extends me{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(o,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Ge(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=Ge(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&f(r)?r.value:r}has(e){let t=Ge(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Ge(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];f(r)&&ue(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(O(e,String(r++),t));return n}toString(e,t,n){return e?Ve(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(A(a,void 0,n))}}return i}};function Ge(e){let t=f(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var W={collection:`seq`,default:!0,nodeClass:U,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return p(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>U.from(e,t,n)},Ke={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),I(e,t,n,r)}},qe={identify:e=>e==null,createNode:()=>new k(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new k(null),stringify:({source:e},t)=>typeof e==`string`&&qe.test.test(e)?e:t.options.nullStr},Je={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new k(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&Je.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function G({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var Ye={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:G},Xe={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():G(e)}},Ze={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new k(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:G},Qe=e=>typeof e==`bigint`||Number.isInteger(e),$e=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function et(e,t,n){let{value:r}=e;return Qe(r)&&r>=0?n+r.toString(t):G(e)}var tt={identify:e=>Qe(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>$e(e,2,8,n),stringify:e=>et(e,8,`0o`)},nt={identify:Qe,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>$e(e,0,10,n),stringify:G},rt={identify:e=>Qe(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>$e(e,2,16,n),stringify:e=>et(e,16,`0x`)},it=[H,W,Ke,qe,Je,tt,nt,rt,Ye,Xe,Ze];function at(e){return typeof e==`bigint`||Number.isInteger(e)}var ot=({value:e})=>JSON.stringify(e),st=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:ot},{identify:e=>e==null,createNode:()=>new k(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:ot},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:ot},{identify:at,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>at(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ot}],ct=[H,W].concat(st,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),lt={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=k.BLOCK_LITERAL,t!==k.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===k.BLOCK_LITERAL?`
38
+ `:` `)}return I({comment:e,type:t,value:s},r,i,a)}};function ut(e,t){if(p(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!d(r)){if(u(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new z(new k(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=d(r)?r:new z(r)}}else t(`Expected a sequence for this tag`);return e}function dt(e,t,n){let{replacer:r}=n,i=new U(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Be(o,s,n))}return i}var ft={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:ut,createNode:dt},pt=class e extends U{constructor(){super(),this.add=V.prototype.add.bind(this),this.delete=V.prototype.delete.bind(this),this.get=V.prototype.get.bind(this),this.has=V.prototype.has.bind(this),this.set=V.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(d(e)?(r=O(e.key,``,t),i=O(e.value,r,t)):r=O(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=dt(e,t,n),i=new this;return i.items=r.items,i}};pt.tag=`tag:yaml.org,2002:omap`;var mt={collection:`seq`,identify:e=>e instanceof Map,nodeClass:pt,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=ut(e,t),r=[];for(let{key:e}of n.items)f(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new pt,n)},createNode:(e,t,n)=>pt.from(e,t,n)};function ht({value:e,source:t},n){return t&&(e?gt:_t).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var gt={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new k(!0),stringify:ht},_t={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new k(!1),stringify:ht},vt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:G},yt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():G(e)}},bt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new k(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:G},K=e=>typeof e==`bigint`||Number.isInteger(e);function xt(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function St(e,t,n){let{value:r}=e;if(K(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return G(e)}var Ct={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>xt(e,2,2,n),stringify:e=>St(e,2,`0b`)},wt={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>xt(e,1,8,n),stringify:e=>St(e,8,`0`)},Tt={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>xt(e,0,10,n),stringify:G},Et={identify:K,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>xt(e,2,16,n),stringify:e=>St(e,16,`0x`)},Dt=class e extends V{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=d(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new z(e.key,null):new z(e,null),B(this.items,t.key)||this.items.push(t)}get(e,t){let n=B(this.items,e);return!t&&d(n)?f(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=B(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new z(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Be(e,null,n));return i}};Dt.tag=`tag:yaml.org,2002:set`;var Ot={collection:`map`,identify:e=>e instanceof Set,nodeClass:Dt,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>Dt.from(e,t,n),resolve(e,t){if(u(e)){if(e.hasAllNullValues(!0))return Object.assign(new Dt,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function kt(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function At(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return G(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var jt={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>kt(e,n),stringify:At},Mt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>kt(e,!1),stringify:At},Nt={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Nt.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=kt(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Pt=[H,W,Ke,qe,gt,_t,Ct,wt,Tt,Et,vt,yt,bt,lt,R,mt,ft,Ot,jt,Mt,Nt],Ft=new Map([[`core`,it],[`failsafe`,[H,W,Ke]],[`json`,ct],[`yaml11`,Pt],[`yaml-1.1`,Pt]]),It={binary:lt,bool:Je,float:Ze,floatExp:Xe,floatNaN:Ye,floatTime:Mt,int:nt,intHex:rt,intOct:tt,intTime:jt,map:H,merge:R,null:qe,omap:mt,pairs:ft,seq:W,set:Ot,timestamp:Nt},Lt={"tag:yaml.org,2002:binary":lt,"tag:yaml.org,2002:merge":R,"tag:yaml.org,2002:omap":mt,"tag:yaml.org,2002:pairs":ft,"tag:yaml.org,2002:set":Ot,"tag:yaml.org,2002:timestamp":Nt};function Rt(e,t,n){let r=Ft.get(t);if(r&&!e)return n&&!r.includes(R)?r.concat(R):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(Ft.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(R)),i.reduce((e,t)=>{let n=typeof t==`string`?It[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(It).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var zt=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Bt=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:s,sortMapEntries:c,toStringDefaults:l}){this.compat=Array.isArray(e)?Rt(e,`compat`):e?Rt(null,e):null,this.name=typeof s==`string`&&s||`core`,this.knownTags=i?Lt:{},this.tags=Rt(t,this.name,n),this.toStringOptions=l??null,Object.defineProperty(this,r,{value:H}),Object.defineProperty(this,a,{value:Ke}),Object.defineProperty(this,o,{value:W}),this.sortMapEntries=typeof c==`function`?c:c===!0?zt:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Vt(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=Oe(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(M(t,``))}let o=!1,s=null;if(e.contents){if(h(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(M(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=L(e.contents,i,()=>s=null,t);s&&(c+=N(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(L(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
39
+ `)?(n.push(`...`),n.push(M(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(M(a(t),``)))}return n.join(`
40
40
  `)+`
41
- `}var Ht=class e{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,s,{value:n});let i=null;typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},r);this.options=a;let{version:o}=a;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new E({version:o}),this.setSchema(o,r),this.contents=e===void 0?null:this.createNode(e,i,r)}clone(){let t=Object.create(e.prototype,{[s]:{value:n}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=h(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){q(this.contents)&&this.contents.add(e)}addIn(e,t){q(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=ie(this);e.anchor=!t||n.has(t)?ae(t||`a`,n):t}return new k(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=oe(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},h=j(e,l,p);return o&&m(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){return new z(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return q(this.contents)?this.contents.delete(e):!1}deleteIn(e){return M(e)?this.contents!=null&&(this.contents=null,!0):q(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return m(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return M(e)?!t&&f(this.contents)?this.contents.value:this.contents:m(this.contents)?this.contents.getIn(e,t):void 0}has(e){return m(this.contents)?this.contents.has(e):!1}hasIn(e){return M(e)?this.contents!==void 0:m(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=fe(this.schema,[e],t):q(this.contents)&&this.contents.set(e,t)}setIn(e,t){M(e)?this.contents=t:this.contents==null?this.contents=fe(this.schema,Array.from(e),t):q(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new E({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new E({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Bt(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=O(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?D(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Vt(this,e)}};function q(e){if(m(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Ut=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},J=class extends Ut{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},Wt=class extends Ut{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},Gt=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
42
- `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function Y(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function Kt(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
41
+ `}var Ht=class e{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,s,{value:n});let i=null;typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},r);this.options=a;let{version:o}=a;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new E({version:o}),this.setSchema(o,r),this.contents=e===void 0?null:this.createNode(e,i,r)}clone(){let t=Object.create(e.prototype,{[s]:{value:n}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=h(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){q(this.contents)&&this.contents.add(e)}addIn(e,t){q(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=ie(this);e.anchor=!t||n.has(t)?ae(t||`a`,n):t}return new ce(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=oe(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},h=A(e,l,p);return o&&m(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){return new z(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return q(this.contents)?this.contents.delete(e):!1}deleteIn(e){return j(e)?this.contents!=null&&(this.contents=null,!0):q(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return m(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return j(e)?!t&&f(this.contents)?this.contents.value:this.contents:m(this.contents)?this.contents.getIn(e,t):void 0}has(e){return m(this.contents)?this.contents.has(e):!1}hasIn(e){return j(e)?this.contents!==void 0:m(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=pe(this.schema,[e],t):q(this.contents)&&this.contents.set(e,t)}setIn(e,t){j(e)?this.contents=t:this.contents==null?this.contents=pe(this.schema,Array.from(e),t):q(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new E({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new E({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Bt(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=O(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?D(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Vt(this,e)}};function q(e){if(m(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Ut=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},J=class extends Ut{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},Wt=class extends Ut{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},Gt=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
42
+ `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function Y(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:b&&n===`seq-item-ind`||(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function Kt(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
43
43
  `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(Kt(t.key)||Kt(t.value))return!0}return!1;default:return!0}}function qt(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&Kt(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function Jt(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||f(e)&&f(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var Yt=`All mapping items must start at the same column`;function Xt({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??V)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=Y(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,Yt)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
44
44
  `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||Kt(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,Yt);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&qt(r.indent,u,i),n.atKey=!1,Jt(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=Y(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&qt(r.indent,f,i),s=c.range[2];let l=new z(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
45
45
  `+_.comment:g.comment=_.comment);let e=new z(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function Zt({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??U)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=Y(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&qt(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function Qt(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var $t=`Block collections are not allowed within flow collections`,en=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function tn({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?V:U))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:f,key:p,sep:m,value:h}=l,g=Y(f,{flow:s,indicator:`explicit-key-ind`,next:p??m?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!g.found){if(!g.anchor&&!g.tag&&!m&&!h){a===0&&g.comma?i(g.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(g.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),g.comment&&(c.comment?c.comment+=`
46
46
  `+g.comment:c.comment=g.comment),u=g.end;continue}!o&&n.options.strict&&Kt(p)&&i(p,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)g.comma&&i(g.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(g.comma||i(g.start,`MISSING_CHAR`,`Missing , between ${s} items`),g.comment){let e=``;loop:for(let t of f)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];d(t)&&(t=t.value??t.key),t.comment?t.comment+=`
47
47
  `+e:t.comment=e,g.comment=g.comment.substring(e.length+1)}}if(!o&&!m&&!g.found){let r=h?e(n,h,g,i):t(n,g.end,m,null,g,i);c.items.push(r),u=r.range[2],en(h)&&i(r.range,`BLOCK_IN_FLOW`,$t)}else{n.atKey=!0;let a=g.end,d=p?e(n,p,g,i):t(n,a,f,null,g,i);en(p)&&i(d.range,`BLOCK_IN_FLOW`,$t),n.atKey=!1;let _=Y(m??[],{flow:s,indicator:`map-value-ind`,next:h,offset:d.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!g.found&&n.options.strict){if(m)for(let e of m){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}g.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else h&&(`source`in h&&h.source?.[0]===`:`?i(h,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=h?e(n,h,_,i):_.found?t(n,_.end,m,null,_,i):null;v?en(h)&&i(v.range,`BLOCK_IN_FLOW`,$t):_.comment&&(d.comment?d.comment+=`
48
48
  `+_.comment:d.comment=_.comment);let y=new z(d,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;Jt(n,e.items,d)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new V(n.schema);e.flow=!0,e.items.push(y);let t=(v??d).range;e.range=[d.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let f=o?`}`:`]`,[p,...m]=r.end,h=u;if(p?.source===f)h=p.offset+p.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${f}`:`${e} in block collection must be sufficiently indented and end with a ${f}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),p&&p.source.length!==1&&m.unshift(p)}if(m.length>0){let e=Qt(m,h,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
49
- `+e.comment:c.comment=e.comment),c.range=[r.offset,h,e.offset]}else c.range=[r.offset,h,h];return c}function nn(e,t,n,r,i,a){let o=n.type===`block-map`?Xt(e,t,n,r,a):n.type===`block-seq`?Zt(e,t,n,r,a):tn(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function rn(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===V.tagName&&s===`map`||o===U.tagName&&s===`seq`)return nn(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),nn(e,t,n,i,o)}let l=nn(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=h(u)?u:new A(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function an(e,t,n){let r=t.offset,i=on(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?A.BLOCK_FOLDED:A.BLOCK_LITERAL,o=t.source?sn(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
49
+ `+e.comment:c.comment=e.comment),c.range=[r.offset,h,e.offset]}else c.range=[r.offset,h,h];return c}function nn(e,t,n,r,i,a){let o=n.type===`block-map`?Xt(e,t,n,r,a):n.type===`block-seq`?Zt(e,t,n,r,a):tn(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function rn(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===V.tagName&&s===`map`||o===U.tagName&&s===`seq`)return nn(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),nn(e,t,n,i,o)}let l=nn(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=h(u)?u:new k(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function an(e,t,n){let r=t.offset,i=on(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?k.BLOCK_FOLDED:k.BLOCK_LITERAL,o=t.source?sn(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
50
50
  `.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
51
- `;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===A.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
51
+ `;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===k.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
52
52
  `):t.length>c||r[0]===` `?(f===` `?f=`
53
53
  `:!p&&f===`
54
54
  `&&(f=`
@@ -61,7 +61,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
61
61
  `+o[e][0].slice(c);d[d.length-1]!==`
62
62
  `&&(d+=`
63
63
  `);break;default:d+=`
64
- `}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function on({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function sn(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function cn(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=A.PLAIN,c=ln(a,l);break;case`single-quoted-scalar`:s=A.QUOTE_SINGLE,c=un(a,l);break;case`double-quoted-scalar`:s=A.QUOTE_DOUBLE,c=fn(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=Qt(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function ln(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),dn(e)}function un(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),dn(e.slice(1,-1)).replace(/''/g,`'`)}function dn(e){let t=/(.*?)\r?\n/sy,n=t.exec(e);if(!n)return e;let r,i;try{r=RegExp(`(?<![ ])[ ]+$`),i=RegExp(`^[ ]+|(?<![ ])[ ]+$`,`g`)}catch{r=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let a=n[1].replace(r,``),o=` `,s=t.lastIndex;for(;n=t.exec(e);){let e=n[1].replace(i,``);e===``?o===`
64
+ `}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function on({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function sn(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function cn(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=k.PLAIN,c=ln(a,l);break;case`single-quoted-scalar`:s=k.QUOTE_SINGLE,c=un(a,l);break;case`double-quoted-scalar`:s=k.QUOTE_DOUBLE,c=fn(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=Qt(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function ln(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),dn(e)}function un(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),dn(e.slice(1,-1)).replace(/''/g,`'`)}function dn(e){let t=/(.*?)\r?\n/sy,n=t.exec(e);if(!n)return e;let r,i;try{r=RegExp(`(?<![ ])[ ]+$`),i=RegExp(`^[ ]+|(?<![ ])[ ]+$`,`g`)}catch{r=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let a=n[1].replace(r,``),o=` `,s=t.lastIndex;for(;n=t.exec(e);){let e=n[1].replace(i,``);e===``?o===`
65
65
  `?a+=o:o=`
66
66
  `:(a+=o+e,o=` `),s=t.lastIndex}let c=/[ \t]*(.*)/sy;return c.lastIndex=s,n=c.exec(e),a+o+(n?.[1]??``)}function fn(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!==`\r`||e[r+1]!==`
67
67
  `){if(i===`
@@ -74,7 +74,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
74
74
  `);)r===`
75
75
  `&&(n+=`
76
76
  `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var mn={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
77
- `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function hn(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function gn(e,t,n,r){let{value:i,type:o,comment:s,range:c}=t.type===`block-scalar`?an(e,t,r):cn(t,e.options.strict,r),l=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,u;u=e.options.stringKeys&&e.atKey?e.schema[a]:l?_n(e.schema,i,l,n,r):t.type===`scalar`?vn(e,i,t,r):e.schema[a];let d;try{let a=u.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);d=f(a)?a:new A(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),d=new A(i)}return d.range=c,d.source=i,o&&(d.type=o),l&&(d.tag=l),u.format&&(d.format=u.format),s&&(d.comment=s),d}function _n(e,t,n,r,i){if(n===`!`)return e[a];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)o.push(t);else return t}for(let e of o)if(e.test?.test(t))return e;let s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[a])}function vn({atKey:e,directives:t,schema:n},r,i,o){let s=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[a];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[a];s.tag!==e.tag&&o(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(s.tag)} or ${t.tagString(e.tag)}`,!0)}return s}function yn(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var bn={composeNode:xn,composeEmptyNode:Sn};function xn(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Cn(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=gn(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=rn(bn,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=Sn(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!f(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Sn(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=gn(e,{type:`scalar`,offset:yn(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Cn({options:e},{offset:t,source:n,end:r},i){let a=new k(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=Qt(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function wn(e,t,{offset:n,start:r,value:i,end:a},o){let s=new Ht(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=Y(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?xn(c,i,l,o):Sn(c,l.end,r,null,l,o);let u=s.contents.range[2],d=Qt(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function Tn(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function En(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
77
+ `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function hn(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function gn(e,t,n,r){let{value:i,type:o,comment:s,range:c}=t.type===`block-scalar`?an(e,t,r):cn(t,e.options.strict,r),l=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,u;u=e.options.stringKeys&&e.atKey?e.schema[a]:l?_n(e.schema,i,l,n,r):t.type===`scalar`?vn(e,i,t,r):e.schema[a];let d;try{let a=u.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);d=f(a)?a:new k(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),d=new k(i)}return d.range=c,d.source=i,o&&(d.type=o),l&&(d.tag=l),u.format&&(d.format=u.format),s&&(d.comment=s),d}function _n(e,t,n,r,i){if(n===`!`)return e[a];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)o.push(t);else return t}for(let e of o)if(e.test?.test(t))return e;let s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[a])}function vn({atKey:e,directives:t,schema:n},r,i,o){let s=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[a];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[a];s.tag!==e.tag&&o(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(s.tag)} or ${t.tagString(e.tag)}`,!0)}return s}function yn(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var bn={composeNode:xn,composeEmptyNode:Sn};function xn(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Cn(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=gn(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=rn(bn,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=Sn(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!f(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Sn(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=gn(e,{type:`scalar`,offset:yn(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Cn({options:e},{offset:t,source:n,end:r},i){let a=new ce(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=Qt(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function wn(e,t,{offset:n,start:r,value:i,end:a},o){let s=new Ht(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=Y(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?xn(c,i,l,o):Sn(c,l.end,r,null,l,o);let u=s.contents.range[2],d=Qt(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function Tn(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function En(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
78
78
 
79
79
  `:`
80
80
  `)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Dn=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Tn(e);r?this.warnings.push(new Wt(i,t,n)):this.errors.push(new J(i,t,n))},this.directives=new E({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=En(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(m(i)&&!i.flow&&i.items.length>0){let e=i.items[0];d(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:En(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=Tn(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=wn(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new J(Tn(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new J(Tn(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=Qt(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new J(Tn(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new Ht(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}};function On(e,t=!0,n){if(e){let r=(e,t,r)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,r);else throw new J([i,i+1],t,r)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return cn(e,t,r);case`block-scalar`:return an({options:{strict:t}},e,r)}}return null}function kn(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:a=-1,type:o=`PLAIN`}=t,s=I({type:o,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:`newline`,offset:-1,indent:r,source:`
@@ -106,8 +106,8 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
106
106
  `,i=this.buffer[n+1]):t=n),i===`#`||e&&Jn.has(i))break;if(r===`
107
107
  `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&Jn.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(Xn),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(Z(n)||t&&Jn.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Z(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(qn.has(t))t=this.buffer[++e];else if(t===`%`&&Kn.has(this.buffer[e+1])&&Kn.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
108
108
  `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
109
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},Qn=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function Q(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function $n(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function er(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function tr(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function $(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function nr(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function rr(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Q(t.start,`explicit-key-ind`)&&!Q(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,er(t.value)?t.value.end?nr(t.value.end,t.sep):t.value.end=t.sep:nr(t.start,t.sep),delete t.sep)}var ir=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new Zn,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Gn(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&rr(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&$n(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:$n(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=$(tr(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
109
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},Qn=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function Q(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function $n(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function er(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function tr(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function $(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function nr(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function rr(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Q(t.start,`explicit-key-ind`)&&!Q(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,er(t.value)?t.value.end?nr(t.value.end,t.sep):t.value.end=t.sep:nr(t.start,t.sep),delete t.sep)}var ir=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new Zn,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Gn(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source})}else{if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&rr(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&$n(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:$n(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=$(tr(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
110
110
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
111
111
  `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){nr(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if(Q(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=$(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Q(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(er(t.key)&&!Q(t.sep,`newline`)){let e=$(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Q(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Q(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){nr(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||Q(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=$(tr(t));rr(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
112
112
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
113
- `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=$(tr(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=$(tr(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function ar(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Qn||null,prettyErrors:t}}function or(e,t={}){let{lineCounter:n,prettyErrors:r}=ar(t),i=new ir(n?.addNewLine),a=new Dn(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(Gt(e,n)),t.warnings.forEach(Gt(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function sr(e,t={}){let{lineCounter:n,prettyErrors:r}=ar(t),i=new ir(n?.addNewLine),a=new Dn(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new J(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Gt(e,n)),o.warnings.forEach(Gt(e,n))),o}function cr(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=sr(e,n);if(!i)return null;if(i.warnings.forEach(e=>Me(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function lr(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return l(e)&&!r?e.toString(n):new Ht(e,r,n).toString(n)}var ur=e({Alias:()=>k,CST:()=>Vn,Composer:()=>Dn,Document:()=>Ht,Lexer:()=>Zn,LineCounter:()=>Qn,Pair:()=>z,Parser:()=>ir,Scalar:()=>A,Schema:()=>Bt,YAMLError:()=>Ut,YAMLMap:()=>V,YAMLParseError:()=>J,YAMLSeq:()=>U,YAMLWarning:()=>Wt,isAlias:()=>c,isCollection:()=>m,isDocument:()=>l,isMap:()=>u,isNode:()=>h,isPair:()=>d,isScalar:()=>f,isSeq:()=>p,parse:()=>cr,parseAllDocuments:()=>or,parseDocument:()=>sr,stringify:()=>lr,visit:()=>b,visitAsync:()=>S}),dr=e({Alias:()=>k,CST:()=>Vn,Composer:()=>Dn,Document:()=>Ht,Lexer:()=>Zn,LineCounter:()=>Qn,Pair:()=>z,Parser:()=>ir,Scalar:()=>A,Schema:()=>Bt,YAMLError:()=>Ut,YAMLMap:()=>V,YAMLParseError:()=>J,YAMLSeq:()=>U,YAMLWarning:()=>Wt,default:()=>fr,isAlias:()=>c,isCollection:()=>m,isDocument:()=>l,isMap:()=>u,isNode:()=>h,isPair:()=>d,isScalar:()=>f,isSeq:()=>p,parse:()=>cr,parseAllDocuments:()=>or,parseDocument:()=>sr,stringify:()=>lr,visit:()=>b,visitAsync:()=>S}),fr=ur;export{lr as i,dr as n,cr as r,fr as t};
113
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=$(tr(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=$(tr(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function ar(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Qn||null,prettyErrors:t}}function or(e,t={}){let{lineCounter:n,prettyErrors:r}=ar(t),i=new ir(n?.addNewLine),a=new Dn(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(Gt(e,n)),t.warnings.forEach(Gt(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function sr(e,t={}){let{lineCounter:n,prettyErrors:r}=ar(t),i=new ir(n?.addNewLine),a=new Dn(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new J(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Gt(e,n)),o.warnings.forEach(Gt(e,n))),o}function cr(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=sr(e,n);if(!i)return null;if(i.warnings.forEach(e=>Me(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function lr(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return l(e)&&!r?e.toString(n):new Ht(e,r,n).toString(n)}var ur=e({Alias:()=>ce,CST:()=>Vn,Composer:()=>Dn,Document:()=>Ht,Lexer:()=>Zn,LineCounter:()=>Qn,Pair:()=>z,Parser:()=>ir,Scalar:()=>k,Schema:()=>Bt,YAMLError:()=>Ut,YAMLMap:()=>V,YAMLParseError:()=>J,YAMLSeq:()=>U,YAMLWarning:()=>Wt,isAlias:()=>c,isCollection:()=>m,isDocument:()=>l,isMap:()=>u,isNode:()=>h,isPair:()=>d,isScalar:()=>f,isSeq:()=>p,parse:()=>cr,parseAllDocuments:()=>or,parseDocument:()=>sr,stringify:()=>lr,visit:()=>b,visitAsync:()=>S}),dr=e({parse:()=>cr,stringify:()=>lr}),fr=ur;export{lr as a,sr as i,dr as n,cr as r,fr as t};
@@ -0,0 +1 @@
1
+ import{Gt as e,Ht as t,Jt as n,Kt as r,Qn as i,Ut as a,Vt as o,Wt as s,Xt as c,Yn as l,Yt as u,Zt as d,qt as f}from"./get-example-value-COf0TWTn.js";import{n as p,r as m}from"./prevent-pollution-DPDD94Gp.js";import{r as h}from"./browser-e_rmFpD2.js";function g(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function _(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{let t=JSON.parse(e);return i(t)}catch{return!1}}function v(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function y(e){return!g(e)&&!v(e)&&!_(e)}function b(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function x(e){return e.split(`/`).slice(1).map(b)}function S(e,t,n,r=x){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let i=r(t);i.forEach(e=>p(e));let a=e;for(let e=0;e<i.length;e++){let t=i[e],r=e===i.length-1,o=i[e+1],s=/^\d+$/.test(o??``);r?a[t]=n:(t in a&&typeof a[t]==`object`||(a[t]=s?[]:{}),a=a[t])}}var C=(e,t)=>{if(URL.canParse(e)&&!g(e)&&!/^[a-z]:[\\/]/i.test(e))return e;if(g(e)&&g(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=r.pathname.endsWith(`/`)?r.pathname:f.dirname(r.pathname),a=f.posix.resolve(`/`,n.pathname),o=f.posix.relative(i,a),s=`${o}${o&&n.pathname.endsWith(`/`)?`/`:``}${n.search}${n.hash}`;return new URL(s,t).href===n.href?s:e}if(g(t)){let n=new URL(t),r=f.dirname(f.posix.resolve(`/`,n.pathname));return n.pathname=f.posix.relative(r,f.posix.resolve(`/`,e)),n.toString()}if(g(e))return e;let n=t.endsWith(`/`)?f.resolve(t):f.dirname(f.resolve(t)),r=f.resolve(e);return f.relative(n,r)},w={"binding:http":[`query`,`headers`],"binding:ws":[`query`,`headers`],"binding:anypointmq":[`headers`],"binding:jms":[`headers`],"binding:kafka":[`groupId`,`clientId`,`key`],"binding:mqtt":[`sessionExpiryInterval`,`maximumPacketSize`,`messageExpiryInterval`,`correlationData`,`responseTopic`],"binding:mqtt5":[`sessionExpiryInterval`],"binding:solace":[`timeToLive`,`priority`]},T={schema:{map:`schemas`,idKeyword:`$id`,anchors:!0,referenceSiblings:!0},"asyncapi-schema":{map:`asyncapi-schemas`,idKeyword:`$id`,anchors:!1,referenceSiblings:!1},"asyncapi-schema-object":{map:`asyncapi-schema-objects`,idKeyword:`$id`,anchors:!1,referenceSiblings:!1},"draft-04-schema":{map:`draft-04-schemas`,idKeyword:`id`,anchors:!1,referenceSiblings:!1},"draft-06-schema":{map:`draft-06-schemas`,idKeyword:`$id`,anchors:!1,referenceSiblings:!1},"draft-07-schema":{map:`draft-07-schemas`,idKeyword:`$id`,anchors:!1,referenceSiblings:!1},"openapi-3.0-schema":{map:`openapi-3.0-schemas`,idKeyword:void 0,anchors:!1,referenceSiblings:!1}},E=new Map(m(T).map(([e,t])=>[t.map,e])),D=(e,t,{swagger:n,asyncapi:r,schemaFormat:i,openapi30:a})=>{if(e===`generic`)return`generic`;if(e===`data-container`)return`data`;if(e===`binding-sets`)return`bindings`;if(e===`bindings`)return t.startsWith(`x-`)?`data`:`binding:${t}`;if(e.startsWith(`binding:`)&&w[e]?.includes(t))return`asyncapi-schema-object`;if(e===`messages`)return`message`;if(e===`message`&&t===`traits`||e===`message`&&t===`oneOf`||[`object`,`components`].includes(e)&&t===`messageTraits`)return`messages`;if(e===`message`&&t===`examples`)return`data`;if(e===`message`&&[`payload`,`headers`].includes(t))return r?`asyncapi-schema`:`schema`;if(t===`message`&&e===`object`)return`message`;if(t===`messages`&&[`object`,`components`].includes(e))return`messages`;if(e===`data`)return`data`;if(e===`paths`)return t.startsWith(`x-`)?`data`:`path-item`;if(e===`named-responses`)return`response`;if(e===`path-items`)return`path-item`;if(e===`callbacks`)return`callback`;if(e===`callback`)return t.startsWith(`x-`)?`data`:`path-item`;let o=E.get(e);if(o!==void 0)return o;if(e===`objects`)return`object`;if(e===`responses`)return t.startsWith(`x-`)?`data`:`response`;if(e===`links`)return`link`;if(k(e)){if(e===`asyncapi-schema`&&i!==void 0&&t===`schema`){if(/^application\/vnd\.aai\.asyncapi(?:\+json|\+yaml)?;version=3\.[01]\.\d+$/.test(i))return`asyncapi-schema-object`;let e=/^application\/schema\+(?:json|yaml);version=draft-(04|06|07)$/.exec(i)?.[1];return e===`04`||e===`06`||e===`07`?`draft-${e}-schema`:/^application\/vnd\.oai\.openapi(?:\+json|\+yaml)?;version=3\.0\.\d+$/.test(i)?`openapi-3.0-schema`:`schema`}let n=e===`asyncapi-schema-object`||e===`asyncapi-schema`&&i===void 0,r=[`draft-04-schema`,`draft-06-schema`,`draft-07-schema`].includes(e),a=e===`schema`,o=n?`asyncapi-schema-object`:r||e===`openapi-3.0-schema`?e:`schema`;return n&&t===`externalDocs`?`object`:(n||r)&&t===`additionalItems`?o:t===`properties`||e!==`openapi-3.0-schema`&&[`patternProperties`,`dependencies`,`definitions`].includes(t)||a&&[`dependentSchemas`,`$defs`].includes(t)?T[o].map:[`items`,`additionalProperties`,`not`,`allOf`,`anyOf`,`oneOf`].includes(t)||(a||n||e===`draft-06-schema`||e===`draft-07-schema`)&&[`contains`,`propertyNames`].includes(t)||(a||n||e===`draft-07-schema`)&&[`if`,`then`,`else`].includes(t)||a&&[`unevaluatedProperties`,`unevaluatedItems`,`contentSchema`,`prefixItems`].includes(t)?o:`data`}return e===`link`&&[`parameters`,`requestBody`].includes(t)||e===`response`&&n&&t===`examples`?`data`:t===`components`?`components`:t===`paths`?`paths`:[`webhooks`,`pathItems`].includes(t)?`path-items`:t===`callbacks`?`callbacks`:t===`responses`?e===`components`?`named-responses`:`responses`:t===`links`?`links`:t.startsWith(`x-`)?`data`:r&&t===`bindings`?`bindings`:r&&e===`components`&&[`serverBindings`,`channelBindings`,`operationBindings`,`messageBindings`].includes(t)?`binding-sets`:[`example`,`default`,`enum`,`const`,`value`,`dataValue`,`serializedValue`].includes(t)?`data`:t===`examples`?`objects`:r&&e===`components`&&t===`schemas`?`asyncapi-schemas`:r&&[`servers`,`variables`].includes(t)||r&&e===`components`&&[`serverVariables`,`correlationIds`,`replies`,`replyAddresses`,`externalDocs`,`tags`,`operationTraits`].includes(t)?`objects`:a&&[`schemas`,`definitions`].includes(t)?`openapi-3.0-schemas`:[`schemas`,`definitions`,`$defs`].includes(t)?`schemas`:t===`schema`?r?`asyncapi-schema-object`:a?`openapi-3.0-schema`:`schema`:t===`itemSchema`?`schema`:[`content`,`parameters`,`headers`,`requestBodies`,`securitySchemes`,`channels`,`messages`,`operations`].includes(t)?`objects`:`object`},O=e=>k(e)||e.startsWith(`binding:`)||[`generic`,`object`,`response`,`link`,`path-item`,`callback`,`message`,`bindings`].includes(e),k=e=>e!==void 0&&Object.hasOwn(T,e),A=e=>k(e)?T[e]:void 0,j=e=>E.has(e),M=(t,n)=>{if(n===void 0)return t=>t===`/`?`https://scalar.invalid/`:e(t);let r=new URL(n);if(r.hash||!URL.canParse(`.`,r))throw TypeError(`outputBase must be an absolute hierarchical URI without a fragment`);let i=e(t),a=URL.canParse(`.`,i)?new URL(`.`,i):void 0,o=new Map;return t=>{let n=e(t);if(n===i)return r.href;let s=new URL(n);if(s.protocol!==`file:`)return n;if(a&&s.host===a.host&&s.pathname.startsWith(a.pathname)){let e=s.pathname.slice(a.pathname.length);return new URL(`${e}${s.search}${s.hash}`,r).href}let c=new URL(`.`,s).href;return o.has(c)||o.set(c,`./__bundle__/source-${o.size}/`),new URL(`${o.get(c)}${s.pathname.split(`/`).at(-1)}${s.search}${s.hash}`,r).href}},ee=(e,t,n,r=!0,a=!1)=>{let s=new WeakMap,l=new WeakMap,u=new WeakSet;return{register:(d,f,p,m=[])=>{if(!r||typeof d!=`object`||!d)return;let h=new WeakSet,g=i(d)&&[`openapi`,`swagger`,`asyncapi`].some(e=>e in d),_=g?typeof d.asyncapi==`string`:a,v=p??(g?`object`:`schema`),y=g?d.swagger===`2.0`:t,b=g?d.swagger!==`2.0`&&!String(d.openapi).startsWith(`3.0.`):n,x=(n,r,u,p)=>{if(typeof n!=`object`||!n||h.has(n))return;h.add(n);let m=e?s.get(n)??u:`generic`,v=i(n)&&typeof n.$schema==`string`?p&&!/draft-0[3467]/.test(n.$schema):p,b=v&&(A(m)?.referenceSiblings??!0);l.set(n,{source:f,pointer:`#${r.map(e=>`/${c(e)}`).join(``)}`,context:m,schemaSiblings:b});let S=e&&m!==`generic`&&m!==`path-item`&&O(m)&&i(n)&&typeof n.$ref==`string`&&(!k(m)||!b),C=i(n)&&typeof n.schemaFormat==`string`?n.schemaFormat:void 0;for(let e of Object.keys(o(n))){let i=n[e],o=S?`data`:Array.isArray(n)&&![`objects`,`messages`].includes(m)&&!j(m)?m:D(m,e,{swagger:y,openapi30:g?String(d.openapi).startsWith(`3.0.`):!b&&!a&&!t,asyncapi:_,schemaFormat:C});x(i,[...r,e],o,v)}};if(u.has(d)||(x(d,[],g?`object`:v,b),u.add(d)),p===void 0)return;let S=d;for(let e of m){if(typeof S!=`object`||!S)return;let t=l.get(S);t?.context===`data`&&(l.set(S,{...t,context:`data-container`}),s.set(S,`data-container`)),S=S[e]}if(typeof S!=`object`||!S)return;let C=l.get(S);if(k(C?.context)&&k(p)&&(g||C?.context!==`schema`)||(s.set(S,p),C?.context===p))return;let w=C?.schemaSiblings??b;h=new WeakSet,x(S,[...m],p,w)},location:e=>l.get(e)}},te=(t,{targets:r,schemas:a,externalDocumentsKey:l,createTraversal:u,documents:f,sourceReferences:p,outputBase:m})=>{let h=e=>{let[t=``,n]=e.split(`#`,2),r=t;try{r=new URL(t).href}catch{}return r=r.replace(/%([\da-f]{2})/gi,(e,t)=>{let n=String.fromCharCode(Number.parseInt(t,16));return/^[a-z\d._~-]$/i.test(n)?n:e.toUpperCase()}),`${r}${n===void 0?``:`#${d(n)}`}`},g=[],_=new WeakMap,v=new Map;for(let{path:e,uri:r,outputUri:s,idKeyword:c}of a){let a=n(t,e).value;if(!i(a))continue;let l=s??r,u={node:a,path:e,uri:l,outputUri:s,idKeyword:c,sourceUri:r},d=v.get(h(l));if(d&&o(d.node)!==o(a)&&(l!==r||d.uri!==d.sourceUri))throw TypeError(`Schema output identity collision: ${l}`);v.set(h(l),u),a[c]=l,g.push(u),_.set(o(a),l)}g.sort((e,t)=>t.path.length-e.path.length);let y=(e,t)=>e.length<=t.length&&e.every((e,n)=>e===t[n]),b=e=>e.length?`#/${e.map(e=>encodeURIComponent(c(e))).join(`/`)}`:`#`;f.sort((e,t)=>t.path.length-e.path.length);let x=e=>{let t=g.find(t=>y(t.path,e)),n=f.find(t=>y(t.path,e));return n&&t&&n.path.length>t.path.length?void 0:t},S=({reference:t,origin:n})=>s(e(n),t);for(let e of f){if(!e.path.length)continue;let r=n(t,e.path).value,a=u();a.register(r,``,e.context);let s=new WeakSet,c=e=>{if(typeof e!=`object`||!e||_.has(o(e))||s.has(o(e)))return;s.add(o(e));let t=a.location(e)?.context;if(t!==`data`){i(e)&&(A(t??`schema`)?.anchors||t===`generic`)&&(delete e.$anchor,delete e.$dynamicAnchor);for(let t of Object.keys(o(e)))c(Reflect.get(e,t))}};c(r)}for(let[e,t]of p){if(!i(e))continue;let n=r.get(e);if(n){let r=x(n.path);if(r?.uri.includes(`#`)&&n.path.length===r.path.length)e.$ref=r.uri;else if(r?.outputUri&&r.uri!==r.sourceUri&&!x([...t.path])){let t=b(n.path.slice(r.path.length));e.$ref=`${r.uri}${t===`#`?``:t}`}continue}let a=f.find(e=>y(e.path,[...t.path])),o=x([...t.path]);(!o&&(a?.path.length||m!==void 0)||o&&o.uri!==o.sourceUri)&&(e.$ref=S(t))}let C=new Set(a.flatMap(({uri:e,outputUri:t})=>[h(e),h(t??e)])),w=new WeakSet,T=e=>{if(typeof e==`object`&&e&&!w.has(o(e))){w.add(o(e)),i(e)&&typeof e.$ref==`string`&&C.add(h(e.$ref));for(let t of Object.keys(o(e)))T(Reflect.get(e,t))}};T(t);for(let e of g){let a=e.uri.includes(`#`),s=[],c=new WeakSet,d=({path:r,context:o})=>{let c=x(r);if(c&&(!c.uri.includes(`#`)||r.length===c.path.length)){if(c.uri.includes(`#`))return c.uri;let t=b(r.slice(c.path.length));return c===e?t:`${c.uri}${t===`#`?``:t}`}let u=s.find(({source:e})=>a?e.length===r.length&&y(e,r):y(e,r));if(u)return u.uri??b([...u.destination,...r.slice(u.source.length)]);let d=a?`definitions`:l,p=Object.hasOwn(e.node,d)?e.node[d]:void 0,m=i(p)?p:{};p!==m&&Object.defineProperty(e.node,d,{value:m,enumerable:!0,configurable:!0,writable:!0});let g=s.length;for(;Object.hasOwn(m,`bundle-${g}`);)g++;let _=`bundle-${g}`,v=[d,_],S;if(a){let t=g;do S=`${e.uri.split(`#`,1)[0]}#scalar-bundle-${t++}`;while(C.has(h(S)));C.add(h(S))}s.push({source:r,destination:v,uri:S});let w=f(n(t,r).value,o);return Object.defineProperty(m,_,{value:S?{[e.idKeyword]:S,allOf:[w]}:w,enumerable:!0,configurable:!0,writable:!0}),S??b(v)},f=(e,t)=>{let n=u();n.register(e,``,t);let i=(e,t=!1)=>{if(typeof e!=`object`||!e)return e;let a=n.location(e),s=t||a?.context===`data`,c=s?void 0:_.get(o(e));if(c!==void 0)return{$ref:c};if(Array.isArray(e))return e.map(e=>i(e,s));let l=Object.fromEntries(Object.keys(o(e)).map(t=>[t,i(Reflect.get(e,t),s)])),u=s?void 0:r.get(o(e));return u?l.$ref=d(u):!s&&p.has(o(e))&&(l.$ref=S(p.get(o(e)))),!s&&(A(a?.context??`schema`)?.anchors||a?.context===`generic`)&&(delete l.$anchor,delete l.$dynamicAnchor),l};return i(e)},m=t=>{if(typeof t!=`object`||!t||c.has(o(t))||(c.add(o(t)),o(t)!==o(e.node)&&_.has(o(t))))return;let n=r.get(o(t));n&&i(t)&&(t.$ref=d(n));for(let e of Object.keys(o(t)))m(Reflect.get(t,e))};m(e.node)}},N=e=>{let t=0,n=0,r=e.length,i=r&15,a=r-i,o=2277735313,s=1291169091,c=1390208809,l=944331445;for(let r=0;r<a;r+=16){let i=e.charCodeAt(r)&255|(e.charCodeAt(r+1)&255)<<8|(e.charCodeAt(r+2)&255)<<16|(e.charCodeAt(r+3)&255)<<24,a=e.charCodeAt(r+4)&255|(e.charCodeAt(r+5)&255)<<8|(e.charCodeAt(r+6)&255)<<16|(e.charCodeAt(r+7)&255)<<24,u=e.charCodeAt(r+8)&255|(e.charCodeAt(r+9)&255)<<8|(e.charCodeAt(r+10)&255)<<16|(e.charCodeAt(r+11)&255)<<24,d=e.charCodeAt(r+12)&255|(e.charCodeAt(r+13)&255)<<8|(e.charCodeAt(r+14)&255)<<16|(e.charCodeAt(r+15)&255)<<24;i=Math.imul(i,o),i=i<<15|i>>>17,i=Math.imul(i,s),t^=i,t=t<<13|t>>>19,t=Math.imul(t,5)+3864292196,a=Math.imul(a,s),a=a<<16|a>>>16,a=Math.imul(a,c),n^=a,n=n<<17|n>>>15,n=Math.imul(n,5)+461845907,u=Math.imul(u,c),u=u<<17|u>>>15,u=Math.imul(u,l),t^=u,t=t<<15|t>>>17,t=Math.imul(t,5)+1390208809,d=Math.imul(d,l),d=d<<18|d>>>14,d=Math.imul(d,o),n^=d,n=n<<13|n>>>19,n=Math.imul(n,5)+944331445}if(i>0){let r=0,u=0,d=0,f=0;i>=15&&(f^=(e.charCodeAt(a+14)&255)<<16),i>=14&&(f^=(e.charCodeAt(a+13)&255)<<8),i>=13&&(f^=e.charCodeAt(a+12)&255,f=Math.imul(f,l),f=f<<18|f>>>14,f=Math.imul(f,o),n^=f),i>=12&&(d^=(e.charCodeAt(a+11)&255)<<24),i>=11&&(d^=(e.charCodeAt(a+10)&255)<<16),i>=10&&(d^=(e.charCodeAt(a+9)&255)<<8),i>=9&&(d^=e.charCodeAt(a+8)&255,d=Math.imul(d,c),d=d<<17|d>>>15,d=Math.imul(d,l),t^=d),i>=8&&(u^=(e.charCodeAt(a+7)&255)<<24),i>=7&&(u^=(e.charCodeAt(a+6)&255)<<16),i>=6&&(u^=(e.charCodeAt(a+5)&255)<<8),i>=5&&(u^=e.charCodeAt(a+4)&255,u=Math.imul(u,s),u=u<<16|u>>>16,u=Math.imul(u,c),n^=u),i>=4&&(r^=(e.charCodeAt(a+3)&255)<<24),i>=3&&(r^=(e.charCodeAt(a+2)&255)<<16),i>=2&&(r^=(e.charCodeAt(a+1)&255)<<8),i>=1&&(r^=e.charCodeAt(a)&255,r=Math.imul(r,o),r=r<<15|r>>>17,r=Math.imul(r,s),t^=r)}return t^=r,n^=r,t+=n,n+=t,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),t^=t>>>16,n^=n>>>16,n=Math.imul(n,2246822507),n^=n>>>13,n=Math.imul(n,3266489909),n^=n>>>16,t+=n,n+=t,(t>>>0).toString(16).padStart(8,`0`)+(n>>>0).toString(16).padStart(8,`0`)};function P(e){let t=N(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function F(e,t,n,r,i=0){if(i>=100)throw`Can not generate unique compressed values`;let a=await e(r??t);return n[a]!==void 0&&n[a]!==t?F(e,t,n,a,i+1):(n[a]=t,a)}var I=(e,t)=>{let n=new Map(Object.entries(t).map(([e,t])=>[t,e]));return{generate:async r=>{let i=n.get(r);if(i)return i;let a=await F(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n.set(r,o),o}}},L=e=>i(e)&&`$ref`in e&&typeof e.$ref==`string`;function R(e){return e.startsWith(`#`)}function z(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function ne(e,t){if(!R(e))throw`Please provide an internal ref`;return`#/${t.map(c).join(`/`)}${e.substring(1)}`}var B=(e,t,n,r)=>{if(n.length===0)throw Error(`Cannot set value at root ('') pointer`);n.forEach(e=>p(e));let a=e,o=t;for(let[e,t]of n.entries()){if(e===n.length-1){a[t]=r;return}o=i(o)||Array.isArray(o)?o[t]:void 0,(typeof a[t]!=`object`||a[t]===null)&&(a[t]=Array.isArray(o)?[]:{}),a=a[t]}},V=(e,t,r,a,o,s=!1,l=new Set,u={},d=()=>!0,f=(e,t)=>t,p=x)=>{let m=n(t,p(r)).value;if(l.has(m))return;l.add(m);let h=p(r);B(e,t,h,h.length===2&&i(m)&&Object.keys(u).length>0?{...m,...u}:m);for(let r=2;r<h.length;r++){let a=h.slice(0,r),o=n(t,a).value;if(i(o)){if(r===2)for(let[t,n]of Object.entries(u))S(e,`/${[...a,t].map(c).join(`/`)}`,n,p);typeof o.$id==`string`&&S(e,`/${[...a,`$id`].map(c).join(`/`)}`,o.$id,p)}}let g=n=>{if(!n||typeof n!=`object`||!d(n))return;let r=`$ref`in n&&typeof n.$ref==`string`?f(n,n.$ref):void 0;r!==void 0&&(r.startsWith(`#/${a}/${c(o)}`)||s)&&V(e,t,r.substring(1),a,o,s,l,u,d,f,p);for(let e of Object.values(n))g(e)};g(m)},H={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`},U=(e,t)=>W(e,t),W=async(e,f,m)=>{f.externalDocumentsKey=f.externalDocumentsKey??H.externalDocuments,f.externalDocumentsMappingsKey=f.externalDocumentsMappingsKey??H.externalDocumentsMappings,p(f.externalDocumentsKey),p(f.externalDocumentsMappingsKey);let h=f.cache??new Map,_=f.preserveReference!==void 0||f.outputBase!==void 0,v=f.plugins.filter(e=>e.type===`loader`),b=f.plugins.filter(e=>e.type===`lifecycle`),x=async(e,...t)=>{let n=f.hooks?.[e];n&&await n(...t);for(let n of b){let r=n[e];r&&await r(...t)}},w=new Map,T=e=>{let t=w.get(e);if(t)return t;let n=f.cache?.get(e)??f.cache?.get(C(e,N()))??z(e,v);return w.set(e,n),n},E=new Map,D=async(e,t,n=!1)=>{if(E.has(e))return E.get(e);let r=e;for(let e of[f.hooks?.onDocumentLoaded,...b.map(e=>e.onDocumentLoaded)])e&&(r=await e(r,{uri:t,loadDocument:T,stored:n})??r);return E.set(e,r),E.set(r,r),r},j=async()=>{if(typeof e!=`string`)return e;let t=await T(e);if(t.ok&&typeof t.data==`object`&&(!m||i(t.data)))return t.data;throw Error(`Failed to resolve input: Please provide a valid string value or pass a loader to process the input`)},N=()=>f.origin?f.origin:typeof e==`string`&&(g(e)||y(e))?e:`/`,F=await j(),R=f.root??F;w.set(N(),Promise.resolve({ok:!0,raw:``,data:R}));let B=await D(R,N());if(B!==R&&i(R)&&i(B)){w.set(N(),Promise.resolve({ok:!0,raw:``,data:structuredClone(R)}));for(let e of Object.keys(R))delete R[e];Object.assign(R,B)}let U=F,W=f.root??U,re=f.root!==void 0&&f.root!==U||f.depth!==void 0,G=f.visitedNodes??new Set,K=e=>e.split(`/`).slice(1).map(l),q=(e,t,n)=>S(e,t,n,K),ie=()=>ee(f.traversal===`document`,W.swagger===`2.0`,W.swagger!==`2.0`&&!String(W.openapi).startsWith(`3.0.`),f.traversal===`document`||m!==void 0,typeof W.asyncapi==`string`),J=ie();J.register(W,N(),f.traversal===`document`&&!(`openapi`in W||`swagger`in W||`asyncapi`in W)?`schema`:`object`);let ae=[],oe=(...e)=>{let t=()=>V(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e=>J.location(e)?.context!==`data`,(e,t)=>{let n=J.location(e)?.context;if(n&&!O(n))return;let r=Y.resolve(t,Y.origin(e)??X);return r?.value===void 0?t:`#/${r.path}`},K);m?ae.push(t):t()},se=e=>{if(!i(e))return;let t=J.location(e),n=A(f.traversal===`document`?t?.context:`schema`);if(!n||f.traversal===`document`&&(L(e)&&t?.schemaSiblings!==!0||t?.context===`asyncapi-schema`&&typeof e.schemaFormat==`string`))return;let r=n.idKeyword===void 0?void 0:e[n.idKeyword];return{id:typeof r==`string`&&r!==``?r:void 0,idKeyword:n.idKeyword,anchor:n.anchors&&typeof e.$anchor==`string`?e.$anchor:void 0}},Y=a(f.externalDocumentsKey,(e,t)=>{for(let n of[f.hooks?.resolveDocument,...b.map(e=>e.resolveDocument)]){let r=n?.(e,t);if(r!==void 0)return r}},_,e=>J.location(e)?.context!==`data`,se,_?M(N(),f.outputBase):void 0);Y.register(W,N());let X=Y.origin(W)??N(),Z=_?Y.retrievalOrigin(W)??N():X,ce=Y.identity(W)!==void 0||se(W)?.id!==void 0,le=new WeakMap,ue=new Map,de=(e,t)=>{let n=e.split(`/`).map((e,t)=>t===0?e:encodeURI(e).replace(/#/g,`%23`)).join(`/`);return ce&&Y.isSchemaResource(t)&&t!==X?`${X}${n}`:n},fe=Object.hasOwn(W,f.externalDocumentsMappingsKey)?W[f.externalDocumentsMappingsKey]:void 0,pe=i(fe)?Object.fromEntries(Object.entries(fe).filter(e=>typeof e[1]==`string`)):{};Object.defineProperty(W,f.externalDocumentsMappingsKey,{value:pe,enumerable:!0,configurable:!0,writable:!0});let{generate:me}=I(f.compress??P,pe),Q=W[f.externalDocumentsKey];if(i(Q))for(let[e,n]of Object.entries(Q)){let i=Object.hasOwn(pe,e)?pe[e]:void 0,a=t(Z,e,i),o=await D(n,a,!0);o!==n&&Object.defineProperty(Q,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),J.register(o,i?a:`#/${c(f.externalDocumentsKey)}/${c(e)}`),Y.register(o,a,[f.externalDocumentsKey,e],r(Z,i??e),g(N())?N():a)}for(let[e,t]of[...h]){let n=await t;if(n.ok){let i=r(Z,e),a=C(i,Z);m&&h.set(a,t);let o=await me(a);w.set(i,t);let s=await D(n.data,i),c=Promise.resolve({...n,data:s});s!==n.data&&h.set(e,c),J.register(s,i),Y.register(s,i,[f.externalDocumentsKey,o])}}let he=new Map,ge=(e,t,n,r)=>{if(!e)return Y;let i=he.get(n);if(i)return i;let o=a(f.externalDocumentsKey);return o.register(t,n,[f.externalDocumentsKey,r]),he.set(n,o),o},_e=async(e,t,n,r)=>{let a=e.segments.slice(e.documentPath.length),o=a,s=e.value;for(let n of[f.hooks?.onBeforeTargetProcess,...b.map(e=>e.onBeforeTargetProcess)]){let c=await n?.(s,{document:e.document,path:a,uri:i(e.document)?Y.retrievalOrigin(e.document)??t.origin:t.origin,referencedFrom:t,referenceSource:r});c&&(s=c.value,o=c.path?[...c.path]:o)}if(s===e.value&&o===a)return e;if(o.length)q(e.document,`/${o.map(c).join(`/`)}`,s);else if(i(e.document)&&i(s)){for(let t of Object.keys(e.document))delete e.document[t];Object.assign(e.document,s)}let l=i(e.document)?Y.retrievalOrigin(e.document)??t.origin:t.origin;J.register(e.document,l,n,o),Y.refresh(e.document,o);let u=[...e.documentPath,...o];return{...e,value:s,segments:u,path:u.map(c).join(`/`),preserveReference:!1}},ve=[],ye=async()=>{for(let e of ve)await e()},be=()=>{if(!(!m||!f.treeShake||m.length>0)){Q===void 0?delete W[f.externalDocumentsKey]:W[f.externalDocumentsKey]=Q;for(let e of ae)e()}},$=async(e,t=X,a=!1,l=0,p=[],y=null,S)=>{if(f.depth!==void 0&&l>f.depth||!i(e)&&!Array.isArray(e))return;let w=J.location(e);if(w?.context===`data`||G.has(e))return;G.add(e);let E=u(e),A=Y.origin(e)??(E?r(t,E):t),j=e=>Y.resolve(e,A,!!m),M={path:p,referencedFromPath:S,referenceContext:w?.context,resolutionCache:h,parentNode:y,rootNode:W,loaders:v,origin:A,resolveReference:e=>{let t=j(e);return t&&{path:t.segments,value:t.value,resourceRelative:t.resourceRelative}}},ee=Y.source(e)??{document:W,uri:X,path:S?[...S,...p.slice(2)]:p},te=L(e)?e.$ref:void 0;await x(`onBeforeNodeProcess`,e,M);let P=async()=>{for(let t of Object.keys(f.traversal===`document`?o(e):e))t!==`$ref`&&t!==f.externalDocumentsKey&&t!==f.externalDocumentsMappingsKey&&await $(e[t],A,a,l+1,[...p,t],e,S)};if(L(e)&&(!w||O(w.context))){let u=e.$ref,v=e=>{m?.push({kind:e,reference:te??u,source:w?.source??t,pointer:`${w?.pointer??`#/`+p.map(c).join(`/`)}/$ref`})};if(f.traversal===`document`&&(w?.context===`path-item`||k(w?.context)&&w?.schemaSiblings)&&await P(),f.preserveReference?.(u,{origin:A})){f.traversal!==`document`&&await P(),await x(`onAfterNodeProcess`,e,M);return}_&&ue.set(o(e),{reference:u,origin:A,path:p});let y=`$global`in e&&typeof e.$global==`boolean`&&e.$global,E=j(u),O=E&&!y?await _e(E,M,w?.context,ee):E,F=O?.path;if(F!==void 0){if(m&&O.value===void 0){v(`missing-target`),await x(`onResolveError`,e),await x(`onAfterNodeProcess`,e,M);return}_&&O.value!==void 0&&le.set(o(e),{path:O.segments,context:w?.context??`schema`});let t=!ce&&O.document===W&&Y.isSchemaResource(A)&&A!==X;!O.preserveReference&&!t&&(e.$ref=de(F?`#/${F}`:`#`,A));let r=f.traversal===`document`&&w!==void 0&&i(O.value)&&O.value!==e&&J.location(O.value)?.context!==w.context;if(r){let e=i(O.document)?J.location(O.document)?.source:void 0,t=K(`/${F}`).slice(O.documentPath.length);J.register(O.document,e??w.source,w.context,t),Y.refresh(O.document,t)}if(r||re||b.some(e=>e.onBeforeTargetProcess)||f.hooks?.onBeforeTargetProcess||m&&f.traversal===`document`){let e=K(`/${F}`),t=e.length>0?n(W,e.slice(0,-1)).value:void 0,r={value:O.value,context:i(O.value)?Y.origin(O.value):A};await $(r.value,r.context||X,a,l+1,e,t,S)}if(O.documentPath.length>0){let e=i(O.document)||Array.isArray(O.document)?Y.origin(O.document):A;if(Y.identity(O.document)?.visitReferencedSubtrees||await $(O.document,e,a,l+1,O.documentPath),f.treeShake){let[e,t]=O.documentPath;oe(W,{[e]:{[t]:O.document}},`/${F}`,e,t,!1,new Set,Y.identity(O.document)?.metadata)}if(!f.treeShake||m){let e=Y.identity(O.document)?.metadata;q(W,`/${O.documentPath.map(c).join(`/`)}`,i(O.document)&&e?{...O.document,...e}:O.document)}}await x(`onAfterNodeProcess`,e,M);return}let[I,L=``]=u.split(`#`,2);if(m&&!I){ve.push(async()=>{let t=Y.resolve(u,A);t?.value===void 0?(v(`missing-target`),await x(`onResolveError`,e)):(_&&le.set(o(e),{path:t.segments,context:w?.context??`schema`}),t.preserveReference||(e.$ref=de(`#/${t.path}`,A))),await x(`onAfterNodeProcess`,e,M)});return}let R=Y.retrievalOrigin(e)??A,z=_?s(R,I):r(R,I);if(g(Y.sourceOrigin(e)??N())&&!g(z)){v(`unresolved-document`),await x(`onResolveError`,e),await x(`onAfterNodeProcess`,e,M);return}let B=C(z,Z),V=await me(B),H=h.has(B);H||h.set(B,T(z).then(async e=>e.ok?{...e,data:await D(e.data,z)}:e)),await x(`onResolveStart`,e);let U=await h.get(B);if(U.ok&&(!m||U.data!==void 0)){if(!H){let e=K(d(L));J.register(U.data,z,w?.context??`generic`,e),y||Y.register(U.data,z,[f.externalDocumentsKey,V]),(y||!Y.identity(U.data)?.visitReferencedSubtrees)&&await $(U.data,y?t:z,y,l+1,[f.externalDocumentsKey,V],null,S?[...S,...p.slice(2)]:p),q(W,`/${f.externalDocumentsMappingsKey}/${c(V)}`,B)}let n=ge(y,U.data,z,V),r=async()=>{let t=n.resolve(u,R),r=t&&!y?await _e(t,M,w?.context,ee):t;if(r&&!y&&Y.identity(U.data)?.visitReferencedSubtrees&&await $(r.value,z,!1,l+1,r.segments,null,S?[...S,...p.slice(2)]:p),m&&r?.value===void 0){q(W,`/${f.externalDocumentsKey}/${c(V)}`,U.data),v(`missing-target`),await x(`onResolveError`,e),await x(`onAfterNodeProcess`,e,M);return}let a=r?`#/${r.path}`:ne(`#${L}`,[f.externalDocumentsKey,V]);if(_&&le.set(o(e),{path:K(a.substring(1)),context:w?.context??`schema`}),f.treeShake===!0&&oe(W,{[f.externalDocumentsKey]:{[V]:U.data}},a.substring(1),f.externalDocumentsKey,V,!1,new Set,Y.identity(U.data)?.metadata),(!f.treeShake||m)&&!H){let e=Y.identity(U.data)?.metadata;q(W,`/${f.externalDocumentsKey}/${V}`,i(U.data)&&e?{...U.data,...e}:U.data)}e.$ref=de(a,A),await x(`onResolveSuccess`,e),await x(`onAfterNodeProcess`,e,M)};m&&L&&!L.startsWith(`/`)&&n.resolve(u,A)?.value===void 0?ve.push(r):await r();return}return v(`unresolved-document`),await x(`onResolveError`,e),await x(`onAfterNodeProcess`,e,M),m?void 0:console.warn(`Failed to resolve external reference "${z}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let t in e)(f.traversal!==`document`||Object.hasOwn(o(e),t))&&t!==f.externalDocumentsKey&&t!==f.externalDocumentsMappingsKey&&await $(e[t],A,a,l+1,[...p,t],e,S);await x(`onAfterNodeProcess`,e,M)};if(await $(U,X,!1,0,f.inputPath??[]),m&&!f.treeShake&&i(Q))for(let[e,t]of Object.entries(Q))await $(t,X,!1,1,[f.externalDocumentsKey,e],Q);if(await ye(),be(),_){te(W,{targets:le,schemas:Y.schemas(),externalDocumentsKey:f.externalDocumentsKey,createTraversal:ie,documents:Y.documents().map(({path:e,value:t})=>({path:e,context:i(t)?J.location(t)?.context??`schema`:`schema`})),sourceReferences:ue,outputBase:f.outputBase});let e=W[f.externalDocumentsKey],t=Object.fromEntries(Object.entries(W[f.externalDocumentsMappingsKey]).filter(([t])=>i(e)&&Object.hasOwn(e,t)));Object.defineProperty(W,f.externalDocumentsMappingsKey,{value:t,enumerable:!0,configurable:!0,writable:!0})}return!f.urlMap&&!re&&delete W[f.externalDocumentsMappingsKey],U},re=class{data;next;constructor(e){this.data=e,this.next=null}},G=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new re(e);this.isEmpty()||!this.rear?(this.front=t,this.rear=t):(this.rear.next=t,this.rear=t),this.size++}dequeue(){if(this.isEmpty()||!this.front)return null;let e=this.front;return this.front=this.front.next,this.front===null&&(this.rear=null),this.size--,e.data}peek(){return this.isEmpty()||!this.front?null:this.front.data}isEmpty(){return this.size===0}getSize(){return this.size}toString(){let e=this.front,t=[];for(;e;)t.push(e.data),e=e.next;return t.join(` -> `)}};function K(e){let t=0,n=new G,r=()=>{if(n.isEmpty()||t>=e)return;let r=n.dequeue();r&&r()};return async i=>{t>=e&&await new Promise(e=>n.enqueue(e)),t++;try{return await i()}finally{t--,r()}}}var q=1e5,ie=e=>e.startsWith(``)?e.slice(1):e;function J(e){if(e!==null){if(typeof e==`string`){let t=ie(e);if(t.trim()===``)return;try{return JSON.parse(t)}catch{let e=/^[^:]+:/.test(t),n=t.slice(0,50).trimStart(),r=n.startsWith(`{`)||n.startsWith(`[`);return!e||r?void 0:h(t,{maxAliasCount:q,merge:!0})}}return e}}var ae=e=>{try{return new URL(e).host}catch{return null}},oe=async(e,t,n,r)=>{try{let i=ae(e),a=n?.headers?.find(e=>e.domains.find(e=>e===i)!==void 0)?.headers,o=n?.fetch??fetch,s=await t(()=>o(e,{headers:a}));if(s.ok){let e=await s.text();return{ok:!0,data:r?.parseAs===`text`?e:J(e),raw:e}}let c=s.headers.get(`Content-Type`)??``;return[`text/html`,`application/xml`].includes(c)&&console.warn(`[WARN] We only support JSON/YAML formats, received ${c}`),console.warn(`[WARN] Fetch failed with status ${s.status} ${s.statusText} for URL: ${e}`),{ok:!1}}catch{return console.warn(`[WARN] Failed to ${r?.parseAs===`text`?`load text`:`parse JSON/YAML`} from URL: ${e}`),{ok:!1}}},se=e=>{let t=e?.limit?K(e.limit):e=>e();return{type:`loader`,validate:g,exec:(n,r)=>oe(n,t,e,r)}};export{P as a,x as c,U as i,q as n,I as o,G as r,N as s,se as t};
@@ -0,0 +1 @@
1
+ import{i as e,n as t,r as n,t as r}from"./rolldown-runtime-BWaJ3C7D.js";var i=n({default:()=>a}),a,o=t((()=>{a=[{name:`Agola CI`,constant:`AGOLA`,env:`AGOLA_GIT_REF`,pr:`AGOLA_PULL_REQUEST_ID`},{name:`Alpic`,constant:`ALPIC`,env:`ALPIC_HOST`},{name:`Appcircle`,constant:`APPCIRCLE`,env:`AC_APPCIRCLE`,pr:{env:`AC_GIT_PR`,ne:`false`}},{name:`AppVeyor`,constant:`APPVEYOR`,env:`APPVEYOR`,pr:`APPVEYOR_PULL_REQUEST_NUMBER`},{name:`AWS CodeBuild`,constant:`CODEBUILD`,env:`CODEBUILD_BUILD_ARN`,pr:{env:`CODEBUILD_WEBHOOK_EVENT`,any:[`PULL_REQUEST_CREATED`,`PULL_REQUEST_UPDATED`,`PULL_REQUEST_REOPENED`]}},{name:`Azure Pipelines`,constant:`AZURE_PIPELINES`,env:`TF_BUILD`,pr:{BUILD_REASON:`PullRequest`}},{name:`Bamboo`,constant:`BAMBOO`,env:`bamboo_planKey`},{name:`Bitbucket Pipelines`,constant:`BITBUCKET`,env:`BITBUCKET_COMMIT`,pr:`BITBUCKET_PR_ID`},{name:`Bitrise`,constant:`BITRISE`,env:`BITRISE_IO`,pr:`BITRISE_PULL_REQUEST`},{name:`Buddy`,constant:`BUDDY`,env:`BUDDY_WORKSPACE_ID`,pr:`BUDDY_EXECUTION_PULL_REQUEST_ID`},{name:`Buildkite`,constant:`BUILDKITE`,env:`BUILDKITE`,pr:{env:`BUILDKITE_PULL_REQUEST`,ne:`false`}},{name:`Capawesome Cloud`,constant:`CAPAWESOME_CLOUD`,env:`CAPAWESOME_CLOUD`},{name:`CircleCI`,constant:`CIRCLE`,env:`CIRCLECI`,pr:`CIRCLE_PULL_REQUEST`},{name:`Cirrus CI`,constant:`CIRRUS`,env:`CIRRUS_CI`,pr:`CIRRUS_PR`},{name:`Cloudflare Pages`,constant:`CLOUDFLARE_PAGES`,env:`CF_PAGES`},{name:`Cloudflare Workers`,constant:`CLOUDFLARE_WORKERS`,env:`WORKERS_CI`},{name:`Codefresh`,constant:`CODEFRESH`,env:`CF_BUILD_ID`,pr:{any:[`CF_PULL_REQUEST_NUMBER`,`CF_PULL_REQUEST_ID`]}},{name:`Codemagic`,constant:`CODEMAGIC`,env:`CM_BUILD_ID`,pr:`CM_PULL_REQUEST`},{name:`Codeship`,constant:`CODESHIP`,env:{CI_NAME:`codeship`}},{name:`Drone`,constant:`DRONE`,env:`DRONE`,pr:{DRONE_BUILD_EVENT:`pull_request`}},{name:`dsari`,constant:`DSARI`,env:`DSARI`},{name:`Earthly`,constant:`EARTHLY`,env:`EARTHLY_CI`},{name:`Expo Application Services`,constant:`EAS`,env:`EAS_BUILD`},{name:`Gerrit`,constant:`GERRIT`,env:`GERRIT_PROJECT`},{name:`Gitea Actions`,constant:`GITEA_ACTIONS`,env:`GITEA_ACTIONS`},{name:`GitHub Actions`,constant:`GITHUB_ACTIONS`,env:`GITHUB_ACTIONS`,pr:{GITHUB_EVENT_NAME:`pull_request`}},{name:`GitLab CI`,constant:`GITLAB`,env:`GITLAB_CI`,pr:`CI_MERGE_REQUEST_ID`},{name:`GoCD`,constant:`GOCD`,env:`GO_PIPELINE_LABEL`},{name:`Google Cloud Build`,constant:`GOOGLE_CLOUD_BUILD`,env:`BUILDER_OUTPUT`},{name:`Harness CI`,constant:`HARNESS`,env:`HARNESS_BUILD_ID`},{name:`Heroku`,constant:`HEROKU`,env:{env:`NODE`,includes:`/app/.heroku/node/bin/node`}},{name:`Hudson`,constant:`HUDSON`,env:`HUDSON_URL`},{name:`Jenkins`,constant:`JENKINS`,env:[`JENKINS_URL`,`BUILD_ID`],pr:{any:[`ghprbPullId`,`CHANGE_ID`]}},{name:`LayerCI`,constant:`LAYERCI`,env:`LAYERCI`,pr:`LAYERCI_PULL_REQUEST`},{name:`Magnum CI`,constant:`MAGNUM`,env:`MAGNUM`},{name:`Netlify CI`,constant:`NETLIFY`,env:`NETLIFY`,pr:{env:`PULL_REQUEST`,ne:`false`}},{name:`Nevercode`,constant:`NEVERCODE`,env:`NEVERCODE`,pr:{env:`NEVERCODE_PULL_REQUEST`,ne:`false`}},{name:`Prow`,constant:`PROW`,env:`PROW_JOB_ID`},{name:`ReleaseHub`,constant:`RELEASEHUB`,env:`RELEASE_BUILD_ID`},{name:`Render`,constant:`RENDER`,env:`RENDER`,pr:{IS_PULL_REQUEST:`true`}},{name:`RWX`,constant:`RWX`,env:`RWX`},{name:`Sail CI`,constant:`SAIL`,env:`SAILCI`,pr:`SAIL_PULL_REQUEST_NUMBER`},{name:`Screwdriver`,constant:`SCREWDRIVER`,env:`SCREWDRIVER`,pr:{env:`SD_PULL_REQUEST`,ne:`false`}},{name:`Semaphore`,constant:`SEMAPHORE`,env:`SEMAPHORE`,pr:`PULL_REQUEST_NUMBER`},{name:`Sourcehut`,constant:`SOURCEHUT`,env:{CI_NAME:`sourcehut`}},{name:`Strider CD`,constant:`STRIDER`,env:`STRIDER`},{name:`TaskCluster`,constant:`TASKCLUSTER`,env:[`TASK_ID`,`RUN_ID`]},{name:`TeamCity`,constant:`TEAMCITY`,env:`TEAMCITY_VERSION`},{name:`Travis CI`,constant:`TRAVIS`,env:`TRAVIS`,pr:{env:`TRAVIS_PULL_REQUEST`,ne:`false`}},{name:`Vela`,constant:`VELA`,env:`VELA`,pr:{VELA_PULL_REQUEST:`1`}},{name:`Vercel`,constant:`VERCEL`,env:{any:[`NOW_BUILDER`,`VERCEL`]},pr:`VERCEL_GIT_PULL_REQUEST_ID`},{name:`Visual Studio App Center`,constant:`APPCENTER`,env:`APPCENTER_BUILD_ID`},{name:`Woodpecker`,constant:`WOODPECKER`,env:{CI:`woodpecker`},pr:{CI_BUILD_EVENT:`pull_request`}},{name:`Xcode Cloud`,constant:`XCODE_CLOUD`,env:`CI_XCODE_PROJECT`,pr:`CI_PULL_REQUEST_NUMBER`},{name:`Xcode Server`,constant:`XCODE_SERVER`,env:`XCS`}]})),s=r((t=>{var n=(o(),e(i).default),r={};Object.defineProperty(t,"_vendors",{value:n.map(function(e){return e.constant})}),t.name=null,t.isPR=null,t.id=null,r.CI!==`false`&&n.forEach(function(e){let n=(Array.isArray(e.env)?e.env:[e.env]).every(function(e){return a(e)});t[e.constant]=n,n&&(t.name=e.name,t.isPR=s(e),t.id=e.constant)}),t.isCI=!!(r.CI!==`false`&&(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||t.name));function a(e){return typeof e==`string`?!!r[e]:`env`in e?r[e.env]&&r[e.env].includes(e.includes):`any`in e?e.any.some(function(e){return!!r[e]}):Object.keys(e).every(function(t){return r[t]===e[t]})}function s(e){switch(typeof e.pr){case`string`:return!!r[e.pr];case`object`:return`env`in e.pr?`any`in e.pr?e.pr.any.some(function(t){return r[e.pr.env]===t}):e.pr.env in r&&r[e.pr.env]!==e.pr.ne:`any`in e.pr?e.pr.any.some(function(e){return!!r[e]}):a(e.pr);default:return null}}}));export default s();
@@ -1 +1 @@
1
- import{H as e,p as t,u as n}from"./runtime-core.esm-bundler-2tpRQTw-.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),t(`svg`,r,[...a[0]||=[n(`path`,{d:`M216 64h-68.69l34.35-34.34a8 8 0 1 0-11.32-11.32L128 60.69 85.66 18.34a8 8 0 0 0-11.32 11.32L108.69 64H40a16 16 0 0 0-16 16v120a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16M40 80h104v120H40Zm176 120h-56V80h56zm-16-84a12 12 0 1 1-12-12 12 12 0 0 1 12 12m0 48a12 12 0 1 1-12-12 12 12 0 0 1 12 12`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{H as e,f as t,l as n}from"./runtime-core.esm-bundler-DuBrNcf5.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),t(`svg`,r,[...a[0]||=[n(`path`,{d:`M216 64h-68.69l34.35-34.34a8 8 0 1 0-11.32-11.32L128 60.69 85.66 18.34a8 8 0 0 0-11.32 11.32L108.69 64H40a16 16 0 0 0-16 16v120a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16M40 80h104v120H40Zm176 120h-56V80h56zm-16-84a12 12 0 1 1-12-12 12 12 0 0 1 12 12m0 48a12 12 0 1 1-12-12 12 12 0 0 1 12 12`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{H as e,p as t,u as n}from"./runtime-core.esm-bundler-2tpRQTw-.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),t(`svg`,r,[...a[0]||=[n(`path`,{d:`M224 72h-16v-8a24 24 0 0 0-24-24H40a24 24 0 0 0-24 24v96a24 24 0 0 0 24 24h112v8a24 24 0 0 0 24 24h48a24 24 0 0 0 24-24V96a24 24 0 0 0-24-24M40 168a8 8 0 0 1-8-8V64a8 8 0 0 1 8-8h144a8 8 0 0 1 8 8v8h-16a24 24 0 0 0-24 24v72Zm192 24a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8V96a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8Zm-96 16a8 8 0 0 1-8 8H88a8 8 0 0 1 0-16h40a8 8 0 0 1 8 8m80-96a8 8 0 0 1-8 8h-16a8 8 0 0 1 0-16h16a8 8 0 0 1 8 8`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{H as e,f as t,l as n}from"./runtime-core.esm-bundler-DuBrNcf5.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),t(`svg`,r,[...a[0]||=[n(`path`,{d:`M224 72h-16v-8a24 24 0 0 0-24-24H40a24 24 0 0 0-24 24v96a24 24 0 0 0 24 24h112v8a24 24 0 0 0 24 24h48a24 24 0 0 0 24-24V96a24 24 0 0 0-24-24M40 168a8 8 0 0 1-8-8V64a8 8 0 0 1 8-8h144a8 8 0 0 1 8 8v8h-16a24 24 0 0 0-24 24v72Zm192 24a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8V96a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8Zm-96 16a8 8 0 0 1-8 8H88a8 8 0 0 1 0-16h40a8 8 0 0 1 8 8m80-96a8 8 0 0 1-8 8h-16a8 8 0 0 1 0-16h16a8 8 0 0 1 8 8`},null,-1)]])}var a={render:i};export{a as default,i as render};
@@ -1 +1 @@
1
- import{H as e,p as t,u as n}from"./runtime-core.esm-bundler-2tpRQTw-.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),t(`svg`,r,[...a[0]||=[n(`path`,{d:`M232 168h-8V72a24 24 0 0 0-24-24H56a24 24 0 0 0-24 24v96h-8a8 8 0 0 0-8 8v16a24 24 0 0 0 24 24h176a24 24 0 0 0 24-24v-16a8 8 0 0 0-8-8M48 72a8 8 0 0 1 8-8h144a8 8 0 0 1 8 8v96H48Zm176 120a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8v-8h192ZM152 88a8 8 0 0 1-8 8h-32a8 8 0 0 1 0-16h32a8 8 0 0 1 8 8`},null,-1)]])}var a={render:i};export{a as default,i as render};
1
+ import{H as e,f as t,l as n}from"./runtime-core.esm-bundler-DuBrNcf5.js";var r={xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`};function i(i,a){return e(),t(`svg`,r,[...a[0]||=[n(`path`,{d:`M232 168h-8V72a24 24 0 0 0-24-24H56a24 24 0 0 0-24 24v96h-8a8 8 0 0 0-8 8v16a24 24 0 0 0 24 24h176a24 24 0 0 0 24-24v-16a8 8 0 0 0-8-8M48 72a8 8 0 0 1 8-8h144a8 8 0 0 1 8 8v96H48Zm176 120a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8v-8h192ZM152 88a8 8 0 0 1-8 8h-32a8 8 0 0 1 0-16h32a8 8 0 0 1 8 8`},null,-1)]])}var a={render:i};export{a as default,i as render};