@nuxt/devtools 3.2.3 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/chunks/module-main.mjs +27 -9
  2. package/dist/chunks/vscode.mjs +1 -1
  3. package/dist/client/200.html +1 -1
  4. package/dist/client/404.html +1 -1
  5. package/dist/client/_nuxt/__blank-3fn4vtge.js +1 -0
  6. package/dist/client/_nuxt/analyze-build-ndbr1zwt.js +1 -0
  7. package/dist/client/_nuxt/assets-dqfzy0hw.js +6 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/bfa29bcc-58d6-4376-85c9-764240642351.json +1 -0
  10. package/dist/client/_nuxt/{client-lh91kcpv.js → client-d56h4dc4.js} +1 -1
  11. package/dist/client/_nuxt/code-diff-gh0ro4cb.js +8 -0
  12. package/dist/client/_nuxt/code-snippets-m9271riq.js +1 -0
  13. package/dist/client/_nuxt/components-iry12ufh.js +1 -0
  14. package/dist/client/_nuxt/composable-item-m3m39yy8.js +1 -0
  15. package/dist/client/_nuxt/composables-dhks1pao.js +1 -0
  16. package/dist/client/_nuxt/constants-dict8wns.js +1 -0
  17. package/dist/client/_nuxt/custom-_name_-owx1vzws.js +1 -0
  18. package/dist/client/_nuxt/data-schema-button-hha0wi47.js +1 -0
  19. package/dist/client/_nuxt/data-schema-drawer-mvrnpqdm.js +2 -0
  20. package/dist/client/_nuxt/debug-emfpm2zp.js +1 -0
  21. package/dist/client/_nuxt/{default-bunv5fnq.js → default-dv40aud6.js} +1 -1
  22. package/dist/client/_nuxt/{dist-mnod32r1.js → dist-hjee3mrt.js} +1 -1
  23. package/dist/client/_nuxt/dist-ibflnriz.js +1 -0
  24. package/dist/client/_nuxt/duration-display-g4enq0h7.js +1 -0
  25. package/dist/client/_nuxt/entry.css-ceee1hqk.css +1 -0
  26. package/dist/client/_nuxt/error-404-jybbe03f.js +1 -0
  27. package/dist/client/_nuxt/error-404.css-ip9v33hj.css +1 -0
  28. package/dist/client/_nuxt/error-500-onq7ss3q.js +1 -0
  29. package/dist/client/_nuxt/error-500.css-hhe2fh34.css +1 -0
  30. package/dist/client/_nuxt/error-nnemr5rw.js +9 -0
  31. package/dist/client/_nuxt/filepath-item-hz9dqk37.js +1 -0
  32. package/dist/client/_nuxt/full-pn9pgtl7.js +1 -0
  33. package/dist/client/_nuxt/h38cvs9r.js +4 -0
  34. package/dist/client/_nuxt/help-fab-oij4kl08.js +1 -0
  35. package/dist/client/_nuxt/hooks-mm4wkhji.js +1 -0
  36. package/dist/client/_nuxt/imports-ih50w3iv.js +1 -0
  37. package/dist/client/_nuxt/launch-page-bpr4mhu5.js +1 -0
  38. package/dist/client/_nuxt/mitt.es-is6qb9uo.js +1 -0
  39. package/dist/client/_nuxt/modules-hshgq2d9.js +1 -0
  40. package/dist/client/_nuxt/nbadge-f7rzhjkq.js +1 -0
  41. package/dist/client/_nuxt/ncheckbox-mc98noss.js +1 -0
  42. package/dist/client/_nuxt/ncode-block-mvjvaye5.js +2 -0
  43. package/dist/client/_nuxt/ndrawer-mfwl47cs.js +1 -0
  44. package/dist/client/_nuxt/ndropdown-l4kx50eu.js +1 -0
  45. package/dist/client/_nuxt/nicon-title-dciaco6o.js +1 -0
  46. package/dist/client/_nuxt/nlink-n14t4xmt.js +1 -0
  47. package/dist/client/_nuxt/nmarkdown-fnnmuq60.js +1 -0
  48. package/dist/client/_nuxt/nnavbar-bwuaevkz.js +1 -0
  49. package/dist/client/_nuxt/none-eri9psdj.js +1 -0
  50. package/dist/client/_nuxt/nsection-block-na7dtpi3.js +1 -0
  51. package/dist/client/_nuxt/nselect-o9ezbf9h.js +1 -0
  52. package/dist/client/_nuxt/nselect-tabs-h2jrpp6v.js +1 -0
  53. package/dist/client/_nuxt/nswitch-j5ndrsa4.js +1 -0
  54. package/dist/client/_nuxt/open-graph-i2tbvdoe.js +3 -0
  55. package/dist/client/_nuxt/overview-bbsxnnle.js +1 -0
  56. package/dist/client/_nuxt/pages-hi877nlf.js +1 -0
  57. package/dist/client/_nuxt/pages-j6q5h70o.js +1 -0
  58. package/dist/client/_nuxt/payload-fhnthlp2.js +1 -0
  59. package/dist/client/_nuxt/pinia-h746a499.js +1 -0
  60. package/dist/client/_nuxt/plugins-ozt4gxp5.js +1 -0
  61. package/dist/client/_nuxt/render-tree-ntf97xvm.js +1 -0
  62. package/dist/client/_nuxt/rolldown-runtime-ga5ujxqr.js +1 -0
  63. package/dist/client/_nuxt/runtime-configs-k0yp3zpx.js +1 -0
  64. package/dist/client/_nuxt/server-discovery-giorkvmy.js +1 -0
  65. package/dist/client/_nuxt/server-route-inputs-jeqq7e8y.js +1 -0
  66. package/dist/client/_nuxt/server-routes-ebfdakke.js +7 -0
  67. package/dist/client/_nuxt/server-tasks-otdic2qc.js +1 -0
  68. package/dist/client/_nuxt/settings-cm4nn6s2.js +1 -0
  69. package/dist/client/_nuxt/stacktrace-list-outaanb2.js +1 -0
  70. package/dist/client/_nuxt/state-components-bi9epr0v.js +1 -0
  71. package/dist/client/_nuxt/state-editor-uoql44oq.js +1 -0
  72. package/dist/client/_nuxt/state-modules-cbgrygie.js +1 -0
  73. package/dist/client/_nuxt/storage-bs8swo7k.js +1 -0
  74. package/dist/client/_nuxt/terminals-bk86ug8r.js +1 -0
  75. package/dist/client/_nuxt/timeline-g2ip7lzl.js +31 -0
  76. package/dist/client/_nuxt/unocss-runtime-l6tkrfnt.js +1 -0
  77. package/dist/client/_nuxt/vendor/json-editor-vue-g94ysn44.js +3869 -0
  78. package/dist/client/_nuxt/vendor/{json-editor-vue.css-lkbe0qhh.css → json-editor-vue.css-lb1ewor6.css} +1 -1
  79. package/dist/client/_nuxt/vendor/{markdown-it-bcxn77q6.js → markdown-it-ic0av7un.js} +3 -3
  80. package/dist/client/_nuxt/vendor/{quicktype-core-f8dnflnv.js → quicktype-core-781ta3pq.js} +13 -13
  81. package/dist/client/_nuxt/vendor/{shiki-niqic03h.js → shiki-nsxcfb7q.js} +6 -6
  82. package/dist/client/_nuxt/vendor/{unocss-bj3ln324.js → unocss-ix37k1vj.js} +3 -3
  83. package/dist/client/_nuxt/vendor/vis-fsrg25ku.js +26 -0
  84. package/dist/client/_nuxt/vendor/{xterm-ed0pys2e.js → xterm-cys6o1g8.js} +4 -4
  85. package/dist/client/_nuxt/virtual-files-abzkda2j.js +1 -0
  86. package/dist/client/_nuxt/vue-devtools-e7301kz1.js +4 -0
  87. package/dist/client/index.html +1 -1
  88. package/dist/module.json +1 -1
  89. package/dist/module.mjs +1 -1
  90. package/dist/runtime/plugins/devtools.client.js +1 -1
  91. package/dist/runtime/plugins/view/client.js +1 -1
  92. package/dist/shared/devtools.Soe0SAC8.mjs +122 -0
  93. package/dist/webcomponents/index.mjs +28 -26
  94. package/package.json +45 -42
  95. package/dist/client/_nuxt/__blank-gayjf0ih.js +0 -1
  96. package/dist/client/_nuxt/analyze-build-bnq2cil8.js +0 -1
  97. package/dist/client/_nuxt/assets-fjp0hrmh.js +0 -6
  98. package/dist/client/_nuxt/builds/meta/f343c68e-9061-4942-a0df-50170dc001bd.json +0 -1
  99. package/dist/client/_nuxt/client-s5g5n0ac.js +0 -2
  100. package/dist/client/_nuxt/code-diff-cb7twqkt.js +0 -8
  101. package/dist/client/_nuxt/code-snippets-ho13b87l.js +0 -1
  102. package/dist/client/_nuxt/components-peth8amc.js +0 -1
  103. package/dist/client/_nuxt/composable-item-b09pj4ca.js +0 -1
  104. package/dist/client/_nuxt/composables-cwesk2q8.js +0 -1
  105. package/dist/client/_nuxt/constants-lof1c7kz.js +0 -1
  106. package/dist/client/_nuxt/custom-_name_-lfwzilnd.js +0 -1
  107. package/dist/client/_nuxt/data-schema-button-ke4komn6.js +0 -1
  108. package/dist/client/_nuxt/data-schema-drawer-dqe6w00i.js +0 -2
  109. package/dist/client/_nuxt/debug-itzra6gt.js +0 -1
  110. package/dist/client/_nuxt/dev-auth-j4vxv6a1.js +0 -1
  111. package/dist/client/_nuxt/dist-duc3zu0y.js +0 -1
  112. package/dist/client/_nuxt/dist-m49wlq01.js +0 -1
  113. package/dist/client/_nuxt/duration-display-20xlusue.js +0 -1
  114. package/dist/client/_nuxt/entry.css-ckq2wff8.css +0 -1
  115. package/dist/client/_nuxt/error-404-c73bftho.js +0 -1
  116. package/dist/client/_nuxt/error-404.css-pazrj6fo.css +0 -1
  117. package/dist/client/_nuxt/error-500-75llnfh8.js +0 -1
  118. package/dist/client/_nuxt/error-500.css-hlldh6hu.css +0 -1
  119. package/dist/client/_nuxt/error-isnb18yz.js +0 -9
  120. package/dist/client/_nuxt/filepath-item-fnp9jxof.js +0 -1
  121. package/dist/client/_nuxt/full-h8pokapo.js +0 -1
  122. package/dist/client/_nuxt/head-c2jgvqd9.js +0 -1
  123. package/dist/client/_nuxt/help-fab-oc1qudll.js +0 -1
  124. package/dist/client/_nuxt/hooks-i5p6cuw0.js +0 -1
  125. package/dist/client/_nuxt/imports-ia8eldh8.js +0 -1
  126. package/dist/client/_nuxt/l471sqq0.js +0 -4
  127. package/dist/client/_nuxt/launch-page-kf0w74wk.js +0 -1
  128. package/dist/client/_nuxt/modules-obwfskfp.js +0 -1
  129. package/dist/client/_nuxt/nbadge-hpznun17.js +0 -1
  130. package/dist/client/_nuxt/nbutton-oi1rfqiz.js +0 -1
  131. package/dist/client/_nuxt/ncard-ech06vlh.js +0 -1
  132. package/dist/client/_nuxt/ncheckbox-k9nxqa1w.js +0 -1
  133. package/dist/client/_nuxt/ncode-block-coc4sua0.js +0 -2
  134. package/dist/client/_nuxt/ndrawer-ijwn9421.js +0 -1
  135. package/dist/client/_nuxt/ndropdown-moy416uy.js +0 -1
  136. package/dist/client/_nuxt/nicon-m5br9nvg.js +0 -1
  137. package/dist/client/_nuxt/nicon-title-e35pdr21.js +0 -1
  138. package/dist/client/_nuxt/nlink-dmk2d6qc.js +0 -1
  139. package/dist/client/_nuxt/nmarkdown-nct1w6kn.js +0 -1
  140. package/dist/client/_nuxt/nnavbar-n3j7iul1.js +0 -1
  141. package/dist/client/_nuxt/none-bs12srzp.js +0 -1
  142. package/dist/client/_nuxt/npanel-grids-bl37sfq7.js +0 -1
  143. package/dist/client/_nuxt/nsection-block-l0c6dpg8.js +0 -1
  144. package/dist/client/_nuxt/nselect-kgjpj17v.js +0 -1
  145. package/dist/client/_nuxt/nselect-tabs-if6er1us.js +0 -1
  146. package/dist/client/_nuxt/nswitch-b36trghq.js +0 -1
  147. package/dist/client/_nuxt/ntext-input-ngomk0u2.js +0 -1
  148. package/dist/client/_nuxt/nuxt-bfozs29x.js +0 -1
  149. package/dist/client/_nuxt/nuxt-link-mev16ngd.js +0 -1
  150. package/dist/client/_nuxt/open-graph-m7wd1sxi.js +0 -3
  151. package/dist/client/_nuxt/overview-dbrpdvvy.js +0 -1
  152. package/dist/client/_nuxt/pages-gnfgydad.js +0 -1
  153. package/dist/client/_nuxt/pages-izgjpbm4.js +0 -1
  154. package/dist/client/_nuxt/payload-hc17espa.js +0 -1
  155. package/dist/client/_nuxt/pinia-ns87k5yi.js +0 -1
  156. package/dist/client/_nuxt/plugins-mswypwe4.js +0 -1
  157. package/dist/client/_nuxt/ready-szdlhgcr.js +0 -1
  158. package/dist/client/_nuxt/render-tree-hec27xi7.js +0 -1
  159. package/dist/client/_nuxt/rolldown-runtime-oipoa1or.js +0 -1
  160. package/dist/client/_nuxt/runtime-configs-chx5ggf0.js +0 -1
  161. package/dist/client/_nuxt/server-discovery-cjcj8emm.js +0 -1
  162. package/dist/client/_nuxt/server-route-inputs-lqwnul2k.js +0 -1
  163. package/dist/client/_nuxt/server-routes-e0uqj8di.js +0 -7
  164. package/dist/client/_nuxt/server-tasks-izz5mcrk.js +0 -1
  165. package/dist/client/_nuxt/settings-dhxjcakv.js +0 -1
  166. package/dist/client/_nuxt/splitpanes.es-ceqv8417.js +0 -1
  167. package/dist/client/_nuxt/stacktrace-list-m1sv2uvd.js +0 -1
  168. package/dist/client/_nuxt/state-components-mnfvrbtw.js +0 -1
  169. package/dist/client/_nuxt/state-dkywakbf.js +0 -1
  170. package/dist/client/_nuxt/state-editor-epijodsw.js +0 -1
  171. package/dist/client/_nuxt/state-modules-ehax0fup.js +0 -1
  172. package/dist/client/_nuxt/state-routes-m6gv5n9v.js +0 -1
  173. package/dist/client/_nuxt/state-tabs-mo8r9nzk.js +0 -1
  174. package/dist/client/_nuxt/storage-hdyfvofj.js +0 -1
  175. package/dist/client/_nuxt/storage-options-owy2vf04.js +0 -1
  176. package/dist/client/_nuxt/telemetry-bagjjni2.js +0 -1
  177. package/dist/client/_nuxt/terminals-hem69799.js +0 -1
  178. package/dist/client/_nuxt/timeline-luryae8h.js +0 -31
  179. package/dist/client/_nuxt/unocss-runtime-jcr8lucj.js +0 -1
  180. package/dist/client/_nuxt/vendor/json-editor-vue-hkofgjf7.js +0 -3869
  181. package/dist/client/_nuxt/vendor/vis-id8udisj.js +0 -26
  182. package/dist/client/_nuxt/virtual-files-o2l5arel.js +0 -1
  183. package/dist/client/_nuxt/vue-devtools-na2nb82m.js +0 -3
  184. package/dist/client/_nuxt/vue-router-dxks01bs.js +0 -1
  185. package/dist/client/_nuxt/vue-virtual-scroller.esm-d0igfpwe.js +0 -2
  186. package/dist/shared/devtools.DuFZOCNN.mjs +0 -122
  187. /package/dist/client/_nuxt/{_plugin-vue_export-helper-dp8rxgcg.js → _plugin-vue_export-helper-e0bby96w.js} +0 -0
  188. /package/dist/client/_nuxt/{color-b9xoe9j2.js → color-nuuzg844.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,n,r,t as i}from"../rolldown-runtime-oipoa1or.js";var a=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){return new(n||=Promise)(function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.hashCodeInit=17;function n(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t}e.hashString=n;function r(e,t){return e*31+(t|0)|0}e.addHashCode=r;function i(e,t){return e===void 0?t:e}e.withDefault=i;function a(e,t){if(e!==void 0)return t(e)}e.definedMap=a;function o(e,t,n){return i(a(e,n),t)}e.definedMapWithDefault=o;function s(e,t){return e==null?!1:Object.prototype.hasOwnProperty.call(e,t)}e.hasOwnProperty=s;function c(e,t){for(let n of e)if(t(n))return n}e.iterableFind=c;function l(e,t){for(let n of e)if(!t(n))return!1;return!0}e.iterableEvery=l;function u(e,t){for(let n of e)if(t(n))return!0;return!1}e.iterableSome=u;function d(e){for(let t of e)return t}e.iterableFirst=d;function f(e){let t;for(let n of e)(t===void 0||n>t)&&(t=n);return t}e.iterableMax=f;function p(e,t){let n,r;for(let i of e){let e=t(i);(n===void 0||e<n)&&(n=e,r=i)}return r}e.iterableMinBy=p;function m(e,t,n){let r=t;for(let t of e)r=n(r,t);return r}e.iterableReduce=m;function*h(e){let t=0;for(let n of e)yield[t,n],t+=1}e.iterableEnumerate=h;function*g(e,t){let n=0;for(let r of e)n>=t?yield r:n+=1}e.iterableSkip=g;function _(e,t){let n=e.length;if(!(t>n))return e[n-t]}e.arrayGetFromEnd=_;function v(e){return _(e,1)}e.arrayLast=v;function y(e){let t=e.length;if(t===0)throw Error(`Cannot pop empty array`);return e.slice(0,t-1)}e.arrayPop=y;function b(e,t){let n=[];for(let r of t)n.length>0&&n.push(e),n.push(r);return n}e.arrayIntercalate=b;function x(e,n){return t(this,void 0,void 0,function*(){let t=[],r=0;for(let i of e)t.push(yield n(i,r)),r+=1;return t})}e.arrayMapSync=x;function S(e,t){return e<t?-1:e>t?1:0}function C(e,t){return e.sort((e,n)=>S(t(e),t(n)))}e.arraySortByInto=C;function w(e){return Array.isArray(e)?e:Array.from(e)}e.toReadonlyArray=w;function T(e,t){let n=new Map;for(let[r,i]of e)n.set(r,t(i,r));return n}e.mapMap=T;function E(e){for(let t of e.values())return t}e.mapFirst=E;function D(e,t){for(let n of e.values())if(n===t)return!0;return!1}e.mapContains=D;function O(e,t){for(let[n,r]of e)if(t(r,n))return!0;return!1}e.mapSome=O;function k(e,t){for(let[n,r]of t)e.set(n,r);return e}e.mapMergeInto=k;function A(e,t){let n=new Map(e);return k(n,t),n}e.mapMerge=A;function j(e,t,n){for(let[r,i]of n){let n=e.get(r),a=n===void 0?i:t(n,i,r);e.set(r,a)}return e}e.mapMergeWithInto=j;function M(e,t,n){let r=new Map(e);return j(r,t,n),r}e.mapMergeWith=M;function N(e,t){let n=new Map;for(let[r,i]of e)t(i,r)&&n.set(r,i);return n}e.mapFilter=N;function P(e,t){let n=new Map;for(let[r,i]of e){let e=t(i,r);e!==void 0&&n.set(r,e)}return n}e.mapFilterMap=P;function ee(e,t){return C(Array.from(e),([e,n])=>t(n,e))}e.mapSortToArray=ee;function F(e,t){return new Map(ee(e,t))}e.mapSortBy=F;function I(e){return F(e,(e,t)=>t)}e.mapSortByKey=I;function L(e,t){let n=new Map;for(let[r,i]of e){let[e,a]=t(i,r);n.set(e,a)}return n}e.mapMapEntries=L;function R(e,t,n){return e.set(t,n(e.get(t))),e}e.mapUpdateInto=R;function z(e){let t=new Map;for(let n of Object.getOwnPropertyNames(e))t.set(n,e[n]);return t}e.mapFromObject=z;function te(e){let t={};for(let[n,r]of e)t[n]=r;return t}e.mapToObject=te;function ne(e,t){let n=new Map;for(let r of e)n.set(r,t(r));return n}e.mapFromIterable=ne;function re(e,t){for(let[n,r]of e)if(t(r,n))return r}e.mapFind=re;function B(e){let t=new Map;for(let n of e)for(let[e,r]of n){let n=t.get(e);n===void 0&&(n=[],t.set(e,n)),n.push(r)}return t}e.mapTranspose=B;function V(e,n){return t(this,void 0,void 0,function*(){let t=new Map;for(let[r,i]of e)t.set(r,yield n(i,r));return t})}e.mapMapSync=V;function ie(e,t){for(let n of t)if(!e.has(n))return!1;return!0}e.setIsSuperset=ie;function ae(e,t){for(let n of t)for(let t of n)e.add(t);return e}e.setUnionManyInto=ae;function H(e,...t){return ae(e,t)}e.setUnionInto=H;function oe(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}e.setIntersect=oe;function U(e,t){let n=new Set(e);for(let e of t)n.delete(e);return n}e.setSubtract=U;function se(...e){let t=new Set;return H(t,...e),t}e.setUnion=se;function ce(e,t){let n=new Set;for(let r of e)n.add(t(r));return n}e.setMap=ce;function le(e,t){let n=new Set;for(let r of e)t(r)&&n.add(r);return n}e.setFilter=le;function ue(e,t){let n=new Set;for(let r of e){let e=t(r);e!==void 0&&n.add(e)}return n}e.setFilterMap=ue;function de(e,t){return new Set(C(Array.from(e),t))}e.setSortBy=de;function fe(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);i===void 0&&(i=new Set,n.set(e,i)),i.add(r)}return n}e.setGroupBy=fe;function W(e){return e instanceof Set?e:new Set(e)}e.toReadonlySet=W,e.EqualityMap=class{constructor(){this._map=new Map}set(e,t){let n=pe(e)|0;for(;;){let r=this._map.get(n);if(r===void 0){this._map.set(n,[e,t]);return}if(G(e,r[0])){r[1]=t;return}n=n+1|0}}get(e){let t=pe(e)|0;for(;;){let n=this._map.get(t);if(n===void 0)return;if(G(e,n[0]))return n[1];t=t+1|0}}has(e){return this.get(e)!==void 0}*values(){for(let[,[,e]]of this._map)yield e}};function G(e,t){if(e===t)return!0;if(e===void 0||t===void 0||e===null||t===null)return!1;if(typeof e.equals==`function`&&typeof t.equals==`function`)return e.equals(t);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!G(r,t.get(n)))return!1;return!0}if(Array.isArray(e)&&Array.isArray(t)){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(!G(e[r],t[r]))return!1;return!0}return!1}e.areEqual=G;function pe(t){if(typeof t==`number`)return t|0;if(typeof t==`string`)return n(t);let i=e.hashCodeInit;if(t===void 0)return i;if(t===!0)return i+1|0;if(t===!1)return i+2|0;if(t===null)return i+3|0;if(typeof t.hashCode==`function`)return t.hashCode();if(t instanceof Set){for(let e of t)i+=pe(e);return i}if(t instanceof Map){let n=e.hashCodeInit;for(let[e,r]of t)n+=pe(e),i+=pe(r);return r(n,i)}if(Array.isArray(t)){for(let e of t)i=r(i,pe(e));return i}throw Error(`Cannot hash ${t}`)}e.hashCodeOf=pe})),o=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(function(){var e=n.Base64,t=r();t.noConflict=function(){return n.Base64=e,t},n.Meteor&&(Base64=t),n.Base64=t})()})(typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:e,function(){var e=`3.7.7`,t=e,n=typeof Buffer==`function`,r=typeof TextDecoder==`function`?new TextDecoder:void 0,i=typeof TextEncoder==`function`?new TextEncoder:void 0,a=Array.prototype.slice.call(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`),o=(function(e){var t={};return e.forEach(function(e,n){return t[e]=n}),t})(a),s=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,c=String.fromCharCode.bind(String),l=typeof Uint8Array.from==`function`?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},u=function(e){return e.replace(/=/g,``).replace(/[+\/]/g,function(e){return e==`+`?`-`:`_`})},d=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,``)},f=function(e){for(var t,n,r,i,o=``,s=e.length%3,c=0;c<e.length;){if((n=e.charCodeAt(c++))>255||(r=e.charCodeAt(c++))>255||(i=e.charCodeAt(c++))>255)throw TypeError(`invalid character found`);t=n<<16|r<<8|i,o+=a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[t&63]}return s?o.slice(0,s-3)+`===`.substring(s):o},p=typeof btoa==`function`?function(e){return btoa(e)}:n?function(e){return Buffer.from(e,`binary`).toString(`base64`)}:f,m=n?function(e){return Buffer.from(e).toString(`base64`)}:function(e){for(var t=4096,n=[],r=0,i=e.length;r<i;r+=t)n.push(c.apply(null,e.subarray(r,r+t)));return p(n.join(``))},h=function(e,t){return t===void 0&&(t=!1),t?u(m(e)):m(e)},g=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?c(192|t>>>6)+c(128|t&63):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|t&63)}},_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(e){return e.replace(_,g)},y=n?function(e){return Buffer.from(e,`utf8`).toString(`base64`)}:i?function(e){return m(i.encode(e))}:function(e){return p(v(e))},b=function(e,t){return t===void 0&&(t=!1),t?u(y(e)):y(e)},x=function(e){return b(e,!0)},S=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c((t>>>10)+55296)+c((t&1023)+56320);case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(S,C)},T=function(e){if(e=e.replace(/\s+/g,``),!s.test(e))throw TypeError(`malformed base64.`);e+=`==`.slice(2-(e.length&3));for(var t,n=``,r,i,a=0;a<e.length;)t=o[e.charAt(a++)]<<18|o[e.charAt(a++)]<<12|(r=o[e.charAt(a++)])<<6|(i=o[e.charAt(a++)]),n+=r===64?c(t>>16&255):i===64?c(t>>16&255,t>>8&255):c(t>>16&255,t>>8&255,t&255);return n},E=typeof atob==`function`?function(e){return atob(d(e))}:n?function(e){return Buffer.from(e,`base64`).toString(`binary`)}:T,D=n?function(e){return l(Buffer.from(e,`base64`))}:function(e){return l(E(e).split(``).map(function(e){return e.charCodeAt(0)}))},O=function(e){return D(A(e))},k=n?function(e){return Buffer.from(e,`base64`).toString(`utf8`)}:r?function(e){return r.decode(D(e))}:function(e){return w(E(e))},A=function(e){return d(e.replace(/[-_]/g,function(e){return e==`-`?`+`:`/`}))},j=function(e){return k(A(e))},M=function(e){if(typeof e!=`string`)return!1;var t=e.replace(/\s+/g,``).replace(/={0,2}$/,``);return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},N=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},P=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,N(t))};e(`fromBase64`,function(){return j(this)}),e(`toBase64`,function(e){return b(this,e)}),e(`toBase64URI`,function(){return b(this,!0)}),e(`toBase64URL`,function(){return b(this,!0)}),e(`toUint8Array`,function(){return O(this)})},ee=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,N(t))};e(`toBase64`,function(e){return h(this,e)}),e(`toBase64URI`,function(){return h(this,!0)}),e(`toBase64URL`,function(){return h(this,!0)})},F={version:e,VERSION:t,atob:E,atobPolyfill:T,btoa:p,btoaPolyfill:f,fromBase64:j,toBase64:b,encode:b,encodeURI:x,encodeURL:x,utob:v,btou:w,decode:j,isValid:M,fromUint8Array:h,toUint8Array:O,extendString:P,extendUint8Array:ee,extendBuiltins:function(){P(),ee()}};return F.Base64={},Object.keys(F).forEach(function(e){return F.Base64[e]=F[e]}),F})})),s=i((e=>{var t=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!=`object`)throw TypeError(r+`must be non-object`);for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})),c=i((e=>{var t=s(),n=4,r=0,i=1,a=2;function o(e){for(var t=e.length;--t>=0;)e[t]=0}var c=0,l=1,u=2,d=3,f=258,p=29,m=256,h=m+1+p,g=30,_=19,v=2*h+1,y=15,b=16,x=7,S=256,C=16,w=17,T=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=512,j=Array((h+2)*2);o(j);var M=Array(g*2);o(M);var N=Array(A);o(N);var P=Array(f-d+1);o(P);var ee=Array(p);o(ee);var F=Array(g);o(F);function I(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var L,R,z;function te(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ne(e){return e<256?N[e]:N[256+(e>>>7)]}function re(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,n){e.bi_valid>b-n?(e.bi_buf|=t<<e.bi_valid&65535,re(e,e.bi_buf),e.bi_buf=t>>b-e.bi_valid,e.bi_valid+=n-b):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function V(e,t,n){B(e,n[t*2],n[t*2+1])}function ie(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function ae(e){e.bi_valid===16?(re(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function H(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=y;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<v;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}}function oe(e,t,n){var r=Array(y+1),i=0,a,o;for(a=1;a<=y;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=ie(r[s]++,s))}}function U(){var e,t,n,r,i,a=Array(y+1);for(n=0,r=0;r<p-1;r++)for(ee[r]=n,e=0;e<1<<E[r];e++)P[n++]=r;for(P[n-1]=r,i=0,r=0;r<16;r++)for(F[r]=i,e=0;e<1<<D[r];e++)N[i++]=r;for(i>>=7;r<g;r++)for(F[r]=i<<7,e=0;e<1<<D[r]-7;e++)N[256+ i++]=r;for(t=0;t<=y;t++)a[t]=0;for(e=0;e<=143;)j[e*2+1]=8,e++,a[8]++;for(;e<=255;)j[e*2+1]=9,e++,a[9]++;for(;e<=279;)j[e*2+1]=7,e++,a[7]++;for(;e<=287;)j[e*2+1]=8,e++,a[8]++;for(oe(j,h+1,a),e=0;e<g;e++)M[e*2+1]=5,M[e*2]=ie(e,5);L=new I(j,E,m+1,h,y),R=new I(M,D,0,g,y),z=new I([],O,0,_,x)}function se(e){var t;for(t=0;t<h;t++)e.dyn_ltree[t*2]=0;for(t=0;t<g;t++)e.dyn_dtree[t*2]=0;for(t=0;t<_;t++)e.bl_tree[t*2]=0;e.dyn_ltree[S*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function ce(e){e.bi_valid>8?re(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function le(e,n,r,i){ce(e),i&&(re(e,r),re(e,~r)),t.arraySet(e.pending_buf,e.window,n,r,e.pending),e.pending+=r}function ue(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function de(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&ue(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ue(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function fe(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?V(e,i,t):(o=P[i],V(e,o+m+1,t),s=E[o],s!==0&&(i-=ee[o],B(e,i,s)),r--,o=ne(r),V(e,o,n),s=D[o],s!==0&&(r-=F[o],B(e,r,s)));while(a<e.last_lit);V(e,S,t)}function W(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=v,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)de(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],de(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,de(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],H(e,t),oe(n,c,e.bl_count)}function G(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[w*2]++:e.bl_tree[T*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[C*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))}function pe(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do V(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(V(e,w,e.bl_tree),B(e,s-3,3)):(V(e,T,e.bl_tree),B(e,s-11,7)):(a!==i&&(V(e,a,e.bl_tree),s--),V(e,C,e.bl_tree),B(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}}function me(e){var t;for(G(e,e.dyn_ltree,e.l_desc.max_code),G(e,e.dyn_dtree,e.d_desc.max_code),W(e,e.bl_desc),t=_-1;t>=3&&e.bl_tree[k[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function K(e,t,n,r){var i;for(B(e,t-257,5),B(e,n-1,5),B(e,r-4,4),i=0;i<r;i++)B(e,e.bl_tree[k[i]*2+1],3);pe(e,e.dyn_ltree,t-1),pe(e,e.dyn_dtree,n-1)}function q(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return r;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return i;for(n=32;n<m;n++)if(e.dyn_ltree[n*2]!==0)return i;return r}var he=!1;function ge(e){he||=(U(),!0),e.l_desc=new te(e.dyn_ltree,L),e.d_desc=new te(e.dyn_dtree,R),e.bl_desc=new te(e.bl_tree,z),e.bi_buf=0,e.bi_valid=0,se(e)}function J(e,t,n,r){B(e,(c<<1)+(r?1:0),3),le(e,t,n,!0)}function _e(e){B(e,l<<1,3),V(e,S,j),ae(e)}function ve(e,t,r,i){var o,s,c=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=q(e)),W(e,e.l_desc),W(e,e.d_desc),c=me(e),o=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=o&&(o=s)):o=s=r+5,r+4<=o&&t!==-1?J(e,t,r,i):e.strategy===n||s===o?(B(e,(l<<1)+(i?1:0),3),fe(e,j,M)):(B(e,(u<<1)+(i?1:0),3),K(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),fe(e,e.dyn_ltree,e.dyn_dtree)),se(e),i&&ce(e)}function ye(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(P[n]+m+1)*2]++,e.dyn_dtree[ne(t)*2]++),e.last_lit===e.lit_bufsize-1}e._tr_init=ge,e._tr_stored_block=J,e._tr_flush_block=ve,e._tr_tally=ye,e._tr_align=_e})),l=i(((e,t)=>{function n(e,t,n,r){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=n})),u=i(((e,t)=>{function n(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var r=n();function i(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}t.exports=i})),d=i(((e,t)=>{t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}})),f=i((e=>{var t=s(),n=c(),r=l(),i=u(),a=d(),o=0,f=1,p=3,m=4,h=5,g=0,_=1,v=-2,y=-3,b=-5,x=-1,S=1,C=2,w=3,T=4,E=0,D=2,O=8,k=9,A=15,j=8,M=286,N=30,P=19,ee=2*M+1,F=15,I=3,L=258,R=L+I+1,z=32,te=42,ne=69,re=73,B=91,V=103,ie=113,ae=666,H=1,oe=2,U=3,se=4,ce=3;function le(e,t){return e.msg=a[t],t}function ue(e){return(e<<1)-(e>4?9:0)}function de(e){for(var t=e.length;--t>=0;)e[t]=0}function fe(e){var n=e.state,r=n.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(t.arraySet(e.output,n.pending_buf,n.pending_out,r,e.next_out),e.next_out+=r,n.pending_out+=r,e.total_out+=r,e.avail_out-=r,n.pending-=r,n.pending===0&&(n.pending_out=0))}function W(e,t){n._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,fe(e.strm)}function G(e,t){e.pending_buf[e.pending++]=t}function pe(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function me(e,n,a,o){var s=e.avail_in;return s>o&&(s=o),s===0?0:(e.avail_in-=s,t.arraySet(n,e.input,e.next_in,s,a),e.state.wrap===1?e.adler=r(e.adler,n,s,a):e.state.wrap===2&&(e.adler=i(e.adler,n,s,a)),e.next_in+=s,e.total_in+=s,s)}function K(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-R?e.strstart-(e.w_size-R):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+L,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=L-(f-r),r=f-L,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead}function q(e){var n=e.w_size,r,i,a,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-R)){t.arraySet(e.window,e.window,n,n,0),e.match_start-=n,e.strstart-=n,e.block_start-=n,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=n?a-n:0;while(--i);i=n,r=i;do a=e.prev[--r],e.prev[r]=a>=n?a-n:0;while(--i);o+=n}if(e.strm.avail_in===0)break;if(i=me(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=I)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+I-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<I)););}while(e.lookahead<R&&e.strm.avail_in!==0)}function he(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(q(e),e.lookahead===0&&t===o)return H;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,W(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-R&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=0,t===m?(W(e,!0),e.strm.avail_out===0?U:se):(e.strstart>e.block_start&&(W(e,!1),e.strm.avail_out),H)}function ge(e,t){for(var r,i;;){if(e.lookahead<R){if(q(e),e.lookahead<R&&t===o)return H;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-R&&(e.match_length=K(e,r)),e.match_length>=I)if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-I),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=I){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=e.strstart<I-1?e.strstart:I-1,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function J(e,t){for(var r,i,a;;){if(e.lookahead<R){if(q(e),e.lookahead<R&&t===o)return H;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=I-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-R&&(e.match_length=K(e,r),e.match_length<=5&&(e.strategy===S||e.match_length===I&&e.strstart-e.match_start>4096)&&(e.match_length=I-1)),e.prev_length>=I&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-I,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-I),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=I-1,e.strstart++,i&&(W(e,!1),e.strm.avail_out===0))return H}else if(e.match_available){if(i=n._tr_tally(e,0,e.window[e.strstart-1]),i&&W(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return H}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(i=n._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<I-1?e.strstart:I-1,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function _e(e,t){for(var r,i,a,s,c=e.window;;){if(e.lookahead<=L){if(q(e),e.lookahead<=L&&t===o)return H;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=I&&e.strstart>0&&(a=e.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){s=e.strstart+L;do;while(i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&a<s);e.match_length=L-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=I?(r=n._tr_tally(e,1,e.match_length-I),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=0,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function ve(e,t){for(var r;;){if(e.lookahead===0&&(q(e),e.lookahead===0)){if(t===o)return H;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=0,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function ye(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Y=[new ye(0,0,0,0,he),new ye(4,4,8,4,ge),new ye(4,5,16,8,ge),new ye(4,6,32,32,ge),new ye(4,4,16,16,J),new ye(8,16,32,32,J),new ye(8,16,128,128,J),new ye(8,32,128,256,J),new ye(32,128,258,1024,J),new ye(32,258,258,4096,J)];function be(e){e.window_size=2*e.w_size,de(e.head),e.max_lazy_match=Y[e.level].max_lazy,e.good_match=Y[e.level].good_length,e.nice_match=Y[e.level].nice_length,e.max_chain_length=Y[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=I-1,e.match_available=0,e.ins_h=0}function X(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=O,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(ee*2),this.dyn_dtree=new t.Buf16((2*N+1)*2),this.bl_tree=new t.Buf16((2*P+1)*2),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(F+1),this.heap=new t.Buf16(2*M+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*M+1),de(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(e){var t;return!e||!e.state?le(e,v):(e.total_in=e.total_out=0,e.data_type=D,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?te:ie,e.adler=t.wrap===2?0:1,t.last_flush=o,n._tr_init(t),g)}function Se(e){var t=xe(e);return t===g&&be(e.state),t}function Ce(e,t){return!e||!e.state||e.state.wrap!==2?v:(e.state.gzhead=t,g)}function we(e,n,r,i,a,o){if(!e)return v;var s=1;if(n===x&&(n=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>k||r!==O||i<8||i>15||n<0||n>9||o<0||o>T)return le(e,v);i===8&&(i=9);var c=new X;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+I-1)/I),c.window=new t.Buf8(c.w_size*2),c.head=new t.Buf16(c.hash_size),c.prev=new t.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new t.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=n,c.strategy=o,c.method=r,Se(e)}function Te(e,t){return we(e,t,O,A,j,E)}function Ee(e,t){var r,a,s,c;if(!e||!e.state||t>h||t<0)return e?le(e,v):v;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===ae&&t!==m)return le(e,e.avail_out===0?b:v);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===te)if(a.wrap===2)e.adler=0,G(a,31),G(a,139),G(a,8),a.gzhead?(G(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),G(a,a.gzhead.time&255),G(a,a.gzhead.time>>8&255),G(a,a.gzhead.time>>16&255),G(a,a.gzhead.time>>24&255),G(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),G(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(G(a,a.gzhead.extra.length&255),G(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=i(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=ne):(G(a,0),G(a,0),G(a,0),G(a,0),G(a,0),G(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),G(a,ce),a.status=ie);else{var l=O+(a.w_bits-8<<4)<<8,u=-1;u=a.strategy>=C||a.level<2?0:a.level<6?1:a.level===6?2:3,l|=u<<6,a.strstart!==0&&(l|=z),l+=31-l%31,a.status=ie,pe(a,l),a.strstart!==0&&(pe(a,e.adler>>>16),pe(a,e.adler&65535)),e.adler=1}if(a.status===ne)if(a.gzhead.extra){for(s=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),fe(e),s=a.pending,a.pending===a.pending_buf_size));)G(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=re)}else a.status=re;if(a.status===re)if(a.gzhead.name){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),fe(e),s=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.name.length?a.gzhead.name.charCodeAt(a.gzindex++)&255:0,G(a,c)}while(c!==0);a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),c===0&&(a.gzindex=0,a.status=B)}else a.status=B;if(a.status===B)if(a.gzhead.comment){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),fe(e),s=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.comment.length?a.gzhead.comment.charCodeAt(a.gzindex++)&255:0,G(a,c)}while(c!==0);a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),c===0&&(a.status=V)}else a.status=V;if(a.status===V&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&fe(e),a.pending+2<=a.pending_buf_size&&(G(a,e.adler&255),G(a,e.adler>>8&255),e.adler=0,a.status=ie)):a.status=ie),a.pending!==0){if(fe(e),e.avail_out===0)return a.last_flush=-1,g}else if(e.avail_in===0&&ue(t)<=ue(r)&&t!==m)return le(e,b);if(a.status===ae&&e.avail_in!==0)return le(e,b);if(e.avail_in!==0||a.lookahead!==0||t!==o&&a.status!==ae){var d=a.strategy===C?ve(a,t):a.strategy===w?_e(a,t):Y[a.level].func(a,t);if((d===U||d===se)&&(a.status=ae),d===H||d===U)return e.avail_out===0&&(a.last_flush=-1),g;if(d===oe&&(t===f?n._tr_align(a):t!==h&&(n._tr_stored_block(a,0,0,!1),t===p&&(de(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),fe(e),e.avail_out===0))return a.last_flush=-1,g}return t===m?a.wrap<=0?_:(a.wrap===2?(G(a,e.adler&255),G(a,e.adler>>8&255),G(a,e.adler>>16&255),G(a,e.adler>>24&255),G(a,e.total_in&255),G(a,e.total_in>>8&255),G(a,e.total_in>>16&255),G(a,e.total_in>>24&255)):(pe(a,e.adler>>>16),pe(a,e.adler&65535)),fe(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending===0?_:g):g}function De(e){var t;return!e||!e.state?v:(t=e.state.status,t!==te&&t!==ne&&t!==re&&t!==B&&t!==V&&t!==ie&&t!==ae?le(e,v):(e.state=null,t===ie?le(e,y):g))}function Oe(e,n){var i=n.length,a,o,s,c,l,u,d,f;if(!e||!e.state||(a=e.state,c=a.wrap,c===2||c===1&&a.status!==te||a.lookahead))return v;for(c===1&&(e.adler=r(e.adler,n,i,0)),a.wrap=0,i>=a.w_size&&(c===0&&(de(a.head),a.strstart=0,a.block_start=0,a.insert=0),f=new t.Buf8(a.w_size),t.arraySet(f,n,i-a.w_size,a.w_size,0),n=f,i=a.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=i,e.next_in=0,e.input=n,q(a);a.lookahead>=I;){o=a.strstart,s=a.lookahead-(I-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+I-1])&a.hash_mask,a.prev[o&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=o,o++;while(--s);a.strstart=o,a.lookahead=I-1,q(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=I-1,a.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,a.wrap=c,g}e.deflateInit=Te,e.deflateInit2=we,e.deflateReset=Se,e.deflateResetKeep=xe,e.deflateSetHeader=Ce,e.deflate=Ee,e.deflateEnd=De,e.deflateSetDictionary=Oe,e.deflateInfo=`pako deflate (from Nodeca project)`})),p=i((e=>{var t=s(),n=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var i=new t.Buf8(256),a=0;a<256;a++)i[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1,e.string2buf=function(e){var n,r,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),c+=r<128?1:r<2048?2:r<65536?3:4;for(n=new t.Buf8(c),o=0,a=0;o<c;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?n[o++]=r:r<2048?(n[o++]=192|r>>>6,n[o++]=128|r&63):r<65536?(n[o++]=224|r>>>12,n[o++]=128|r>>>6&63,n[o++]=128|r&63):(n[o++]=240|r>>>18,n[o++]=128|r>>>12&63,n[o++]=128|r>>>6&63,n[o++]=128|r&63);return n};function o(e,i){if(i<65534&&(e.subarray&&r||!e.subarray&&n))return String.fromCharCode.apply(null,t.shrinkBuf(e,i));for(var a=``,o=0;o<i;o++)a+=String.fromCharCode(e[o]);return a}e.buf2binstring=function(e){return o(e,e.length)},e.binstring2buf=function(e){for(var n=new t.Buf8(e.length),r=0,i=n.length;r<i;r++)n[r]=e.charCodeAt(r);return n},e.buf2string=function(e,t){var n,r,a,s,c=t||e.length,l=Array(c*2);for(r=0,n=0;n<c;){if(a=e[n++],a<128){l[r++]=a;continue}if(s=i[a],s>4){l[r++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<c;)a=a<<6|e[n++]&63,s--;if(s>1){l[r++]=65533;continue}a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|a&1023)}return o(l,r)},e.utf8border=function(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+i[e[n]]>t?n:t}})),m=i(((e,t)=>{function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}t.exports=n})),h=i((e=>{var t=f(),n=s(),r=p(),i=d(),a=m(),o=Object.prototype.toString,c=0,l=4,u=0,h=1,g=2,_=-1,v=0,y=8;function b(e){if(!(this instanceof b))return new b(e);this.options=n.assign({level:_,method:y,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:``},e||{});var s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var c=t.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(c!==u)throw Error(i[c]);if(s.header&&t.deflateSetHeader(this.strm,s.header),s.dictionary){var l=typeof s.dictionary==`string`?r.string2buf(s.dictionary):o.call(s.dictionary)===`[object ArrayBuffer]`?new Uint8Array(s.dictionary):s.dictionary;if(c=t.deflateSetDictionary(this.strm,l),c!==u)throw Error(i[c]);this._dict_set=!0}}b.prototype.push=function(e,i){var a=this.strm,s=this.options.chunkSize,d,f;if(this.ended)return!1;f=i===~~i?i:i===!0?l:c,typeof e==`string`?a.input=r.string2buf(e):o.call(e)===`[object ArrayBuffer]`?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(a.avail_out===0&&(a.output=new n.Buf8(s),a.next_out=0,a.avail_out=s),d=t.deflate(a,f),d!==h&&d!==u)return this.onEnd(d),this.ended=!0,!1;(a.avail_out===0||a.avail_in===0&&(f===l||f===g))&&(this.options.to===`string`?this.onData(r.buf2binstring(n.shrinkBuf(a.output,a.next_out))):this.onData(n.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||a.avail_out===0)&&d!==h);return f===l?(d=t.deflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===u):f===g?(this.onEnd(u),a.avail_out=0,!0):!0},b.prototype.onData=function(e){this.chunks.push(e)},b.prototype.onEnd=function(e){e===u&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function x(e,t){var n=new b(t);if(n.push(e,!0),n.err)throw n.msg||i[n.err];return n.result}function S(e,t){return t||={},t.raw=!0,x(e,t)}function C(e,t){return t||={},t.gzip=!0,x(e,t)}e.Deflate=b,e.deflate=x,e.deflateRaw=S,e.gzip=C})),g=i(((e,t)=>{var n=30,r=12;t.exports=function(e,t){var i=e.state,a=e.next_in,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D=e.input,O;o=a+(e.avail_in-5),s=e.next_out,O=e.output,c=s-(t-e.avail_out),l=s+(e.avail_out-257),u=i.dmax,d=i.wsize,f=i.whave,p=i.wnext,m=i.window,h=i.hold,g=i.bits,_=i.lencode,v=i.distcode,y=(1<<i.lenbits)-1,b=(1<<i.distbits)-1;top:do{g<15&&(h+=D[a++]<<g,g+=8,h+=D[a++]<<g,g+=8),x=_[h&y];dolen:for(;;){if(S=x>>>24,h>>>=S,g-=S,S=x>>>16&255,S===0)O[s++]=x&65535;else if(S&16){C=x&65535,S&=15,S&&(g<S&&(h+=D[a++]<<g,g+=8),C+=h&(1<<S)-1,h>>>=S,g-=S),g<15&&(h+=D[a++]<<g,g+=8,h+=D[a++]<<g,g+=8),x=v[h&b];dodist:for(;;){if(S=x>>>24,h>>>=S,g-=S,S=x>>>16&255,S&16){if(w=x&65535,S&=15,g<S&&(h+=D[a++]<<g,g+=8,g<S&&(h+=D[a++]<<g,g+=8)),w+=h&(1<<S)-1,w>u){e.msg=`invalid distance too far back`,i.mode=n;break top}if(h>>>=S,g-=S,S=s-c,w>S){if(S=w-S,S>f&&i.sane){e.msg=`invalid distance too far back`,i.mode=n;break top}if(T=0,E=m,p===0){if(T+=d-S,S<C){C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}}else if(p<S){if(T+=d+p-S,S-=p,S<C){C-=S;do O[s++]=m[T++];while(--S);if(T=0,p<C){S=p,C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}}}else if(T+=p-S,S<C){C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}for(;C>2;)O[s++]=E[T++],O[s++]=E[T++],O[s++]=E[T++],C-=3;C&&(O[s++]=E[T++],C>1&&(O[s++]=E[T++]))}else{T=s-w;do O[s++]=O[T++],O[s++]=O[T++],O[s++]=O[T++],C-=3;while(C>2);C&&(O[s++]=O[T++],C>1&&(O[s++]=O[T++]))}}else if(S&64){e.msg=`invalid distance code`,i.mode=n;break top}else{x=v[(x&65535)+(h&(1<<S)-1)];continue dodist}break}}else if(!(S&64)){x=_[(x&65535)+(h&(1<<S)-1)];continue dolen}else if(S&32){i.mode=r;break top}else{e.msg=`invalid literal/length code`,i.mode=n;break top}break}}while(a<o&&s<l);C=g>>3,a-=C,g-=C<<3,h&=(1<<g)-1,e.next_in=a,e.next_out=s,e.avail_in=a<o?5+(o-a):5-(a-o),e.avail_out=s<l?257+(l-s):257-(s-l),i.hold=h,i.bits=g}})),_=i(((e,t)=>{var n=s(),r=15,i=852,a=592,o=0,c=1,l=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,s,m,h,g,_,v){var y=v.bits,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A,j,M,N,P,ee=null,F=0,I,L=new n.Buf16(r+1),R=new n.Buf16(r+1),z=null,te=0,ne,re,B;for(b=0;b<=r;b++)L[b]=0;for(x=0;x<m;x++)L[t[s+x]]++;for(w=y,C=r;C>=1&&L[C]===0;C--);if(w>C&&(w=C),C===0)return h[g++]=20971520,h[g++]=20971520,v.bits=1,0;for(S=1;S<C&&L[S]===0;S++);for(w<S&&(w=S),D=1,b=1;b<=r;b++)if(D<<=1,D-=L[b],D<0)return-1;if(D>0&&(e===o||C!==1))return-1;for(R[1]=0,b=1;b<r;b++)R[b+1]=R[b]+L[b];for(x=0;x<m;x++)t[s+x]!==0&&(_[R[t[s+x]]++]=x);if(e===o?(ee=z=_,I=19):e===c?(ee=u,F-=257,z=d,te-=257,I=256):(ee=f,z=p,I=-1),k=0,x=0,b=S,P=g,T=w,E=0,M=-1,O=1<<w,N=O-1,e===c&&O>i||e===l&&O>a)return 1;for(;;){ne=b-E,_[x]<I?(re=0,B=_[x]):_[x]>I?(re=z[te+_[x]],B=ee[F+_[x]]):(re=96,B=0),A=1<<b-E,j=1<<T,S=j;do j-=A,h[P+(k>>E)+j]=ne<<24|re<<16|B|0;while(j!==0);for(A=1<<b-1;k&A;)A>>=1;if(A===0?k=0:(k&=A-1,k+=A),x++,--L[b]===0){if(b===C)break;b=t[s+_[x]]}if(b>w&&(k&N)!==M){for(E===0&&(E=w),P+=S,T=b-E,D=1<<T;T+E<C&&(D-=L[T+E],!(D<=0));)T++,D<<=1;if(O+=1<<T,e===c&&O>i||e===l&&O>a)return 1;M=k&N,h[M]=w<<24|T<<16|P-g|0}}return k!==0&&(h[P+k]=b-E<<24|4194304),v.bits=w,0}})),v=i((e=>{var t=s(),n=l(),r=u(),i=g(),a=_(),o=0,c=1,d=2,f=4,p=5,m=6,h=0,v=1,y=2,b=-2,x=-3,S=-4,C=-5,w=8,T=1,E=2,D=3,O=4,k=5,A=6,j=7,M=8,N=9,P=10,ee=11,F=12,I=13,L=14,R=15,z=16,te=17,ne=18,re=19,B=20,V=21,ie=22,ae=23,H=24,oe=25,U=26,se=27,ce=28,le=29,ue=30,de=31,fe=32,W=852,G=592,pe=15;function me(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function K(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function q(e){var n;return!e||!e.state?b:(n=e.state,e.total_in=e.total_out=n.total=0,e.msg=``,n.wrap&&(e.adler=n.wrap&1),n.mode=T,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new t.Buf32(W),n.distcode=n.distdyn=new t.Buf32(G),n.sane=1,n.back=-1,h)}function he(e){var t;return!e||!e.state?b:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,q(e))}function ge(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?b:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,he(e))}function J(e,t){var n,r;return e?(r=new K,e.state=r,r.window=null,n=ge(e,t),n!==h&&(e.state=null),n):b}function _e(e){return J(e,pe)}var ve=!0,ye,Y;function be(e){if(ve){var n;for(ye=new t.Buf32(512),Y=new t.Buf32(32),n=0;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(a(c,e.lens,0,288,ye,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;a(d,e.lens,0,32,Y,0,e.work,{bits:5}),ve=!1}e.lencode=ye,e.lenbits=9,e.distcode=Y,e.distbits=5}function X(e,n,r,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new t.Buf8(o.wsize)),i>=o.wsize?(t.arraySet(o.window,n,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),t.arraySet(o.window,n,r-i,a,o.wnext),i-=a,i?(t.arraySet(o.window,n,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}function xe(e,s){var l,u,g,_,W,G,pe,K,q,he,ge,J,_e,ve,ye=0,Y,xe,Se,Ce,we,Te,Ee,De,Oe=new t.Buf8(4),ke,Ae,je=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return b;l=e.state,l.mode===F&&(l.mode=I),W=e.next_out,g=e.output,pe=e.avail_out,_=e.next_in,u=e.input,G=e.avail_in,K=l.hold,q=l.bits,he=G,ge=pe,De=h;inf_leave:for(;;)switch(l.mode){case T:if(l.wrap===0){l.mode=I;break}for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(l.wrap&2&&K===35615){l.check=0,Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0),K=0,q=0,l.mode=E;break}if(l.flags=0,l.head&&(l.head.done=!1),!(l.wrap&1)||(((K&255)<<8)+(K>>8))%31){e.msg=`incorrect header check`,l.mode=ue;break}if((K&15)!==w){e.msg=`unknown compression method`,l.mode=ue;break}if(K>>>=4,q-=4,Ee=(K&15)+8,l.wbits===0)l.wbits=Ee;else if(Ee>l.wbits){e.msg=`invalid window size`,l.mode=ue;break}l.dmax=1<<Ee,e.adler=l.check=1,l.mode=K&512?P:F,K=0,q=0;break;case E:for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(l.flags=K,(l.flags&255)!==w){e.msg=`unknown compression method`,l.mode=ue;break}if(l.flags&57344){e.msg=`unknown header flags set`,l.mode=ue;break}l.head&&(l.head.text=K>>8&1),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0)),K=0,q=0,l.mode=D;case D:for(;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.head&&(l.head.time=K),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,Oe[2]=K>>>16&255,Oe[3]=K>>>24&255,l.check=r(l.check,Oe,4,0)),K=0,q=0,l.mode=O;case O:for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.head&&(l.head.xflags=K&255,l.head.os=K>>8),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0)),K=0,q=0,l.mode=k;case k:if(l.flags&1024){for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.length=K,l.head&&(l.head.extra_len=K),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0)),K=0,q=0}else l.head&&(l.head.extra=null);l.mode=A;case A:if(l.flags&1024&&(J=l.length,J>G&&(J=G),J&&(l.head&&(Ee=l.head.extra_len-l.length,l.head.extra||(l.head.extra=Array(l.head.extra_len)),t.arraySet(l.head.extra,u,_,J,Ee)),l.flags&512&&(l.check=r(l.check,u,J,_)),G-=J,_+=J,l.length-=J),l.length))break inf_leave;l.length=0,l.mode=j;case j:if(l.flags&2048){if(G===0)break inf_leave;J=0;do Ee=u[_+ J++],l.head&&Ee&&l.length<65536&&(l.head.name+=String.fromCharCode(Ee));while(Ee&&J<G);if(l.flags&512&&(l.check=r(l.check,u,J,_)),G-=J,_+=J,Ee)break inf_leave}else l.head&&(l.head.name=null);l.length=0,l.mode=M;case M:if(l.flags&4096){if(G===0)break inf_leave;J=0;do Ee=u[_+ J++],l.head&&Ee&&l.length<65536&&(l.head.comment+=String.fromCharCode(Ee));while(Ee&&J<G);if(l.flags&512&&(l.check=r(l.check,u,J,_)),G-=J,_+=J,Ee)break inf_leave}else l.head&&(l.head.comment=null);l.mode=N;case N:if(l.flags&512){for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(K!==(l.check&65535)){e.msg=`header crc mismatch`,l.mode=ue;break}K=0,q=0}l.head&&(l.head.hcrc=l.flags>>9&1,l.head.done=!0),e.adler=l.check=0,l.mode=F;break;case P:for(;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}e.adler=l.check=me(K),K=0,q=0,l.mode=ee;case ee:if(l.havedict===0)return e.next_out=W,e.avail_out=pe,e.next_in=_,e.avail_in=G,l.hold=K,l.bits=q,y;e.adler=l.check=1,l.mode=F;case F:if(s===p||s===m)break inf_leave;case I:if(l.last){K>>>=q&7,q-=q&7,l.mode=se;break}for(;q<3;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}switch(l.last=K&1,K>>>=1,--q,K&3){case 0:l.mode=L;break;case 1:if(be(l),l.mode=B,s===m){K>>>=2,q-=2;break inf_leave}break;case 2:l.mode=te;break;case 3:e.msg=`invalid block type`,l.mode=ue}K>>>=2,q-=2;break;case L:for(K>>>=q&7,q-=q&7;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if((K&65535)!=(K>>>16^65535)){e.msg=`invalid stored block lengths`,l.mode=ue;break}if(l.length=K&65535,K=0,q=0,l.mode=R,s===m)break inf_leave;case R:l.mode=z;case z:if(J=l.length,J){if(J>G&&(J=G),J>pe&&(J=pe),J===0)break inf_leave;t.arraySet(g,u,_,J,W),G-=J,_+=J,pe-=J,W+=J,l.length-=J;break}l.mode=F;break;case te:for(;q<14;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(l.nlen=(K&31)+257,K>>>=5,q-=5,l.ndist=(K&31)+1,K>>>=5,q-=5,l.ncode=(K&15)+4,K>>>=4,q-=4,l.nlen>286||l.ndist>30){e.msg=`too many length or distance symbols`,l.mode=ue;break}l.have=0,l.mode=ne;case ne:for(;l.have<l.ncode;){for(;q<3;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.lens[je[l.have++]]=K&7,K>>>=3,q-=3}for(;l.have<19;)l.lens[je[l.have++]]=0;if(l.lencode=l.lendyn,l.lenbits=7,ke={bits:l.lenbits},De=a(o,l.lens,0,19,l.lencode,0,l.work,ke),l.lenbits=ke.bits,De){e.msg=`invalid code lengths set`,l.mode=ue;break}l.have=0,l.mode=re;case re:for(;l.have<l.nlen+l.ndist;){for(;ye=l.lencode[K&(1<<l.lenbits)-1],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(Se<16)K>>>=Y,q-=Y,l.lens[l.have++]=Se;else{if(Se===16){for(Ae=Y+2;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(K>>>=Y,q-=Y,l.have===0){e.msg=`invalid bit length repeat`,l.mode=ue;break}Ee=l.lens[l.have-1],J=3+(K&3),K>>>=2,q-=2}else if(Se===17){for(Ae=Y+3;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Y,q-=Y,Ee=0,J=3+(K&7),K>>>=3,q-=3}else{for(Ae=Y+7;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Y,q-=Y,Ee=0,J=11+(K&127),K>>>=7,q-=7}if(l.have+J>l.nlen+l.ndist){e.msg=`invalid bit length repeat`,l.mode=ue;break}for(;J--;)l.lens[l.have++]=Ee}}if(l.mode===ue)break;if(l.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,l.mode=ue;break}if(l.lenbits=9,ke={bits:l.lenbits},De=a(c,l.lens,0,l.nlen,l.lencode,0,l.work,ke),l.lenbits=ke.bits,De){e.msg=`invalid literal/lengths set`,l.mode=ue;break}if(l.distbits=6,l.distcode=l.distdyn,ke={bits:l.distbits},De=a(d,l.lens,l.nlen,l.ndist,l.distcode,0,l.work,ke),l.distbits=ke.bits,De){e.msg=`invalid distances set`,l.mode=ue;break}if(l.mode=B,s===m)break inf_leave;case B:l.mode=V;case V:if(G>=6&&pe>=258){e.next_out=W,e.avail_out=pe,e.next_in=_,e.avail_in=G,l.hold=K,l.bits=q,i(e,ge),W=e.next_out,g=e.output,pe=e.avail_out,_=e.next_in,u=e.input,G=e.avail_in,K=l.hold,q=l.bits,l.mode===F&&(l.back=-1);break}for(l.back=0;ye=l.lencode[K&(1<<l.lenbits)-1],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(xe&&!(xe&240)){for(Ce=Y,we=xe,Te=Se;ye=l.lencode[Te+((K&(1<<Ce+we)-1)>>Ce)],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Ce+Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Ce,q-=Ce,l.back+=Ce}if(K>>>=Y,q-=Y,l.back+=Y,l.length=Se,xe===0){l.mode=U;break}if(xe&32){l.back=-1,l.mode=F;break}if(xe&64){e.msg=`invalid literal/length code`,l.mode=ue;break}l.extra=xe&15,l.mode=ie;case ie:if(l.extra){for(Ae=l.extra;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.length+=K&(1<<l.extra)-1,K>>>=l.extra,q-=l.extra,l.back+=l.extra}l.was=l.length,l.mode=ae;case ae:for(;ye=l.distcode[K&(1<<l.distbits)-1],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(!(xe&240)){for(Ce=Y,we=xe,Te=Se;ye=l.distcode[Te+((K&(1<<Ce+we)-1)>>Ce)],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Ce+Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Ce,q-=Ce,l.back+=Ce}if(K>>>=Y,q-=Y,l.back+=Y,xe&64){e.msg=`invalid distance code`,l.mode=ue;break}l.offset=Se,l.extra=xe&15,l.mode=H;case H:if(l.extra){for(Ae=l.extra;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.offset+=K&(1<<l.extra)-1,K>>>=l.extra,q-=l.extra,l.back+=l.extra}if(l.offset>l.dmax){e.msg=`invalid distance too far back`,l.mode=ue;break}l.mode=oe;case oe:if(pe===0)break inf_leave;if(J=ge-pe,l.offset>J){if(J=l.offset-J,J>l.whave&&l.sane){e.msg=`invalid distance too far back`,l.mode=ue;break}J>l.wnext?(J-=l.wnext,_e=l.wsize-J):_e=l.wnext-J,J>l.length&&(J=l.length),ve=l.window}else ve=g,_e=W-l.offset,J=l.length;J>pe&&(J=pe),pe-=J,l.length-=J;do g[W++]=ve[_e++];while(--J);l.length===0&&(l.mode=V);break;case U:if(pe===0)break inf_leave;g[W++]=l.length,pe--,l.mode=V;break;case se:if(l.wrap){for(;q<32;){if(G===0)break inf_leave;G--,K|=u[_++]<<q,q+=8}if(ge-=pe,e.total_out+=ge,l.total+=ge,ge&&(e.adler=l.check=l.flags?r(l.check,g,ge,W-ge):n(l.check,g,ge,W-ge)),ge=pe,(l.flags?K:me(K))!==l.check){e.msg=`incorrect data check`,l.mode=ue;break}K=0,q=0}l.mode=ce;case ce:if(l.wrap&&l.flags){for(;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(K!==(l.total&4294967295)){e.msg=`incorrect length check`,l.mode=ue;break}K=0,q=0}l.mode=le;case le:De=v;break inf_leave;case ue:De=x;break inf_leave;case de:return S;case fe:default:return b}return e.next_out=W,e.avail_out=pe,e.next_in=_,e.avail_in=G,l.hold=K,l.bits=q,(l.wsize||ge!==e.avail_out&&l.mode<ue&&(l.mode<se||s!==f))&&X(e,e.output,e.next_out,ge-e.avail_out)?(l.mode=de,S):(he-=e.avail_in,ge-=e.avail_out,e.total_in+=he,e.total_out+=ge,l.total+=ge,l.wrap&&ge&&(e.adler=l.check=l.flags?r(l.check,g,ge,e.next_out-ge):n(l.check,g,ge,e.next_out-ge)),e.data_type=l.bits+(l.last?64:0)+(l.mode===F?128:0)+(l.mode===B||l.mode===R?256:0),(he===0&&ge===0||s===f)&&De===h&&(De=C),De)}function Se(e){if(!e||!e.state)return b;var t=e.state;return t.window&&=null,e.state=null,h}function Ce(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?b:(n.head=t,t.done=!1,h)}function we(e,t){var r=t.length,i,a,o;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==ee)?b:i.mode===ee&&(a=1,a=n(a,t,r,0),a!==i.check)?x:(o=X(e,t,r,r),o?(i.mode=de,S):(i.havedict=1,h))}e.inflateReset=he,e.inflateReset2=ge,e.inflateResetKeep=q,e.inflateInit=_e,e.inflateInit2=J,e.inflate=xe,e.inflateEnd=Se,e.inflateGetHeader=Ce,e.inflateSetDictionary=we,e.inflateInfo=`pako inflate (from Nodeca project)`})),y=i(((e,t)=>{t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),b=i(((e,t)=>{function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}t.exports=n})),x=i((e=>{var t=v(),n=s(),r=p(),i=y(),a=d(),o=m(),c=b(),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:``},e||{});var s=this.options;s.raw&&s.windowBits>=0&&s.windowBits<16&&(s.windowBits=-s.windowBits,s.windowBits===0&&(s.windowBits=-15)),s.windowBits>=0&&s.windowBits<16&&!(e&&e.windowBits)&&(s.windowBits+=32),s.windowBits>15&&s.windowBits<48&&(s.windowBits&15||(s.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,s.windowBits);if(d!==i.Z_OK||(this.header=new c,t.inflateGetHeader(this.strm,this.header),s.dictionary&&(typeof s.dictionary==`string`?s.dictionary=r.string2buf(s.dictionary):l.call(s.dictionary)===`[object ArrayBuffer]`&&(s.dictionary=new Uint8Array(s.dictionary)),s.raw&&(d=t.inflateSetDictionary(this.strm,s.dictionary),d!==i.Z_OK))))throw Error(a[d])}u.prototype.push=function(e,a){var o=this.strm,s=this.options.chunkSize,c=this.options.dictionary,u,d,f,p,m,h=!1;if(this.ended)return!1;d=a===~~a?a:a===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof e==`string`?o.input=r.binstring2buf(e):l.call(e)===`[object ArrayBuffer]`?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(o.avail_out===0&&(o.output=new n.Buf8(s),o.next_out=0,o.avail_out=s),u=t.inflate(o,i.Z_NO_FLUSH),u===i.Z_NEED_DICT&&c&&(u=t.inflateSetDictionary(this.strm,c)),u===i.Z_BUF_ERROR&&h===!0&&(u=i.Z_OK,h=!1),u!==i.Z_STREAM_END&&u!==i.Z_OK)return this.onEnd(u),this.ended=!0,!1;o.next_out&&(o.avail_out===0||u===i.Z_STREAM_END||o.avail_in===0&&(d===i.Z_FINISH||d===i.Z_SYNC_FLUSH))&&(this.options.to===`string`?(f=r.utf8border(o.output,o.next_out),p=o.next_out-f,m=r.buf2string(o.output,f),o.next_out=p,o.avail_out=s-p,p&&n.arraySet(o.output,o.output,f,p,0),this.onData(m)):this.onData(n.shrinkBuf(o.output,o.next_out))),o.avail_in===0&&o.avail_out===0&&(h=!0)}while((o.avail_in>0||o.avail_out===0)&&u!==i.Z_STREAM_END);return u===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(u=t.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===i.Z_OK):d===i.Z_SYNC_FLUSH?(this.onEnd(i.Z_OK),o.avail_out=0,!0):!0},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===i.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function f(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}function h(e,t){return t||={},t.raw=!0,f(e,t)}e.Inflate=u,e.inflate=f,e.inflateRaw=h,e.ungzip=f})),S=i(((e,t)=>{var n=s().assign,r=h(),i=x(),a=y(),o={};n(o,r,i,a),t.exports=o})),C=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.messageAssert=e.messageError=e.QuickTypeError=void 0;var t={InternalError:"Internal error: ${message}",MiscJSONParseError:"Syntax error in ${description} JSON ${address}: ${message}",MiscReadError:"Cannot read from file or URL ${fileOrURL}: ${message}",MiscUnicodeHighSurrogateWithoutLowSurrogate:`Malformed unicode: High surrogate not followed by low surrogate`,MiscInvalidMinMaxConstraint:"Invalid min-max constraint: ${min}-${max}",InferenceJSONReferenceNotRooted:"JSON reference doesn't start with '#/': ${reference}",InferenceJSONReferenceToUnion:"JSON reference points to a union type: ${reference}",InferenceJSONReferenceWrongProperty:"JSON reference points to a non-existant property: ${reference}",InferenceJSONReferenceInvalidArrayIndex:"JSON reference uses invalid array index: ${reference}",SchemaArrayIsInvalidSchema:"An array is not a valid JSON Schema at ${ref}",SchemaNullIsInvalidSchema:"null is not a valid JSON Schema at ${ref}",SchemaRefMustBeString:"$ref must be a string, but is an ${actual} at ${ref}",SchemaAdditionalTypesForbidRequired:"Can't have non-specified required properties but forbidden additionalTypes at ${ref}",SchemaNoTypeSpecified:"JSON Schema must specify at least one type at ${ref}",SchemaInvalidType:"Invalid type ${type} in JSON Schema at ${ref}",SchemaFalseNotSupported:'Schema "false" is not supported at ${ref}',SchemaInvalidJSONSchemaType:"Value of type ${type} is not valid JSON Schema at ${ref}",SchemaRequiredMustBeStringOrStringArray:"`required` must be string or array of strings, but is ${actual} at ${ref}",SchemaRequiredElementMustBeString:"`required` must contain only strings, but it has ${element}, at ${ref}",SchemaTypeMustBeStringOrStringArray:"`type` must be string or array of strings, but is ${actual}",SchemaTypeElementMustBeString:"`type` must contain only strings, but it has ${element}",SchemaArrayItemsMustBeStringOrArray:"Array items must be an array or an object, but is ${actual}",SchemaIDMustHaveAddress:"$id ${id} doesn't have an address at ${ref}",SchemaWrongAccessorEntryArrayLength:"Accessor entry array must have the same number of entries as the ${operation} at ${ref}",SchemaSetOperationCasesIsNotArray:"${operation} cases must be an array, but is ${cases}, at ${ref}",SchemaMoreThanOneUnionMemberName:"More than one name given for union member: ${names}",SchemaCannotGetTypesFromBoolean:"Schema value to get top-level types from must be an object, but is boolean, at ${ref}",SchemaCannotIndexArrayWithNonNumber:"Trying to index array in schema with key that is not a number, but is ${actual} at ${ref}",SchemaIndexNotInArray:"Index ${index} out of range of schema array at ${ref}",SchemaKeyNotInObject:"Key ${key} not in schema object at ${ref}",SchemaFetchError:"Could not fetch schema ${address}, referred to from ${base}",SchemaFetchErrorTopLevel:"Could not fetch top-level schema ${address}",SchemaFetchErrorAdditional:"Could not fetch additional schema ${address}",GraphQLNoQueriesDefined:`GraphQL file doesn't have any queries defined.`,DriverUnknownSourceLanguage:"Unknown source language ${lang}",DriverUnknownOutputLanguage:"Unknown output language ${lang}",DriverMoreThanOneInputGiven:"More than one input given for top-level ${topLevel}",DriverCannotInferNameForSchema:"Cannot infer name for schema ${uri}",DriverNoGraphQLQueryGiven:`Please specify at least one GraphQL query as input`,DriverNoGraphQLSchemaInDir:"No GraphQL schema in ${dir}",DriverMoreThanOneGraphQLSchemaInDir:"More than one GraphQL schema in ${dir}",DriverSourceLangMustBeGraphQL:`If a GraphQL schema is specified, the source language must be GraphQL`,DriverGraphQLSchemaNeeded:`Please specify a GraphQL schema with --graphql-schema or --graphql-introspect`,DriverInputFileDoesNotExist:"Input file ${filename} does not exist",DriverCannotMixJSONWithOtherSamples:"Cannot mix JSON samples with JSON Schems, GraphQL, or TypeScript in input subdirectory ${dir}",DriverCannotMixNonJSONInputs:"Cannot mix JSON Schema, GraphQL, and TypeScript in an input subdirectory ${dir}",DriverUnknownDebugOption:"Unknown debug option ${option}",DriverNoLanguageOrExtension:`Please specify a language (--lang) or an output file extension`,DriverCLIOptionParsingFailed:"Option parsing failed: ${message}",IRNoForwardDeclarableTypeInCycle:`Cannot resolve cycle because it doesn't contain types that can be forward declared`,IRTypeAttributesNotPropagated:"Type attributes for ${count} types were not carried over to the new graph: ${indexes}",IRNoEmptyUnions:`Trying to make an empty union - do you have an impossible type in your schema?`,RendererUnknownOptionValue:"Unknown value ${value} for option ${name}",TypeScriptCompilerError:"TypeScript error: ${message}"},n=class extends Error{constructor(e,t,n,r){super(n),this.errorMessage=e,this.messageName=t,this.properties=r}};e.QuickTypeError=n;function r(e,r){let i=t[e],a=i,o=r;for(let e of Object.getOwnPropertyNames(o)){let t=o[e];typeof t==`object`&&typeof t.toString==`function`?t=t.toString():typeof t.message==`string`?t=t.message:typeof t!=`string`&&(t=JSON.stringify(t)),a=a.replace("${"+e+`}`,t)}throw new n(i,e,a,o)}e.messageError=r;function i(e,t,n){if(!e)return r(t,n)}e.messageAssert=i}));function w(e){if(e&&typeof e==`object`)switch(e[M]){case O:case j:return!0}return!1}function T(e){if(e&&typeof e==`object`)switch(e[M]){case E:case O:case A:case j:return!0}return!1}var E,D,O,k,A,j,M,N,P,ee,F,I,L,R,z=n((()=>{E=Symbol.for(`yaml.alias`),D=Symbol.for(`yaml.document`),O=Symbol.for(`yaml.map`),k=Symbol.for(`yaml.pair`),A=Symbol.for(`yaml.scalar`),j=Symbol.for(`yaml.seq`),M=Symbol.for(`yaml.node.type`),N=e=>!!e&&typeof e==`object`&&e[M]===E,P=e=>!!e&&typeof e==`object`&&e[M]===D,ee=e=>!!e&&typeof e==`object`&&e[M]===O,F=e=>!!e&&typeof e==`object`&&e[M]===k,I=e=>!!e&&typeof e==`object`&&e[M]===A,L=e=>!!e&&typeof e==`object`&&e[M]===j,R=e=>(I(e)||w(e))&&!!e.anchor}));function te(e,t){let n=V(t);P(e)?ne(null,e.contents,n,Object.freeze([e]))===U&&(e.contents=null):ne(null,e,n,Object.freeze([]))}function ne(e,t,n,r){let i=ie(e,t,n,r);if(T(i)||F(i))return ae(e,r,i),ne(e,i,n,r);if(typeof i!=`symbol`){if(w(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=ne(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===H)return H;else i===U&&(t.items.splice(e,1),--e)}}else if(F(t)){r=Object.freeze(r.concat(t));let e=ne(`key`,t.key,n,r);if(e===H)return H;e===U&&(t.key=null);let i=ne(`value`,t.value,n,r);if(i===H)return H;i===U&&(t.value=null)}}return i}async function re(e,t){let n=V(t);P(e)?await B(null,e.contents,n,Object.freeze([e]))===U&&(e.contents=null):await B(null,e,n,Object.freeze([]))}async function B(e,t,n,r){let i=await ie(e,t,n,r);if(T(i)||F(i))return ae(e,r,i),B(e,i,n,r);if(typeof i!=`symbol`){if(w(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await B(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===H)return H;else i===U&&(t.items.splice(e,1),--e)}}else if(F(t)){r=Object.freeze(r.concat(t));let e=await B(`key`,t.key,n,r);if(e===H)return H;e===U&&(t.key=null);let i=await B(`value`,t.value,n,r);if(i===H)return H;i===U&&(t.value=null)}}return i}function V(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 ie(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(ee(t))return n.Map?.(e,t,r);if(L(t))return n.Seq?.(e,t,r);if(F(t))return n.Pair?.(e,t,r);if(I(t))return n.Scalar?.(e,t,r);if(N(t))return n.Alias?.(e,t,r)}function ae(e,t,n){let r=t[t.length-1];if(w(r))r.items[e]=n;else if(F(r))e===`key`?r.key=n:r.value=n;else if(P(r))r.contents=n;else{let e=N(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var H,oe,U,se=n((()=>{z(),H=Symbol(`break visit`),oe=Symbol(`skip children`),U=Symbol(`remove node`),te.BREAK=H,te.SKIP=oe,te.REMOVE=U,re.BREAK=H,re.SKIP=oe,re.REMOVE=U})),ce,le,ue,de=n((()=>{z(),se(),ce={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},le=e=>e.replace(/[!,[\]{}]/g,e=>ce[e]),ue=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);break}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+le(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&&T(e.contents)){let t={};te(e.contents,(e,n)=>{T(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(`
1
+ import{a as e,i as t,n,r,t as i}from"../rolldown-runtime-ga5ujxqr.js";var a=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){return new(n||=Promise)(function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.hashCodeInit=17;function n(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t}e.hashString=n;function r(e,t){return e*31+(t|0)|0}e.addHashCode=r;function i(e,t){return e===void 0?t:e}e.withDefault=i;function a(e,t){if(e!==void 0)return t(e)}e.definedMap=a;function o(e,t,n){return i(a(e,n),t)}e.definedMapWithDefault=o;function s(e,t){return e==null?!1:Object.prototype.hasOwnProperty.call(e,t)}e.hasOwnProperty=s;function c(e,t){for(let n of e)if(t(n))return n}e.iterableFind=c;function l(e,t){for(let n of e)if(!t(n))return!1;return!0}e.iterableEvery=l;function u(e,t){for(let n of e)if(t(n))return!0;return!1}e.iterableSome=u;function d(e){for(let t of e)return t}e.iterableFirst=d;function f(e){let t;for(let n of e)(t===void 0||n>t)&&(t=n);return t}e.iterableMax=f;function p(e,t){let n,r;for(let i of e){let e=t(i);(n===void 0||e<n)&&(n=e,r=i)}return r}e.iterableMinBy=p;function m(e,t,n){let r=t;for(let t of e)r=n(r,t);return r}e.iterableReduce=m;function*h(e){let t=0;for(let n of e)yield[t,n],t+=1}e.iterableEnumerate=h;function*g(e,t){let n=0;for(let r of e)n>=t?yield r:n+=1}e.iterableSkip=g;function _(e,t){let n=e.length;if(!(t>n))return e[n-t]}e.arrayGetFromEnd=_;function v(e){return _(e,1)}e.arrayLast=v;function y(e){let t=e.length;if(t===0)throw Error(`Cannot pop empty array`);return e.slice(0,t-1)}e.arrayPop=y;function b(e,t){let n=[];for(let r of t)n.length>0&&n.push(e),n.push(r);return n}e.arrayIntercalate=b;function x(e,n){return t(this,void 0,void 0,function*(){let t=[],r=0;for(let i of e)t.push(yield n(i,r)),r+=1;return t})}e.arrayMapSync=x;function S(e,t){return e<t?-1:+(e>t)}function C(e,t){return e.sort((e,n)=>S(t(e),t(n)))}e.arraySortByInto=C;function w(e){return Array.isArray(e)?e:Array.from(e)}e.toReadonlyArray=w;function T(e,t){let n=new Map;for(let[r,i]of e)n.set(r,t(i,r));return n}e.mapMap=T;function E(e){for(let t of e.values())return t}e.mapFirst=E;function D(e,t){for(let n of e.values())if(n===t)return!0;return!1}e.mapContains=D;function O(e,t){for(let[n,r]of e)if(t(r,n))return!0;return!1}e.mapSome=O;function k(e,t){for(let[n,r]of t)e.set(n,r);return e}e.mapMergeInto=k;function A(e,t){let n=new Map(e);return k(n,t),n}e.mapMerge=A;function j(e,t,n){for(let[r,i]of n){let n=e.get(r),a=n===void 0?i:t(n,i,r);e.set(r,a)}return e}e.mapMergeWithInto=j;function M(e,t,n){let r=new Map(e);return j(r,t,n),r}e.mapMergeWith=M;function N(e,t){let n=new Map;for(let[r,i]of e)t(i,r)&&n.set(r,i);return n}e.mapFilter=N;function P(e,t){let n=new Map;for(let[r,i]of e){let e=t(i,r);e!==void 0&&n.set(r,e)}return n}e.mapFilterMap=P;function ee(e,t){return C(Array.from(e),([e,n])=>t(n,e))}e.mapSortToArray=ee;function F(e,t){return new Map(ee(e,t))}e.mapSortBy=F;function I(e){return F(e,(e,t)=>t)}e.mapSortByKey=I;function L(e,t){let n=new Map;for(let[r,i]of e){let[e,a]=t(i,r);n.set(e,a)}return n}e.mapMapEntries=L;function R(e,t,n){return e.set(t,n(e.get(t))),e}e.mapUpdateInto=R;function z(e){let t=new Map;for(let n of Object.getOwnPropertyNames(e))t.set(n,e[n]);return t}e.mapFromObject=z;function te(e){let t={};for(let[n,r]of e)t[n]=r;return t}e.mapToObject=te;function ne(e,t){let n=new Map;for(let r of e)n.set(r,t(r));return n}e.mapFromIterable=ne;function re(e,t){for(let[n,r]of e)if(t(r,n))return r}e.mapFind=re;function B(e){let t=new Map;for(let n of e)for(let[e,r]of n){let n=t.get(e);n===void 0&&(n=[],t.set(e,n)),n.push(r)}return t}e.mapTranspose=B;function V(e,n){return t(this,void 0,void 0,function*(){let t=new Map;for(let[r,i]of e)t.set(r,yield n(i,r));return t})}e.mapMapSync=V;function ie(e,t){for(let n of t)if(!e.has(n))return!1;return!0}e.setIsSuperset=ie;function ae(e,t){for(let n of t)for(let t of n)e.add(t);return e}e.setUnionManyInto=ae;function H(e,...t){return ae(e,t)}e.setUnionInto=H;function oe(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}e.setIntersect=oe;function U(e,t){let n=new Set(e);for(let e of t)n.delete(e);return n}e.setSubtract=U;function se(...e){let t=new Set;return H(t,...e),t}e.setUnion=se;function ce(e,t){let n=new Set;for(let r of e)n.add(t(r));return n}e.setMap=ce;function le(e,t){let n=new Set;for(let r of e)t(r)&&n.add(r);return n}e.setFilter=le;function ue(e,t){let n=new Set;for(let r of e){let e=t(r);e!==void 0&&n.add(e)}return n}e.setFilterMap=ue;function de(e,t){return new Set(C(Array.from(e),t))}e.setSortBy=de;function fe(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);i===void 0&&(i=new Set,n.set(e,i)),i.add(r)}return n}e.setGroupBy=fe;function W(e){return e instanceof Set?e:new Set(e)}e.toReadonlySet=W,e.EqualityMap=class{constructor(){this._map=new Map}set(e,t){let n=pe(e)|0;for(;;){let r=this._map.get(n);if(r===void 0){this._map.set(n,[e,t]);return}if(G(e,r[0])){r[1]=t;return}n=n+1|0}}get(e){let t=pe(e)|0;for(;;){let n=this._map.get(t);if(n===void 0)return;if(G(e,n[0]))return n[1];t=t+1|0}}has(e){return this.get(e)!==void 0}*values(){for(let[,[,e]]of this._map)yield e}};function G(e,t){if(e===t)return!0;if(e===void 0||t===void 0||e===null||t===null)return!1;if(typeof e.equals==`function`&&typeof t.equals==`function`)return e.equals(t);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!G(r,t.get(n)))return!1;return!0}if(Array.isArray(e)&&Array.isArray(t)){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(!G(e[r],t[r]))return!1;return!0}return!1}e.areEqual=G;function pe(t){if(typeof t==`number`)return t|0;if(typeof t==`string`)return n(t);let i=e.hashCodeInit;if(t===void 0)return i;if(t===!0)return i+1|0;if(t===!1)return i+2|0;if(t===null)return i+3|0;if(typeof t.hashCode==`function`)return t.hashCode();if(t instanceof Set){for(let e of t)i+=pe(e);return i}if(t instanceof Map){let n=e.hashCodeInit;for(let[e,r]of t)n+=pe(e),i+=pe(r);return r(n,i)}if(Array.isArray(t)){for(let e of t)i=r(i,pe(e));return i}throw Error(`Cannot hash ${t}`)}e.hashCodeOf=pe})),o=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(function(){var e=n.Base64,t=r();t.noConflict=function(){return n.Base64=e,t},n.Meteor&&(Base64=t),n.Base64=t})()})(typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:e,function(){var e=`3.7.7`,t=e,n=typeof Buffer==`function`,r=typeof TextDecoder==`function`?new TextDecoder:void 0,i=typeof TextEncoder==`function`?new TextEncoder:void 0,a=Array.prototype.slice.call(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`),o=(function(e){var t={};return e.forEach(function(e,n){return t[e]=n}),t})(a),s=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,c=String.fromCharCode.bind(String),l=typeof Uint8Array.from==`function`?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},u=function(e){return e.replace(/=/g,``).replace(/[+\/]/g,function(e){return e==`+`?`-`:`_`})},d=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,``)},f=function(e){for(var t,n,r,i,o=``,s=e.length%3,c=0;c<e.length;){if((n=e.charCodeAt(c++))>255||(r=e.charCodeAt(c++))>255||(i=e.charCodeAt(c++))>255)throw TypeError(`invalid character found`);t=n<<16|r<<8|i,o+=a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[t&63]}return s?o.slice(0,s-3)+`===`.substring(s):o},p=typeof btoa==`function`?function(e){return btoa(e)}:n?function(e){return Buffer.from(e,`binary`).toString(`base64`)}:f,m=n?function(e){return Buffer.from(e).toString(`base64`)}:function(e){for(var t=4096,n=[],r=0,i=e.length;r<i;r+=t)n.push(c.apply(null,e.subarray(r,r+t)));return p(n.join(``))},h=function(e,t){return t===void 0&&(t=!1),t?u(m(e)):m(e)},g=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?c(192|t>>>6)+c(128|t&63):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|t&63)}},_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(e){return e.replace(_,g)},y=n?function(e){return Buffer.from(e,`utf8`).toString(`base64`)}:i?function(e){return m(i.encode(e))}:function(e){return p(v(e))},b=function(e,t){return t===void 0&&(t=!1),t?u(y(e)):y(e)},x=function(e){return b(e,!0)},S=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c((t>>>10)+55296)+c((t&1023)+56320);case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(S,C)},T=function(e){if(e=e.replace(/\s+/g,``),!s.test(e))throw TypeError(`malformed base64.`);e+=`==`.slice(2-(e.length&3));for(var t,n=``,r,i,a=0;a<e.length;)t=o[e.charAt(a++)]<<18|o[e.charAt(a++)]<<12|(r=o[e.charAt(a++)])<<6|(i=o[e.charAt(a++)]),n+=r===64?c(t>>16&255):i===64?c(t>>16&255,t>>8&255):c(t>>16&255,t>>8&255,t&255);return n},E=typeof atob==`function`?function(e){return atob(d(e))}:n?function(e){return Buffer.from(e,`base64`).toString(`binary`)}:T,D=n?function(e){return l(Buffer.from(e,`base64`))}:function(e){return l(E(e).split(``).map(function(e){return e.charCodeAt(0)}))},O=function(e){return D(A(e))},k=n?function(e){return Buffer.from(e,`base64`).toString(`utf8`)}:r?function(e){return r.decode(D(e))}:function(e){return w(E(e))},A=function(e){return d(e.replace(/[-_]/g,function(e){return e==`-`?`+`:`/`}))},j=function(e){return k(A(e))},M=function(e){if(typeof e!=`string`)return!1;var t=e.replace(/\s+/g,``).replace(/={0,2}$/,``);return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},N=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},P=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,N(t))};e(`fromBase64`,function(){return j(this)}),e(`toBase64`,function(e){return b(this,e)}),e(`toBase64URI`,function(){return b(this,!0)}),e(`toBase64URL`,function(){return b(this,!0)}),e(`toUint8Array`,function(){return O(this)})},ee=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,N(t))};e(`toBase64`,function(e){return h(this,e)}),e(`toBase64URI`,function(){return h(this,!0)}),e(`toBase64URL`,function(){return h(this,!0)})},F={version:e,VERSION:t,atob:E,atobPolyfill:T,btoa:p,btoaPolyfill:f,fromBase64:j,toBase64:b,encode:b,encodeURI:x,encodeURL:x,utob:v,btou:w,decode:j,isValid:M,fromUint8Array:h,toUint8Array:O,extendString:P,extendUint8Array:ee,extendBuiltins:function(){P(),ee()}};return F.Base64={},Object.keys(F).forEach(function(e){return F.Base64[e]=F[e]}),F})})),s=i((e=>{var t=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!=`object`)throw TypeError(r+`must be non-object`);for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})),c=i((e=>{var t=s(),n=4,r=0,i=1,a=2;function o(e){for(var t=e.length;--t>=0;)e[t]=0}var c=0,l=1,u=2,d=3,f=258,p=29,m=256,h=m+1+p,g=30,_=19,v=2*h+1,y=15,b=16,x=7,S=256,C=16,w=17,T=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=512,j=Array((h+2)*2);o(j);var M=Array(g*2);o(M);var N=Array(A);o(N);var P=Array(f-d+1);o(P);var ee=Array(p);o(ee);var F=Array(g);o(F);function I(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var L,R,z;function te(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ne(e){return e<256?N[e]:N[256+(e>>>7)]}function re(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,n){e.bi_valid>b-n?(e.bi_buf|=t<<e.bi_valid&65535,re(e,e.bi_buf),e.bi_buf=t>>b-e.bi_valid,e.bi_valid+=n-b):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function V(e,t,n){B(e,n[t*2],n[t*2+1])}function ie(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function ae(e){e.bi_valid===16?(re(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function H(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=y;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<v;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}}function oe(e,t,n){var r=Array(y+1),i=0,a,o;for(a=1;a<=y;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=ie(r[s]++,s))}}function U(){var e,t,n,r,i,a=Array(y+1);for(n=0,r=0;r<p-1;r++)for(ee[r]=n,e=0;e<1<<E[r];e++)P[n++]=r;for(P[n-1]=r,i=0,r=0;r<16;r++)for(F[r]=i,e=0;e<1<<D[r];e++)N[i++]=r;for(i>>=7;r<g;r++)for(F[r]=i<<7,e=0;e<1<<D[r]-7;e++)N[256+ i++]=r;for(t=0;t<=y;t++)a[t]=0;for(e=0;e<=143;)j[e*2+1]=8,e++,a[8]++;for(;e<=255;)j[e*2+1]=9,e++,a[9]++;for(;e<=279;)j[e*2+1]=7,e++,a[7]++;for(;e<=287;)j[e*2+1]=8,e++,a[8]++;for(oe(j,h+1,a),e=0;e<g;e++)M[e*2+1]=5,M[e*2]=ie(e,5);L=new I(j,E,m+1,h,y),R=new I(M,D,0,g,y),z=new I([],O,0,_,x)}function se(e){var t;for(t=0;t<h;t++)e.dyn_ltree[t*2]=0;for(t=0;t<g;t++)e.dyn_dtree[t*2]=0;for(t=0;t<_;t++)e.bl_tree[t*2]=0;e.dyn_ltree[S*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function ce(e){e.bi_valid>8?re(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function le(e,n,r,i){ce(e),i&&(re(e,r),re(e,~r)),t.arraySet(e.pending_buf,e.window,n,r,e.pending),e.pending+=r}function ue(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function de(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&ue(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ue(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function fe(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?V(e,i,t):(o=P[i],V(e,o+m+1,t),s=E[o],s!==0&&(i-=ee[o],B(e,i,s)),r--,o=ne(r),V(e,o,n),s=D[o],s!==0&&(r-=F[o],B(e,r,s)));while(a<e.last_lit);V(e,S,t)}function W(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=v,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)de(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],de(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,de(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],H(e,t),oe(n,c,e.bl_count)}function G(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[w*2]++:e.bl_tree[T*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[C*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))}function pe(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do V(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(V(e,w,e.bl_tree),B(e,s-3,3)):(V(e,T,e.bl_tree),B(e,s-11,7)):(a!==i&&(V(e,a,e.bl_tree),s--),V(e,C,e.bl_tree),B(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}}function me(e){var t;for(G(e,e.dyn_ltree,e.l_desc.max_code),G(e,e.dyn_dtree,e.d_desc.max_code),W(e,e.bl_desc),t=_-1;t>=3&&e.bl_tree[k[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function K(e,t,n,r){var i;for(B(e,t-257,5),B(e,n-1,5),B(e,r-4,4),i=0;i<r;i++)B(e,e.bl_tree[k[i]*2+1],3);pe(e,e.dyn_ltree,t-1),pe(e,e.dyn_dtree,n-1)}function q(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return r;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return i;for(n=32;n<m;n++)if(e.dyn_ltree[n*2]!==0)return i;return r}var he=!1;function ge(e){he||=(U(),!0),e.l_desc=new te(e.dyn_ltree,L),e.d_desc=new te(e.dyn_dtree,R),e.bl_desc=new te(e.bl_tree,z),e.bi_buf=0,e.bi_valid=0,se(e)}function J(e,t,n,r){B(e,(c<<1)+ +!!r,3),le(e,t,n,!0)}function _e(e){B(e,l<<1,3),V(e,S,j),ae(e)}function ve(e,t,r,i){var o,s,c=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=q(e)),W(e,e.l_desc),W(e,e.d_desc),c=me(e),o=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=o&&(o=s)):o=s=r+5,r+4<=o&&t!==-1?J(e,t,r,i):e.strategy===n||s===o?(B(e,(l<<1)+ +!!i,3),fe(e,j,M)):(B(e,(u<<1)+ +!!i,3),K(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),fe(e,e.dyn_ltree,e.dyn_dtree)),se(e),i&&ce(e)}function ye(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(P[n]+m+1)*2]++,e.dyn_dtree[ne(t)*2]++),e.last_lit===e.lit_bufsize-1}e._tr_init=ge,e._tr_stored_block=J,e._tr_flush_block=ve,e._tr_tally=ye,e._tr_align=_e})),l=i(((e,t)=>{function n(e,t,n,r){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=n})),u=i(((e,t)=>{function n(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var r=n();function i(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}t.exports=i})),d=i(((e,t)=>{t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}})),f=i((e=>{var t=s(),n=c(),r=l(),i=u(),a=d(),o=0,f=1,p=3,m=4,h=5,g=0,_=1,v=-2,y=-3,b=-5,x=-1,S=1,C=2,w=3,T=4,E=0,D=2,O=8,k=9,A=15,j=8,M=286,N=30,P=19,ee=2*M+1,F=15,I=3,L=258,R=L+I+1,z=32,te=42,ne=69,re=73,B=91,V=103,ie=113,ae=666,H=1,oe=2,U=3,se=4,ce=3;function le(e,t){return e.msg=a[t],t}function ue(e){return(e<<1)-(e>4?9:0)}function de(e){for(var t=e.length;--t>=0;)e[t]=0}function fe(e){var n=e.state,r=n.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(t.arraySet(e.output,n.pending_buf,n.pending_out,r,e.next_out),e.next_out+=r,n.pending_out+=r,e.total_out+=r,e.avail_out-=r,n.pending-=r,n.pending===0&&(n.pending_out=0))}function W(e,t){n._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,fe(e.strm)}function G(e,t){e.pending_buf[e.pending++]=t}function pe(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function me(e,n,a,o){var s=e.avail_in;return s>o&&(s=o),s===0?0:(e.avail_in-=s,t.arraySet(n,e.input,e.next_in,s,a),e.state.wrap===1?e.adler=r(e.adler,n,s,a):e.state.wrap===2&&(e.adler=i(e.adler,n,s,a)),e.next_in+=s,e.total_in+=s,s)}function K(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-R?e.strstart-(e.w_size-R):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+L,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=L-(f-r),r=f-L,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead}function q(e){var n=e.w_size,r,i,a,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-R)){t.arraySet(e.window,e.window,n,n,0),e.match_start-=n,e.strstart-=n,e.block_start-=n,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=n?a-n:0;while(--i);i=n,r=i;do a=e.prev[--r],e.prev[r]=a>=n?a-n:0;while(--i);o+=n}if(e.strm.avail_in===0)break;if(i=me(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=I)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+I-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<I)););}while(e.lookahead<R&&e.strm.avail_in!==0)}function he(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(q(e),e.lookahead===0&&t===o)return H;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,W(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-R&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=0,t===m?(W(e,!0),e.strm.avail_out===0?U:se):(e.strstart>e.block_start&&(W(e,!1),e.strm.avail_out),H)}function ge(e,t){for(var r,i;;){if(e.lookahead<R){if(q(e),e.lookahead<R&&t===o)return H;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-R&&(e.match_length=K(e,r)),e.match_length>=I)if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-I),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=I){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=e.strstart<I-1?e.strstart:I-1,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function J(e,t){for(var r,i,a;;){if(e.lookahead<R){if(q(e),e.lookahead<R&&t===o)return H;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=I-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-R&&(e.match_length=K(e,r),e.match_length<=5&&(e.strategy===S||e.match_length===I&&e.strstart-e.match_start>4096)&&(e.match_length=I-1)),e.prev_length>=I&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-I,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-I),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=I-1,e.strstart++,i&&(W(e,!1),e.strm.avail_out===0))return H}else if(e.match_available){if(i=n._tr_tally(e,0,e.window[e.strstart-1]),i&&W(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return H}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(i=n._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<I-1?e.strstart:I-1,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function _e(e,t){for(var r,i,a,s,c=e.window;;){if(e.lookahead<=L){if(q(e),e.lookahead<=L&&t===o)return H;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=I&&e.strstart>0&&(a=e.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){s=e.strstart+L;do;while(i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&a<s);e.match_length=L-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=I?(r=n._tr_tally(e,1,e.match_length-I),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=0,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function ve(e,t){for(var r;;){if(e.lookahead===0&&(q(e),e.lookahead===0)){if(t===o)return H;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(W(e,!1),e.strm.avail_out===0))return H}return e.insert=0,t===m?(W(e,!0),e.strm.avail_out===0?U:se):e.last_lit&&(W(e,!1),e.strm.avail_out===0)?H:oe}function ye(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Y=[new ye(0,0,0,0,he),new ye(4,4,8,4,ge),new ye(4,5,16,8,ge),new ye(4,6,32,32,ge),new ye(4,4,16,16,J),new ye(8,16,32,32,J),new ye(8,16,128,128,J),new ye(8,32,128,256,J),new ye(32,128,258,1024,J),new ye(32,258,258,4096,J)];function be(e){e.window_size=2*e.w_size,de(e.head),e.max_lazy_match=Y[e.level].max_lazy,e.good_match=Y[e.level].good_length,e.nice_match=Y[e.level].nice_length,e.max_chain_length=Y[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=I-1,e.match_available=0,e.ins_h=0}function X(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=O,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(ee*2),this.dyn_dtree=new t.Buf16((2*N+1)*2),this.bl_tree=new t.Buf16((2*P+1)*2),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(F+1),this.heap=new t.Buf16(2*M+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*M+1),de(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(e){var t;return!e||!e.state?le(e,v):(e.total_in=e.total_out=0,e.data_type=D,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?te:ie,e.adler=t.wrap===2?0:1,t.last_flush=o,n._tr_init(t),g)}function Se(e){var t=xe(e);return t===g&&be(e.state),t}function Ce(e,t){return!e||!e.state||e.state.wrap!==2?v:(e.state.gzhead=t,g)}function we(e,n,r,i,a,o){if(!e)return v;var s=1;if(n===x&&(n=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>k||r!==O||i<8||i>15||n<0||n>9||o<0||o>T)return le(e,v);i===8&&(i=9);var c=new X;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+I-1)/I),c.window=new t.Buf8(c.w_size*2),c.head=new t.Buf16(c.hash_size),c.prev=new t.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new t.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=n,c.strategy=o,c.method=r,Se(e)}function Te(e,t){return we(e,t,O,A,j,E)}function Ee(e,t){var r,a,s,c;if(!e||!e.state||t>h||t<0)return e?le(e,v):v;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===ae&&t!==m)return le(e,e.avail_out===0?b:v);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===te)if(a.wrap===2)e.adler=0,G(a,31),G(a,139),G(a,8),a.gzhead?(G(a,+!!a.gzhead.text+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),G(a,a.gzhead.time&255),G(a,a.gzhead.time>>8&255),G(a,a.gzhead.time>>16&255),G(a,a.gzhead.time>>24&255),G(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),G(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(G(a,a.gzhead.extra.length&255),G(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=i(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=ne):(G(a,0),G(a,0),G(a,0),G(a,0),G(a,0),G(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),G(a,ce),a.status=ie);else{var l=O+(a.w_bits-8<<4)<<8,u=-1;u=a.strategy>=C||a.level<2?0:a.level<6?1:a.level===6?2:3,l|=u<<6,a.strstart!==0&&(l|=z),l+=31-l%31,a.status=ie,pe(a,l),a.strstart!==0&&(pe(a,e.adler>>>16),pe(a,e.adler&65535)),e.adler=1}if(a.status===ne)if(a.gzhead.extra){for(s=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),fe(e),s=a.pending,a.pending===a.pending_buf_size));)G(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=re)}else a.status=re;if(a.status===re)if(a.gzhead.name){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),fe(e),s=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.name.length?a.gzhead.name.charCodeAt(a.gzindex++)&255:0,G(a,c)}while(c!==0);a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),c===0&&(a.gzindex=0,a.status=B)}else a.status=B;if(a.status===B)if(a.gzhead.comment){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),fe(e),s=a.pending,a.pending===a.pending_buf_size)){c=1;break}c=a.gzindex<a.gzhead.comment.length?a.gzhead.comment.charCodeAt(a.gzindex++)&255:0,G(a,c)}while(c!==0);a.gzhead.hcrc&&a.pending>s&&(e.adler=i(e.adler,a.pending_buf,a.pending-s,s)),c===0&&(a.status=V)}else a.status=V;if(a.status===V&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&fe(e),a.pending+2<=a.pending_buf_size&&(G(a,e.adler&255),G(a,e.adler>>8&255),e.adler=0,a.status=ie)):a.status=ie),a.pending!==0){if(fe(e),e.avail_out===0)return a.last_flush=-1,g}else if(e.avail_in===0&&ue(t)<=ue(r)&&t!==m)return le(e,b);if(a.status===ae&&e.avail_in!==0)return le(e,b);if(e.avail_in!==0||a.lookahead!==0||t!==o&&a.status!==ae){var d=a.strategy===C?ve(a,t):a.strategy===w?_e(a,t):Y[a.level].func(a,t);if((d===U||d===se)&&(a.status=ae),d===H||d===U)return e.avail_out===0&&(a.last_flush=-1),g;if(d===oe&&(t===f?n._tr_align(a):t!==h&&(n._tr_stored_block(a,0,0,!1),t===p&&(de(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),fe(e),e.avail_out===0))return a.last_flush=-1,g}return t===m?a.wrap<=0?_:(a.wrap===2?(G(a,e.adler&255),G(a,e.adler>>8&255),G(a,e.adler>>16&255),G(a,e.adler>>24&255),G(a,e.total_in&255),G(a,e.total_in>>8&255),G(a,e.total_in>>16&255),G(a,e.total_in>>24&255)):(pe(a,e.adler>>>16),pe(a,e.adler&65535)),fe(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending===0?_:g):g}function De(e){var t;return!e||!e.state?v:(t=e.state.status,t!==te&&t!==ne&&t!==re&&t!==B&&t!==V&&t!==ie&&t!==ae?le(e,v):(e.state=null,t===ie?le(e,y):g))}function Oe(e,n){var i=n.length,a,o,s,c,l,u,d,f;if(!e||!e.state||(a=e.state,c=a.wrap,c===2||c===1&&a.status!==te||a.lookahead))return v;for(c===1&&(e.adler=r(e.adler,n,i,0)),a.wrap=0,i>=a.w_size&&(c===0&&(de(a.head),a.strstart=0,a.block_start=0,a.insert=0),f=new t.Buf8(a.w_size),t.arraySet(f,n,i-a.w_size,a.w_size,0),n=f,i=a.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=i,e.next_in=0,e.input=n,q(a);a.lookahead>=I;){o=a.strstart,s=a.lookahead-(I-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+I-1])&a.hash_mask,a.prev[o&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=o,o++;while(--s);a.strstart=o,a.lookahead=I-1,q(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=I-1,a.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,a.wrap=c,g}e.deflateInit=Te,e.deflateInit2=we,e.deflateReset=Se,e.deflateResetKeep=xe,e.deflateSetHeader=Ce,e.deflate=Ee,e.deflateEnd=De,e.deflateSetDictionary=Oe,e.deflateInfo=`pako deflate (from Nodeca project)`})),p=i((e=>{var t=s(),n=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var i=new t.Buf8(256),a=0;a<256;a++)i[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1,e.string2buf=function(e){var n,r,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),c+=r<128?1:r<2048?2:r<65536?3:4;for(n=new t.Buf8(c),o=0,a=0;o<c;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?n[o++]=r:r<2048?(n[o++]=192|r>>>6,n[o++]=128|r&63):r<65536?(n[o++]=224|r>>>12,n[o++]=128|r>>>6&63,n[o++]=128|r&63):(n[o++]=240|r>>>18,n[o++]=128|r>>>12&63,n[o++]=128|r>>>6&63,n[o++]=128|r&63);return n};function o(e,i){if(i<65534&&(e.subarray&&r||!e.subarray&&n))return String.fromCharCode.apply(null,t.shrinkBuf(e,i));for(var a=``,o=0;o<i;o++)a+=String.fromCharCode(e[o]);return a}e.buf2binstring=function(e){return o(e,e.length)},e.binstring2buf=function(e){for(var n=new t.Buf8(e.length),r=0,i=n.length;r<i;r++)n[r]=e.charCodeAt(r);return n},e.buf2string=function(e,t){var n,r,a,s,c=t||e.length,l=Array(c*2);for(r=0,n=0;n<c;){if(a=e[n++],a<128){l[r++]=a;continue}if(s=i[a],s>4){l[r++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<c;)a=a<<6|e[n++]&63,s--;if(s>1){l[r++]=65533;continue}a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|a&1023)}return o(l,r)},e.utf8border=function(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+i[e[n]]>t?n:t}})),m=i(((e,t)=>{function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}t.exports=n})),h=i((e=>{var t=f(),n=s(),r=p(),i=d(),a=m(),o=Object.prototype.toString,c=0,l=4,u=0,h=1,g=2,_=-1,v=0,y=8;function b(e){if(!(this instanceof b))return new b(e);this.options=n.assign({level:_,method:y,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:``},e||{});var s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var c=t.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(c!==u)throw Error(i[c]);if(s.header&&t.deflateSetHeader(this.strm,s.header),s.dictionary){var l=typeof s.dictionary==`string`?r.string2buf(s.dictionary):o.call(s.dictionary)===`[object ArrayBuffer]`?new Uint8Array(s.dictionary):s.dictionary;if(c=t.deflateSetDictionary(this.strm,l),c!==u)throw Error(i[c]);this._dict_set=!0}}b.prototype.push=function(e,i){var a=this.strm,s=this.options.chunkSize,d,f;if(this.ended)return!1;f=i===~~i?i:i===!0?l:c,typeof e==`string`?a.input=r.string2buf(e):o.call(e)===`[object ArrayBuffer]`?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(a.avail_out===0&&(a.output=new n.Buf8(s),a.next_out=0,a.avail_out=s),d=t.deflate(a,f),d!==h&&d!==u)return this.onEnd(d),this.ended=!0,!1;(a.avail_out===0||a.avail_in===0&&(f===l||f===g))&&(this.options.to===`string`?this.onData(r.buf2binstring(n.shrinkBuf(a.output,a.next_out))):this.onData(n.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||a.avail_out===0)&&d!==h);return f===l?(d=t.deflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===u):f===g?(this.onEnd(u),a.avail_out=0,!0):!0},b.prototype.onData=function(e){this.chunks.push(e)},b.prototype.onEnd=function(e){e===u&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function x(e,t){var n=new b(t);if(n.push(e,!0),n.err)throw n.msg||i[n.err];return n.result}function S(e,t){return t||={},t.raw=!0,x(e,t)}function C(e,t){return t||={},t.gzip=!0,x(e,t)}e.Deflate=b,e.deflate=x,e.deflateRaw=S,e.gzip=C})),g=i(((e,t)=>{var n=30,r=12;t.exports=function(e,t){var i=e.state,a=e.next_in,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D=e.input,O;o=a+(e.avail_in-5),s=e.next_out,O=e.output,c=s-(t-e.avail_out),l=s+(e.avail_out-257),u=i.dmax,d=i.wsize,f=i.whave,p=i.wnext,m=i.window,h=i.hold,g=i.bits,_=i.lencode,v=i.distcode,y=(1<<i.lenbits)-1,b=(1<<i.distbits)-1;top:do{g<15&&(h+=D[a++]<<g,g+=8,h+=D[a++]<<g,g+=8),x=_[h&y];dolen:for(;;){if(S=x>>>24,h>>>=S,g-=S,S=x>>>16&255,S===0)O[s++]=x&65535;else if(S&16){C=x&65535,S&=15,S&&(g<S&&(h+=D[a++]<<g,g+=8),C+=h&(1<<S)-1,h>>>=S,g-=S),g<15&&(h+=D[a++]<<g,g+=8,h+=D[a++]<<g,g+=8),x=v[h&b];dodist:for(;;){if(S=x>>>24,h>>>=S,g-=S,S=x>>>16&255,S&16){if(w=x&65535,S&=15,g<S&&(h+=D[a++]<<g,g+=8,g<S&&(h+=D[a++]<<g,g+=8)),w+=h&(1<<S)-1,w>u){e.msg=`invalid distance too far back`,i.mode=n;break top}if(h>>>=S,g-=S,S=s-c,w>S){if(S=w-S,S>f&&i.sane){e.msg=`invalid distance too far back`,i.mode=n;break top}if(T=0,E=m,p===0){if(T+=d-S,S<C){C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}}else if(p<S){if(T+=d+p-S,S-=p,S<C){C-=S;do O[s++]=m[T++];while(--S);if(T=0,p<C){S=p,C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}}}else if(T+=p-S,S<C){C-=S;do O[s++]=m[T++];while(--S);T=s-w,E=O}for(;C>2;)O[s++]=E[T++],O[s++]=E[T++],O[s++]=E[T++],C-=3;C&&(O[s++]=E[T++],C>1&&(O[s++]=E[T++]))}else{T=s-w;do O[s++]=O[T++],O[s++]=O[T++],O[s++]=O[T++],C-=3;while(C>2);C&&(O[s++]=O[T++],C>1&&(O[s++]=O[T++]))}}else if(S&64){e.msg=`invalid distance code`,i.mode=n;break top}else{x=v[(x&65535)+(h&(1<<S)-1)];continue dodist}break}}else if(!(S&64)){x=_[(x&65535)+(h&(1<<S)-1)];continue dolen}else if(S&32){i.mode=r;break top}else{e.msg=`invalid literal/length code`,i.mode=n;break top}break}}while(a<o&&s<l);C=g>>3,a-=C,g-=C<<3,h&=(1<<g)-1,e.next_in=a,e.next_out=s,e.avail_in=a<o?5+(o-a):5-(a-o),e.avail_out=s<l?257+(l-s):257-(s-l),i.hold=h,i.bits=g}})),_=i(((e,t)=>{var n=s(),r=15,i=852,a=592,o=0,c=1,l=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,s,m,h,g,_,v){var y=v.bits,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A,j,M,N,P,ee=null,F=0,I,L=new n.Buf16(r+1),R=new n.Buf16(r+1),z=null,te=0,ne,re,B;for(b=0;b<=r;b++)L[b]=0;for(x=0;x<m;x++)L[t[s+x]]++;for(w=y,C=r;C>=1&&L[C]===0;C--);if(w>C&&(w=C),C===0)return h[g++]=20971520,h[g++]=20971520,v.bits=1,0;for(S=1;S<C&&L[S]===0;S++);for(w<S&&(w=S),D=1,b=1;b<=r;b++)if(D<<=1,D-=L[b],D<0)return-1;if(D>0&&(e===o||C!==1))return-1;for(R[1]=0,b=1;b<r;b++)R[b+1]=R[b]+L[b];for(x=0;x<m;x++)t[s+x]!==0&&(_[R[t[s+x]]++]=x);if(e===o?(ee=z=_,I=19):e===c?(ee=u,F-=257,z=d,te-=257,I=256):(ee=f,z=p,I=-1),k=0,x=0,b=S,P=g,T=w,E=0,M=-1,O=1<<w,N=O-1,e===c&&O>i||e===l&&O>a)return 1;for(;;){ne=b-E,_[x]<I?(re=0,B=_[x]):_[x]>I?(re=z[te+_[x]],B=ee[F+_[x]]):(re=96,B=0),A=1<<b-E,j=1<<T,S=j;do j-=A,h[P+(k>>E)+j]=ne<<24|re<<16|B|0;while(j!==0);for(A=1<<b-1;k&A;)A>>=1;if(A===0?k=0:(k&=A-1,k+=A),x++,--L[b]===0){if(b===C)break;b=t[s+_[x]]}if(b>w&&(k&N)!==M){for(E===0&&(E=w),P+=S,T=b-E,D=1<<T;T+E<C&&(D-=L[T+E],!(D<=0));)T++,D<<=1;if(O+=1<<T,e===c&&O>i||e===l&&O>a)return 1;M=k&N,h[M]=w<<24|T<<16|P-g|0}}return k!==0&&(h[P+k]=b-E<<24|4194304),v.bits=w,0}})),v=i((e=>{var t=s(),n=l(),r=u(),i=g(),a=_(),o=0,c=1,d=2,f=4,p=5,m=6,h=0,v=1,y=2,b=-2,x=-3,S=-4,C=-5,w=8,T=1,E=2,D=3,O=4,k=5,A=6,j=7,M=8,N=9,P=10,ee=11,F=12,I=13,L=14,R=15,z=16,te=17,ne=18,re=19,B=20,V=21,ie=22,ae=23,H=24,oe=25,U=26,se=27,ce=28,le=29,ue=30,de=31,fe=32,W=852,G=592,pe=15;function me(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function K(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function q(e){var n;return!e||!e.state?b:(n=e.state,e.total_in=e.total_out=n.total=0,e.msg=``,n.wrap&&(e.adler=n.wrap&1),n.mode=T,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new t.Buf32(W),n.distcode=n.distdyn=new t.Buf32(G),n.sane=1,n.back=-1,h)}function he(e){var t;return!e||!e.state?b:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,q(e))}function ge(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?b:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,he(e))}function J(e,t){var n,r;return e?(r=new K,e.state=r,r.window=null,n=ge(e,t),n!==h&&(e.state=null),n):b}function _e(e){return J(e,pe)}var ve=!0,ye,Y;function be(e){if(ve){var n;for(ye=new t.Buf32(512),Y=new t.Buf32(32),n=0;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(a(c,e.lens,0,288,ye,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;a(d,e.lens,0,32,Y,0,e.work,{bits:5}),ve=!1}e.lencode=ye,e.lenbits=9,e.distcode=Y,e.distbits=5}function X(e,n,r,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new t.Buf8(o.wsize)),i>=o.wsize?(t.arraySet(o.window,n,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),t.arraySet(o.window,n,r-i,a,o.wnext),i-=a,i?(t.arraySet(o.window,n,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}function xe(e,s){var l,u,g,_,W,G,pe,K,q,he,ge,J,_e,ve,ye=0,Y,xe,Se,Ce,we,Te,Ee,De,Oe=new t.Buf8(4),ke,Ae,je=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return b;l=e.state,l.mode===F&&(l.mode=I),W=e.next_out,g=e.output,pe=e.avail_out,_=e.next_in,u=e.input,G=e.avail_in,K=l.hold,q=l.bits,he=G,ge=pe,De=h;inf_leave:for(;;)switch(l.mode){case T:if(l.wrap===0){l.mode=I;break}for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(l.wrap&2&&K===35615){l.check=0,Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0),K=0,q=0,l.mode=E;break}if(l.flags=0,l.head&&(l.head.done=!1),!(l.wrap&1)||(((K&255)<<8)+(K>>8))%31){e.msg=`incorrect header check`,l.mode=ue;break}if((K&15)!==w){e.msg=`unknown compression method`,l.mode=ue;break}if(K>>>=4,q-=4,Ee=(K&15)+8,l.wbits===0)l.wbits=Ee;else if(Ee>l.wbits){e.msg=`invalid window size`,l.mode=ue;break}l.dmax=1<<Ee,e.adler=l.check=1,l.mode=K&512?P:F,K=0,q=0;break;case E:for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(l.flags=K,(l.flags&255)!==w){e.msg=`unknown compression method`,l.mode=ue;break}if(l.flags&57344){e.msg=`unknown header flags set`,l.mode=ue;break}l.head&&(l.head.text=K>>8&1),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0)),K=0,q=0,l.mode=D;case D:for(;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.head&&(l.head.time=K),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,Oe[2]=K>>>16&255,Oe[3]=K>>>24&255,l.check=r(l.check,Oe,4,0)),K=0,q=0,l.mode=O;case O:for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.head&&(l.head.xflags=K&255,l.head.os=K>>8),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0)),K=0,q=0,l.mode=k;case k:if(l.flags&1024){for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.length=K,l.head&&(l.head.extra_len=K),l.flags&512&&(Oe[0]=K&255,Oe[1]=K>>>8&255,l.check=r(l.check,Oe,2,0)),K=0,q=0}else l.head&&(l.head.extra=null);l.mode=A;case A:if(l.flags&1024&&(J=l.length,J>G&&(J=G),J&&(l.head&&(Ee=l.head.extra_len-l.length,l.head.extra||(l.head.extra=Array(l.head.extra_len)),t.arraySet(l.head.extra,u,_,J,Ee)),l.flags&512&&(l.check=r(l.check,u,J,_)),G-=J,_+=J,l.length-=J),l.length))break inf_leave;l.length=0,l.mode=j;case j:if(l.flags&2048){if(G===0)break inf_leave;J=0;do Ee=u[_+ J++],l.head&&Ee&&l.length<65536&&(l.head.name+=String.fromCharCode(Ee));while(Ee&&J<G);if(l.flags&512&&(l.check=r(l.check,u,J,_)),G-=J,_+=J,Ee)break inf_leave}else l.head&&(l.head.name=null);l.length=0,l.mode=M;case M:if(l.flags&4096){if(G===0)break inf_leave;J=0;do Ee=u[_+ J++],l.head&&Ee&&l.length<65536&&(l.head.comment+=String.fromCharCode(Ee));while(Ee&&J<G);if(l.flags&512&&(l.check=r(l.check,u,J,_)),G-=J,_+=J,Ee)break inf_leave}else l.head&&(l.head.comment=null);l.mode=N;case N:if(l.flags&512){for(;q<16;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(K!==(l.check&65535)){e.msg=`header crc mismatch`,l.mode=ue;break}K=0,q=0}l.head&&(l.head.hcrc=l.flags>>9&1,l.head.done=!0),e.adler=l.check=0,l.mode=F;break;case P:for(;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}e.adler=l.check=me(K),K=0,q=0,l.mode=ee;case ee:if(l.havedict===0)return e.next_out=W,e.avail_out=pe,e.next_in=_,e.avail_in=G,l.hold=K,l.bits=q,y;e.adler=l.check=1,l.mode=F;case F:if(s===p||s===m)break inf_leave;case I:if(l.last){K>>>=q&7,q-=q&7,l.mode=se;break}for(;q<3;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}switch(l.last=K&1,K>>>=1,--q,K&3){case 0:l.mode=L;break;case 1:if(be(l),l.mode=B,s===m){K>>>=2,q-=2;break inf_leave}break;case 2:l.mode=te;break;case 3:e.msg=`invalid block type`,l.mode=ue}K>>>=2,q-=2;break;case L:for(K>>>=q&7,q-=q&7;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if((K&65535)!=(K>>>16^65535)){e.msg=`invalid stored block lengths`,l.mode=ue;break}if(l.length=K&65535,K=0,q=0,l.mode=R,s===m)break inf_leave;case R:l.mode=z;case z:if(J=l.length,J){if(J>G&&(J=G),J>pe&&(J=pe),J===0)break inf_leave;t.arraySet(g,u,_,J,W),G-=J,_+=J,pe-=J,W+=J,l.length-=J;break}l.mode=F;break;case te:for(;q<14;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(l.nlen=(K&31)+257,K>>>=5,q-=5,l.ndist=(K&31)+1,K>>>=5,q-=5,l.ncode=(K&15)+4,K>>>=4,q-=4,l.nlen>286||l.ndist>30){e.msg=`too many length or distance symbols`,l.mode=ue;break}l.have=0,l.mode=ne;case ne:for(;l.have<l.ncode;){for(;q<3;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.lens[je[l.have++]]=K&7,K>>>=3,q-=3}for(;l.have<19;)l.lens[je[l.have++]]=0;if(l.lencode=l.lendyn,l.lenbits=7,ke={bits:l.lenbits},De=a(o,l.lens,0,19,l.lencode,0,l.work,ke),l.lenbits=ke.bits,De){e.msg=`invalid code lengths set`,l.mode=ue;break}l.have=0,l.mode=re;case re:for(;l.have<l.nlen+l.ndist;){for(;ye=l.lencode[K&(1<<l.lenbits)-1],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(Se<16)K>>>=Y,q-=Y,l.lens[l.have++]=Se;else{if(Se===16){for(Ae=Y+2;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(K>>>=Y,q-=Y,l.have===0){e.msg=`invalid bit length repeat`,l.mode=ue;break}Ee=l.lens[l.have-1],J=3+(K&3),K>>>=2,q-=2}else if(Se===17){for(Ae=Y+3;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Y,q-=Y,Ee=0,J=3+(K&7),K>>>=3,q-=3}else{for(Ae=Y+7;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Y,q-=Y,Ee=0,J=11+(K&127),K>>>=7,q-=7}if(l.have+J>l.nlen+l.ndist){e.msg=`invalid bit length repeat`,l.mode=ue;break}for(;J--;)l.lens[l.have++]=Ee}}if(l.mode===ue)break;if(l.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,l.mode=ue;break}if(l.lenbits=9,ke={bits:l.lenbits},De=a(c,l.lens,0,l.nlen,l.lencode,0,l.work,ke),l.lenbits=ke.bits,De){e.msg=`invalid literal/lengths set`,l.mode=ue;break}if(l.distbits=6,l.distcode=l.distdyn,ke={bits:l.distbits},De=a(d,l.lens,l.nlen,l.ndist,l.distcode,0,l.work,ke),l.distbits=ke.bits,De){e.msg=`invalid distances set`,l.mode=ue;break}if(l.mode=B,s===m)break inf_leave;case B:l.mode=V;case V:if(G>=6&&pe>=258){e.next_out=W,e.avail_out=pe,e.next_in=_,e.avail_in=G,l.hold=K,l.bits=q,i(e,ge),W=e.next_out,g=e.output,pe=e.avail_out,_=e.next_in,u=e.input,G=e.avail_in,K=l.hold,q=l.bits,l.mode===F&&(l.back=-1);break}for(l.back=0;ye=l.lencode[K&(1<<l.lenbits)-1],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(xe&&!(xe&240)){for(Ce=Y,we=xe,Te=Se;ye=l.lencode[Te+((K&(1<<Ce+we)-1)>>Ce)],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Ce+Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Ce,q-=Ce,l.back+=Ce}if(K>>>=Y,q-=Y,l.back+=Y,l.length=Se,xe===0){l.mode=U;break}if(xe&32){l.back=-1,l.mode=F;break}if(xe&64){e.msg=`invalid literal/length code`,l.mode=ue;break}l.extra=xe&15,l.mode=ie;case ie:if(l.extra){for(Ae=l.extra;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.length+=K&(1<<l.extra)-1,K>>>=l.extra,q-=l.extra,l.back+=l.extra}l.was=l.length,l.mode=ae;case ae:for(;ye=l.distcode[K&(1<<l.distbits)-1],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(!(xe&240)){for(Ce=Y,we=xe,Te=Se;ye=l.distcode[Te+((K&(1<<Ce+we)-1)>>Ce)],Y=ye>>>24,xe=ye>>>16&255,Se=ye&65535,!(Ce+Y<=q);){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}K>>>=Ce,q-=Ce,l.back+=Ce}if(K>>>=Y,q-=Y,l.back+=Y,xe&64){e.msg=`invalid distance code`,l.mode=ue;break}l.offset=Se,l.extra=xe&15,l.mode=H;case H:if(l.extra){for(Ae=l.extra;q<Ae;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}l.offset+=K&(1<<l.extra)-1,K>>>=l.extra,q-=l.extra,l.back+=l.extra}if(l.offset>l.dmax){e.msg=`invalid distance too far back`,l.mode=ue;break}l.mode=oe;case oe:if(pe===0)break inf_leave;if(J=ge-pe,l.offset>J){if(J=l.offset-J,J>l.whave&&l.sane){e.msg=`invalid distance too far back`,l.mode=ue;break}J>l.wnext?(J-=l.wnext,_e=l.wsize-J):_e=l.wnext-J,J>l.length&&(J=l.length),ve=l.window}else ve=g,_e=W-l.offset,J=l.length;J>pe&&(J=pe),pe-=J,l.length-=J;do g[W++]=ve[_e++];while(--J);l.length===0&&(l.mode=V);break;case U:if(pe===0)break inf_leave;g[W++]=l.length,pe--,l.mode=V;break;case se:if(l.wrap){for(;q<32;){if(G===0)break inf_leave;G--,K|=u[_++]<<q,q+=8}if(ge-=pe,e.total_out+=ge,l.total+=ge,ge&&(e.adler=l.check=l.flags?r(l.check,g,ge,W-ge):n(l.check,g,ge,W-ge)),ge=pe,(l.flags?K:me(K))!==l.check){e.msg=`incorrect data check`,l.mode=ue;break}K=0,q=0}l.mode=ce;case ce:if(l.wrap&&l.flags){for(;q<32;){if(G===0)break inf_leave;G--,K+=u[_++]<<q,q+=8}if(K!==(l.total&4294967295)){e.msg=`incorrect length check`,l.mode=ue;break}K=0,q=0}l.mode=le;case le:De=v;break inf_leave;case ue:De=x;break inf_leave;case de:return S;case fe:default:return b}return e.next_out=W,e.avail_out=pe,e.next_in=_,e.avail_in=G,l.hold=K,l.bits=q,(l.wsize||ge!==e.avail_out&&l.mode<ue&&(l.mode<se||s!==f))&&X(e,e.output,e.next_out,ge-e.avail_out)?(l.mode=de,S):(he-=e.avail_in,ge-=e.avail_out,e.total_in+=he,e.total_out+=ge,l.total+=ge,l.wrap&&ge&&(e.adler=l.check=l.flags?r(l.check,g,ge,e.next_out-ge):n(l.check,g,ge,e.next_out-ge)),e.data_type=l.bits+(l.last?64:0)+(l.mode===F?128:0)+(l.mode===B||l.mode===R?256:0),(he===0&&ge===0||s===f)&&De===h&&(De=C),De)}function Se(e){if(!e||!e.state)return b;var t=e.state;return t.window&&=null,e.state=null,h}function Ce(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?b:(n.head=t,t.done=!1,h)}function we(e,t){var r=t.length,i,a,o;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==ee)?b:i.mode===ee&&(a=1,a=n(a,t,r,0),a!==i.check)?x:(o=X(e,t,r,r),o?(i.mode=de,S):(i.havedict=1,h))}e.inflateReset=he,e.inflateReset2=ge,e.inflateResetKeep=q,e.inflateInit=_e,e.inflateInit2=J,e.inflate=xe,e.inflateEnd=Se,e.inflateGetHeader=Ce,e.inflateSetDictionary=we,e.inflateInfo=`pako inflate (from Nodeca project)`})),y=i(((e,t)=>{t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),b=i(((e,t)=>{function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}t.exports=n})),x=i((e=>{var t=v(),n=s(),r=p(),i=y(),a=d(),o=m(),c=b(),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:``},e||{});var s=this.options;s.raw&&s.windowBits>=0&&s.windowBits<16&&(s.windowBits=-s.windowBits,s.windowBits===0&&(s.windowBits=-15)),s.windowBits>=0&&s.windowBits<16&&!(e&&e.windowBits)&&(s.windowBits+=32),s.windowBits>15&&s.windowBits<48&&(s.windowBits&15||(s.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,s.windowBits);if(d!==i.Z_OK||(this.header=new c,t.inflateGetHeader(this.strm,this.header),s.dictionary&&(typeof s.dictionary==`string`?s.dictionary=r.string2buf(s.dictionary):l.call(s.dictionary)===`[object ArrayBuffer]`&&(s.dictionary=new Uint8Array(s.dictionary)),s.raw&&(d=t.inflateSetDictionary(this.strm,s.dictionary),d!==i.Z_OK))))throw Error(a[d])}u.prototype.push=function(e,a){var o=this.strm,s=this.options.chunkSize,c=this.options.dictionary,u,d,f,p,m,h=!1;if(this.ended)return!1;d=a===~~a?a:a===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof e==`string`?o.input=r.binstring2buf(e):l.call(e)===`[object ArrayBuffer]`?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(o.avail_out===0&&(o.output=new n.Buf8(s),o.next_out=0,o.avail_out=s),u=t.inflate(o,i.Z_NO_FLUSH),u===i.Z_NEED_DICT&&c&&(u=t.inflateSetDictionary(this.strm,c)),u===i.Z_BUF_ERROR&&h===!0&&(u=i.Z_OK,h=!1),u!==i.Z_STREAM_END&&u!==i.Z_OK)return this.onEnd(u),this.ended=!0,!1;o.next_out&&(o.avail_out===0||u===i.Z_STREAM_END||o.avail_in===0&&(d===i.Z_FINISH||d===i.Z_SYNC_FLUSH))&&(this.options.to===`string`?(f=r.utf8border(o.output,o.next_out),p=o.next_out-f,m=r.buf2string(o.output,f),o.next_out=p,o.avail_out=s-p,p&&n.arraySet(o.output,o.output,f,p,0),this.onData(m)):this.onData(n.shrinkBuf(o.output,o.next_out))),o.avail_in===0&&o.avail_out===0&&(h=!0)}while((o.avail_in>0||o.avail_out===0)&&u!==i.Z_STREAM_END);return u===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(u=t.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===i.Z_OK):d===i.Z_SYNC_FLUSH?(this.onEnd(i.Z_OK),o.avail_out=0,!0):!0},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===i.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function f(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}function h(e,t){return t||={},t.raw=!0,f(e,t)}e.Inflate=u,e.inflate=f,e.inflateRaw=h,e.ungzip=f})),S=i(((e,t)=>{var n=s().assign,r=h(),i=x(),a=y(),o={};n(o,r,i,a),t.exports=o})),C=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.messageAssert=e.messageError=e.QuickTypeError=void 0;var t={InternalError:"Internal error: ${message}",MiscJSONParseError:"Syntax error in ${description} JSON ${address}: ${message}",MiscReadError:"Cannot read from file or URL ${fileOrURL}: ${message}",MiscUnicodeHighSurrogateWithoutLowSurrogate:`Malformed unicode: High surrogate not followed by low surrogate`,MiscInvalidMinMaxConstraint:"Invalid min-max constraint: ${min}-${max}",InferenceJSONReferenceNotRooted:"JSON reference doesn't start with '#/': ${reference}",InferenceJSONReferenceToUnion:"JSON reference points to a union type: ${reference}",InferenceJSONReferenceWrongProperty:"JSON reference points to a non-existant property: ${reference}",InferenceJSONReferenceInvalidArrayIndex:"JSON reference uses invalid array index: ${reference}",SchemaArrayIsInvalidSchema:"An array is not a valid JSON Schema at ${ref}",SchemaNullIsInvalidSchema:"null is not a valid JSON Schema at ${ref}",SchemaRefMustBeString:"$ref must be a string, but is an ${actual} at ${ref}",SchemaAdditionalTypesForbidRequired:"Can't have non-specified required properties but forbidden additionalTypes at ${ref}",SchemaNoTypeSpecified:"JSON Schema must specify at least one type at ${ref}",SchemaInvalidType:"Invalid type ${type} in JSON Schema at ${ref}",SchemaFalseNotSupported:'Schema "false" is not supported at ${ref}',SchemaInvalidJSONSchemaType:"Value of type ${type} is not valid JSON Schema at ${ref}",SchemaRequiredMustBeStringOrStringArray:"`required` must be string or array of strings, but is ${actual} at ${ref}",SchemaRequiredElementMustBeString:"`required` must contain only strings, but it has ${element}, at ${ref}",SchemaTypeMustBeStringOrStringArray:"`type` must be string or array of strings, but is ${actual}",SchemaTypeElementMustBeString:"`type` must contain only strings, but it has ${element}",SchemaArrayItemsMustBeStringOrArray:"Array items must be an array or an object, but is ${actual}",SchemaIDMustHaveAddress:"$id ${id} doesn't have an address at ${ref}",SchemaWrongAccessorEntryArrayLength:"Accessor entry array must have the same number of entries as the ${operation} at ${ref}",SchemaSetOperationCasesIsNotArray:"${operation} cases must be an array, but is ${cases}, at ${ref}",SchemaMoreThanOneUnionMemberName:"More than one name given for union member: ${names}",SchemaCannotGetTypesFromBoolean:"Schema value to get top-level types from must be an object, but is boolean, at ${ref}",SchemaCannotIndexArrayWithNonNumber:"Trying to index array in schema with key that is not a number, but is ${actual} at ${ref}",SchemaIndexNotInArray:"Index ${index} out of range of schema array at ${ref}",SchemaKeyNotInObject:"Key ${key} not in schema object at ${ref}",SchemaFetchError:"Could not fetch schema ${address}, referred to from ${base}",SchemaFetchErrorTopLevel:"Could not fetch top-level schema ${address}",SchemaFetchErrorAdditional:"Could not fetch additional schema ${address}",GraphQLNoQueriesDefined:`GraphQL file doesn't have any queries defined.`,DriverUnknownSourceLanguage:"Unknown source language ${lang}",DriverUnknownOutputLanguage:"Unknown output language ${lang}",DriverMoreThanOneInputGiven:"More than one input given for top-level ${topLevel}",DriverCannotInferNameForSchema:"Cannot infer name for schema ${uri}",DriverNoGraphQLQueryGiven:`Please specify at least one GraphQL query as input`,DriverNoGraphQLSchemaInDir:"No GraphQL schema in ${dir}",DriverMoreThanOneGraphQLSchemaInDir:"More than one GraphQL schema in ${dir}",DriverSourceLangMustBeGraphQL:`If a GraphQL schema is specified, the source language must be GraphQL`,DriverGraphQLSchemaNeeded:`Please specify a GraphQL schema with --graphql-schema or --graphql-introspect`,DriverInputFileDoesNotExist:"Input file ${filename} does not exist",DriverCannotMixJSONWithOtherSamples:"Cannot mix JSON samples with JSON Schems, GraphQL, or TypeScript in input subdirectory ${dir}",DriverCannotMixNonJSONInputs:"Cannot mix JSON Schema, GraphQL, and TypeScript in an input subdirectory ${dir}",DriverUnknownDebugOption:"Unknown debug option ${option}",DriverNoLanguageOrExtension:`Please specify a language (--lang) or an output file extension`,DriverCLIOptionParsingFailed:"Option parsing failed: ${message}",IRNoForwardDeclarableTypeInCycle:`Cannot resolve cycle because it doesn't contain types that can be forward declared`,IRTypeAttributesNotPropagated:"Type attributes for ${count} types were not carried over to the new graph: ${indexes}",IRNoEmptyUnions:`Trying to make an empty union - do you have an impossible type in your schema?`,RendererUnknownOptionValue:"Unknown value ${value} for option ${name}",TypeScriptCompilerError:"TypeScript error: ${message}"},n=class extends Error{constructor(e,t,n,r){super(n),this.errorMessage=e,this.messageName=t,this.properties=r}};e.QuickTypeError=n;function r(e,r){let i=t[e],a=i,o=r;for(let e of Object.getOwnPropertyNames(o)){let t=o[e];typeof t==`object`&&typeof t.toString==`function`?t=t.toString():typeof t.message==`string`?t=t.message:typeof t!=`string`&&(t=JSON.stringify(t)),a=a.replace("${"+e+`}`,t)}throw new n(i,e,a,o)}e.messageError=r;function i(e,t,n){if(!e)return r(t,n)}e.messageAssert=i}));function w(e){if(e&&typeof e==`object`)switch(e[M]){case O:case j:return!0}return!1}function T(e){if(e&&typeof e==`object`)switch(e[M]){case E:case O:case A:case j:return!0}return!1}var E,D,O,k,A,j,M,N,P,ee,F,I,L,R,z=n((()=>{E=Symbol.for(`yaml.alias`),D=Symbol.for(`yaml.document`),O=Symbol.for(`yaml.map`),k=Symbol.for(`yaml.pair`),A=Symbol.for(`yaml.scalar`),j=Symbol.for(`yaml.seq`),M=Symbol.for(`yaml.node.type`),N=e=>!!e&&typeof e==`object`&&e[M]===E,P=e=>!!e&&typeof e==`object`&&e[M]===D,ee=e=>!!e&&typeof e==`object`&&e[M]===O,F=e=>!!e&&typeof e==`object`&&e[M]===k,I=e=>!!e&&typeof e==`object`&&e[M]===A,L=e=>!!e&&typeof e==`object`&&e[M]===j,R=e=>(I(e)||w(e))&&!!e.anchor}));function te(e,t){let n=V(t);P(e)?ne(null,e.contents,n,Object.freeze([e]))===U&&(e.contents=null):ne(null,e,n,Object.freeze([]))}function ne(e,t,n,r){let i=ie(e,t,n,r);if(T(i)||F(i))return ae(e,r,i),ne(e,i,n,r);if(typeof i!=`symbol`){if(w(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=ne(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===H)return H;else i===U&&(t.items.splice(e,1),--e)}}else if(F(t)){r=Object.freeze(r.concat(t));let e=ne(`key`,t.key,n,r);if(e===H)return H;e===U&&(t.key=null);let i=ne(`value`,t.value,n,r);if(i===H)return H;i===U&&(t.value=null)}}return i}async function re(e,t){let n=V(t);P(e)?await B(null,e.contents,n,Object.freeze([e]))===U&&(e.contents=null):await B(null,e,n,Object.freeze([]))}async function B(e,t,n,r){let i=await ie(e,t,n,r);if(T(i)||F(i))return ae(e,r,i),B(e,i,n,r);if(typeof i!=`symbol`){if(w(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await B(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===H)return H;else i===U&&(t.items.splice(e,1),--e)}}else if(F(t)){r=Object.freeze(r.concat(t));let e=await B(`key`,t.key,n,r);if(e===H)return H;e===U&&(t.key=null);let i=await B(`value`,t.value,n,r);if(i===H)return H;i===U&&(t.value=null)}}return i}function V(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 ie(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(ee(t))return n.Map?.(e,t,r);if(L(t))return n.Seq?.(e,t,r);if(F(t))return n.Pair?.(e,t,r);if(I(t))return n.Scalar?.(e,t,r);if(N(t))return n.Alias?.(e,t,r)}function ae(e,t,n){let r=t[t.length-1];if(w(r))r.items[e]=n;else if(F(r))e===`key`?r.key=n:r.value=n;else if(P(r))r.contents=n;else{let e=N(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var H,oe,U,se=n((()=>{z(),H=Symbol(`break visit`),oe=Symbol(`skip children`),U=Symbol(`remove node`),te.BREAK=H,te.SKIP=oe,te.REMOVE=U,re.BREAK=H,re.SKIP=oe,re.REMOVE=U})),ce,le,ue,de=n((()=>{z(),se(),ce={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},le=e=>e.replace(/[!,[\]{}]/g,e=>ce[e]),ue=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);break}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+le(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&&T(e.contents)){let t={};te(e.contents,(e,n)=>{T(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
2
  `)}},ue.defaultYaml={explicit:!1,version:`1.2`},ue.defaultTags={"!!":`tag:yaml.org,2002:`}}));function fe(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 W(e){let t=new Set;return te(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function G(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function pe(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=W(e);let a=G(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(I(t.node)||w(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}}var me=n((()=>{z(),se()}));function K(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=K(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=K(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=K(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=K(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}var q=n((()=>{}));function he(e,t,n){if(Array.isArray(e))return e.map((e,t)=>he(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!R(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 ge=n((()=>{z()})),J,_e=n((()=>{q(),z(),ge(),J=class{constructor(e){Object.defineProperty(this,M,{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(!P(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=he(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?K(i,{"":o},``,o):o}}}));function ve(e,t,n){if(N(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(w(t)){let r=0;for(let i of t.items){let t=ve(e,i,n);t>r&&(r=t)}return r}else if(F(t)){let r=ve(e,t.key,n),i=ve(e,t.value,n);return Math.max(r,i)}return 1}var ye,Y=n((()=>{me(),se(),z(),_e(),ge(),ye=class extends J{constructor(e){super(E),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],te(e,{Node:(e,t)=>{(N(t)||R(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)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(he(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=ve(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(fe(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}}})),be,X,xe=n((()=>{z(),_e(),ge(),be=e=>!e||typeof e!=`function`&&typeof e!=`object`,X=class extends J{constructor(e){super(A),this.value=e}toJSON(e,t){return t?.keep?this.value:he(this.value,e,t)}toString(){return String(this.value)}},X.BLOCK_FOLDED=`BLOCK_FOLDED`,X.BLOCK_LITERAL=`BLOCK_LITERAL`,X.PLAIN=`PLAIN`,X.QUOTE_DOUBLE=`QUOTE_DOUBLE`,X.QUOTE_SINGLE=`QUOTE_SINGLE`}));function Se(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 Ce(e,t,n){if(P(e)&&(e=e.contents),T(e))return e;if(F(e)){let t=n.schema[O].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:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new ye(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=we+t.slice(2));let l=Se(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new X(e);return c&&(c.node=t),t}l=e instanceof Map?o[O]:Symbol.iterator in Object(e)?o[j]:o[O]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new X(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}var we,Te=n((()=>{Y(),z(),xe(),we=`tag:yaml.org,2002:`}));function Ee(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 Ce(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var De,Oe,ke=n((()=>{Te(),z(),_e(),De=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Oe=class extends J{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=>T(t)||F(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(De(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(w(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Ee(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(w(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&&I(i)?i.value:i:w(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!F(t))return!1;let n=t.value;return n==null||e&&I(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 w(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(w(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Ee(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}}));function Ae(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var je,Me,Ne=n((()=>{je=e=>e.replace(/^(?!$)(?: $)?/gm,`#`),Me=(e,t,n)=>e.endsWith(`
3
3
  `)?Ae(n,t):n.includes(`
4
4
  `)?`
@@ -24,7 +24,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
24
24
  `))return We(e,t,n,r);if(Je(a)){if(c===``)return t.forceBlockIndent=!0,We(e,t,n,r);if(s&&c===l)return Ue(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 Ue(a,t)}return s?d:Pe(d,c,Ie,qe(t,!1))}function Ke(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!==X.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=X.QUOTE_DOUBLE);let c=e=>{switch(e){case X.BLOCK_FOLDED:case X.BLOCK_LITERAL:return i||a?Ue(o.value,t):We(o,t,n,r);case X.QUOTE_DOUBLE:return Ve(o.value,t);case X.QUOTE_SINGLE:return He(o.value,t);case X.PLAIN:return Ge(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}var qe,Je,Ye,Xe=n((()=>{xe(),ze(),qe=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Je=e=>/^(%|---|\.\.\.)/m.test(e);try{Ye=RegExp(`(^|(?<!
25
25
  ))
26
26
  +(?!
27
- |$)`,`g`)}catch{Ye=/\n+(?!\n|$)/g}}));function Ze(e,t){let n=Object.assign({blockQuote:!0,commentString:je,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,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 Qe(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(I(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 $e(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(I(e)||w(e))&&e.anchor;a&&fe(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 et(e,t,n,r){if(F(e))return e.toString(t,n,r);if(N(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=T(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Qe(t.doc.schema.tags,a);let o=$e(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):I(a)?Ke(a,t,n,r):a.toString(t,n,r);return o?I(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}var tt=n((()=>{me(),z(),Ne(),Xe()}));function nt({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=T(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(w(e)||!T(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||w(e)||(I(e)?e.type===X.BLOCK_FOLDED||e.type===X.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=et(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Me(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Me(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Me(g,n.indent,l(f))));let _,v,y;T(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&I(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&L(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=et(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
27
+ |$)`,`g`)}catch{Ye=/\n+(?!\n|$)/g}}));function Ze(e,t){let n=Object.assign({blockQuote:!0,commentString:je,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 Qe(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(I(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 $e(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(I(e)||w(e))&&e.anchor;a&&fe(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 et(e,t,n,r){if(F(e))return e.toString(t,n,r);if(N(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=T(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Qe(t.doc.schema.tags,a);let o=$e(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):I(a)?Ke(a,t,n,r):a.toString(t,n,r);return o?I(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}var tt=n((()=>{me(),z(),Ne(),Xe()}));function nt({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=T(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(w(e)||!T(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||w(e)||(I(e)?e.type===X.BLOCK_FOLDED||e.type===X.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=et(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Me(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Me(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Me(g,n.indent,l(f))));let _,v,y;T(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&I(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&L(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=et(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
28
28
  `:``,v){let e=l(v);S+=`\n${Ae(e,n.indent)}`}x===``&&!n.inFlow?S===`
29
29
  `&&y&&(S=`
30
30
 
@@ -32,10 +32,10 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
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=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else (x===``||x[0]===`
33
33
  `)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Me(g,n.indent,l(y)):h&&i&&i(),g}var rt=n((()=>{z(),xe(),tt(),Ne()}));function it(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var at=n((()=>{}));function ot(e,t,n){if(n=e&&N(n)?n.resolve(e.doc):n,L(n))for(let r of n.items)st(e,t,r);else if(Array.isArray(n))for(let r of n)st(e,t,r);else st(e,t,n)}function st(e,t,n){let r=e&&N(n)?n.resolve(e.doc):n;if(!ee(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}var ct,lt,ut,dt=n((()=>{z(),xe(),ct=`<<`,lt={identify:e=>e===ct||typeof e==`symbol`&&e.description===ct,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new X(Symbol(ct)),{addToJSMap:ot}),stringify:()=>ct},ut=(e,t)=>(lt.identify(t)||I(t)&&(!t.type||t.type===X.PLAIN)&&lt.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===lt.tag&&e.default)}));function ft(e,t,{key:n,value:r}){if(T(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(ut(e,n))ot(e,t,r);else{let i=he(n,``,e);if(t instanceof Map)t.set(i,he(r,i,e));else if(t instanceof Set)t.add(i);else{let a=pt(n,i,e),o=he(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function pt(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(T(e)&&n?.doc){let t=Ze(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)+`..."`),it(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)}var mt=n((()=>{at(),dt(),tt(),z(),ge()}));function ht(e,t,n){return new gt(Ce(e,void 0,n),Ce(t,void 0,n))}var gt,_t=n((()=>{Te(),rt(),mt(),z(),gt=class e{constructor(e,t=null){Object.defineProperty(this,M,{value:k}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return T(n)&&(n=n.clone(t)),T(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return ft(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?nt(this,e,t,n):JSON.stringify(this)}}}));function vt(e,t,n){return(t.inFlow??e.flow?bt:yt)(e,t,n)}function yt({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}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(T(i))!d&&i.spaceBefore&&f.push(``),xt(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(F(i)){let e=T(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),xt(n,f,e.commentBefore,d))}d=!1;let s=et(i,u,()=>o=null,()=>d=!0);o&&(s+=Me(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
34
34
  `}}return e?(p+=`
35
- `+Ae(l(e),c),s&&s()):d&&o&&o(),p}function bt({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,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(T(i))i.spaceBefore&&d.push(``),xt(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(F(i)){let e=T(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),xt(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=T(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=et(i,c,()=>a=null);n<e.length-1&&(o+=`,`),a&&(o+=Me(o,r,s(a))),!l&&(d.length>u||o.includes(`
36
- `))&&(l=!0),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
35
+ `+Ae(l(e),c),s&&s()):d&&o&&o(),p}function bt({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,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(T(i))i.spaceBefore&&d.push(``),xt(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(F(i)){let e=T(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),xt(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=T(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=et(i,c,()=>a=null);l||=d.length>u||o.includes(`
36
+ `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Me(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
37
37
  `;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function xt({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=Ae(t(r),e);n.push(i.trimStart())}}var St=n((()=>{z(),tt(),Ne()}));function Ct(e,t){let n=I(t)?t.value:t;for(let r of e)if(F(r)&&(r.key===t||r.key===n||I(r.key)&&r.key.value===n))return r}var wt,Tt=n((()=>{St(),mt(),ke(),z(),_t(),xe(),wt=class extends Oe{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(O,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(ht(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=F(e)?e:!e||typeof e!=`object`||!(`key`in e)?new gt(e,e?.value):new gt(e.key,e.value);let r=Ct(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);I(r.value)&&be(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=Ct(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Ct(this.items,e)?.value;return(!t&&I(n)?n.value:n)??void 0}has(e){return!!Ct(this.items,e)}set(e,t){this.add(new gt(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)ft(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!F(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})),vt(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}}})),Et,Dt=n((()=>{z(),Tt(),Et={collection:`map`,default:!0,nodeClass:wt,tag:`tag:yaml.org,2002:map`,resolve(e,t){return ee(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>wt.from(e,t,n)}}));function Ot(e){let t=I(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var kt,At=n((()=>{Te(),St(),ke(),z(),xe(),ge(),kt=class extends Oe{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(j,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Ot(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=Ot(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&I(r)?r.value:r}has(e){let t=Ot(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Ot(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];I(r)&&be(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(he(e,String(r++),t));return n}toString(e,t,n){return e?vt(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(Ce(a,void 0,n))}}return i}}})),jt,Mt=n((()=>{z(),At(),jt={collection:`seq`,default:!0,nodeClass:kt,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return L(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>kt.from(e,t,n)}})),Nt,Pt=n((()=>{Xe(),Nt={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),Ke(e,t,n,r)}}})),Ft,It=n((()=>{xe(),Ft={identify:e=>e==null,createNode:()=>new X(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new X(null),stringify:({source:e},t)=>typeof e==`string`&&Ft.test.test(e)?e:t.options.nullStr}})),Lt,Rt=n((()=>{xe(),Lt={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new X(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&Lt.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}}}));function zt({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)){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 Bt=n((()=>{})),Vt,Ht,Ut,Wt=n((()=>{xe(),Bt(),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:zt},Ht={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():zt(e)}},Ut={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 X(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:zt}}));function Gt(e,t,n){let{value:r}=e;return Kt(r)&&r>=0?n+r.toString(t):zt(e)}var Kt,qt,Jt,Yt,Xt,Zt=n((()=>{Bt(),Kt=e=>typeof e==`bigint`||Number.isInteger(e),qt=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),Jt={identify:e=>Kt(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>qt(e,2,8,n),stringify:e=>Gt(e,8,`0o`)},Yt={identify:Kt,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>qt(e,0,10,n),stringify:zt},Xt={identify:e=>Kt(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>qt(e,2,16,n),stringify:e=>Gt(e,16,`0x`)}})),Qt,$t=n((()=>{Dt(),It(),Mt(),Pt(),Rt(),Wt(),Zt(),Qt=[Et,jt,Nt,Ft,Lt,Jt,Yt,Xt,Vt,Ht,Ut]}));function en(e){return typeof e==`bigint`||Number.isInteger(e)}var tn,nn,rn,an=n((()=>{xe(),Dt(),Mt(),tn=({value:e})=>JSON.stringify(e),nn=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:tn},{identify:e=>e==null,createNode:()=>new X(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:tn},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:tn},{identify:en,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})=>en(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:tn}],rn=[Et,jt].concat(nn,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),on,sn=n((()=>{xe(),Xe(),on={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}else 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??=X.BLOCK_LITERAL,t!==X.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===X.BLOCK_LITERAL?`
38
- `:` `)}return Ke({comment:e,type:t,value:s},r,i,a)}}}));function cn(e,t){if(L(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!F(r)){if(ee(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new gt(new X(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]=F(r)?r:new gt(r)}}else t(`Expected a sequence for this tag`);return e}function ln(e,t,n){let{replacer:r}=n,i=new kt(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(ht(o,s,n))}return i}var un,dn=n((()=>{z(),_t(),xe(),At(),un={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:cn,createNode:ln}})),fn,pn,mn=n((()=>{z(),ge(),Tt(),At(),dn(),fn=class e extends kt{constructor(){super(),this.add=wt.prototype.add.bind(this),this.delete=wt.prototype.delete.bind(this),this.get=wt.prototype.get.bind(this),this.has=wt.prototype.has.bind(this),this.set=wt.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(F(e)?(r=he(e.key,``,t),i=he(e.value,r,t)):r=he(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=ln(e,t,n),i=new this;return i.items=r.items,i}},fn.tag=`tag:yaml.org,2002:omap`,pn={collection:`seq`,identify:e=>e instanceof Map,nodeClass:fn,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=cn(e,t),r=[];for(let{key:e}of n.items)I(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new fn,n)},createNode:(e,t,n)=>fn.from(e,t,n)}}));function hn({value:e,source:t},n){return t&&(e?gn:_n).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var gn,_n,vn=n((()=>{xe(),gn={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 X(!0),stringify:hn},_n={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 X(!1),stringify:hn}})),yn,bn,xn,Sn=n((()=>{xe(),Bt(),yn={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:zt},bn={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():zt(e)}},xn={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 X(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:zt}}));function Cn(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}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function wn(e,t,n){let{value:r}=e;if(Tn(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return zt(e)}var Tn,En,Dn,On,kn,An=n((()=>{Bt(),Tn=e=>typeof e==`bigint`||Number.isInteger(e),En={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Cn(e,2,2,n),stringify:e=>wn(e,2,`0b`)},Dn={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Cn(e,1,8,n),stringify:e=>wn(e,8,`0`)},On={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Cn(e,0,10,n),stringify:zt},kn={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Cn(e,2,16,n),stringify:e=>wn(e,16,`0x`)}})),jn,Mn,Nn=n((()=>{z(),_t(),Tt(),jn=class e extends wt{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=F(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new gt(e.key,null):new gt(e,null),Ct(this.items,t.key)||this.items.push(t)}get(e,t){let n=Ct(this.items,e);return!t&&F(n)?I(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=Ct(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new gt(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(ht(e,null,n));return i}},jn.tag=`tag:yaml.org,2002:set`,Mn={collection:`map`,identify:e=>e instanceof Set,nodeClass:jn,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>jn.from(e,t,n),resolve(e,t){if(ee(e)){if(e.hasAllNullValues(!0))return Object.assign(new jn,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}}}));function Pn(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 Fn(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return zt(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 In,Ln,Rn,zn=n((()=>{Bt(),In={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})=>Pn(e,n),stringify:Fn},Ln={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=>Pn(e,!1),stringify:Fn},Rn={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(Rn.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=Pn(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$/,``)??``}})),Bn,Vn=n((()=>{Dt(),It(),Mt(),Pt(),sn(),vn(),Sn(),An(),dt(),mn(),dn(),Nn(),zn(),Bn=[Et,jt,Nt,Ft,gn,_n,En,Dn,On,kn,yn,bn,xn,on,lt,pn,un,Mn,In,Ln,Rn]}));function Hn(e,t,n){let r=Un.get(t);if(r&&!e)return n&&!r.includes(lt)?r.concat(lt):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(Un.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(lt)),i.reduce((e,t)=>{let n=typeof t==`string`?Wn[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Wn).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 Un,Wn,Gn,Kn=n((()=>{Dt(),It(),Mt(),Pt(),Rt(),Wt(),Zt(),$t(),an(),sn(),dt(),mn(),dn(),Vn(),Nn(),zn(),Un=new Map([[`core`,Qt],[`failsafe`,[Et,jt,Nt]],[`json`,rn],[`yaml11`,Bn],[`yaml-1.1`,Bn]]),Wn={binary:on,bool:Lt,float:Ut,floatExp:Ht,floatNaN:Vt,floatTime:Ln,int:Yt,intHex:Xt,intOct:Jt,intTime:In,map:Et,merge:lt,null:Ft,omap:pn,pairs:un,seq:jt,set:Mn,timestamp:Rn},Gn={"tag:yaml.org,2002:binary":on,"tag:yaml.org,2002:merge":lt,"tag:yaml.org,2002:omap":pn,"tag:yaml.org,2002:pairs":un,"tag:yaml.org,2002:set":Mn,"tag:yaml.org,2002:timestamp":Rn}})),qn,Jn,Yn=n((()=>{z(),Dt(),Mt(),Pt(),Kn(),qn=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,Jn=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Hn(e,`compat`):e?Hn(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?Gn:{},this.tags=Hn(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,O,{value:Et}),Object.defineProperty(this,A,{value:Nt}),Object.defineProperty(this,j,{value:jt}),this.sortMapEntries=typeof a==`function`?a:a===!0?qn:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}}));function Xn(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=Ze(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(Ae(t,``))}let o=!1,s=null;if(e.contents){if(T(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(Ae(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=et(e.contents,i,()=>s=null,t);s&&(c+=Me(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(et(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=a(e.comment);t.includes(`
38
+ `:` `)}return Ke({comment:e,type:t,value:s},r,i,a)}}}));function cn(e,t){if(L(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!F(r)){if(ee(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new gt(new X(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]=F(r)?r:new gt(r)}}else t(`Expected a sequence for this tag`);return e}function ln(e,t,n){let{replacer:r}=n,i=new kt(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(ht(o,s,n))}return i}var un,dn=n((()=>{z(),_t(),xe(),At(),un={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:cn,createNode:ln}})),fn,pn,mn=n((()=>{z(),ge(),Tt(),At(),dn(),fn=class e extends kt{constructor(){super(),this.add=wt.prototype.add.bind(this),this.delete=wt.prototype.delete.bind(this),this.get=wt.prototype.get.bind(this),this.has=wt.prototype.has.bind(this),this.set=wt.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(F(e)?(r=he(e.key,``,t),i=he(e.value,r,t)):r=he(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=ln(e,t,n),i=new this;return i.items=r.items,i}},fn.tag=`tag:yaml.org,2002:omap`,pn={collection:`seq`,identify:e=>e instanceof Map,nodeClass:fn,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=cn(e,t),r=[];for(let{key:e}of n.items)I(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new fn,n)},createNode:(e,t,n)=>fn.from(e,t,n)}}));function hn({value:e,source:t},n){return t&&(e?gn:_n).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var gn,_n,vn=n((()=>{xe(),gn={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 X(!0),stringify:hn},_n={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 X(!1),stringify:hn}})),yn,bn,xn,Sn=n((()=>{xe(),Bt(),yn={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:zt},bn={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():zt(e)}},xn={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 X(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:zt}}));function Cn(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}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function wn(e,t,n){let{value:r}=e;if(Tn(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return zt(e)}var Tn,En,Dn,On,kn,An=n((()=>{Bt(),Tn=e=>typeof e==`bigint`||Number.isInteger(e),En={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Cn(e,2,2,n),stringify:e=>wn(e,2,`0b`)},Dn={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Cn(e,1,8,n),stringify:e=>wn(e,8,`0`)},On={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Cn(e,0,10,n),stringify:zt},kn={identify:Tn,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Cn(e,2,16,n),stringify:e=>wn(e,16,`0x`)}})),jn,Mn,Nn=n((()=>{z(),_t(),Tt(),jn=class e extends wt{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=F(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new gt(e.key,null):new gt(e,null),Ct(this.items,t.key)||this.items.push(t)}get(e,t){let n=Ct(this.items,e);return!t&&F(n)?I(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=Ct(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new gt(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(ht(e,null,n));return i}},jn.tag=`tag:yaml.org,2002:set`,Mn={collection:`map`,identify:e=>e instanceof Set,nodeClass:jn,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>jn.from(e,t,n),resolve(e,t){if(ee(e)){if(e.hasAllNullValues(!0))return Object.assign(new jn,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}}}));function Pn(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 Fn(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return zt(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 In,Ln,Rn,zn=n((()=>{Bt(),In={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})=>Pn(e,n),stringify:Fn},Ln={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=>Pn(e,!1),stringify:Fn},Rn={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(Rn.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=Pn(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$/,``)??``}})),Bn,Vn=n((()=>{Dt(),It(),Mt(),Pt(),sn(),vn(),Sn(),An(),dt(),mn(),dn(),Nn(),zn(),Bn=[Et,jt,Nt,Ft,gn,_n,En,Dn,On,kn,yn,bn,xn,on,lt,pn,un,Mn,In,Ln,Rn]}));function Hn(e,t,n){let r=Un.get(t);if(r&&!e)return n&&!r.includes(lt)?r.concat(lt):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(Un.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(lt)),i.reduce((e,t)=>{let n=typeof t==`string`?Wn[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Wn).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 Un,Wn,Gn,Kn=n((()=>{Dt(),It(),Mt(),Pt(),Rt(),Wt(),Zt(),$t(),an(),sn(),dt(),mn(),dn(),Vn(),Nn(),zn(),Un=new Map([[`core`,Qt],[`failsafe`,[Et,jt,Nt]],[`json`,rn],[`yaml11`,Bn],[`yaml-1.1`,Bn]]),Wn={binary:on,bool:Lt,float:Ut,floatExp:Ht,floatNaN:Vt,floatTime:Ln,int:Yt,intHex:Xt,intOct:Jt,intTime:In,map:Et,merge:lt,null:Ft,omap:pn,pairs:un,seq:jt,set:Mn,timestamp:Rn},Gn={"tag:yaml.org,2002:binary":on,"tag:yaml.org,2002:merge":lt,"tag:yaml.org,2002:omap":pn,"tag:yaml.org,2002:pairs":un,"tag:yaml.org,2002:set":Mn,"tag:yaml.org,2002:timestamp":Rn}})),qn,Jn,Yn=n((()=>{z(),Dt(),Mt(),Pt(),Kn(),qn=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Jn=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Hn(e,`compat`):e?Hn(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?Gn:{},this.tags=Hn(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,O,{value:Et}),Object.defineProperty(this,A,{value:Nt}),Object.defineProperty(this,j,{value:jt}),this.sortMapEntries=typeof a==`function`?a:a===!0?qn:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}}));function Xn(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=Ze(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(Ae(t,``))}let o=!1,s=null;if(e.contents){if(T(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(Ae(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=et(e.contents,i,()=>s=null,t);s&&(c+=Me(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(et(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=a(e.comment);t.includes(`
39
39
  `)?(n.push(`...`),n.push(Ae(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(Ae(a(t),``)))}return n.join(`
40
40
  `)+`
41
41
  `}var Zn=n((()=>{z(),tt(),Ne()}));function Qn(e){if(w(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var $n,er=n((()=>{Y(),ke(),z(),_t(),ge(),Yn(),Zn(),me(),q(),Te(),de(),$n=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,M,{value:D});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new ue({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[M]:{value:D}});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=T(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){Qn(this.contents)&&this.contents.add(e)}addIn(e,t){Qn(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=W(this);e.anchor=!t||n.has(t)?G(t||`a`,n):t}return new ye(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}=pe(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Ce(e,l,p);return o&&w(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new gt(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return Qn(this.contents)?this.contents.delete(e):!1}deleteIn(e){return De(e)?this.contents==null?!1:(this.contents=null,!0):Qn(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return w(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return De(e)?!t&&I(this.contents)?this.contents.value:this.contents:w(this.contents)?this.contents.getIn(e,t):void 0}has(e){return w(this.contents)?this.contents.has(e):!1}hasIn(e){return De(e)?this.contents!==void 0:w(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Ee(this.schema,[e],t):Qn(this.contents)&&this.contents.set(e,t)}setIn(e,t){De(e)?this.contents=t:this.contents==null?this.contents=Ee(this.schema,Array.from(e),t):Qn(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 ue({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 ue({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 Jn(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=he(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`?K(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 Xn(this,e)}}})),tr,nr,rr,ir,ar=n((()=>{tr=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},nr=class extends tr{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},rr=class extends tr{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},ir=(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)+`…
@@ -76,7 +76,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
76
76
  `);)r===`
77
77
  `&&(n+=`
78
78
  `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}function Lr(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(a)){let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}return String.fromCodePoint(a)}var Rr,zr=n((()=>{xe(),br(),Rr={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
79
- `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `}}));function Br(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?Dr(e,t,r):jr(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[A]:c?Vr(e.schema,i,c,n,r):t.type===`scalar`?Hr(e,i,t,r):e.schema[A];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=I(a)?a:new X(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new X(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Vr(e,t,n,r,i){if(n===`!`)return e[A];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[A])}function Hr({atKey:e,directives:t,schema:n},r,i,a){let o=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];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}var Ur=n((()=>{z(),xe(),Ar(),zr()}));function Wr(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 Gr=n((()=>{}));function Kr(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=Jr(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=Br(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:l=Z(Yr,e,t,n,r),s&&(l.anchor=s.source.substring(1));break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),l=qr(e,t.offset,void 0,null,n,r),u=!1}return s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!I(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 qr(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=Br(e,{type:`scalar`,offset:Wr(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 Jr({options:e},{offset:t,source:n,end:r},i){let a=new ye(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=yr(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}var Yr,Xr=n((()=>{Y(),z(),Er(),Ur(),br(),Gr(),Yr={composeNode:Kr,composeEmptyNode:qr}}));function Zr(e,t,{offset:n,start:r,value:i,end:a},o){let s=new $n(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=or(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?Kr(c,i,l,o):qr(c,l.end,r,null,l,o);let u=s.contents.range[2],d=yr(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}var Qr=n((()=>{er(),Xr(),br(),sr()}));function $r(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 ei(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?`
79
+ `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `}}));function Br(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?Dr(e,t,r):jr(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[A]:c?Vr(e.schema,i,c,n,r):t.type===`scalar`?Hr(e,i,t,r):e.schema[A];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=I(a)?a:new X(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new X(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Vr(e,t,n,r,i){if(n===`!`)return e[A];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[A])}function Hr({atKey:e,directives:t,schema:n},r,i,a){let o=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];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}var Ur=n((()=>{z(),xe(),Ar(),zr()}));function Wr(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 Gr=n((()=>{}));function Kr(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=Jr(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=Br(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=Z(Yr,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??=qr(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&&(!I(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 qr(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=Br(e,{type:`scalar`,offset:Wr(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 Jr({options:e},{offset:t,source:n,end:r},i){let a=new ye(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=yr(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}var Yr,Xr=n((()=>{Y(),z(),Er(),Ur(),br(),Gr(),Yr={composeNode:Kr,composeEmptyNode:qr}}));function Zr(e,t,{offset:n,start:r,value:i,end:a},o){let s=new $n(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=or(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?Kr(c,i,l,o):qr(c,l.end,r,null,l,o);let u=s.contents.range[2],d=yr(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}var Qr=n((()=>{er(),Xr(),br(),sr()}));function $r(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 ei(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?`
80
80
 
81
81
  `:`
82
82
  `)+(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 ti,ni=n((()=>{de(),er(),ar(),z(),Qr(),br(),ti=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=$r(e);r?this.warnings.push(new rr(i,t,n)):this.errors.push(new nr(i,t,n))},this.directives=new ue({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=ei(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(w(i)&&!i.flow&&i.items.length>0){let e=i.items[0];F(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}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:ei(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=$r(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=Zr(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 nr($r(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 nr($r(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=yr(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 nr($r(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 $n(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 ri(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 nr([i,i+1],t,r)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return jr(e,t,r);case`block-scalar`:return Dr({options:{strict:t}},e,r)}}return null}function ii(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:a=-1,type:o=`PLAIN`}=t,s=Ke({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:`
@@ -112,8 +112,8 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
112
112
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
113
113
  `,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)){Array.prototype.push.apply(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(Ii(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Bi(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(Ii(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(Ri(t.key)&&!Ii(t.sep,`newline`)){let e=Bi(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]}):Ii(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&&!Ii(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)){Array.prototype.push.apply(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||Ii(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=Bi(zi(t));Vi(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(`
114
114
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
115
- `,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=Bi(zi(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=Bi(zi(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 Wi(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Pi||null,prettyErrors:t}}function Gi(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(ir(e,n)),t.warnings.forEach(ir(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function Ki(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(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 nr(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(ir(e,n)),o.warnings.forEach(ir(e,n))),o}function qi(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Ki(e,n);if(!i)return null;if(i.warnings.forEach(e=>it(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 Ji(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 P(e)&&!r?e.toString(n):new $n(e,r,n).toString(n)}var Yi=n((()=>{ni(),er(),ar(),at(),z(),Fi(),Ui()})),Xi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),Zi=n((()=>{ni(),er(),Yn(),ar(),Y(),z(),_t(),xe(),Tt(),At(),Ti(),Ni(),Fi(),Ui(),Yi(),se()})),Qi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,default:()=>$i,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),$i,ea=n((()=>{Zi(),Zi(),$i=Xi})),Q=i((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,`__esModule`,{value:!0}),t.numberEnumValues=t.indentationString=t.parseJSON=t.inflateBase64=t.errorMessage=t.repeatedCall=t.repeated=t.mustNotHappen=t.panic=t.assert=t.assertNever=t.nonNull=t.defined=t.checkArray=t.checkStringMap=t.checkString=t.isStringMap=void 0;var a=o(),s=i(S()),c=C(),l=i((ea(),e(Qi)));function u(e,t){if(typeof e!=`object`||Array.isArray(e)||e===null)return!1;if(t!==void 0)for(let n of Object.getOwnPropertyNames(e)){let r=e[n];if(!t(r))return!1}return!0}t.isStringMap=u;function d(e){return typeof e==`string`}t.checkString=d;function f(e,t){return u(e,t)?e:v(`Value must be an object, but is ${e}`)}t.checkStringMap=f;function p(e,t){if(!Array.isArray(e))return v(`Value must be an array, but is ${e}`);if(t!==void 0){for(let n of e)if(!t(n))return v(`Array item does not satisfy constraint: ${n}`)}return e}t.checkArray=p;function m(e){return e===void 0?v(`Defined value expected, but got undefined`):e}t.defined=m;function h(e){return e===null?v(`Non-null value expected, but got null`):e}t.nonNull=h;function g(e){return(0,c.messageError)(`InternalError`,{message:`Unexpected object ${e}`})}t.assertNever=g;function _(e,t=`Assertion failed`){if(!e)return(0,c.messageError)(`InternalError`,{message:t})}t.assert=_;function v(e){return(0,c.messageError)(`InternalError`,{message:e})}t.panic=v;function y(){return v(`This must not happen`)}t.mustNotHappen=y;function b(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}t.repeated=b;function x(e,t){let n=[];for(let r=0;r<e;r++)n.push(t());return n}t.repeatedCall=x;function w(e){return e instanceof Error?e.message:e.toString()}t.errorMessage=w;function T(e){let t=a.Base64.atob(e);return s.inflate(t,{to:`string`})}t.inflateBase64=T;function E(e,t,n=`<unknown>`){try{return e.charCodeAt(0)===65279&&(e=e.slice(1)),l.parse(e)}catch(e){let r;return r=e instanceof SyntaxError?e.message:`Unknown exception ${e}`,(0,c.messageError)(`MiscJSONParseError`,{description:t,address:n,message:r})}}t.parseJSON=E;function D(e){return` `.repeat(e)}t.indentationString=D;function O(e){let t=[];for(let n of Object.keys(e)){let r=e[n];typeof r==`number`&&t.push(r)}return t}t.numberEnumValues=O})),ta=i(((e,n)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(e,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:e.hasOwnProperty(i)?!1:l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){if(typeof e==`string`){n[e.toLowerCase()]=!0;return}f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`)},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})})),na=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.increaseTypeAttributesDistance=e.makeTypeAttributesInferred=e.combineTypeAttributes=e.emptyTypeAttributes=e.TypeAttributeKind=void 0;var t=a(),n=Q();e.TypeAttributeKind=class e{constructor(e){this.name=e}appliesToTypeKind(e){return e!==`any`}combine(e){return(0,n.panic)(`Cannot combine type attribute ${this.name}`)}intersect(e){return this.combine(e)}makeInferred(e){return(0,n.panic)(`Cannot make type attribute ${this.name} inferred`)}increaseDistance(e){return e}addToSchema(e,t,n){}children(e){return new Set}stringify(e){}get inIdentity(){return!1}requiresUniqueIdentity(e){return!1}reconstitute(e,t){return t}makeAttributes(e){let t=[[this,e]];return new Map(t)}tryGetInAttributes(e){return e.get(this)}setInAttributes(e,t){return new Map(e).set(this,t)}modifyInAttributes(e,t){let n=t(this.tryGetInAttributes(e));if(n===void 0){let t=new Map(e);return t.delete(this),t}return this.setInAttributes(e,n)}setDefaultInAttributes(e,t){return this.tryGetInAttributes(e)===void 0?this.modifyInAttributes(e,t):e}removeInAttributes(e){return(0,t.mapFilter)(e,(e,t)=>t!==this)}equals(t){return t instanceof e?this.name===t.name:!1}hashCode(){return(0,t.hashString)(this.name)}},e.emptyTypeAttributes=new Map;function r(e,r,i){let a=e===`union`,o;if(Array.isArray(r))o=r;else{if(i===void 0)return(0,n.panic)(`Must have on array or two attributes`);o=[r,i]}let s=(0,t.mapTranspose)(o);function c(e,t){return(0,n.assert)(e.length>0,`Cannot combine zero type attributes`),e.length===1?e[0]:a?t.combine(e):t.intersect(e)}return(0,t.mapFilterMap)(s,c)}e.combineTypeAttributes=r;function i(e){return(0,t.mapFilterMap)(e,(e,t)=>t.makeInferred(e))}e.makeTypeAttributesInferred=i;function o(e){return(0,t.mapFilterMap)(e,(e,t)=>t.increaseDistance(e))}e.increaseTypeAttributesDistance=o})),ra=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EnumOption=e.StringOption=e.BooleanOption=e.getOptionValues=e.Option=void 0;var t=Q(),n=C(),r=a(),i=class{constructor(e){e.renderer=!0,this.definition=e,(0,t.assert)(e.kind!==void 0,`Renderer option kind must be defined`)}getValue(e){let t=e[this.definition.name];return t===void 0?this.definition.defaultValue:t}get cliDefinitions(){return{actual:[this.definition],display:[this.definition]}}};e.Option=i;function o(e,t){let n={};for(let r of Object.getOwnPropertyNames(e))n[r]=e[r].getValue(t);return n}e.getOptionValues=o,e.BooleanOption=class extends i{constructor(e,t,n,r=`primary`){super({name:e,kind:r,type:Boolean,description:t,defaultValue:n})}get cliDefinitions(){let e=Object.assign({},this.definition,{name:`no-${this.definition.name}`,defaultValue:!this.definition.defaultValue});return{display:[Object.assign({},this.definition,{name:`[no-]${this.definition.name}`,description:`${this.definition.description} (${this.definition.defaultValue?`on`:`off`} by default)`})],actual:[this.definition,e]}}getValue(e){let t=e[this.definition.name];t===void 0&&(t=this.definition.defaultValue);let n=e[`no-${this.definition.name}`];return n===void 0&&(n=!this.definition.defaultValue),t===`true`?t=!0:t===`false`&&(t=!1),this.definition.defaultValue?t&&!n:t||!n}},e.StringOption=class extends i{constructor(e,t,n,r,i=`primary`){let a={name:e,kind:i,type:String,description:t,typeLabel:n,defaultValue:r};super(a)}},e.EnumOption=class extends i{constructor(e,t,n,r=void 0,i=`primary`){r===void 0&&(r=n[0][0]);let a={name:e,kind:i,type:String,description:t,typeLabel:n.map(([e,t])=>e).join(`|`),legalValues:n.map(([e,t])=>e),defaultValue:r};super(a),this._values={};for(let[e,t]of n)this._values[e]=t}getValue(e){let t=e[this.definition.name];return t===void 0&&(t=this.definition.defaultValue),(0,r.hasOwnProperty)(this._values,t)?this._values[t]:(0,n.messageError)(`RendererUnknownOptionValue`,{value:t,name:this.definition.name})}}})),ia=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.acronymStyle=e.acronymOption=e.AcronymStyleOptions=e.acronyms=void 0;var t=ra(),n=ua();e.acronyms=`aaa.aabb.aac.aal.aalc.aarp.abac.abcl.abi.abm.abr.ac.acd.ack.acl.acm.acme.acp.acpi.acr.adb.adc.adccp.ado.adsl.adt.ae.aes.af.afp.agp.ai.aix.alac.algol.alsa.alu.amd.amoled.amqp.amr.ann.ansi.aop.apci.api.apic.apipa.apl.apr.arin.aros.arp.arpa.arpanet.ascii.aset.asg.asic.asimo.aslr.asm.asmp.asp.asr.assp.ast.ata.atag.atapi.atm.av.avc.avi.awfl.awk.awt.bal.bam.bbp.bbs.bcd.bcnf.beep.ber.bfd.bfs.bft.bgp.bi.binac.bios.bjt.bmp.bnc.boinc.bom.bootp.bpdu.bpel.bpl.bpm.brm.brms.brr.brs.bsa.bsb.bsd.bss.bt.bw.byod.ca.cad.cae.cai.caid.captcha.caq.cd.cde.cdfs.cdma.cdn.cdp.cdsa.cert.ces.cf.cfd.cfg.cg.cga.cgi.cgt.chs.cidr.cifs.cim.cio.cir.cisc.cjk.cjkv.cli.clr.cm.cmdb.cmmi.cmo.cmos.cms.cn.cnc.cng.cnr.cobol.com.corba.cots.cpa.cpan.cpri.cps.cpu.cr.cran.crc.crlf.crm.crs.crt.crud.cs.cse.csi.csm.csp.csrf.css.csv.ct.ctan.ctcp.ctfe.cti.ctl.ctm.cts.ctss.cua.cvs.dac.dal.dao.dap.darpa.dat.db.dba.dbcs.dbms.dcc.dcca.dccp.dcl.dcmi.dcom.dcs.dd.dde.ddi.ddl.ddr.dec.des.dfa.dfd.dfs.dgd.dhcp.dhtml.dif.dimm.din.dip.dism.divx.dkim.dl.dll.dlna.dlp.dma.dmca.dmi.dml.dmr.dmz.dn.dnd.dns.doa.docsis.dom.dos.dp.dpc.dpi.dpmi.dpms.dr.dram.dri.drm.dsa.dsdl.dsdm.dsl.dslam.dsn.dsp.dsssl.dtd.dte.dtp.dtr.dvd.dvi.dvr.dw.eai.eap.eas.ebcdic.ebml.ecc.ecma.ecn.ecos.ecrs.eda.edi.edo.edsac.edvac.eeprom.eff.efi.efm.efs.ega.egp.eide.eigrp.eisa.elf.emacs.ems.eniac.eod.eof.eol.eom.eos.eprom.erd.erm.erp.esb.escon.esd.esr.etl.etw.euc.eula.ewmh.ext.fap.faq.fasm.fbdimm.fcb.fcs.fdc.fdd.fddi.fdm.fdma.fds.fec.femb.fet.fhs.ficon.fifo.fips.fl.flac.flops.fmc.fmo.foldoc.fosdem.fosi.foss.fp.fpga.fps.fpu.fqdn.fru.fs.fsb.fsf.fsm.ftp.ftta.fttc.ftth.fttp.fud.fvek.fws.fxp.fyi.gb.gcc.gcj.gcr.gdb.gdi.geran.gfdl.gif.gigo.gimps.gis.gml.gnu.goms.gpasm.gpfs.gpg.gpgpu.gpib.gpl.gprs.gpt.gpu.gsm.gui.guid.gwt.gyr.hal.hasp.hba.hci.hcl.hd.hdd.hdl.hdmi.hf.hfs.hhd.hid.hig.hird.hlasm.hls.hma.hp.hpc.hpfs.hsdpa.hsm.ht.htc.htm.html.http.https.htx.hurd.hvd.iana.ibm.ic.icann.ich.icmp.icp.ics.ict.id.ide.idf.idl.ids.iec.ieee.ietf.ifl.igmp.igrp.ihv.iiop.iis.ike.il.im.imap.ime.infosec.ip.ipam.ipc.ipl.ipmi.ipo.ipp.ips.iptv.ipx.ir.irc.iri.irp.irq.isa.isam.isatap.isc.isdn.iso.isp.ispf.isr.isv.itil.itl.itu.ivcr.ivrs.jaxb.jaxp.jbod.jce.jcl.jcp.jdbc.jdk.jds.jee.jes.jfc.jfet.jfs.jini.jit.jme.jms.jmx.jndi.jni.jnz.jpeg.jre.js.jse.json.jsp.jtag.jvm.kb.kde.km.krl.kvm.lacp.lan.lb.lba.lcd.lcos.lcr.ldap.le.led.lf.lfs.lga.lgpl.lib.lif.lifo.lilo.lisp.lkml.lm.loc.lpc.lpi.lpt.lru.lsb.lsi.lte.ltl.ltr.lun.lv.lvd.lvm.lzw.mac.manet.mapi.mb.mbcs.mbd.mbr.mca.mcad.mcas.mcdba.mcdst.mcitp.mcm.mcp.mcpc.mcpd.mcsa.mcsd.mcse.mct.mcts.mda.mdf.mdi.mf.mfc.mfm.mgcp.mib.micr.midi.mimd.mime.mimo.minix.mips.mis.misd.mit.mmc.mmds.mmf.mmi.mmio.mmorpg.mmu.mmx.mng.mom.mos.mosfet.motd.mous.mov.mpaa.mpeg.mpl.mpls.mpu.ms.msa.msb.msdn.msi.msn.mt.mta.mtbf.mtu.mua.mvc.mvp.mvs.mwc.mx.mxf.nack.nak.nas.nasm.ncp.ncq.ncsa.ndis.ndps.nds.nep.nfa.nfc.nfs.ngl.ngscb.ni.nic.nim.nio.nist.nlp.nls.nmi.nntp.noc.nop.nos.np.npl.nptl.npu.ns.nsa.nsi.nspr.nss.nt.ntfs.ntlm.ntp.numa.nurbs.nvr.nvram.oat.obsai.odbc.oem.oes.ofdm.oftc.oid.olap.ole.oled.olpc.oltp.omf.omg.omr.oo.ooe.oom.oop.ootb.opml.orb.orm.os.oscon.osdn.osi.ospf.oss.ostg.oui.pap.parc.pata.pbs.pc.pcb.pci.pcl.pcm.pcmcia.pcre.pd.pda.pdf.pdh.pdp.pe.perl.pfa.pg.pga.pgo.pgp.php.pid.pim.pio.pkcs.pki.plc.pld.plt.pmm.png.pnrp.poid.pojo.posix.ppc.ppi.ppp.pptp.pr.ps.psa.psm.psu.psvi.pv.pvg.pvr.pxe.pxi.qa.qdr.qfp.qotd.qsop.qtam.racf.rad.raid.raii.rait.ram.rarp.ras.rc.rcs.rd.rdbms.rdc.rdf.rdm.rdos.rdp.rds.refal.rest.rf.rfc.rfi.rfid.rgb.rgba.rhel.rhl.ria.riaa.rip.rir.risc.rje.rle.rll.rmi.rms.rom.romb.rpc.rpg.rpm.rras.rsa.rsi.rss.rtai.rtc.rte.rtems.rtl.rtos.rtp.rts.rtsp.rtti.rwd.san.sas.sata.sax.sbod.sbu.scada.scid.scm.scp.scpc.scpi.scsa.scsi.sctp.sd.sddl.sdh.sdi.sdio.sdk.sdl.sdn.sdp.sdr.sdram.sdsl.se.sec.sei.seo.sftp.sgi.sgml.sgr.sha.shdsl.sigcat.siggraph.simd.simm.sip.sisd.siso.sles.sli.slm.sloc.sma.smb.smbios.sme.smf.smil.smp.smps.sms.smt.smtp.sna.snmp.sntp.soa.soe.soho.soi.sopa.sp.spa.sparc.spf.spi.spm.spmd.sql.sram.ssa.ssd.ssdp.sse.ssh.ssi.ssid.ssl.ssp.ssse.sssp.sstp.sus.suse.svc.svd.svg.svga.swf.swt.tao.tapi.tasm.tb.tcp.tcu.tdma.tft.tftp.ti.tla.tld.tls.tlv.tnc.tpf.tpm.troff.tron.trsdos.tso.tsp.tsr.tta.ttf.ttl.tts.tty.tucows.twain.uaag.uac.uart.uat.ucs.uddi.udma.udp.uefi.uhf.ui.ul.ula.uma.umb.uml.umpc.umts.unc.univac.ups.uri.url.usb.usr.utc.utf.utp.utran.uucp.uuid.uun.uvc.uwp.ux.vax.vb.vba.vbs.vcpi.vdm.vdsl.vesa.vfat.vfs.vg.vga.vhf.vlan.vlb.vlf.vliw.vlsi.vlsm.vm.vmm.vnc.vod.vpn.vpu.vr.vram.vrml.vsam.vsat.vt.vtam.vtl.wafs.wai.wais.wan.wap.wasm.wbem.wcag.wcf.wdm.wep.wfi.wins.wlan.wma.wmi.wmv.wns.wol.wor.wora.wpa.wpad.wpan.wpf.wsdl.wsfl.wusb.wwan.wwdc.wwid.wwn.www.wysiwyg.wzc.xag.xaml.xcbl.xdm.xdmcp.xhtml.xilp.xml.xmms.xmpp.xms.xns.xp.xpcom.xpi.xpidl.xps.xsd.xsl.xslt.xss.xtf.xul.xvga.yaaf.yacc.yaml.zcav.zcs.zif.zifs.zisc.zma.zoi.zope.zpl`.split(`.`);var r;(function(e){e.Pascal=`pascal`,e.Camel=`camel`,e.Original=`original`,e.Lower=`lowerCase`})(r=e.AcronymStyleOptions||={}),e.acronymOption=function(e){return new t.EnumOption(`acronym-style`,`Acronym naming style`,[[r.Original,r.Original],[r.Pascal,r.Pascal],[r.Camel,r.Camel],[r.Lower,r.Lower]],e,`secondary`)};function i(e){return{[r.Pascal]:n.allUpperWordStyle,[r.Camel]:n.firstUpperWordStyle,[r.Original]:n.originalWord,[r.Lower]:n.allLowerWordStyle}[e]}e.acronymStyle=i})),aa=i((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),oa=i(((e,t)=>{var n=0,r=-3;function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var o=new i,s=new i,c=new Uint8Array(30),l=new Uint16Array(30),u=new Uint8Array(30),d=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=new i,m=new Uint8Array(320);function h(e,t,n,r){var i,a;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(a=r,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}function g(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}var _=new Uint16Array(16);function v(e,t,n,r){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)_[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[_[t[n+i]]++]=i)}function y(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function b(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,a=e.tag;do r=2*r+(a&1),a>>>=1,++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag=a,e.bitcount-=i,t.trans[n+r]}function S(e,t,n){var r=b(e,5,257),i=b(e,5,1),a=b(e,4,4),o,s,c;for(o=0;o<19;++o)m[o]=0;for(o=0;o<a;++o){var l=b(e,3,0);m[f[o]]=l}for(v(p,m,0,19),s=0;s<r+i;){var u=x(e,p);switch(u){case 16:var d=m[s-1];for(c=b(e,2,3);c;--c)m[s++]=d;break;case 17:for(c=b(e,3,3);c;--c)m[s++]=0;break;case 18:for(c=b(e,7,11);c;--c)m[s++]=0;break;default:m[s++]=u;break}}v(t,m,0,r),v(n,m,r,i)}function C(e,t,r){for(;;){var i=x(e,t);if(i===256)return n;if(i<256)e.dest[e.destLen++]=i;else{var a,o,s,f;for(i-=257,a=b(e,c[i],l[i]),o=x(e,r),s=e.destLen-b(e,u[o],d[o]),f=s;f<s+a;++f)e.dest[e.destLen++]=e.dest[f]}}}function w(e){for(var t,i,a;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],i=e.source[e.sourceIndex+3],i=256*i+e.source[e.sourceIndex+2],t!==(~i&65535))return r;for(e.sourceIndex+=4,a=t;a;--a)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,n}function T(e,t){var i=new a(e,t),c,l,u;do{switch(c=y(i),l=b(i,2,0),l){case 0:u=w(i);break;case 1:u=C(i,o,s);break;case 2:S(i,i.ltree,i.dtree),u=C(i,i.ltree,i.dtree);break;default:u=r}if(u!==n)throw Error(`Data error`)}while(!c);return i.destLen<i.dest.length?typeof i.dest.slice==`function`?i.dest.slice(0,i.destLen):i.dest.subarray(0,i.destLen):i.dest}g(o,s),h(c,l,4,3),h(u,d,2,1),c[28]=0,l[28]=258,t.exports=T})),sa=i(((e,t)=>{var n=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,r=(e,t,n)=>{let r=e[t];e[t]=e[n],e[n]=r},i=e=>{let t=e.length;for(let n=0;n<t;n+=4)r(e,n,n+3),r(e,n+1,n+2)};t.exports={swap32LE:e=>{n&&i(e)}}})),ca=i(((e,t)=>{var n=oa(),{swap32LE:r}=sa(),i=11,a=5,o=i-a,s=65536>>i,c=(1<<o)-1,l=2,u=(1<<a)-1,d=65536>>a,f=d+(1024>>a)+32,p=1<<l;t.exports=class{constructor(e){let t=typeof e.readUInt32BE==`function`&&typeof e.slice==`function`;if(t||e instanceof Uint8Array){let i;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),i=e.readUInt32LE(8),e=e.slice(12);else{let t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),i=t.getUint32(8,!0),e=e.subarray(12)}e=n(e,new Uint8Array(i)),e=n(e,new Uint8Array(i)),r(e),this.data=new Uint32Array(e.buffer)}else ({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>a]<<l)+(e&u),this.data[t]):e<=65535?(t=(this.data[d+(e-55296>>a)]<<l)+(e&u),this.data[t]):e<this.highStart?(t=this.data[f-s+(e>>i)],t=this.data[t+(e>>a&c)],t=(t<<l)+(e&u),this.data[t]):this.data[this.data.length-p]}}})),la=i(((e,t)=>{var n=aa(),r=ca();function i(e){return e&&e.__esModule?e.default:e}function a(e){Object.defineProperty(e,`__esModule`,{value:!0,configurable:!0})}function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(t.exports),o(t.exports,`getCategory`,()=>T),o(t.exports,`getCombiningClass`,()=>E),o(t.exports,`getScript`,()=>D),o(t.exports,`getEastAsianWidth`,()=>O),o(t.exports,`getNumericValue`,()=>k),o(t.exports,`isAlphabetic`,()=>A),o(t.exports,`isDigit`,()=>j),o(t.exports,`isPunctuation`,()=>M),o(t.exports,`isLowerCase`,()=>N),o(t.exports,`isUpperCase`,()=>P),o(t.exports,`isTitleCase`,()=>ee),o(t.exports,`isWhiteSpace`,()=>F),o(t.exports,`isBaseForm`,()=>I),o(t.exports,`isMark`,()=>L),o(t.exports,`default`,()=>R);var s={};s=JSON.parse(`{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}`);var c=new(i(r))(i(n).toByteArray(`AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4Bleru+6Vfc/MBjgXVx7who94nPn7MPFrnwQP7g0k0Dq0h2GSKO6fTZ8nLodN1SiOUj/5EL/Xo1DBvRm0wmrh3x6phcJ20/9CuMr5h8WPqXMSasLoLHoufTmE7mzYrs6B0dY7KjuCogKqsvxnxAwXWvd9Puc9PnE8DOHT2INHxRlIyVHrqZahtfV2E/A2PDdtA3ewlRHMtFIBKO/T4IozWTQZ+mb+gdKuk/ZHrqloucKdsOSJmlWTSntWjcxVMjUmroXLM10I6TwDLnBq4LP69TxgVeyGsd8yHvhF8ydPlrNRSNs9EP7WmeuSE7Lu10JbOuQcJw/63sDp68wB9iwP5AO+mBpV0R5VDDeyQUFCel1G+4KHBgEVFS0YK+m2sXLWLuGTlkVAd97WwKKdacjWElRCuDRauf33l/yVcDF6sVPKeTes99FC1NpNWcpieGSV/IbO8PCTy5pbUR1U8lxzf4T+y6fZMxOz3LshkQLeeDSd0WmUrQgajmbktrxsb2AZ0ACw2Vgni+gV/m+KvCRWLg08Clx7uhql+v9XySGcjjOHlsp8vBw/e8HS7dtiqF6T/XcSXuaMW66GF1g4q9YyBadHqy3Y5jin1c7yZos6BBr6dsomSHxiUHanYtcYQwnMMZhRhOnaYJeyJzaRuukyCUh48+e/BUvk/aEfDp8ag+jD64BHxNnQ5v/E7WRk7eLjGV13I3oqy45YNONi/1op1oDr7rPjkhPsTXgUpQtGDPlIs55KhQaic9kSGs/UrZ2QKQOflB8MTEQxRF9pullToWO7Eplan6mcMRFnUu2441yxi23x+KqKlr7RWWsi9ZXMWlr8vfP3llk1m2PRj0yudccxBuoa7VfIgRmnFPGX6Pm1WIfMm/Rm4n/xTn8IGqA0GWuqgu48pEUO0U9nN+ZdIvFpPb7VDPphIfRZxznlHeVFebkd9l+raXy9BpTMcIUIvBfgHEb6ndGo8VUkxpief14KjzFOcaANfgvFpvyY8lE8lE4raHizLpluPzMks1hx/e1Hok5yV0p7qQH7GaYeMzzZTFvRpv6k6iaJ4yNqzBvN8J7B430h2wFm1IBPcqbou33G7/NWPgopl4Mllla6e24L3TOTVNkza2zv3QKuDWTeDpClCEYgTQ+5vEBSQZs/rMF50+sm4jofTgWLqgX1x3TkrDEVaRqfY/xZizFZ3Y8/DFEFD31VSfBQ5raEB6nHnZh6ddehtclQJ8fBrldyIh99LNnV32HzKEej04hk6SYjdauCa4aYW0ru/QxvQRGzLKOAQszf3ixJypTW3WWL6BLSF2EMCMIw7OUvWBC6A/gDc2D1jvBapMCc7ztx6jYczwTKsRLL6dMNXb83HS8kdD0pTMMj161zbVHkU0mhSHo9SlBDDXdN6hDvRGizmohtIyR3ot8tF5iUG4GLNcXeGvBudSFrHu+bVZb9jirNVG+rQPI51A7Hu8/b0UeaIaZ4UgDO68PkYx3PE2HWpKapJ764Kxt5TFYpywMy4DLQqVRy11I7SOLhxUFmqiEK52NaijWArIfCg6qG8q5eSiwRCJb1R7GDJG74TrYgx/lVq7w9++Kh929xSJEaoSse5fUOQg9nMAnIZv+7fwVRcNv3gOHI46Vb5jYUC66PYHO6lS+TOmvEQjuYmx4RkffYGxqZIp/DPWNHAixbRBc+XKE3JEOgs4jIwu/dSAwhydruOGF39co91aTs85JJ3Z/LpXoF43hUwJsb/M1Chzdn8HX8vLXnqWUKvRhNLpfAF4PTFqva1sBQG0J+59HyYfmQ3oa4/sxZdapVLlo/fooxSXi/dOEQWIWq8E0FkttEyTFXR2aNMPINMIzZwCNEheYTVltsdaLkMyKoEUluPNAYCM2IG3br0DLy0fVNWKHtbSKbBjfiw7Lu06gQFalC7RC9BwRMSpLYDUo9pDtDfzwUiPJKLJ2LGcSphWBadOI/iJjNqUHV7ucG8yC6+iNM9QYElqBR7ECFXrcTgWQ3eG/tCWacT9bxIkfmxPmi3vOd36KxihAJA73vWNJ+Y9oapXNscVSVqS5g15xOWND/WuUCcA9YAAg6WFbjHamrblZ5c0L6Zx1X58ZittGcfDKU697QRSqW/g+RofNRyvrWMrBn44cPvkRe2HdTu/Cq01C5/riWPHZyXPKHuSDDdW8c1XPgd6ogvLh20qEIu8c19sqr4ufyHrwh37ZN5MkvY1dsGmEz9pUBTxWrvvhNyODyX2Q1k/fbX/T/vbHNcBrmjgDtvBdtZrVtiIg5iXQuzO/DEMvRX8Mi1zymSlt92BGILeKItjoShJXE/H7xwnf0Iewb8BFieJ9MflEBCQYEDm8eZniiEPfGoaYiiEdhQxHQNr2AuRdmbL9mcl18Kumh+HEZLp6z+j35ML9zTbUwahUZCyQQOgQrGfdfQtaR/OYJ/9dYXb2TWZFMijfCA8Nov4sa5FFDUe1T68h4q08WDE7JbbDiej4utRMR9ontevxlXv6LuJTXt1YEv8bDzEt683PuSsIN0afvu0rcBu9AbXZbkOG3K3AhtqQ28N23lXm7S3Yn6KXmAhBhz+GeorJJ4XxO/b3vZk2LXp42+QvsVxGSNVpfSctIFMTR1bD9t70i6sfNF3WKz/uKDEDCpzzztwhL45lsw89H2IpWN10sXHRlhDse9KCdpP5qNNpU84cTY+aiqswqR8XZ9ea0KbVRwRuOGQU3csAtV2fSbnq47U6es6rKlWLWhg3s/B9C9g+oTyp6RtIldR51OOkP5/6nSy6itUVPcMNOp4M/hDdKOz3uK6srbdxOrc2cJgr1Sg02oBxxSky6V7JaG+ziNwlfqnjnvh2/uq1lKfbp+qpwq/D/5OI5gkFl5CejKGxfc2YVJfGqc4E0x5e9PHK2ukbHNI7/RZV6LNe65apbTGjoCaQls0txPPbmQbCQn+/upCoXRZy9yzorWJvZ0KWcbXlBxU/d5I4ERUTxMuVWhSMmF677LNN7NnLwsmKawXkCgbrpcluOl0WChR1qhtSrxGXHu251dEItYhYX3snvn1gS2uXuzdTxCJjZtjsip0iT2sDC0qMS7Bk9su2NyXjFK5/f5ZoWwofg3DtTyjaFqspnOOTSh8xK/CKUFS57guVEkw9xoQuRCwwEO9Lu9z2vYxSa9NFV8DvSxv2C4WYLYF8Nrc4DzWkzNsk81JJOlZ/LYJrGCoj4MmZpnf3AXmzxT4rtl9jsqljEyedz468SGKdBiQzyz/qWKEhFg45ZczlZZ3KGL3l6sn+3TTa3zMVMhPa1obGp/z+fvY0QXTrJTf1XAT3EtQdUfYYlmWZyvPZ/6rWwU7UOQei7pVE0osgN94Iy+T1+omE6z4Rh2O20FjgBeK2y1mcoFiMDOJvuZPn5Moy9fmFH3wyfKvn4+TwfLvt/lHTTVnvrtoUWRBiQXhiNM8nE6ZoWeux/Z0b2unRcdUzdDpmL7CAgd1ToRXwgmHTZOgiGtVT+xr1QH9ObebRTT4NzL+XSpLuuWp62GqQvJVTPoZOeJCb6gIwd9XHMftQ+Kc08IKKdKQANSJ1a2gve3JdRhO0+tNiYzWAZfd7isoeBu67W7xuK8WX7nhJURld98Inb0t/dWOSau/kDvV4DJo/cImw9AO2Gvq0F2n0M7yIZKL8amMbjYld+qFls7hq8Acvq97K2PrCaomuUiesu7qNanGupEl6J/iem8lyr/NMnsTr6o41PO0yhQh3hPFN0wJP7S830je9iTBLzUNgYH+gUZpROo3rN2qgCI+6GewpX8w8CH+ro6QrWiStqmcMzVa3vEel+3/dDxMp0rDv1Q6wTMS3K64zTT6RWzK1y643im25Ja7X2ePCV2mTswd/4jshZPo4bLnerqIosq/hy2bKUAmVn9n4oun1+a0DIZ56UhVwmZHdUNpLa8gmPvxS1eNvCF1T0wo1wKPdCJi0qOrWz7oYRTzgTtkzEzZn308XSLwUog4OWGKJzCn/3FfF9iA32dZHSv30pRCM3KBY9WZoRhtdK/ChHk6DEQBsfV6tN2o1Cn0mLtPBfnkS+qy1L2xfFe9TQPtDE1Be44RTl82E9hPT2rS2+93LFbzhQQO3C/hD2jRFH3BWWbasAfuMhRJFcTri73eE835y016s22DjoFJ862WvLj69fu2TgSF3RHia9D5DSitlQAXYCnbdqjPkR287Lh6dCHDapos+eFDvcZPP2edPmTFxznJE/EBLoQQ0Qmn9EkZOyJmHxMbvKYb8o21ZHmv5YLqgsEPk9gWZwYQY9wLqGXuax/8QlV5qDaPbq9pLPT1yp+zOWKmraEy1OUJI7zdEcEmvBpbdwLrDCgEb2xX8S/nxZgjK4bRi+pbOmbh8bEeoPvU/L9ndx9kntlDALbdAvp0O8ZC3zSUnFg4cePsw7jxewWvL7HRSBLUn6J7vTH9uld5N76JFPgBCdXGF221oEJk++XfRwXplLSyrVO7HFWBEs99nTazKveW3HpbD4dH/YmdAl+lwbSt8BQWyTG7jAsACI7bPPUU9hI9XUHWqQOuezHzUjnx5Qqs6T1qNHfTTHleDtmqK7flA9a0gz2nycIpz1FHBuWxKNtUeTdqP29Fb3tv+tl5JyBqXoR+vCsdzZwZUhf6Lu8bvkB9yQP4x7GGegB0ym0Lpl03Q7e+C0cDsm9GSDepCDji7nUslLyYyluPfvLyKaDSX4xpR+nVYQjQQn5F8KbY1gbIVLiK1J3mW90zTyR1bqApX2BlWh7KG8LAY9/S9nWC0XXh9pZZo6xuir12T43rkaGfQssbQyIslA7uJnSHOV22NhlNtUo0czxPAsXhh8tIQYaTM4l/yAlZlydTcXhlG22Gs/n3BxKBd/3ZjYwg3NaUurVXhNB+afVnFfNr9TbC9ksNdvwpNfeHanyJ8M6GrIVfLlYAPv0ILe4dn0Z+BJSbJkN7eZY/c6+6ttDYcIDeUKIDXqUSE42Xdh5nRbuaObozjht0HJ5H1e+em+NJi/+8kQlyjCbJpPckwThZeIF9/u7lrVIKNeJLCN/TpPAeXxvd31/CUDWHK9MuP1V1TJgngzi4V0qzS3SW3Qy5UiGHqg02wQa5tsEl9s/X9nNMosgLlUgZSfCBj1DiypLfhr9/r0nR0XY2tmhDOcUS4E7cqa4EJBhzqvpbZa35Q5Iz5EqmhYiOGDAYk606Tv74+KGfPjKVuP15rIzgW0I7/niOu9el/sn2bRye0gV+GrePDRDMHjwO1lEdeXH8N+UTO3IoN18kpI3tPxz+fY+n2MGMSGFHAx/83tKeJOl+2i+f1O9v6FfEDBbqrw+lpM8Anav7zHNr7hE78nXUtPNodMbCnITWA7Ma/IHlZ50F9hWge/wzOvSbtqFVFtkS8Of2nssjZwbSFdU+VO8z6tCEc9UA9ACxT5zIUeSrkBB/v1krOpm7bVMrGxEKfI6LcnpB4D8bvn2hDKGqKrJaVAJuDaBEY3F7eXyqnFWlOoFV/8ZLspZiZd7orXLhd4mhHQgbuKbHjJWUzrnm0Dxw/LJLzXCkh7slMxKo8uxZIWZfdKHlfI7uj3LP6ARAuWdF7ZmZ7daOKqKGbz5LxOggTgS39oEioYmrqkCeUDvbxkBYKeHhcLmMN8dMF01ZMb32IpL/cH8R7VHQSI5I0YfL14g9d7P/6cjB1JXXxbozEDbsrPdmL8ph7QW10jio+v7YsqHKQ6xrBbOVtxU0/nFfzUGZwIBLwyUvg49ii+54nv9FyECBpURnQK4Ox6N7lw5fsjdd5l/2SwBcAHMJoyjO1Pifye2dagaOwCVMqdJWAo77pvBe0zdJcTWu5fdzPNfV2p1pc7/JKQ8zhKkwsOELUDhXygPJ5oR8Vpk2lsCen3D3QOQp2zdrSZHjVBstDF/wWO98rrkQ6/7zt/Drip7OHIug1lomNdmRaHRrjmqeodn22sesQQPgzimPOMqC60a5+i/UYh51uZm+ijWkkaI2xjrBO2558DZNZMiuDQlaVAvBy2wLn/bR3FrNzfnO/9oDztYqxZrr7JMIhqmrochbqmQnKowxW29bpqTaJu7kW1VotC72QkYX8OoDDdMDwV1kJRk3mufgJBzf+iwFRJ7XWQwO5ujVglgFgHtycWiMLx5N+6XU+TulLabWjOzoao03fniUW0xvIJNPbk7CQlFZd/RCOPvgQbLjh5ITE8NVJeKt3HGr6JTnFdIzcVOlEtwqbIIX0IM7saC+4N5047MTJ9+Wn11EhyEPIlwsHE5utCeXRjQzlrR+R1Cf/qDzcNbqLXdk3J7gQ39VUrrEkS/VMWjjg+t2oYrqB0tUZClcUF6+LBC3EQ7KnGIwm/qjZX4GKPtjTX1zQKV6nPAb2t/Rza5IqKRf8i2DFEhV/YSifX0YwsiF6TQnp48Gr65TFq0zUe6LGjiY7fq0LSGKL1VnC6ESI2yxvt3XqBx53B3gSlGFeJcPbUbonW1E9E9m4NfuwPh+t5QjRxX34lvBPVxwQd7aeTd+r9dw5CiP1pt8wMZoMdni7GapYdo6KPgeQKcmlFfq4UYhvV0IBgeiR3RnTMBaqDqpZrTRyLdsp4l0IXZTdErfH0sN3dqBG5vRIx3VgCYcHmmkqJ8Hyu3s9K9uBD1d8cZUEx3qYcF5vsqeRpF1GOg8emeWM2OmBlWPdZ6qAXwm3nENFyh+kvXk132PfWAlN0kb7yh4fz2T7VWUY/hEXX5DvxGABC03XRpyOG8t/u3Gh5tZdpsSV9AWaxJN7zwhVglgII1gV28tUViyqn4UMdIh5t+Ea2zo7PO48oba0TwQbiSZOH4YhD578kPF3reuaP7LujPMsjHmaDuId9XEaZBCJhbXJbRg5VCk3KJpryH/+8S3wdhR47pdFcmpZG2p0Bpjp/VbvalgIZMllYX5L31aMPdt1J7r/7wbixt0Mnz2ZvNGTARHPVD+2O1D8SGpWXlVnP2ekgon55YiinADDynyaXtZDXueVqbuTi8z8cHHK325pgqM+mWZwzHeEreMvhZopAScXM14SJHpGwZyRljMlDvcMm9FZ/1e9+r/puOnpXOtc9Iu2fmgBfEP9cGW1Fzb1rGlfJ08pACtq1ZW18bf2cevebzVeHbaA50G9qoUp39JWdPHbYkPCRXjt4gzlq3Cxge28Mky8MoS/+On72kc+ZI2xBtgJytpAQHQ1zrEddMIVyR5urX6yBNu8v5lKC8eLdGKTJtbgIZ3ZyTzSfWmx9f+cvcJe8yM39K/djkp2aUTE/9m2Lj5jg7b8vdRAer7DO3SyLNHs1CAm5x5iAdh2yGJYivArZbCBNY88Tw+w+C1Tbt7wK3zl2rzTHo/D8/gb3c3mYrnEIEipYqPUcdWjnTsSw471O3EUN7Gtg4NOAs9PJrxm03VuZKa5xwXAYCjt7Gs01Km6T2DhOYUMoFcCSu7Hk1p3yP1eG+M3v3Q5luAze6WwBnZIYO0TCucPWK+UJ36KoJ8Y+vpavhLO8g5ed704IjlQdfemrMu//EvPYXTQSGIPPfiagJS9nMqP5IvkxN9pvuJz7h8carPXTKMq8jnTeL0STan6dnLTAqwIswcIwWDR2KwbGddAVN8SYWRB7kfBfBRkSXzvHlIF8D6jo64kUzYk5o/n8oLjKqat0rdXvQ86MkwQGMnnlcasqPPT2+mVtUGb32KuH6cyZQenrRG11TArcAl27+nvOMBDe++EKHf4YdyGf7mznzOz33cFFGEcv329p4qG2hoaQ8ULiMyVz6ENcxhoqGnFIdupcn7GICQWuw3yO3W8S33mzCcMYJ8ywc7U7rmaQf/W5K63Gr4bVTpXOyOp4tbaPyIaatBNpXqlmQUTSZXjxPr19+73PSaT+QnI35YsWn6WpfJjRtK8vlJZoTSgjaRU39AGCkWOZtifJrnefCrqwTKDFmuWUCukEsYcRrMzCoit28wYpP7kSVjMD8WJYQiNc2blMjuqYegmf6SsfC1jqz8XzghMlOX+gn/MKZmgljszrmehEa4V98VreJDxYvHr3j7IeJB9/sBZV41BWT/AZAjuC5XorlIPnZgBAniBEhanp0/0+qZmEWDpu8ige1hUPIyTo6T6gDEcFhWSoduNh8YSu65KgMOGBw7VlNYzNIgwHtq9KP2yyTVysqX5v12sf7D+vQUdR2dRDvCV40rIInXSLWT/yrC6ExOQxBJwIDbeZcl3z1yR5Rj3l8IGpxspapnvBL+fwupA3b6fkFceID9wgiM1ILB0cHVdvo/R4xg8yqKXT8efl0GnGX1/27FUYeUW2L/GNRGGWVGp3i91oaJkb4rybENHre9a2P5viz/yqk8ngWUUS+Kv+fu+9BLFnfLiLXOFcIeBJLhnayCiuDRSqcx0Qu68gVsGYc6EHD500Fkt+gpDj6gvr884n8wZ5o6q7xtL5wA0beXQnffWYkZrs2NGIRgQbsc5NB302SVx+R4ROvmgZaR8wBcji128BMfJ9kcvJ4DC+bQ57kRmv5yxgU4ngZfn0/JNZ8JBwxjTqS+s9kjJFG1unGUGLwMiIuXUD9EFhNIJuyCEAmVZSIGKH4G6v1gRR1LyzQKH2ZqiI1DnHMoDEZspbDjTeaFIAbSvjSq3A+n46y9hhVM8wIpnARSXyzmOD96d9UXvFroSPgGw1dq2vdEqDq9fJN1EbL2WulNmHkFDvxSO9ZT/RX/Bw2gA/BrF90XrJACereVfbV/YXaKfp77Nmx5NjEIUlxojsy7iN7nBHSZigfsbFyVOX1ZTeCCxvqnRSExP4lk5ZeYlRu9caaa743TWNdchRIhEWwadsBIe245C8clpaZ4zrPsk+OwXzxWCvRRumyNSLW5KWaSJyJU95cwheK76gr7228spZ3hmTtLyrfM2QRFqZFMR8/Q6yWfVgwTdfX2Ry4w3+eAO/5VT5nFb5NlzXPvBEAWrNZ6Q3jbH0RF4vcbp+fDngf/ywpoyNQtjrfvcq93AVb1RDWRghvyqgI2BkMr1rwYi8gizZ0G9GmPpMeqPerAQ0dJbzx+KAFM4IBq6iSLpZHUroeyfd9o5o+4fR2EtsZBoJORQEA4SW0CmeXSnblx2e9QkCHIodyqV6+g5ETEpZsLqnd/Na60EKPX/tQpPEcO+COIBPcQdszDzSiHGyQFPly/7KciUh1u+mFfxTCHGv9nn2WqndGgeGjQ/kr02qmTBX7Hc1qiEvgiSz1Tz/sy7Es29wvn6FrDGPP7asXlhOaiHxOctPvTptFA1kHFUk8bME7SsTSnGbFbUrssxrq70LhoSh5OwvQna+w84XdXhZb2sloJ4ZsCg3j+PrjJL08/JBi5zGd6ud/ZxhmcGKLOXPcNunQq5ESW92iJvfsuRrNYtawWwSmNhPYoFj2QqWNF0ffLpGt/ad24RJ8vkb5sXkpyKXmvFG5Vcdzf/44k3PBL/ojJ52+kWGzOArnyp5f969oV3J2c4Li27Nkova9VwRNVKqN0V+gV+mTHitgkXV30aWd3A1RSildEleiNPA+5cp+3+T7X+xfHiRZXQ1s4FA9TxIcnveQs9JSZ5r5qNmgqlW4zMtZ6rYNvgmyVcywKtu8ZxnSbS5vXlBV+NXdIfi3+xzrnJ0TkFL+Un8v1PWOC2PPFCjVPq7qTH7mOpzOYj/b4h0ceT+eHgr97Jqhb1ziVfeANzfN8bFUhPKBi7hJBCukQnB0aGjFTYLJPXL26lQ2b80xrOD5cFWgA8hz3St0e69kwNnD3+nX3gy12FjrjO+ddRvvvfyV3SWbXcxqNHfmsb9u1TV+wHTb9B07/L2sB8WUHJ9eeNomDyysEWZ0deqEhH/oWI2oiEh526gvAK1Nx2kIhNvkYR+tPYHEa9j+nd1VBpQP1uzSjIDO+fDDB7uy029rRjDC5Sk6aKczyz1D5uA9Lu+Rrrapl8JXNL3VRllNQH2K1ZFxOpX8LprttfqQ56MbPM0IttUheXWD/mROOeFqGUbL+kUOVlXLTFX/525g4faLEFO4qWWdmOXMNvVjpIVTWt650HfQjX9oT3Dg5Au6+v1/Ci78La6ZOngYCFPT1AUwxQuZ0yt5xKdNXLaDTISMTeCj16XTryhM36K2mfGRIgot71voWs8tTpL/f1rvcwv3LSDf+/G8THCT7NpfHWcW+lsF/ol8q9Bi6MezNTqp0rpp/kJRiVfNrX/w27cRRTu8RIIqtUblBMkxy4jwAVqCjUJkiPBj2cAoVloG8B2/N5deLdMhDb7xs5nhd3dubJhuj8WbaFRyu1L678DHhhA+rMimNo4C1kGpp0tD/qnCfCFHejpf0LJX43OTr578PY0tnIIrlWyNYyuR/ie6j2xNb1OV6u0dOX/1Dtcd7+ya9W+rY2LmnyQMtk8SMLTon8RAdwOaN2tNg5zVnDKlmVeOxPV2vhHIo9QEPV7jc3f+zVDquiNg1OaHX3cZXJDRY5MJpo+VanAcmqp4oasYLG+wrXUL5vJU0kqk2hGEskhP+Jjigrz1l6QnEwp6n8PMVeJp70Ii6ppeaK9GhF6fJE00ceLyxv08tKiPat4QdxZFgSbQknnEiCLD8Qc1rjazVKM3r3gXnnMeONgdz/yFV1q+haaN+wnF3Fn4uYCI9XsKOuVwDD0LsCO/f0gj5cmxCFcr7sclIcefWjvore+3aSU474cyqDVxH7w1RX3CHsaqsMRX17ZLgjsDXws3kLm2XJdM3Ku383UXqaHqsywzPhx7NFir0Fqjym/w6cxD2U9ypa3dx7Z12w/fi3Jps8sqJ8f8Ah8aZAvkHXvIRyrsxK7rrFaNNdNvjI8+3Emri195DCNa858anj2Qdny6Czshkn4N2+1m+k5S8sunX3Ja7I+JutRzg1mc2e9Yc0Zv9PZn1SwhxIdU9sXwZRTd/J5FoUm0e+PYREeHg3oc2YYzGf2xfJxXExt4pT3RfDRHvMXLUmoXOy63xv5pLuhOEax0dRgSywZ/GH+YBXFgCeTU0hZ8SPEFsn8punp1Kurd1KgXxUZ+la3R5+4ePGR4ZF5UQtOa83+Vj8zh80dfzbhxWCeoJnQ4dkZJM4drzknZOOKx2n3WrvJnzFIS8p0xeic+M3ZRVXIp10tV2DyYKwRxLzulPwzHcLlYTxl4PF7v8l106Azr+6wBFejbq/3P72C/0j78cepY9990/d4eAurn2lqdGKLU8FffnMw7cY7pVeXJRMU73Oxwi2g2vh/+4gX8dvbjfojn/eLVhhYl8GthwCQ50KcZq4z2JeW5eeOnJWFQEnVxDoG459TaC4zXybECEoJ0V5q1tXrQbDMtUxeTV6Pdt1/zJuc7TJoV/9YZFWxUtCf6Ou3Vd/vR/vG0138hJQrHkNeoep5dLe+6umcSquKvMaFpm3EZHDBOvCi0XYyIFHMgX7Cqp3JVXlxJFwQfHSaIUEbI2u1lBVUdlNw4Qa9UsLPEK94Qiln3pyKxQVCeNlx8yd7EegVNQBkFLabKvnietYVB4IPZ1fSor82arbgYec8aSdFMaIluYTYuNx32SxfrjKUdPGq+UNp5YpydoEG3xVLixtmHO9zXxKAnHnPuH2fPGrjx0GcuCDEU+yXUtXh6nfUL+cykws1gJ5vkfYFaFBr9PdCXvVf35OJQxzUMmWjv0W6uGJK11uAGDqSpOwCf6rouSIjPVgw57cJCOQ4b9tkI/Y5WNon9Swe72aZryKo8d+HyHBEdWJKrkary0LIGczA4Irq353Wc0Zga3om7UQiAGCvIl8GGyaqz5zH+1gMP5phWUCpKtttWIyicz09vXg76GxkmiGSMQ06Z9X8BUwqOtauDbPIf4rpK/yYoeAHxJ9soXS9VDe1Aw+awOOxaN8foLrif0TXBvQ55dtRtulRq9emFDBxlQcqKCaD8NeTSE7FOHvcjf/+oKbbtRqz9gbofoc2EzQ3pL6W5JdfJzAWmOk8oeoECe90lVMruwl/ltM015P/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B`)),l=Math.log2||(e=>Math.log(e)/Math.LN2),u=e=>l(e)+1|0,d=u(i(s).categories.length-1),f=u(i(s).combiningClasses.length-1),p=u(i(s).scripts.length-1),m=u(i(s).eaw.length-1),h=10,g=f+p+m+h,_=p+m+h,v=m+h,y=h,b=(1<<d)-1,x=(1<<f)-1,S=(1<<p)-1,C=(1<<m)-1,w=(1<<h)-1;function T(e){let t=c.get(e);return i(s).categories[t>>g&b]}function E(e){let t=c.get(e);return i(s).combiningClasses[t>>_&x]}function D(e){let t=c.get(e);return i(s).scripts[t>>v&S]}function O(e){let t=c.get(e);return i(s).eaw[t>>y&C]}function k(e){let t=c.get(e),n=t&w;if(n===0)return null;if(n<=50)return n-1;if(n<480)return((n>>4)-12)/((n&15)+1);if(n<768){t=(n>>5)-14;let e=(n&31)+2;for(;e>0;)t*=10,e--;return t}else{t=(n>>2)-191;let e=(n&3)+1;for(;e>0;)t*=60,e--;return t}}function A(e){let t=T(e);return t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Nl`}function j(e){return T(e)===`Nd`}function M(e){let t=T(e);return t===`Pc`||t===`Pd`||t===`Pe`||t===`Pf`||t===`Pi`||t===`Po`||t===`Ps`}function N(e){return T(e)===`Ll`}function P(e){return T(e)===`Lu`}function ee(e){return T(e)===`Lt`}function F(e){let t=T(e);return t===`Zs`||t===`Zl`||t===`Zp`}function I(e){let t=T(e);return t===`Nd`||t===`No`||t===`Nl`||t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Me`||t===`Mc`}function L(e){let t=T(e);return t===`Mn`||t===`Me`||t===`Mc`}var R={getCategory:T,getCombiningClass:E,getScript:D,getEastAsianWidth:O,getNumericValue:k,isAlphabetic:A,isDigit:j,isPunctuation:M,isLowerCase:N,isUpperCase:P,isTitleCase:ee,isWhiteSpace:F,isBaseForm:I,isMark:L}})),ua=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNameStyle=e.addPrefixIfNecessary=e.combineWords=e.allLowerWordStyle=e.originalWord=e.allUpperWordStyle=e.firstUpperWordStyle=e.splitIntoWords=e.fastIsUpperCase=e.startWithLetter=e.snakeCase=e.camelCase=e.pascalCase=e.decapitalize=e.capitalize=e.trimEnd=e.isWordCharacter=e.isLetterOrUnderscoreOrDigit=e.isLetterOrUnderscore=e.isLetterOrDigit=e.isNumeric=e.isDigit=e.isLetter=e.isAscii=e.isPrintable=e.stringEscape=e.utf16StringEscape=e.escapeNonPrintableMapper=e.standardUnicodeHexEscape=e.intToHex=e.repeatString=e.legalizeCharacters=e.utf16LegalizeCharacters=e.utf32ConcatMap=e.utf16ConcatMap=void 0;var n=Q(),r=ia(),i=C(),a=t(la());function o(e){let t=[],n=[];for(let r=0;r<128;r++){let i=0,a=e(r);a===String.fromCharCode(r)&&(i=1),t.push(a),n.push(i)}return{charStringMap:t,charNoEscapeMap:n}}function s(e){let t=[];for(let n=0;n<128;n++)t.push(e(n));return function(n){return n<128?t[n]:e(n)}}function c(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let i=null,a=0,o=0;for(;o<r.length;){let s=r.charCodeAt(o);if(n[s]!==1){i===null&&(i=[]),i.push(r.substring(a,o));let n=t[s];n===void 0?i.push(e(r.charCodeAt(o))):i.push(n),a=o+1}o++}return i===null?r:(i.push(r.substring(a,o)),i.join(``))}}e.utf16ConcatMap=c;function l(e){return e>=55296&&e<=56319}function u(e){return e>=56320&&e<=57343}function d(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let a=null,o=0,s=0;for(;s<r.length;){let c=r.charCodeAt(s);if(n[c]!==1){if(a===null&&(a=[]),a.push(r.substring(o,s)),l(c)){let e=c;s++;let t=r.charCodeAt(s);(0,i.messageAssert)(u(t),`MiscUnicodeHighSurrogateWithoutLowSurrogate`,{});let n=e-55296;c=65536+(t-56320)+(n<<10)}let n=t[c];n===void 0?a.push(e(c)):a.push(n),o=s+1}s++}return a===null?r:(a.push(r.substring(o,s)),a.join(``))}}e.utf32ConcatMap=d;function f(e){return c(t=>e(t)?String.fromCharCode(t):``)}e.utf16LegalizeCharacters=f;function p(e){return d(t=>t<=65535&&e(t)?String.fromCharCode(t):``)}e.legalizeCharacters=p;function m(e,t){if((0,n.assert)(t>=0,`Cannot repeat a string a negative number of times`),t===0)return``;let r=``;do t%2!=0&&(r+=e),t=Math.floor(t/2),t>0&&(e+=e);while(t>0);return r}e.repeatString=m;function h(e,t){let n=e.toString(16);return n.length>=t?n:m(`0`,t-n.length)+n}e.intToHex=h;function g(e){return e<=65535?`\\u`+h(e,4):`\\U`+h(e,8)}e.standardUnicodeHexEscape=g;function _(e,t){function n(n){switch(n){case 92:return`\\\\`;case 34:return`\\"`;case 10:return`\\n`;case 9:return`\\t`;default:return e(n)?String.fromCharCode(n):t(n)}}return n}e.escapeNonPrintableMapper=_,e.utf16StringEscape=c(_(v,g)),e.stringEscape=d(_(v,g));function v(e){if(e>65535)return!1;let t=a.default.getCategory(e);return[`Mc`,`No`,`Sk`,`Me`,`Nd`,`Po`,`Lt`,`Pc`,`Sm`,`Zs`,`Lu`,`Pd`,`So`,`Pe`,`Pf`,`Ps`,`Sc`,`Ll`,`Lm`,`Pi`,`Nl`,`Mn`,`Lo`].indexOf(t)>=0}e.isPrintable=v;function y(e){return e<128}e.isAscii=y;function b(e){let t=a.default.getCategory(e);return[`Lu`,`Ll`,`Lt`,`Lo`].indexOf(t)>=0}e.isLetter=b;function x(e){let t=a.default.getCategory(e);return[`Nd`].indexOf(t)>=0}e.isDigit=x;function S(e){let t=a.default.getCategory(e);return[`No`,`Nd`,`Nl`].indexOf(t)>=0}e.isNumeric=S;function w(e){return b(e)||x(e)}e.isLetterOrDigit=w;function T(e){return b(e)||e===95}e.isLetterOrUnderscore=T;function E(e){return T(e)||x(e)}e.isLetterOrUnderscoreOrDigit=E;function D(e){return b(e)||x(e)}e.isWordCharacter=D;function O(e){let t=e.length,n=t;for(let r=t-1;r>=0&&a.default.isWhiteSpace(e.charCodeAt(r));r--)n=r;return n===t?e:e.slice(0,n)}e.trimEnd=O;function k(e,t){return t===``?t:e(t[0])+t.slice(1)}function A(e){return k(e=>e.toUpperCase(),e)}e.capitalize=A;function j(e){return k(e=>e.toLowerCase(),e)}e.decapitalize=j;var M=/[-_. ]+/;function N(e){return e.split(M).map(A).join(``)}e.pascalCase=N;function P(e){return j(N(e))}e.camelCase=P;function ee(e){return re(e).map(({word:e})=>e.toLowerCase()).join(`_`)}e.snakeCase=ee;function F(e,t,n){let r=t?A:j;return n===``?r(`empty`):e(n.charCodeAt(0))?r(n):r(`the`+n)}e.startWithLetter=F;var I=new Set(r.acronyms),L=s(D),R=s(e=>!D(e)),z=s(e=>a.default.isLowerCase(e));e.fastIsUpperCase=s(e=>a.default.isUpperCase(e));var te=s(e=>!a.default.isLowerCase(e)&&!a.default.isUpperCase(e)),ne=s(x);function re(t){let r=[],i,a=t.length,o=0,s;function c(){return o>=a}function l(){return(0,n.defined)(t.codePointAt(o))}function d(e){for(;!c();){let t=l();if(!e(t))break;z(t)&&(s=o),o++}}function f(){d(R)}function p(){d(z)}function m(){d(e.fastIsUpperCase)}function h(){d(te)}function g(){d(ne)}function _(){(0,n.assert)(i===void 0,`Interval started before last one was committed`),i=o}function v(){if(i===void 0)return(0,n.panic)(`Tried to commit interval without starting one`);(0,n.assert)(o>i,`Interval must be non-empty`),!c()&&u(l())&&(o+=1);let e=s===void 0||s<i;r.push([i,o,e]),i=void 0}function y(){return i===void 0?(0,n.panic)(`Tried to get interval length without starting one`):o-i}for(;f(),!c();)_(),z(l())?(p(),g(),v()):(0,e.fastIsUpperCase)(l())?(m(),c()?v():y()===1?(p(),g(),v()):x(l())?(g(),v()):(L(l())&&--o,v())):(h(),v());let b=[];for(let[e,n,i]of r){let r=t.slice(e,n),a=s!==void 0&&i||I.has(r.toLowerCase());b.push({word:r,isAcronym:a})}return b}e.splitIntoWords=re;function B(e){return(0,n.assert)(e.length>0,`Cannot style an empty string`),e[0].toUpperCase()+e.slice(1).toLowerCase()}e.firstUpperWordStyle=B;function V(e){return e.toUpperCase()}e.allUpperWordStyle=V;function ie(e){return e}e.originalWord=ie;function ae(e){return e.toLowerCase()}e.allLowerWordStyle=ae;function H(e,t){(0,n.assert)(t.length>0,`Tried to style an empty word`);let r=e(t);return(0,n.assert)(r.length>0,`Word style must not make word empty`),r}function oe(e,t,r,i,a,o,s,c){let l=[];for(let n of e){let e=t(n.word);e.length!==0&&l.push({word:e,isAcronym:n.isAcronym})}if(l.length===0){let e=t(`empty`);(0,n.assert)(e.length>0,`Word "empty" is invalid in target language`),l.push({word:e,isAcronym:!1})}let u=[],d=l[0],f=H(d.isAcronym?a:r,d.word),p;if(c((0,n.defined)(f.codePointAt(0))))u.push(f),p=l.slice(1);else{let e=t(`the`);(0,n.assert)(e.length>0,`Word "the" is invalid in the target language`);let i=H(r,e);(0,n.assert)(c((0,n.defined)(i.codePointAt(0))),`The first character of styling "the" is not a start character`),u.push(i),p=l}for(let e of p){let t=e.isAcronym?o:i;u.push(H(t,e.word))}return u.join(s)}e.combineWords=oe;function U(e,t){return t.startsWith(e)?t:e+t}e.addPrefixIfNecessary=U;function se(e,t,r){let i,a,o,s,c;switch(e===`pascal`||e===`camel`||e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(i=``,e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(o=B,c=V):o=c=B):i=`_`,e){case`pascal`:case`pascal-upper-acronyms`:a=s=B;break;case`camel`:case`camel-upper-acronyms`:a=s=ae;break;case`underscore`:a=o=s=c=ae;break;case`upper-underscore`:a=o=s=c=V;break;default:return(0,n.assertNever)(e)}return e=>{let n=oe(re(e),t,a,o,s,c,i,T);return r===void 0?n:U(r,n)}}e.makeNameStyle=se})),da=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Chance=void 0;var t=class{constructor(e){e===void 0&&(e=Math.floor(Math.random()*10**13)),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=Array(this.N),this.mti=this.N+1,this.init_genrand(e)}init_genrand(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}genrand_int32(){let e,t=[0,this.MATRIX_A];if(this.mti>=this.N){let n;for(this.mti===this.N+1&&this.init_genrand(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[e&1];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0}random(){return this.genrand_int32()*(1/4294967296)}};e.Chance=class{constructor(e){this.seed=e,this.mt=new t(this.seed)}random(){return this.mt.random()}integer(e){return Math.floor(this.random()*(e.max-e.min+1)+e.min)}natural(e){return this.integer({min:0,max:e.max})}pick(e){if(e.length===0)throw RangeError(`Chance: Cannot pick() from an empty array`);return e[this.natural({max:e.length-1})]}animal(){return this.pick(n[this.pick([`desert`,`forest`,`ocean`,`zoo`,`farm`,`pet`,`grassland`])])}city(){return this.pick(r)}};var n={ocean:`Acantharea.Anemone.Angelfish King.Ahi Tuna.Albacore.American Oyster.Anchovy.Armored Snail.Arctic Char.Atlantic Bluefin Tuna.Atlantic Cod.Atlantic Goliath Grouper.Atlantic Trumpetfish.Atlantic Wolffish.Baleen Whale.Banded Butterflyfish.Banded Coral Shrimp.Banded Sea Krait.Barnacle.Barndoor Skate.Barracuda.Basking Shark.Bass.Beluga Whale.Bluebanded Goby.Bluehead Wrasse.Bluefish.Bluestreak Cleaner-Wrasse.Blue Marlin.Blue Shark.Blue Spiny Lobster.Blue Tang.Blue Whale.Broadclub Cuttlefish.Bull Shark.Chambered Nautilus.Chilean Basket Star.Chilean Jack Mackerel.Chinook Salmon.Christmas Tree Worm.Clam.Clown Anemonefish.Clown Triggerfish.Cod.Coelacanth.Cockscomb Cup Coral.Common Fangtooth.Conch.Cookiecutter Shark.Copepod.Coral.Corydoras.Cownose Ray.Crab.Crown-of-Thorns Starfish.Cushion Star.Cuttlefish.California Sea Otters.Dolphin.Dolphinfish.Dory.Devil Fish.Dugong.Dumbo Octopus.Dungeness Crab.Eccentric Sand Dollar.Edible Sea Cucumber.Eel.Elephant Seal.Elkhorn Coral.Emperor Shrimp.Estuarine Crocodile.Fathead Sculpin.Fiddler Crab.Fin Whale.Flameback.Flamingo Tongue Snail.Flashlight Fish.Flatback Turtle.Flatfish.Flying Fish.Flounder.Fluke.French Angelfish.Frilled Shark.Fugu (also called Pufferfish).Gar.Geoduck.Giant Barrel Sponge.Giant Caribbean Sea Anemone.Giant Clam.Giant Isopod.Giant Kingfish.Giant Oarfish.Giant Pacific Octopus.Giant Pyrosome.Giant Sea Star.Giant Squid.Glowing Sucker Octopus.Giant Tube Worm.Goblin Shark.Goosefish.Great White Shark.Greenland Shark.Grey Atlantic Seal.Grouper.Grunion.Guineafowl Puffer.Haddock.Hake.Halibut.Hammerhead Shark.Hapuka.Harbor Porpoise.Harbor Seal.Hatchetfish.Hawaiian Monk Seal.Hawksbill Turtle.Hector's Dolphin.Hermit Crab.Herring.Hoki.Horn Shark.Horseshoe Crab.Humpback Anglerfish.Humpback Whale.Icefish.Imperator Angelfish.Irukandji Jellyfish.Isopod.Ivory Bush Coral.Japanese Spider Crab.Jellyfish.John Dory.Juan Fernandez Fur Seal.Killer Whale.Kiwa Hirsuta.Krill.Lagoon Triggerfish.Lamprey.Leafy Seadragon.Leopard Seal.Limpet.Ling.Lionfish.Lions Mane Jellyfish.Lobe Coral.Lobster.Loggerhead Turtle.Longnose Sawshark.Longsnout Seahorse.Lophelia Coral.Marrus Orthocanna.Manatee.Manta Ray.Marlin.Megamouth Shark.Mexican Lookdown.Mimic Octopus.Moon Jelly.Mollusk.Monkfish.Moray Eel.Mullet.Mussel.Megaladon.Napoleon Wrasse.Nassau Grouper.Narwhal.Nautilus.Needlefish.Northern Seahorse.North Atlantic Right Whale.Northern Red Snapper.Norway Lobster.Nudibranch.Nurse Shark.Oarfish.Ocean Sunfish.Oceanic Whitetip Shark.Octopus.Olive Sea Snake.Orange Roughy.Ostracod.Otter.Oyster.Pacific Angelshark.Pacific Blackdragon.Pacific Halibut.Pacific Sardine.Pacific Sea Nettle Jellyfish.Pacific White Sided Dolphin.Pantropical Spotted Dolphin.Patagonian Toothfish.Peacock Mantis Shrimp.Pelagic Thresher Shark.Penguin.Peruvian Anchoveta.Pilchard.Pink Salmon.Pinniped.Plankton.Porpoise.Polar Bear.Portuguese Man o' War.Pycnogonid Sea Spider.Quahog.Queen Angelfish.Queen Conch.Queen Parrotfish.Queensland Grouper.Ragfish.Ratfish.Rattail Fish.Ray.Red Drum.Red King Crab.Ringed Seal.Risso's Dolphin.Ross Seals.Sablefish.Salmon.Sand Dollar.Sandbar Shark.Sawfish.Sarcastic Fringehead.Scalloped Hammerhead Shark.Seahorse.Sea Cucumber.Sea Lion.Sea Urchin.Seal.Shark.Shortfin Mako Shark.Shovelnose Guitarfish.Shrimp.Silverside Fish.Skipjack Tuna.Slender Snipe Eel.Smalltooth Sawfish.Smelts.Sockeye Salmon.Southern Stingray.Sponge.Spotted Porcupinefish.Spotted Dolphin.Spotted Eagle Ray.Spotted Moray.Squid.Squidworm.Starfish.Stickleback.Stonefish.Stoplight Loosejaw.Sturgeon.Swordfish.Tan Bristlemouth.Tasseled Wobbegong.Terrible Claw Lobster.Threespot Damselfish.Tiger Prawn.Tiger Shark.Tilefish.Toadfish.Tropical Two-Wing Flyfish.Tuna.Umbrella Squid.Velvet Crab.Venus Flytrap Sea Anemone.Vigtorniella Worm.Viperfish.Vampire Squid.Vaquita.Wahoo.Walrus.West Indian Manatee.Whale.Whale Shark.Whiptail Gulper.White-Beaked Dolphin.White-Ring Garden Eel.White Shrimp.Wobbegong.Wrasse.Wreckfish.Xiphosura.Yellowtail Damselfish.Yelloweye Rockfish.Yellow Cup Black Coral.Yellow Tube Sponge.Yellowfin Tuna.Zebrashark.Zooplankton`.split(`.`),desert:`Aardwolf.Addax.African Wild Ass.Ant.Antelope.Armadillo.Baboon.Badger.Bat.Bearded Dragon.Beetle.Bird.Black-footed Cat.Boa.Brown Bear.Bustard.Butterfly.Camel.Caracal.Caracara.Caterpillar.Centipede.Cheetah.Chipmunk.Chuckwalla.Climbing Mouse.Coati.Cobra.Cotton Rat.Cougar.Courser.Crane Fly.Crow.Dassie Rat.Dove.Dunnart.Eagle.Echidna.Elephant.Emu.Falcon.Fly.Fox.Frogmouth.Gecko.Geoffroy's Cat.Gerbil.Grasshopper.Guanaco.Gundi.Hamster.Hawk.Hedgehog.Hyena.Hyrax.Jackal.Kangaroo.Kangaroo Rat.Kestrel.Kowari.Kultarr.Leopard.Lion.Macaw.Meerkat.Mouse.Oryx.Ostrich.Owl.Pronghorn.Python.Rabbit.Raccoon.Rattlesnake.Rhinoceros.Sand Cat.Spectacled Bear.Spiny Mouse.Starling.Stick Bug.Tarantula.Tit.Toad.Tortoise.Tyrant Flycatcher.Viper.Vulture.Waxwing.Xerus.Zebra`.split(`.`),grassland:`Aardvark.Aardwolf.Accentor.African Buffalo.African Wild Dog.Alpaca.Anaconda.Ant.Anteater.Antelope.Armadillo.Baboon.Badger.Bandicoot.Barbet.Bat.Bee.Bee-eater.Beetle.Bird.Bison.Black-footed Cat.Black-footed Ferret.Bluebird.Boa.Bowerbird.Brown Bear.Bush Dog.Bushshrike.Bustard.Butterfly.Buzzard.Caracal.Caracara.Cardinal.Caterpillar.Cheetah.Chipmunk.Civet.Climbing Mouse.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Common Genet.Cotton Rat.Cougar.Courser.Coyote.Crane.Crane Fly.Cricket.Crow.Culpeo.Death Adder.Deer.Deer Mouse.Dingo.Dinosaur.Dove.Drongo.Duck.Duiker.Dunnart.Eagle.Echidna.Elephant.Elk.Emu.Falcon.Finch.Flea.Fly.Flying Frog.Fox.Frog.Frogmouth.Garter Snake.Gazelle.Gecko.Geoffroy's Cat.Gerbil.Giant Tortoise.Giraffe.Grasshopper.Grison.Groundhog.Grouse.Guanaco.Guinea Pig.Hamster.Harrier.Hartebeest.Hawk.Hedgehog.Helmetshrike.Hippopotamus.Hornbill.Hyena.Hyrax.Impala.Jackal.Jaguar.Jaguarundi.Kangaroo.Kangaroo Rat.Kestrel.Kultarr.Ladybug.Leopard.Lion.Macaw.Meerkat.Mouse.Newt.Oryx.Ostrich.Owl.Pangolin.Pheasant.Prairie Dog.Pronghorn.Przewalski's Horse.Python.Quoll.Rabbit.Raven.Rhinoceros.Shelduck.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Tamandua.Tasmanian Devil.Thornbill.Thrush.Toad.Tortoise`.split(`.`),forest:`Agouti.Anaconda.Anoa.Ant.Anteater.Antelope.Armadillo.Asian Black Bear.Aye-aye.Babirusa.Baboon.Badger.Bandicoot.Banteng.Barbet.Basilisk.Bat.Bearded Dragon.Bee.Bee-eater.Beetle.Bettong.Binturong.Bird-of-paradise.Bongo.Bowerbird.Bulbul.Bush Dog.Bushbaby.Bushshrike.Butterfly.Buzzard.Caecilian.Cardinal.Cassowary.Caterpillar.Centipede.Chameleon.Chimpanzee.Cicada.Civet.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Colugo.Cotinga.Cotton Rat.Cougar.Crane Fly.Cricket.Crocodile.Crow.Cuckoo.Cuscus.Death Adder.Deer.Dhole.Dingo.Dinosaur.Drongo.Duck.Duiker.Eagle.Echidna.Elephant.Finch.Flat-headed Cat.Flea.Flowerpecker.Fly.Flying Frog.Fossa.Frog.Frogmouth.Gaur.Gecko.Gorilla.Grison.Hawaiian Honeycreeper.Hawk.Hedgehog.Helmetshrike.Hornbill.Hyrax.Iguana.Jackal.Jaguar.Jaguarundi.Kestrel.Ladybug.Lemur.Leopard.Lion.Macaw.Mandrill.Margay.Monkey.Mouse.Mouse Deer.Newt.Okapi.Old World Flycatcher.Orangutan.Owl.Pangolin.Peafowl.Pheasant.Possum.Python.Quokka.Rabbit.Raccoon.Red Panda.Red River Hog.Rhinoceros.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Sun Bear.Tamandua.Tamarin.Tapir.Tarantula.Thrush.Tiger.Tit.Toad.Tortoise.Toucan.Trogon.Trumpeter.Turaco.Turtle.Tyrant Flycatcher.Viper.Vulture.Wallaby.Warbler.Wasp.Waxwing.Weaver.Weaver-finch.Whistler.White-eye.Whydah.Woodswallow.Worm.Wren.Xenops.Yellowjacket.Accentor.African Buffalo.American Black Bear.Anole.Bird.Bison.Boa.Brown Bear.Chipmunk.Common Genet.Copperhead.Coyote.Deer Mouse.Dormouse.Elk.Emu.Fisher.Fox.Garter Snake.Giant Panda.Giant Tortoise.Groundhog.Grouse.Guanaco.Himalayan Tahr.Kangaroo.Koala.Numbat.Quoll.Raccoon dog.Tasmanian Devil.Thornbill.Turkey.Vole.Weasel.Wildcat.Wolf.Wombat.Woodchuck.Woodpecker`.split(`.`),farm:`Alpaca.Buffalo.Banteng.Cow.Cat.Chicken.Carp.Camel.Donkey.Dog.Duck.Emu.Goat.Gayal.Guinea.Goose.Horse.Honey.Llama.Pig.Pigeon.Rhea.Rabbit.Sheep.Silkworm.Turkey.Yak.Zebu`.split(`.`),pet:`Bearded Dragon.Birds.Burro.Cats.Chameleons.Chickens.Chinchillas.Chinese Water Dragon.Cows.Dogs.Donkey.Ducks.Ferrets.Fish.Geckos.Geese.Gerbils.Goats.Guinea Fowl.Guinea Pigs.Hamsters.Hedgehogs.Horses.Iguanas.Llamas.Lizards.Mice.Mule.Peafowl.Pigs and Hogs.Pigeons.Ponies.Pot Bellied Pig.Rabbits.Rats.Sheep.Skinks.Snakes.Stick Insects.Sugar Gliders.Tarantula.Turkeys.Turtles`.split(`.`),zoo:`Aardvark.African Wild Dog.Aldabra Tortoise.American Alligator.American Bison.Amur Tiger.Anaconda.Andean Condor.Asian Elephant.Baby Doll Sheep.Bald Eagle.Barred Owl.Blue Iguana.Boer Goat.California Sea Lion.Caribbean Flamingo.Chinchilla.Collared Lemur.Coquerel's Sifaka.Cuban Amazon Parrot.Ebony Langur.Fennec Fox.Fossa.Gelada.Giant Anteater.Giraffe.Gorilla.Grizzly Bear.Henkel's Leaf-tailed Gecko.Indian Gharial.Indian Rhinoceros.King Cobra.King Vulture.Komodo Dragon.Linne's Two-toed Sloth.Lion.Little Penguin.Madagascar Tree Boa.Magellanic Penguin.Malayan Tapir.Malayan Tiger.Matschies Tree Kangaroo.Mini Donkey.Monarch Butterfly.Nile crocodile.North American Porcupine.Nubian Ibex.Okapi.Poison Dart Frog.Polar Bear.Pygmy Marmoset.Radiated Tortoise.Red Panda.Red Ruffed Lemur.Ring-tailed Lemur.Ring-tailed Mongoose.Rock Hyrax.Small Clawed Asian Otter.Snow Leopard.Snowy Owl.Southern White-faced Owl.Southern White Rhinocerous.Squirrel Monkey.Tufted Puffin.White Cheeked Gibbon.White-throated Bee Eater.Zebra`.split(`.`)},r=[`Alert`,`Nord`,`Eureka`,`Ny-Ålesund`,`Longyearbyen`,`Qaanaaq`,`Grise Fiord`,`Dikson`,`Upernavik`,`Tiksi`,`Belushya Guba`,`Barrow`,`Honningsvåg`,`Hammerfest`,`Deadhorse`,`Nuorgam`,`Vadsø`,`Alta`,`Utsjoki`,`Kirkenes`,`Tromsø`,`Tuktoyaktuk`,`Norilsk`,`Murmansk`,`Harstad`,`Narvik`,`Inuvik`,`Kiruna`,`Verkhoyansk`,`Bodø`,`Gällivare`,`Kemijärvi`,`Rovaniemi`,`Ísafjörður`,`Kuusamo`,`Tornio`,`Boden`,`Haparanda`,`Kemi`,`Akureyri`,`Luleå`,`Pudasjärvi`,`Piteå`,`Oulu`,`Fairbanks`,`Skellefteå`,`Anadyr`,`Arkhangelsk`,`Nome`,`Nuuk (Godthåb)`,`Reykjavík`,`Umeå`,`Iqaluit`,`Stjørdal`,`Trondheim`,`Örnsköldsvik`,`Östersund`,`Vaasa`,`Kuopio`,`Yellowknife`,`Sundsvall`,`Jyväskylä`,`Yakutsk`,`Tórshavn`,`Petrozavodsk`,`Tampere`,`Anchorage`,`Lillehammer`,`Lahti`,`Qaqortoq`,`Whitehorse`,`Turku`,`Bergen`,`Vantaa`,`Lerwick`,`Espoo`,`Helsinki`,`Oslo`,`Saint Petersburg`,`Uppsala`,`Fritz Creek`,`Magadan`,`Tallinn`,`Stockholm`,`Sarpsborg`,`Örebro`,`Vologda`,`Norrköping`,`Linköping`,`Tartu`,`Juneau`,`Arendal`,`Kristiansand`,`Perm`,`Valga`,`Gothenburg`,`Visby`,`Yaroslavl`,`Inverness`,`Aberdeen`,`Sitka`,`Riga`,`Izhevsk`,`Yekaterinburg`,`Fort McMurray`,`Dundee`,`Nizhny Novgorod`,`Stirling`,`Bratsk`,`Aarhus`,`Krasnoyarsk`,`Edinburgh`,`Glasgow`,`Kazan`,`Moscow`,`Copenhagen`,`Malmö`,`Esbjerg`,`Odense`,`Grande Prairie`,`Chelyabinsk`,`Novosibirsk`,`Derry`,`Omsk`,`Newcastle upon Tyne`,`Sunderland`,`Petropavl`,`Flensburg`,`Ufa`,`Kaliningrad`,`Vilnius`,`Belfast`,`Middlesbrough`,`Gdynia`,`Gdańsk`,`Kiel`,`Douglas`,`Rostock`,`Lancaster`,`York`,`Prince George`,`Minsk`,`Bradford`,`Leeds`,`Hamburg`,`Edmonton`,`Tolyatti`,`Manchester`,`Liverpool`,`Sheffield`,`Dublin`,`Groningen`,`Samara`,`Bremen`,`Petropavlovsk-Kamchatsky`,`Nottingham`,`Derby`,`Leicester`,`Norwich`,`Peterborough`,`Berlin`,`Birmingham`,`Gomel`,`Coventry`,`Poznań`,`Haarlem`,`Amsterdam`,`Hannover`,`Irkutsk`,`Warsaw`,`Enschede`,`Cambridge`,`Leiden`,`Saskatoon`,`Utrecht`,`The Hague`,`Münster`,`Rotterdam`,`Cork`,`Adak`,`Gloucester`,`Oxford`,`Voronezh`,`Swansea`,`Saratov`,`Dortmund`,`London`,`Cardiff`,`Greenwich`,`Bristol`,`Bath`,`Leipzig`,`Düsseldorf`,`Antwerp`,`Astana`,`Winchester`,`Calgary`,`Ghent`,`Dresden`,`Erfurt`,`Calais`,`Cologne`,`Southampton`,`Maastricht`,`Brussels`,`Brighton and Hove`,`Portsmouth`,`Exeter`,`Kamloops`,`Lille`,`Regina`,`Kiev`,`Charleroi`,`Plymouth`,`Frankfurt am Main`,`Prague`,`Kraków`,`Kharkiv`,`Winnipeg`,`Kelowna`,`Lviv`,`Luxembourg`,`Le Havre`,`Nuremberg`,`Rouen`,`Vancouver`,`Paris`,`Stuttgart`,`Bellingham`,`Volgograd`,`Strasbourg`,`Dnipro`,`Victoria`,`Saguenay`,`Brest`,`Thunder Bay`,`Linz`,`Vienna`,`Bratislava`,`Munich`,`Donetsk`,`Ulaanbaatar`,`Orléans`,`Salzburg`,`Seattle`,`St. John's`,`Basel`,`Budapest`,`Qiqihar`,`Zürich`,`Innsbruck`,`Rostov-on-Don`,`Nantes`,`Vaduz`,`Atyrau`,`Graz`,`Chişinău`,`Bern`,`Tiraspol`,`Quebec City`,`Bismarck`,`Duluth`,`Saint-Pierre`,`Cluj-Napoca`,`Moscow`,`Helena`,`Sault Ste. Marie`,`Lausanne`,`Sudbury`,`Odessa`,`North Bay`,`Charlottetown`,`Geneva`,`Moncton`,`Ljubljana`,`Fredericton`,`Zagreb`,`Lyon`,`Harbin`,`New Glasgow`,`Portland`,`Montreal`,`Milan`,`Venice`,`Ottawa`,`Wakkanai`,`Saint John`,`Novi Sad`,`Turin`,`Krasnodar`,`Minneapolis`,`Simferopol`,`Halifax`,`Bordeaux`,`Belgrade`,`Šabac`,`Drobeta Turnu Severin`,`Bologna`,`Bucharest`,`Ravenna`,`Genoa`,`Pierre`,`Craiova`,`Augusta`,`Montpelier`,`Bath`,`San Marino`,`Changchun`,`Sarajevo`,`Yarmouth`,`Ürümqi`,`Florence`,`Asahikawa`,`Monaco`,`Nice`,`Toronto`,`Boise`,`Toulouse`,`Sochi`,`Cannes`,`Gijón`,`Sioux Falls`,`Split`,`Oviedo`,`Nemuro`,`San Sebastián`,`Marseille`,`Almaty`,`Bilbao`,`Concord`,`Rochester`,`Vladivostok`,`Sapporo`,`Milwaukee`,`Sukhumi`,`Kushiro`,`London`,`Follonica`,`Obihiro`,`Buffalo`,`Santiago de Compostela`,`Bishkek`,`Vitoria-Gasteiz`,`Sofia`,`Pristina`,`Andorra la Vella`,`Nukus`,`Podgorica`,`Boston`,`Detroit`,`Windsor`,`Vigo`,`Tskhinvali`,`Avezzano`,`Skopje`,`Colchester`,`Rome`,`Vatican City`,`Chicago`,`Providence`,`Shenyang`,`Chongjin`,`Hartford`,`Hakodate`,`Tbilisi`,`Valladolid`,`Zaragoza`,`Des Moines`,`Braga`,`Cleveland`,`Barcelona`,`Tirana`,`Tashkent`,`Porto`,`Cheyenne`,`Bari`,`Fort Wayne`,`Istanbul`,`Trabzon`,`Namangan`,`Naples`,`Aomori`,`Lincoln`,`Eureka`,`Salt Lake City`,`Jersey City`,`New York City`,`Thessaloniki`,`Lleida`,`Pittsburgh`,`Baku`,`Madrid`,`Trenton`,`Bursa`,`Yerevan`,`Boulder`,`Columbus`,`Ankara`,`Philadelphia`,`Beijing`,`Stepanakert`,`Forked River`,`Eskisehir`,`Indianapolis`,`Denver`,`Akita`,`Morioka`,`Palma`,`Reno`,`Flores Island`,`Valencia`,`Baltimore`,`Cagliari`,`Dover`,`Wonsan`,`Tianjin`,`Cincinnati`,`Kansas City`,`Pyongyang`,`Ibiza`,`Dalian`,`Washington`,`Lisbon`,`St. Louis`,`Horta`,`Sacramento`,`Dushanbe`,`Angra do Heroísmo`,`Halkida`,`İzmir`,`Charleston`,`Alicante`,`Sendai`,`Louisville`,`Yamagata`,`Messina`,`Palermo`,`Tabriz`,`Shijiazhuang`,`Trapani`,`Athena`,`Kaesong`,`Ashgabat`,`Niigata`,`Taiyuan`,`Konya`,`Ponta Delgada`,`Oakland`,`San Francisco`,`Fukushima`,`Wichita`,`Seoul`,`San Jose`,`Catania`,`Incheon`,`Sevilla`,`Mugla`,`Springfield`,`Gaziantep`,`Adana`,`Virginia Beach`,`Almería`,`Tunis`,`Mersin`,`Algiers`,`Málaga`,`Toyama`,`Jinan`,`Nagano`,`Xining`,`Handan`,`Kanazawa`,`Utsunomiya`,`Maebashi`,`Mito`,`Mosul`,`Mashhad`,`Arbil`,`Las Vegas`,`Nashville`,`Gibraltar`,`Tulsa`,`Fukui`,`Qingdao`,`Lanzhou`,`Knoxville`,`Valletta`,`Birkirkara`,`Los Alamos`,`Daegu`,`Raleigh`,`Tangier`,`Tehran`,`Tokyo`,`Santa Fe`,`Kōfu`,`Chiba`,`Latakia`,`Kawasaki`,`Tottori`,`Oklahoma City`,`Matsue`,`Kirkuk`,`Yokohama`,`Gifu`,`Tiaret`,`Heraklion`,`Melilla`,`Charlotte`,`Nagoya`,`Busan`,`Nicosia`,`Memphis`,`Albuquerque`,`Ōtsu`,`Kyoto`,`Shizuoka`,`Zhengzhou`,`Little Rock`,`Sfax`,`Tsu`,`Osaka`,`Kōbe`,`Nara`,`Okayama`,`Kabul`,`Santa Barbara`,`Hiroshima`,`Takamatsu`,`Xi'an`,`Wakayama`,`Wilmington`,`Yamaguchi`,`Arak`,`Srinagar`,`Tokushima`,`Los Angeles`,`Rabat`,`Peshawar`,`Columbia`,`Riverside`,`Beirut`,`Matsuyama`,`Atlanta`,`Islamabad`,`Birmingham`,`Rawalpindi`,`Fukuoka`,`Kōchi`,`Casablanca`,`Damascus`,`Phoenix`,`Lubbock`,`Baghdad`,`Saga`,`Ōita`,`Tripoli`,`Charleston`,`Dallas`,`Nagasaki`,`Kumamoto`,`San Diego`,`Mexicali`,`Funchal`,`El Centro`,`Isfahan`,`Karbala`,`Tijuana`,`Shreveport`,`Jackson`,`Hamilton`,`Tucson`,`Benghazi`,`Tel Aviv`,`Nanjing`,`Najaf`,`Amman`,`Miyazaki`,`Ramallah`,`Ensenada`,`El Paso`,`Jerusalem`,`Ciudad Juárez`,`Amritsar`,`Marrakech`,`Kandahar`,`Kagoshima`,`Lahore`,`Gaza`,`Faisalabad`,`Port Said`,`Alexandria`,`Shanghai`,`Shimla`,`Ludhiana`,`Chandigarh`,`Mobile`,`Chengdu`,`Wuhan`,`Basra`,`Agadir`,`Jacksonville`,`Austin`,`Hangzhou`,`Multan`,`Cairo`,`New Orleans`,`Suez`,`Houston`,`Lhasa`,`Chongqing`,`Eilat`,`San Antonio`,`Kuwait City`,`Shigatse`,`Hermosillo`,`Chihuahua`,`New Delhi`,`Santa Cruz de Tenerife`,`Orlando`,`Las Palmas de Gran Canaria`,`Tampa`,`Corpus Christi`,`Maspalomas`,`Kathmandu`,`Dibrugarh`,`Thimphu`,`Gangtok`,`Agra`,`El Aaiún`,`Sabha`,`Jaipur`,`Lucknow`,`Siliguri`,`Tezpur`,`Kanpur`,`Dammam`,`Naha`,`Manama`,`Guwahati`,`Brownsville`,`Miami`,`Luxor`,`Monterrey`,`Patna`,`Shillong`,`Torreón`,`Kulpahar`,`Doha`,`Dubai`,`Hyderabad`,`Nassau`,`Kunming`,`Taipei`,`Karachi`,`Culiacán`,`Riyadh`,`Key West`,`Medina`,`Abu Dhabi`,`Al Ain`,`Taichung`,`Durango`,`Agartala`,`Dhaka`,`Muscat`,`Havana`,`Guangzhou`,`Ahmedabad`,`Dongguan`,`Tainan`,`Cabo San Lucas`,`Nanning`,`Kaohsiung`,`Kolkata (Calcutta)`,`Shenzhen`,`Chittagong`,`Hong Kong`,`Tampico`,`San Luis Potosí`,`Aguascalientes`,`Jeddah`,`Cockburn Town`,`Mecca`,`Honolulu`,`Chhattisgarh`,`Cancún`,`Surat`,`Nagpur`,`León`,`Hanoi`,`Mérida`,`Hai Phong`,`Zapopan`,`Puerto Vallarta`,`Guadalajara`,`Querétaro`,`Haikou`,`Santiago de Cuba`,`Chiang Rai`,`Naypyidaw`,`Hilo`,`George Town`,`Veracruz`,`Puebla`,`Mumbai`,`Chiang Mai`,`Port-au-Prince`,`Pune`,`Santo Domingo`,`San Juan`,`Road Town`,`Charlotte Amalie`,`The Valley`,`Nouakchott`,`Kingston`,`Vientiane`,`Visakhapatnam`,`Belize City`,`Udon Thani`,`Hyderabad`,`Basseterre`,`Belmopan`,`St. John's`,`Salalah`,`Acapulco`,`Yangon`,`Timbuktu`,`Huế`,`Khon Kaen`,`Da Nang`,`Basse-Terre`,`Omdurman`,`Khartoum`,`Sana'a`,`Asmara`,`Roseau`,`Saipan`,`Son My`,`Nakhon Ratchasima`,`Praia`,`Tapachula`,`Quetzaltenango`,`Thiès`,`Dakar`,`Quezon City`,`Guatemala City`,`Fort-de-France`,`Manila`,`Makati`,`Ayutthaya`,`Tegucigalpa`,`Castries`,`Bangkok`,`San Salvador`,`Niamey`,`Dededo`,`Hagåtña`,`Banjul`,`Serekunda`,`Siem Reap`,`Brikama`,`Kingstown`,`Bridgetown`,`Chennai (Madras)`,`Bangalore`,`Pattaya`,`Koulikoro`,`Bamako`,`Chinandega`,`Oranjestad`,`Ouagadougou`,`Managua`,`Willemstad`,`N'Djamena`,`St. George's`,`Kano`,`Bissau`,`Port Blair`,`Djibouti`,`Phnom Penh`,`Bobo-Dioulasso`,`Barranquilla`,`Ho Chi Minh City`,`Iloilo City`,`Port of Spain`,`Maracaibo`,`Liberia`,`Caracas`,`Chaguanas`,`Cartagena`,`San Fernando`,`Cebu City`,`Maracay`,`Valencia`,`Alajuela`,`Limón`,`Jaffna`,`Hargeisa`,`Puntarenas`,`Kochi`,`San José`,`Tagbilaran`,`Conakry`,`Tamale`,`Surat Thani`,`Abuja`,`Addis Ababa`,`Panama City`,`Mérida`,`Moundou`,`Trivandrum`,`Freetown`,`Ciudad Bolívar`,`Cúcuta`,`Phuket`,`San Cristóbal`,`Nzérékoré`,`Batticaloa`,`Melekeok`,`Weno`,`Ibadan`,`Koror`,`Kandy`,`Majuro`,`Davao City`,`Hat Yai`,`Colombo`,`Palikir`,`Sri Jayawardenapura-Kotte`,`Zamboanga City`,`Yamoussoukro`,`Georgetown`,`Kumasi`,`Porto-Novo`,`Lagos`,`Enugu`,`Cotonou`,`Benin City`,`Monrovia`,`Medellín`,`Lomé`,`Kota Bharu`,`Alor Setar`,`Kota Kinabalu`,`Paramaribo`,`Puerto Ayacucho`,`Accra`,`Banda Aceh`,`George Town`,`Abidjan`,`Cayenne`,`Sekondi-Takoradi`,`Bandar Seri Begawan`,`Juba`,`Port Harcourt`,`Ipoh`,`Bogotá`,`Miri`,`Bangui`,`Malé`,`Douala`,`Yaoundé`,`Malabo`,`Medan`,`Santiago de Cali`,`Kuala Lumpur`,`Boa Vista`,`Malacca Town`,`Mogadishu`,`Kuching`,`Johor Bahru`,`South Tarawa`,`Singapore`,`Pekanbaru`,`Libreville`,`São Tomé`,`Kampala`,`Entebbe`,`Mbandaka`,`Macapá`,`Pontianak`,`Quito`,`Kismayo`,`Yaren District`,`Padang`,`Balikpapan`,`Nairobi`,`Belém`,`Kigali`,`Guayaquil`,`Mwanza`,`São Luís`,`Jayapura`,`Palembang`,`Manaus`,`Bujumbura`,`Sobral`,`Ambon`,`Fortaleza`,`Iquitos`,`Fernando de Noronha`,`Mombasa`,`Brazzaville`,`Kinshasa`,`Victoria`,`Teresina`,`Makassar`,`Imperatriz`,`Natal`,`Zanzibar City`,`Dodoma`,`Jakarta`,`Bogor`,`Dar es Salaam`,`Bandung`,`Semarang`,`João Pessoa`,`Juazeiro do Norte`,`Campina Grande`,`Surabaya`,`Yogyakarta`,`Malang`,`Recife`,`Trujillo`,`Caruaru`,`Funafuti`,`Dili`,`Denpasar`,`Porto Velho`,`Luanda`,`Garanhuns`,`Nukulaelae`,`Petrolina`,`Honiara`,`Port Moresby`,`Maceió`,`Rio Branco`,`Aracaju`,`Palmas`,`Lubumbashi`,`Moroni`,`Sinop`,`Lima`,`Darwin`,`Huambo`,`Mamoudzou`,`Ndola`,`Salvador`,`Ayacucho`,`Mata-Utu`,`Cusco`,`Apia`,`Lilongwe`,`Pago Pago`,`Ilhéus`,`Lusaka`,`Cuiabá`,`Blantyre`,`Brasília`,`Jamestown`,`Arequipa`,`Labasa`,`Rabi Island`,`La Paz`,`Goiânia`,`Cairns`,`Papeete`,`Port Vila`,`Santa Cruz de la Sierra`,`Livingstone`,`Harare`,`Suva`,`Arica`,`Governador Valadares`,`Uberlândia`,`Antananarivo`,`Mutare`,`Sucre`,`Alofi`,`Townsville`,`Gweru`,`Belo Horizonte`,`Port Louis`,`Bulawayo`,`Iquique`,`Port Hedland`,`Vitória`,`Campo Grande`,`São José do Rio Preto`,`Saint-Denis`,`Nukuʻalofa`,`Francistown`,`Ribeirão Preto`,`Avarua`,`Juiz de Fora`,`Poços de Caldas`,`Araraquara`,`Nouméa`,`Bauru`,`Calama`,`Windhoek`,`Assis`,`Campinas`,`Rio de Janeiro`,`São José dos Campos`,`Rockhampton`,`São Paulo`,`Antofagasta`,`Polokwane`,`Gaborone`,`Salta`,`Adamstown`,`Asunción`,`Curitiba`,`Nelspruit`,`Ciudad del Este`,`Pretoria`,`Mafikeng`,`Maputo`,`Johannesburg`,`Mbabane`,`Lobamba`,`Manzini`,`San Miguel de Tucumán`,`Hanga Roa`,`Copiapó`,`Brisbane`,`Corrientes`,`Florianópolis`,`Gold Coast`,`Kimberley`,`Kingston`,`Bloemfontein`,`Maseru`,`Pietermaritzburg`,`Durban`,`La Serena`,`Córdoba`,`Santa Fe`,`Pelotas`,`Perth`,`San Juan`,`Mandurah`,`Bhisho`,`Mendoza`,`Newcastle`,`Rosario`,`Viña del Mar`,`Valparaíso`,`Santiago`,`Chuí`,`Sydney`,`Cape Town`,`Port Elizabeth`,`Wollongong`,`Buenos Aires`,`Montevideo`,`Adelaide`,`Canberra`,`Concepción`,`Auckland`,`Edinburgh of the Seven Seas`,`Hamilton`,`Melbourne`,`Mar del Plata`,`Geelong`,`Bahía Blanca`,`Temuco`,`Neuquén`,`Hastings`,`Valdivia`,`San Carlos de Bariloche`,`Nelson`,`Wellington`,`Puerto Montt`,`Launceston, Tasmania`,`Hobart`,`Trelew`,`Christchurch`,`Waitangi`,`Puerto Aisén`,`Coihaique`,`Comodoro Rivadavia`,`Dunedin`,`Invercargill`,`Río Gallegos`,`Stanley`,`Punta Arenas`,`Grytviken`,`Ushuaia`,`Puerto Williams`,`Puerto Toro`,`Villa Las Estrellas`,`Esperanza`,`Rothera`,`Concordia`]})),fa=i((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNamesTypeAttributes=e.singularizeTypeNames=e.modifyTypeNames=e.namesTypeAttributeKind=e.TooManyTypeNames=e.RegularTypeNames=e.TypeNames=e.tooManyNamesThreshold=e.initTypeNames=void 0;var i=r(ta()),o=a(),s=Q(),c=na(),l=ua(),u=da(),d,f;function p(){d=new u.Chance(31415),f=new Set}e.initTypeNames=p,p();function m(){for(;;){let e=`${d.city()} ${d.animal()}`;if(!f.has(e))return f.add(e),e}}function h(e){let t=(0,o.iterableFirst)(e);if(t===void 0)return(0,s.panic)(`Named type has no names`);if(e.size===1)return t;let n=(0,o.setMap)(e,e=>(0,l.splitIntoWords)(e).map(e=>e.word.toLowerCase()).join(`_`)),r=(0,s.defined)((0,o.iterableFirst)(n));if(n.size===1)return r;let i=r.length,a=r.length;for(let e of(0,o.iterableSkip)(n,1)){i=Math.min(i,e.length);for(let t=0;t<i;t++)if(r[t]!==e[t]){i=t;break}a=Math.min(a,e.length);for(let t=0;t<a;t++)if(r[r.length-t-1]!==e[e.length-t-1]){a=t;break}}let c=(i>2?r.slice(0,i):``)+(a>2?r.slice(r.length-a):``);return c.length>2?c:r}e.tooManyNamesThreshold=1e3;var g=class t{static makeWithDistance(t,n,r){return t.size>=e.tooManyNamesThreshold?new v(r):((n===void 0||n.size>e.tooManyNamesThreshold)&&(n=void 0),new _(t,n,r))}static make(e,n,r){return t.makeWithDistance(e,n,r?1:0)}constructor(e){this.distance=e}get areInferred(){return this.distance>0}};e.TypeNames=g;var _=class e extends g{constructor(e,t,n){super(n),this.names=e,this._alternativeNames=t}add(t,n=0){let r=new Set(this.names),i=this.distance,a=(0,o.definedMap)(this._alternativeNames,e=>new Set(e));for(let c=n;c<t.length;c++){let n=t[c];if(n instanceof e&&n._alternativeNames!==void 0&&(a===void 0&&(a=new Set),(0,o.setUnionInto)(a,n._alternativeNames)),!(n.distance>i)){if(!(n instanceof e))return(0,s.assert)(n instanceof v,`Unknown TypeNames instance`),n.add(t,c+1);n.distance<i?(r=new Set(n.names),i=n.distance,a=(0,o.definedMap)(n._alternativeNames,e=>new Set(e))):((0,s.assert)(n.distance===i,`This should be the only case left`),(0,o.setUnionInto)(r,n.names))}}return g.makeWithDistance(r,a,i)}clearInferred(){let e=this.areInferred?new Set:this.names;return g.makeWithDistance(e,new Set,this.distance)}get combinedName(){return h(this.names)}get proposedNames(){let e=new Set([this.combinedName]);return this._alternativeNames===void 0||(0,o.setUnionInto)(e,this._alternativeNames),e}makeInferred(){return g.makeWithDistance(this.names,this._alternativeNames,this.distance+1)}singularize(){return g.makeWithDistance((0,o.setMap)(this.names,i.singular),(0,o.definedMap)(this._alternativeNames,e=>(0,o.setMap)(e,i.singular)),this.distance+1)}toString(){let e=`${this.areInferred?`distance ${this.distance}`:`given`} ${Array.from(this.names).join(`,`)}`;return this._alternativeNames===void 0?e:`${e} (${Array.from(this._alternativeNames).join(`,`)})`}};e.RegularTypeNames=_;var v=class e extends g{constructor(e,t){super(e),t===void 0&&(t=m()),this.names=new Set([t])}get combinedName(){return(0,s.defined)((0,o.iterableFirst)(this.names))}get proposedNames(){return this.names}add(e,t=0){if(!this.areInferred)return this;for(let n=t;n<e.length;n++){let t=e[n];if(t.distance<this.distance)return t.add(e,n+1)}return this}clearInferred(){return this.areInferred?g.makeWithDistance(new Set,new Set,this.distance):this}makeInferred(){return new e(this.distance+1,(0,o.iterableFirst)(this.names))}singularize(){return this}toString(){return`too many ${this.combinedName}`}};e.TooManyTypeNames=v,e.namesTypeAttributeKind=new class extends c.TypeAttributeKind{constructor(){super(`names`)}combine(e){return(0,s.assert)(e.length>0,`Can't combine zero type names`),e[0].add(e,1)}makeInferred(e){return e.makeInferred()}increaseDistance(e){return e.makeInferred()}stringify(e){return e.toString()}};function y(t,n){return e.namesTypeAttributeKind.modifyInAttributes(t,n)}e.modifyTypeNames=y;function b(e){return y(e,e=>{if(e!==void 0)return e.singularize()})}e.singularizeTypeNames=b;function x(t,n){let r;return r=typeof t==`string`?g.make(new Set([t]),new Set,(0,s.defined)(n)):t,e.namesTypeAttributeKind.makeAttributes(r)}e.makeNamesTypeAttributes=x})),pa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeBuilder=e.getNoStringTypeMapping=e.stringTypeMappingGet=e.provenanceTypeAttributeKind=void 0;var t=a(),n=wa(),r=va(),i=na(),o=Q(),s=ma();e.provenanceTypeAttributeKind=new class extends i.TypeAttributeKind{constructor(){super(`provenance`)}appliesToTypeKind(e){return!0}combine(e){return(0,t.setUnionManyInto)(new Set,e)}makeInferred(e){return e}stringify(e){return Array.from(e).sort().map(e=>e.toString()).join(`,`)}};function c(e,t){let n=e.get(t);return n===void 0?`string`:n}e.stringTypeMappingGet=c;var l;function u(){return l===void 0&&(l=new Map(Array.from(n.transformedStringTypeKinds).map(e=>[e,e]))),l}e.getNoStringTypeMapping=u,e.TypeBuilder=class{constructor(e,n,i,a,s,c){this._stringTypeMapping=n,this.canonicalOrder=i,this._allPropertiesOptional=a,this._addProvenanceAttributes=s,this.topLevels=new Map,this.types=[],this.typeAttributes=[],this._addedForwardingIntersection=!1,this._typeForIdentity=new t.EqualityMap,(0,o.assert)(!s||!c,`We can't both inherit as well as add provenance`),this.typeGraph=new r.TypeGraph(this,e,s||c)}addTopLevel(e,t){(0,o.assert)(!this.topLevels.has(e),`Trying to add top-level with existing name`),(0,o.assert)(this.types[(0,r.typeRefIndex)(t)]!==void 0,`Trying to add a top-level type that doesn't exist (yet?)`),this.topLevels.set(e,t)}reserveTypeRef(){let t=this.types.length;this.types.push(void 0);let n=(0,r.makeTypeRef)(this.typeGraph,t),a=this._addProvenanceAttributes?e.provenanceTypeAttributeKind.makeAttributes(new Set([t])):i.emptyTypeAttributes;return this.typeAttributes.push(a),n}assertTypeRefGraph(e){e!==void 0&&(0,r.assertTypeRefGraph)(e,this.typeGraph)}assertTypeRefSetGraph(e){e!==void 0&&e.forEach(e=>this.assertTypeRefGraph(e))}filterTypeAttributes(e,n){let r=(0,t.mapFilter)(n,(t,n)=>n.appliesToTypeKind(e.kind));return n.size!==r.size&&this.setLostTypeAttributes(),r}commitType(e,t){this.assertTypeRefGraph(e);let n=(0,r.typeRefIndex)(e);(0,o.assert)(this.types[n]===void 0,`A type index was committed twice`),this.types[n]=t,this.typeAttributes[n]=this.filterTypeAttributes(t,this.typeAttributes[n])}addType(e,t,n){e!==void 0&&(this.assertTypeRefGraph(e),(0,o.assert)(this.types[(0,r.typeRefIndex)(e)]===void 0));let a=e===void 0?this.reserveTypeRef():e;if(n!==void 0){let e=(0,r.typeRefIndex)(a);this.typeAttributes[e]=(0,i.combineTypeAttributes)(`union`,this.typeAttributes[e],n)}let s=t(a);return this.commitType(a,s),a}typeAtIndex(e){let t=this.types[e];return t===void 0?(0,o.panic)(`Trying to deref an undefined type in a type builder`):t}atIndex(e){return[this.typeAtIndex(e),this.typeAttributes[e]]}addAttributes(e,n){this.assertTypeRefGraph(e);let a=(0,r.typeRefIndex)(e),s=this.typeAttributes[a];(0,o.assert)((0,t.iterableEvery)(n,([e,n])=>{if(!e.inIdentity)return!0;let r=s.get(e);return r===void 0?!1:(0,t.areEqual)(r,n)}),`Can't add different identity type attributes to an existing type`);let c=this.types[a];c!==void 0&&(n=this.filterTypeAttributes(c,n));let l=(0,t.mapFilter)(n,(e,t)=>!t.inIdentity);this.typeAttributes[a]=(0,i.combineTypeAttributes)(`union`,s,l)}finish(){return this.typeGraph.freeze(this.topLevels,this.types.map(o.defined),this.typeAttributes),this.typeGraph}addForwardingIntersection(e,t){return this.assertTypeRefGraph(t),this._addedForwardingIntersection=!0,this.addType(e,e=>new n.IntersectionType(e,this.typeGraph,new Set([t])),void 0)}forwardIfNecessary(e,t){if(t!==void 0)return e===void 0?t:this.addForwardingIntersection(e,t)}get didAddForwardingIntersection(){return this._addedForwardingIntersection}registerTypeForIdentity(e,t){e!==void 0&&this._typeForIdentity.set(e,t)}makeIdentity(e){return e()}getOrAddType(e,n,r,i){let a=this.makeIdentity(e),o;if(o=a===void 0?void 0:this._typeForIdentity.get(a),o!==void 0){let e=this.forwardIfNecessary(i,o);return r!==void 0&&this.addAttributes(e,(0,t.mapFilter)(r,(e,t)=>!t.inIdentity)),e}let s=this.addType(i,n,r);return this.registerTypeForIdentity(a,s),s}registerType(e){this.registerTypeForIdentity(e.identity,e.typeRef)}getPrimitiveType(e,r,a){let o=(0,t.withDefault)(r,i.emptyTypeAttributes),l=e===`string`?void 0:s.StringTypes.unrestricted;return(0,n.isPrimitiveStringTypeKind)(e)&&e!==`string`&&(e=c(this._stringTypeMapping,e)),e===`string`?this.getStringType(o,l,a):this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(e,o),t=>new n.PrimitiveType(t,this.typeGraph,e),o,a)}getStringType(e,r,a){let c=(0,t.mapFind)(e,(e,t)=>t===s.stringTypesTypeAttributeKind);return(0,o.assert)(r===void 0!=(c===void 0),`Must instantiate string type with one enum case attribute`),c===void 0&&(e=(0,i.combineTypeAttributes)(`union`,e,s.stringTypesTypeAttributeKind.makeAttributes((0,o.defined)(r)))),this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(`string`,e),e=>new n.PrimitiveType(e,this.typeGraph,`string`),e,a)}getEnumType(e,t,r){return this.getOrAddType(()=>(0,n.enumTypeIdentity)(e,t),e=>new n.EnumType(e,this.typeGraph,t),e,r)}makeClassProperty(e,t){return new n.ClassProperty(e,this.typeGraph,t)}getUniqueObjectType(e,r,i,a){return this.assertTypeRefGraph(i),r=(0,t.definedMap)(r,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ObjectType(e,this.typeGraph,`object`,!0,r,i),e)}getUniqueMapType(e){return this.addType(e,e=>new n.MapType(e,this.typeGraph,void 0),void 0)}getMapType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.mapTypeIdentify)(e,t),e=>new n.MapType(e,this.typeGraph,t),e,r)}setObjectProperties(e,t,i){this.assertTypeRefGraph(i);let a=(0,r.derefTypeRef)(e,this.typeGraph);if(!(a instanceof n.ObjectType))return(0,o.panic)(`Tried to set properties of non-object type`);a.setProperties(this.modifyPropertiesIfNecessary(t),i),this.registerType(a)}getUniqueArrayType(e){return this.addType(e,e=>new n.ArrayType(e,this.typeGraph,void 0),void 0)}getArrayType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.arrayTypeIdentity)(e,t),e=>new n.ArrayType(e,this.typeGraph,t),e,r)}setArrayItems(e,t){this.assertTypeRefGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.ArrayType))return(0,o.panic)(`Tried to set items of non-array type`);i.setItems(t),this.registerType(i)}modifyPropertiesIfNecessary(e){return e.forEach(e=>this.assertTypeRefGraph(e.typeRef)),this.canonicalOrder&&(e=(0,t.mapSortByKey)(e)),this._allPropertiesOptional&&(e=(0,t.mapMap)(e,e=>this.makeClassProperty(e.typeRef,!0))),e}getClassType(e,t,r){return t=this.modifyPropertiesIfNecessary(t),this.getOrAddType(()=>(0,n.classTypeIdentity)(e,t),e=>new n.ClassType(e,this.typeGraph,!1,t),e,r)}getUniqueClassType(e,r,i,a){return i=(0,t.definedMap)(i,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ClassType(e,this.typeGraph,r,i),e)}getUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.unionTypeIdentity)(e,t),e=>new n.UnionType(e,this.typeGraph,t),e,r)}getUniqueUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.UnionType(e,this.typeGraph,t),e)}getIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.intersectionTypeIdentity)(e,t),e=>new n.IntersectionType(e,this.typeGraph,t),e,r)}getUniqueIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.IntersectionType(e,this.typeGraph,t),e)}setSetOperationMembers(e,t){this.assertTypeRefSetGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.UnionType||i instanceof n.IntersectionType))return(0,o.panic)(`Tried to set members of non-set-operation type`);i.setMembers(t),this.registerType(i)}setLostTypeAttributes(){}}})),ma=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inferTransformedStringTypeKindForString=e.stringTypesTypeAttributeKind=e.StringTypes=void 0;var t=a(),n=na(),r=Q(),i=pa(),o=class e{static fromCase(t,n){let r={};return r[t]=n,new e(new Map([[t,n]]),new Set)}static fromCases(t){let n={};for(let e of t)n[e]=1;return new e(new Map(t.map(e=>[e,1])),new Set)}constructor(e,t){this.cases=e,this.transformations=t,e===void 0&&(0,r.assert)(t.size===0,`We can't have an unrestricted string that also allows transformations`)}get isRestricted(){return this.cases!==void 0}union(n,r){if(this.cases===void 0)return this;let i=new Map(this.cases),a=new Set(this.transformations);for(let e=r;e<n.length;e++){let r=n[e];if(r.cases===void 0)return r;(0,t.mapMergeWithInto)(i,(e,t)=>e+t,r.cases),(0,t.setUnionInto)(a,r.transformations)}return new e(i,a)}intersect(n,i){let a=this.cases,o=this.transformations;for(let e=i;e<n.length;e++){let i=n[e];if(a===void 0)a=(0,t.definedMap)(i.cases,e=>new Map(e));else if(i.cases!==void 0){let e=a,n=i.cases;a=(0,t.mapMap)((0,t.setIntersect)(e.keys(),new Set(n.keys())).entries(),t=>Math.min((0,r.defined)(e.get(t)),(0,r.defined)(n.get(t))))}o=(0,t.setIntersect)(o,i.transformations)}return new e(a,o)}applyStringTypeMapping(t){if(!this.isRestricted)return this;let n=new Set;for(let r of this.transformations){let a=(0,i.stringTypeMappingGet)(t,r);if(a===`string`)return e.unrestricted;n.add(a)}return new e(this.cases,new Set(n))}equals(n){return n instanceof e?(0,t.areEqual)(this.cases,n.cases)&&(0,t.areEqual)(this.transformations,n.transformations):!1}hashCode(){let e=(0,t.hashCodeOf)(this.cases);return e=(0,t.addHashCode)(e,(0,t.hashCodeOf)(this.transformations)),e}toString(){let e=[],n=this.cases;if(n===void 0)e.push(`unrestricted`);else{let r=(0,t.iterableFirst)(n.keys());r===void 0?e.push(`enum with no cases`):e.push(`${n.size.toString()} enums: ${r} (${n.get(r)}), ...`)}return e.concat(Array.from(this.transformations)).join(`,`)}};e.StringTypes=o,o.unrestricted=new o(void 0,new Set),e.stringTypesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`stringTypes`)}get inIdentity(){return!0}requiresUniqueIdentity(e){return e.cases!==void 0&&e.cases.size>0}combine(e){return(0,r.assert)(e.length>0),e[0].union(e,1)}intersect(e){return(0,r.assert)(e.length>0),e[0].intersect(e,1)}makeInferred(e){}stringify(e){return e.toString()}};var s=/^(0|-?[1-9]\d*)$/,c=1<<31,l=-(c+1);function u(e){if(e.match(s)===null)return!1;let t=parseInt(e,10);return t>=c&&t<=l}var d=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function f(e){return e.match(d)!==null}var p=/^(https?|ftp):\/\/[^{}]+$/;function m(e){return e.match(p)!==null}function h(e,t){if(!(e.length===0||`0123456789-abcdefth`.indexOf(e[0])<0)){if(t.isDate(e))return`date`;if(t.isTime(e))return`time`;if(t.isDateTime(e))return`date-time`;if(u(e))return`integer-string`;if(e===`false`||e===`true`)return`bool-string`;if(f(e))return`uuid`;if(m(e))return`uri`}}e.inferTransformedStringTypeKindForString=h})),ha=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.matchCompoundType=e.matchType=e.matchTypeExhaustive=e.stringTypesForType=e.directlyReachableSingleNamedType=e.directlyReachableTypes=e.separateNamedTypes=e.isNamedType=e.getNullAsOptional=e.nonNullTypeCases=e.nullableFromUnion=e.removeNullFromType=e.removeNullFromUnion=e.isAnyOrNull=e.combineTypeAttributesOfTypes=e.makeGroupsToFlatten=e.setOperationMembersRecursively=e.assertIsClass=e.assertIsObject=void 0;var t=a(),n=Q(),r=na(),i=wa(),o=ma();function s(e){return e instanceof i.ObjectType?e:(0,n.panic)(`Supposed object type is not an object type`)}e.assertIsObject=s;function c(e){return e instanceof i.ClassType?e:(0,n.panic)(`Supposed class type is not a class type`)}e.assertIsClass=c;function l(e,t){let n=Array.isArray(e)?e:[e],i=n[0].kind,a=i!==`intersection`,o=new Set,s=new Set,c=r.emptyTypeAttributes;function l(e){if(e.kind===i){let n=e;if(o.has(n))return;o.add(n),t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()));for(let e of n.members)l(e)}else a||e.kind!==`any`?s.add(e):t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()))}for(let e of n)l(e);return[s,c]}e.setOperationMembersRecursively=l;function u(e,r){let i=new t.EqualityMap;for(let a of e){let e=new Set(l(a,void 0)[0]);if(r!==void 0&&!r(e))continue;let o=i.get(e);o===void 0&&(o=new Set,e.size===1&&o.add((0,n.defined)((0,t.iterableFirst)(e)))),o.add(a),i.set(e,o)}return Array.from(i.values()).map(e=>Array.from(e))}e.makeGroupsToFlatten=u;function d(e,t){return(0,r.combineTypeAttributes)(e,Array.from(t).map(e=>e.getAttributes()))}e.combineTypeAttributesOfTypes=d;function f(e){return e.kind===`any`||e.kind===`null`}e.isAnyOrNull=f;function p(e,n=!1){function r(e){return n===!1?e:n===!0?(0,t.setSortBy)(e,e=>e.kind):(0,t.setSortBy)(e,n)}let i=e.findMember(`null`);return i===void 0?[null,r(e.members)]:[i,r((0,t.setFilter)(e.members,e=>e.kind!==`null`))]}e.removeNullFromUnion=p;function m(e){return e.kind===`null`?[e,new Set]:e instanceof i.UnionType?p(e):[null,new Set([e])]}e.removeNullFromType=m;function h(e){let[r,i]=p(e);return r===null||i.size!==1?null:(0,n.defined)((0,t.iterableFirst)(i))}e.nullableFromUnion=h;function g(e){return m(e)[1]}e.nonNullTypeCases=g;function _(e){let[t,n]=m(e.type);return e.isOptional?[!0,n]:[t!==null,n]}e.getNullAsOptional=_;function v(e){return[`class`,`union`,`enum`,`object`].indexOf(e.kind)>=0}e.isNamedType=v;function y(e){return{objects:(0,t.setFilter)(e,e=>e.kind===`object`||e.kind===`class`),enums:(0,t.setFilter)(e,e=>e instanceof i.EnumType),unions:(0,t.setFilter)(e,e=>e instanceof i.UnionType)}}e.separateNamedTypes=y;function b(e,n){let r=n(e);return r===null?(0,t.setUnion)(...Array.from(e.getNonAttributeChildren()).map(e=>b(e,n))):r}e.directlyReachableTypes=b;function x(e){let r=b(e,e=>!(e instanceof i.UnionType)&&v(e)||e instanceof i.UnionType&&h(e)===null?new Set([e]):null);return(0,n.assert)(r.size<=1,`Cannot have more than one defined type per top-level`),(0,t.iterableFirst)(r)}e.directlyReachableSingleNamedType=x;function S(e){(0,n.assert)(e.kind===`string`,`Only strings can have string types`);let t=o.stringTypesTypeAttributeKind.tryGetInAttributes(e.getAttributes());return t===void 0?(0,n.panic)(`All strings must have a string type attribute`):t}e.stringTypesForType=S;function C(e,t,r,a,o,s,c,l,u,d,f,p,m,h,g){if(e.isPrimitive()){if((0,i.isPrimitiveStringTypeKind)(e.kind))return e.kind===`string`?l(e):g(e);let u=e.kind,d={none:t,any:r,null:a,bool:o,integer:s,double:c}[u];return d===void 0?(0,n.assertNever)(d):d(e)}else if(e instanceof i.ArrayType)return u(e);else if(e instanceof i.ClassType)return d(e);else if(e instanceof i.MapType)return f(e);else if(e instanceof i.ObjectType)return p(e);else if(e instanceof i.EnumType)return m(e);else if(e instanceof i.UnionType)return h(e);return(0,n.panic)(`Unknown type ${e.kind}`)}e.matchTypeExhaustive=C;function w(e,t,r,i,a,o,s,c,l,u,d,f,p){function m(e){return(0,n.panic)(`Unsupported type ${e.kind} in non-exhaustive match`)}return C(e,m,t,r,i,a,o,s,c,l,u,m,d,f,p||m)}e.matchType=w;function T(e,t,n,r,i,a){function o(e){}return C(e,o,o,o,o,o,o,o,t,n,r,i,o,a,o)}e.matchCompoundType=T})),ga=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphRewriteBuilder=e.GraphRemapBuilder=e.BaseGraphRewriteBuilder=e.TypeReconstituter=void 0;var t=a(),n=ha(),r=va(),i=na(),o=Q(),s=pa(),c=class{constructor(e,t,n,r,i){this._typeBuilder=e,this._makeClassUnique=t,this._typeAttributes=n,this._forwardingRef=r,this._register=i,this._wasUsed=!1,this._typeRef=void 0}builderForNewType(){return(0,o.assert)(!this._wasUsed,`TypeReconstituter used more than once`),this._wasUsed=!0,this._typeBuilder}builderForSetting(){return(0,o.assert)(this._wasUsed&&this._typeRef!==void 0,`Can't set type members before constructing a type`),this._typeBuilder}getResult(){return this._typeRef===void 0?(0,o.panic)(`Type was not reconstituted`):this._typeRef}register(e){(0,o.assert)(this._typeRef===void 0,`Cannot register a type twice`),this._typeRef=e,this._register(e)}registerAndAddAttributes(e){this._typeBuilder.addAttributes(e,this._typeAttributes),this.register(e)}lookup(e){if((0,o.assert)(!this._wasUsed,`Cannot lookup constituents after building type`),(0,r.isTypeRef)(e))return this._typeBuilder.lookupTypeRefs([e],void 0,!1);{let t=Array.from(e).map(e=>this._typeBuilder.lookupTypeRefs([e],void 0,!1));return t.some(e=>e===void 0)?void 0:t}}lookupMap(e){let t=this.lookup(e.values());if(t===void 0)return;(0,o.assert)(t.length===e.size,`Didn't get back the correct number of types`);let n=new Map,r=0;for(let i of e.keys())n.set(i,t[r]),r+=1;return n}reconstitute(e){return(0,o.assert)(this._wasUsed,`Cannot reconstitute constituents before building type`),(0,r.isTypeRef)(e)?this._typeBuilder.reconstituteTypeRef(e):Array.from(e).map(e=>this._typeBuilder.reconstituteTypeRef(e))}reconstituteMap(e){return(0,t.mapMap)(e,e=>this._typeBuilder.reconstituteTypeRef(e))}getPrimitiveType(e){this.register(this.builderForNewType().getPrimitiveType(e,this._typeAttributes,this._forwardingRef))}getEnumType(e){this.register(this.builderForNewType().getEnumType(this._typeAttributes,e,this._forwardingRef))}getUniqueMapType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueMapType(this._forwardingRef))}getMapType(e){this.register(this.builderForNewType().getMapType(this._typeAttributes,e,this._forwardingRef))}getUniqueArrayType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueArrayType(this._forwardingRef))}getArrayType(e){this.register(this.builderForNewType().getArrayType(this._typeAttributes,e,this._forwardingRef))}setArrayItems(e){this.builderForSetting().setArrayItems(this.getResult(),e)}makeClassProperty(e,t){return this._typeBuilder.makeClassProperty(e,t)}getObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getUniqueObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getClassType(e){if(this._makeClassUnique){this.getUniqueClassType(!1,e);return}this.register(this.builderForNewType().getClassType(this._typeAttributes,e,this._forwardingRef))}getUniqueClassType(e,t){this.register(this.builderForNewType().getUniqueClassType(this._typeAttributes,e,t,this._forwardingRef))}setObjectProperties(e,t){this.builderForSetting().setObjectProperties(this.getResult(),e,t)}getUnionType(e){this.register(this.builderForNewType().getUnionType(this._typeAttributes,e,this._forwardingRef))}getUniqueUnionType(){this.register(this.builderForNewType().getUniqueUnionType(this._typeAttributes,void 0,this._forwardingRef))}getIntersectionType(e){this.register(this.builderForNewType().getIntersectionType(this._typeAttributes,e,this._forwardingRef))}getUniqueIntersectionType(e){this.register(this.builderForNewType().getUniqueIntersectionType(this._typeAttributes,e,this._forwardingRef))}setSetOperationMembers(e){this.builderForSetting().setSetOperationMembers(this.getResult(),e)}};e.TypeReconstituter=c;var l=class extends s.TypeBuilder{constructor(e,t,n,r,i){super(e.serial+1,t,n,!1,!1,r),this.originalGraph=e,this.debugPrint=i,this.reconstitutedTypes=new Map,this._lostTypeAttributes=!1,this._printIndent=0}withForwardingRef(e,t){if(e!==void 0)return t(e);let n=this.reserveTypeRef(),r=t(n);return(0,o.assert)(r===n,`Type creator didn't return its forwarding ref`),r}reconstituteType(e,t,n){return this.reconstituteTypeRef(e.typeRef,t,n)}reconstituteTypeRef(e,t,n){let r=this.lookupTypeRefs([e],n);return r===void 0?this.forceReconstituteTypeRef(e,t,n):(t!==void 0&&this.addAttributes(r,t),r)}reconstituteTypeAttributes(e){return(0,t.mapMap)(e,(e,t)=>t.reconstitute(this,e))}assertTypeRefsToReconstitute(e,t){(0,o.assert)(e.length>0,`Must have at least one type to reconstitute`);for(let t of e)(0,r.assertTypeRefGraph)(t,this.originalGraph);t!==void 0&&(0,r.assertTypeRefGraph)(t,this.typeGraph)}changeDebugPrintIndent(e){this._printIndent+=e}get debugPrintIndentation(){return(0,o.indentationString)(this._printIndent)}finish(){for(let[e,t]of this.originalGraph.topLevels)this.addTopLevel(e,this.reconstituteType(t));return super.finish()}setLostTypeAttributes(){this._lostTypeAttributes=!0}get lostTypeAttributes(){return this._lostTypeAttributes}};e.BaseGraphRewriteBuilder=l,e.GraphRemapBuilder=class extends l{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._map=i,this._attributeSources=new Map;for(let[e,t]of i){let n=this._attributeSources.get(t);n===void 0&&(n=[t],this._attributeSources.set(t,n)),n.push(e)}}makeIdentity(e){}getMapTarget(e){let t=this._map.get((0,r.derefTypeRef)(e,this.originalGraph));return t===void 0?e:((0,o.assert)(this._map.get(t)===void 0,`We have a type that's remapped to a remapped type`),t.typeRef)}addForwardingIntersection(e,t){return(0,o.panic)(`We can't add forwarding intersections when we're removing forwarding intersections`)}lookupTypeRefs(e,t){(0,o.assert)(t===void 0,`We can't have a forwarding ref when we remap`),this.assertTypeRefsToReconstitute(e,t);let n=this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[0])));if(n!==void 0){for(let t=1;t<e.length;t++)if(n!==this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[t]))))return;return n}}forceReconstituteTypeRef(e,t,a){e=this.getMapTarget(e);let s=(0,r.typeRefIndex)(e);return(0,o.assert)(this.reconstitutedTypes.get(s)===void 0,`Type has already been reconstituted`),(0,o.assert)(a===void 0,`We can't have a forwarding ref when we remap`),this.withForwardingRef(void 0,a=>{this.reconstitutedTypes.set(s,a),this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${s} as ${(0,r.typeRefIndex)(a)}`),this.changeDebugPrintIndent(1));let[l,u]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),d=this._attributeSources.get(l);t===void 0&&(t=i.emptyTypeAttributes),t=d===void 0?(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(u)):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes((0,n.combineTypeAttributesOfTypes)(`union`,d)));let f=t,p=new c(this,this.canonicalOrder,f,a,e=>{(0,o.assert)(e===a,`Reconstituted type as a different ref`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${s} as ${(0,r.typeRefIndex)(e)}`))});return l.reconstitute(p,this.canonicalOrder),p.getResult()})}},e.GraphRewriteBuilder=class extends l{constructor(e,n,r,i,a,s,c){super(e,n,r,i,s),this._replacer=c,this._reconstitutedUnions=new t.EqualityMap,this._setsToReplaceByMember=new Map;for(let e of a){let t=new Set(e);for(let e of t){let n=e.index;(0,o.assert)(!this._setsToReplaceByMember.has(n),`A type is member of more than one set to be replaced`),this._setsToReplaceByMember.set(n,t)}}}registerUnion(e,t){let n=new Set(e);(0,o.assert)(!this._reconstitutedUnions.has(n),`Cannot register reconstituted set twice`),this._reconstitutedUnions.set(n,t)}replaceSet(e,t){return this.withForwardingRef(t,t=>{this.debugPrint&&(console.log(`${this.debugPrintIndentation}replacing set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`),this.changeDebugPrintIndent(1));for(let n of e){let e=n.typeRef,i=(0,r.typeRefIndex)(e);this.reconstitutedTypes.set(i,t),this._setsToReplaceByMember.delete(i)}let n=this._replacer(e,this,t);return(0,o.assert)(n===t,`The forwarding ref got lost when replacing`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}replaced set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`)),n})}forceReconstituteTypeRef(e,t,n){let[a,s]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),l=(0,r.typeRefIndex)(e);this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${l}`),this.changeDebugPrintIndent(1)),t=t===void 0?this.reconstituteTypeAttributes(s):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(s));let u=new c(this,this.canonicalOrder,t,n,e=>{this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${l} as ${(0,r.typeRefIndex)(e)}`)),n!==void 0&&(0,o.assert)(e===n,`We didn't pass the forwarding ref`);let t=this.reconstitutedTypes.get(l);t===void 0?this.reconstitutedTypes.set(l,e):(0,o.assert)(e===t,`We reconstituted a type twice differently`)});return a.reconstitute(u,this.canonicalOrder),u.getResult()}lookupTypeRefs(e,t,n=!0){this.assertTypeRefsToReconstitute(e,t);let i=this.reconstitutedTypes.get((0,r.typeRefIndex)(e[0]));if(i!==void 0&&i!==t){let n=!0;for(let t=1;t<e.length;t++)if(this.reconstitutedTypes.get((0,r.typeRefIndex)(e[t]))!==i){n=!1;break}if(n)return this.forwardIfNecessary(t,i)}if(i=this._reconstitutedUnions.get(new Set(e)),i!==void 0&&i!==t)return this.forwardIfNecessary(t,i);let a=this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[0]));if(a!==void 0){for(let t=1;t<e.length;t++)if(this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[t]))!==a)return;if(n)return this.replaceSet(a,t)}}}})),_a=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Graph=void 0;var t=a(),n=Q();function r(e){if(e.length===0)return 0;let t=-1,r=0;for(let i of e){(0,n.assert)(i.length>0,`Empty component not allowed`);for(let e of i)(0,n.assert)(e>=0,`Negative vertex index is invalid`),t=Math.max(t,e),r+=1}return(0,n.assert)(t+1===r,`Vertex indexes and count don't match up`),r}function i(e){let t=0,i=[],a=e.length,o=(0,n.repeated)(a,-1),s=(0,n.repeated)(a,-1),c=(0,n.repeated)(a,!1),l=[];function u(r){o[r]=t,s[r]=t,t+=1,i.push(r),c[r]=!0;for(let t of e[r])o[t]<0?(u(t),s[r]=Math.min(s[r],s[t])):c[t]&&(s[r]=Math.min(s[r],o[t]));if(s[r]===o[r]){let e=[],t;do t=(0,n.defined)(i.pop()),c[t]=!1,e.push(t);while(t!==r);l.push(e)}}for(let e=0;e<a;e++)o[e]<0&&u(e);return(0,n.assert)(r(l)===a,`We didn't put all the nodes into SCCs`),l}function o(e,t){let i=t.length,a=e.length;(0,n.assert)(a===r(t),`Components don't match up with graph`);let o=(0,n.repeated)(a,-1);for(let e=0;e<i;e++)for(let r of t[e])(0,n.assert)(o[r]<0,`We have a node that's in two components`),o[r]=e;return o}function s(e,t){let r=t.length,i=o(e,t),a=(0,n.repeated)(r,!1),s=[];for(let o=0;o<r;o++){let r=[];for(let n of t[o])for(let t of e[n]){let e=i[t];e===o||a[e]||(r.push(e),a[e]=!0)}for(let e of r)(0,n.assert)(a[e]),a[e]=!1;s.push(r)}return s}function c(e){let t=e.length,r=(0,n.repeatedCall)(t,()=>[]);for(let n=0;n<t;n++)for(let t of e[n])r[t].push(n);return r}function l(e){let t=e.length,r=(0,n.repeated)(t,0);for(let t of e)for(let e of t)r[e]+=1;return r}function u(e){let t=e.length,n=l(e),r=[];for(let e=0;e<t;e++)n[e]===0&&r.push(e);return r}e.Graph=class e{constructor(e,t,r){this._nodes=Array.from(e),this._indexByNode=new Map(this._nodes.map((e,t)=>[e,t]));let i;i=Array.isArray(r)?r:this._nodes.map(e=>Array.from(r(e)).map(e=>(0,n.defined)(this._indexByNode.get(e)))),t&&(i=c(i)),this._successors=i}get size(){return this._nodes.length}get nodes(){return this._nodes}findRoots(){let e=u(this._successors);return new Set(e.map(e=>this._nodes[e]))}dfsTraversal(e,t,r){let i=(0,n.repeated)(this.size,!1),a=e=>{if(!i[e]){i[e]=!0,t&&r(this._nodes[e]);for(let t of this._successors[e])a(t);t||r(this._nodes[e])}};a((0,n.defined)(this._indexByNode.get(e)))}stronglyConnectedComponents(){let n=i(this._successors),r=s(this._successors,n);return new e(n.map(e=>(0,t.setMap)(e,e=>this._nodes[e])),!1,r)}makeDot(e,t){let n=[];n.push(`digraph G {`),n.push(` ordering = out;`),n.push(``);for(let r=0;r<this.size;r++){let i=this._nodes[r];e(i)&&n.push(` node${r} [label="${t(i)}"];`)}for(let t=0;t<this.size;t++)if(e(this._nodes[t]))for(let r of this._successors[t])e(this._nodes[r])&&n.push(` node${t} -> node${r};`);return n.push(`}`),n.push(``),n.join(`
116
- `)}}})),va=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.removeIndirectionIntersections=e.optionalToNullable=e.noneToAny=e.TypeGraph=e.TypeAttributeStoreView=e.TypeAttributeStore=e.typeAndAttributesForTypeRef=e.attributesForTypeRef=e.derefTypeRef=e.assertTypeRefGraph=e.typeRefIndex=e.makeTypeRef=e.isTypeRef=void 0;var t=a(),n=wa(),r=ha(),i=Q(),o=pa(),s=ga(),c=fa(),l=_a(),u=na(),d=C(),f=26,p=(1<<f)-1,m=(1<<31-f)-1;function h(e){return typeof e==`number`}e.isTypeRef=h;function g(e,t){return(0,i.assert)(t<=p,`Too many types in graph`),(e.serial&m)<<f|t}e.makeTypeRef=g;function _(e){return e&p}e.typeRefIndex=_;function v(e,t){(0,i.assert)((e>>f&m)===(t.serial&m),`Mixing the wrong type reference and graph`)}e.assertTypeRefGraph=v;function y(e){return e instanceof E?e:e.originalGraph}function b(e,t){let n=y(t);return v(e,n),n.typeAtIndex(_(e))}e.derefTypeRef=b;function x(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))[1]}e.attributesForTypeRef=x;function S(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))}e.typeAndAttributesForTypeRef=S;var w=class{constructor(e,t){this._typeGraph=e,this._values=t,this._topLevelValues=new Map}getTypeIndex(e){let t=e.typeRef;return v(t,this._typeGraph),_(t)}attributesForType(e){let t=this.getTypeIndex(e),n=this._values[t];return n===void 0?u.emptyTypeAttributes:n}attributesForTopLevel(e){let t=this._topLevelValues.get(e);return t===void 0?u.emptyTypeAttributes:t}setInMap(e,t,n){return new Map(e).set(t,n)}set(e,t,n){let r=this.getTypeIndex(t);for(;r>=this._values.length;)this._values.push(void 0);this._values[r]=this.setInMap(this.attributesForType(t),e,n)}setForTopLevel(e,t,n){this._topLevelValues.set(t,this.setInMap(this.attributesForTopLevel(t),e,n))}tryGetInMap(e,t){return e.get(t)}tryGet(e,t){return this.tryGetInMap(this.attributesForType(t),e)}tryGetForTopLevel(e,t){return this.tryGetInMap(this.attributesForTopLevel(t),e)}};e.TypeAttributeStore=w;var T=class{constructor(e,t){this._attributeStore=e,this._definition=t}set(e,t){this._attributeStore.set(this._definition,e,t)}setForTopLevel(e,t){this._attributeStore.setForTopLevel(this._definition,e,t)}tryGet(e){return this._attributeStore.tryGet(this._definition,e)}get(e){return(0,i.defined)(this.tryGet(e))}tryGetForTopLevel(e){return this._attributeStore.tryGetForTopLevel(this._definition,e)}getForTopLevel(e){return(0,i.defined)(this.tryGetForTopLevel(e))}};e.TypeAttributeStoreView=T;var E=class{constructor(e,t,n){this.serial=t,this._haveProvenanceAttributes=n,this._attributeStore=void 0,this._topLevels=new Map,this._parents=void 0,this._printOnRewrite=!1,this._typeBuilder=e}get isFrozen(){return this._typeBuilder===void 0}get attributeStore(){return(0,i.defined)(this._attributeStore)}freeze(e,n,r){(0,i.assert)(!this.isFrozen,`Tried to freeze TypeGraph a second time`);for(let e of n)v(e.typeRef,this);this._attributeStore=new w(this,r),this._types=n,this._typeBuilder=void 0,this._topLevels=(0,t.mapMap)(e,e=>b(e,this))}get topLevels(){return(0,i.assert)(this.isFrozen,`Cannot get top-levels from a non-frozen graph`),this._topLevels}typeAtIndex(e){return this._typeBuilder===void 0?(0,i.defined)(this._types)[e]:this._typeBuilder.typeAtIndex(e)}atIndex(e){if(this._typeBuilder!==void 0)return this._typeBuilder.atIndex(e);let t=this.typeAtIndex(e);return[t,(0,i.defined)(this._attributeStore).attributesForType(t)]}filterTypes(e){let t=new Set,n=[];function r(i){if(!t.has(i)){t.add(i),(e===void 0||e(i))&&n.push(i);for(let e of i.getChildren())r(e)}}for(let[,e]of this.topLevels)r(e);return new Set(n)}allNamedTypes(){return this.filterTypes(r.isNamedType)}allNamedTypesSeparated(){let e=this.allNamedTypes();return(0,r.separateNamedTypes)(e)}allProvenance(){(0,i.assert)(this._haveProvenanceAttributes);let e=new T(this.attributeStore,o.provenanceTypeAttributeKind),n=Array.from(this.allTypesUnordered()).map(t=>{let n=e.tryGet(t);return n===void 0?new Set:n}),r=new Set;return(0,t.setUnionManyInto)(r,n),r}setPrintOnRewrite(){this._printOnRewrite=!0}checkLostTypeAttributes(e,n){if(!this._haveProvenanceAttributes||e.lostTypeAttributes)return;let r=this.allProvenance(),i=n.allProvenance();if(r.size!==i.size){let e=(0,t.setSubtract)(r,i),n=Array.from(e);return(0,d.messageError)(`IRTypeAttributesNotPropagated`,{count:e.size,indexes:n})}}printRewrite(e){this._printOnRewrite&&console.log(`\n# ${e}`)}rewrite(e,t,n,r,i,a,o=!1){if(this.printRewrite(e),!o&&r.length===0)return this;let c=new s.GraphRewriteBuilder(this,t,n,this._haveProvenanceAttributes,r,i,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),c.didAddForwardingIntersection?k(l,t,i):l}remap(e,t,n,r,a,o=!1){if(this.printRewrite(e),!o&&r.size===0)return this;let c=new s.GraphRemapBuilder(this,t,n,this._haveProvenanceAttributes,r,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),(0,i.assert)(!c.didAddForwardingIntersection),l}garbageCollect(e,t){return this.remap(`GC`,(0,o.getNoStringTypeMapping)(),e,new Map,t,!0)}rewriteFixedPoint(e,t){let n=this;for(;;){let r=this.rewrite(`fixed-point`,(0,o.getNoStringTypeMapping)(),e,[],t,i.mustNotHappen,!0);if(n.allTypesUnordered().size===r.allTypesUnordered().size)return n;n=r}}allTypesUnordered(){return(0,i.assert)(this.isFrozen,`Tried to get all graph types before it was frozen`),new Set((0,i.defined)(this._types))}makeGraph(e,t){return new l.Graph((0,i.defined)(this._types),e,t)}getParentsOfType(e){if(v(e.typeRef,this),this._parents===void 0){let e=(0,i.defined)(this._types).map(e=>new Set);for(let t of this.allTypesUnordered())for(let n of t.getChildren()){let r=n.index;e[r]=e[r].add(t)}this._parents=e}return this._parents[e.index]}printGraph(){let e=(0,i.defined)(this._types);for(let t=0;t<e.length;t++){let n=e[t],r=[];r.push(`${n.debugPrintKind}${n.hasNames?` ${n.getCombinedName()}`:``}`);let i=n.getChildren();i.size>0&&r.push(`children ${Array.from(i).map(e=>e.index).join(`,`)}`);for(let[e,t]of n.getAttributes()){let n=e.stringify(t);n!==void 0&&r.push(n)}console.log(`${t}: ${r.join(` | `)}`)}}};e.TypeGraph=E;function D(e,n,a){let o=(0,t.setFilter)(e.allTypesUnordered(),e=>e.kind===`none`);return o.size===0?e:((0,i.assert)(o.size===1,`Cannot have more than one none type`),e.rewrite(`none to any`,n,!1,[Array.from(o)],a,(e,t,n)=>{let i=(0,r.combineTypeAttributesOfTypes)(`union`,e);return t.getPrimitiveType(`any`,i,n)}))}e.noneToAny=D;function O(e,r,a){function o(e,r,i){let a=(0,t.mapMap)(e.getProperties(),(e,i)=>{let a=e.type,o;if(!e.isOptional||a.isNullable)o=r.reconstituteType(a);else{let e=r.getPrimitiveType(`null`),s;s=a instanceof n.UnionType?(0,t.setMap)(a.members,e=>r.reconstituteType(e)).add(e):new Set([r.reconstituteType(a),e]);let l=c.namesTypeAttributeKind.setDefaultInAttributes(a.getAttributes(),()=>c.TypeNames.make(new Set([i]),new Set,!0));o=r.getUnionType(l,s)}return r.makeClassProperty(o,e.isOptional)});return e.isFixed?r.getUniqueClassType(e.getAttributes(),!0,a,i):r.getClassType(e.getAttributes(),a,i)}let s=(0,t.setFilter)(e.allTypesUnordered(),e=>e instanceof n.ClassType&&(0,t.mapSome)(e.getProperties(),e=>e.isOptional)),l=Array.from(s).map(e=>[e]);return s.size===0?e:e.rewrite(`optional to nullable`,r,!1,l,a,(e,n,r)=>((0,i.assert)(e.size===1),o((0,i.defined)((0,t.iterableFirst)(e)),n,r)))}e.optionalToNullable=O;function k(e,r,a){let o=[];for(let r of e.allTypesUnordered()){if(!(r instanceof n.IntersectionType))continue;let e=new Set([r]),a=r;for(;a.members.size===1;){let s=(0,i.defined)((0,t.iterableFirst)(a.members));if(!(s instanceof n.IntersectionType)){o.push([r,s]);break}if(e.has(s))return(0,i.panic)(`There's a cycle of intersection types`);e.add(s),a=s}}return e.remap(`remove indirection intersections`,r,!1,new Map(o),a)}e.removeIndirectionIntersections=k})),ya=i(((e,t)=>{(function(n){var r=typeof e==`object`&&e&&!e.nodeType&&e,i=typeof t==`object`&&t&&!t.nodeType&&t,a=typeof global==`object`&&global;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,c=36,l=1,u=26,d=38,f=700,p=72,m=128,h=`-`,g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},b=c-l,x=Math.floor,S=String.fromCharCode,C;function w(e){throw RangeError(y[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(v,`.`);var i=T(e.split(`.`),t).join(`.`);return r+i}function D(e){for(var t=[],n=0,r=e.length,i,a;n<r;)i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<r?(a=e.charCodeAt(n++),(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)):t.push(i);return t}function O(e){return T(e,function(e){var t=``;return e>65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|e&1023),t+=S(e),t}).join(``)}function k(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function j(e,t,n){var r=0;for(e=n?x(e/f):e>>1,e+=x(e/t);e>b*u>>1;r+=c)e=x(e/b);return x(r+(b+1)*e/(e+d))}function M(e){var t=[],n=e.length,r,i=0,a=m,o=p,d=e.lastIndexOf(h),f,g,_,v,y,b,S,C;for(d<0&&(d=0),f=0;f<d;++f)e.charCodeAt(f)>=128&&w(`not-basic`),t.push(e.charCodeAt(f));for(g=d>0?d+1:0;g<n;){for(_=i,v=1,y=c;g>=n&&w(`invalid-input`),b=k(e.charCodeAt(g++)),(b>=c||b>x((s-i)/v))&&w(`overflow`),i+=b*v,S=y<=o?l:y>=o+u?u:y-o,!(b<S);y+=c)C=c-S,v>x(s/C)&&w(`overflow`),v*=C;r=t.length+1,o=j(i-_,r,_==0),x(i/r)>s-a&&w(`overflow`),a+=x(i/r),i%=r,t.splice(i++,0,a)}return O(t)}function N(e){var t,n,r,i,a,o,d,f,g,_,v,y=[],b,C,T,E;for(e=D(e),b=e.length,t=m,n=0,a=p,o=0;o<b;++o)v=e[o],v<128&&y.push(S(v));for(r=i=y.length,i&&y.push(h);r<b;){for(d=s,o=0;o<b;++o)v=e[o],v>=t&&v<d&&(d=v);for(C=r+1,d-t>x((s-n)/C)&&w(`overflow`),n+=(d-t)*C,t=d,o=0;o<b;++o)if(v=e[o],v<t&&++n>s&&w(`overflow`),v==t){for(f=n,g=c;_=g<=a?l:g>=a+u?u:g-a,!(f<_);g+=c)E=f-_,T=c-_,y.push(S(A(_+E%T,0))),f=x(E/T);y.push(S(A(f,0))),a=j(n,C,r==i),n=0,++r}++n,++t}return y.join(``)}function P(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function ee(e){return E(e,function(e){return _.test(e)?`xn--`+N(e):e})}if(o={version:`1.3.2`,ucs2:{decode:D,encode:O},decode:M,encode:N,toASCII:ee,toUnicode:P},typeof define==`function`&&typeof define.amd==`object`&&define.amd)define(`punycode`,function(){return o});else if(r&&i)if(t.exports==r)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(r[C]=o[C]);else n.punycode=o})(e)})),ba=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.IPv6=n(e)})(e,function(e){var t=e&&e.IPv6;function n(e){var t=e.toLowerCase().split(`:`),n=t.length,r=8;t[0]===``&&t[1]===``&&t[2]===``?(t.shift(),t.shift()):t[0]===``&&t[1]===``?t.shift():t[n-1]===``&&t[n-2]===``&&t.pop(),n=t.length,t[n-1].indexOf(`.`)!==-1&&(r=7);var i;for(i=0;i<n&&t[i]!==``;i++);if(i<r)for(t.splice(i,1,`0000`);t.length<r;)t.splice(i,0,`0000`);for(var a,o=0;o<r;o++){a=t[o].split(``);for(var s=0;s<3&&a[0]===`0`&&a.length>1;s++)a.splice(0,1);t[o]=a.join(``)}var c=-1,l=0,u=0,d=-1,f=!1;for(o=0;o<r;o++)f?t[o]===`0`?u+=1:(f=!1,u>l&&(c=d,l=u)):t[o]===`0`&&(f=!0,d=o,u=1);u>l&&(c=d,l=u),l>1&&t.splice(c,l,``),n=t.length;var p=``;for(t[0]===``&&(p=`:`),o=0;o<n&&(p+=t[o],o!==n-1);o++)p+=`:`;return t[n-1]===``&&(p+=`:`),p}function r(){return e.IPv6===this&&(e.IPv6=t),this}return{best:n,noConflict:r}})})),xa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.SecondLevelDomains=n(e)})(e,function(e){var t=e&&e.SecondLevelDomains,n={list:{ac:` com gov mil net org `,ae:` ac co gov mil name net org pro sch `,af:` com edu gov net org `,al:` com edu gov mil net org `,ao:` co ed gv it og pb `,ar:` com edu gob gov int mil net org tur `,at:` ac co gv or `,au:` asn com csiro edu gov id net org `,ba:` co com edu gov mil net org rs unbi unmo unsa untz unze `,bb:` biz co com edu gov info net org store tv `,bh:` biz cc com edu gov info net org `,bn:` com edu gov net org `,bo:` com edu gob gov int mil net org tv `,br:` adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg `,bs:` com edu gov net org `,bz:` du et om ov rg `,ca:` ab bc mb nb nf nl ns nt nu on pe qc sk yk `,ck:` biz co edu gen gov info net org `,cn:` ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj `,co:` com edu gov mil net nom org `,cr:` ac c co ed fi go or sa `,cy:` ac biz com ekloges gov ltd name net org parliament press pro tm `,do:` art com edu gob gov mil net org sld web `,dz:` art asso com edu gov net org pol `,ec:` com edu fin gov info med mil net org pro `,eg:` com edu eun gov mil name net org sci `,er:` com edu gov ind mil net org rochest w `,es:` com edu gob nom org `,et:` biz com edu gov info name net org `,fj:` ac biz com info mil name net org pro `,fk:` ac co gov net nom org `,fr:` asso com f gouv nom prd presse tm `,gg:` co net org `,gh:` com edu gov mil org `,gn:` ac com gov net org `,gr:` com edu gov mil net org `,gt:` com edu gob ind mil net org `,gu:` com edu gov net org `,hk:` com edu gov idv net org `,hu:` 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video `,id:` ac co go mil net or sch web `,il:` ac co gov idf k12 muni net org `,in:` ac co edu ernet firm gen gov i ind mil net nic org res `,iq:` com edu gov i mil net org `,ir:` ac co dnssec gov i id net org sch `,it:` edu gov `,je:` co net org `,jo:` com edu gov mil name net org sch `,jp:` ac ad co ed go gr lg ne or `,ke:` ac co go info me mobi ne or sc `,kh:` com edu gov mil net org per `,ki:` biz com de edu gov info mob net org tel `,km:` asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire `,kn:` edu gov net org `,kr:` ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan `,kw:` com edu gov net org `,ky:` com edu gov net org `,kz:` com edu gov mil net org `,lb:` com edu gov net org `,lk:` assn com edu gov grp hotel int ltd net ngo org sch soc web `,lr:` com edu gov net org `,lv:` asn com conf edu gov id mil net org `,ly:` com edu gov id med net org plc sch `,ma:` ac co gov m net org press `,mc:` asso tm `,me:` ac co edu gov its net org priv `,mg:` com edu gov mil nom org prd tm `,mk:` com edu gov inf name net org pro `,ml:` com edu gov net org presse `,mn:` edu gov org `,mo:` com edu gov net org `,mt:` com edu gov net org `,mv:` aero biz com coop edu gov info int mil museum name net org pro `,mw:` ac co com coop edu gov int museum net org `,mx:` com edu gob net org `,my:` com edu gov mil name net org sch `,nf:` arts com firm info net other per rec store web `,ng:` biz com edu gov mil mobi name net org sch `,ni:` ac co com edu gob mil net nom org `,np:` com edu gov mil net org `,nr:` biz com edu gov info net org `,om:` ac biz co com edu gov med mil museum net org pro sch `,pe:` com edu gob mil net nom org sld `,ph:` com edu gov i mil net ngo org `,pk:` biz com edu fam gob gok gon gop gos gov net org web `,pl:` art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora `,pr:` ac biz com edu est gov info isla name net org pro prof `,ps:` com edu gov net org plo sec `,pw:` belau co ed go ne or `,ro:` arts com firm info nom nt org rec store tm www `,rs:` ac co edu gov in org `,sb:` com edu gov net org `,sc:` com edu gov net org `,sh:` co com edu gov net nom org `,sl:` com edu gov net org `,st:` co com consulado edu embaixada gov mil net org principe saotome store `,sv:` com edu gob org red `,sz:` ac co org `,tr:` av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web `,tt:` aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel `,tw:` club com ebiz edu game gov idv mil net org `,mu:` ac co com gov net or org `,mz:` ac co edu gov org `,na:` co com `,nz:` ac co cri geek gen govt health iwi maori mil net org parliament school `,pa:` abo ac com edu gob ing med net nom org sld `,pt:` com edu gov int net nome org publ `,py:` com edu gov mil net org `,qa:` com edu gov mil net org `,re:` asso com nom `,ru:` ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk `,rw:` ac co com edu gouv gov int mil net `,sa:` com edu gov med net org pub sch `,sd:` com edu gov info med net org tv `,se:` a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z `,sg:` com edu gov idn net org per `,sn:` art com edu gouv org perso univ `,sy:` com edu gov mil net news org `,th:` ac co go in mi net or `,tj:` ac biz co com edu go gov info int mil name net nic org test web `,tn:` agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism `,tz:` ac co go ne or `,ua:` biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt `,ug:` ac co go ne or org sc `,uk:` ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc `,us:` dni fed isa kids nsn `,uy:` com edu gub mil net org `,ve:` co com edu gob info mil net org web `,vi:` co com k12 net org `,vn:` ac biz com edu gov health info int name net org pro `,ye:` co com gov ltd me net org plc `,yu:` ac co edu gov org `,za:` ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web `,zm:` ac co com edu gov net org sch `,com:`ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za `,net:`gb jp se uk `,org:`ae`,de:`com `},has:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return i?i.indexOf(` `+e.slice(r+1,t)+` `)>=0:!1},is:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1||e.lastIndexOf(`.`,t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return r?r.indexOf(` `+e.slice(0,t)+` `)>=0:!1},get:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return!i||i.indexOf(` `+e.slice(r+1,t)+` `)<0?null:e.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})})),Sa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(ya(),ba(),xa()):typeof define==`function`&&define.amd?define([`./punycode`,`./IPv6`,`./SecondLevelDomains`],n):e.URI=n(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(e,function(e,t,n,r){var i=r&&r.URI;function a(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof a))return n?r?new a(e,t):new a(e):new a;if(e===void 0){if(n)throw TypeError(`undefined is not a valid argument for URI`);e=typeof location<`u`?location.href+``:``}if(e===null&&n)throw TypeError(`null is not a valid argument for URI`);return this.href(e),t===void 0?this:this.absoluteTo(t)}function o(e){return/^[0-9]+$/.test(e)}a.version=`1.19.11`;var s=a.prototype,c=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,`\\$1`)}function u(e){return e===void 0?`Undefined`:String(Object.prototype.toString.call(e)).slice(8,-1)}function d(e){return u(e)===`Array`}function f(e,t){var n={},r,i;if(u(t)===`RegExp`)n=null;else if(d(t))for(r=0,i=t.length;r<i;r++)n[t[r]]=!0;else n[t]=!0;for(r=0,i=e.length;r<i;r++)(n&&n[e[r]]!==void 0||!n&&t.test(e[r]))&&(e.splice(r,1),i--,r--);return e}function p(e,t){var n,r;if(d(t)){for(n=0,r=t.length;n<r;n++)if(!p(e,t[n]))return!1;return!0}var i=u(t);for(n=0,r=e.length;n<r;n++)if(i===`RegExp`){if(typeof e[n]==`string`&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function m(e,t){if(!d(e)||!d(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,``)}a._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:a.preventInvalidHostname,duplicateQueryParameters:a.duplicateQueryParameters,escapeQuerySpace:a.escapeQuerySpace}},a.preventInvalidHostname=!1,a.duplicateQueryParameters=!1,a.escapeQuerySpace=!0,a.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,a.idn_expression=/[^a-z0-9\._-]/i,a.punycode_expression=/(xn--)/i,a.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,a.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,a.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,a.defaultPorts={http:`80`,https:`443`,ftp:`21`,gopher:`70`,ws:`80`,wss:`443`},a.hostProtocols=[`http`,`https`],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:`href`,blockquote:`cite`,link:`href`,base:`href`,script:`src`,form:`action`,img:`src`,area:`href`,iframe:`src`,embed:`src`,source:`src`,track:`src`,input:`src`,audio:`src`,video:`src`},a.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var t=e.nodeName.toLowerCase();if(!(t===`input`&&e.type!==`image`))return a.domAttributes[t]}};function g(e){return escape(e)}function _(e){return encodeURIComponent(e).replace(/[!'()*]/g,g).replace(/\*/g,`%2A`)}a.encode=_,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=_,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":`$`,"%26":`&`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%3A":`:`,"%40":`@`}},decode:{expression:/[\/\?#]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":`:`,"%2F":`/`,"%3F":`?`,"%23":`#`,"%5B":`[`,"%5D":`]`,"%40":`@`,"%21":`!`,"%24":`$`,"%26":`&`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":`!`,"%24":`$`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%40":`@`}},decode:{expression:/[\/\?#:]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`,":":`%3A`}}}},a.encodeQuery=function(e,t){var n=a.encode(e+``);return t===void 0&&(t=a.escapeQuerySpace),t?n.replace(/%20/g,`+`):n},a.decodeQuery=function(e,t){e+=``,t===void 0&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,`%20`):e)}catch{return e}};var v={encode:`encode`,decode:`decode`},y,b=function(e,t){return function(n){try{return a[t](n+``).replace(a.characters[e][t].expression,function(n){return a.characters[e][t].map[n]})}catch{return n}}};for(y in v)a[y+`PathSegment`]=b(`pathname`,v[y]),a[y+`UrnPathSegment`]=b(`urnpath`,v[y]);var x=function(e,t,n){return function(r){for(var i=n?function(e){return a[t](a[n](e))}:a[t],o=(r+``).split(e),s=0,c=o.length;s<c;s++)o[s]=i(o[s]);return o.join(e)}};a.decodePath=x(`/`,`decodePathSegment`),a.decodeUrnPath=x(`:`,`decodeUrnPathSegment`),a.recodePath=x(`/`,`encodePathSegment`,`decode`),a.recodeUrnPath=x(`:`,`encodeUrnPathSegment`,`decode`),a.encodeReserved=b(`reserved`,`encode`),a.parse=function(e,t){var n;return t||={preventInvalidHostname:a.preventInvalidHostname},e=e.replace(a.leading_whitespace_expression,``),e=e.replace(a.ascii_tab_whitespace,``),n=e.indexOf(`#`),n>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),n=e.indexOf(`?`),n>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,`$1://`),e=e.replace(/^[/\\]{2,}/i,`//`),e.substring(0,2)===`//`?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(n=e.indexOf(`:`),n>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:e.substring(n+1,n+3).replace(/\\/g,`/`)===`//`?(e=e.substring(n+3),e=a.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0))),t.path=e,t},a.parseHost=function(e,t){e||=``,e=e.replace(/\\/g,`/`);var n=e.indexOf(`/`),r,i;if(n===-1&&(n=e.length),e.charAt(0)===`[`)r=e.indexOf(`]`),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,n)||null,t.port===`/`&&(t.port=null);else{var o=e.indexOf(`:`),s=e.indexOf(`/`),c=e.indexOf(`:`,o+1);c!==-1&&(s===-1||c<s)?(t.hostname=e.substring(0,n)||null,t.port=null):(i=e.substring(0,n).split(`:`),t.hostname=i[0]||null,t.port=i[1]||null)}return t.hostname&&e.substring(n).charAt(0)!==`/`&&(n++,e=`/`+e),t.preventInvalidHostname&&a.ensureValidHostname(t.hostname,t.protocol),t.port&&a.ensureValidPort(t.port),e.substring(n)||`/`},a.parseAuthority=function(e,t){return e=a.parseUserinfo(e,t),a.parseHost(e,t)},a.parseUserinfo=function(e,t){var n=e;e.indexOf(`\\`)!==-1&&(e=e.replace(/\\/g,`/`));var r=e.indexOf(`/`),i=e.lastIndexOf(`@`,r>-1?r:e.length-1),o;return i>-1&&(r===-1||i<r)?(o=e.substring(0,i).split(`:`),t.username=o[0]?a.decode(o[0]):null,o.shift(),t.password=o[0]?a.decode(o.join(`:`)):null,e=n.substring(i+1)):(t.username=null,t.password=null),e},a.parseQuery=function(e,t){if(!e||(e=e.replace(/&+/g,`&`).replace(/^\?*&*|&+$/g,``),!e))return{};for(var n={},r=e.split(`&`),i=r.length,o,s,l,u=0;u<i;u++)o=r[u].split(`=`),s=a.decodeQuery(o.shift(),t),l=o.length?a.decodeQuery(o.join(`=`),t):null,s!==`__proto__`&&(c.call(n,s)?((typeof n[s]==`string`||n[s]===null)&&(n[s]=[n[s]]),n[s].push(l)):n[s]=l);return n},a.build=function(e){var t=``,n=!1;return e.protocol&&(t+=e.protocol+`:`),!e.urn&&(t||e.hostname)&&(t+=`//`,n=!0),t+=a.buildAuthority(e)||``,typeof e.path==`string`&&(e.path.charAt(0)!==`/`&&n&&(t+=`/`),t+=e.path),typeof e.query==`string`&&e.query&&(t+=`?`+e.query),typeof e.fragment==`string`&&e.fragment&&(t+=`#`+e.fragment),t},a.buildHost=function(e){var t=``;if(e.hostname)a.ip6_expression.test(e.hostname)?t+=`[`+e.hostname+`]`:t+=e.hostname;else return``;return e.port&&(t+=`:`+e.port),t},a.buildAuthority=function(e){return a.buildUserinfo(e)+a.buildHost(e)},a.buildUserinfo=function(e){var t=``;return e.username&&(t+=a.encode(e.username)),e.password&&(t+=`:`+a.encode(e.password)),t&&(t+=`@`),t},a.buildQuery=function(e,t,n){var r=``,i,o,s,l;for(o in e)if(o===`__proto__`)continue;else if(c.call(e,o))if(d(e[o]))for(i={},s=0,l=e[o].length;s<l;s++)e[o][s]!==void 0&&i[e[o][s]+``]===void 0&&(r+=`&`+a.buildQueryParameter(o,e[o][s],n),t!==!0&&(i[e[o][s]+``]=!0));else e[o]!==void 0&&(r+=`&`+a.buildQueryParameter(o,e[o],n));return r.substring(1)},a.buildQueryParameter=function(e,t,n){return a.encodeQuery(e,n)+(t===null?``:`=`+a.encodeQuery(t,n))},a.addQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.addQuery(e,r,t[r]);else if(typeof t==`string`){if(e[t]===void 0){e[t]=n;return}else typeof e[t]==`string`&&(e[t]=[e[t]]);d(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`)},a.setQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.setQuery(e,r,t[r]);else if(typeof t==`string`)e[t]=n===void 0?null:n;else throw TypeError(`URI.setQuery() accepts an object, string as the name parameter`)},a.removeQuery=function(e,t,n){var r,i,o;if(d(t))for(r=0,i=t.length;r<i;r++)e[t[r]]=void 0;else if(u(t)===`RegExp`)for(o in e)t.test(o)&&(e[o]=void 0);else if(typeof t==`object`)for(o in t)c.call(t,o)&&a.removeQuery(e,o,t[o]);else if(typeof t==`string`)n===void 0?e[t]=void 0:u(n)===`RegExp`?!d(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=f(e[t],n):e[t]===String(n)&&(!d(n)||n.length===1)?e[t]=void 0:d(e[t])&&(e[t]=f(e[t],n));else throw TypeError(`URI.removeQuery() accepts an object, string, RegExp as the first parameter`)},a.hasQuery=function(e,t,n,r){switch(u(t)){case`String`:break;case`RegExp`:for(var i in e)if(c.call(e,i)&&t.test(i)&&(n===void 0||a.hasQuery(e,i,n)))return!0;return!1;case`Object`:for(var o in t)if(c.call(t,o)&&!a.hasQuery(e,o,t[o]))return!1;return!0;default:throw TypeError(`URI.hasQuery() accepts a string, regular expression or object as the name parameter`)}switch(u(n)){case`Undefined`:return t in e;case`Boolean`:var s=!!(d(e[t])?e[t].length:e[t]);return n===s;case`Function`:return!!n(e[t],t,e);case`Array`:return d(e[t])?(r?p:m)(e[t],n):!1;case`RegExp`:return d(e[t])?r?p(e[t],n):!1:!!(e[t]&&e[t].match(n));case`Number`:n=String(n);case`String`:return d(e[t])?r?p(e[t],n):!1:e[t]===n;default:throw TypeError(`URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter`)}},a.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var i=new a(arguments[r]);e.push(i);for(var o=i.segment(),s=0;s<o.length;s++)typeof o[s]==`string`&&t.push(o[s]),o[s]&&n++}if(!t.length||!n)return new a(``);var c=new a(``).segment(t);return(e[0].path()===``||e[0].path().slice(0,1)===`/`)&&c.path(`/`+c.path()),c.normalize()},a.commonPath=function(e,t){var n=Math.min(e.length,t.length),r;for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&e.charAt(0)===`/`?`/`:``:((e.charAt(r)!==`/`||t.charAt(r)!==`/`)&&(r=e.substring(0,r).lastIndexOf(`/`)),e.substring(0,r+1))},a.withinString=function(e,t,n){n||={};var r=n.start||a.findUri.start,i=n.end||a.findUri.end,o=n.trim||a.findUri.trim,s=n.parens||a.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(e);if(!l)break;var u=l.index;if(n.ignoreHtml){var d=e.slice(Math.max(u-3,0),u);if(d&&c.test(d))continue}for(var f=u+e.slice(u).search(i),p=e.slice(u,f),m=-1;;){var h=s.exec(p);if(!h)break;var g=h.index+h[0].length;m=Math.max(m,g)}if(p=m>-1?p.slice(0,m)+p.slice(m).replace(o,``):p.replace(o,``),!(p.length<=l[0].length)&&!(n.ignore&&n.ignore.test(p))){f=u+p.length;var _=t(p,u,f,e);if(_===void 0){r.lastIndex=f;continue}_=String(_),e=e.slice(0,u)+_+e.slice(f),r.lastIndex=u+_.length}}return r.lastIndex=0,e},a.ensureValidHostname=function(t,n){var r=!!t,i=!!n,o=!1;if(i&&(o=p(a.hostProtocols,n)),o&&!r)throw TypeError(`Hostname cannot be empty, if protocol is `+n);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available`);if(e.toASCII(t).match(a.invalid_hostname_characters))throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_]`)}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(o(t)&&t>0&&t<65536))throw TypeError(`Port "`+e+`" is not a valid port`)}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&typeof r.URITemplate.noConflict==`function`&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&typeof r.IPv6.noConflict==`function`&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&typeof r.SecondLevelDomains.noConflict==`function`&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}else r.URI===this&&(r.URI=i);return this},s.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new a(this)},s.valueOf=s.toString=function(){return this.build(!1)._string};function S(e){return function(t,n){return t===void 0?this._parts[e]||``:(this._parts[e]=t||null,this.build(!n),this)}}function C(e,t){return function(n,r){return n===void 0?this._parts[e]||``:(n!==null&&(n+=``,n.charAt(0)===t&&(n=n.substring(1))),this._parts[e]=n,this.build(!r),this)}}s.protocol=S(`protocol`),s.username=S(`username`),s.password=S(`password`),s.hostname=S(`hostname`),s.port=S(`port`),s.query=C(`query`,`?`),s.fragment=C(`fragment`,`#`),s.search=function(e,t){var n=this.query(e,t);return typeof n==`string`&&n.length?`?`+n:n},s.hash=function(e,t){var n=this.fragment(e,t);return typeof n==`string`&&n.length?`#`+n:n},s.pathname=function(e,t){if(e===void 0||e===!0){var n=this._parts.path||(this._parts.hostname?`/`:``);return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(n):n}else return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):``:this._parts.path=e?a.recodePath(e):`/`,this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var n;if(e===void 0)return this.toString();this._string=``,this._parts=a._parts();var r=e instanceof a,i=typeof e==`object`&&(e.hostname||e.path||e.pathname);if(e.nodeName){var o=a.getDomAttribute(e);e=e[o]||``,i=!1}if(!r&&i&&e.pathname!==void 0&&(e=e.toString()),typeof e==`string`||e instanceof String)this._parts=a.parse(String(e),this._parts);else if(r||i){var s=r?e._parts:e;for(n in s)n!==`query`&&c.call(this._parts,n)&&(this._parts[n]=s[n]);s.query&&this.query(s.query,!1)}else throw TypeError(`invalid input`);return this.build(!t),this},s.is=function(e){var t=!1,r=!1,i=!1,o=!1,s=!1,c=!1,l=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,r=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),t=r||i,o=!t,s=o&&n&&n.has(this._parts.hostname),c=o&&a.idn_expression.test(this._parts.hostname),l=o&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case`relative`:return u;case`absolute`:return!u;case`domain`:case`name`:return o;case`sld`:return s;case`ip`:return t;case`ip4`:case`ipv4`:case`inet4`:return r;case`ip6`:case`ipv6`:case`inet6`:return i;case`idn`:return c;case`url`:return!this._parts.urn;case`urn`:return!!this._parts.urn;case`punycode`:return l}return null};var w=s.protocol,T=s.port,E=s.hostname;s.protocol=function(e,t){if(e&&(e=e.replace(/:(\/\/)?$/,``),!e.match(a.protocol_expression)))throw TypeError(`Protocol "`+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return w.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?e===void 0?``:this:(e!==void 0&&(e===0&&(e=null),e&&(e+=``,e.charAt(0)===`:`&&(e=e.substring(1)),a.ensureValidPort(e))),T.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e!==void 0){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if(a.parseHost(e,n)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);e=n.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return E.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=this.protocol();return this.authority()?(n?n+`://`:``)+this.authority():``}else{var r=a(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this}},s.host=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildHost(this._parts):``;if(a.parseHost(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildAuthority(this._parts):``;if(a.parseAuthority(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=a.buildUserinfo(this._parts);return n&&n.substring(0,n.length-1)}else return e[e.length-1]!==`@`&&(e+=`@`),a.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var n;return e===void 0?this.path()+this.search()+this.hash():(n=a.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||``}else{var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),o=RegExp(`^`+l(i));if(e&&e.charAt(e.length-1)!==`.`&&(e+=`.`),e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this}},s.domain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(`.`,r-1)+1,this._parts.hostname.substring(r)||``}else{if(!e)throw TypeError(`cannot set domain empty`);if(e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is(`IP`))this._parts.hostname=e;else{var i=RegExp(l(this.domain())+`$`);this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this}},s.tld=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var r=this._parts.hostname.lastIndexOf(`.`),i=this._parts.hostname.substring(r+1);return t!==!0&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}else{var a;if(!e)throw TypeError(`cannot set TLD empty`);if(e.match(/[^a-zA-Z0-9-]/))if(n&&n.is(e))a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);else throw TypeError(`TLD "`+e+`" contains characters other than [A-Z0-9]`);else if(!this._parts.hostname||this.is(`IP`))throw ReferenceError(`cannot set TLD on non-domain host`);else a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);return this.build(!t),this}},s.directory=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return``;if(this._parts.path===`/`)return`/`;var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?`/`:``);return e?a.decodePath(r):r}else{var i=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,i),s=RegExp(`^`+l(o));return this.is(`relative`)||(e||=`/`,e.charAt(0)!==`/`&&(e=`/`+e)),e&&e.charAt(e.length-1)!==`/`&&(e+=`/`),e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this}},s.filename=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e!=`string`){if(!this._parts.path||this._parts.path===`/`)return``;var n=this._parts.path.lastIndexOf(`/`),r=this._parts.path.substring(n+1);return e?a.decodePathSegment(r):r}else{var i=!1;e.charAt(0)===`/`&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var o=RegExp(l(this.filename())+`$`);return e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),i?this.normalizePath(t):this.build(!t),this}},s.suffix=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path===`/`)return``;var n=this.filename(),r=n.lastIndexOf(`.`),i,o;return r===-1?``:(i=n.substring(r+1),o=/^[a-z0-9%]+$/i.test(i)?i:``,e?a.decodePathSegment(o):o)}else{e.charAt(0)===`.`&&(e=e.substring(1));var s=this.suffix(),c;if(s)c=e?RegExp(l(s)+`$`):RegExp(l(`.`+s)+`$`);else{if(!e)return this;this._parts.path+=`.`+a.recodePath(e)}return c&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!t),this}},s.segment=function(e,t,n){var r=this._parts.urn?`:`:`/`,i=this.path(),a=i.substring(0,1)===`/`,o=i.split(r);if(e!==void 0&&typeof e!=`number`&&(n=t,t=e,e=void 0),e!==void 0&&typeof e!=`number`)throw Error(`Bad segment "`+e+`", must be 0-based integer`);if(a&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),t===void 0)return e===void 0?o:o[e];if(e===null||o[e]===void 0)if(d(t)){o=[];for(var s=0,c=t.length;s<c;s++)!t[s].length&&(!o.length||!o[o.length-1].length)||(o.length&&!o[o.length-1].length&&o.pop(),o.push(h(t[s])))}else (t||typeof t==`string`)&&(t=h(t),o[o.length-1]===``?o[o.length-1]=t:o.push(t));else t?o[e]=h(t):o.splice(e,1);return a&&o.unshift(``),this.path(o.join(r),n)},s.segmentCoded=function(e,t,n){var r,i,o;if(typeof e!=`number`&&(n=t,t=e,e=void 0),t===void 0){if(r=this.segment(e,t,n),!d(r))r=r===void 0?void 0:a.decode(r);else for(i=0,o=r.length;i<o;i++)r[i]=a.decode(r[i]);return r}if(!d(t))t=typeof t==`string`||t instanceof String?a.encode(t):t;else for(i=0,o=t.length;i<o;i++)t[i]=a.encode(t[i]);return this.segment(e,t,n)};var D=s.query;return s.query=function(e,t){if(e===!0)return a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`function`){var n=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=a.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}else if(e!==void 0&&typeof e!=`string`)return this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this;else return D.call(this,e,t)},s.setQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`string`||e instanceof String)r[e]=t===void 0?null:t;else if(typeof e==`object`)for(var i in e)c.call(e,i)&&(r[i]=e[i]);else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`);return this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.addQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.addQuery(r,e,t===void 0?null:t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.removeQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.removeQuery(r,e,t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.hasQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.hasQuery(r,e,t,n)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return typeof this._parts.protocol==`string`&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(n){return this._parts.hostname&&(this.is(`IDN`)&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is(`IPv6`)&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},s.normalizePort=function(e){return typeof this._parts.protocol==`string`&&this._parts.port===a.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=a.recodeUrnPath(this._parts.path),this.build(!e),this;if(this._parts.path===`/`)return this;t=a.recodePath(t);var n,r=``,i,o;for(t.charAt(0)!==`/`&&(n=!0,t=`/`+t),(t.slice(-3)===`/..`||t.slice(-2)===`/.`)&&(t+=`/`),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,`/`).replace(/\/{2,}/g,`/`),n&&(r=t.substring(1).match(/^(\.\.\/)+/)||``,r&&=r[0]);i=t.search(/\/\.\.(\/|$)/),i!==-1;){if(i===0){t=t.substring(3);continue}o=t.substring(0,i).lastIndexOf(`/`),o===-1&&(o=i),t=t.substring(0,o)+t.substring(i+3)}return n&&this.is(`relative`)&&(t=r+t.substring(1)),this._parts.path=t,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return typeof this._parts.query==`string`&&(this._parts.query.length?this.query(a.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=a.encode,t=a.decode;a.encode=escape,a.decode=decodeURIComponent;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.unicode=function(){var e=a.encode,t=a.decode;a.encode=_,a.decode=unescape;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.readable=function(){var t=this.clone();t.username(``).password(``).normalize();var n=``;if(t._parts.protocol&&(n+=t._parts.protocol+`://`),t._parts.hostname&&(t.is(`punycode`)&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=`:`+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&t._parts.path.charAt(0)!==`/`&&(n+=`/`),n+=t.path(!0),t._parts.query){for(var r=``,i=0,o=t._parts.query.split(`&`),s=o.length;i<s;i++){var c=(o[i]||``).split(`=`);r+=`&`+a.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,`%26`),c[1]!==void 0&&(r+=`=`+a.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,`%26`))}n+=`?`+r.substring(1)}return n+=a.decodeQuery(t.hash(),!0),n},s.absoluteTo=function(e){var t=this.clone(),n=[`protocol`,`username`,`password`,`hostname`,`port`],r,i,o;if(this._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e instanceof a||(e=new a(e)),t._parts.protocol||(t._parts.protocol=e._parts.protocol,this._parts.hostname))return t;for(i=0;o=n[i];i++)t._parts[o]=e._parts[o];return t._parts.path?(t._parts.path.substring(-2)===`..`&&(t._parts.path+=`/`),t.path().charAt(0)!==`/`&&(r=e.directory(),r||=e.path().indexOf(`/`)===0?`/`:``,t._parts.path=(r?r+`/`:``)+t._parts.path,t.normalizePath())):(t._parts.path=e._parts.path,t._parts.query||(t._parts.query=e._parts.query)),t.build(),t},s.relativeTo=function(e){var t=this.clone().normalize(),n,r,i,o,s;if(t._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e=new a(e).normalize(),n=t._parts,r=e._parts,o=t.path(),s=e.path(),o.charAt(0)!==`/`)throw Error(`URI is already relative`);if(s.charAt(0)!==`/`)throw Error(`Cannot calculate a URI relative to another relative URI`);if(n.protocol===r.protocol&&(n.protocol=null),n.username!==r.username||n.password!==r.password||n.protocol!==null||n.username!==null||n.password!==null)return t.build();if(n.hostname===r.hostname&&n.port===r.port)n.hostname=null,n.port=null;else return t.build();if(o===s)return n.path=``,t.build();if(i=a.commonPath(o,s),!i)return t.build();var c=r.path.substring(i.length).replace(/[^\/]*$/,``).replace(/.*?\//g,`../`);return n.path=c+n.path.substring(i.length)||`./`,t.build()},s.equals=function(e){var t=this.clone(),n=new a(e),r={},i={},o={},s,l,u;if(t.normalize(),n.normalize(),t.toString()===n.toString())return!0;if(s=t.query(),l=n.query(),t.query(``),n.query(``),t.toString()!==n.toString()||s.length!==l.length)return!1;for(u in r=a.parseQuery(s,this._parts.escapeQuerySpace),i=a.parseQuery(l,this._parts.escapeQuerySpace),r)if(c.call(r,u)){if(!d(r[u])){if(r[u]!==i[u])return!1}else if(!m(r[u],i[u]))return!1;o[u]=!0}for(u in i)if(c.call(i,u)&&!o[u])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},a})})),Ca=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.uriSchemaAttributesProducer=e.uriInferenceAttributesProducer=e.uriTypeAttributeKind=void 0;var n=t(Sa()),r=na(),i=a(),o=Q(),s=`qt-uri-protocols`,c=`qt-uri-extensions`;e.uriTypeAttributeKind=new class extends r.TypeAttributeKind{constructor(){super(`uriAttributes`)}get inIdentity(){return!0}combine(e){let t=e.map(e=>e[0]),n=e.map(e=>e[1]);return[(0,i.setUnionManyInto)(new Set,t),(0,i.setUnionManyInto)(new Set,n)]}makeInferred(e){}addToSchema(e,t,n){if(t.kind!==`string`&&t.kind!==`uri`)return;let[r,i]=n;r.size>0&&(e[s]=Array.from(r).sort()),i.size>0&&(e[c]=Array.from(i).sort())}};var l=/^.+(\.[^./\\]+)$/;function u(e){let t=e.match(l);if(t!==null)return t[1]}function d(t){try{let r=(0,n.default)(t),i=u(r.path()),a=i===void 0?[]:[i.toLowerCase()];return e.uriTypeAttributeKind.makeAttributes([new Set([r.protocol().toLowerCase()]),new Set(a)])}catch{return r.emptyTypeAttributes}}e.uriInferenceAttributesProducer=d;function f(t,n,r){if(typeof t!=`object`||!r.has(`string`))return;let i,a=t[s];i=a===void 0?new Set:new Set((0,o.checkArray)(a,o.checkString));let l,u=t[c];if(l=u===void 0?new Set:new Set((0,o.checkArray)(u,o.checkString)),!(i.size===0&&l.size===0))return{forString:e.uriTypeAttributeKind.makeAttributes([i,l])}}e.uriSchemaAttributesProducer=f})),wa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnionType=e.IntersectionType=e.SetOperationType=e.intersectionTypeIdentity=e.unionTypeIdentity=e.setOperationTypeIdentity=e.setOperationCasesEqual=e.EnumType=e.enumTypeIdentity=e.MapType=e.ClassType=e.ObjectType=e.mapTypeIdentify=e.classTypeIdentity=e.ClassProperty=e.GenericClassProperty=e.ArrayType=e.arrayTypeIdentity=e.PrimitiveType=e.primitiveTypeIdentity=e.Type=e.TypeIdentity=e.isPrimitiveTypeKind=e.isNumberTypeKind=e.targetTypeKindForTransformedStringTypeKind=e.isPrimitiveStringTypeKind=e.transformedStringTypeKinds=e.transformedStringTypeTargetTypeKindsMap=void 0;var t=a(),n=Q(),r=fa(),i=C(),o=va(),s=Ca(),c={date:{jsonSchema:`date`,primitive:void 0},time:{jsonSchema:`time`,primitive:void 0},"date-time":{jsonSchema:`date-time`,primitive:void 0},uuid:{jsonSchema:`uuid`,primitive:void 0},uri:{jsonSchema:`uri`,primitive:void 0,attributesProducer:s.uriInferenceAttributesProducer},"integer-string":{jsonSchema:`integer`,primitive:`integer`},"bool-string":{jsonSchema:`boolean`,primitive:`bool`}};e.transformedStringTypeTargetTypeKindsMap=(0,t.mapFromObject)(c),e.transformedStringTypeKinds=new Set(Object.getOwnPropertyNames(c));function l(e){return e===`string`||(0,t.hasOwnProperty)(c,e)}e.isPrimitiveStringTypeKind=l;function u(t){let n=e.transformedStringTypeTargetTypeKindsMap.get(t);if(n!==void 0)return n.primitive}e.targetTypeKindForTransformedStringTypeKind=u;function d(e){return e===`integer`||e===`double`}e.isNumberTypeKind=d;function f(e){return l(e)||d(e)?!0:e===`none`||e===`any`||e===`null`||e===`bool`}e.isPrimitiveTypeKind=f;function p(e,t){return e.index===t.index||e.kind===`none`||t.kind===`none`}var m=class e{constructor(e,n){this._kind=e,this._components=n;let r=t.hashCodeInit;r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(this._kind));for(let e of n)r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(e));this._hashCode=r}equals(r){if(!(r instanceof e)||this._kind!==r._kind)return!1;let i=this._components.length;(0,n.assert)(i===r._components.length,`Components of a type kind's identity must have the same length`);for(let e=0;e<i;e++)if(!(0,t.areEqual)(this._components[e],r._components[e]))return!1;return!0}hashCode(){return this._hashCode}};e.TypeIdentity=m;var h=class e{constructor(e,t){this.typeRef=e,this.graph=t}get index(){return(0,o.typeRefIndex)(this.typeRef)}getChildren(){let e=this.getNonAttributeChildren();for(let[n,r]of this.getAttributes())n.children!==void 0&&(0,t.setUnionInto)(e,n.children(r));return e}getAttributes(){return(0,o.attributesForTypeRef)(this.typeRef,this.graph)}get hasNames(){return r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes())!==void 0}getNames(){return(0,n.defined)(r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes()))}getCombinedName(){return this.getNames().combinedName}get debugPrintKind(){return this.kind}equals(t){return t instanceof e?this.typeRef===t.typeRef:!1}hashCode(){return(0,t.hashCodeOf)(this.typeRef)}structurallyCompatible(e,t=!1){function r(e,n){return e===n?!0:t?e===`integer`?n===`double`:e===`double`?n===`integer`:!1:!1}if(p(this,e))return!0;if(!r(this.kind,e.kind))return!1;let i=[[this,e]],a=[],o,s=(e,t)=>p(e,t)?!0:r(e.kind,t.kind)?(i.push([e,t]),!0):(o=!0,!1);for(;i.length>0;){let[e,r]=(0,n.defined)(i.pop());if(e.index>r.index&&([e,r]=[r,e]),!e.isPrimitive()){let t=e.index,n=r.index,i=!1;for(let[e,r]of a)if(e===t&&r===n){i=!0;break}if(i)continue;a.push([t,n])}if(o=!1,!e.structuralEqualityStep(r,t,s)||o)return!1}return!0}getParentTypes(){return this.graph.getParentsOfType(this)}getAncestorsNotInSet(e){let t=[this],n=new Set,r=new Set;for(;;){let i=t.pop();if(i===void 0)break;let a=i.getParentTypes();console.log(`${a.size} parents`);for(let i of a)n.has(i)||(n.add(i),e.has(i.typeRef)?(console.log(`adding ${i.kind}`),t.push(i)):(console.log(`found ${i.kind}`),r.add(i)))}return r}};e.Type=h;function g(e){return(0,t.mapSome)(e,(e,t)=>t.requiresUniqueIdentity(e))}function _(e){return(0,t.mapFilter)(e,(e,t)=>t.inIdentity)}function v(e,t){if(!g(t))return new m(e,[_(t)])}e.primitiveTypeIdentity=v,e.PrimitiveType=class extends h{constructor(e,t,n){super(e,t),this.kind=n}get isNullable(){return this.kind===`null`||this.kind===`any`||this.kind===`none`}isPrimitive(){return!0}getNonAttributeChildren(){return new Set}get identity(){return v(this.kind,this.getAttributes())}reconstitute(e){e.getPrimitiveType(this.kind)}structuralEqualityStep(e,t,n){return!0}};function y(e,t){if(!g(e))return new m(`array`,[_(e),t])}e.arrayTypeIdentity=y,e.ArrayType=class extends h{constructor(e,t,n){super(e,t),this._itemsRef=n,this.kind=`array`}setItems(e){if(this._itemsRef!==void 0)return(0,n.panic)(`Can only set array items once`);this._itemsRef=e}getItemsRef(){return this._itemsRef===void 0?(0,n.panic)(`Array items accessed before they were set`):this._itemsRef}get items(){return(0,o.derefTypeRef)(this.getItemsRef(),this.graph)}getNonAttributeChildren(){return new Set([this.items])}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return y(this.getAttributes(),this.getItemsRef())}reconstitute(e){let t=this.getItemsRef(),n=e.lookup(t);n===void 0?(e.getUniqueArrayType(),e.setArrayItems(e.reconstitute(this.getItemsRef()))):e.getArrayType(n)}structuralEqualityStep(e,t,n){return n(this.items,e.items)}};var b=class e{constructor(e,t){this.typeData=e,this.isOptional=t}equals(n){return n instanceof e?(0,t.areEqual)(this.typeData,n.typeData)&&this.isOptional===n.isOptional:!1}hashCode(){return(0,t.hashCodeOf)(this.typeData)+(this.isOptional?17:23)}};e.GenericClassProperty=b,e.ClassProperty=class extends b{constructor(e,t,n){super(e,n),this.graph=t}get typeRef(){return this.typeData}get type(){return(0,o.derefTypeRef)(this.typeRef,this.graph)}};function x(e,t,n,r){if(!g(t))return new m(e,[_(t),n,r])}function S(e,t){return x(`class`,e,t,void 0)}e.classTypeIdentity=S;function w(e,t){return x(`map`,e,new Map,t)}e.mapTypeIdentify=w;var T=class extends h{constructor(e,t,r,i,a,o){super(e,t),this.kind=r,this.isFixed=i,this._properties=a,this._additionalPropertiesRef=o,r===`map`?(a!==void 0&&(0,n.assert)(a.size===0),(0,n.assert)(!i)):r===`class`?(0,n.assert)(o===void 0):(0,n.assert)(i)}setProperties(e,t){(0,n.assert)(this._properties===void 0,`Tried to set object properties twice`),this instanceof D&&(0,n.assert)(e.size===0,`Cannot set properties on map type`),this instanceof E&&(0,n.assert)(t===void 0,`Cannot set additional properties of class type`),this._properties=e,this._additionalPropertiesRef=t}getProperties(){return(0,n.defined)(this._properties)}getSortedProperties(){return(0,t.mapSortByKey)(this.getProperties())}getAdditionalPropertiesRef(){return(0,n.assert)(this._properties!==void 0,`Properties are not set yet`),this._additionalPropertiesRef}getAdditionalProperties(){let e=this.getAdditionalPropertiesRef();if(e!==void 0)return(0,o.derefTypeRef)(e,this.graph)}getNonAttributeChildren(){let e=(0,t.mapSortToArray)(this.getProperties(),(e,t)=>t).map(([e,t])=>t.type),n=this.getAdditionalProperties();return n!==void 0&&e.push(n),new Set(e)}get isNullable(){return!1}isPrimitive(){return!1}get identity(){if(!this.isFixed)return x(this.kind,this.getAttributes(),this.getProperties(),this.getAdditionalPropertiesRef())}reconstitute(e,r){let i=this.getSortedProperties(),a=r?i:this.getProperties(),o=e.lookupMap((0,t.mapMap)(i,e=>e.typeRef)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.lookup(t));if(o!==void 0&&(s!==void 0||this._additionalPropertiesRef===void 0)){let r=(0,t.mapMap)(a,(t,r)=>e.makeClassProperty((0,n.defined)(o.get(r)),t.isOptional));switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getObjectType(r,s);break;case`map`:e.getMapType((0,n.defined)(s));break;case`class`:this.isFixed?e.getUniqueClassType(!0,r):e.getClassType(r);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}}else{switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getUniqueObjectType(void 0,void 0);break;case`map`:e.getUniqueMapType();break;case`class`:e.getUniqueClassType(this.isFixed,void 0);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}let r=(0,t.mapMap)(i,t=>e.reconstitute(t.typeRef)),o=(0,t.mapMap)(a,(t,i)=>e.makeClassProperty((0,n.defined)(r.get(i)),t.isOptional)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.reconstitute(t));e.setObjectProperties(o,s)}}structuralEqualityStep(e,t,n){let r=this.getProperties(),i=e.getProperties();if(r.size!==i.size)return!1;let a=!1;for(let[e,t]of r){let r=i.get(e);if(r===void 0||t.isOptional!==r.isOptional||!n(t.type,r.type))return a=!0,!1}if(a)return!1;let o=this.getAdditionalProperties(),s=e.getAdditionalProperties();return o===void 0==(s===void 0)?o===void 0||s===void 0?!0:n(o,s):!1}};e.ObjectType=T;var E=class extends T{constructor(e,t,n,r){super(e,t,`class`,n,r,void 0)}};e.ClassType=E;var D=class extends T{constructor(e,n,r){super(e,n,`map`,!1,(0,t.definedMap)(r,()=>new Map),r)}get values(){return(0,n.defined)(this.getAdditionalProperties())}};e.MapType=D;function O(e,t){if(!g(e))return new m(`enum`,[_(e),t])}e.enumTypeIdentity=O,e.EnumType=class extends h{constructor(e,t,n){super(e,t),this.cases=n,this.kind=`enum`}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return O(this.getAttributes(),this.cases)}getNonAttributeChildren(){return new Set}reconstitute(e){e.getEnumType(this.cases)}structuralEqualityStep(e,n,r){return(0,t.areEqual)(this.cases,e.cases)}};function k(e,n,r,i){let a=(0,t.toReadonlySet)(e),o=(0,t.toReadonlySet)(n);return a.size===o.size?(0,t.iterableEvery)(a,e=>{let n=(0,t.iterableFind)(o,t=>t.kind===e.kind);return!!(n!==void 0&&i(e,n)||r&&(e.kind===`integer`&&(0,t.iterableSome)(o,e=>e.kind===`double`)||e.kind===`double`&&(0,t.iterableSome)(o,e=>e.kind===`integer`)))}):!1}e.setOperationCasesEqual=k;function A(e,t,n){if(!g(t))return new m(e,[_(t),n])}e.setOperationTypeIdentity=A;function j(e,t){return A(`union`,e,t)}e.unionTypeIdentity=j;function M(e,t){return A(`intersection`,e,t)}e.intersectionTypeIdentity=M;var N=class extends h{constructor(e,t,n,r){super(e,t),this.kind=n,this._memberRefs=r}setMembers(e){if(this._memberRefs!==void 0)return(0,n.panic)(`Can only set map members once`);this._memberRefs=e}getMemberRefs(){return this._memberRefs===void 0?(0,n.panic)(`Map members accessed before they were set`):this._memberRefs}get members(){return(0,t.setMap)(this.getMemberRefs(),e=>(0,o.derefTypeRef)(e,this.graph))}get sortedMembers(){return this.getNonAttributeChildren()}getNonAttributeChildren(){return(0,t.setSortBy)(this.members,e=>e.kind)}isPrimitive(){return!1}get identity(){return A(this.kind,this.getAttributes(),this.getMemberRefs())}reconstituteSetOperation(e,r,i){let a=(0,t.mapMap)(this.sortedMembers.entries(),e=>e.typeRef),o=r?this.sortedMembers:this.members,s=e.lookupMap(a);if(s===void 0){i(void 0);let r=e.reconstituteMap(a);e.setSetOperationMembers((0,t.setMap)(o,e=>(0,n.defined)(r.get(e))))}else i((0,t.setMap)(o,e=>(0,n.defined)(s.get(e))))}structuralEqualityStep(e,t,n){return k(this.members,e.members,t,n)}};e.SetOperationType=N,e.IntersectionType=class extends N{constructor(e,t,n){super(e,t,`intersection`,n)}get isNullable(){return(0,n.panic)(`isNullable not implemented for IntersectionType`)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueIntersectionType():e.getIntersectionType(t)})}},e.UnionType=class extends N{constructor(e,t,n){super(e,t,`union`,n),n!==void 0&&(0,i.messageAssert)(n.size>0,`IRNoEmptyUnions`,{})}setMembers(e){(0,i.messageAssert)(e.size>0,`IRNoEmptyUnions`,{}),super.setMembers(e)}get stringTypeMembers(){return(0,t.setFilter)(this.members,e=>l(e.kind)||e.kind===`enum`)}findMember(e){return(0,t.iterableFind)(this.members,t=>t.kind===e)}get isNullable(){return this.findMember(`null`)!==void 0}get isCanonical(){let e=this.members;if(e.size<=1)return!1;let n=(0,t.setMap)(e,e=>e.kind);if(n.size<e.size||n.has(`union`)||n.has(`intersection`)||n.has(`none`)||n.has(`any`)||n.has(`string`)&&n.has(`enum`))return!1;let r=0;return n.has(`class`)&&(r+=1),n.has(`map`)&&(r+=1),n.has(`object`)&&(r+=1),!(r>1)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueUnionType():e.getUnionType(t)})}}})),Ta=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignNames=e.keywordNamespace=e.DependencyName=e.AssociatedName=e.SimpleName=e.FixedName=e.Name=e.funPrefixNamer=e.Namer=e.Namespace=void 0;var t=a(),n=Q(),r=class{constructor(e,t,n,r){this._children=new Set,this._members=new Set,this.forbiddenNamespaces=new Set(n),this.additionalForbidden=new Set(r),t!==void 0&&t.addChild(this)}addChild(e){this._children.add(e)}get children(){return this._children}get members(){return this._members}get forbiddenNameds(){return(0,t.setUnion)(this.additionalForbidden,...Array.from(this.forbiddenNamespaces).map(e=>e.members))}add(e){return this._members.add(e),e}};e.Namespace=r;var i=class{constructor(e,t,n){this.name=e,this.nameStyle=t,this._prefixes=new Set(n)}assignNames(e,r,i){let a=new Set(r),o=Array.from(i);(0,n.assert)(o.length>0,`Number of names can't be less than 1`);let s=new Map,c=[];for(let n of o){let r=n.proposeUnstyledNames(e),i=n.namingFunction,l=(0,t.iterableFind)(r,t=>!a.has(i.nameStyle(t))&&o.every(r=>r===n||!r.proposeUnstyledNames(e).has(t)));if(l!==void 0){let e=i.nameStyle(l),r=n.nameAssignments(a,e);if(r!==null){(0,t.mapMergeInto)(s,r),(0,t.setUnionInto)(a,r.values());continue}}c.push(n)}let l=this._prefixes.values(),u=1;for(let r of c){let i=(0,n.defined)((0,t.iterableFirst)(r.proposeUnstyledNames(e)));for(;;){let e,{done:n,value:o}=l.next();n?(e=`${i}_${u.toString()}`,u++):e=`${o}_${i}`;let c=r.namingFunction.nameStyle(e),d=r.nameAssignments(a,c);if(d!==null){(0,t.mapMergeInto)(s,d),(0,t.setUnionInto)(a,d.values());break}}}return s}};e.Namer=i;var o=[`Purple`,`Fluffy`,`Tentacled`,`Sticky`,`Indigo`,`Indecent`,`Hilarious`,`Ambitious`,`Cunning`,`Magenta`,`Frisky`,`Mischievous`,`Braggadocious`];function s(e,t){return new i(e,t,o)}e.funPrefixNamer=s;var c=class{constructor(e,t){this._namingFunction=e,this.order=t,this._associates=new Set}addAssociate(e){this._associates.add(e)}isFixed(){return this instanceof l}get namingFunction(){return(0,n.defined)(this._namingFunction)}firstProposedName(e){return(0,n.defined)((0,t.iterableFirst)(this.proposeUnstyledNames(e)))}nameAssignments(e,t){if(e.has(t))return null;let n=new Map([[this,t]]);for(let r of this._associates){let i=r.getName(t);if(e.has(i))return null;n.set(r,i)}return n}};e.Name=c;var l=class extends c{constructor(e){super(void 0,0),this._fixedName=e}get dependencies(){return[]}addAssociate(e){return(0,n.panic)(`Cannot add associates to fixed names`)}get fixedName(){return this._fixedName}proposeUnstyledNames(e){return(0,n.panic)(`Only fixedName should be called on FixedName.`)}};e.FixedName=l,e.SimpleName=class extends c{constructor(e,t,n){super(t,n),this._unstyledNames=new Set(e)}get dependencies(){return[]}proposeUnstyledNames(e){return this._unstyledNames}},e.AssociatedName=class extends c{constructor(e,t,n){super(void 0,t),this._sponsor=e,this.getName=n}get dependencies(){return[this._sponsor]}proposeUnstyledNames(e){return(0,n.panic)(`AssociatedName must be assigned via its sponsor`)}},e.DependencyName=class extends c{constructor(e,t,n){super(e,t),this._proposeUnstyledName=n;let r=[];n(e=>(r.push(e),`0xDEADBEEF`)),this._dependencies=new Set(r)}get dependencies(){return Array.from(this._dependencies)}proposeUnstyledNames(e){return new Set([this._proposeUnstyledName(t=>((0,n.assert)(this._dependencies.has(t),`DependencyName proposer is not pure`),(0,n.defined)(e.get(t))))])}};function u(e,t){let n=new r(e,void 0,[],[]);for(let e of t)n.add(new l(e));return n}e.keywordNamespace=u;function d(e){return(0,t.setUnion)(e,...Array.from((0,t.setMap)(e,e=>d(e.children))))}var f=class{constructor(e){this._names=new Map,this._namedsForName=new Map,this.isReadyToBeNamed=e=>this._names.has(e)?!1:e.dependencies.every(e=>this._names.has(e)),this.isConflicting=(e,t)=>{let n=this._namedsForName.get(t);if(n===void 0)return!1;for(let t of n)if(e.members.has(t)||e.forbiddenNameds.has(t))return!0;return!1},this.assign=(e,t,r)=>{(0,n.assert)(!this.names.has(e),`Name "${r}" assigned twice`),(0,n.assert)(!this.isConflicting(t,r),`Assigned name "${r}" conflicts`),this._names.set(e,r);let i=this._namedsForName.get(r);i===void 0&&(i=new Set,this._namedsForName.set(r,i)),i.add(e)},this.namespaces=d(e)}get names(){return this._names}areForbiddensFullyNamed(e){return(0,t.iterableEvery)(e.forbiddenNameds,e=>this._names.has(e))}};function p(e){let n=new f(e);for(let e of n.namespaces)for(let t of e.members)t.isFixed()&&n.assign(t,e,t.fixedName);for(;;){let e=(0,t.setFilter)(n.namespaces,e=>n.areForbiddensFullyNamed(e)),r=(0,t.iterableFind)(e,e=>(0,t.iterableSome)(e.members,n.isReadyToBeNamed));if(r===void 0)return n.names;let i=(0,t.setUnion)(r.members,r.forbiddenNameds),a=(0,t.setFilterMap)(i,e=>n.names.get(e));for(;;){let e=(0,t.setFilter)(r.members,n.isReadyToBeNamed),i=(0,t.iterableMinBy)(e,e=>e.order);if(i===void 0)break;let o=i.order,s=(0,t.setFilter)(e,e=>e.order===o),c=(0,t.setGroupBy)(s,e=>e.namingFunction);for(let[e,i]of c){let o=(0,t.setGroupBy)(i,e=>e.namingFunction.nameStyle(e.firstProposedName(n.names)));for(let[,i]of o){let o=e.assignNames(n.names,a,i);for(let[e,t]of o)n.assign(e,r,t);(0,t.setUnionInto)(a,o.values())}}}}}e.assignNames=p})),Ea=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parenIfNeeded=e.multiWord=e.singleWord=e.serializeRenderResult=e.modifySource=e.maybeAnnotated=e.annotated=e.sourcelikeToSource=e.newline=void 0;var t=a(),n=Ta(),r=Q(),i=ua();function o(){return{kind:`newline`,indentationChange:0}}e.newline=o;function s(e){if(e instanceof Array)return{kind:`sequence`,sequence:e.map(s)};if(typeof e==`string`){let n=e.split(`
115
+ `,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=Bi(zi(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=Bi(zi(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 Wi(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Pi||null,prettyErrors:t}}function Gi(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(ir(e,n)),t.warnings.forEach(ir(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function Ki(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(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 nr(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(ir(e,n)),o.warnings.forEach(ir(e,n))),o}function qi(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Ki(e,n);if(!i)return null;if(i.warnings.forEach(e=>it(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 Ji(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 P(e)&&!r?e.toString(n):new $n(e,r,n).toString(n)}var Yi=n((()=>{ni(),er(),ar(),at(),z(),Fi(),Ui()})),Xi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),Zi=n((()=>{ni(),er(),Yn(),ar(),Y(),z(),_t(),xe(),Tt(),At(),Ti(),Ni(),Fi(),Ui(),Yi(),se()})),Qi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,default:()=>$i,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),$i,ea=n((()=>{Zi(),Zi(),$i=Xi})),Q=i((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,`__esModule`,{value:!0}),t.numberEnumValues=t.indentationString=t.parseJSON=t.inflateBase64=t.errorMessage=t.repeatedCall=t.repeated=t.mustNotHappen=t.panic=t.assert=t.assertNever=t.nonNull=t.defined=t.checkArray=t.checkStringMap=t.checkString=t.isStringMap=void 0;var a=o(),s=i(S()),c=C(),l=i((ea(),e(Qi)));function u(e,t){if(typeof e!=`object`||Array.isArray(e)||e===null)return!1;if(t!==void 0)for(let n of Object.getOwnPropertyNames(e)){let r=e[n];if(!t(r))return!1}return!0}t.isStringMap=u;function d(e){return typeof e==`string`}t.checkString=d;function f(e,t){return u(e,t)?e:v(`Value must be an object, but is ${e}`)}t.checkStringMap=f;function p(e,t){if(!Array.isArray(e))return v(`Value must be an array, but is ${e}`);if(t!==void 0){for(let n of e)if(!t(n))return v(`Array item does not satisfy constraint: ${n}`)}return e}t.checkArray=p;function m(e){return e===void 0?v(`Defined value expected, but got undefined`):e}t.defined=m;function h(e){return e===null?v(`Non-null value expected, but got null`):e}t.nonNull=h;function g(e){return(0,c.messageError)(`InternalError`,{message:`Unexpected object ${e}`})}t.assertNever=g;function _(e,t=`Assertion failed`){if(!e)return(0,c.messageError)(`InternalError`,{message:t})}t.assert=_;function v(e){return(0,c.messageError)(`InternalError`,{message:e})}t.panic=v;function y(){return v(`This must not happen`)}t.mustNotHappen=y;function b(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}t.repeated=b;function x(e,t){let n=[];for(let r=0;r<e;r++)n.push(t());return n}t.repeatedCall=x;function w(e){return e instanceof Error?e.message:e.toString()}t.errorMessage=w;function T(e){let t=a.Base64.atob(e);return s.inflate(t,{to:`string`})}t.inflateBase64=T;function E(e,t,n=`<unknown>`){try{return e.charCodeAt(0)===65279&&(e=e.slice(1)),l.parse(e)}catch(e){let r;return r=e instanceof SyntaxError?e.message:`Unknown exception ${e}`,(0,c.messageError)(`MiscJSONParseError`,{description:t,address:n,message:r})}}t.parseJSON=E;function D(e){return` `.repeat(e)}t.indentationString=D;function O(e){let t=[];for(let n of Object.keys(e)){let r=e[n];typeof r==`number`&&t.push(r)}return t}t.numberEnumValues=O})),ta=i(((e,n)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(e,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:e.hasOwnProperty(i)?!1:l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){if(typeof e==`string`){n[e.toLowerCase()]=!0;return}f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`)},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})})),na=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.increaseTypeAttributesDistance=e.makeTypeAttributesInferred=e.combineTypeAttributes=e.emptyTypeAttributes=e.TypeAttributeKind=void 0;var t=a(),n=Q();e.TypeAttributeKind=class e{constructor(e){this.name=e}appliesToTypeKind(e){return e!==`any`}combine(e){return(0,n.panic)(`Cannot combine type attribute ${this.name}`)}intersect(e){return this.combine(e)}makeInferred(e){return(0,n.panic)(`Cannot make type attribute ${this.name} inferred`)}increaseDistance(e){return e}addToSchema(e,t,n){}children(e){return new Set}stringify(e){}get inIdentity(){return!1}requiresUniqueIdentity(e){return!1}reconstitute(e,t){return t}makeAttributes(e){let t=[[this,e]];return new Map(t)}tryGetInAttributes(e){return e.get(this)}setInAttributes(e,t){return new Map(e).set(this,t)}modifyInAttributes(e,t){let n=t(this.tryGetInAttributes(e));if(n===void 0){let t=new Map(e);return t.delete(this),t}return this.setInAttributes(e,n)}setDefaultInAttributes(e,t){return this.tryGetInAttributes(e)===void 0?this.modifyInAttributes(e,t):e}removeInAttributes(e){return(0,t.mapFilter)(e,(e,t)=>t!==this)}equals(t){return t instanceof e?this.name===t.name:!1}hashCode(){return(0,t.hashString)(this.name)}},e.emptyTypeAttributes=new Map;function r(e,r,i){let a=e===`union`,o;if(Array.isArray(r))o=r;else{if(i===void 0)return(0,n.panic)(`Must have on array or two attributes`);o=[r,i]}let s=(0,t.mapTranspose)(o);function c(e,t){return(0,n.assert)(e.length>0,`Cannot combine zero type attributes`),e.length===1?e[0]:a?t.combine(e):t.intersect(e)}return(0,t.mapFilterMap)(s,c)}e.combineTypeAttributes=r;function i(e){return(0,t.mapFilterMap)(e,(e,t)=>t.makeInferred(e))}e.makeTypeAttributesInferred=i;function o(e){return(0,t.mapFilterMap)(e,(e,t)=>t.increaseDistance(e))}e.increaseTypeAttributesDistance=o})),ra=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EnumOption=e.StringOption=e.BooleanOption=e.getOptionValues=e.Option=void 0;var t=Q(),n=C(),r=a(),i=class{constructor(e){e.renderer=!0,this.definition=e,(0,t.assert)(e.kind!==void 0,`Renderer option kind must be defined`)}getValue(e){let t=e[this.definition.name];return t===void 0?this.definition.defaultValue:t}get cliDefinitions(){return{actual:[this.definition],display:[this.definition]}}};e.Option=i;function o(e,t){let n={};for(let r of Object.getOwnPropertyNames(e))n[r]=e[r].getValue(t);return n}e.getOptionValues=o,e.BooleanOption=class extends i{constructor(e,t,n,r=`primary`){super({name:e,kind:r,type:Boolean,description:t,defaultValue:n})}get cliDefinitions(){let e=Object.assign({},this.definition,{name:`no-${this.definition.name}`,defaultValue:!this.definition.defaultValue});return{display:[Object.assign({},this.definition,{name:`[no-]${this.definition.name}`,description:`${this.definition.description} (${this.definition.defaultValue?`on`:`off`} by default)`})],actual:[this.definition,e]}}getValue(e){let t=e[this.definition.name];t===void 0&&(t=this.definition.defaultValue);let n=e[`no-${this.definition.name}`];return n===void 0&&(n=!this.definition.defaultValue),t===`true`?t=!0:t===`false`&&(t=!1),this.definition.defaultValue?t&&!n:t||!n}},e.StringOption=class extends i{constructor(e,t,n,r,i=`primary`){super({name:e,kind:i,type:String,description:t,typeLabel:n,defaultValue:r})}},e.EnumOption=class extends i{constructor(e,t,n,r=void 0,i=`primary`){r===void 0&&(r=n[0][0]);let a={name:e,kind:i,type:String,description:t,typeLabel:n.map(([e,t])=>e).join(`|`),legalValues:n.map(([e,t])=>e),defaultValue:r};super(a),this._values={};for(let[e,t]of n)this._values[e]=t}getValue(e){let t=e[this.definition.name];return t===void 0&&(t=this.definition.defaultValue),(0,r.hasOwnProperty)(this._values,t)?this._values[t]:(0,n.messageError)(`RendererUnknownOptionValue`,{value:t,name:this.definition.name})}}})),ia=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.acronymStyle=e.acronymOption=e.AcronymStyleOptions=e.acronyms=void 0;var t=ra(),n=ua();e.acronyms=`aaa.aabb.aac.aal.aalc.aarp.abac.abcl.abi.abm.abr.ac.acd.ack.acl.acm.acme.acp.acpi.acr.adb.adc.adccp.ado.adsl.adt.ae.aes.af.afp.agp.ai.aix.alac.algol.alsa.alu.amd.amoled.amqp.amr.ann.ansi.aop.apci.api.apic.apipa.apl.apr.arin.aros.arp.arpa.arpanet.ascii.aset.asg.asic.asimo.aslr.asm.asmp.asp.asr.assp.ast.ata.atag.atapi.atm.av.avc.avi.awfl.awk.awt.bal.bam.bbp.bbs.bcd.bcnf.beep.ber.bfd.bfs.bft.bgp.bi.binac.bios.bjt.bmp.bnc.boinc.bom.bootp.bpdu.bpel.bpl.bpm.brm.brms.brr.brs.bsa.bsb.bsd.bss.bt.bw.byod.ca.cad.cae.cai.caid.captcha.caq.cd.cde.cdfs.cdma.cdn.cdp.cdsa.cert.ces.cf.cfd.cfg.cg.cga.cgi.cgt.chs.cidr.cifs.cim.cio.cir.cisc.cjk.cjkv.cli.clr.cm.cmdb.cmmi.cmo.cmos.cms.cn.cnc.cng.cnr.cobol.com.corba.cots.cpa.cpan.cpri.cps.cpu.cr.cran.crc.crlf.crm.crs.crt.crud.cs.cse.csi.csm.csp.csrf.css.csv.ct.ctan.ctcp.ctfe.cti.ctl.ctm.cts.ctss.cua.cvs.dac.dal.dao.dap.darpa.dat.db.dba.dbcs.dbms.dcc.dcca.dccp.dcl.dcmi.dcom.dcs.dd.dde.ddi.ddl.ddr.dec.des.dfa.dfd.dfs.dgd.dhcp.dhtml.dif.dimm.din.dip.dism.divx.dkim.dl.dll.dlna.dlp.dma.dmca.dmi.dml.dmr.dmz.dn.dnd.dns.doa.docsis.dom.dos.dp.dpc.dpi.dpmi.dpms.dr.dram.dri.drm.dsa.dsdl.dsdm.dsl.dslam.dsn.dsp.dsssl.dtd.dte.dtp.dtr.dvd.dvi.dvr.dw.eai.eap.eas.ebcdic.ebml.ecc.ecma.ecn.ecos.ecrs.eda.edi.edo.edsac.edvac.eeprom.eff.efi.efm.efs.ega.egp.eide.eigrp.eisa.elf.emacs.ems.eniac.eod.eof.eol.eom.eos.eprom.erd.erm.erp.esb.escon.esd.esr.etl.etw.euc.eula.ewmh.ext.fap.faq.fasm.fbdimm.fcb.fcs.fdc.fdd.fddi.fdm.fdma.fds.fec.femb.fet.fhs.ficon.fifo.fips.fl.flac.flops.fmc.fmo.foldoc.fosdem.fosi.foss.fp.fpga.fps.fpu.fqdn.fru.fs.fsb.fsf.fsm.ftp.ftta.fttc.ftth.fttp.fud.fvek.fws.fxp.fyi.gb.gcc.gcj.gcr.gdb.gdi.geran.gfdl.gif.gigo.gimps.gis.gml.gnu.goms.gpasm.gpfs.gpg.gpgpu.gpib.gpl.gprs.gpt.gpu.gsm.gui.guid.gwt.gyr.hal.hasp.hba.hci.hcl.hd.hdd.hdl.hdmi.hf.hfs.hhd.hid.hig.hird.hlasm.hls.hma.hp.hpc.hpfs.hsdpa.hsm.ht.htc.htm.html.http.https.htx.hurd.hvd.iana.ibm.ic.icann.ich.icmp.icp.ics.ict.id.ide.idf.idl.ids.iec.ieee.ietf.ifl.igmp.igrp.ihv.iiop.iis.ike.il.im.imap.ime.infosec.ip.ipam.ipc.ipl.ipmi.ipo.ipp.ips.iptv.ipx.ir.irc.iri.irp.irq.isa.isam.isatap.isc.isdn.iso.isp.ispf.isr.isv.itil.itl.itu.ivcr.ivrs.jaxb.jaxp.jbod.jce.jcl.jcp.jdbc.jdk.jds.jee.jes.jfc.jfet.jfs.jini.jit.jme.jms.jmx.jndi.jni.jnz.jpeg.jre.js.jse.json.jsp.jtag.jvm.kb.kde.km.krl.kvm.lacp.lan.lb.lba.lcd.lcos.lcr.ldap.le.led.lf.lfs.lga.lgpl.lib.lif.lifo.lilo.lisp.lkml.lm.loc.lpc.lpi.lpt.lru.lsb.lsi.lte.ltl.ltr.lun.lv.lvd.lvm.lzw.mac.manet.mapi.mb.mbcs.mbd.mbr.mca.mcad.mcas.mcdba.mcdst.mcitp.mcm.mcp.mcpc.mcpd.mcsa.mcsd.mcse.mct.mcts.mda.mdf.mdi.mf.mfc.mfm.mgcp.mib.micr.midi.mimd.mime.mimo.minix.mips.mis.misd.mit.mmc.mmds.mmf.mmi.mmio.mmorpg.mmu.mmx.mng.mom.mos.mosfet.motd.mous.mov.mpaa.mpeg.mpl.mpls.mpu.ms.msa.msb.msdn.msi.msn.mt.mta.mtbf.mtu.mua.mvc.mvp.mvs.mwc.mx.mxf.nack.nak.nas.nasm.ncp.ncq.ncsa.ndis.ndps.nds.nep.nfa.nfc.nfs.ngl.ngscb.ni.nic.nim.nio.nist.nlp.nls.nmi.nntp.noc.nop.nos.np.npl.nptl.npu.ns.nsa.nsi.nspr.nss.nt.ntfs.ntlm.ntp.numa.nurbs.nvr.nvram.oat.obsai.odbc.oem.oes.ofdm.oftc.oid.olap.ole.oled.olpc.oltp.omf.omg.omr.oo.ooe.oom.oop.ootb.opml.orb.orm.os.oscon.osdn.osi.ospf.oss.ostg.oui.pap.parc.pata.pbs.pc.pcb.pci.pcl.pcm.pcmcia.pcre.pd.pda.pdf.pdh.pdp.pe.perl.pfa.pg.pga.pgo.pgp.php.pid.pim.pio.pkcs.pki.plc.pld.plt.pmm.png.pnrp.poid.pojo.posix.ppc.ppi.ppp.pptp.pr.ps.psa.psm.psu.psvi.pv.pvg.pvr.pxe.pxi.qa.qdr.qfp.qotd.qsop.qtam.racf.rad.raid.raii.rait.ram.rarp.ras.rc.rcs.rd.rdbms.rdc.rdf.rdm.rdos.rdp.rds.refal.rest.rf.rfc.rfi.rfid.rgb.rgba.rhel.rhl.ria.riaa.rip.rir.risc.rje.rle.rll.rmi.rms.rom.romb.rpc.rpg.rpm.rras.rsa.rsi.rss.rtai.rtc.rte.rtems.rtl.rtos.rtp.rts.rtsp.rtti.rwd.san.sas.sata.sax.sbod.sbu.scada.scid.scm.scp.scpc.scpi.scsa.scsi.sctp.sd.sddl.sdh.sdi.sdio.sdk.sdl.sdn.sdp.sdr.sdram.sdsl.se.sec.sei.seo.sftp.sgi.sgml.sgr.sha.shdsl.sigcat.siggraph.simd.simm.sip.sisd.siso.sles.sli.slm.sloc.sma.smb.smbios.sme.smf.smil.smp.smps.sms.smt.smtp.sna.snmp.sntp.soa.soe.soho.soi.sopa.sp.spa.sparc.spf.spi.spm.spmd.sql.sram.ssa.ssd.ssdp.sse.ssh.ssi.ssid.ssl.ssp.ssse.sssp.sstp.sus.suse.svc.svd.svg.svga.swf.swt.tao.tapi.tasm.tb.tcp.tcu.tdma.tft.tftp.ti.tla.tld.tls.tlv.tnc.tpf.tpm.troff.tron.trsdos.tso.tsp.tsr.tta.ttf.ttl.tts.tty.tucows.twain.uaag.uac.uart.uat.ucs.uddi.udma.udp.uefi.uhf.ui.ul.ula.uma.umb.uml.umpc.umts.unc.univac.ups.uri.url.usb.usr.utc.utf.utp.utran.uucp.uuid.uun.uvc.uwp.ux.vax.vb.vba.vbs.vcpi.vdm.vdsl.vesa.vfat.vfs.vg.vga.vhf.vlan.vlb.vlf.vliw.vlsi.vlsm.vm.vmm.vnc.vod.vpn.vpu.vr.vram.vrml.vsam.vsat.vt.vtam.vtl.wafs.wai.wais.wan.wap.wasm.wbem.wcag.wcf.wdm.wep.wfi.wins.wlan.wma.wmi.wmv.wns.wol.wor.wora.wpa.wpad.wpan.wpf.wsdl.wsfl.wusb.wwan.wwdc.wwid.wwn.www.wysiwyg.wzc.xag.xaml.xcbl.xdm.xdmcp.xhtml.xilp.xml.xmms.xmpp.xms.xns.xp.xpcom.xpi.xpidl.xps.xsd.xsl.xslt.xss.xtf.xul.xvga.yaaf.yacc.yaml.zcav.zcs.zif.zifs.zisc.zma.zoi.zope.zpl`.split(`.`);var r;(function(e){e.Pascal=`pascal`,e.Camel=`camel`,e.Original=`original`,e.Lower=`lowerCase`})(r=e.AcronymStyleOptions||={}),e.acronymOption=function(e){return new t.EnumOption(`acronym-style`,`Acronym naming style`,[[r.Original,r.Original],[r.Pascal,r.Pascal],[r.Camel,r.Camel],[r.Lower,r.Lower]],e,`secondary`)};function i(e){return{[r.Pascal]:n.allUpperWordStyle,[r.Camel]:n.firstUpperWordStyle,[r.Original]:n.originalWord,[r.Lower]:n.allLowerWordStyle}[e]}e.acronymStyle=i})),aa=i((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),oa=i(((e,t)=>{var n=0,r=-3;function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var o=new i,s=new i,c=new Uint8Array(30),l=new Uint16Array(30),u=new Uint8Array(30),d=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=new i,m=new Uint8Array(320);function h(e,t,n,r){var i,a;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(a=r,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}function g(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}var _=new Uint16Array(16);function v(e,t,n,r){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)_[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[_[t[n+i]]++]=i)}function y(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function b(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,a=e.tag;do r=2*r+(a&1),a>>>=1,++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag=a,e.bitcount-=i,t.trans[n+r]}function S(e,t,n){var r=b(e,5,257),i=b(e,5,1),a=b(e,4,4),o,s,c;for(o=0;o<19;++o)m[o]=0;for(o=0;o<a;++o){var l=b(e,3,0);m[f[o]]=l}for(v(p,m,0,19),s=0;s<r+i;){var u=x(e,p);switch(u){case 16:var d=m[s-1];for(c=b(e,2,3);c;--c)m[s++]=d;break;case 17:for(c=b(e,3,3);c;--c)m[s++]=0;break;case 18:for(c=b(e,7,11);c;--c)m[s++]=0;break;default:m[s++]=u;break}}v(t,m,0,r),v(n,m,r,i)}function C(e,t,r){for(;;){var i=x(e,t);if(i===256)return n;if(i<256)e.dest[e.destLen++]=i;else{var a,o,s,f;for(i-=257,a=b(e,c[i],l[i]),o=x(e,r),s=e.destLen-b(e,u[o],d[o]),f=s;f<s+a;++f)e.dest[e.destLen++]=e.dest[f]}}}function w(e){for(var t,i,a;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],i=e.source[e.sourceIndex+3],i=256*i+e.source[e.sourceIndex+2],t!==(~i&65535))return r;for(e.sourceIndex+=4,a=t;a;--a)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,n}function T(e,t){var i=new a(e,t),c,l,u;do{switch(c=y(i),l=b(i,2,0),l){case 0:u=w(i);break;case 1:u=C(i,o,s);break;case 2:S(i,i.ltree,i.dtree),u=C(i,i.ltree,i.dtree);break;default:u=r}if(u!==n)throw Error(`Data error`)}while(!c);return i.destLen<i.dest.length?typeof i.dest.slice==`function`?i.dest.slice(0,i.destLen):i.dest.subarray(0,i.destLen):i.dest}g(o,s),h(c,l,4,3),h(u,d,2,1),c[28]=0,l[28]=258,t.exports=T})),sa=i(((e,t)=>{var n=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,r=(e,t,n)=>{let r=e[t];e[t]=e[n],e[n]=r},i=e=>{let t=e.length;for(let n=0;n<t;n+=4)r(e,n,n+3),r(e,n+1,n+2)};t.exports={swap32LE:e=>{n&&i(e)}}})),ca=i(((e,t)=>{var n=oa(),{swap32LE:r}=sa(),i=11,a=5,o=i-a,s=65536>>i,c=(1<<o)-1,l=2,u=(1<<a)-1,d=65536>>a,f=d+(1024>>a)+32,p=1<<l;t.exports=class{constructor(e){let t=typeof e.readUInt32BE==`function`&&typeof e.slice==`function`;if(t||e instanceof Uint8Array){let i;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),i=e.readUInt32LE(8),e=e.slice(12);else{let t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),i=t.getUint32(8,!0),e=e.subarray(12)}e=n(e,new Uint8Array(i)),e=n(e,new Uint8Array(i)),r(e),this.data=new Uint32Array(e.buffer)}else ({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>a]<<l)+(e&u),this.data[t]):e<=65535?(t=(this.data[d+(e-55296>>a)]<<l)+(e&u),this.data[t]):e<this.highStart?(t=this.data[f-s+(e>>i)],t=this.data[t+(e>>a&c)],t=(t<<l)+(e&u),this.data[t]):this.data[this.data.length-p]}}})),la=i(((e,t)=>{var n=aa(),r=ca();function i(e){return e&&e.__esModule?e.default:e}function a(e){Object.defineProperty(e,`__esModule`,{value:!0,configurable:!0})}function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(t.exports),o(t.exports,`getCategory`,()=>T),o(t.exports,`getCombiningClass`,()=>E),o(t.exports,`getScript`,()=>D),o(t.exports,`getEastAsianWidth`,()=>O),o(t.exports,`getNumericValue`,()=>k),o(t.exports,`isAlphabetic`,()=>A),o(t.exports,`isDigit`,()=>j),o(t.exports,`isPunctuation`,()=>M),o(t.exports,`isLowerCase`,()=>N),o(t.exports,`isUpperCase`,()=>P),o(t.exports,`isTitleCase`,()=>ee),o(t.exports,`isWhiteSpace`,()=>F),o(t.exports,`isBaseForm`,()=>I),o(t.exports,`isMark`,()=>L),o(t.exports,`default`,()=>R);var s={};s=JSON.parse(`{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}`);var c=new(i(r))(i(n).toByteArray(`AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4Bleru+6Vfc/MBjgXVx7who94nPn7MPFrnwQP7g0k0Dq0h2GSKO6fTZ8nLodN1SiOUj/5EL/Xo1DBvRm0wmrh3x6phcJ20/9CuMr5h8WPqXMSasLoLHoufTmE7mzYrs6B0dY7KjuCogKqsvxnxAwXWvd9Puc9PnE8DOHT2INHxRlIyVHrqZahtfV2E/A2PDdtA3ewlRHMtFIBKO/T4IozWTQZ+mb+gdKuk/ZHrqloucKdsOSJmlWTSntWjcxVMjUmroXLM10I6TwDLnBq4LP69TxgVeyGsd8yHvhF8ydPlrNRSNs9EP7WmeuSE7Lu10JbOuQcJw/63sDp68wB9iwP5AO+mBpV0R5VDDeyQUFCel1G+4KHBgEVFS0YK+m2sXLWLuGTlkVAd97WwKKdacjWElRCuDRauf33l/yVcDF6sVPKeTes99FC1NpNWcpieGSV/IbO8PCTy5pbUR1U8lxzf4T+y6fZMxOz3LshkQLeeDSd0WmUrQgajmbktrxsb2AZ0ACw2Vgni+gV/m+KvCRWLg08Clx7uhql+v9XySGcjjOHlsp8vBw/e8HS7dtiqF6T/XcSXuaMW66GF1g4q9YyBadHqy3Y5jin1c7yZos6BBr6dsomSHxiUHanYtcYQwnMMZhRhOnaYJeyJzaRuukyCUh48+e/BUvk/aEfDp8ag+jD64BHxNnQ5v/E7WRk7eLjGV13I3oqy45YNONi/1op1oDr7rPjkhPsTXgUpQtGDPlIs55KhQaic9kSGs/UrZ2QKQOflB8MTEQxRF9pullToWO7Eplan6mcMRFnUu2441yxi23x+KqKlr7RWWsi9ZXMWlr8vfP3llk1m2PRj0yudccxBuoa7VfIgRmnFPGX6Pm1WIfMm/Rm4n/xTn8IGqA0GWuqgu48pEUO0U9nN+ZdIvFpPb7VDPphIfRZxznlHeVFebkd9l+raXy9BpTMcIUIvBfgHEb6ndGo8VUkxpief14KjzFOcaANfgvFpvyY8lE8lE4raHizLpluPzMks1hx/e1Hok5yV0p7qQH7GaYeMzzZTFvRpv6k6iaJ4yNqzBvN8J7B430h2wFm1IBPcqbou33G7/NWPgopl4Mllla6e24L3TOTVNkza2zv3QKuDWTeDpClCEYgTQ+5vEBSQZs/rMF50+sm4jofTgWLqgX1x3TkrDEVaRqfY/xZizFZ3Y8/DFEFD31VSfBQ5raEB6nHnZh6ddehtclQJ8fBrldyIh99LNnV32HzKEej04hk6SYjdauCa4aYW0ru/QxvQRGzLKOAQszf3ixJypTW3WWL6BLSF2EMCMIw7OUvWBC6A/gDc2D1jvBapMCc7ztx6jYczwTKsRLL6dMNXb83HS8kdD0pTMMj161zbVHkU0mhSHo9SlBDDXdN6hDvRGizmohtIyR3ot8tF5iUG4GLNcXeGvBudSFrHu+bVZb9jirNVG+rQPI51A7Hu8/b0UeaIaZ4UgDO68PkYx3PE2HWpKapJ764Kxt5TFYpywMy4DLQqVRy11I7SOLhxUFmqiEK52NaijWArIfCg6qG8q5eSiwRCJb1R7GDJG74TrYgx/lVq7w9++Kh929xSJEaoSse5fUOQg9nMAnIZv+7fwVRcNv3gOHI46Vb5jYUC66PYHO6lS+TOmvEQjuYmx4RkffYGxqZIp/DPWNHAixbRBc+XKE3JEOgs4jIwu/dSAwhydruOGF39co91aTs85JJ3Z/LpXoF43hUwJsb/M1Chzdn8HX8vLXnqWUKvRhNLpfAF4PTFqva1sBQG0J+59HyYfmQ3oa4/sxZdapVLlo/fooxSXi/dOEQWIWq8E0FkttEyTFXR2aNMPINMIzZwCNEheYTVltsdaLkMyKoEUluPNAYCM2IG3br0DLy0fVNWKHtbSKbBjfiw7Lu06gQFalC7RC9BwRMSpLYDUo9pDtDfzwUiPJKLJ2LGcSphWBadOI/iJjNqUHV7ucG8yC6+iNM9QYElqBR7ECFXrcTgWQ3eG/tCWacT9bxIkfmxPmi3vOd36KxihAJA73vWNJ+Y9oapXNscVSVqS5g15xOWND/WuUCcA9YAAg6WFbjHamrblZ5c0L6Zx1X58ZittGcfDKU697QRSqW/g+RofNRyvrWMrBn44cPvkRe2HdTu/Cq01C5/riWPHZyXPKHuSDDdW8c1XPgd6ogvLh20qEIu8c19sqr4ufyHrwh37ZN5MkvY1dsGmEz9pUBTxWrvvhNyODyX2Q1k/fbX/T/vbHNcBrmjgDtvBdtZrVtiIg5iXQuzO/DEMvRX8Mi1zymSlt92BGILeKItjoShJXE/H7xwnf0Iewb8BFieJ9MflEBCQYEDm8eZniiEPfGoaYiiEdhQxHQNr2AuRdmbL9mcl18Kumh+HEZLp6z+j35ML9zTbUwahUZCyQQOgQrGfdfQtaR/OYJ/9dYXb2TWZFMijfCA8Nov4sa5FFDUe1T68h4q08WDE7JbbDiej4utRMR9ontevxlXv6LuJTXt1YEv8bDzEt683PuSsIN0afvu0rcBu9AbXZbkOG3K3AhtqQ28N23lXm7S3Yn6KXmAhBhz+GeorJJ4XxO/b3vZk2LXp42+QvsVxGSNVpfSctIFMTR1bD9t70i6sfNF3WKz/uKDEDCpzzztwhL45lsw89H2IpWN10sXHRlhDse9KCdpP5qNNpU84cTY+aiqswqR8XZ9ea0KbVRwRuOGQU3csAtV2fSbnq47U6es6rKlWLWhg3s/B9C9g+oTyp6RtIldR51OOkP5/6nSy6itUVPcMNOp4M/hDdKOz3uK6srbdxOrc2cJgr1Sg02oBxxSky6V7JaG+ziNwlfqnjnvh2/uq1lKfbp+qpwq/D/5OI5gkFl5CejKGxfc2YVJfGqc4E0x5e9PHK2ukbHNI7/RZV6LNe65apbTGjoCaQls0txPPbmQbCQn+/upCoXRZy9yzorWJvZ0KWcbXlBxU/d5I4ERUTxMuVWhSMmF677LNN7NnLwsmKawXkCgbrpcluOl0WChR1qhtSrxGXHu251dEItYhYX3snvn1gS2uXuzdTxCJjZtjsip0iT2sDC0qMS7Bk9su2NyXjFK5/f5ZoWwofg3DtTyjaFqspnOOTSh8xK/CKUFS57guVEkw9xoQuRCwwEO9Lu9z2vYxSa9NFV8DvSxv2C4WYLYF8Nrc4DzWkzNsk81JJOlZ/LYJrGCoj4MmZpnf3AXmzxT4rtl9jsqljEyedz468SGKdBiQzyz/qWKEhFg45ZczlZZ3KGL3l6sn+3TTa3zMVMhPa1obGp/z+fvY0QXTrJTf1XAT3EtQdUfYYlmWZyvPZ/6rWwU7UOQei7pVE0osgN94Iy+T1+omE6z4Rh2O20FjgBeK2y1mcoFiMDOJvuZPn5Moy9fmFH3wyfKvn4+TwfLvt/lHTTVnvrtoUWRBiQXhiNM8nE6ZoWeux/Z0b2unRcdUzdDpmL7CAgd1ToRXwgmHTZOgiGtVT+xr1QH9ObebRTT4NzL+XSpLuuWp62GqQvJVTPoZOeJCb6gIwd9XHMftQ+Kc08IKKdKQANSJ1a2gve3JdRhO0+tNiYzWAZfd7isoeBu67W7xuK8WX7nhJURld98Inb0t/dWOSau/kDvV4DJo/cImw9AO2Gvq0F2n0M7yIZKL8amMbjYld+qFls7hq8Acvq97K2PrCaomuUiesu7qNanGupEl6J/iem8lyr/NMnsTr6o41PO0yhQh3hPFN0wJP7S830je9iTBLzUNgYH+gUZpROo3rN2qgCI+6GewpX8w8CH+ro6QrWiStqmcMzVa3vEel+3/dDxMp0rDv1Q6wTMS3K64zTT6RWzK1y643im25Ja7X2ePCV2mTswd/4jshZPo4bLnerqIosq/hy2bKUAmVn9n4oun1+a0DIZ56UhVwmZHdUNpLa8gmPvxS1eNvCF1T0wo1wKPdCJi0qOrWz7oYRTzgTtkzEzZn308XSLwUog4OWGKJzCn/3FfF9iA32dZHSv30pRCM3KBY9WZoRhtdK/ChHk6DEQBsfV6tN2o1Cn0mLtPBfnkS+qy1L2xfFe9TQPtDE1Be44RTl82E9hPT2rS2+93LFbzhQQO3C/hD2jRFH3BWWbasAfuMhRJFcTri73eE835y016s22DjoFJ862WvLj69fu2TgSF3RHia9D5DSitlQAXYCnbdqjPkR287Lh6dCHDapos+eFDvcZPP2edPmTFxznJE/EBLoQQ0Qmn9EkZOyJmHxMbvKYb8o21ZHmv5YLqgsEPk9gWZwYQY9wLqGXuax/8QlV5qDaPbq9pLPT1yp+zOWKmraEy1OUJI7zdEcEmvBpbdwLrDCgEb2xX8S/nxZgjK4bRi+pbOmbh8bEeoPvU/L9ndx9kntlDALbdAvp0O8ZC3zSUnFg4cePsw7jxewWvL7HRSBLUn6J7vTH9uld5N76JFPgBCdXGF221oEJk++XfRwXplLSyrVO7HFWBEs99nTazKveW3HpbD4dH/YmdAl+lwbSt8BQWyTG7jAsACI7bPPUU9hI9XUHWqQOuezHzUjnx5Qqs6T1qNHfTTHleDtmqK7flA9a0gz2nycIpz1FHBuWxKNtUeTdqP29Fb3tv+tl5JyBqXoR+vCsdzZwZUhf6Lu8bvkB9yQP4x7GGegB0ym0Lpl03Q7e+C0cDsm9GSDepCDji7nUslLyYyluPfvLyKaDSX4xpR+nVYQjQQn5F8KbY1gbIVLiK1J3mW90zTyR1bqApX2BlWh7KG8LAY9/S9nWC0XXh9pZZo6xuir12T43rkaGfQssbQyIslA7uJnSHOV22NhlNtUo0czxPAsXhh8tIQYaTM4l/yAlZlydTcXhlG22Gs/n3BxKBd/3ZjYwg3NaUurVXhNB+afVnFfNr9TbC9ksNdvwpNfeHanyJ8M6GrIVfLlYAPv0ILe4dn0Z+BJSbJkN7eZY/c6+6ttDYcIDeUKIDXqUSE42Xdh5nRbuaObozjht0HJ5H1e+em+NJi/+8kQlyjCbJpPckwThZeIF9/u7lrVIKNeJLCN/TpPAeXxvd31/CUDWHK9MuP1V1TJgngzi4V0qzS3SW3Qy5UiGHqg02wQa5tsEl9s/X9nNMosgLlUgZSfCBj1DiypLfhr9/r0nR0XY2tmhDOcUS4E7cqa4EJBhzqvpbZa35Q5Iz5EqmhYiOGDAYk606Tv74+KGfPjKVuP15rIzgW0I7/niOu9el/sn2bRye0gV+GrePDRDMHjwO1lEdeXH8N+UTO3IoN18kpI3tPxz+fY+n2MGMSGFHAx/83tKeJOl+2i+f1O9v6FfEDBbqrw+lpM8Anav7zHNr7hE78nXUtPNodMbCnITWA7Ma/IHlZ50F9hWge/wzOvSbtqFVFtkS8Of2nssjZwbSFdU+VO8z6tCEc9UA9ACxT5zIUeSrkBB/v1krOpm7bVMrGxEKfI6LcnpB4D8bvn2hDKGqKrJaVAJuDaBEY3F7eXyqnFWlOoFV/8ZLspZiZd7orXLhd4mhHQgbuKbHjJWUzrnm0Dxw/LJLzXCkh7slMxKo8uxZIWZfdKHlfI7uj3LP6ARAuWdF7ZmZ7daOKqKGbz5LxOggTgS39oEioYmrqkCeUDvbxkBYKeHhcLmMN8dMF01ZMb32IpL/cH8R7VHQSI5I0YfL14g9d7P/6cjB1JXXxbozEDbsrPdmL8ph7QW10jio+v7YsqHKQ6xrBbOVtxU0/nFfzUGZwIBLwyUvg49ii+54nv9FyECBpURnQK4Ox6N7lw5fsjdd5l/2SwBcAHMJoyjO1Pifye2dagaOwCVMqdJWAo77pvBe0zdJcTWu5fdzPNfV2p1pc7/JKQ8zhKkwsOELUDhXygPJ5oR8Vpk2lsCen3D3QOQp2zdrSZHjVBstDF/wWO98rrkQ6/7zt/Drip7OHIug1lomNdmRaHRrjmqeodn22sesQQPgzimPOMqC60a5+i/UYh51uZm+ijWkkaI2xjrBO2558DZNZMiuDQlaVAvBy2wLn/bR3FrNzfnO/9oDztYqxZrr7JMIhqmrochbqmQnKowxW29bpqTaJu7kW1VotC72QkYX8OoDDdMDwV1kJRk3mufgJBzf+iwFRJ7XWQwO5ujVglgFgHtycWiMLx5N+6XU+TulLabWjOzoao03fniUW0xvIJNPbk7CQlFZd/RCOPvgQbLjh5ITE8NVJeKt3HGr6JTnFdIzcVOlEtwqbIIX0IM7saC+4N5047MTJ9+Wn11EhyEPIlwsHE5utCeXRjQzlrR+R1Cf/qDzcNbqLXdk3J7gQ39VUrrEkS/VMWjjg+t2oYrqB0tUZClcUF6+LBC3EQ7KnGIwm/qjZX4GKPtjTX1zQKV6nPAb2t/Rza5IqKRf8i2DFEhV/YSifX0YwsiF6TQnp48Gr65TFq0zUe6LGjiY7fq0LSGKL1VnC6ESI2yxvt3XqBx53B3gSlGFeJcPbUbonW1E9E9m4NfuwPh+t5QjRxX34lvBPVxwQd7aeTd+r9dw5CiP1pt8wMZoMdni7GapYdo6KPgeQKcmlFfq4UYhvV0IBgeiR3RnTMBaqDqpZrTRyLdsp4l0IXZTdErfH0sN3dqBG5vRIx3VgCYcHmmkqJ8Hyu3s9K9uBD1d8cZUEx3qYcF5vsqeRpF1GOg8emeWM2OmBlWPdZ6qAXwm3nENFyh+kvXk132PfWAlN0kb7yh4fz2T7VWUY/hEXX5DvxGABC03XRpyOG8t/u3Gh5tZdpsSV9AWaxJN7zwhVglgII1gV28tUViyqn4UMdIh5t+Ea2zo7PO48oba0TwQbiSZOH4YhD578kPF3reuaP7LujPMsjHmaDuId9XEaZBCJhbXJbRg5VCk3KJpryH/+8S3wdhR47pdFcmpZG2p0Bpjp/VbvalgIZMllYX5L31aMPdt1J7r/7wbixt0Mnz2ZvNGTARHPVD+2O1D8SGpWXlVnP2ekgon55YiinADDynyaXtZDXueVqbuTi8z8cHHK325pgqM+mWZwzHeEreMvhZopAScXM14SJHpGwZyRljMlDvcMm9FZ/1e9+r/puOnpXOtc9Iu2fmgBfEP9cGW1Fzb1rGlfJ08pACtq1ZW18bf2cevebzVeHbaA50G9qoUp39JWdPHbYkPCRXjt4gzlq3Cxge28Mky8MoS/+On72kc+ZI2xBtgJytpAQHQ1zrEddMIVyR5urX6yBNu8v5lKC8eLdGKTJtbgIZ3ZyTzSfWmx9f+cvcJe8yM39K/djkp2aUTE/9m2Lj5jg7b8vdRAer7DO3SyLNHs1CAm5x5iAdh2yGJYivArZbCBNY88Tw+w+C1Tbt7wK3zl2rzTHo/D8/gb3c3mYrnEIEipYqPUcdWjnTsSw471O3EUN7Gtg4NOAs9PJrxm03VuZKa5xwXAYCjt7Gs01Km6T2DhOYUMoFcCSu7Hk1p3yP1eG+M3v3Q5luAze6WwBnZIYO0TCucPWK+UJ36KoJ8Y+vpavhLO8g5ed704IjlQdfemrMu//EvPYXTQSGIPPfiagJS9nMqP5IvkxN9pvuJz7h8carPXTKMq8jnTeL0STan6dnLTAqwIswcIwWDR2KwbGddAVN8SYWRB7kfBfBRkSXzvHlIF8D6jo64kUzYk5o/n8oLjKqat0rdXvQ86MkwQGMnnlcasqPPT2+mVtUGb32KuH6cyZQenrRG11TArcAl27+nvOMBDe++EKHf4YdyGf7mznzOz33cFFGEcv329p4qG2hoaQ8ULiMyVz6ENcxhoqGnFIdupcn7GICQWuw3yO3W8S33mzCcMYJ8ywc7U7rmaQf/W5K63Gr4bVTpXOyOp4tbaPyIaatBNpXqlmQUTSZXjxPr19+73PSaT+QnI35YsWn6WpfJjRtK8vlJZoTSgjaRU39AGCkWOZtifJrnefCrqwTKDFmuWUCukEsYcRrMzCoit28wYpP7kSVjMD8WJYQiNc2blMjuqYegmf6SsfC1jqz8XzghMlOX+gn/MKZmgljszrmehEa4V98VreJDxYvHr3j7IeJB9/sBZV41BWT/AZAjuC5XorlIPnZgBAniBEhanp0/0+qZmEWDpu8ige1hUPIyTo6T6gDEcFhWSoduNh8YSu65KgMOGBw7VlNYzNIgwHtq9KP2yyTVysqX5v12sf7D+vQUdR2dRDvCV40rIInXSLWT/yrC6ExOQxBJwIDbeZcl3z1yR5Rj3l8IGpxspapnvBL+fwupA3b6fkFceID9wgiM1ILB0cHVdvo/R4xg8yqKXT8efl0GnGX1/27FUYeUW2L/GNRGGWVGp3i91oaJkb4rybENHre9a2P5viz/yqk8ngWUUS+Kv+fu+9BLFnfLiLXOFcIeBJLhnayCiuDRSqcx0Qu68gVsGYc6EHD500Fkt+gpDj6gvr884n8wZ5o6q7xtL5wA0beXQnffWYkZrs2NGIRgQbsc5NB302SVx+R4ROvmgZaR8wBcji128BMfJ9kcvJ4DC+bQ57kRmv5yxgU4ngZfn0/JNZ8JBwxjTqS+s9kjJFG1unGUGLwMiIuXUD9EFhNIJuyCEAmVZSIGKH4G6v1gRR1LyzQKH2ZqiI1DnHMoDEZspbDjTeaFIAbSvjSq3A+n46y9hhVM8wIpnARSXyzmOD96d9UXvFroSPgGw1dq2vdEqDq9fJN1EbL2WulNmHkFDvxSO9ZT/RX/Bw2gA/BrF90XrJACereVfbV/YXaKfp77Nmx5NjEIUlxojsy7iN7nBHSZigfsbFyVOX1ZTeCCxvqnRSExP4lk5ZeYlRu9caaa743TWNdchRIhEWwadsBIe245C8clpaZ4zrPsk+OwXzxWCvRRumyNSLW5KWaSJyJU95cwheK76gr7228spZ3hmTtLyrfM2QRFqZFMR8/Q6yWfVgwTdfX2Ry4w3+eAO/5VT5nFb5NlzXPvBEAWrNZ6Q3jbH0RF4vcbp+fDngf/ywpoyNQtjrfvcq93AVb1RDWRghvyqgI2BkMr1rwYi8gizZ0G9GmPpMeqPerAQ0dJbzx+KAFM4IBq6iSLpZHUroeyfd9o5o+4fR2EtsZBoJORQEA4SW0CmeXSnblx2e9QkCHIodyqV6+g5ETEpZsLqnd/Na60EKPX/tQpPEcO+COIBPcQdszDzSiHGyQFPly/7KciUh1u+mFfxTCHGv9nn2WqndGgeGjQ/kr02qmTBX7Hc1qiEvgiSz1Tz/sy7Es29wvn6FrDGPP7asXlhOaiHxOctPvTptFA1kHFUk8bME7SsTSnGbFbUrssxrq70LhoSh5OwvQna+w84XdXhZb2sloJ4ZsCg3j+PrjJL08/JBi5zGd6ud/ZxhmcGKLOXPcNunQq5ESW92iJvfsuRrNYtawWwSmNhPYoFj2QqWNF0ffLpGt/ad24RJ8vkb5sXkpyKXmvFG5Vcdzf/44k3PBL/ojJ52+kWGzOArnyp5f969oV3J2c4Li27Nkova9VwRNVKqN0V+gV+mTHitgkXV30aWd3A1RSildEleiNPA+5cp+3+T7X+xfHiRZXQ1s4FA9TxIcnveQs9JSZ5r5qNmgqlW4zMtZ6rYNvgmyVcywKtu8ZxnSbS5vXlBV+NXdIfi3+xzrnJ0TkFL+Un8v1PWOC2PPFCjVPq7qTH7mOpzOYj/b4h0ceT+eHgr97Jqhb1ziVfeANzfN8bFUhPKBi7hJBCukQnB0aGjFTYLJPXL26lQ2b80xrOD5cFWgA8hz3St0e69kwNnD3+nX3gy12FjrjO+ddRvvvfyV3SWbXcxqNHfmsb9u1TV+wHTb9B07/L2sB8WUHJ9eeNomDyysEWZ0deqEhH/oWI2oiEh526gvAK1Nx2kIhNvkYR+tPYHEa9j+nd1VBpQP1uzSjIDO+fDDB7uy029rRjDC5Sk6aKczyz1D5uA9Lu+Rrrapl8JXNL3VRllNQH2K1ZFxOpX8LprttfqQ56MbPM0IttUheXWD/mROOeFqGUbL+kUOVlXLTFX/525g4faLEFO4qWWdmOXMNvVjpIVTWt650HfQjX9oT3Dg5Au6+v1/Ci78La6ZOngYCFPT1AUwxQuZ0yt5xKdNXLaDTISMTeCj16XTryhM36K2mfGRIgot71voWs8tTpL/f1rvcwv3LSDf+/G8THCT7NpfHWcW+lsF/ol8q9Bi6MezNTqp0rpp/kJRiVfNrX/w27cRRTu8RIIqtUblBMkxy4jwAVqCjUJkiPBj2cAoVloG8B2/N5deLdMhDb7xs5nhd3dubJhuj8WbaFRyu1L678DHhhA+rMimNo4C1kGpp0tD/qnCfCFHejpf0LJX43OTr578PY0tnIIrlWyNYyuR/ie6j2xNb1OV6u0dOX/1Dtcd7+ya9W+rY2LmnyQMtk8SMLTon8RAdwOaN2tNg5zVnDKlmVeOxPV2vhHIo9QEPV7jc3f+zVDquiNg1OaHX3cZXJDRY5MJpo+VanAcmqp4oasYLG+wrXUL5vJU0kqk2hGEskhP+Jjigrz1l6QnEwp6n8PMVeJp70Ii6ppeaK9GhF6fJE00ceLyxv08tKiPat4QdxZFgSbQknnEiCLD8Qc1rjazVKM3r3gXnnMeONgdz/yFV1q+haaN+wnF3Fn4uYCI9XsKOuVwDD0LsCO/f0gj5cmxCFcr7sclIcefWjvore+3aSU474cyqDVxH7w1RX3CHsaqsMRX17ZLgjsDXws3kLm2XJdM3Ku383UXqaHqsywzPhx7NFir0Fqjym/w6cxD2U9ypa3dx7Z12w/fi3Jps8sqJ8f8Ah8aZAvkHXvIRyrsxK7rrFaNNdNvjI8+3Emri195DCNa858anj2Qdny6Czshkn4N2+1m+k5S8sunX3Ja7I+JutRzg1mc2e9Yc0Zv9PZn1SwhxIdU9sXwZRTd/J5FoUm0e+PYREeHg3oc2YYzGf2xfJxXExt4pT3RfDRHvMXLUmoXOy63xv5pLuhOEax0dRgSywZ/GH+YBXFgCeTU0hZ8SPEFsn8punp1Kurd1KgXxUZ+la3R5+4ePGR4ZF5UQtOa83+Vj8zh80dfzbhxWCeoJnQ4dkZJM4drzknZOOKx2n3WrvJnzFIS8p0xeic+M3ZRVXIp10tV2DyYKwRxLzulPwzHcLlYTxl4PF7v8l106Azr+6wBFejbq/3P72C/0j78cepY9990/d4eAurn2lqdGKLU8FffnMw7cY7pVeXJRMU73Oxwi2g2vh/+4gX8dvbjfojn/eLVhhYl8GthwCQ50KcZq4z2JeW5eeOnJWFQEnVxDoG459TaC4zXybECEoJ0V5q1tXrQbDMtUxeTV6Pdt1/zJuc7TJoV/9YZFWxUtCf6Ou3Vd/vR/vG0138hJQrHkNeoep5dLe+6umcSquKvMaFpm3EZHDBOvCi0XYyIFHMgX7Cqp3JVXlxJFwQfHSaIUEbI2u1lBVUdlNw4Qa9UsLPEK94Qiln3pyKxQVCeNlx8yd7EegVNQBkFLabKvnietYVB4IPZ1fSor82arbgYec8aSdFMaIluYTYuNx32SxfrjKUdPGq+UNp5YpydoEG3xVLixtmHO9zXxKAnHnPuH2fPGrjx0GcuCDEU+yXUtXh6nfUL+cykws1gJ5vkfYFaFBr9PdCXvVf35OJQxzUMmWjv0W6uGJK11uAGDqSpOwCf6rouSIjPVgw57cJCOQ4b9tkI/Y5WNon9Swe72aZryKo8d+HyHBEdWJKrkary0LIGczA4Irq353Wc0Zga3om7UQiAGCvIl8GGyaqz5zH+1gMP5phWUCpKtttWIyicz09vXg76GxkmiGSMQ06Z9X8BUwqOtauDbPIf4rpK/yYoeAHxJ9soXS9VDe1Aw+awOOxaN8foLrif0TXBvQ55dtRtulRq9emFDBxlQcqKCaD8NeTSE7FOHvcjf/+oKbbtRqz9gbofoc2EzQ3pL6W5JdfJzAWmOk8oeoECe90lVMruwl/ltM015P/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B`)),l=Math.log2||(e=>Math.log(e)/Math.LN2),u=e=>l(e)+1|0,d=u(i(s).categories.length-1),f=u(i(s).combiningClasses.length-1),p=u(i(s).scripts.length-1),m=u(i(s).eaw.length-1),h=10,g=f+p+m+h,_=p+m+h,v=m+h,y=h,b=(1<<d)-1,x=(1<<f)-1,S=(1<<p)-1,C=(1<<m)-1,w=(1<<h)-1;function T(e){let t=c.get(e);return i(s).categories[t>>g&b]}function E(e){let t=c.get(e);return i(s).combiningClasses[t>>_&x]}function D(e){let t=c.get(e);return i(s).scripts[t>>v&S]}function O(e){let t=c.get(e);return i(s).eaw[t>>y&C]}function k(e){let t=c.get(e),n=t&w;if(n===0)return null;if(n<=50)return n-1;if(n<480)return((n>>4)-12)/((n&15)+1);if(n<768){t=(n>>5)-14;let e=(n&31)+2;for(;e>0;)t*=10,e--;return t}else{t=(n>>2)-191;let e=(n&3)+1;for(;e>0;)t*=60,e--;return t}}function A(e){let t=T(e);return t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Nl`}function j(e){return T(e)===`Nd`}function M(e){let t=T(e);return t===`Pc`||t===`Pd`||t===`Pe`||t===`Pf`||t===`Pi`||t===`Po`||t===`Ps`}function N(e){return T(e)===`Ll`}function P(e){return T(e)===`Lu`}function ee(e){return T(e)===`Lt`}function F(e){let t=T(e);return t===`Zs`||t===`Zl`||t===`Zp`}function I(e){let t=T(e);return t===`Nd`||t===`No`||t===`Nl`||t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Me`||t===`Mc`}function L(e){let t=T(e);return t===`Mn`||t===`Me`||t===`Mc`}var R={getCategory:T,getCombiningClass:E,getScript:D,getEastAsianWidth:O,getNumericValue:k,isAlphabetic:A,isDigit:j,isPunctuation:M,isLowerCase:N,isUpperCase:P,isTitleCase:ee,isWhiteSpace:F,isBaseForm:I,isMark:L}})),ua=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNameStyle=e.addPrefixIfNecessary=e.combineWords=e.allLowerWordStyle=e.originalWord=e.allUpperWordStyle=e.firstUpperWordStyle=e.splitIntoWords=e.fastIsUpperCase=e.startWithLetter=e.snakeCase=e.camelCase=e.pascalCase=e.decapitalize=e.capitalize=e.trimEnd=e.isWordCharacter=e.isLetterOrUnderscoreOrDigit=e.isLetterOrUnderscore=e.isLetterOrDigit=e.isNumeric=e.isDigit=e.isLetter=e.isAscii=e.isPrintable=e.stringEscape=e.utf16StringEscape=e.escapeNonPrintableMapper=e.standardUnicodeHexEscape=e.intToHex=e.repeatString=e.legalizeCharacters=e.utf16LegalizeCharacters=e.utf32ConcatMap=e.utf16ConcatMap=void 0;var n=Q(),r=ia(),i=C(),a=t(la());function o(e){let t=[],n=[];for(let r=0;r<128;r++){let i=0,a=e(r);a===String.fromCharCode(r)&&(i=1),t.push(a),n.push(i)}return{charStringMap:t,charNoEscapeMap:n}}function s(e){let t=[];for(let n=0;n<128;n++)t.push(e(n));return function(n){return n<128?t[n]:e(n)}}function c(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let i=null,a=0,o=0;for(;o<r.length;){let s=r.charCodeAt(o);if(n[s]!==1){i===null&&(i=[]),i.push(r.substring(a,o));let n=t[s];n===void 0?i.push(e(r.charCodeAt(o))):i.push(n),a=o+1}o++}return i===null?r:(i.push(r.substring(a,o)),i.join(``))}}e.utf16ConcatMap=c;function l(e){return e>=55296&&e<=56319}function u(e){return e>=56320&&e<=57343}function d(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let a=null,o=0,s=0;for(;s<r.length;){let c=r.charCodeAt(s);if(n[c]!==1){if(a===null&&(a=[]),a.push(r.substring(o,s)),l(c)){let e=c;s++;let t=r.charCodeAt(s);(0,i.messageAssert)(u(t),`MiscUnicodeHighSurrogateWithoutLowSurrogate`,{});let n=e-55296;c=65536+(t-56320)+(n<<10)}let n=t[c];n===void 0?a.push(e(c)):a.push(n),o=s+1}s++}return a===null?r:(a.push(r.substring(o,s)),a.join(``))}}e.utf32ConcatMap=d;function f(e){return c(t=>e(t)?String.fromCharCode(t):``)}e.utf16LegalizeCharacters=f;function p(e){return d(t=>t<=65535&&e(t)?String.fromCharCode(t):``)}e.legalizeCharacters=p;function m(e,t){if((0,n.assert)(t>=0,`Cannot repeat a string a negative number of times`),t===0)return``;let r=``;do t%2!=0&&(r+=e),t=Math.floor(t/2),t>0&&(e+=e);while(t>0);return r}e.repeatString=m;function h(e,t){let n=e.toString(16);return n.length>=t?n:m(`0`,t-n.length)+n}e.intToHex=h;function g(e){return e<=65535?`\\u`+h(e,4):`\\U`+h(e,8)}e.standardUnicodeHexEscape=g;function _(e,t){function n(n){switch(n){case 92:return`\\\\`;case 34:return`\\"`;case 10:return`\\n`;case 9:return`\\t`;default:return e(n)?String.fromCharCode(n):t(n)}}return n}e.escapeNonPrintableMapper=_,e.utf16StringEscape=c(_(v,g)),e.stringEscape=d(_(v,g));function v(e){if(e>65535)return!1;let t=a.default.getCategory(e);return[`Mc`,`No`,`Sk`,`Me`,`Nd`,`Po`,`Lt`,`Pc`,`Sm`,`Zs`,`Lu`,`Pd`,`So`,`Pe`,`Pf`,`Ps`,`Sc`,`Ll`,`Lm`,`Pi`,`Nl`,`Mn`,`Lo`].indexOf(t)>=0}e.isPrintable=v;function y(e){return e<128}e.isAscii=y;function b(e){let t=a.default.getCategory(e);return[`Lu`,`Ll`,`Lt`,`Lo`].indexOf(t)>=0}e.isLetter=b;function x(e){let t=a.default.getCategory(e);return[`Nd`].indexOf(t)>=0}e.isDigit=x;function S(e){let t=a.default.getCategory(e);return[`No`,`Nd`,`Nl`].indexOf(t)>=0}e.isNumeric=S;function w(e){return b(e)||x(e)}e.isLetterOrDigit=w;function T(e){return b(e)||e===95}e.isLetterOrUnderscore=T;function E(e){return T(e)||x(e)}e.isLetterOrUnderscoreOrDigit=E;function D(e){return b(e)||x(e)}e.isWordCharacter=D;function O(e){let t=e.length,n=t;for(let r=t-1;r>=0&&a.default.isWhiteSpace(e.charCodeAt(r));r--)n=r;return n===t?e:e.slice(0,n)}e.trimEnd=O;function k(e,t){return t===``?t:e(t[0])+t.slice(1)}function A(e){return k(e=>e.toUpperCase(),e)}e.capitalize=A;function j(e){return k(e=>e.toLowerCase(),e)}e.decapitalize=j;var M=/[-_. ]+/;function N(e){return e.split(M).map(A).join(``)}e.pascalCase=N;function P(e){return j(N(e))}e.camelCase=P;function ee(e){return re(e).map(({word:e})=>e.toLowerCase()).join(`_`)}e.snakeCase=ee;function F(e,t,n){let r=t?A:j;return n===``?r(`empty`):e(n.charCodeAt(0))?r(n):r(`the`+n)}e.startWithLetter=F;var I=new Set(r.acronyms),L=s(D),R=s(e=>!D(e)),z=s(e=>a.default.isLowerCase(e));e.fastIsUpperCase=s(e=>a.default.isUpperCase(e));var te=s(e=>!a.default.isLowerCase(e)&&!a.default.isUpperCase(e)),ne=s(x);function re(t){let r=[],i,a=t.length,o=0,s;function c(){return o>=a}function l(){return(0,n.defined)(t.codePointAt(o))}function d(e){for(;!c();){let t=l();if(!e(t))break;z(t)&&(s=o),o++}}function f(){d(R)}function p(){d(z)}function m(){d(e.fastIsUpperCase)}function h(){d(te)}function g(){d(ne)}function _(){(0,n.assert)(i===void 0,`Interval started before last one was committed`),i=o}function v(){if(i===void 0)return(0,n.panic)(`Tried to commit interval without starting one`);(0,n.assert)(o>i,`Interval must be non-empty`),!c()&&u(l())&&(o+=1);let e=s===void 0||s<i;r.push([i,o,e]),i=void 0}function y(){return i===void 0?(0,n.panic)(`Tried to get interval length without starting one`):o-i}for(;f(),!c();)_(),z(l())?(p(),g(),v()):(0,e.fastIsUpperCase)(l())?(m(),c()?v():y()===1?(p(),g(),v()):x(l())?(g(),v()):(L(l())&&--o,v())):(h(),v());let b=[];for(let[e,n,i]of r){let r=t.slice(e,n),a=s!==void 0&&i||I.has(r.toLowerCase());b.push({word:r,isAcronym:a})}return b}e.splitIntoWords=re;function B(e){return(0,n.assert)(e.length>0,`Cannot style an empty string`),e[0].toUpperCase()+e.slice(1).toLowerCase()}e.firstUpperWordStyle=B;function V(e){return e.toUpperCase()}e.allUpperWordStyle=V;function ie(e){return e}e.originalWord=ie;function ae(e){return e.toLowerCase()}e.allLowerWordStyle=ae;function H(e,t){(0,n.assert)(t.length>0,`Tried to style an empty word`);let r=e(t);return(0,n.assert)(r.length>0,`Word style must not make word empty`),r}function oe(e,t,r,i,a,o,s,c){let l=[];for(let n of e){let e=t(n.word);e.length!==0&&l.push({word:e,isAcronym:n.isAcronym})}if(l.length===0){let e=t(`empty`);(0,n.assert)(e.length>0,`Word "empty" is invalid in target language`),l.push({word:e,isAcronym:!1})}let u=[],d=l[0],f=H(d.isAcronym?a:r,d.word),p;if(c((0,n.defined)(f.codePointAt(0))))u.push(f),p=l.slice(1);else{let e=t(`the`);(0,n.assert)(e.length>0,`Word "the" is invalid in the target language`);let i=H(r,e);(0,n.assert)(c((0,n.defined)(i.codePointAt(0))),`The first character of styling "the" is not a start character`),u.push(i),p=l}for(let e of p){let t=e.isAcronym?o:i;u.push(H(t,e.word))}return u.join(s)}e.combineWords=oe;function U(e,t){return t.startsWith(e)?t:e+t}e.addPrefixIfNecessary=U;function se(e,t,r){let i,a,o,s,c;switch(e===`pascal`||e===`camel`||e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(i=``,e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(o=B,c=V):o=c=B):i=`_`,e){case`pascal`:case`pascal-upper-acronyms`:a=s=B;break;case`camel`:case`camel-upper-acronyms`:a=s=ae;break;case`underscore`:a=o=s=c=ae;break;case`upper-underscore`:a=o=s=c=V;break;default:return(0,n.assertNever)(e)}return e=>{let n=oe(re(e),t,a,o,s,c,i,T);return r===void 0?n:U(r,n)}}e.makeNameStyle=se})),da=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Chance=void 0;var t=class{constructor(e){e===void 0&&(e=Math.floor(Math.random()*10**13)),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=Array(this.N),this.mti=this.N+1,this.init_genrand(e)}init_genrand(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}genrand_int32(){let e,t=[0,this.MATRIX_A];if(this.mti>=this.N){let n;for(this.mti===this.N+1&&this.init_genrand(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[e&1];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0}random(){return this.genrand_int32()*(1/4294967296)}};e.Chance=class{constructor(e){this.seed=e,this.mt=new t(this.seed)}random(){return this.mt.random()}integer(e){return Math.floor(this.random()*(e.max-e.min+1)+e.min)}natural(e){return this.integer({min:0,max:e.max})}pick(e){if(e.length===0)throw RangeError(`Chance: Cannot pick() from an empty array`);return e[this.natural({max:e.length-1})]}animal(){return this.pick(n[this.pick([`desert`,`forest`,`ocean`,`zoo`,`farm`,`pet`,`grassland`])])}city(){return this.pick(r)}};var n={ocean:`Acantharea.Anemone.Angelfish King.Ahi Tuna.Albacore.American Oyster.Anchovy.Armored Snail.Arctic Char.Atlantic Bluefin Tuna.Atlantic Cod.Atlantic Goliath Grouper.Atlantic Trumpetfish.Atlantic Wolffish.Baleen Whale.Banded Butterflyfish.Banded Coral Shrimp.Banded Sea Krait.Barnacle.Barndoor Skate.Barracuda.Basking Shark.Bass.Beluga Whale.Bluebanded Goby.Bluehead Wrasse.Bluefish.Bluestreak Cleaner-Wrasse.Blue Marlin.Blue Shark.Blue Spiny Lobster.Blue Tang.Blue Whale.Broadclub Cuttlefish.Bull Shark.Chambered Nautilus.Chilean Basket Star.Chilean Jack Mackerel.Chinook Salmon.Christmas Tree Worm.Clam.Clown Anemonefish.Clown Triggerfish.Cod.Coelacanth.Cockscomb Cup Coral.Common Fangtooth.Conch.Cookiecutter Shark.Copepod.Coral.Corydoras.Cownose Ray.Crab.Crown-of-Thorns Starfish.Cushion Star.Cuttlefish.California Sea Otters.Dolphin.Dolphinfish.Dory.Devil Fish.Dugong.Dumbo Octopus.Dungeness Crab.Eccentric Sand Dollar.Edible Sea Cucumber.Eel.Elephant Seal.Elkhorn Coral.Emperor Shrimp.Estuarine Crocodile.Fathead Sculpin.Fiddler Crab.Fin Whale.Flameback.Flamingo Tongue Snail.Flashlight Fish.Flatback Turtle.Flatfish.Flying Fish.Flounder.Fluke.French Angelfish.Frilled Shark.Fugu (also called Pufferfish).Gar.Geoduck.Giant Barrel Sponge.Giant Caribbean Sea Anemone.Giant Clam.Giant Isopod.Giant Kingfish.Giant Oarfish.Giant Pacific Octopus.Giant Pyrosome.Giant Sea Star.Giant Squid.Glowing Sucker Octopus.Giant Tube Worm.Goblin Shark.Goosefish.Great White Shark.Greenland Shark.Grey Atlantic Seal.Grouper.Grunion.Guineafowl Puffer.Haddock.Hake.Halibut.Hammerhead Shark.Hapuka.Harbor Porpoise.Harbor Seal.Hatchetfish.Hawaiian Monk Seal.Hawksbill Turtle.Hector's Dolphin.Hermit Crab.Herring.Hoki.Horn Shark.Horseshoe Crab.Humpback Anglerfish.Humpback Whale.Icefish.Imperator Angelfish.Irukandji Jellyfish.Isopod.Ivory Bush Coral.Japanese Spider Crab.Jellyfish.John Dory.Juan Fernandez Fur Seal.Killer Whale.Kiwa Hirsuta.Krill.Lagoon Triggerfish.Lamprey.Leafy Seadragon.Leopard Seal.Limpet.Ling.Lionfish.Lions Mane Jellyfish.Lobe Coral.Lobster.Loggerhead Turtle.Longnose Sawshark.Longsnout Seahorse.Lophelia Coral.Marrus Orthocanna.Manatee.Manta Ray.Marlin.Megamouth Shark.Mexican Lookdown.Mimic Octopus.Moon Jelly.Mollusk.Monkfish.Moray Eel.Mullet.Mussel.Megaladon.Napoleon Wrasse.Nassau Grouper.Narwhal.Nautilus.Needlefish.Northern Seahorse.North Atlantic Right Whale.Northern Red Snapper.Norway Lobster.Nudibranch.Nurse Shark.Oarfish.Ocean Sunfish.Oceanic Whitetip Shark.Octopus.Olive Sea Snake.Orange Roughy.Ostracod.Otter.Oyster.Pacific Angelshark.Pacific Blackdragon.Pacific Halibut.Pacific Sardine.Pacific Sea Nettle Jellyfish.Pacific White Sided Dolphin.Pantropical Spotted Dolphin.Patagonian Toothfish.Peacock Mantis Shrimp.Pelagic Thresher Shark.Penguin.Peruvian Anchoveta.Pilchard.Pink Salmon.Pinniped.Plankton.Porpoise.Polar Bear.Portuguese Man o' War.Pycnogonid Sea Spider.Quahog.Queen Angelfish.Queen Conch.Queen Parrotfish.Queensland Grouper.Ragfish.Ratfish.Rattail Fish.Ray.Red Drum.Red King Crab.Ringed Seal.Risso's Dolphin.Ross Seals.Sablefish.Salmon.Sand Dollar.Sandbar Shark.Sawfish.Sarcastic Fringehead.Scalloped Hammerhead Shark.Seahorse.Sea Cucumber.Sea Lion.Sea Urchin.Seal.Shark.Shortfin Mako Shark.Shovelnose Guitarfish.Shrimp.Silverside Fish.Skipjack Tuna.Slender Snipe Eel.Smalltooth Sawfish.Smelts.Sockeye Salmon.Southern Stingray.Sponge.Spotted Porcupinefish.Spotted Dolphin.Spotted Eagle Ray.Spotted Moray.Squid.Squidworm.Starfish.Stickleback.Stonefish.Stoplight Loosejaw.Sturgeon.Swordfish.Tan Bristlemouth.Tasseled Wobbegong.Terrible Claw Lobster.Threespot Damselfish.Tiger Prawn.Tiger Shark.Tilefish.Toadfish.Tropical Two-Wing Flyfish.Tuna.Umbrella Squid.Velvet Crab.Venus Flytrap Sea Anemone.Vigtorniella Worm.Viperfish.Vampire Squid.Vaquita.Wahoo.Walrus.West Indian Manatee.Whale.Whale Shark.Whiptail Gulper.White-Beaked Dolphin.White-Ring Garden Eel.White Shrimp.Wobbegong.Wrasse.Wreckfish.Xiphosura.Yellowtail Damselfish.Yelloweye Rockfish.Yellow Cup Black Coral.Yellow Tube Sponge.Yellowfin Tuna.Zebrashark.Zooplankton`.split(`.`),desert:`Aardwolf.Addax.African Wild Ass.Ant.Antelope.Armadillo.Baboon.Badger.Bat.Bearded Dragon.Beetle.Bird.Black-footed Cat.Boa.Brown Bear.Bustard.Butterfly.Camel.Caracal.Caracara.Caterpillar.Centipede.Cheetah.Chipmunk.Chuckwalla.Climbing Mouse.Coati.Cobra.Cotton Rat.Cougar.Courser.Crane Fly.Crow.Dassie Rat.Dove.Dunnart.Eagle.Echidna.Elephant.Emu.Falcon.Fly.Fox.Frogmouth.Gecko.Geoffroy's Cat.Gerbil.Grasshopper.Guanaco.Gundi.Hamster.Hawk.Hedgehog.Hyena.Hyrax.Jackal.Kangaroo.Kangaroo Rat.Kestrel.Kowari.Kultarr.Leopard.Lion.Macaw.Meerkat.Mouse.Oryx.Ostrich.Owl.Pronghorn.Python.Rabbit.Raccoon.Rattlesnake.Rhinoceros.Sand Cat.Spectacled Bear.Spiny Mouse.Starling.Stick Bug.Tarantula.Tit.Toad.Tortoise.Tyrant Flycatcher.Viper.Vulture.Waxwing.Xerus.Zebra`.split(`.`),grassland:`Aardvark.Aardwolf.Accentor.African Buffalo.African Wild Dog.Alpaca.Anaconda.Ant.Anteater.Antelope.Armadillo.Baboon.Badger.Bandicoot.Barbet.Bat.Bee.Bee-eater.Beetle.Bird.Bison.Black-footed Cat.Black-footed Ferret.Bluebird.Boa.Bowerbird.Brown Bear.Bush Dog.Bushshrike.Bustard.Butterfly.Buzzard.Caracal.Caracara.Cardinal.Caterpillar.Cheetah.Chipmunk.Civet.Climbing Mouse.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Common Genet.Cotton Rat.Cougar.Courser.Coyote.Crane.Crane Fly.Cricket.Crow.Culpeo.Death Adder.Deer.Deer Mouse.Dingo.Dinosaur.Dove.Drongo.Duck.Duiker.Dunnart.Eagle.Echidna.Elephant.Elk.Emu.Falcon.Finch.Flea.Fly.Flying Frog.Fox.Frog.Frogmouth.Garter Snake.Gazelle.Gecko.Geoffroy's Cat.Gerbil.Giant Tortoise.Giraffe.Grasshopper.Grison.Groundhog.Grouse.Guanaco.Guinea Pig.Hamster.Harrier.Hartebeest.Hawk.Hedgehog.Helmetshrike.Hippopotamus.Hornbill.Hyena.Hyrax.Impala.Jackal.Jaguar.Jaguarundi.Kangaroo.Kangaroo Rat.Kestrel.Kultarr.Ladybug.Leopard.Lion.Macaw.Meerkat.Mouse.Newt.Oryx.Ostrich.Owl.Pangolin.Pheasant.Prairie Dog.Pronghorn.Przewalski's Horse.Python.Quoll.Rabbit.Raven.Rhinoceros.Shelduck.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Tamandua.Tasmanian Devil.Thornbill.Thrush.Toad.Tortoise`.split(`.`),forest:`Agouti.Anaconda.Anoa.Ant.Anteater.Antelope.Armadillo.Asian Black Bear.Aye-aye.Babirusa.Baboon.Badger.Bandicoot.Banteng.Barbet.Basilisk.Bat.Bearded Dragon.Bee.Bee-eater.Beetle.Bettong.Binturong.Bird-of-paradise.Bongo.Bowerbird.Bulbul.Bush Dog.Bushbaby.Bushshrike.Butterfly.Buzzard.Caecilian.Cardinal.Cassowary.Caterpillar.Centipede.Chameleon.Chimpanzee.Cicada.Civet.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Colugo.Cotinga.Cotton Rat.Cougar.Crane Fly.Cricket.Crocodile.Crow.Cuckoo.Cuscus.Death Adder.Deer.Dhole.Dingo.Dinosaur.Drongo.Duck.Duiker.Eagle.Echidna.Elephant.Finch.Flat-headed Cat.Flea.Flowerpecker.Fly.Flying Frog.Fossa.Frog.Frogmouth.Gaur.Gecko.Gorilla.Grison.Hawaiian Honeycreeper.Hawk.Hedgehog.Helmetshrike.Hornbill.Hyrax.Iguana.Jackal.Jaguar.Jaguarundi.Kestrel.Ladybug.Lemur.Leopard.Lion.Macaw.Mandrill.Margay.Monkey.Mouse.Mouse Deer.Newt.Okapi.Old World Flycatcher.Orangutan.Owl.Pangolin.Peafowl.Pheasant.Possum.Python.Quokka.Rabbit.Raccoon.Red Panda.Red River Hog.Rhinoceros.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Sun Bear.Tamandua.Tamarin.Tapir.Tarantula.Thrush.Tiger.Tit.Toad.Tortoise.Toucan.Trogon.Trumpeter.Turaco.Turtle.Tyrant Flycatcher.Viper.Vulture.Wallaby.Warbler.Wasp.Waxwing.Weaver.Weaver-finch.Whistler.White-eye.Whydah.Woodswallow.Worm.Wren.Xenops.Yellowjacket.Accentor.African Buffalo.American Black Bear.Anole.Bird.Bison.Boa.Brown Bear.Chipmunk.Common Genet.Copperhead.Coyote.Deer Mouse.Dormouse.Elk.Emu.Fisher.Fox.Garter Snake.Giant Panda.Giant Tortoise.Groundhog.Grouse.Guanaco.Himalayan Tahr.Kangaroo.Koala.Numbat.Quoll.Raccoon dog.Tasmanian Devil.Thornbill.Turkey.Vole.Weasel.Wildcat.Wolf.Wombat.Woodchuck.Woodpecker`.split(`.`),farm:`Alpaca.Buffalo.Banteng.Cow.Cat.Chicken.Carp.Camel.Donkey.Dog.Duck.Emu.Goat.Gayal.Guinea.Goose.Horse.Honey.Llama.Pig.Pigeon.Rhea.Rabbit.Sheep.Silkworm.Turkey.Yak.Zebu`.split(`.`),pet:`Bearded Dragon.Birds.Burro.Cats.Chameleons.Chickens.Chinchillas.Chinese Water Dragon.Cows.Dogs.Donkey.Ducks.Ferrets.Fish.Geckos.Geese.Gerbils.Goats.Guinea Fowl.Guinea Pigs.Hamsters.Hedgehogs.Horses.Iguanas.Llamas.Lizards.Mice.Mule.Peafowl.Pigs and Hogs.Pigeons.Ponies.Pot Bellied Pig.Rabbits.Rats.Sheep.Skinks.Snakes.Stick Insects.Sugar Gliders.Tarantula.Turkeys.Turtles`.split(`.`),zoo:`Aardvark.African Wild Dog.Aldabra Tortoise.American Alligator.American Bison.Amur Tiger.Anaconda.Andean Condor.Asian Elephant.Baby Doll Sheep.Bald Eagle.Barred Owl.Blue Iguana.Boer Goat.California Sea Lion.Caribbean Flamingo.Chinchilla.Collared Lemur.Coquerel's Sifaka.Cuban Amazon Parrot.Ebony Langur.Fennec Fox.Fossa.Gelada.Giant Anteater.Giraffe.Gorilla.Grizzly Bear.Henkel's Leaf-tailed Gecko.Indian Gharial.Indian Rhinoceros.King Cobra.King Vulture.Komodo Dragon.Linne's Two-toed Sloth.Lion.Little Penguin.Madagascar Tree Boa.Magellanic Penguin.Malayan Tapir.Malayan Tiger.Matschies Tree Kangaroo.Mini Donkey.Monarch Butterfly.Nile crocodile.North American Porcupine.Nubian Ibex.Okapi.Poison Dart Frog.Polar Bear.Pygmy Marmoset.Radiated Tortoise.Red Panda.Red Ruffed Lemur.Ring-tailed Lemur.Ring-tailed Mongoose.Rock Hyrax.Small Clawed Asian Otter.Snow Leopard.Snowy Owl.Southern White-faced Owl.Southern White Rhinocerous.Squirrel Monkey.Tufted Puffin.White Cheeked Gibbon.White-throated Bee Eater.Zebra`.split(`.`)},r=[`Alert`,`Nord`,`Eureka`,`Ny-Ålesund`,`Longyearbyen`,`Qaanaaq`,`Grise Fiord`,`Dikson`,`Upernavik`,`Tiksi`,`Belushya Guba`,`Barrow`,`Honningsvåg`,`Hammerfest`,`Deadhorse`,`Nuorgam`,`Vadsø`,`Alta`,`Utsjoki`,`Kirkenes`,`Tromsø`,`Tuktoyaktuk`,`Norilsk`,`Murmansk`,`Harstad`,`Narvik`,`Inuvik`,`Kiruna`,`Verkhoyansk`,`Bodø`,`Gällivare`,`Kemijärvi`,`Rovaniemi`,`Ísafjörður`,`Kuusamo`,`Tornio`,`Boden`,`Haparanda`,`Kemi`,`Akureyri`,`Luleå`,`Pudasjärvi`,`Piteå`,`Oulu`,`Fairbanks`,`Skellefteå`,`Anadyr`,`Arkhangelsk`,`Nome`,`Nuuk (Godthåb)`,`Reykjavík`,`Umeå`,`Iqaluit`,`Stjørdal`,`Trondheim`,`Örnsköldsvik`,`Östersund`,`Vaasa`,`Kuopio`,`Yellowknife`,`Sundsvall`,`Jyväskylä`,`Yakutsk`,`Tórshavn`,`Petrozavodsk`,`Tampere`,`Anchorage`,`Lillehammer`,`Lahti`,`Qaqortoq`,`Whitehorse`,`Turku`,`Bergen`,`Vantaa`,`Lerwick`,`Espoo`,`Helsinki`,`Oslo`,`Saint Petersburg`,`Uppsala`,`Fritz Creek`,`Magadan`,`Tallinn`,`Stockholm`,`Sarpsborg`,`Örebro`,`Vologda`,`Norrköping`,`Linköping`,`Tartu`,`Juneau`,`Arendal`,`Kristiansand`,`Perm`,`Valga`,`Gothenburg`,`Visby`,`Yaroslavl`,`Inverness`,`Aberdeen`,`Sitka`,`Riga`,`Izhevsk`,`Yekaterinburg`,`Fort McMurray`,`Dundee`,`Nizhny Novgorod`,`Stirling`,`Bratsk`,`Aarhus`,`Krasnoyarsk`,`Edinburgh`,`Glasgow`,`Kazan`,`Moscow`,`Copenhagen`,`Malmö`,`Esbjerg`,`Odense`,`Grande Prairie`,`Chelyabinsk`,`Novosibirsk`,`Derry`,`Omsk`,`Newcastle upon Tyne`,`Sunderland`,`Petropavl`,`Flensburg`,`Ufa`,`Kaliningrad`,`Vilnius`,`Belfast`,`Middlesbrough`,`Gdynia`,`Gdańsk`,`Kiel`,`Douglas`,`Rostock`,`Lancaster`,`York`,`Prince George`,`Minsk`,`Bradford`,`Leeds`,`Hamburg`,`Edmonton`,`Tolyatti`,`Manchester`,`Liverpool`,`Sheffield`,`Dublin`,`Groningen`,`Samara`,`Bremen`,`Petropavlovsk-Kamchatsky`,`Nottingham`,`Derby`,`Leicester`,`Norwich`,`Peterborough`,`Berlin`,`Birmingham`,`Gomel`,`Coventry`,`Poznań`,`Haarlem`,`Amsterdam`,`Hannover`,`Irkutsk`,`Warsaw`,`Enschede`,`Cambridge`,`Leiden`,`Saskatoon`,`Utrecht`,`The Hague`,`Münster`,`Rotterdam`,`Cork`,`Adak`,`Gloucester`,`Oxford`,`Voronezh`,`Swansea`,`Saratov`,`Dortmund`,`London`,`Cardiff`,`Greenwich`,`Bristol`,`Bath`,`Leipzig`,`Düsseldorf`,`Antwerp`,`Astana`,`Winchester`,`Calgary`,`Ghent`,`Dresden`,`Erfurt`,`Calais`,`Cologne`,`Southampton`,`Maastricht`,`Brussels`,`Brighton and Hove`,`Portsmouth`,`Exeter`,`Kamloops`,`Lille`,`Regina`,`Kiev`,`Charleroi`,`Plymouth`,`Frankfurt am Main`,`Prague`,`Kraków`,`Kharkiv`,`Winnipeg`,`Kelowna`,`Lviv`,`Luxembourg`,`Le Havre`,`Nuremberg`,`Rouen`,`Vancouver`,`Paris`,`Stuttgart`,`Bellingham`,`Volgograd`,`Strasbourg`,`Dnipro`,`Victoria`,`Saguenay`,`Brest`,`Thunder Bay`,`Linz`,`Vienna`,`Bratislava`,`Munich`,`Donetsk`,`Ulaanbaatar`,`Orléans`,`Salzburg`,`Seattle`,`St. John's`,`Basel`,`Budapest`,`Qiqihar`,`Zürich`,`Innsbruck`,`Rostov-on-Don`,`Nantes`,`Vaduz`,`Atyrau`,`Graz`,`Chişinău`,`Bern`,`Tiraspol`,`Quebec City`,`Bismarck`,`Duluth`,`Saint-Pierre`,`Cluj-Napoca`,`Moscow`,`Helena`,`Sault Ste. Marie`,`Lausanne`,`Sudbury`,`Odessa`,`North Bay`,`Charlottetown`,`Geneva`,`Moncton`,`Ljubljana`,`Fredericton`,`Zagreb`,`Lyon`,`Harbin`,`New Glasgow`,`Portland`,`Montreal`,`Milan`,`Venice`,`Ottawa`,`Wakkanai`,`Saint John`,`Novi Sad`,`Turin`,`Krasnodar`,`Minneapolis`,`Simferopol`,`Halifax`,`Bordeaux`,`Belgrade`,`Šabac`,`Drobeta Turnu Severin`,`Bologna`,`Bucharest`,`Ravenna`,`Genoa`,`Pierre`,`Craiova`,`Augusta`,`Montpelier`,`Bath`,`San Marino`,`Changchun`,`Sarajevo`,`Yarmouth`,`Ürümqi`,`Florence`,`Asahikawa`,`Monaco`,`Nice`,`Toronto`,`Boise`,`Toulouse`,`Sochi`,`Cannes`,`Gijón`,`Sioux Falls`,`Split`,`Oviedo`,`Nemuro`,`San Sebastián`,`Marseille`,`Almaty`,`Bilbao`,`Concord`,`Rochester`,`Vladivostok`,`Sapporo`,`Milwaukee`,`Sukhumi`,`Kushiro`,`London`,`Follonica`,`Obihiro`,`Buffalo`,`Santiago de Compostela`,`Bishkek`,`Vitoria-Gasteiz`,`Sofia`,`Pristina`,`Andorra la Vella`,`Nukus`,`Podgorica`,`Boston`,`Detroit`,`Windsor`,`Vigo`,`Tskhinvali`,`Avezzano`,`Skopje`,`Colchester`,`Rome`,`Vatican City`,`Chicago`,`Providence`,`Shenyang`,`Chongjin`,`Hartford`,`Hakodate`,`Tbilisi`,`Valladolid`,`Zaragoza`,`Des Moines`,`Braga`,`Cleveland`,`Barcelona`,`Tirana`,`Tashkent`,`Porto`,`Cheyenne`,`Bari`,`Fort Wayne`,`Istanbul`,`Trabzon`,`Namangan`,`Naples`,`Aomori`,`Lincoln`,`Eureka`,`Salt Lake City`,`Jersey City`,`New York City`,`Thessaloniki`,`Lleida`,`Pittsburgh`,`Baku`,`Madrid`,`Trenton`,`Bursa`,`Yerevan`,`Boulder`,`Columbus`,`Ankara`,`Philadelphia`,`Beijing`,`Stepanakert`,`Forked River`,`Eskisehir`,`Indianapolis`,`Denver`,`Akita`,`Morioka`,`Palma`,`Reno`,`Flores Island`,`Valencia`,`Baltimore`,`Cagliari`,`Dover`,`Wonsan`,`Tianjin`,`Cincinnati`,`Kansas City`,`Pyongyang`,`Ibiza`,`Dalian`,`Washington`,`Lisbon`,`St. Louis`,`Horta`,`Sacramento`,`Dushanbe`,`Angra do Heroísmo`,`Halkida`,`İzmir`,`Charleston`,`Alicante`,`Sendai`,`Louisville`,`Yamagata`,`Messina`,`Palermo`,`Tabriz`,`Shijiazhuang`,`Trapani`,`Athena`,`Kaesong`,`Ashgabat`,`Niigata`,`Taiyuan`,`Konya`,`Ponta Delgada`,`Oakland`,`San Francisco`,`Fukushima`,`Wichita`,`Seoul`,`San Jose`,`Catania`,`Incheon`,`Sevilla`,`Mugla`,`Springfield`,`Gaziantep`,`Adana`,`Virginia Beach`,`Almería`,`Tunis`,`Mersin`,`Algiers`,`Málaga`,`Toyama`,`Jinan`,`Nagano`,`Xining`,`Handan`,`Kanazawa`,`Utsunomiya`,`Maebashi`,`Mito`,`Mosul`,`Mashhad`,`Arbil`,`Las Vegas`,`Nashville`,`Gibraltar`,`Tulsa`,`Fukui`,`Qingdao`,`Lanzhou`,`Knoxville`,`Valletta`,`Birkirkara`,`Los Alamos`,`Daegu`,`Raleigh`,`Tangier`,`Tehran`,`Tokyo`,`Santa Fe`,`Kōfu`,`Chiba`,`Latakia`,`Kawasaki`,`Tottori`,`Oklahoma City`,`Matsue`,`Kirkuk`,`Yokohama`,`Gifu`,`Tiaret`,`Heraklion`,`Melilla`,`Charlotte`,`Nagoya`,`Busan`,`Nicosia`,`Memphis`,`Albuquerque`,`Ōtsu`,`Kyoto`,`Shizuoka`,`Zhengzhou`,`Little Rock`,`Sfax`,`Tsu`,`Osaka`,`Kōbe`,`Nara`,`Okayama`,`Kabul`,`Santa Barbara`,`Hiroshima`,`Takamatsu`,`Xi'an`,`Wakayama`,`Wilmington`,`Yamaguchi`,`Arak`,`Srinagar`,`Tokushima`,`Los Angeles`,`Rabat`,`Peshawar`,`Columbia`,`Riverside`,`Beirut`,`Matsuyama`,`Atlanta`,`Islamabad`,`Birmingham`,`Rawalpindi`,`Fukuoka`,`Kōchi`,`Casablanca`,`Damascus`,`Phoenix`,`Lubbock`,`Baghdad`,`Saga`,`Ōita`,`Tripoli`,`Charleston`,`Dallas`,`Nagasaki`,`Kumamoto`,`San Diego`,`Mexicali`,`Funchal`,`El Centro`,`Isfahan`,`Karbala`,`Tijuana`,`Shreveport`,`Jackson`,`Hamilton`,`Tucson`,`Benghazi`,`Tel Aviv`,`Nanjing`,`Najaf`,`Amman`,`Miyazaki`,`Ramallah`,`Ensenada`,`El Paso`,`Jerusalem`,`Ciudad Juárez`,`Amritsar`,`Marrakech`,`Kandahar`,`Kagoshima`,`Lahore`,`Gaza`,`Faisalabad`,`Port Said`,`Alexandria`,`Shanghai`,`Shimla`,`Ludhiana`,`Chandigarh`,`Mobile`,`Chengdu`,`Wuhan`,`Basra`,`Agadir`,`Jacksonville`,`Austin`,`Hangzhou`,`Multan`,`Cairo`,`New Orleans`,`Suez`,`Houston`,`Lhasa`,`Chongqing`,`Eilat`,`San Antonio`,`Kuwait City`,`Shigatse`,`Hermosillo`,`Chihuahua`,`New Delhi`,`Santa Cruz de Tenerife`,`Orlando`,`Las Palmas de Gran Canaria`,`Tampa`,`Corpus Christi`,`Maspalomas`,`Kathmandu`,`Dibrugarh`,`Thimphu`,`Gangtok`,`Agra`,`El Aaiún`,`Sabha`,`Jaipur`,`Lucknow`,`Siliguri`,`Tezpur`,`Kanpur`,`Dammam`,`Naha`,`Manama`,`Guwahati`,`Brownsville`,`Miami`,`Luxor`,`Monterrey`,`Patna`,`Shillong`,`Torreón`,`Kulpahar`,`Doha`,`Dubai`,`Hyderabad`,`Nassau`,`Kunming`,`Taipei`,`Karachi`,`Culiacán`,`Riyadh`,`Key West`,`Medina`,`Abu Dhabi`,`Al Ain`,`Taichung`,`Durango`,`Agartala`,`Dhaka`,`Muscat`,`Havana`,`Guangzhou`,`Ahmedabad`,`Dongguan`,`Tainan`,`Cabo San Lucas`,`Nanning`,`Kaohsiung`,`Kolkata (Calcutta)`,`Shenzhen`,`Chittagong`,`Hong Kong`,`Tampico`,`San Luis Potosí`,`Aguascalientes`,`Jeddah`,`Cockburn Town`,`Mecca`,`Honolulu`,`Chhattisgarh`,`Cancún`,`Surat`,`Nagpur`,`León`,`Hanoi`,`Mérida`,`Hai Phong`,`Zapopan`,`Puerto Vallarta`,`Guadalajara`,`Querétaro`,`Haikou`,`Santiago de Cuba`,`Chiang Rai`,`Naypyidaw`,`Hilo`,`George Town`,`Veracruz`,`Puebla`,`Mumbai`,`Chiang Mai`,`Port-au-Prince`,`Pune`,`Santo Domingo`,`San Juan`,`Road Town`,`Charlotte Amalie`,`The Valley`,`Nouakchott`,`Kingston`,`Vientiane`,`Visakhapatnam`,`Belize City`,`Udon Thani`,`Hyderabad`,`Basseterre`,`Belmopan`,`St. John's`,`Salalah`,`Acapulco`,`Yangon`,`Timbuktu`,`Huế`,`Khon Kaen`,`Da Nang`,`Basse-Terre`,`Omdurman`,`Khartoum`,`Sana'a`,`Asmara`,`Roseau`,`Saipan`,`Son My`,`Nakhon Ratchasima`,`Praia`,`Tapachula`,`Quetzaltenango`,`Thiès`,`Dakar`,`Quezon City`,`Guatemala City`,`Fort-de-France`,`Manila`,`Makati`,`Ayutthaya`,`Tegucigalpa`,`Castries`,`Bangkok`,`San Salvador`,`Niamey`,`Dededo`,`Hagåtña`,`Banjul`,`Serekunda`,`Siem Reap`,`Brikama`,`Kingstown`,`Bridgetown`,`Chennai (Madras)`,`Bangalore`,`Pattaya`,`Koulikoro`,`Bamako`,`Chinandega`,`Oranjestad`,`Ouagadougou`,`Managua`,`Willemstad`,`N'Djamena`,`St. George's`,`Kano`,`Bissau`,`Port Blair`,`Djibouti`,`Phnom Penh`,`Bobo-Dioulasso`,`Barranquilla`,`Ho Chi Minh City`,`Iloilo City`,`Port of Spain`,`Maracaibo`,`Liberia`,`Caracas`,`Chaguanas`,`Cartagena`,`San Fernando`,`Cebu City`,`Maracay`,`Valencia`,`Alajuela`,`Limón`,`Jaffna`,`Hargeisa`,`Puntarenas`,`Kochi`,`San José`,`Tagbilaran`,`Conakry`,`Tamale`,`Surat Thani`,`Abuja`,`Addis Ababa`,`Panama City`,`Mérida`,`Moundou`,`Trivandrum`,`Freetown`,`Ciudad Bolívar`,`Cúcuta`,`Phuket`,`San Cristóbal`,`Nzérékoré`,`Batticaloa`,`Melekeok`,`Weno`,`Ibadan`,`Koror`,`Kandy`,`Majuro`,`Davao City`,`Hat Yai`,`Colombo`,`Palikir`,`Sri Jayawardenapura-Kotte`,`Zamboanga City`,`Yamoussoukro`,`Georgetown`,`Kumasi`,`Porto-Novo`,`Lagos`,`Enugu`,`Cotonou`,`Benin City`,`Monrovia`,`Medellín`,`Lomé`,`Kota Bharu`,`Alor Setar`,`Kota Kinabalu`,`Paramaribo`,`Puerto Ayacucho`,`Accra`,`Banda Aceh`,`George Town`,`Abidjan`,`Cayenne`,`Sekondi-Takoradi`,`Bandar Seri Begawan`,`Juba`,`Port Harcourt`,`Ipoh`,`Bogotá`,`Miri`,`Bangui`,`Malé`,`Douala`,`Yaoundé`,`Malabo`,`Medan`,`Santiago de Cali`,`Kuala Lumpur`,`Boa Vista`,`Malacca Town`,`Mogadishu`,`Kuching`,`Johor Bahru`,`South Tarawa`,`Singapore`,`Pekanbaru`,`Libreville`,`São Tomé`,`Kampala`,`Entebbe`,`Mbandaka`,`Macapá`,`Pontianak`,`Quito`,`Kismayo`,`Yaren District`,`Padang`,`Balikpapan`,`Nairobi`,`Belém`,`Kigali`,`Guayaquil`,`Mwanza`,`São Luís`,`Jayapura`,`Palembang`,`Manaus`,`Bujumbura`,`Sobral`,`Ambon`,`Fortaleza`,`Iquitos`,`Fernando de Noronha`,`Mombasa`,`Brazzaville`,`Kinshasa`,`Victoria`,`Teresina`,`Makassar`,`Imperatriz`,`Natal`,`Zanzibar City`,`Dodoma`,`Jakarta`,`Bogor`,`Dar es Salaam`,`Bandung`,`Semarang`,`João Pessoa`,`Juazeiro do Norte`,`Campina Grande`,`Surabaya`,`Yogyakarta`,`Malang`,`Recife`,`Trujillo`,`Caruaru`,`Funafuti`,`Dili`,`Denpasar`,`Porto Velho`,`Luanda`,`Garanhuns`,`Nukulaelae`,`Petrolina`,`Honiara`,`Port Moresby`,`Maceió`,`Rio Branco`,`Aracaju`,`Palmas`,`Lubumbashi`,`Moroni`,`Sinop`,`Lima`,`Darwin`,`Huambo`,`Mamoudzou`,`Ndola`,`Salvador`,`Ayacucho`,`Mata-Utu`,`Cusco`,`Apia`,`Lilongwe`,`Pago Pago`,`Ilhéus`,`Lusaka`,`Cuiabá`,`Blantyre`,`Brasília`,`Jamestown`,`Arequipa`,`Labasa`,`Rabi Island`,`La Paz`,`Goiânia`,`Cairns`,`Papeete`,`Port Vila`,`Santa Cruz de la Sierra`,`Livingstone`,`Harare`,`Suva`,`Arica`,`Governador Valadares`,`Uberlândia`,`Antananarivo`,`Mutare`,`Sucre`,`Alofi`,`Townsville`,`Gweru`,`Belo Horizonte`,`Port Louis`,`Bulawayo`,`Iquique`,`Port Hedland`,`Vitória`,`Campo Grande`,`São José do Rio Preto`,`Saint-Denis`,`Nukuʻalofa`,`Francistown`,`Ribeirão Preto`,`Avarua`,`Juiz de Fora`,`Poços de Caldas`,`Araraquara`,`Nouméa`,`Bauru`,`Calama`,`Windhoek`,`Assis`,`Campinas`,`Rio de Janeiro`,`São José dos Campos`,`Rockhampton`,`São Paulo`,`Antofagasta`,`Polokwane`,`Gaborone`,`Salta`,`Adamstown`,`Asunción`,`Curitiba`,`Nelspruit`,`Ciudad del Este`,`Pretoria`,`Mafikeng`,`Maputo`,`Johannesburg`,`Mbabane`,`Lobamba`,`Manzini`,`San Miguel de Tucumán`,`Hanga Roa`,`Copiapó`,`Brisbane`,`Corrientes`,`Florianópolis`,`Gold Coast`,`Kimberley`,`Kingston`,`Bloemfontein`,`Maseru`,`Pietermaritzburg`,`Durban`,`La Serena`,`Córdoba`,`Santa Fe`,`Pelotas`,`Perth`,`San Juan`,`Mandurah`,`Bhisho`,`Mendoza`,`Newcastle`,`Rosario`,`Viña del Mar`,`Valparaíso`,`Santiago`,`Chuí`,`Sydney`,`Cape Town`,`Port Elizabeth`,`Wollongong`,`Buenos Aires`,`Montevideo`,`Adelaide`,`Canberra`,`Concepción`,`Auckland`,`Edinburgh of the Seven Seas`,`Hamilton`,`Melbourne`,`Mar del Plata`,`Geelong`,`Bahía Blanca`,`Temuco`,`Neuquén`,`Hastings`,`Valdivia`,`San Carlos de Bariloche`,`Nelson`,`Wellington`,`Puerto Montt`,`Launceston, Tasmania`,`Hobart`,`Trelew`,`Christchurch`,`Waitangi`,`Puerto Aisén`,`Coihaique`,`Comodoro Rivadavia`,`Dunedin`,`Invercargill`,`Río Gallegos`,`Stanley`,`Punta Arenas`,`Grytviken`,`Ushuaia`,`Puerto Williams`,`Puerto Toro`,`Villa Las Estrellas`,`Esperanza`,`Rothera`,`Concordia`]})),fa=i((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNamesTypeAttributes=e.singularizeTypeNames=e.modifyTypeNames=e.namesTypeAttributeKind=e.TooManyTypeNames=e.RegularTypeNames=e.TypeNames=e.tooManyNamesThreshold=e.initTypeNames=void 0;var i=r(ta()),o=a(),s=Q(),c=na(),l=ua(),u=da(),d,f;function p(){d=new u.Chance(31415),f=new Set}e.initTypeNames=p,p();function m(){for(;;){let e=`${d.city()} ${d.animal()}`;if(!f.has(e))return f.add(e),e}}function h(e){let t=(0,o.iterableFirst)(e);if(t===void 0)return(0,s.panic)(`Named type has no names`);if(e.size===1)return t;let n=(0,o.setMap)(e,e=>(0,l.splitIntoWords)(e).map(e=>e.word.toLowerCase()).join(`_`)),r=(0,s.defined)((0,o.iterableFirst)(n));if(n.size===1)return r;let i=r.length,a=r.length;for(let e of(0,o.iterableSkip)(n,1)){i=Math.min(i,e.length);for(let t=0;t<i;t++)if(r[t]!==e[t]){i=t;break}a=Math.min(a,e.length);for(let t=0;t<a;t++)if(r[r.length-t-1]!==e[e.length-t-1]){a=t;break}}let c=(i>2?r.slice(0,i):``)+(a>2?r.slice(r.length-a):``);return c.length>2?c:r}e.tooManyNamesThreshold=1e3;var g=class t{static makeWithDistance(t,n,r){return t.size>=e.tooManyNamesThreshold?new v(r):((n===void 0||n.size>e.tooManyNamesThreshold)&&(n=void 0),new _(t,n,r))}static make(e,n,r){return t.makeWithDistance(e,n,+!!r)}constructor(e){this.distance=e}get areInferred(){return this.distance>0}};e.TypeNames=g;var _=class e extends g{constructor(e,t,n){super(n),this.names=e,this._alternativeNames=t}add(t,n=0){let r=new Set(this.names),i=this.distance,a=(0,o.definedMap)(this._alternativeNames,e=>new Set(e));for(let c=n;c<t.length;c++){let n=t[c];if(n instanceof e&&n._alternativeNames!==void 0&&(a===void 0&&(a=new Set),(0,o.setUnionInto)(a,n._alternativeNames)),!(n.distance>i)){if(!(n instanceof e))return(0,s.assert)(n instanceof v,`Unknown TypeNames instance`),n.add(t,c+1);n.distance<i?(r=new Set(n.names),i=n.distance,a=(0,o.definedMap)(n._alternativeNames,e=>new Set(e))):((0,s.assert)(n.distance===i,`This should be the only case left`),(0,o.setUnionInto)(r,n.names))}}return g.makeWithDistance(r,a,i)}clearInferred(){let e=this.areInferred?new Set:this.names;return g.makeWithDistance(e,new Set,this.distance)}get combinedName(){return h(this.names)}get proposedNames(){let e=new Set([this.combinedName]);return this._alternativeNames===void 0||(0,o.setUnionInto)(e,this._alternativeNames),e}makeInferred(){return g.makeWithDistance(this.names,this._alternativeNames,this.distance+1)}singularize(){return g.makeWithDistance((0,o.setMap)(this.names,i.singular),(0,o.definedMap)(this._alternativeNames,e=>(0,o.setMap)(e,i.singular)),this.distance+1)}toString(){let e=`${this.areInferred?`distance ${this.distance}`:`given`} ${Array.from(this.names).join(`,`)}`;return this._alternativeNames===void 0?e:`${e} (${Array.from(this._alternativeNames).join(`,`)})`}};e.RegularTypeNames=_;var v=class e extends g{constructor(e,t){super(e),t===void 0&&(t=m()),this.names=new Set([t])}get combinedName(){return(0,s.defined)((0,o.iterableFirst)(this.names))}get proposedNames(){return this.names}add(e,t=0){if(!this.areInferred)return this;for(let n=t;n<e.length;n++){let t=e[n];if(t.distance<this.distance)return t.add(e,n+1)}return this}clearInferred(){return this.areInferred?g.makeWithDistance(new Set,new Set,this.distance):this}makeInferred(){return new e(this.distance+1,(0,o.iterableFirst)(this.names))}singularize(){return this}toString(){return`too many ${this.combinedName}`}};e.TooManyTypeNames=v,e.namesTypeAttributeKind=new class extends c.TypeAttributeKind{constructor(){super(`names`)}combine(e){return(0,s.assert)(e.length>0,`Can't combine zero type names`),e[0].add(e,1)}makeInferred(e){return e.makeInferred()}increaseDistance(e){return e.makeInferred()}stringify(e){return e.toString()}};function y(t,n){return e.namesTypeAttributeKind.modifyInAttributes(t,n)}e.modifyTypeNames=y;function b(e){return y(e,e=>{if(e!==void 0)return e.singularize()})}e.singularizeTypeNames=b;function x(t,n){let r;return r=typeof t==`string`?g.make(new Set([t]),new Set,(0,s.defined)(n)):t,e.namesTypeAttributeKind.makeAttributes(r)}e.makeNamesTypeAttributes=x})),pa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeBuilder=e.getNoStringTypeMapping=e.stringTypeMappingGet=e.provenanceTypeAttributeKind=void 0;var t=a(),n=wa(),r=va(),i=na(),o=Q(),s=ma();e.provenanceTypeAttributeKind=new class extends i.TypeAttributeKind{constructor(){super(`provenance`)}appliesToTypeKind(e){return!0}combine(e){return(0,t.setUnionManyInto)(new Set,e)}makeInferred(e){return e}stringify(e){return Array.from(e).sort().map(e=>e.toString()).join(`,`)}};function c(e,t){let n=e.get(t);return n===void 0?`string`:n}e.stringTypeMappingGet=c;var l;function u(){return l===void 0&&(l=new Map(Array.from(n.transformedStringTypeKinds).map(e=>[e,e]))),l}e.getNoStringTypeMapping=u,e.TypeBuilder=class{constructor(e,n,i,a,s,c){this._stringTypeMapping=n,this.canonicalOrder=i,this._allPropertiesOptional=a,this._addProvenanceAttributes=s,this.topLevels=new Map,this.types=[],this.typeAttributes=[],this._addedForwardingIntersection=!1,this._typeForIdentity=new t.EqualityMap,(0,o.assert)(!s||!c,`We can't both inherit as well as add provenance`),this.typeGraph=new r.TypeGraph(this,e,s||c)}addTopLevel(e,t){(0,o.assert)(!this.topLevels.has(e),`Trying to add top-level with existing name`),(0,o.assert)(this.types[(0,r.typeRefIndex)(t)]!==void 0,`Trying to add a top-level type that doesn't exist (yet?)`),this.topLevels.set(e,t)}reserveTypeRef(){let t=this.types.length;this.types.push(void 0);let n=(0,r.makeTypeRef)(this.typeGraph,t),a=this._addProvenanceAttributes?e.provenanceTypeAttributeKind.makeAttributes(new Set([t])):i.emptyTypeAttributes;return this.typeAttributes.push(a),n}assertTypeRefGraph(e){e!==void 0&&(0,r.assertTypeRefGraph)(e,this.typeGraph)}assertTypeRefSetGraph(e){e!==void 0&&e.forEach(e=>this.assertTypeRefGraph(e))}filterTypeAttributes(e,n){let r=(0,t.mapFilter)(n,(t,n)=>n.appliesToTypeKind(e.kind));return n.size!==r.size&&this.setLostTypeAttributes(),r}commitType(e,t){this.assertTypeRefGraph(e);let n=(0,r.typeRefIndex)(e);(0,o.assert)(this.types[n]===void 0,`A type index was committed twice`),this.types[n]=t,this.typeAttributes[n]=this.filterTypeAttributes(t,this.typeAttributes[n])}addType(e,t,n){e!==void 0&&(this.assertTypeRefGraph(e),(0,o.assert)(this.types[(0,r.typeRefIndex)(e)]===void 0));let a=e===void 0?this.reserveTypeRef():e;if(n!==void 0){let e=(0,r.typeRefIndex)(a);this.typeAttributes[e]=(0,i.combineTypeAttributes)(`union`,this.typeAttributes[e],n)}let s=t(a);return this.commitType(a,s),a}typeAtIndex(e){let t=this.types[e];return t===void 0?(0,o.panic)(`Trying to deref an undefined type in a type builder`):t}atIndex(e){return[this.typeAtIndex(e),this.typeAttributes[e]]}addAttributes(e,n){this.assertTypeRefGraph(e);let a=(0,r.typeRefIndex)(e),s=this.typeAttributes[a];(0,o.assert)((0,t.iterableEvery)(n,([e,n])=>{if(!e.inIdentity)return!0;let r=s.get(e);return r===void 0?!1:(0,t.areEqual)(r,n)}),`Can't add different identity type attributes to an existing type`);let c=this.types[a];c!==void 0&&(n=this.filterTypeAttributes(c,n));let l=(0,t.mapFilter)(n,(e,t)=>!t.inIdentity);this.typeAttributes[a]=(0,i.combineTypeAttributes)(`union`,s,l)}finish(){return this.typeGraph.freeze(this.topLevels,this.types.map(o.defined),this.typeAttributes),this.typeGraph}addForwardingIntersection(e,t){return this.assertTypeRefGraph(t),this._addedForwardingIntersection=!0,this.addType(e,e=>new n.IntersectionType(e,this.typeGraph,new Set([t])),void 0)}forwardIfNecessary(e,t){if(t!==void 0)return e===void 0?t:this.addForwardingIntersection(e,t)}get didAddForwardingIntersection(){return this._addedForwardingIntersection}registerTypeForIdentity(e,t){e!==void 0&&this._typeForIdentity.set(e,t)}makeIdentity(e){return e()}getOrAddType(e,n,r,i){let a=this.makeIdentity(e),o;if(o=a===void 0?void 0:this._typeForIdentity.get(a),o!==void 0){let e=this.forwardIfNecessary(i,o);return r!==void 0&&this.addAttributes(e,(0,t.mapFilter)(r,(e,t)=>!t.inIdentity)),e}let s=this.addType(i,n,r);return this.registerTypeForIdentity(a,s),s}registerType(e){this.registerTypeForIdentity(e.identity,e.typeRef)}getPrimitiveType(e,r,a){let o=(0,t.withDefault)(r,i.emptyTypeAttributes),l=e===`string`?void 0:s.StringTypes.unrestricted;return(0,n.isPrimitiveStringTypeKind)(e)&&e!==`string`&&(e=c(this._stringTypeMapping,e)),e===`string`?this.getStringType(o,l,a):this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(e,o),t=>new n.PrimitiveType(t,this.typeGraph,e),o,a)}getStringType(e,r,a){let c=(0,t.mapFind)(e,(e,t)=>t===s.stringTypesTypeAttributeKind);return(0,o.assert)(r===void 0!=(c===void 0),`Must instantiate string type with one enum case attribute`),c===void 0&&(e=(0,i.combineTypeAttributes)(`union`,e,s.stringTypesTypeAttributeKind.makeAttributes((0,o.defined)(r)))),this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(`string`,e),e=>new n.PrimitiveType(e,this.typeGraph,`string`),e,a)}getEnumType(e,t,r){return this.getOrAddType(()=>(0,n.enumTypeIdentity)(e,t),e=>new n.EnumType(e,this.typeGraph,t),e,r)}makeClassProperty(e,t){return new n.ClassProperty(e,this.typeGraph,t)}getUniqueObjectType(e,r,i,a){return this.assertTypeRefGraph(i),r=(0,t.definedMap)(r,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ObjectType(e,this.typeGraph,`object`,!0,r,i),e)}getUniqueMapType(e){return this.addType(e,e=>new n.MapType(e,this.typeGraph,void 0),void 0)}getMapType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.mapTypeIdentify)(e,t),e=>new n.MapType(e,this.typeGraph,t),e,r)}setObjectProperties(e,t,i){this.assertTypeRefGraph(i);let a=(0,r.derefTypeRef)(e,this.typeGraph);if(!(a instanceof n.ObjectType))return(0,o.panic)(`Tried to set properties of non-object type`);a.setProperties(this.modifyPropertiesIfNecessary(t),i),this.registerType(a)}getUniqueArrayType(e){return this.addType(e,e=>new n.ArrayType(e,this.typeGraph,void 0),void 0)}getArrayType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.arrayTypeIdentity)(e,t),e=>new n.ArrayType(e,this.typeGraph,t),e,r)}setArrayItems(e,t){this.assertTypeRefGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.ArrayType))return(0,o.panic)(`Tried to set items of non-array type`);i.setItems(t),this.registerType(i)}modifyPropertiesIfNecessary(e){return e.forEach(e=>this.assertTypeRefGraph(e.typeRef)),this.canonicalOrder&&(e=(0,t.mapSortByKey)(e)),this._allPropertiesOptional&&(e=(0,t.mapMap)(e,e=>this.makeClassProperty(e.typeRef,!0))),e}getClassType(e,t,r){return t=this.modifyPropertiesIfNecessary(t),this.getOrAddType(()=>(0,n.classTypeIdentity)(e,t),e=>new n.ClassType(e,this.typeGraph,!1,t),e,r)}getUniqueClassType(e,r,i,a){return i=(0,t.definedMap)(i,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ClassType(e,this.typeGraph,r,i),e)}getUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.unionTypeIdentity)(e,t),e=>new n.UnionType(e,this.typeGraph,t),e,r)}getUniqueUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.UnionType(e,this.typeGraph,t),e)}getIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.intersectionTypeIdentity)(e,t),e=>new n.IntersectionType(e,this.typeGraph,t),e,r)}getUniqueIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.IntersectionType(e,this.typeGraph,t),e)}setSetOperationMembers(e,t){this.assertTypeRefSetGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.UnionType||i instanceof n.IntersectionType))return(0,o.panic)(`Tried to set members of non-set-operation type`);i.setMembers(t),this.registerType(i)}setLostTypeAttributes(){}}})),ma=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inferTransformedStringTypeKindForString=e.stringTypesTypeAttributeKind=e.StringTypes=void 0;var t=a(),n=na(),r=Q(),i=pa(),o=class e{static fromCase(t,n){let r={};return r[t]=n,new e(new Map([[t,n]]),new Set)}static fromCases(t){let n={};for(let e of t)n[e]=1;return new e(new Map(t.map(e=>[e,1])),new Set)}constructor(e,t){this.cases=e,this.transformations=t,e===void 0&&(0,r.assert)(t.size===0,`We can't have an unrestricted string that also allows transformations`)}get isRestricted(){return this.cases!==void 0}union(n,r){if(this.cases===void 0)return this;let i=new Map(this.cases),a=new Set(this.transformations);for(let e=r;e<n.length;e++){let r=n[e];if(r.cases===void 0)return r;(0,t.mapMergeWithInto)(i,(e,t)=>e+t,r.cases),(0,t.setUnionInto)(a,r.transformations)}return new e(i,a)}intersect(n,i){let a=this.cases,o=this.transformations;for(let e=i;e<n.length;e++){let i=n[e];if(a===void 0)a=(0,t.definedMap)(i.cases,e=>new Map(e));else if(i.cases!==void 0){let e=a,n=i.cases;a=(0,t.mapMap)((0,t.setIntersect)(e.keys(),new Set(n.keys())).entries(),t=>Math.min((0,r.defined)(e.get(t)),(0,r.defined)(n.get(t))))}o=(0,t.setIntersect)(o,i.transformations)}return new e(a,o)}applyStringTypeMapping(t){if(!this.isRestricted)return this;let n=new Set;for(let r of this.transformations){let a=(0,i.stringTypeMappingGet)(t,r);if(a===`string`)return e.unrestricted;n.add(a)}return new e(this.cases,new Set(n))}equals(n){return n instanceof e?(0,t.areEqual)(this.cases,n.cases)&&(0,t.areEqual)(this.transformations,n.transformations):!1}hashCode(){let e=(0,t.hashCodeOf)(this.cases);return e=(0,t.addHashCode)(e,(0,t.hashCodeOf)(this.transformations)),e}toString(){let e=[],n=this.cases;if(n===void 0)e.push(`unrestricted`);else{let r=(0,t.iterableFirst)(n.keys());r===void 0?e.push(`enum with no cases`):e.push(`${n.size.toString()} enums: ${r} (${n.get(r)}), ...`)}return e.concat(Array.from(this.transformations)).join(`,`)}};e.StringTypes=o,o.unrestricted=new o(void 0,new Set),e.stringTypesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`stringTypes`)}get inIdentity(){return!0}requiresUniqueIdentity(e){return e.cases!==void 0&&e.cases.size>0}combine(e){return(0,r.assert)(e.length>0),e[0].union(e,1)}intersect(e){return(0,r.assert)(e.length>0),e[0].intersect(e,1)}makeInferred(e){}stringify(e){return e.toString()}};var s=/^(0|-?[1-9]\d*)$/,c=1<<31,l=-(c+1);function u(e){if(e.match(s)===null)return!1;let t=parseInt(e,10);return t>=c&&t<=l}var d=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function f(e){return e.match(d)!==null}var p=/^(https?|ftp):\/\/[^{}]+$/;function m(e){return e.match(p)!==null}function h(e,t){if(!(e.length===0||`0123456789-abcdefth`.indexOf(e[0])<0)){if(t.isDate(e))return`date`;if(t.isTime(e))return`time`;if(t.isDateTime(e))return`date-time`;if(u(e))return`integer-string`;if(e===`false`||e===`true`)return`bool-string`;if(f(e))return`uuid`;if(m(e))return`uri`}}e.inferTransformedStringTypeKindForString=h})),ha=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.matchCompoundType=e.matchType=e.matchTypeExhaustive=e.stringTypesForType=e.directlyReachableSingleNamedType=e.directlyReachableTypes=e.separateNamedTypes=e.isNamedType=e.getNullAsOptional=e.nonNullTypeCases=e.nullableFromUnion=e.removeNullFromType=e.removeNullFromUnion=e.isAnyOrNull=e.combineTypeAttributesOfTypes=e.makeGroupsToFlatten=e.setOperationMembersRecursively=e.assertIsClass=e.assertIsObject=void 0;var t=a(),n=Q(),r=na(),i=wa(),o=ma();function s(e){return e instanceof i.ObjectType?e:(0,n.panic)(`Supposed object type is not an object type`)}e.assertIsObject=s;function c(e){return e instanceof i.ClassType?e:(0,n.panic)(`Supposed class type is not a class type`)}e.assertIsClass=c;function l(e,t){let n=Array.isArray(e)?e:[e],i=n[0].kind,a=i!==`intersection`,o=new Set,s=new Set,c=r.emptyTypeAttributes;function l(e){if(e.kind===i){let n=e;if(o.has(n))return;o.add(n),t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()));for(let e of n.members)l(e)}else a||e.kind!==`any`?s.add(e):t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()))}for(let e of n)l(e);return[s,c]}e.setOperationMembersRecursively=l;function u(e,r){let i=new t.EqualityMap;for(let a of e){let e=new Set(l(a,void 0)[0]);if(r!==void 0&&!r(e))continue;let o=i.get(e);o===void 0&&(o=new Set,e.size===1&&o.add((0,n.defined)((0,t.iterableFirst)(e)))),o.add(a),i.set(e,o)}return Array.from(i.values()).map(e=>Array.from(e))}e.makeGroupsToFlatten=u;function d(e,t){return(0,r.combineTypeAttributes)(e,Array.from(t).map(e=>e.getAttributes()))}e.combineTypeAttributesOfTypes=d;function f(e){return e.kind===`any`||e.kind===`null`}e.isAnyOrNull=f;function p(e,n=!1){function r(e){return n===!1?e:n===!0?(0,t.setSortBy)(e,e=>e.kind):(0,t.setSortBy)(e,n)}let i=e.findMember(`null`);return i===void 0?[null,r(e.members)]:[i,r((0,t.setFilter)(e.members,e=>e.kind!==`null`))]}e.removeNullFromUnion=p;function m(e){return e.kind===`null`?[e,new Set]:e instanceof i.UnionType?p(e):[null,new Set([e])]}e.removeNullFromType=m;function h(e){let[r,i]=p(e);return r===null||i.size!==1?null:(0,n.defined)((0,t.iterableFirst)(i))}e.nullableFromUnion=h;function g(e){return m(e)[1]}e.nonNullTypeCases=g;function _(e){let[t,n]=m(e.type);return e.isOptional?[!0,n]:[t!==null,n]}e.getNullAsOptional=_;function v(e){return[`class`,`union`,`enum`,`object`].indexOf(e.kind)>=0}e.isNamedType=v;function y(e){return{objects:(0,t.setFilter)(e,e=>e.kind===`object`||e.kind===`class`),enums:(0,t.setFilter)(e,e=>e instanceof i.EnumType),unions:(0,t.setFilter)(e,e=>e instanceof i.UnionType)}}e.separateNamedTypes=y;function b(e,n){let r=n(e);return r===null?(0,t.setUnion)(...Array.from(e.getNonAttributeChildren()).map(e=>b(e,n))):r}e.directlyReachableTypes=b;function x(e){let r=b(e,e=>!(e instanceof i.UnionType)&&v(e)||e instanceof i.UnionType&&h(e)===null?new Set([e]):null);return(0,n.assert)(r.size<=1,`Cannot have more than one defined type per top-level`),(0,t.iterableFirst)(r)}e.directlyReachableSingleNamedType=x;function S(e){(0,n.assert)(e.kind===`string`,`Only strings can have string types`);let t=o.stringTypesTypeAttributeKind.tryGetInAttributes(e.getAttributes());return t===void 0?(0,n.panic)(`All strings must have a string type attribute`):t}e.stringTypesForType=S;function C(e,t,r,a,o,s,c,l,u,d,f,p,m,h,g){if(e.isPrimitive()){if((0,i.isPrimitiveStringTypeKind)(e.kind))return e.kind===`string`?l(e):g(e);let u=e.kind,d={none:t,any:r,null:a,bool:o,integer:s,double:c}[u];return d===void 0?(0,n.assertNever)(d):d(e)}else if(e instanceof i.ArrayType)return u(e);else if(e instanceof i.ClassType)return d(e);else if(e instanceof i.MapType)return f(e);else if(e instanceof i.ObjectType)return p(e);else if(e instanceof i.EnumType)return m(e);else if(e instanceof i.UnionType)return h(e);return(0,n.panic)(`Unknown type ${e.kind}`)}e.matchTypeExhaustive=C;function w(e,t,r,i,a,o,s,c,l,u,d,f,p){function m(e){return(0,n.panic)(`Unsupported type ${e.kind} in non-exhaustive match`)}return C(e,m,t,r,i,a,o,s,c,l,u,m,d,f,p||m)}e.matchType=w;function T(e,t,n,r,i,a){function o(e){}return C(e,o,o,o,o,o,o,o,t,n,r,i,o,a,o)}e.matchCompoundType=T})),ga=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphRewriteBuilder=e.GraphRemapBuilder=e.BaseGraphRewriteBuilder=e.TypeReconstituter=void 0;var t=a(),n=ha(),r=va(),i=na(),o=Q(),s=pa(),c=class{constructor(e,t,n,r,i){this._typeBuilder=e,this._makeClassUnique=t,this._typeAttributes=n,this._forwardingRef=r,this._register=i,this._wasUsed=!1,this._typeRef=void 0}builderForNewType(){return(0,o.assert)(!this._wasUsed,`TypeReconstituter used more than once`),this._wasUsed=!0,this._typeBuilder}builderForSetting(){return(0,o.assert)(this._wasUsed&&this._typeRef!==void 0,`Can't set type members before constructing a type`),this._typeBuilder}getResult(){return this._typeRef===void 0?(0,o.panic)(`Type was not reconstituted`):this._typeRef}register(e){(0,o.assert)(this._typeRef===void 0,`Cannot register a type twice`),this._typeRef=e,this._register(e)}registerAndAddAttributes(e){this._typeBuilder.addAttributes(e,this._typeAttributes),this.register(e)}lookup(e){if((0,o.assert)(!this._wasUsed,`Cannot lookup constituents after building type`),(0,r.isTypeRef)(e))return this._typeBuilder.lookupTypeRefs([e],void 0,!1);{let t=Array.from(e).map(e=>this._typeBuilder.lookupTypeRefs([e],void 0,!1));return t.some(e=>e===void 0)?void 0:t}}lookupMap(e){let t=this.lookup(e.values());if(t===void 0)return;(0,o.assert)(t.length===e.size,`Didn't get back the correct number of types`);let n=new Map,r=0;for(let i of e.keys())n.set(i,t[r]),r+=1;return n}reconstitute(e){return(0,o.assert)(this._wasUsed,`Cannot reconstitute constituents before building type`),(0,r.isTypeRef)(e)?this._typeBuilder.reconstituteTypeRef(e):Array.from(e).map(e=>this._typeBuilder.reconstituteTypeRef(e))}reconstituteMap(e){return(0,t.mapMap)(e,e=>this._typeBuilder.reconstituteTypeRef(e))}getPrimitiveType(e){this.register(this.builderForNewType().getPrimitiveType(e,this._typeAttributes,this._forwardingRef))}getEnumType(e){this.register(this.builderForNewType().getEnumType(this._typeAttributes,e,this._forwardingRef))}getUniqueMapType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueMapType(this._forwardingRef))}getMapType(e){this.register(this.builderForNewType().getMapType(this._typeAttributes,e,this._forwardingRef))}getUniqueArrayType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueArrayType(this._forwardingRef))}getArrayType(e){this.register(this.builderForNewType().getArrayType(this._typeAttributes,e,this._forwardingRef))}setArrayItems(e){this.builderForSetting().setArrayItems(this.getResult(),e)}makeClassProperty(e,t){return this._typeBuilder.makeClassProperty(e,t)}getObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getUniqueObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getClassType(e){if(this._makeClassUnique){this.getUniqueClassType(!1,e);return}this.register(this.builderForNewType().getClassType(this._typeAttributes,e,this._forwardingRef))}getUniqueClassType(e,t){this.register(this.builderForNewType().getUniqueClassType(this._typeAttributes,e,t,this._forwardingRef))}setObjectProperties(e,t){this.builderForSetting().setObjectProperties(this.getResult(),e,t)}getUnionType(e){this.register(this.builderForNewType().getUnionType(this._typeAttributes,e,this._forwardingRef))}getUniqueUnionType(){this.register(this.builderForNewType().getUniqueUnionType(this._typeAttributes,void 0,this._forwardingRef))}getIntersectionType(e){this.register(this.builderForNewType().getIntersectionType(this._typeAttributes,e,this._forwardingRef))}getUniqueIntersectionType(e){this.register(this.builderForNewType().getUniqueIntersectionType(this._typeAttributes,e,this._forwardingRef))}setSetOperationMembers(e){this.builderForSetting().setSetOperationMembers(this.getResult(),e)}};e.TypeReconstituter=c;var l=class extends s.TypeBuilder{constructor(e,t,n,r,i){super(e.serial+1,t,n,!1,!1,r),this.originalGraph=e,this.debugPrint=i,this.reconstitutedTypes=new Map,this._lostTypeAttributes=!1,this._printIndent=0}withForwardingRef(e,t){if(e!==void 0)return t(e);let n=this.reserveTypeRef(),r=t(n);return(0,o.assert)(r===n,`Type creator didn't return its forwarding ref`),r}reconstituteType(e,t,n){return this.reconstituteTypeRef(e.typeRef,t,n)}reconstituteTypeRef(e,t,n){let r=this.lookupTypeRefs([e],n);return r===void 0?this.forceReconstituteTypeRef(e,t,n):(t!==void 0&&this.addAttributes(r,t),r)}reconstituteTypeAttributes(e){return(0,t.mapMap)(e,(e,t)=>t.reconstitute(this,e))}assertTypeRefsToReconstitute(e,t){(0,o.assert)(e.length>0,`Must have at least one type to reconstitute`);for(let t of e)(0,r.assertTypeRefGraph)(t,this.originalGraph);t!==void 0&&(0,r.assertTypeRefGraph)(t,this.typeGraph)}changeDebugPrintIndent(e){this._printIndent+=e}get debugPrintIndentation(){return(0,o.indentationString)(this._printIndent)}finish(){for(let[e,t]of this.originalGraph.topLevels)this.addTopLevel(e,this.reconstituteType(t));return super.finish()}setLostTypeAttributes(){this._lostTypeAttributes=!0}get lostTypeAttributes(){return this._lostTypeAttributes}};e.BaseGraphRewriteBuilder=l,e.GraphRemapBuilder=class extends l{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._map=i,this._attributeSources=new Map;for(let[e,t]of i){let n=this._attributeSources.get(t);n===void 0&&(n=[t],this._attributeSources.set(t,n)),n.push(e)}}makeIdentity(e){}getMapTarget(e){let t=this._map.get((0,r.derefTypeRef)(e,this.originalGraph));return t===void 0?e:((0,o.assert)(this._map.get(t)===void 0,`We have a type that's remapped to a remapped type`),t.typeRef)}addForwardingIntersection(e,t){return(0,o.panic)(`We can't add forwarding intersections when we're removing forwarding intersections`)}lookupTypeRefs(e,t){(0,o.assert)(t===void 0,`We can't have a forwarding ref when we remap`),this.assertTypeRefsToReconstitute(e,t);let n=this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[0])));if(n!==void 0){for(let t=1;t<e.length;t++)if(n!==this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[t]))))return;return n}}forceReconstituteTypeRef(e,t,a){e=this.getMapTarget(e);let s=(0,r.typeRefIndex)(e);return(0,o.assert)(this.reconstitutedTypes.get(s)===void 0,`Type has already been reconstituted`),(0,o.assert)(a===void 0,`We can't have a forwarding ref when we remap`),this.withForwardingRef(void 0,a=>{this.reconstitutedTypes.set(s,a),this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${s} as ${(0,r.typeRefIndex)(a)}`),this.changeDebugPrintIndent(1));let[l,u]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),d=this._attributeSources.get(l);t===void 0&&(t=i.emptyTypeAttributes),t=d===void 0?(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(u)):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes((0,n.combineTypeAttributesOfTypes)(`union`,d)));let f=t,p=new c(this,this.canonicalOrder,f,a,e=>{(0,o.assert)(e===a,`Reconstituted type as a different ref`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${s} as ${(0,r.typeRefIndex)(e)}`))});return l.reconstitute(p,this.canonicalOrder),p.getResult()})}},e.GraphRewriteBuilder=class extends l{constructor(e,n,r,i,a,s,c){super(e,n,r,i,s),this._replacer=c,this._reconstitutedUnions=new t.EqualityMap,this._setsToReplaceByMember=new Map;for(let e of a){let t=new Set(e);for(let e of t){let n=e.index;(0,o.assert)(!this._setsToReplaceByMember.has(n),`A type is member of more than one set to be replaced`),this._setsToReplaceByMember.set(n,t)}}}registerUnion(e,t){let n=new Set(e);(0,o.assert)(!this._reconstitutedUnions.has(n),`Cannot register reconstituted set twice`),this._reconstitutedUnions.set(n,t)}replaceSet(e,t){return this.withForwardingRef(t,t=>{this.debugPrint&&(console.log(`${this.debugPrintIndentation}replacing set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`),this.changeDebugPrintIndent(1));for(let n of e){let e=n.typeRef,i=(0,r.typeRefIndex)(e);this.reconstitutedTypes.set(i,t),this._setsToReplaceByMember.delete(i)}let n=this._replacer(e,this,t);return(0,o.assert)(n===t,`The forwarding ref got lost when replacing`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}replaced set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`)),n})}forceReconstituteTypeRef(e,t,n){let[a,s]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),l=(0,r.typeRefIndex)(e);this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${l}`),this.changeDebugPrintIndent(1)),t=t===void 0?this.reconstituteTypeAttributes(s):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(s));let u=new c(this,this.canonicalOrder,t,n,e=>{this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${l} as ${(0,r.typeRefIndex)(e)}`)),n!==void 0&&(0,o.assert)(e===n,`We didn't pass the forwarding ref`);let t=this.reconstitutedTypes.get(l);t===void 0?this.reconstitutedTypes.set(l,e):(0,o.assert)(e===t,`We reconstituted a type twice differently`)});return a.reconstitute(u,this.canonicalOrder),u.getResult()}lookupTypeRefs(e,t,n=!0){this.assertTypeRefsToReconstitute(e,t);let i=this.reconstitutedTypes.get((0,r.typeRefIndex)(e[0]));if(i!==void 0&&i!==t){let n=!0;for(let t=1;t<e.length;t++)if(this.reconstitutedTypes.get((0,r.typeRefIndex)(e[t]))!==i){n=!1;break}if(n)return this.forwardIfNecessary(t,i)}if(i=this._reconstitutedUnions.get(new Set(e)),i!==void 0&&i!==t)return this.forwardIfNecessary(t,i);let a=this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[0]));if(a!==void 0){for(let t=1;t<e.length;t++)if(this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[t]))!==a)return;if(n)return this.replaceSet(a,t)}}}})),_a=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Graph=void 0;var t=a(),n=Q();function r(e){if(e.length===0)return 0;let t=-1,r=0;for(let i of e){(0,n.assert)(i.length>0,`Empty component not allowed`);for(let e of i)(0,n.assert)(e>=0,`Negative vertex index is invalid`),t=Math.max(t,e),r+=1}return(0,n.assert)(t+1===r,`Vertex indexes and count don't match up`),r}function i(e){let t=0,i=[],a=e.length,o=(0,n.repeated)(a,-1),s=(0,n.repeated)(a,-1),c=(0,n.repeated)(a,!1),l=[];function u(r){o[r]=t,s[r]=t,t+=1,i.push(r),c[r]=!0;for(let t of e[r])o[t]<0?(u(t),s[r]=Math.min(s[r],s[t])):c[t]&&(s[r]=Math.min(s[r],o[t]));if(s[r]===o[r]){let e=[],t;do t=(0,n.defined)(i.pop()),c[t]=!1,e.push(t);while(t!==r);l.push(e)}}for(let e=0;e<a;e++)o[e]<0&&u(e);return(0,n.assert)(r(l)===a,`We didn't put all the nodes into SCCs`),l}function o(e,t){let i=t.length,a=e.length;(0,n.assert)(a===r(t),`Components don't match up with graph`);let o=(0,n.repeated)(a,-1);for(let e=0;e<i;e++)for(let r of t[e])(0,n.assert)(o[r]<0,`We have a node that's in two components`),o[r]=e;return o}function s(e,t){let r=t.length,i=o(e,t),a=(0,n.repeated)(r,!1),s=[];for(let o=0;o<r;o++){let r=[];for(let n of t[o])for(let t of e[n]){let e=i[t];e===o||a[e]||(r.push(e),a[e]=!0)}for(let e of r)(0,n.assert)(a[e]),a[e]=!1;s.push(r)}return s}function c(e){let t=e.length,r=(0,n.repeatedCall)(t,()=>[]);for(let n=0;n<t;n++)for(let t of e[n])r[t].push(n);return r}function l(e){let t=e.length,r=(0,n.repeated)(t,0);for(let t of e)for(let e of t)r[e]+=1;return r}function u(e){let t=e.length,n=l(e),r=[];for(let e=0;e<t;e++)n[e]===0&&r.push(e);return r}e.Graph=class e{constructor(e,t,r){this._nodes=Array.from(e),this._indexByNode=new Map(this._nodes.map((e,t)=>[e,t]));let i;i=Array.isArray(r)?r:this._nodes.map(e=>Array.from(r(e)).map(e=>(0,n.defined)(this._indexByNode.get(e)))),t&&(i=c(i)),this._successors=i}get size(){return this._nodes.length}get nodes(){return this._nodes}findRoots(){let e=u(this._successors);return new Set(e.map(e=>this._nodes[e]))}dfsTraversal(e,t,r){let i=(0,n.repeated)(this.size,!1),a=e=>{if(!i[e]){i[e]=!0,t&&r(this._nodes[e]);for(let t of this._successors[e])a(t);t||r(this._nodes[e])}};a((0,n.defined)(this._indexByNode.get(e)))}stronglyConnectedComponents(){let n=i(this._successors),r=s(this._successors,n);return new e(n.map(e=>(0,t.setMap)(e,e=>this._nodes[e])),!1,r)}makeDot(e,t){let n=[];n.push(`digraph G {`),n.push(` ordering = out;`),n.push(``);for(let r=0;r<this.size;r++){let i=this._nodes[r];e(i)&&n.push(` node${r} [label="${t(i)}"];`)}for(let t=0;t<this.size;t++)if(e(this._nodes[t]))for(let r of this._successors[t])e(this._nodes[r])&&n.push(` node${t} -> node${r};`);return n.push(`}`),n.push(``),n.join(`
116
+ `)}}})),va=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.removeIndirectionIntersections=e.optionalToNullable=e.noneToAny=e.TypeGraph=e.TypeAttributeStoreView=e.TypeAttributeStore=e.typeAndAttributesForTypeRef=e.attributesForTypeRef=e.derefTypeRef=e.assertTypeRefGraph=e.typeRefIndex=e.makeTypeRef=e.isTypeRef=void 0;var t=a(),n=wa(),r=ha(),i=Q(),o=pa(),s=ga(),c=fa(),l=_a(),u=na(),d=C(),f=26,p=(1<<f)-1,m=(1<<31-f)-1;function h(e){return typeof e==`number`}e.isTypeRef=h;function g(e,t){return(0,i.assert)(t<=p,`Too many types in graph`),(e.serial&m)<<f|t}e.makeTypeRef=g;function _(e){return e&p}e.typeRefIndex=_;function v(e,t){(0,i.assert)((e>>f&m)===(t.serial&m),`Mixing the wrong type reference and graph`)}e.assertTypeRefGraph=v;function y(e){return e instanceof E?e:e.originalGraph}function b(e,t){let n=y(t);return v(e,n),n.typeAtIndex(_(e))}e.derefTypeRef=b;function x(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))[1]}e.attributesForTypeRef=x;function S(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))}e.typeAndAttributesForTypeRef=S;var w=class{constructor(e,t){this._typeGraph=e,this._values=t,this._topLevelValues=new Map}getTypeIndex(e){let t=e.typeRef;return v(t,this._typeGraph),_(t)}attributesForType(e){let t=this.getTypeIndex(e),n=this._values[t];return n===void 0?u.emptyTypeAttributes:n}attributesForTopLevel(e){let t=this._topLevelValues.get(e);return t===void 0?u.emptyTypeAttributes:t}setInMap(e,t,n){return new Map(e).set(t,n)}set(e,t,n){let r=this.getTypeIndex(t);for(;r>=this._values.length;)this._values.push(void 0);this._values[r]=this.setInMap(this.attributesForType(t),e,n)}setForTopLevel(e,t,n){this._topLevelValues.set(t,this.setInMap(this.attributesForTopLevel(t),e,n))}tryGetInMap(e,t){return e.get(t)}tryGet(e,t){return this.tryGetInMap(this.attributesForType(t),e)}tryGetForTopLevel(e,t){return this.tryGetInMap(this.attributesForTopLevel(t),e)}};e.TypeAttributeStore=w;var T=class{constructor(e,t){this._attributeStore=e,this._definition=t}set(e,t){this._attributeStore.set(this._definition,e,t)}setForTopLevel(e,t){this._attributeStore.setForTopLevel(this._definition,e,t)}tryGet(e){return this._attributeStore.tryGet(this._definition,e)}get(e){return(0,i.defined)(this.tryGet(e))}tryGetForTopLevel(e){return this._attributeStore.tryGetForTopLevel(this._definition,e)}getForTopLevel(e){return(0,i.defined)(this.tryGetForTopLevel(e))}};e.TypeAttributeStoreView=T;var E=class{constructor(e,t,n){this.serial=t,this._haveProvenanceAttributes=n,this._attributeStore=void 0,this._topLevels=new Map,this._parents=void 0,this._printOnRewrite=!1,this._typeBuilder=e}get isFrozen(){return this._typeBuilder===void 0}get attributeStore(){return(0,i.defined)(this._attributeStore)}freeze(e,n,r){(0,i.assert)(!this.isFrozen,`Tried to freeze TypeGraph a second time`);for(let e of n)v(e.typeRef,this);this._attributeStore=new w(this,r),this._types=n,this._typeBuilder=void 0,this._topLevels=(0,t.mapMap)(e,e=>b(e,this))}get topLevels(){return(0,i.assert)(this.isFrozen,`Cannot get top-levels from a non-frozen graph`),this._topLevels}typeAtIndex(e){return this._typeBuilder===void 0?(0,i.defined)(this._types)[e]:this._typeBuilder.typeAtIndex(e)}atIndex(e){if(this._typeBuilder!==void 0)return this._typeBuilder.atIndex(e);let t=this.typeAtIndex(e);return[t,(0,i.defined)(this._attributeStore).attributesForType(t)]}filterTypes(e){let t=new Set,n=[];function r(i){if(!t.has(i)){t.add(i),(e===void 0||e(i))&&n.push(i);for(let e of i.getChildren())r(e)}}for(let[,e]of this.topLevels)r(e);return new Set(n)}allNamedTypes(){return this.filterTypes(r.isNamedType)}allNamedTypesSeparated(){let e=this.allNamedTypes();return(0,r.separateNamedTypes)(e)}allProvenance(){(0,i.assert)(this._haveProvenanceAttributes);let e=new T(this.attributeStore,o.provenanceTypeAttributeKind),n=Array.from(this.allTypesUnordered()).map(t=>{let n=e.tryGet(t);return n===void 0?new Set:n}),r=new Set;return(0,t.setUnionManyInto)(r,n),r}setPrintOnRewrite(){this._printOnRewrite=!0}checkLostTypeAttributes(e,n){if(!this._haveProvenanceAttributes||e.lostTypeAttributes)return;let r=this.allProvenance(),i=n.allProvenance();if(r.size!==i.size){let e=(0,t.setSubtract)(r,i),n=Array.from(e);return(0,d.messageError)(`IRTypeAttributesNotPropagated`,{count:e.size,indexes:n})}}printRewrite(e){this._printOnRewrite&&console.log(`\n# ${e}`)}rewrite(e,t,n,r,i,a,o=!1){if(this.printRewrite(e),!o&&r.length===0)return this;let c=new s.GraphRewriteBuilder(this,t,n,this._haveProvenanceAttributes,r,i,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),c.didAddForwardingIntersection?k(l,t,i):l}remap(e,t,n,r,a,o=!1){if(this.printRewrite(e),!o&&r.size===0)return this;let c=new s.GraphRemapBuilder(this,t,n,this._haveProvenanceAttributes,r,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),(0,i.assert)(!c.didAddForwardingIntersection),l}garbageCollect(e,t){return this.remap(`GC`,(0,o.getNoStringTypeMapping)(),e,new Map,t,!0)}rewriteFixedPoint(e,t){let n=this;for(;;){let r=this.rewrite(`fixed-point`,(0,o.getNoStringTypeMapping)(),e,[],t,i.mustNotHappen,!0);if(n.allTypesUnordered().size===r.allTypesUnordered().size)return n;n=r}}allTypesUnordered(){return(0,i.assert)(this.isFrozen,`Tried to get all graph types before it was frozen`),new Set((0,i.defined)(this._types))}makeGraph(e,t){return new l.Graph((0,i.defined)(this._types),e,t)}getParentsOfType(e){if(v(e.typeRef,this),this._parents===void 0){let e=(0,i.defined)(this._types).map(e=>new Set);for(let t of this.allTypesUnordered())for(let n of t.getChildren()){let r=n.index;e[r]=e[r].add(t)}this._parents=e}return this._parents[e.index]}printGraph(){let e=(0,i.defined)(this._types);for(let t=0;t<e.length;t++){let n=e[t],r=[];r.push(`${n.debugPrintKind}${n.hasNames?` ${n.getCombinedName()}`:``}`);let i=n.getChildren();i.size>0&&r.push(`children ${Array.from(i).map(e=>e.index).join(`,`)}`);for(let[e,t]of n.getAttributes()){let n=e.stringify(t);n!==void 0&&r.push(n)}console.log(`${t}: ${r.join(` | `)}`)}}};e.TypeGraph=E;function D(e,n,a){let o=(0,t.setFilter)(e.allTypesUnordered(),e=>e.kind===`none`);return o.size===0?e:((0,i.assert)(o.size===1,`Cannot have more than one none type`),e.rewrite(`none to any`,n,!1,[Array.from(o)],a,(e,t,n)=>{let i=(0,r.combineTypeAttributesOfTypes)(`union`,e);return t.getPrimitiveType(`any`,i,n)}))}e.noneToAny=D;function O(e,r,a){function o(e,r,i){let a=(0,t.mapMap)(e.getProperties(),(e,i)=>{let a=e.type,o;if(!e.isOptional||a.isNullable)o=r.reconstituteType(a);else{let e=r.getPrimitiveType(`null`),s;s=a instanceof n.UnionType?(0,t.setMap)(a.members,e=>r.reconstituteType(e)).add(e):new Set([r.reconstituteType(a),e]);let l=c.namesTypeAttributeKind.setDefaultInAttributes(a.getAttributes(),()=>c.TypeNames.make(new Set([i]),new Set,!0));o=r.getUnionType(l,s)}return r.makeClassProperty(o,e.isOptional)});return e.isFixed?r.getUniqueClassType(e.getAttributes(),!0,a,i):r.getClassType(e.getAttributes(),a,i)}let s=(0,t.setFilter)(e.allTypesUnordered(),e=>e instanceof n.ClassType&&(0,t.mapSome)(e.getProperties(),e=>e.isOptional)),l=Array.from(s).map(e=>[e]);return s.size===0?e:e.rewrite(`optional to nullable`,r,!1,l,a,(e,n,r)=>((0,i.assert)(e.size===1),o((0,i.defined)((0,t.iterableFirst)(e)),n,r)))}e.optionalToNullable=O;function k(e,r,a){let o=[];for(let r of e.allTypesUnordered()){if(!(r instanceof n.IntersectionType))continue;let e=new Set([r]),a=r;for(;a.members.size===1;){let s=(0,i.defined)((0,t.iterableFirst)(a.members));if(!(s instanceof n.IntersectionType)){o.push([r,s]);break}if(e.has(s))return(0,i.panic)(`There's a cycle of intersection types`);e.add(s),a=s}}return e.remap(`remove indirection intersections`,r,!1,new Map(o),a)}e.removeIndirectionIntersections=k})),ya=i(((e,t)=>{(function(n){var r=typeof e==`object`&&e&&!e.nodeType&&e,i=typeof t==`object`&&t&&!t.nodeType&&t,a=typeof global==`object`&&global;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,c=36,l=1,u=26,d=38,f=700,p=72,m=128,h=`-`,g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},b=c-l,x=Math.floor,S=String.fromCharCode,C;function w(e){throw RangeError(y[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(v,`.`);var i=T(e.split(`.`),t).join(`.`);return r+i}function D(e){for(var t=[],n=0,r=e.length,i,a;n<r;)i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<r?(a=e.charCodeAt(n++),(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)):t.push(i);return t}function O(e){return T(e,function(e){var t=``;return e>65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|e&1023),t+=S(e),t}).join(``)}function k(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function j(e,t,n){var r=0;for(e=n?x(e/f):e>>1,e+=x(e/t);e>b*u>>1;r+=c)e=x(e/b);return x(r+(b+1)*e/(e+d))}function M(e){var t=[],n=e.length,r,i=0,a=m,o=p,d=e.lastIndexOf(h),f,g,_,v,y,b,S,C;for(d<0&&(d=0),f=0;f<d;++f)e.charCodeAt(f)>=128&&w(`not-basic`),t.push(e.charCodeAt(f));for(g=d>0?d+1:0;g<n;){for(_=i,v=1,y=c;g>=n&&w(`invalid-input`),b=k(e.charCodeAt(g++)),(b>=c||b>x((s-i)/v))&&w(`overflow`),i+=b*v,S=y<=o?l:y>=o+u?u:y-o,!(b<S);y+=c)C=c-S,v>x(s/C)&&w(`overflow`),v*=C;r=t.length+1,o=j(i-_,r,_==0),x(i/r)>s-a&&w(`overflow`),a+=x(i/r),i%=r,t.splice(i++,0,a)}return O(t)}function N(e){var t,n,r,i,a,o,d,f,g,_,v,y=[],b,C,T,E;for(e=D(e),b=e.length,t=m,n=0,a=p,o=0;o<b;++o)v=e[o],v<128&&y.push(S(v));for(r=i=y.length,i&&y.push(h);r<b;){for(d=s,o=0;o<b;++o)v=e[o],v>=t&&v<d&&(d=v);for(C=r+1,d-t>x((s-n)/C)&&w(`overflow`),n+=(d-t)*C,t=d,o=0;o<b;++o)if(v=e[o],v<t&&++n>s&&w(`overflow`),v==t){for(f=n,g=c;_=g<=a?l:g>=a+u?u:g-a,!(f<_);g+=c)E=f-_,T=c-_,y.push(S(A(_+E%T,0))),f=x(E/T);y.push(S(A(f,0))),a=j(n,C,r==i),n=0,++r}++n,++t}return y.join(``)}function P(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function ee(e){return E(e,function(e){return _.test(e)?`xn--`+N(e):e})}if(o={version:`1.3.2`,ucs2:{decode:D,encode:O},decode:M,encode:N,toASCII:ee,toUnicode:P},typeof define==`function`&&typeof define.amd==`object`&&define.amd)define(`punycode`,function(){return o});else if(r&&i)if(t.exports==r)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(r[C]=o[C]);else n.punycode=o})(e)})),ba=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.IPv6=n(e)})(e,function(e){var t=e&&e.IPv6;function n(e){var t=e.toLowerCase().split(`:`),n=t.length,r=8;t[0]===``&&t[1]===``&&t[2]===``?(t.shift(),t.shift()):t[0]===``&&t[1]===``?t.shift():t[n-1]===``&&t[n-2]===``&&t.pop(),n=t.length,t[n-1].indexOf(`.`)!==-1&&(r=7);var i;for(i=0;i<n&&t[i]!==``;i++);if(i<r)for(t.splice(i,1,`0000`);t.length<r;)t.splice(i,0,`0000`);for(var a,o=0;o<r;o++){a=t[o].split(``);for(var s=0;s<3&&a[0]===`0`&&a.length>1;s++)a.splice(0,1);t[o]=a.join(``)}var c=-1,l=0,u=0,d=-1,f=!1;for(o=0;o<r;o++)f?t[o]===`0`?u+=1:(f=!1,u>l&&(c=d,l=u)):t[o]===`0`&&(f=!0,d=o,u=1);u>l&&(c=d,l=u),l>1&&t.splice(c,l,``),n=t.length;var p=``;for(t[0]===``&&(p=`:`),o=0;o<n&&(p+=t[o],o!==n-1);o++)p+=`:`;return t[n-1]===``&&(p+=`:`),p}function r(){return e.IPv6===this&&(e.IPv6=t),this}return{best:n,noConflict:r}})})),xa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.SecondLevelDomains=n(e)})(e,function(e){var t=e&&e.SecondLevelDomains,n={list:{ac:` com gov mil net org `,ae:` ac co gov mil name net org pro sch `,af:` com edu gov net org `,al:` com edu gov mil net org `,ao:` co ed gv it og pb `,ar:` com edu gob gov int mil net org tur `,at:` ac co gv or `,au:` asn com csiro edu gov id net org `,ba:` co com edu gov mil net org rs unbi unmo unsa untz unze `,bb:` biz co com edu gov info net org store tv `,bh:` biz cc com edu gov info net org `,bn:` com edu gov net org `,bo:` com edu gob gov int mil net org tv `,br:` adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg `,bs:` com edu gov net org `,bz:` du et om ov rg `,ca:` ab bc mb nb nf nl ns nt nu on pe qc sk yk `,ck:` biz co edu gen gov info net org `,cn:` ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj `,co:` com edu gov mil net nom org `,cr:` ac c co ed fi go or sa `,cy:` ac biz com ekloges gov ltd name net org parliament press pro tm `,do:` art com edu gob gov mil net org sld web `,dz:` art asso com edu gov net org pol `,ec:` com edu fin gov info med mil net org pro `,eg:` com edu eun gov mil name net org sci `,er:` com edu gov ind mil net org rochest w `,es:` com edu gob nom org `,et:` biz com edu gov info name net org `,fj:` ac biz com info mil name net org pro `,fk:` ac co gov net nom org `,fr:` asso com f gouv nom prd presse tm `,gg:` co net org `,gh:` com edu gov mil org `,gn:` ac com gov net org `,gr:` com edu gov mil net org `,gt:` com edu gob ind mil net org `,gu:` com edu gov net org `,hk:` com edu gov idv net org `,hu:` 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video `,id:` ac co go mil net or sch web `,il:` ac co gov idf k12 muni net org `,in:` ac co edu ernet firm gen gov i ind mil net nic org res `,iq:` com edu gov i mil net org `,ir:` ac co dnssec gov i id net org sch `,it:` edu gov `,je:` co net org `,jo:` com edu gov mil name net org sch `,jp:` ac ad co ed go gr lg ne or `,ke:` ac co go info me mobi ne or sc `,kh:` com edu gov mil net org per `,ki:` biz com de edu gov info mob net org tel `,km:` asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire `,kn:` edu gov net org `,kr:` ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan `,kw:` com edu gov net org `,ky:` com edu gov net org `,kz:` com edu gov mil net org `,lb:` com edu gov net org `,lk:` assn com edu gov grp hotel int ltd net ngo org sch soc web `,lr:` com edu gov net org `,lv:` asn com conf edu gov id mil net org `,ly:` com edu gov id med net org plc sch `,ma:` ac co gov m net org press `,mc:` asso tm `,me:` ac co edu gov its net org priv `,mg:` com edu gov mil nom org prd tm `,mk:` com edu gov inf name net org pro `,ml:` com edu gov net org presse `,mn:` edu gov org `,mo:` com edu gov net org `,mt:` com edu gov net org `,mv:` aero biz com coop edu gov info int mil museum name net org pro `,mw:` ac co com coop edu gov int museum net org `,mx:` com edu gob net org `,my:` com edu gov mil name net org sch `,nf:` arts com firm info net other per rec store web `,ng:` biz com edu gov mil mobi name net org sch `,ni:` ac co com edu gob mil net nom org `,np:` com edu gov mil net org `,nr:` biz com edu gov info net org `,om:` ac biz co com edu gov med mil museum net org pro sch `,pe:` com edu gob mil net nom org sld `,ph:` com edu gov i mil net ngo org `,pk:` biz com edu fam gob gok gon gop gos gov net org web `,pl:` art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora `,pr:` ac biz com edu est gov info isla name net org pro prof `,ps:` com edu gov net org plo sec `,pw:` belau co ed go ne or `,ro:` arts com firm info nom nt org rec store tm www `,rs:` ac co edu gov in org `,sb:` com edu gov net org `,sc:` com edu gov net org `,sh:` co com edu gov net nom org `,sl:` com edu gov net org `,st:` co com consulado edu embaixada gov mil net org principe saotome store `,sv:` com edu gob org red `,sz:` ac co org `,tr:` av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web `,tt:` aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel `,tw:` club com ebiz edu game gov idv mil net org `,mu:` ac co com gov net or org `,mz:` ac co edu gov org `,na:` co com `,nz:` ac co cri geek gen govt health iwi maori mil net org parliament school `,pa:` abo ac com edu gob ing med net nom org sld `,pt:` com edu gov int net nome org publ `,py:` com edu gov mil net org `,qa:` com edu gov mil net org `,re:` asso com nom `,ru:` ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk `,rw:` ac co com edu gouv gov int mil net `,sa:` com edu gov med net org pub sch `,sd:` com edu gov info med net org tv `,se:` a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z `,sg:` com edu gov idn net org per `,sn:` art com edu gouv org perso univ `,sy:` com edu gov mil net news org `,th:` ac co go in mi net or `,tj:` ac biz co com edu go gov info int mil name net nic org test web `,tn:` agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism `,tz:` ac co go ne or `,ua:` biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt `,ug:` ac co go ne or org sc `,uk:` ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc `,us:` dni fed isa kids nsn `,uy:` com edu gub mil net org `,ve:` co com edu gob info mil net org web `,vi:` co com k12 net org `,vn:` ac biz com edu gov health info int name net org pro `,ye:` co com gov ltd me net org plc `,yu:` ac co edu gov org `,za:` ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web `,zm:` ac co com edu gov net org sch `,com:`ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za `,net:`gb jp se uk `,org:`ae`,de:`com `},has:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return i?i.indexOf(` `+e.slice(r+1,t)+` `)>=0:!1},is:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1||e.lastIndexOf(`.`,t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return r?r.indexOf(` `+e.slice(0,t)+` `)>=0:!1},get:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return!i||i.indexOf(` `+e.slice(r+1,t)+` `)<0?null:e.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})})),Sa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(ya(),ba(),xa()):typeof define==`function`&&define.amd?define([`./punycode`,`./IPv6`,`./SecondLevelDomains`],n):e.URI=n(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(e,function(e,t,n,r){var i=r&&r.URI;function a(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof a))return n?r?new a(e,t):new a(e):new a;if(e===void 0){if(n)throw TypeError(`undefined is not a valid argument for URI`);e=typeof location<`u`?location.href+``:``}if(e===null&&n)throw TypeError(`null is not a valid argument for URI`);return this.href(e),t===void 0?this:this.absoluteTo(t)}function o(e){return/^[0-9]+$/.test(e)}a.version=`1.19.11`;var s=a.prototype,c=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,`\\$1`)}function u(e){return e===void 0?`Undefined`:String(Object.prototype.toString.call(e)).slice(8,-1)}function d(e){return u(e)===`Array`}function f(e,t){var n={},r,i;if(u(t)===`RegExp`)n=null;else if(d(t))for(r=0,i=t.length;r<i;r++)n[t[r]]=!0;else n[t]=!0;for(r=0,i=e.length;r<i;r++)(n&&n[e[r]]!==void 0||!n&&t.test(e[r]))&&(e.splice(r,1),i--,r--);return e}function p(e,t){var n,r;if(d(t)){for(n=0,r=t.length;n<r;n++)if(!p(e,t[n]))return!1;return!0}var i=u(t);for(n=0,r=e.length;n<r;n++)if(i===`RegExp`){if(typeof e[n]==`string`&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function m(e,t){if(!d(e)||!d(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,``)}a._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:a.preventInvalidHostname,duplicateQueryParameters:a.duplicateQueryParameters,escapeQuerySpace:a.escapeQuerySpace}},a.preventInvalidHostname=!1,a.duplicateQueryParameters=!1,a.escapeQuerySpace=!0,a.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,a.idn_expression=/[^a-z0-9\._-]/i,a.punycode_expression=/(xn--)/i,a.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,a.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,a.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,a.defaultPorts={http:`80`,https:`443`,ftp:`21`,gopher:`70`,ws:`80`,wss:`443`},a.hostProtocols=[`http`,`https`],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:`href`,blockquote:`cite`,link:`href`,base:`href`,script:`src`,form:`action`,img:`src`,area:`href`,iframe:`src`,embed:`src`,source:`src`,track:`src`,input:`src`,audio:`src`,video:`src`},a.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var t=e.nodeName.toLowerCase();if(!(t===`input`&&e.type!==`image`))return a.domAttributes[t]}};function g(e){return escape(e)}function _(e){return encodeURIComponent(e).replace(/[!'()*]/g,g).replace(/\*/g,`%2A`)}a.encode=_,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=_,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":`$`,"%26":`&`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%3A":`:`,"%40":`@`}},decode:{expression:/[\/\?#]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":`:`,"%2F":`/`,"%3F":`?`,"%23":`#`,"%5B":`[`,"%5D":`]`,"%40":`@`,"%21":`!`,"%24":`$`,"%26":`&`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":`!`,"%24":`$`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%40":`@`}},decode:{expression:/[\/\?#:]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`,":":`%3A`}}}},a.encodeQuery=function(e,t){var n=a.encode(e+``);return t===void 0&&(t=a.escapeQuerySpace),t?n.replace(/%20/g,`+`):n},a.decodeQuery=function(e,t){e+=``,t===void 0&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,`%20`):e)}catch{return e}};var v={encode:`encode`,decode:`decode`},y,b=function(e,t){return function(n){try{return a[t](n+``).replace(a.characters[e][t].expression,function(n){return a.characters[e][t].map[n]})}catch{return n}}};for(y in v)a[y+`PathSegment`]=b(`pathname`,v[y]),a[y+`UrnPathSegment`]=b(`urnpath`,v[y]);var x=function(e,t,n){return function(r){for(var i=n?function(e){return a[t](a[n](e))}:a[t],o=(r+``).split(e),s=0,c=o.length;s<c;s++)o[s]=i(o[s]);return o.join(e)}};a.decodePath=x(`/`,`decodePathSegment`),a.decodeUrnPath=x(`:`,`decodeUrnPathSegment`),a.recodePath=x(`/`,`encodePathSegment`,`decode`),a.recodeUrnPath=x(`:`,`encodeUrnPathSegment`,`decode`),a.encodeReserved=b(`reserved`,`encode`),a.parse=function(e,t){var n;return t||={preventInvalidHostname:a.preventInvalidHostname},e=e.replace(a.leading_whitespace_expression,``),e=e.replace(a.ascii_tab_whitespace,``),n=e.indexOf(`#`),n>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),n=e.indexOf(`?`),n>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,`$1://`),e=e.replace(/^[/\\]{2,}/i,`//`),e.substring(0,2)===`//`?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(n=e.indexOf(`:`),n>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:e.substring(n+1,n+3).replace(/\\/g,`/`)===`//`?(e=e.substring(n+3),e=a.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0))),t.path=e,t},a.parseHost=function(e,t){e||=``,e=e.replace(/\\/g,`/`);var n=e.indexOf(`/`),r,i;if(n===-1&&(n=e.length),e.charAt(0)===`[`)r=e.indexOf(`]`),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,n)||null,t.port===`/`&&(t.port=null);else{var o=e.indexOf(`:`),s=e.indexOf(`/`),c=e.indexOf(`:`,o+1);c!==-1&&(s===-1||c<s)?(t.hostname=e.substring(0,n)||null,t.port=null):(i=e.substring(0,n).split(`:`),t.hostname=i[0]||null,t.port=i[1]||null)}return t.hostname&&e.substring(n).charAt(0)!==`/`&&(n++,e=`/`+e),t.preventInvalidHostname&&a.ensureValidHostname(t.hostname,t.protocol),t.port&&a.ensureValidPort(t.port),e.substring(n)||`/`},a.parseAuthority=function(e,t){return e=a.parseUserinfo(e,t),a.parseHost(e,t)},a.parseUserinfo=function(e,t){var n=e;e.indexOf(`\\`)!==-1&&(e=e.replace(/\\/g,`/`));var r=e.indexOf(`/`),i=e.lastIndexOf(`@`,r>-1?r:e.length-1),o;return i>-1&&(r===-1||i<r)?(o=e.substring(0,i).split(`:`),t.username=o[0]?a.decode(o[0]):null,o.shift(),t.password=o[0]?a.decode(o.join(`:`)):null,e=n.substring(i+1)):(t.username=null,t.password=null),e},a.parseQuery=function(e,t){if(!e||(e=e.replace(/&+/g,`&`).replace(/^\?*&*|&+$/g,``),!e))return{};for(var n={},r=e.split(`&`),i=r.length,o,s,l,u=0;u<i;u++)o=r[u].split(`=`),s=a.decodeQuery(o.shift(),t),l=o.length?a.decodeQuery(o.join(`=`),t):null,s!==`__proto__`&&(c.call(n,s)?((typeof n[s]==`string`||n[s]===null)&&(n[s]=[n[s]]),n[s].push(l)):n[s]=l);return n},a.build=function(e){var t=``,n=!1;return e.protocol&&(t+=e.protocol+`:`),!e.urn&&(t||e.hostname)&&(t+=`//`,n=!0),t+=a.buildAuthority(e)||``,typeof e.path==`string`&&(e.path.charAt(0)!==`/`&&n&&(t+=`/`),t+=e.path),typeof e.query==`string`&&e.query&&(t+=`?`+e.query),typeof e.fragment==`string`&&e.fragment&&(t+=`#`+e.fragment),t},a.buildHost=function(e){var t=``;if(e.hostname)a.ip6_expression.test(e.hostname)?t+=`[`+e.hostname+`]`:t+=e.hostname;else return``;return e.port&&(t+=`:`+e.port),t},a.buildAuthority=function(e){return a.buildUserinfo(e)+a.buildHost(e)},a.buildUserinfo=function(e){var t=``;return e.username&&(t+=a.encode(e.username)),e.password&&(t+=`:`+a.encode(e.password)),t&&(t+=`@`),t},a.buildQuery=function(e,t,n){var r=``,i,o,s,l;for(o in e)if(o===`__proto__`)continue;else if(c.call(e,o))if(d(e[o]))for(i={},s=0,l=e[o].length;s<l;s++)e[o][s]!==void 0&&i[e[o][s]+``]===void 0&&(r+=`&`+a.buildQueryParameter(o,e[o][s],n),t!==!0&&(i[e[o][s]+``]=!0));else e[o]!==void 0&&(r+=`&`+a.buildQueryParameter(o,e[o],n));return r.substring(1)},a.buildQueryParameter=function(e,t,n){return a.encodeQuery(e,n)+(t===null?``:`=`+a.encodeQuery(t,n))},a.addQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.addQuery(e,r,t[r]);else if(typeof t==`string`){if(e[t]===void 0){e[t]=n;return}else typeof e[t]==`string`&&(e[t]=[e[t]]);d(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`)},a.setQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.setQuery(e,r,t[r]);else if(typeof t==`string`)e[t]=n===void 0?null:n;else throw TypeError(`URI.setQuery() accepts an object, string as the name parameter`)},a.removeQuery=function(e,t,n){var r,i,o;if(d(t))for(r=0,i=t.length;r<i;r++)e[t[r]]=void 0;else if(u(t)===`RegExp`)for(o in e)t.test(o)&&(e[o]=void 0);else if(typeof t==`object`)for(o in t)c.call(t,o)&&a.removeQuery(e,o,t[o]);else if(typeof t==`string`)n===void 0?e[t]=void 0:u(n)===`RegExp`?!d(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=f(e[t],n):e[t]===String(n)&&(!d(n)||n.length===1)?e[t]=void 0:d(e[t])&&(e[t]=f(e[t],n));else throw TypeError(`URI.removeQuery() accepts an object, string, RegExp as the first parameter`)},a.hasQuery=function(e,t,n,r){switch(u(t)){case`String`:break;case`RegExp`:for(var i in e)if(c.call(e,i)&&t.test(i)&&(n===void 0||a.hasQuery(e,i,n)))return!0;return!1;case`Object`:for(var o in t)if(c.call(t,o)&&!a.hasQuery(e,o,t[o]))return!1;return!0;default:throw TypeError(`URI.hasQuery() accepts a string, regular expression or object as the name parameter`)}switch(u(n)){case`Undefined`:return t in e;case`Boolean`:var s=!!(d(e[t])?e[t].length:e[t]);return n===s;case`Function`:return!!n(e[t],t,e);case`Array`:return d(e[t])?(r?p:m)(e[t],n):!1;case`RegExp`:return d(e[t])?r?p(e[t],n):!1:!!(e[t]&&e[t].match(n));case`Number`:n=String(n);case`String`:return d(e[t])?r?p(e[t],n):!1:e[t]===n;default:throw TypeError(`URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter`)}},a.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var i=new a(arguments[r]);e.push(i);for(var o=i.segment(),s=0;s<o.length;s++)typeof o[s]==`string`&&t.push(o[s]),o[s]&&n++}if(!t.length||!n)return new a(``);var c=new a(``).segment(t);return(e[0].path()===``||e[0].path().slice(0,1)===`/`)&&c.path(`/`+c.path()),c.normalize()},a.commonPath=function(e,t){var n=Math.min(e.length,t.length),r;for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&e.charAt(0)===`/`?`/`:``:((e.charAt(r)!==`/`||t.charAt(r)!==`/`)&&(r=e.substring(0,r).lastIndexOf(`/`)),e.substring(0,r+1))},a.withinString=function(e,t,n){n||={};var r=n.start||a.findUri.start,i=n.end||a.findUri.end,o=n.trim||a.findUri.trim,s=n.parens||a.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(e);if(!l)break;var u=l.index;if(n.ignoreHtml){var d=e.slice(Math.max(u-3,0),u);if(d&&c.test(d))continue}for(var f=u+e.slice(u).search(i),p=e.slice(u,f),m=-1;;){var h=s.exec(p);if(!h)break;var g=h.index+h[0].length;m=Math.max(m,g)}if(p=m>-1?p.slice(0,m)+p.slice(m).replace(o,``):p.replace(o,``),!(p.length<=l[0].length)&&!(n.ignore&&n.ignore.test(p))){f=u+p.length;var _=t(p,u,f,e);if(_===void 0){r.lastIndex=f;continue}_=String(_),e=e.slice(0,u)+_+e.slice(f),r.lastIndex=u+_.length}}return r.lastIndex=0,e},a.ensureValidHostname=function(t,n){var r=!!t,i=!!n,o=!1;if(i&&(o=p(a.hostProtocols,n)),o&&!r)throw TypeError(`Hostname cannot be empty, if protocol is `+n);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available`);if(e.toASCII(t).match(a.invalid_hostname_characters))throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_]`)}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(o(t)&&t>0&&t<65536))throw TypeError(`Port "`+e+`" is not a valid port`)}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&typeof r.URITemplate.noConflict==`function`&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&typeof r.IPv6.noConflict==`function`&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&typeof r.SecondLevelDomains.noConflict==`function`&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}else r.URI===this&&(r.URI=i);return this},s.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new a(this)},s.valueOf=s.toString=function(){return this.build(!1)._string};function S(e){return function(t,n){return t===void 0?this._parts[e]||``:(this._parts[e]=t||null,this.build(!n),this)}}function C(e,t){return function(n,r){return n===void 0?this._parts[e]||``:(n!==null&&(n+=``,n.charAt(0)===t&&(n=n.substring(1))),this._parts[e]=n,this.build(!r),this)}}s.protocol=S(`protocol`),s.username=S(`username`),s.password=S(`password`),s.hostname=S(`hostname`),s.port=S(`port`),s.query=C(`query`,`?`),s.fragment=C(`fragment`,`#`),s.search=function(e,t){var n=this.query(e,t);return typeof n==`string`&&n.length?`?`+n:n},s.hash=function(e,t){var n=this.fragment(e,t);return typeof n==`string`&&n.length?`#`+n:n},s.pathname=function(e,t){if(e===void 0||e===!0){var n=this._parts.path||(this._parts.hostname?`/`:``);return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(n):n}else return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):``:this._parts.path=e?a.recodePath(e):`/`,this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var n;if(e===void 0)return this.toString();this._string=``,this._parts=a._parts();var r=e instanceof a,i=typeof e==`object`&&(e.hostname||e.path||e.pathname);if(e.nodeName){var o=a.getDomAttribute(e);e=e[o]||``,i=!1}if(!r&&i&&e.pathname!==void 0&&(e=e.toString()),typeof e==`string`||e instanceof String)this._parts=a.parse(String(e),this._parts);else if(r||i){var s=r?e._parts:e;for(n in s)n!==`query`&&c.call(this._parts,n)&&(this._parts[n]=s[n]);s.query&&this.query(s.query,!1)}else throw TypeError(`invalid input`);return this.build(!t),this},s.is=function(e){var t=!1,r=!1,i=!1,o=!1,s=!1,c=!1,l=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,r=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),t=r||i,o=!t,s=o&&n&&n.has(this._parts.hostname),c=o&&a.idn_expression.test(this._parts.hostname),l=o&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case`relative`:return u;case`absolute`:return!u;case`domain`:case`name`:return o;case`sld`:return s;case`ip`:return t;case`ip4`:case`ipv4`:case`inet4`:return r;case`ip6`:case`ipv6`:case`inet6`:return i;case`idn`:return c;case`url`:return!this._parts.urn;case`urn`:return!!this._parts.urn;case`punycode`:return l}return null};var w=s.protocol,T=s.port,E=s.hostname;s.protocol=function(e,t){if(e&&(e=e.replace(/:(\/\/)?$/,``),!e.match(a.protocol_expression)))throw TypeError(`Protocol "`+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return w.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?e===void 0?``:this:(e!==void 0&&(e===0&&(e=null),e&&(e+=``,e.charAt(0)===`:`&&(e=e.substring(1)),a.ensureValidPort(e))),T.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e!==void 0){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if(a.parseHost(e,n)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);e=n.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return E.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=this.protocol();return this.authority()?(n?n+`://`:``)+this.authority():``}else{var r=a(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this}},s.host=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildHost(this._parts):``;if(a.parseHost(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildAuthority(this._parts):``;if(a.parseAuthority(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=a.buildUserinfo(this._parts);return n&&n.substring(0,n.length-1)}else return e[e.length-1]!==`@`&&(e+=`@`),a.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var n;return e===void 0?this.path()+this.search()+this.hash():(n=a.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||``}else{var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),o=RegExp(`^`+l(i));if(e&&e.charAt(e.length-1)!==`.`&&(e+=`.`),e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this}},s.domain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(`.`,r-1)+1,this._parts.hostname.substring(r)||``}else{if(!e)throw TypeError(`cannot set domain empty`);if(e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is(`IP`))this._parts.hostname=e;else{var i=RegExp(l(this.domain())+`$`);this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this}},s.tld=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var r=this._parts.hostname.lastIndexOf(`.`),i=this._parts.hostname.substring(r+1);return t!==!0&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}else{var a;if(!e)throw TypeError(`cannot set TLD empty`);if(e.match(/[^a-zA-Z0-9-]/))if(n&&n.is(e))a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);else throw TypeError(`TLD "`+e+`" contains characters other than [A-Z0-9]`);else if(!this._parts.hostname||this.is(`IP`))throw ReferenceError(`cannot set TLD on non-domain host`);else a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);return this.build(!t),this}},s.directory=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return``;if(this._parts.path===`/`)return`/`;var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?`/`:``);return e?a.decodePath(r):r}else{var i=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,i),s=RegExp(`^`+l(o));return this.is(`relative`)||(e||=`/`,e.charAt(0)!==`/`&&(e=`/`+e)),e&&e.charAt(e.length-1)!==`/`&&(e+=`/`),e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this}},s.filename=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e!=`string`){if(!this._parts.path||this._parts.path===`/`)return``;var n=this._parts.path.lastIndexOf(`/`),r=this._parts.path.substring(n+1);return e?a.decodePathSegment(r):r}else{var i=!1;e.charAt(0)===`/`&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var o=RegExp(l(this.filename())+`$`);return e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),i?this.normalizePath(t):this.build(!t),this}},s.suffix=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path===`/`)return``;var n=this.filename(),r=n.lastIndexOf(`.`),i,o;return r===-1?``:(i=n.substring(r+1),o=/^[a-z0-9%]+$/i.test(i)?i:``,e?a.decodePathSegment(o):o)}else{e.charAt(0)===`.`&&(e=e.substring(1));var s=this.suffix(),c;if(s)c=RegExp(e?l(s)+`$`:l(`.`+s)+`$`);else{if(!e)return this;this._parts.path+=`.`+a.recodePath(e)}return c&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!t),this}},s.segment=function(e,t,n){var r=this._parts.urn?`:`:`/`,i=this.path(),a=i.substring(0,1)===`/`,o=i.split(r);if(e!==void 0&&typeof e!=`number`&&(n=t,t=e,e=void 0),e!==void 0&&typeof e!=`number`)throw Error(`Bad segment "`+e+`", must be 0-based integer`);if(a&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),t===void 0)return e===void 0?o:o[e];if(e===null||o[e]===void 0)if(d(t)){o=[];for(var s=0,c=t.length;s<c;s++)!t[s].length&&(!o.length||!o[o.length-1].length)||(o.length&&!o[o.length-1].length&&o.pop(),o.push(h(t[s])))}else (t||typeof t==`string`)&&(t=h(t),o[o.length-1]===``?o[o.length-1]=t:o.push(t));else t?o[e]=h(t):o.splice(e,1);return a&&o.unshift(``),this.path(o.join(r),n)},s.segmentCoded=function(e,t,n){var r,i,o;if(typeof e!=`number`&&(n=t,t=e,e=void 0),t===void 0){if(r=this.segment(e,t,n),!d(r))r=r===void 0?void 0:a.decode(r);else for(i=0,o=r.length;i<o;i++)r[i]=a.decode(r[i]);return r}if(!d(t))t=typeof t==`string`||t instanceof String?a.encode(t):t;else for(i=0,o=t.length;i<o;i++)t[i]=a.encode(t[i]);return this.segment(e,t,n)};var D=s.query;return s.query=function(e,t){if(e===!0)return a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`function`){var n=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=a.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}else if(e!==void 0&&typeof e!=`string`)return this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this;else return D.call(this,e,t)},s.setQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`string`||e instanceof String)r[e]=t===void 0?null:t;else if(typeof e==`object`)for(var i in e)c.call(e,i)&&(r[i]=e[i]);else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`);return this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.addQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.addQuery(r,e,t===void 0?null:t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.removeQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.removeQuery(r,e,t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.hasQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.hasQuery(r,e,t,n)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return typeof this._parts.protocol==`string`&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(n){return this._parts.hostname&&(this.is(`IDN`)&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is(`IPv6`)&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},s.normalizePort=function(e){return typeof this._parts.protocol==`string`&&this._parts.port===a.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=a.recodeUrnPath(this._parts.path),this.build(!e),this;if(this._parts.path===`/`)return this;t=a.recodePath(t);var n,r=``,i,o;for(t.charAt(0)!==`/`&&(n=!0,t=`/`+t),(t.slice(-3)===`/..`||t.slice(-2)===`/.`)&&(t+=`/`),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,`/`).replace(/\/{2,}/g,`/`),n&&(r=t.substring(1).match(/^(\.\.\/)+/)||``,r&&=r[0]);i=t.search(/\/\.\.(\/|$)/),i!==-1;){if(i===0){t=t.substring(3);continue}o=t.substring(0,i).lastIndexOf(`/`),o===-1&&(o=i),t=t.substring(0,o)+t.substring(i+3)}return n&&this.is(`relative`)&&(t=r+t.substring(1)),this._parts.path=t,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return typeof this._parts.query==`string`&&(this._parts.query.length?this.query(a.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=a.encode,t=a.decode;a.encode=escape,a.decode=decodeURIComponent;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.unicode=function(){var e=a.encode,t=a.decode;a.encode=_,a.decode=unescape;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.readable=function(){var t=this.clone();t.username(``).password(``).normalize();var n=``;if(t._parts.protocol&&(n+=t._parts.protocol+`://`),t._parts.hostname&&(t.is(`punycode`)&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=`:`+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&t._parts.path.charAt(0)!==`/`&&(n+=`/`),n+=t.path(!0),t._parts.query){for(var r=``,i=0,o=t._parts.query.split(`&`),s=o.length;i<s;i++){var c=(o[i]||``).split(`=`);r+=`&`+a.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,`%26`),c[1]!==void 0&&(r+=`=`+a.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,`%26`))}n+=`?`+r.substring(1)}return n+=a.decodeQuery(t.hash(),!0),n},s.absoluteTo=function(e){var t=this.clone(),n=[`protocol`,`username`,`password`,`hostname`,`port`],r,i,o;if(this._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e instanceof a||(e=new a(e)),t._parts.protocol||(t._parts.protocol=e._parts.protocol,this._parts.hostname))return t;for(i=0;o=n[i];i++)t._parts[o]=e._parts[o];return t._parts.path?(t._parts.path.substring(-2)===`..`&&(t._parts.path+=`/`),t.path().charAt(0)!==`/`&&(r=e.directory(),r||=e.path().indexOf(`/`)===0?`/`:``,t._parts.path=(r?r+`/`:``)+t._parts.path,t.normalizePath())):(t._parts.path=e._parts.path,t._parts.query||(t._parts.query=e._parts.query)),t.build(),t},s.relativeTo=function(e){var t=this.clone().normalize(),n,r,i,o,s;if(t._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e=new a(e).normalize(),n=t._parts,r=e._parts,o=t.path(),s=e.path(),o.charAt(0)!==`/`)throw Error(`URI is already relative`);if(s.charAt(0)!==`/`)throw Error(`Cannot calculate a URI relative to another relative URI`);if(n.protocol===r.protocol&&(n.protocol=null),n.username!==r.username||n.password!==r.password||n.protocol!==null||n.username!==null||n.password!==null)return t.build();if(n.hostname===r.hostname&&n.port===r.port)n.hostname=null,n.port=null;else return t.build();if(o===s)return n.path=``,t.build();if(i=a.commonPath(o,s),!i)return t.build();var c=r.path.substring(i.length).replace(/[^\/]*$/,``).replace(/.*?\//g,`../`);return n.path=c+n.path.substring(i.length)||`./`,t.build()},s.equals=function(e){var t=this.clone(),n=new a(e),r={},i={},o={},s,l,u;if(t.normalize(),n.normalize(),t.toString()===n.toString())return!0;if(s=t.query(),l=n.query(),t.query(``),n.query(``),t.toString()!==n.toString()||s.length!==l.length)return!1;for(u in r=a.parseQuery(s,this._parts.escapeQuerySpace),i=a.parseQuery(l,this._parts.escapeQuerySpace),r)if(c.call(r,u)){if(!d(r[u])){if(r[u]!==i[u])return!1}else if(!m(r[u],i[u]))return!1;o[u]=!0}for(u in i)if(c.call(i,u)&&!o[u])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},a})})),Ca=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.uriSchemaAttributesProducer=e.uriInferenceAttributesProducer=e.uriTypeAttributeKind=void 0;var n=t(Sa()),r=na(),i=a(),o=Q(),s=`qt-uri-protocols`,c=`qt-uri-extensions`;e.uriTypeAttributeKind=new class extends r.TypeAttributeKind{constructor(){super(`uriAttributes`)}get inIdentity(){return!0}combine(e){let t=e.map(e=>e[0]),n=e.map(e=>e[1]);return[(0,i.setUnionManyInto)(new Set,t),(0,i.setUnionManyInto)(new Set,n)]}makeInferred(e){}addToSchema(e,t,n){if(t.kind!==`string`&&t.kind!==`uri`)return;let[r,i]=n;r.size>0&&(e[s]=Array.from(r).sort()),i.size>0&&(e[c]=Array.from(i).sort())}};var l=/^.+(\.[^./\\]+)$/;function u(e){let t=e.match(l);if(t!==null)return t[1]}function d(t){try{let r=(0,n.default)(t),i=u(r.path()),a=i===void 0?[]:[i.toLowerCase()];return e.uriTypeAttributeKind.makeAttributes([new Set([r.protocol().toLowerCase()]),new Set(a)])}catch{return r.emptyTypeAttributes}}e.uriInferenceAttributesProducer=d;function f(t,n,r){if(typeof t!=`object`||!r.has(`string`))return;let i,a=t[s];i=a===void 0?new Set:new Set((0,o.checkArray)(a,o.checkString));let l,u=t[c];if(l=u===void 0?new Set:new Set((0,o.checkArray)(u,o.checkString)),!(i.size===0&&l.size===0))return{forString:e.uriTypeAttributeKind.makeAttributes([i,l])}}e.uriSchemaAttributesProducer=f})),wa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnionType=e.IntersectionType=e.SetOperationType=e.intersectionTypeIdentity=e.unionTypeIdentity=e.setOperationTypeIdentity=e.setOperationCasesEqual=e.EnumType=e.enumTypeIdentity=e.MapType=e.ClassType=e.ObjectType=e.mapTypeIdentify=e.classTypeIdentity=e.ClassProperty=e.GenericClassProperty=e.ArrayType=e.arrayTypeIdentity=e.PrimitiveType=e.primitiveTypeIdentity=e.Type=e.TypeIdentity=e.isPrimitiveTypeKind=e.isNumberTypeKind=e.targetTypeKindForTransformedStringTypeKind=e.isPrimitiveStringTypeKind=e.transformedStringTypeKinds=e.transformedStringTypeTargetTypeKindsMap=void 0;var t=a(),n=Q(),r=fa(),i=C(),o=va(),s={date:{jsonSchema:`date`,primitive:void 0},time:{jsonSchema:`time`,primitive:void 0},"date-time":{jsonSchema:`date-time`,primitive:void 0},uuid:{jsonSchema:`uuid`,primitive:void 0},uri:{jsonSchema:`uri`,primitive:void 0,attributesProducer:Ca().uriInferenceAttributesProducer},"integer-string":{jsonSchema:`integer`,primitive:`integer`},"bool-string":{jsonSchema:`boolean`,primitive:`bool`}};e.transformedStringTypeTargetTypeKindsMap=(0,t.mapFromObject)(s),e.transformedStringTypeKinds=new Set(Object.getOwnPropertyNames(s));function c(e){return e===`string`||(0,t.hasOwnProperty)(s,e)}e.isPrimitiveStringTypeKind=c;function l(t){let n=e.transformedStringTypeTargetTypeKindsMap.get(t);if(n!==void 0)return n.primitive}e.targetTypeKindForTransformedStringTypeKind=l;function u(e){return e===`integer`||e===`double`}e.isNumberTypeKind=u;function d(e){return c(e)||u(e)?!0:e===`none`||e===`any`||e===`null`||e===`bool`}e.isPrimitiveTypeKind=d;function f(e,t){return e.index===t.index||e.kind===`none`||t.kind===`none`}var p=class e{constructor(e,n){this._kind=e,this._components=n;let r=t.hashCodeInit;r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(this._kind));for(let e of n)r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(e));this._hashCode=r}equals(r){if(!(r instanceof e)||this._kind!==r._kind)return!1;let i=this._components.length;(0,n.assert)(i===r._components.length,`Components of a type kind's identity must have the same length`);for(let e=0;e<i;e++)if(!(0,t.areEqual)(this._components[e],r._components[e]))return!1;return!0}hashCode(){return this._hashCode}};e.TypeIdentity=p;var m=class e{constructor(e,t){this.typeRef=e,this.graph=t}get index(){return(0,o.typeRefIndex)(this.typeRef)}getChildren(){let e=this.getNonAttributeChildren();for(let[n,r]of this.getAttributes())n.children!==void 0&&(0,t.setUnionInto)(e,n.children(r));return e}getAttributes(){return(0,o.attributesForTypeRef)(this.typeRef,this.graph)}get hasNames(){return r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes())!==void 0}getNames(){return(0,n.defined)(r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes()))}getCombinedName(){return this.getNames().combinedName}get debugPrintKind(){return this.kind}equals(t){return t instanceof e?this.typeRef===t.typeRef:!1}hashCode(){return(0,t.hashCodeOf)(this.typeRef)}structurallyCompatible(e,t=!1){function r(e,n){return e===n?!0:t?e===`integer`?n===`double`:e===`double`?n===`integer`:!1:!1}if(f(this,e))return!0;if(!r(this.kind,e.kind))return!1;let i=[[this,e]],a=[],o,s=(e,t)=>f(e,t)?!0:r(e.kind,t.kind)?(i.push([e,t]),!0):(o=!0,!1);for(;i.length>0;){let[e,r]=(0,n.defined)(i.pop());if(e.index>r.index&&([e,r]=[r,e]),!e.isPrimitive()){let t=e.index,n=r.index,i=!1;for(let[e,r]of a)if(e===t&&r===n){i=!0;break}if(i)continue;a.push([t,n])}if(o=!1,!e.structuralEqualityStep(r,t,s)||o)return!1}return!0}getParentTypes(){return this.graph.getParentsOfType(this)}getAncestorsNotInSet(e){let t=[this],n=new Set,r=new Set;for(;;){let i=t.pop();if(i===void 0)break;let a=i.getParentTypes();console.log(`${a.size} parents`);for(let i of a)n.has(i)||(n.add(i),e.has(i.typeRef)?(console.log(`adding ${i.kind}`),t.push(i)):(console.log(`found ${i.kind}`),r.add(i)))}return r}};e.Type=m;function h(e){return(0,t.mapSome)(e,(e,t)=>t.requiresUniqueIdentity(e))}function g(e){return(0,t.mapFilter)(e,(e,t)=>t.inIdentity)}function _(e,t){if(!h(t))return new p(e,[g(t)])}e.primitiveTypeIdentity=_,e.PrimitiveType=class extends m{constructor(e,t,n){super(e,t),this.kind=n}get isNullable(){return this.kind===`null`||this.kind===`any`||this.kind===`none`}isPrimitive(){return!0}getNonAttributeChildren(){return new Set}get identity(){return _(this.kind,this.getAttributes())}reconstitute(e){e.getPrimitiveType(this.kind)}structuralEqualityStep(e,t,n){return!0}};function v(e,t){if(!h(e))return new p(`array`,[g(e),t])}e.arrayTypeIdentity=v,e.ArrayType=class extends m{constructor(e,t,n){super(e,t),this._itemsRef=n,this.kind=`array`}setItems(e){if(this._itemsRef!==void 0)return(0,n.panic)(`Can only set array items once`);this._itemsRef=e}getItemsRef(){return this._itemsRef===void 0?(0,n.panic)(`Array items accessed before they were set`):this._itemsRef}get items(){return(0,o.derefTypeRef)(this.getItemsRef(),this.graph)}getNonAttributeChildren(){return new Set([this.items])}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return v(this.getAttributes(),this.getItemsRef())}reconstitute(e){let t=this.getItemsRef(),n=e.lookup(t);n===void 0?(e.getUniqueArrayType(),e.setArrayItems(e.reconstitute(this.getItemsRef()))):e.getArrayType(n)}structuralEqualityStep(e,t,n){return n(this.items,e.items)}};var y=class e{constructor(e,t){this.typeData=e,this.isOptional=t}equals(n){return n instanceof e?(0,t.areEqual)(this.typeData,n.typeData)&&this.isOptional===n.isOptional:!1}hashCode(){return(0,t.hashCodeOf)(this.typeData)+(this.isOptional?17:23)}};e.GenericClassProperty=y,e.ClassProperty=class extends y{constructor(e,t,n){super(e,n),this.graph=t}get typeRef(){return this.typeData}get type(){return(0,o.derefTypeRef)(this.typeRef,this.graph)}};function b(e,t,n,r){if(!h(t))return new p(e,[g(t),n,r])}function x(e,t){return b(`class`,e,t,void 0)}e.classTypeIdentity=x;function S(e,t){return b(`map`,e,new Map,t)}e.mapTypeIdentify=S;var w=class extends m{constructor(e,t,r,i,a,o){super(e,t),this.kind=r,this.isFixed=i,this._properties=a,this._additionalPropertiesRef=o,r===`map`?(a!==void 0&&(0,n.assert)(a.size===0),(0,n.assert)(!i)):r===`class`?(0,n.assert)(o===void 0):(0,n.assert)(i)}setProperties(e,t){(0,n.assert)(this._properties===void 0,`Tried to set object properties twice`),this instanceof E&&(0,n.assert)(e.size===0,`Cannot set properties on map type`),this instanceof T&&(0,n.assert)(t===void 0,`Cannot set additional properties of class type`),this._properties=e,this._additionalPropertiesRef=t}getProperties(){return(0,n.defined)(this._properties)}getSortedProperties(){return(0,t.mapSortByKey)(this.getProperties())}getAdditionalPropertiesRef(){return(0,n.assert)(this._properties!==void 0,`Properties are not set yet`),this._additionalPropertiesRef}getAdditionalProperties(){let e=this.getAdditionalPropertiesRef();if(e!==void 0)return(0,o.derefTypeRef)(e,this.graph)}getNonAttributeChildren(){let e=(0,t.mapSortToArray)(this.getProperties(),(e,t)=>t).map(([e,t])=>t.type),n=this.getAdditionalProperties();return n!==void 0&&e.push(n),new Set(e)}get isNullable(){return!1}isPrimitive(){return!1}get identity(){if(!this.isFixed)return b(this.kind,this.getAttributes(),this.getProperties(),this.getAdditionalPropertiesRef())}reconstitute(e,r){let i=this.getSortedProperties(),a=r?i:this.getProperties(),o=e.lookupMap((0,t.mapMap)(i,e=>e.typeRef)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.lookup(t));if(o!==void 0&&(s!==void 0||this._additionalPropertiesRef===void 0)){let r=(0,t.mapMap)(a,(t,r)=>e.makeClassProperty((0,n.defined)(o.get(r)),t.isOptional));switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getObjectType(r,s);break;case`map`:e.getMapType((0,n.defined)(s));break;case`class`:this.isFixed?e.getUniqueClassType(!0,r):e.getClassType(r);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}}else{switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getUniqueObjectType(void 0,void 0);break;case`map`:e.getUniqueMapType();break;case`class`:e.getUniqueClassType(this.isFixed,void 0);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}let r=(0,t.mapMap)(i,t=>e.reconstitute(t.typeRef)),o=(0,t.mapMap)(a,(t,i)=>e.makeClassProperty((0,n.defined)(r.get(i)),t.isOptional)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.reconstitute(t));e.setObjectProperties(o,s)}}structuralEqualityStep(e,t,n){let r=this.getProperties(),i=e.getProperties();if(r.size!==i.size)return!1;let a=!1;for(let[e,t]of r){let r=i.get(e);if(r===void 0||t.isOptional!==r.isOptional||!n(t.type,r.type))return a=!0,!1}if(a)return!1;let o=this.getAdditionalProperties(),s=e.getAdditionalProperties();return o===void 0==(s===void 0)?o===void 0||s===void 0?!0:n(o,s):!1}};e.ObjectType=w;var T=class extends w{constructor(e,t,n,r){super(e,t,`class`,n,r,void 0)}};e.ClassType=T;var E=class extends w{constructor(e,n,r){super(e,n,`map`,!1,(0,t.definedMap)(r,()=>new Map),r)}get values(){return(0,n.defined)(this.getAdditionalProperties())}};e.MapType=E;function D(e,t){if(!h(e))return new p(`enum`,[g(e),t])}e.enumTypeIdentity=D,e.EnumType=class extends m{constructor(e,t,n){super(e,t),this.cases=n,this.kind=`enum`}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return D(this.getAttributes(),this.cases)}getNonAttributeChildren(){return new Set}reconstitute(e){e.getEnumType(this.cases)}structuralEqualityStep(e,n,r){return(0,t.areEqual)(this.cases,e.cases)}};function O(e,n,r,i){let a=(0,t.toReadonlySet)(e),o=(0,t.toReadonlySet)(n);return a.size===o.size?(0,t.iterableEvery)(a,e=>{let n=(0,t.iterableFind)(o,t=>t.kind===e.kind);return!!(n!==void 0&&i(e,n)||r&&(e.kind===`integer`&&(0,t.iterableSome)(o,e=>e.kind===`double`)||e.kind===`double`&&(0,t.iterableSome)(o,e=>e.kind===`integer`)))}):!1}e.setOperationCasesEqual=O;function k(e,t,n){if(!h(t))return new p(e,[g(t),n])}e.setOperationTypeIdentity=k;function A(e,t){return k(`union`,e,t)}e.unionTypeIdentity=A;function j(e,t){return k(`intersection`,e,t)}e.intersectionTypeIdentity=j;var M=class extends m{constructor(e,t,n,r){super(e,t),this.kind=n,this._memberRefs=r}setMembers(e){if(this._memberRefs!==void 0)return(0,n.panic)(`Can only set map members once`);this._memberRefs=e}getMemberRefs(){return this._memberRefs===void 0?(0,n.panic)(`Map members accessed before they were set`):this._memberRefs}get members(){return(0,t.setMap)(this.getMemberRefs(),e=>(0,o.derefTypeRef)(e,this.graph))}get sortedMembers(){return this.getNonAttributeChildren()}getNonAttributeChildren(){return(0,t.setSortBy)(this.members,e=>e.kind)}isPrimitive(){return!1}get identity(){return k(this.kind,this.getAttributes(),this.getMemberRefs())}reconstituteSetOperation(e,r,i){let a=(0,t.mapMap)(this.sortedMembers.entries(),e=>e.typeRef),o=r?this.sortedMembers:this.members,s=e.lookupMap(a);if(s===void 0){i(void 0);let r=e.reconstituteMap(a);e.setSetOperationMembers((0,t.setMap)(o,e=>(0,n.defined)(r.get(e))))}else i((0,t.setMap)(o,e=>(0,n.defined)(s.get(e))))}structuralEqualityStep(e,t,n){return O(this.members,e.members,t,n)}};e.SetOperationType=M,e.IntersectionType=class extends M{constructor(e,t,n){super(e,t,`intersection`,n)}get isNullable(){return(0,n.panic)(`isNullable not implemented for IntersectionType`)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueIntersectionType():e.getIntersectionType(t)})}},e.UnionType=class extends M{constructor(e,t,n){super(e,t,`union`,n),n!==void 0&&(0,i.messageAssert)(n.size>0,`IRNoEmptyUnions`,{})}setMembers(e){(0,i.messageAssert)(e.size>0,`IRNoEmptyUnions`,{}),super.setMembers(e)}get stringTypeMembers(){return(0,t.setFilter)(this.members,e=>c(e.kind)||e.kind===`enum`)}findMember(e){return(0,t.iterableFind)(this.members,t=>t.kind===e)}get isNullable(){return this.findMember(`null`)!==void 0}get isCanonical(){let e=this.members;if(e.size<=1)return!1;let n=(0,t.setMap)(e,e=>e.kind);if(n.size<e.size||n.has(`union`)||n.has(`intersection`)||n.has(`none`)||n.has(`any`)||n.has(`string`)&&n.has(`enum`))return!1;let r=0;return n.has(`class`)&&(r+=1),n.has(`map`)&&(r+=1),n.has(`object`)&&(r+=1),!(r>1)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueUnionType():e.getUnionType(t)})}}})),Ta=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignNames=e.keywordNamespace=e.DependencyName=e.AssociatedName=e.SimpleName=e.FixedName=e.Name=e.funPrefixNamer=e.Namer=e.Namespace=void 0;var t=a(),n=Q(),r=class{constructor(e,t,n,r){this._children=new Set,this._members=new Set,this.forbiddenNamespaces=new Set(n),this.additionalForbidden=new Set(r),t!==void 0&&t.addChild(this)}addChild(e){this._children.add(e)}get children(){return this._children}get members(){return this._members}get forbiddenNameds(){return(0,t.setUnion)(this.additionalForbidden,...Array.from(this.forbiddenNamespaces).map(e=>e.members))}add(e){return this._members.add(e),e}};e.Namespace=r;var i=class{constructor(e,t,n){this.name=e,this.nameStyle=t,this._prefixes=new Set(n)}assignNames(e,r,i){let a=new Set(r),o=Array.from(i);(0,n.assert)(o.length>0,`Number of names can't be less than 1`);let s=new Map,c=[];for(let n of o){let r=n.proposeUnstyledNames(e),i=n.namingFunction,l=(0,t.iterableFind)(r,t=>!a.has(i.nameStyle(t))&&o.every(r=>r===n||!r.proposeUnstyledNames(e).has(t)));if(l!==void 0){let e=i.nameStyle(l),r=n.nameAssignments(a,e);if(r!==null){(0,t.mapMergeInto)(s,r),(0,t.setUnionInto)(a,r.values());continue}}c.push(n)}let l=this._prefixes.values(),u=1;for(let r of c){let i=(0,n.defined)((0,t.iterableFirst)(r.proposeUnstyledNames(e)));for(;;){let e,{done:n,value:o}=l.next();n?(e=`${i}_${u.toString()}`,u++):e=`${o}_${i}`;let c=r.namingFunction.nameStyle(e),d=r.nameAssignments(a,c);if(d!==null){(0,t.mapMergeInto)(s,d),(0,t.setUnionInto)(a,d.values());break}}}return s}};e.Namer=i;var o=[`Purple`,`Fluffy`,`Tentacled`,`Sticky`,`Indigo`,`Indecent`,`Hilarious`,`Ambitious`,`Cunning`,`Magenta`,`Frisky`,`Mischievous`,`Braggadocious`];function s(e,t){return new i(e,t,o)}e.funPrefixNamer=s;var c=class{constructor(e,t){this._namingFunction=e,this.order=t,this._associates=new Set}addAssociate(e){this._associates.add(e)}isFixed(){return this instanceof l}get namingFunction(){return(0,n.defined)(this._namingFunction)}firstProposedName(e){return(0,n.defined)((0,t.iterableFirst)(this.proposeUnstyledNames(e)))}nameAssignments(e,t){if(e.has(t))return null;let n=new Map([[this,t]]);for(let r of this._associates){let i=r.getName(t);if(e.has(i))return null;n.set(r,i)}return n}};e.Name=c;var l=class extends c{constructor(e){super(void 0,0),this._fixedName=e}get dependencies(){return[]}addAssociate(e){return(0,n.panic)(`Cannot add associates to fixed names`)}get fixedName(){return this._fixedName}proposeUnstyledNames(e){return(0,n.panic)(`Only fixedName should be called on FixedName.`)}};e.FixedName=l,e.SimpleName=class extends c{constructor(e,t,n){super(t,n),this._unstyledNames=new Set(e)}get dependencies(){return[]}proposeUnstyledNames(e){return this._unstyledNames}},e.AssociatedName=class extends c{constructor(e,t,n){super(void 0,t),this._sponsor=e,this.getName=n}get dependencies(){return[this._sponsor]}proposeUnstyledNames(e){return(0,n.panic)(`AssociatedName must be assigned via its sponsor`)}},e.DependencyName=class extends c{constructor(e,t,n){super(e,t),this._proposeUnstyledName=n;let r=[];n(e=>(r.push(e),`0xDEADBEEF`)),this._dependencies=new Set(r)}get dependencies(){return Array.from(this._dependencies)}proposeUnstyledNames(e){return new Set([this._proposeUnstyledName(t=>((0,n.assert)(this._dependencies.has(t),`DependencyName proposer is not pure`),(0,n.defined)(e.get(t))))])}};function u(e,t){let n=new r(e,void 0,[],[]);for(let e of t)n.add(new l(e));return n}e.keywordNamespace=u;function d(e){return(0,t.setUnion)(e,...Array.from((0,t.setMap)(e,e=>d(e.children))))}var f=class{constructor(e){this._names=new Map,this._namedsForName=new Map,this.isReadyToBeNamed=e=>this._names.has(e)?!1:e.dependencies.every(e=>this._names.has(e)),this.isConflicting=(e,t)=>{let n=this._namedsForName.get(t);if(n===void 0)return!1;for(let t of n)if(e.members.has(t)||e.forbiddenNameds.has(t))return!0;return!1},this.assign=(e,t,r)=>{(0,n.assert)(!this.names.has(e),`Name "${r}" assigned twice`),(0,n.assert)(!this.isConflicting(t,r),`Assigned name "${r}" conflicts`),this._names.set(e,r);let i=this._namedsForName.get(r);i===void 0&&(i=new Set,this._namedsForName.set(r,i)),i.add(e)},this.namespaces=d(e)}get names(){return this._names}areForbiddensFullyNamed(e){return(0,t.iterableEvery)(e.forbiddenNameds,e=>this._names.has(e))}};function p(e){let n=new f(e);for(let e of n.namespaces)for(let t of e.members)t.isFixed()&&n.assign(t,e,t.fixedName);for(;;){let e=(0,t.setFilter)(n.namespaces,e=>n.areForbiddensFullyNamed(e)),r=(0,t.iterableFind)(e,e=>(0,t.iterableSome)(e.members,n.isReadyToBeNamed));if(r===void 0)return n.names;let i=(0,t.setUnion)(r.members,r.forbiddenNameds),a=(0,t.setFilterMap)(i,e=>n.names.get(e));for(;;){let e=(0,t.setFilter)(r.members,n.isReadyToBeNamed),i=(0,t.iterableMinBy)(e,e=>e.order);if(i===void 0)break;let o=i.order,s=(0,t.setFilter)(e,e=>e.order===o),c=(0,t.setGroupBy)(s,e=>e.namingFunction);for(let[e,i]of c){let o=(0,t.setGroupBy)(i,e=>e.namingFunction.nameStyle(e.firstProposedName(n.names)));for(let[,i]of o){let o=e.assignNames(n.names,a,i);for(let[e,t]of o)n.assign(e,r,t);(0,t.setUnionInto)(a,o.values())}}}}}e.assignNames=p})),Ea=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parenIfNeeded=e.multiWord=e.singleWord=e.serializeRenderResult=e.modifySource=e.maybeAnnotated=e.annotated=e.sourcelikeToSource=e.newline=void 0;var t=a(),n=Ta(),r=Q(),i=ua();function o(){return{kind:`newline`,indentationChange:0}}e.newline=o;function s(e){if(e instanceof Array)return{kind:`sequence`,sequence:e.map(s)};if(typeof e==`string`){let n=e.split(`
117
117
  `);return n.length===1?{kind:`text`,text:e}:{kind:`sequence`,sequence:(0,t.arrayIntercalate)(o(),n.map(e=>({kind:`text`,text:e})))}}return e instanceof n.Name?{kind:`name`,named:e}:e}e.sourcelikeToSource=s;function c(e,t){return{kind:`annotated`,annotation:e,source:s(t)}}e.annotated=c;function l(e,t,n){return e?c(t,n):n}e.maybeAnnotated=l;function u(e,t){return{kind:`modified`,modifier:e,source:s(t)}}e.modifySource=u;function d(e,t){switch(e.kind){case`text`:return e.text.length;case`newline`:return(0,r.panic)(`Newline must not occur within a line.`);case`sequence`:return e.sequence.map(e=>d(e,t)).reduce((e,t)=>e+t,0);case`table`:return(0,r.panic)(`Table must not occur within a line.`);case`annotated`:return d(e.source,t);case`name`:return(0,r.defined)(t.get(e.named)).length;case`modified`:return f(e,t,``).lines.join(`
118
118
  `).length;default:return(0,r.assertNever)(e)}}function f(e,n,a){let o=0,s=0,c=[],l=[],u=[];function p(){s!==0&&(l.push((0,i.repeatString)(a,s)),s=0)}function m(){let e=l.join(``);return l=[e],e}function h(){return{line:c.length,column:m().length}}function g(){c.push(m()),l=[]}function _(e){switch(e.kind){case`text`:p(),l.push(e.text);break;case`newline`:g(),o+=e.indentationChange,s=o;break;case`sequence`:for(let t of e.sequence)_(t);break;case`table`:let c=e.table,m=c.length;if(m===0)break;let v=c.map(e=>e.map(e=>d(e,n))),y=(0,r.defined)((0,t.iterableMax)(c.map(e=>e.length)));if(y===0)break;let b=[];for(let e=0;e<y;e++)b.push((0,r.defined)((0,t.iterableMax)(v.map(n=>(0,t.withDefault)(n[e],0)))));for(let e=0;e<m;e++){p();let n=(0,r.defined)(c[e]),a=(0,r.defined)(v[e]);for(let e=0;e<y;e++){let r=b[e],o=(0,t.withDefault)(n[e],{kind:`text`,text:``}),s=(0,t.withDefault)(a[e],0);_(o),e<y-1&&s<r&&l.push((0,i.repeatString)(` `,r-s))}e<m-1&&(g(),s=o)}break;case`annotated`:let x=h();_(e.source);let S=h();u.push({annotation:e.annotation,span:{start:x,end:S}});break;case`name`:(0,r.assert)(n.has(e.named),`No name for Named`),p(),l.push((0,r.defined)(n.get(e.named)));break;case`modified`:p();let C=f(e.source,n,a).lines;(0,r.assert)(C.length===1,`Cannot modify more than one line.`),l.push(e.modifier(C[0]));break;default:return(0,r.assertNever)(e)}}return _(e),g(),{lines:c,annotations:u}}e.serializeRenderResult=f;function p(...e){return{source:e,needsParens:!1}}e.singleWord=p;function m(e,...t){if((0,r.assert)(t.length>0,`Zero words is not multiple`),t.length===1)return p(t[0]);let n=[];for(let r=0;r<t.length;r++)r>0&&n.push(e),n.push(t[r]);return{source:n,needsParens:!0}}e.multiWord=m;function h({source:e,needsParens:t}){return t?[`(`,e,`)`]:e}e.parenIfNeeded=h})),Da=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.nullTypeIssueAnnotation=e.anyTypeIssueAnnotation=e.IssueAnnotationData=e.AnnotationData=void 0;var t=class{};e.AnnotationData=t;var n=class extends t{constructor(e){super(),this.message=e}};e.IssueAnnotationData=n,e.anyTypeIssueAnnotation=new n(`quicktype cannot infer this type because there is no data about it in the input.`),e.nullTypeIssueAnnotation=new n(`The only value for this in the input is null, which means you probably need a more complete input sample.`)})),Oa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Renderer=void 0;var t=a(),n=Ta(),r=Ea(),i=Da(),o=Q();function s(e){return Array.isArray(e)?{position:e[0],count:e[1]}:{position:e,count:1}}function c(e){let t=e.length,n=0;for(let r=0;r<t;r++){let t=e.charAt(r);if(t===` `)n+=1;else if(t===` `)n=(n/4+1)*4;else return{indent:n,text:e.substring(r)}}return{indent:0,text:null}}var l=class{constructor(){this._currentEmitTarget=this._emitted=[],this._numBlankLinesNeeded=0,this._preventBlankLine=!0}get isEmpty(){return this._emitted.length===0}get isNested(){return this._emitted!==this._currentEmitTarget}get source(){return this._emitted}pushItem(e){this._currentEmitTarget.push(e),this._preventBlankLine=!1}emitNewline(){let e=(0,r.newline)();this.pushItem(e),this._lastNewline=e}emitItem(e){if(!this.isEmpty)for(let e=0;e<this._numBlankLinesNeeded;e++)this.emitNewline();this._numBlankLinesNeeded=0,this.pushItem(e)}containsItem(e){return this._currentEmitTarget.find(t=>e===t)!==void 0}ensureBlankLine(e){this._preventBlankLine||(this._numBlankLinesNeeded=Math.max(this._numBlankLinesNeeded,e))}preventBlankLine(){this._numBlankLinesNeeded=0,this._preventBlankLine=!0}changeIndent(e){if(this._lastNewline===void 0)return(0,o.panic)(`Cannot change indent for the first line`);this._lastNewline.indentationChange+=e}};e.Renderer=class{constructor(e,t){this.targetLanguage=e,this.emitTable=e=>{if(e.length===0)return;let t=e.map(e=>e.map(e=>(0,r.sourcelikeToSource)(e)));this._emitContext.emitItem({kind:`table`,table:t}),this._emitContext.emitNewline()},this.typeGraph=t.typeGraph,this.leadingComments=t.leadingComments,this._finishedFiles=new Map,this._finishedEmitContexts=new Map,this._emitContext=new l}ensureBlankLine(e=1){this._emitContext.ensureBlankLine(e)}preventBlankLine(){this._emitContext.preventBlankLine()}emitItem(e){this._emitContext.emitItem(e)}emitItemOnce(e){return this._emitContext.containsItem(e)?!1:(this.emitItem(e),!0)}emitLineOnce(...e){let t=!0;e.length===1?t=this.emitItemOnce(e[0]):e.length>1&&(t=this.emitItemOnce(e)),t&&this._emitContext.emitNewline()}emitLine(...e){e.length===1?this._emitContext.emitItem(e[0]):e.length>1&&this._emitContext.emitItem(e),this._emitContext.emitNewline()}emitMultiline(e){let t=e.split(`
119
119
  `),n=t.length;if(n===0)return;this.emitLine(t[0]);let r=0;for(let e=1;e<n;e++){let n=t[e],{indent:i,text:a}=c(n);if((0,o.assert)(i%4==0,`Indentation is not a multiple of 4.`),a!==null){let e=i/4;this.changeIndent(e-r),r=e,this.emitLine(a)}else this._emitContext.emitNewline()}r!==0&&this.changeIndent(-r)}gatherSource(e){let t=this._emitContext;this._emitContext=new l,e(),(0,o.assert)(!this._emitContext.isNested,`emit context not restored correctly`);let n=this._emitContext.source;return this._emitContext=t,n}emitGatheredSource(e){for(let t of e)this._emitContext.emitItem(t)}emitAnnotated(e,t){let n=this.gatherSource(t),i=(0,r.sourcelikeToSource)(n);this._emitContext.emitItem((0,r.annotated)(e,i))}emitIssue(e,t){this.emitAnnotated(new i.IssueAnnotationData(e),t)}changeIndent(e){this._emitContext.changeIndent(e)}iterableForEach(e,n){let r=Array.from(e),i=!0;for(let[e,a]of(0,t.iterableEnumerate)(r))n(a,r.length===1?`only`:i?`first`:e===r.length-1?`last`:`middle`),i=!1}forEach(e,t,n,r){let i=!1;return this.iterableForEach(e,([e,a],o)=>{o===`only`||o===`first`?this.ensureBlankLine(n):this.ensureBlankLine(t),r(a,e,o),i=!0}),i}forEachWithBlankLines(e,t,n){let{position:r,count:i}=s(t),a=[`interposing`,`leading-and-interposing`].indexOf(r)>=0,o=[`leading`,`leading-and-interposing`].indexOf(r)>=0;return this.forEach(e,a?i:0,o?i:0,n)}indent(e){this.changeIndent(1),e(),this.changeIndent(-1)}assignNames(){return(0,n.assignNames)(this.setUpNaming())}initializeEmitContextForFilename(e){if(this._finishedEmitContexts.has(e.toLowerCase())){let t=this._finishedEmitContexts.get(e.toLowerCase());t!==void 0&&(this._emitContext=t)}}finishFile(e){this._finishedFiles.has(e)&&console.log(`[WARNING] Tried to emit file ${e} more than once. If performing multi-file output this warning can be safely ignored.`);let t=(0,r.sourcelikeToSource)(this._emitContext.source);this._finishedFiles.set(e,t),this._finishedEmitContexts.set(e.toLowerCase(),this._emitContext),this._emitContext=new l}render(e){return this._names=this.assignNames(),this.emitSource(e),this._emitContext.isEmpty||this.finishFile(e),{sources:this._finishedFiles,names:this._names}}get names(){return this._names===void 0?(0,o.panic)(`Names accessed before they were assigned`):this._names}}})),ka=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.declarationsForGraph=e.cycleBreakerTypesForGraph=e.DeclarationIR=void 0;var t=a(),n=Q(),r=_a(),i=C(),o=class{constructor(e,t){this.forwardedTypes=t,this.declarations=Array.from(e)}};e.DeclarationIR=o;function s(e,t,r){let i=t.indexOf(e);if(i<0)return;if(r===void 0)return t[i];let a=t.slice(0,i+1).reverse().find(r);return a===void 0?(0,n.panic)(`Found a cycle that cannot be broken`):a}function c(e,t,r){let i=new Set,a=new Set,o=Array.from(e.topLevels.values());function c(e,n){if(!i.has(e)){if(t(e))for(let t of e.getChildren())o.push(t);else{let t=s(e,n,r);if(t!==void 0){a.add(t);return}for(let t of e.getChildren())n.unshift(e),c(t,n),n.shift()}i.add(e)}}for(;;){let e=o.pop();if(e===void 0)break;let t=[];c(e,t),(0,n.assert)(t.length===0)}return a}e.cycleBreakerTypesForGraph=c;function l(e,a,s,c){let l=a===void 0,u=[],d=new Set,f=new Set;function p(e,o){let m=e.stronglyConnectedComponents();function h(e){if(f.has(e))return;f.add(e);let o=(0,t.setFilter)(e,c);if(o.size===1){u.push({kind:`define`,type:(0,n.defined)((0,t.iterableFirst)(o))});return}if(o.size===0&&e.size===1)return;if(o.size===0){u.push({kind:`define`,type:(0,n.defined)((0,t.iterableFirst)(e))});return}if(a===void 0){for(let e of o)u.push({kind:`define`,type:e});return}let l=(0,t.setFilter)(e,a);if(l.size===0)return(0,i.messageError)(`IRNoForwardDeclarableTypeInCycle`,{});for(let e of l)u.push({kind:`forward`,type:e});(0,t.setUnionInto)(d,l);let m=(0,t.setSubtract)(e,l);p(new r.Graph(m,!0,e=>(0,t.setIntersect)(s(e),m)),!1);for(let e of l)u.push({kind:`define`,type:e})}let g=m.findRoots();for(let e of g)m.dfsTraversal(e,l,h)}return p(e.makeGraph(!1,s),!0),new o(u,d)}e.declarationsForGraph=l})),Aa=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.JSONSchemaStore=void 0;var n=Q();e.JSONSchemaStore=class{constructor(){this._schemas=new Map}add(e,t){(0,n.assert)(!this._schemas.has(e),`Cannot set a schema for an address twice`),this._schemas.set(e,t)}get(e,n){return t(this,void 0,void 0,function*(){let t=this._schemas.get(e);if(t!==void 0)return t;n&&console.log(`trying to fetch ${e}`);try{t=yield this.fetch(e)}catch{}if(t===void 0){n&&console.log(`couldn't fetch ${e}`);return}return n&&console.log(`successully fetched ${e}`),this.add(e,t),t})}}})),ja=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.accessorNamesAttributeProducer=e.makeAccessorNames=e.unionMemberName=e.makeUnionMemberNamesAttribute=e.unionMemberNamesTypeAttributeKind=e.makeUnionIdentifierAttribute=e.unionIdentifierTypeAttributeKind=e.getAccessorName=e.enumCaseNames=e.objectPropertyNames=e.lookupKey=e.accessorNamesTypeAttributeKind=void 0;var t=a(),n=na(),r=Q(),i=C();e.accessorNamesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`accessorNames`)}makeInferred(e){}};function o(e,t){if(typeof e==`string`)return[e,!1];let n=e.get(t);if(n!==void 0)return[n,!0];let r=e.get(`*`);if(r!==void 0)return[r,!1]}function s(e,t,n){let r=e.get(t);if(r!==void 0)return o(r,n)}e.lookupKey=s;function c(n,r){let i=e.accessorNamesTypeAttributeKind.tryGetInAttributes(n.getAttributes()),a=n.getProperties();return i===void 0?(0,t.mapMap)(a,e=>void 0):(0,t.mapMap)(a,(e,t)=>s(i,t,r))}e.objectPropertyNames=c;function l(n,r){let i=e.accessorNamesTypeAttributeKind.tryGetInAttributes(n.getAttributes());return i===void 0?(0,t.mapMap)(n.cases.entries(),e=>void 0):(0,t.mapMap)(n.cases.entries(),e=>s(i,e,r))}e.enumCaseNames=l;function u(e,t){let n=e.get(t);return n===void 0?[void 0,!1]:n}e.getAccessorName=u,e.unionIdentifierTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`unionIdentifier`)}combine(e){return(0,t.setUnionManyInto)(new Set,e)}makeInferred(e){return new Set}};var d=0;function f(){let t=e.unionIdentifierTypeAttributeKind.makeAttributes(new Set([d]));return d+=1,t}e.makeUnionIdentifierAttribute=f,e.unionMemberNamesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`unionMemberNames`)}combine(e){let n=new Map;for(let r of e)(0,t.mapMergeInto)(n,r);return n}};function p(n,i){let a=(0,r.defined)(e.unionIdentifierTypeAttributeKind.tryGetInAttributes(n)),o=(0,t.mapFromIterable)(a,e=>i);return e.unionMemberNamesTypeAttributeKind.makeAttributes(o)}e.makeUnionMemberNamesAttribute=p;function m(n,r,a){let s=e.unionIdentifierTypeAttributeKind.tryGetInAttributes(n.getAttributes());if(s===void 0)return[void 0,!1];let c=e.unionMemberNamesTypeAttributeKind.tryGetInAttributes(r.getAttributes());if(c===void 0)return[void 0,!1];let l=new Set,u=new Set;for(let e of s){let t=c.get(e);if(t===void 0)continue;let n=o(t,a);if(n===void 0)continue;let[r,i]=n;i?u.add(r):l.add(r)}let d,f,p=(0,t.iterableFirst)(u);if(p!==void 0)d=u.size,f=!0;else{if(p=(0,t.iterableFirst)(l),p===void 0)return[void 0,!1];d=l.size,f=!1}return(0,i.messageAssert)(d===1,`SchemaMoreThanOneUnionMemberName`,{names:Array.from(l)}),[p,f]}e.unionMemberName=m;function h(e){return typeof e==`string`?!0:(0,r.isStringMap)(e,e=>typeof e==`string`)}function g(e){return typeof e==`string`?e:(0,t.mapFromObject)(e)}function _(e){let n=(0,r.checkStringMap)(e,h);return(0,t.mapMap)((0,t.mapFromObject)(n),g)}e.makeAccessorNames=_;function v(t,n,a,o){if(typeof t!=`object`)return;let s=t[`qt-accessors`];if(s!==void 0){if(o===void 0)return{forType:e.accessorNamesTypeAttributeKind.makeAttributes(_(s))};{let e=f(),t=(0,r.checkArray)(s,h);return(0,i.messageAssert)(o.length===t.length,`SchemaWrongAccessorEntryArrayLength`,{operation:`oneOf`,ref:n.push(`oneOf`)}),{forUnion:e,forCases:t.map(t=>p(e,g(t)))}}}}e.accessorNamesAttributeProducer=v})),Ma=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.enumValuesAttributeProducer=e.enumCaseValues=e.enumValuesTypeAttributeKind=void 0;var t=a(),n=ja(),r=na();e.enumValuesTypeAttributeKind=new class extends r.TypeAttributeKind{constructor(){super(`enumValues`)}makeInferred(e){}};function i(r,i){let a=e.enumValuesTypeAttributeKind.tryGetInAttributes(r.getAttributes());return a===void 0?(0,t.mapMap)(r.cases.entries(),e=>void 0):(0,t.mapMap)(r.cases.entries(),e=>(0,n.lookupKey)(a,e,i))}e.enumCaseValues=i;function o(t,r,i){if(typeof t!=`object`)return;let a=t[`qt-enum-values`];if(a!==void 0)return{forType:e.enumValuesTypeAttributeKind.makeAttributes((0,n.makeAccessorNames)(a))}}e.enumValuesAttributeProducer=o})),Na=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.patternForType=e.patternAttributeProducer=e.patternTypeAttributeKind=e.PatternTypeAttributeKind=e.minMaxLengthForType=e.minMaxValueForType=e.minMaxLengthAttributeProducer=e.minMaxAttributeProducer=e.minMaxLengthTypeAttributeKind=e.minMaxTypeAttributeKind=e.MinMaxConstraintTypeAttributeKind=void 0;var t=na(),n=Q(),r=C();function i(e){let[t,n]=e;if(typeof t==`number`&&typeof n==`number`&&t>n)return(0,r.messageError)(`MiscInvalidMinMaxConstraint`,{min:t,max:n});if(!(t===void 0&&n===void 0))return e}var a=class extends t.TypeAttributeKind{constructor(e,t,n,r){super(e),this._typeKinds=t,this._minSchemaProperty=n,this._maxSchemaProperty=r}get inIdentity(){return!0}combine(e){(0,n.assert)(e.length>0);let[t,r]=e[0];for(let n=1;n<e.length;n++){let[i,a]=e[n];t=typeof t==`number`&&typeof i==`number`?Math.min(t,i):void 0,r=typeof r==`number`&&typeof a==`number`?Math.max(r,a):void 0}return i([t,r])}intersect(e){(0,n.assert)(e.length>0);let[t,r]=e[0];for(let n=1;n<e.length;n++){let[i,a]=e[n];typeof t==`number`&&typeof i==`number`?t=Math.max(t,i):t===void 0&&(t=i),typeof r==`number`&&typeof a==`number`?r=Math.min(r,a):r===void 0&&(r=a)}return i([t,r])}makeInferred(e){}addToSchema(e,t,n){if(this._typeKinds.has(t.kind))return;let[r,i]=n;r!==void 0&&(e[this._minSchemaProperty]=r),i!==void 0&&(e[this._maxSchemaProperty]=i)}stringify([e,t]){return`${e}-${t}`}};e.MinMaxConstraintTypeAttributeKind=a,e.minMaxTypeAttributeKind=new a(`minMax`,new Set([`integer`,`double`]),`minimum`,`maximum`),e.minMaxLengthTypeAttributeKind=new a(`minMaxLength`,new Set([`string`]),`minLength`,`maxLength`);function o(e,t,n){if(typeof e!=`object`)return;let r,i;if(typeof e[t]==`number`&&(r=e[t]),typeof e[n]==`number`&&(i=e[n]),!(r===void 0&&i===void 0))return[r,i]}function s(t,n,r){if(!r.has(`number`)&&!r.has(`integer`))return;let i=o(t,`minimum`,`maximum`);if(i!==void 0)return{forNumber:e.minMaxTypeAttributeKind.makeAttributes(i)}}e.minMaxAttributeProducer=s;function c(t,n,r){if(!r.has(`string`))return;let i=o(t,`minLength`,`maxLength`);if(i!==void 0)return{forString:e.minMaxLengthTypeAttributeKind.makeAttributes(i)}}e.minMaxLengthAttributeProducer=c;function l(t){return e.minMaxTypeAttributeKind.tryGetInAttributes(t.getAttributes())}e.minMaxValueForType=l;function u(t){return e.minMaxLengthTypeAttributeKind.tryGetInAttributes(t.getAttributes())}e.minMaxLengthForType=u;var d=class extends t.TypeAttributeKind{constructor(){super(`pattern`)}get inIdentity(){return!0}combine(e){return(0,n.assert)(e.length>0),e.map(e=>`(${e})`).join(`|`)}intersect(e){}makeInferred(e){}addToSchema(e,t,n){t.kind===`string`&&(e.pattern=n)}};e.PatternTypeAttributeKind=d,e.patternTypeAttributeKind=new d;function f(t,n,r){if(typeof t!=`object`||!r.has(`string`))return;let i=t.pattern;if(typeof i==`string`)return{forString:e.patternTypeAttributeKind.makeAttributes(i)}}e.patternAttributeProducer=f;function p(t){return e.patternTypeAttributeKind.tryGetInAttributes(t.getAttributes())}e.patternForType=p})),Pa=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.JSONSchemaInput=e.schemaTypeDict=e.Ref=e.PathElementKind=void 0;var r=n(Sa()),i=a(),o=wa(),s=Q(),c=fa(),l=fa(),u=na(),d=Aa(),f=C(),p=ma(),m=Fa(),h=ja(),g=Ma(),_=Na(),v=Na(),y=Na(),b=Ca(),x;(function(e){e[e.Root=0]=`Root`,e[e.KeyOrIndex=1]=`KeyOrIndex`,e[e.Type=2]=`Type`,e[e.Object=3]=`Object`})(x=e.PathElementKind||={});function S(e){if(e.kind===x.KeyOrIndex)return e.key}function w(e,t){if(e.kind!==t.kind)return!1;switch(e.kind){case x.Type:return e.index===t.index;case x.KeyOrIndex:return e.key===t.key;default:return!0}}function T(e,t){let n=typeof e==`function`?e():e instanceof A?e:e.canonicalRef;return Object.assign({ref:n},t===void 0?{}:t)}function E(e,t){return Array.isArray(e)?(0,f.messageError)(`SchemaArrayIsInvalidSchema`,T(t)):e===null?(0,f.messageError)(`SchemaNullIsInvalidSchema`,T(t)):typeof e==`object`?e:(0,f.messageError)(`SchemaInvalidJSONSchemaType`,T(t,{type:typeof e}))}function D(e,t){return typeof e==`boolean`?e:E(e,t)}var O=RegExp(`^[0-9]+$`);function k(e){return typeof e==`string`&&(e=new r.default(e)),new r.default(r.default.decode(e.clone().normalize().toString()))}var A=class e{static root(t){return new e((0,i.definedMap)(t,e=>new r.default(e)),[])}static parsePath(e){let t=[];if(e.startsWith(`/`)&&(t.push({kind:x.Root}),e=e.slice(1)),e!==``){let n=e.split(`/`);for(let e=0;e<n.length;e++)t.push({kind:x.KeyOrIndex,key:n[e]})}return t}static parseURI(t,n=!1){n||(t=t.clone());let r=t.fragment();t.fragment(``),(t.host()!==``||t.filename()!==``)&&r===``&&(r=`/`);let i=e.parsePath(r);return new e(t,i)}static parse(t){return e.parseURI(new r.default(t),!0)}constructor(e,t){this.path=t,e===void 0?this.addressURI=void 0:((0,s.assert)(e.fragment()===``,`Ref URI with fragment is not allowed: ${e.toString()}`),this.addressURI=k(e))}get hasAddress(){return this.addressURI!==void 0}get address(){return(0,s.defined)(this.addressURI).toString()}get isRoot(){return this.path.length===1&&this.path[0].kind===x.Root}pushElement(t){let n=Array.from(this.path);return n.push(t),new e(this.addressURI,n)}push(...e){let t=this;for(let n of e)t=t.pushElement({kind:x.KeyOrIndex,key:n});return t}pushObject(){return this.pushElement({kind:x.Object})}pushType(e){return this.pushElement({kind:x.Type,index:e})}resolveAgainst(t){let n=this.addressURI;return t!==void 0&&t.addressURI!==void 0&&(n=n===void 0?t.addressURI:n.absoluteTo(t.addressURI)),new e(n,this.path)}get name(){let e=Array.from(this.path);for(;;){let t=e.pop();if(t===void 0||t.kind===x.Root){let e=this.addressURI===void 0?``:this.addressURI.filename(),t=this.addressURI===void 0?``:this.addressURI.suffix();return e.length>t.length+1&&(e=e.slice(0,e.length-t.length-1)),e===``?`Something`:e}switch(t.kind){case x.KeyOrIndex:if(O.test(t.key))return t.key;break;case x.Type:case x.Object:return(0,s.panic)(`We shouldn't try to get the name of Type or Object refs`);default:return(0,s.assertNever)(t)}}}get definitionName(){let e=(0,i.arrayGetFromEnd)(this.path,2);if(e!==void 0&&S(e)===`definitions`)return S((0,s.defined)((0,i.arrayLast)(this.path)))}toString(){function e(e){switch(e.kind){case x.Root:return``;case x.Type:return`type/${e.index.toString()}`;case x.Object:return`object`;case x.KeyOrIndex:return e.key;default:return(0,s.assertNever)(e)}}return(this.addressURI===void 0?``:this.addressURI.toString())+`#`+this.path.map(e).join(`/`)}lookup(t,n,r){let a=()=>new e(this.addressURI,n),o=n[0];if(o===void 0)return D(t,a);let c=n.slice(1);switch(o.kind){case x.Root:return this.lookup(r,c,r);case x.KeyOrIndex:let e=o.key;if(Array.isArray(t)){if(!/^\d+$/.test(e))return(0,f.messageError)(`SchemaCannotIndexArrayWithNonNumber`,T(a,{actual:e}));let n=parseInt(o.key,10);return n>=t.length?(0,f.messageError)(`SchemaIndexNotInArray`,T(a,{index:n})):this.lookup(t[n],c,r)}else return(0,i.hasOwnProperty)(t,e)?this.lookup(E(t,a)[o.key],c,r):(0,f.messageError)(`SchemaKeyNotInObject`,T(a,{key:e}));case x.Type:return(0,s.panic)(`Cannot look up path that indexes "type"`);case x.Object:return(0,s.panic)(`Cannot look up path that indexes "object"`);default:return(0,s.assertNever)(o)}}lookupRef(e){return this.lookup(e,this.path,e)}equals(t){if(!(t instanceof e))return!1;if(this.addressURI!==void 0&&t.addressURI!==void 0){if(!this.addressURI.equals(t.addressURI))return!1}else if(this.addressURI===void 0!=(t.addressURI===void 0))return!1;let n=this.path.length;if(n!==t.path.length)return!1;for(let e=0;e<n;e++)if(!w(this.path[e],t.path[e]))return!1;return!0}hashCode(){let e=(0,i.hashCodeOf)((0,i.definedMap)(this.addressURI,e=>e.toString()));for(let t of this.path)switch(e=(0,i.addHashCode)(e,t.kind),t.kind){case x.Type:e=(0,i.addHashCode)(e,t.index);break;case x.KeyOrIndex:e=(0,i.addHashCode)(e,(0,i.hashString)(t.key));break;default:break}return e}};e.Ref=A;var j=class e{constructor(e,t,n=!1){this.haveID=n,this.canonicalRef=e,this.virtualRef=t===void 0?e:t}updateWithID(t){if(typeof t!=`string`)return this;let n=A.parse(t),r=this.haveID?n.resolveAgainst(this.virtualRef):n;return this.haveID||(0,f.messageAssert)(r.hasAddress,`SchemaIDMustHaveAddress`,T(this,{id:t})),new e(this.canonicalRef,r,!0)}push(...t){return new e(this.canonicalRef.push(...t),this.virtualRef.push(...t),this.haveID)}pushObject(){return new e(this.canonicalRef.pushObject(),this.virtualRef.pushObject(),this.haveID)}pushType(t){return new e(this.canonicalRef.pushType(t),this.virtualRef.pushType(t),this.haveID)}toString(){return`${this.virtualRef.toString()} (${this.canonicalRef.toString()})`}},M=class{constructor(e){this._ctx=e,this._map=new i.EqualityMap,this._schemaAddressesAdded=new Set}addIDs(e,t){if(e===null)return;if(Array.isArray(e)){for(let n=0;n<e.length;n++)this.addIDs(e[n],t.push(n.toString()));return}if(typeof e!=`object`)return;let n=t,r=e.$id;typeof r==`string`&&(t=t.updateWithID(r)),t.haveID&&(this._ctx.debugPrintSchemaResolving&&console.log(`adding mapping ${t.toString()}`),this._map.set(t.virtualRef,n));for(let n of Object.getOwnPropertyNames(e))this.addIDs(e[n],t.push(n))}addSchema(e,t){return this._schemaAddressesAdded.has(t)?!1:(this.addIDs(e,new j(A.root(t),A.root(void 0))),this._schemaAddressesAdded.add(t),!0)}canonize(e,t){let n=t.resolveAgainst(e.virtualRef),r=this._map.get(n);return r===void 0?new j(n.addressURI===void 0?new A(e.canonicalRef.addressURI,n.path):n,new A(void 0,n.path)):r}};function N(e,t){let n;if(typeof e==`string`)n=new Set([e]);else if(Array.isArray(e)){let r=[];for(let n of e){if(typeof n!=`string`)return(0,f.messageError)(`SchemaTypeElementMustBeString`,T(t,{element:n}));r.push(n)}n=new Set(r)}else return(0,f.messageError)(`SchemaTypeMustBeStringOrStringArray`,T(t,{actual:e}));(0,f.messageAssert)(n.size>0,`SchemaNoTypeSpecified`,T(t));let r=[`null`,`boolean`,`object`,`array`,`number`,`string`,`integer`],a=(0,i.iterableFind)(n,e=>r.indexOf(e)<0);return a===void 0?n:(0,f.messageError)(`SchemaInvalidType`,T(t,{type:a}))}function P(e,t){if(!Array.isArray(e))return(0,f.messageError)(`SchemaRequiredMustBeStringOrStringArray`,T(t,{actual:e}));for(let n of e)if(typeof n!=`string`)return(0,f.messageError)(`SchemaRequiredElementMustBeString`,T(t,{element:n}));return e}e.schemaTypeDict={null:!0,boolean:!0,string:!0,integer:!0,number:!0,array:!0,object:!0};var ee=Object.getOwnPropertyNames(e.schemaTypeDict);function F(e){let t=(0,i.iterableFind)(o.transformedStringTypeTargetTypeKindsMap,([t,{jsonSchema:n}])=>n===e);if(t!==void 0)return t[0]}function I(e,t){return e===void 0?(0,f.messageError)(`SchemaFetchErrorTopLevel`,{address:t}):(0,f.messageError)(`SchemaFetchError`,{address:t,base:e.canonicalRef})}var L=class{constructor(e,t,n){this._ctx=e,this._store=t,this._canonizer=n}tryResolveVirtualRef(e,n,r){return t(this,void 0,void 0,function*(){let t=!1;for(;;){let i=this._canonizer.canonize(e,r),a=i.canonicalRef;(0,s.assert)(a.hasAddress,`Canonical ref can't be resolved without an address`);let o=a.address,c=a.addressURI===void 0?void 0:yield this._store.get(o,this._ctx.debugPrintSchemaResolving);if(c===void 0)return[void 0,i];if(this._canonizer.addSchema(c,o))(0,s.assert)(!t,`We can't add a schema twice`),t=!0;else{let t=this._canonizer.canonize(n,r);return e!==void 0&&(t=new j(new A(i.canonicalRef.addressURI,t.canonicalRef.path),t.virtualRef,t.haveID)),[t.canonicalRef.lookupRef(c),t]}}})}resolveVirtualRef(e,n){return t(this,void 0,void 0,function*(){this._ctx.debugPrintSchemaResolving&&console.log(`resolving ${n.toString()} relative to ${e.toString()}`);let t=yield this.tryResolveVirtualRef(e,e,n),r=t[0];if(r!==void 0)return this._ctx.debugPrintSchemaResolving&&console.log(`resolved to ${t[1].toString()}`),[r,t[1]];let i=new j(e.canonicalRef,new A(e.canonicalRef.addressURI,e.virtualRef.path),e.haveID);return t=yield this.tryResolveVirtualRef(i,e,n),r=t[0],r===void 0?I(e,n.address):(this._ctx.debugPrintSchemaResolving&&console.log(`resolved to ${t[1].toString()}`),[r,t[1]])})}resolveTopLevelRef(e){return t(this,void 0,void 0,function*(){return yield this.resolveVirtualRef(new j(new A(e.addressURI,[])),new A(void 0,e.path))})}};function R(e,n,r,a){return t(this,void 0,void 0,function*(){let d=new i.EqualityMap;function m(e,t){let n=d.get(e.canonicalRef);n!==void 0&&(0,s.assert)(n===t,`Trying to set path again to different type`),d.set(e.canonicalRef,t)}function h(e,r,a,o,s,c=e=>e.toLowerCase()){return t(this,void 0,void 0,function*(){let u=new Set(o),d=(0,i.mapSortBy)((0,i.mapFromObject)(a),(e,t)=>c(t)),p=yield(0,i.mapMapSync)(d,(r,i)=>t(this,void 0,void 0,function*(){let t=e.push(`properties`,i),a=yield _(D(r,t.canonicalRef),t,(0,l.makeNamesTypeAttributes)(i,!0)),o=!u.has(i);return n.makeClassProperty(a,o)})),m;if(s===void 0||s===!0)m=n.getPrimitiveType(`any`);else if(s===!1)m=void 0;else{let t=e.push(`additionalProperties`);m=yield _(D(s,t.canonicalRef),t,(0,l.singularizeTypeNames)(r))}let h=(0,i.setSubtract)(u,p.keys());if(h.size>0){let t=m;if(t===void 0)return(0,f.messageError)(`SchemaAdditionalTypesForbidRequired`,T(e));let r=(0,i.mapFromIterable)(h,e=>n.makeClassProperty(t,!1));(0,i.mapMergeInto)(p,r)}return n.getUniqueObjectType(r,p,m)})}function g(r,d,g){return t(this,void 0,void 0,function*(){let v=Array.isArray(r.enum)?r.enum:void 0,y=(0,i.definedMap)(r.type,e=>N(e,d));function b(e){if(y!==void 0&&!y.has(e))return!1;if(v!==void 0){let t;switch(e){case`null`:t=e=>e===null;break;case`integer`:t=e=>typeof e==`number`&&e===Math.floor(e);break;default:t=t=>typeof t===e;break}return v.find(t)!==void 0}return!0}let x=(0,i.setFilter)(ee,b),S;function C(e,t){let n;if(e===void 0&&S!==void 0)n=S;else{n=[];for(let t of a){let i=t(r,d.canonicalRef,x,e);i!==void 0&&n.push(i)}e===void 0&&(S=n)}for(let e of n)t(e)}function w(e){let t=u.emptyTypeAttributes;return C(void 0,n=>{let r=e(n);r!==void 0&&(t=(0,u.combineTypeAttributes)(`union`,t,r))}),t}function O(e){return r.oneOf===void 0&&(e=(0,u.combineTypeAttributes)(`union`,e,w(({forType:e,forUnion:t,forCases:n})=>((0,s.assert)(t===void 0&&n===void 0,`We can't have attributes for unions and cases if we don't have a union`),e)))),(0,l.modifyTypeNames)(e,e=>{let t=(0,s.defined)(e);if(!t.areInferred)return t;let n=r.title;return typeof n!=`string`&&(n=d.canonicalRef.definitionName),typeof n==`string`?c.TypeNames.make(new Set([n]),new Set,r.$ref!==void 0):t.makeInferred()})}g=O(g);let k=(0,u.makeTypeAttributesInferred)(g);function j(e){let t=F(r.format);return t===void 0?n.getStringType(e,p.StringTypes.unrestricted):n.getPrimitiveType(t,e)}function M(){return t(this,void 0,void 0,function*(){let e=(0,l.singularizeTypeNames)(g),a=r.items,o;if(Array.isArray(a)){let r=d.push(`items`),s=yield(0,i.arrayMapSync)(a,(n,i)=>t(this,void 0,void 0,function*(){let t=r.push(i.toString());return yield _(D(n,t.canonicalRef),t,e)}));o=n.getUnionType(u.emptyTypeAttributes,new Set(s))}else if(typeof a==`object`){let t=d.push(`items`);o=yield _(D(a,t.canonicalRef),t,e)}else if(a!==void 0)return(0,f.messageError)(`SchemaArrayItemsMustBeStringOrArray`,T(d,{actual:a}));else o=n.getPrimitiveType(`any`);return n.addAttributes(o,e),n.getArrayType(u.emptyTypeAttributes,o)})}function I(){return t(this,void 0,void 0,function*(){let e;e=r.required===void 0||typeof r.required==`boolean`?[]:Array.from(P(r.required,d));let t;t=r.properties===void 0?{}:E(r.properties,d.canonicalRef);for(let n of Object.getOwnPropertyNames(t))t[n].required===!0&&e.indexOf(n)<0&&e.push(n);let n=r.additionalProperties;n===void 0&&typeof r.patternProperties==`object`&&(0,i.hasOwnProperty)(r.patternProperties,`.*`)&&(n=r.patternProperties[`.*`]);let a=(0,u.combineTypeAttributes)(`union`,k,w(({forObject:e})=>e)),o=r.quicktypePropertyOrder?r.quicktypePropertyOrder:[];return yield h(d,a,t,e,n,e=>{let t=o.indexOf(e);return t===-1?e.toLowerCase():t})})}function L(e,n){return t(this,void 0,void 0,function*(){let r=d.push(n);return Array.isArray(e)?yield(0,i.arrayMapSync)(e,(e,n)=>t(this,void 0,void 0,function*(){let t=r.push(n.toString());return yield _(D(e,t.canonicalRef),t,(0,u.makeTypeAttributesInferred)(g))})):(0,f.messageError)(`SchemaSetOperationCasesIsNotArray`,T(r,{operation:n,cases:e}))})}let R=n.getUniqueIntersectionType(g,void 0);m(d,R);function z(e,r){return t(this,void 0,void 0,function*(){let t=yield L(e,r),i=(0,u.makeTypeAttributesInferred)(g);r===`oneOf`&&C(e,({forType:e,forUnion:r,forCases:a})=>{if(e!==void 0&&n.addAttributes(R,e),r!==void 0&&(i=(0,u.combineTypeAttributes)(`union`,i,r)),a!==void 0){(0,s.assert)(a.length===t.length,`Number of case attributes doesn't match number of cases`);for(let e=0;e<t.length;e++)n.addAttributes(t[e],a[e])}});let a=n.getUniqueUnionType(i,void 0);return n.setSetOperationMembers(a,new Set(t)),a})}let te=v===void 0&&(y===void 0||y.has(`object`)),ne=v===void 0&&(y===void 0||y.has(`array`)),re=x.has(`string`)&&v!==void 0&&v.find(e=>typeof e==`string`)!==void 0,B=y!==void 0||r.properties!==void 0||r.additionalProperties!==void 0||r.items!==void 0||r.required!==void 0||v!==void 0,V=[];if(B){let e=[],t=w(({forNumber:e})=>e);for(let[r,i]of[[`null`,`null`],[`number`,`double`],[`integer`,`integer`],[`boolean`,`bool`]]){if(!x.has(r))continue;let a=(0,o.isNumberTypeKind)(i)?t:void 0;e.push(n.getPrimitiveType(i,a))}let r=(0,u.combineTypeAttributes)(`union`,k,w(({forString:e})=>e));if(re){let t=v.filter(e=>typeof e==`string`);e.push(n.getStringType(r,p.StringTypes.fromCases(t)))}else x.has(`string`)&&e.push(j(r));ne&&e.push(yield M()),te&&e.push(yield I()),V.push(n.getUniqueUnionType(k,new Set(e)))}if(r.$ref!==void 0){if(typeof r.$ref!=`string`)return(0,f.messageError)(`SchemaRefMustBeString`,T(d,{actual:typeof r.$ref}));let t=A.parse(r.$ref),[n,i]=yield e.resolveVirtualRef(d,t),a=(0,l.modifyTypeNames)(g,e=>(0,s.defined)(e).areInferred?c.TypeNames.make(new Set([i.canonicalRef.name]),new Set,!0):e);V.push(yield _(n,i,a))}return r.allOf!==void 0&&V.push(...yield L(r.allOf,`allOf`)),r.oneOf!==void 0&&V.push(yield z(r.oneOf,`oneOf`)),r.anyOf!==void 0&&V.push(yield z(r.anyOf,`anyOf`)),n.setSetOperationMembers(R,new Set(V)),R})}function _(e,r,i){return t(this,void 0,void 0,function*(){let t=d.get(r.canonicalRef);if(t!==void 0)return t;let a;return typeof e==`boolean`?((0,f.messageAssert)(e===!0,`SchemaFalseNotSupported`,T(r)),a=n.getPrimitiveType(`any`)):(r=r.updateWithID(e.$id),a=yield g(e,r,i)),m(r,a),a})}for(let[t,i]of r){let[r,a]=yield e.resolveTopLevelRef(i),o=yield _(r,a,(0,l.makeNamesTypeAttributes)(t,!1));n.addTopLevel(t,o)}})}function z(e){let t=e.toLowerCase();for(let n of[`.json`,`.schema`])if(t.endsWith(n)){let t=e.slice(0,e.length-n.length);if(t.length>0)return t}return e}function te(e){let t=e.fragment();if(t!==``){let e=t.split(`/`),n=e.length;if(e[n-1]!==``)return z(e[n-1]);if(n>1&&e[n-2]!==``)return z(e[n-2])}let n=e.filename();return n===``?(0,f.messageError)(`DriverCannotInferNameForSchema`,{uri:e.toString()}):z(n)}function ne(e,n,r){return t(this,void 0,void 0,function*(){let t=n.fragment(),a=t.endsWith(`/`);a&&(n=n.clone().fragment(t.slice(0,-1)));let o=A.parseURI(n);o.isRoot&&(a=!1);let s=(yield e.resolveTopLevelRef(o))[0];if(a)return typeof s==`object`?(0,i.mapMap)((0,i.mapFromObject)(s),(e,t)=>o.push(t)):(0,f.messageError)(`SchemaCannotGetTypesFromBoolean`,{ref:o.toString()});{let e;if(typeof s==`object`&&typeof s.title==`string`)e=s.title;else{let t=te(n);e=t===void 0?r:t}return[e,o]}})}var re=class extends d.JSONSchemaStore{constructor(e,t){super(),this._inputs=e,this._delegate=t}fetch(e){return t(this,void 0,void 0,function*(){let t=this._inputs.get(e);return t===void 0?this._delegate===void 0?(0,s.panic)(`Schema URI ${e} requested, but no store given`):yield this._delegate.fetch(e):D((0,s.parseJSON)(t,`JSON Schema`,e),()=>A.root(e))})}};e.JSONSchemaInput=class{constructor(e,t=[],n=[]){this._schemaStore=e,this._additionalSchemaAddresses=n,this.kind=`schema`,this.needSchemaProcessing=!0,this._schemaInputs=new Map,this._schemaSources=[],this._topLevels=new Map,this._needIR=!1,this._attributeProducers=[m.descriptionAttributeProducer,h.accessorNamesAttributeProducer,g.enumValuesAttributeProducer,b.uriSchemaAttributesProducer,_.minMaxAttributeProducer,v.minMaxLengthAttributeProducer,y.patternAttributeProducer].concat(t)}get needIR(){return this._needIR}addTopLevel(e,t){this._topLevels.set(e,t)}addTypes(e,n){return t(this,void 0,void 0,function*(){if(this._schemaSources.length===0)return;let t=this._schemaStore;if(this._schemaInputs.size===0){if(t===void 0)return(0,s.panic)(`Must have a schema store to process JSON Schema`)}else t=this._schemaStore=new re(this._schemaInputs,t);let r=t,i=new M(e);for(let t of this._additionalSchemaAddresses){let n=yield r.get(t,e.debugPrintSchemaResolving);if(n===void 0)return(0,f.messageError)(`SchemaFetchErrorAdditional`,{address:t});i.addSchema(n,t)}let a=new L(e,(0,s.defined)(this._schemaStore),i);for(let[e,t]of this._schemaSources){let n=t.name,r=yield ne(a,e,n);if(Array.isArray(r)){let e;e=this._schemaSources.length===1?n:r[0],this.addTopLevel(e,r[1])}else for(let[e,t]of r)this.addTopLevel(e,t)}yield R(a,n,this._topLevels,this._attributeProducers)})}addTypesSync(){return(0,s.panic)(`addTypesSync not supported in JSONSchemaInput`)}addSource(e){return t(this,void 0,void 0,function*(){return this.addSourceSync(e)})}addSourceSync(e){let{name:t,uris:n,schema:i,isConverted:a}=e;a!==!0&&(this._needIR=!0);let o;if(o=n===void 0?[new r.default(t)]:n.map(e=>{let n=k(e);return n.clone().hash(``).toString()===``&&n.path(t),n}),i===void 0)(0,s.assert)(n!==void 0,`URIs must be given if schema source is not specified`);else for(let e=0;e<o.length;e++){let t=o[e],n=t.clone().hash(``),r=n.path(),a=0;do a>0&&n.path(`${r}-${a}`),a++;while(this._schemaInputs.has(n.toString()));this._schemaInputs.set(n.toString(),i),o[e]=n.hash(t.hash())}for(let t of o)this._schemaSources.push([t,e])}singleStringSchemaSource(){if(!this._schemaSources.every(([e,{schema:t}])=>typeof t==`string`))return;let e=new Set(this._schemaSources.map(([e,{schema:t}])=>t));if(e.size===1)return(0,s.defined)((0,i.iterableFirst)(e))}}})),Fa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.descriptionAttributeProducer=e.propertyDescriptionsTypeAttributeKind=e.descriptionTypeAttributeKind=e.addDescriptionToSchema=void 0;var t=a(),n=na(),r=Pa();function i(e,t){t!==void 0&&(e.description=Array.from(t).join(`
@@ -852,7 +852,7 @@ makeNullableEncoder f m =
852
852
  reverseMap = map.map((k, v) => MapEntry(v, k));
853
853
  return reverseMap;
854
854
  }
855
- }`)}emitSourceStructure(){this.emitFileHeader(),!this._options.justTypes&&!this._options.codersInClass&&this.forEachTopLevel(`leading-and-interposing`,(e,t)=>{let{encoder:n,decoder:r}=(0,d.defined)(this._topLevelDependents.get(t));this.emitLine(this.dartType(e),` `,r,`(String str) => `,this.fromDynamicExpression(e.isNullable,e,`json.decode(str)`),`;`),this.ensureBlankLine(),this.emitLine(`String `,n,`(`,this.dartType(e),` data) => json.encode(`,this.toDynamicExpression(e.isNullable,e,`data`),`);`)}),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this._options.useFreezed?this.emitFreezedClassDefinition(e,t):this.emitClassDefinition(e,t),(e,t)=>this.emitEnumDefinition(e,t),(e,t)=>{}),this._needEnumValues&&this.emitEnumValues()}};e.DartRenderer=S})),oo=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.JSONPythonRenderer=e.PythonRenderer=e.PythonTargetLanguage=e.pythonOptions=void 0;var n=Ba(),r=wa(),i=ra(),o=Ra(),s=Ta(),c=ua(),l=Q(),u=Ea(),d=ha(),f=Ia(),p=a(),m=t(la()),h=[`Any`,`True`,`False`,`None`,`Enum`,`List`,`Dict`,`Optional`,`Union`,`Iterable`,`Type`,`TypeVar`,`T`,`EnumT`],g=`and.as.assert.async.await.bool.break.class.continue.datetime.def.del.dict.elif.else.except.finally.float.for.from.global.if.import.in.int.is.lambda.nonlocal.not.or.pass.print.raise.return.self.str.try.while.with.yield`.split(`.`);e.pythonOptions={features:new i.EnumOption(`python-version`,`Python version`,[[`3.5`,{typeHints:!1,dataClasses:!1}],[`3.6`,{typeHints:!0,dataClasses:!1}],[`3.7`,{typeHints:!0,dataClasses:!0}]],`3.6`),justTypes:new i.BooleanOption(`just-types`,`Classes only`,!1),nicePropertyNames:new i.BooleanOption(`nice-property-names`,`Transform property names to be Pythonic`,!0)},e.PythonTargetLanguage=class extends n.TargetLanguage{getOptions(){return[e.pythonOptions.features,e.pythonOptions.justTypes,e.pythonOptions.nicePropertyNames]}get stringTypeMapping(){let e=new Map,t=`date-time`;return e.set(`date`,t),e.set(`time`,t),e.set(`date-time`,t),e.set(`uuid`,`uuid`),e.set(`integer-string`,`integer-string`),e.set(`bool-string`,`bool-string`),e}get supportsUnionsWithBothNumberTypes(){return!0}get supportsOptionalClassProperties(){return!1}needsTransformerForType(e){return e instanceof r.UnionType?(0,p.iterableSome)(e.members,e=>this.needsTransformerForType(e)):e.kind===`integer-string`||e.kind===`bool-string`}makeRenderer(t,n){let r=(0,i.getOptionValues)(e.pythonOptions,n);return r.justTypes?new T(this,t,r):new A(this,t,r)}};function _(e){let t=m.default.getCategory(e);return[`Lu`,`Ll`,`Lt`,`Lm`,`Lo`,`Nl`].indexOf(t)>=0}function v(e){if(_(e))return!0;let t=m.default.getCategory(e);return[`Mn`,`Mc`,`Nd`,`Pc`].indexOf(t)>=0}function y(e){let t=String.fromCharCode(e).normalize(`NFKC`),n=t.length;if(n===0||!_(t.charCodeAt(0)))return!1;for(let e=1;e<n;e++)if(!v(t.charCodeAt(e)))return!1;return!0}function b(e){let t=String.fromCharCode(e).normalize(`NFKC`),n=t.length;for(let e=0;e<n;e++)if(!v(t.charCodeAt(e)))return!1;return!0}var x=(0,c.utf16LegalizeCharacters)(b);function S(e){let t=(0,c.splitIntoWords)(e);return(0,c.combineWords)(t,x,c.firstUpperWordStyle,c.firstUpperWordStyle,c.allUpperWordStyle,c.allUpperWordStyle,``,y)}function C(e,t){return t?e?c.allUpperWordStyle:c.allLowerWordStyle:c.originalWord}function w(e,t,n){let r=C(t,n),i=n?`_`:``,a=(0,c.splitIntoWords)(e);return(0,c.combineWords)(a,x,r,r,r,r,i,y)}var T=class extends o.ConvenienceRenderer{constructor(e,t,n){super(e,t),this.pyOptions=n,this.imports=new Map,this.declaredTypes=new Set}forbiddenNamesForGlobalNamespace(){return h}forbiddenForObjectProperties(e,t){return{names:g,includeGlobalForbidden:!1}}makeNamedTypeNamer(){return(0,s.funPrefixNamer)(`type`,S)}namerForObjectProperty(){return(0,s.funPrefixNamer)(`property`,e=>w(e,!1,this.pyOptions.nicePropertyNames))}makeUnionMemberNamer(){return null}makeEnumCaseNamer(){return(0,s.funPrefixNamer)(`enum-case`,e=>w(e,!0,this.pyOptions.nicePropertyNames))}get commentLineStart(){return`# `}emitDescriptionBlock(e){e.length===1?this.emitLine(`"""`,e[0],`"""`):this.emitCommentLines(e,``,void 0,`"""`,`"""`)}get needsTypeDeclarationBeforeUse(){return!0}canBeForwardDeclared(e){let t=e.kind;return t===`class`||t===`enum`}emitBlock(e,t){this.emitLine(e),this.indent(t)}string(e){return[`"`,(0,c.stringEscape)(e),`"`]}withImport(e,t){return(this.pyOptions.features.typeHints||e!==`typing`)&&(0,p.mapUpdateInto)(this.imports,e,e=>e?(0,p.setUnionInto)(e,[t]):new Set([t])),t}withTyping(e){return this.withImport(`typing`,e)}namedType(e){let t=this.nameForNamedType(e);return this.declaredTypes.has(e)?t:[`'`,t,`'`]}pythonType(e){let t=(0,f.followTargetType)(e);return(0,d.matchType)(t,e=>this.withTyping(`Any`),e=>`None`,e=>`bool`,e=>`int`,e=>`float`,e=>`str`,e=>[this.withTyping(`List`),`[`,this.pythonType(e.items),`]`],e=>this.namedType(e),e=>[this.withTyping(`Dict`),`[str, `,this.pythonType(e.values),`]`],e=>this.namedType(e),e=>{let[t,n]=(0,d.removeNullFromUnion)(e),r=Array.from(n).map(e=>this.pythonType(e));if(t!==null){let e=[];return!this.getAlphabetizeProperties()&&this.pyOptions.features.dataClasses&&e.push(` = None`),n.size>1?(this.withImport(`typing`,`Union`),[this.withTyping(`Optional`),`[Union[`,(0,p.arrayIntercalate)(`, `,r),`]]`,...e]):[this.withTyping(`Optional`),`[`,(0,l.defined)((0,p.iterableFirst)(r)),`]`,...e]}else return[this.withTyping(`Union`),`[`,(0,p.arrayIntercalate)(`, `,r),`]`]},e=>e.kind===`date-time`?this.withImport(`datetime`,`datetime`):e.kind===`uuid`?this.withImport(`uuid`,`UUID`):(0,l.panic)(`Transformed type ${e.kind} not supported`))}declarationLine(e){return e instanceof r.ClassType?[`class `,this.nameForNamedType(e),`:`]:e instanceof r.EnumType?[`class `,this.nameForNamedType(e),`(`,this.withImport(`enum`,`Enum`),`):`]:(0,l.panic)(`Can't declare type ${e.kind}`)}declareType(e,t){this.emitBlock(this.declarationLine(e),()=>{this.emitDescription(this.descriptionForType(e)),t()}),this.declaredTypes.add(e)}emitClassMembers(e){if(this.pyOptions.features.dataClasses)return;let t=[];this.forEachClassProperty(e,`none`,(e,n,r)=>{t.push([e,this.typeHint(`: `,this.pythonType(r.type))])}),this.emitBlock([`def __init__(self, `,(0,p.arrayIntercalate)(`, `,t),`)`,this.typeHint(` -> None`),`:`],()=>{t.length===0?this.emitLine(`pass`):this.forEachClassProperty(e,`none`,e=>{this.emitLine(`self.`,e,` = `,e)})})}typeHint(...e){return this.pyOptions.features.typeHints?e:[]}typingDecl(e,t){return[e,this.typeHint(`: `,this.withTyping(t))]}typingReturn(e){return this.typeHint(` -> `,this.withTyping(e))}sortClassProperties(e,t){return this.pyOptions.features.dataClasses?(0,p.mapSortBy)(e,e=>e.type instanceof r.UnionType&&(0,d.nullableFromUnion)(e.type)!=null?1:0):super.sortClassProperties(e,t)}emitClass(e){this.pyOptions.features.dataClasses&&this.emitLine(`@`,this.withImport(`dataclasses`,`dataclass`)),this.declareType(e,()=>{this.pyOptions.features.typeHints&&(e.getProperties().size===0?this.emitLine(`pass`):this.forEachClassProperty(e,`none`,(t,n,r)=>{this.emitDescription(this.descriptionForClassProperty(e,n)),this.emitLine(t,this.typeHint(`: `,this.pythonType(r.type)))}),this.ensureBlankLine()),this.emitClassMembers(e)})}emitEnum(e){this.declareType(e,()=>{this.forEachEnumCase(e,`none`,(e,t)=>{this.emitLine([e,` = `,this.string(t)])})})}emitImports(){this.imports.forEach((e,t)=>{this.emitLine(`from `,t,` import `,Array.from(e).join(`, `))})}emitSupportCode(){}emitClosingCode(){}emitSourceStructure(e){let t=this.gatherSource(()=>{this.forEachNamedType([`interposing`,2],e=>this.emitClass(e),e=>this.emitEnum(e),e=>{})}),n=this.gatherSource(()=>this.emitClosingCode()),r=this.gatherSource(()=>this.emitSupportCode());this.leadingComments!==void 0&&this.emitCommentLines(this.leadingComments),this.ensureBlankLine(),this.emitImports(),this.ensureBlankLine(2),this.emitGatheredSource(r),this.ensureBlankLine(2),this.emitGatheredSource(t),this.ensureBlankLine(2),this.emitGatheredSource(n)}};e.PythonRenderer=T;function E(e,t){return typeof t==`function`?e.value===void 0?e.lambda===void 0?{lambda:(0,u.multiWord)(` `,`lambda x:`,t(`x`)),value:void 0}:{lambda:(0,u.multiWord)(` `,`lambda x:`,t([(0,u.parenIfNeeded)(e.lambda),`(x)`])),value:void 0}:{value:t(k(e))}:t.value===void 0?t.lambda===void 0?e:e.value===void 0?e.lambda===void 0?t:{lambda:(0,u.multiWord)(``,`lambda x: `,(0,u.parenIfNeeded)(t.lambda),`(`,(0,u.parenIfNeeded)(e.lambda),`(x))`),value:void 0}:{lambda:t.lambda,value:k(e)}:(0,l.panic)(`Cannot compose into a value`)}var D={value:void 0};function O(e){return e.lambda===void 0?e.value===void 0?(0,u.multiWord)(` `,`lambda x:`,`x`):(0,u.multiWord)(` `,`lambda x:`,e.value):e.value===void 0?e.lambda:(0,u.multiWord)(``,`lambda x: `,(0,u.parenIfNeeded)(e.lambda),`(`,e.value,`)`)}function k(e){return e.value===void 0?(0,l.panic)(`Cannot make value from lambda without value`):e.lambda===void 0?e.value:[(0,u.parenIfNeeded)(e.lambda),`(`,e.value,`)`]}var A=class extends T{constructor(){super(...arguments),this._deserializerFunctions=new Set,this._converterNamer=(0,s.funPrefixNamer)(`converter`,e=>w(e,!1,this.pyOptions.nicePropertyNames)),this._topLevelConverterNames=new Map,this._haveTypeVar=!1,this._haveEnumTypeVar=!1,this._haveDateutil=!1}emitTypeVar(e,t){this.pyOptions.features.typeHints&&this.emitLine(e,` = `,this.withTyping(`TypeVar`),`(`,this.string(e),t,`)`)}typeVar(){return this._haveTypeVar=!0,this.withTyping(`TypeVar`),`T`}enumTypeVar(){return this._haveEnumTypeVar=!0,this.withTyping(`TypeVar`),this.withImport(`enum`,`Enum`),`EnumT`}cast(e,t){return this.pyOptions.features.typeHints?[this.withTyping(`cast`),`(`,e,`, `,t,`)`]:t}emitNoneConverter(){this.emitBlock([`def from_none(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withTyping(`Any`)),`:`],()=>{this.emitLine(`assert x is None`),this.emitLine(`return x`)})}emitBoolConverter(){this.emitBlock([`def from_bool(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> bool`),`:`],()=>{this.emitLine(`assert isinstance(x, bool)`),this.emitLine(`return x`)})}emitIntConverter(){this.emitBlock([`def from_int(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> int`),`:`],()=>{this.emitLine(`assert isinstance(x, int) and not isinstance(x, bool)`),this.emitLine(`return x`)})}emitFromFloatConverter(){this.emitBlock([`def from_float(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> float`),`:`],()=>{this.emitLine(`assert isinstance(x, (float, int)) and not isinstance(x, bool)`),this.emitLine(`return float(x)`)})}emitToFloatConverter(){this.emitBlock([`def to_float(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> float`),`:`],()=>{this.emitLine(`assert isinstance(x, float)`),this.emitLine(`return x`)})}emitStrConverter(){this.emitBlock([`def from_str(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> str`),`:`],()=>{this.emitLine(`assert isinstance(x, `,`str`,`)`),this.emitLine(`return x`)})}emitToEnumConverter(){let e=this.enumTypeVar();this.emitBlock([`def to_enum(c`,this.typeHint(`: `,this.withTyping(`Type`),`[`,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,e),`:`],()=>{this.emitLine(`assert isinstance(x, c)`),this.emitLine(`return x.value`)})}emitListConverter(){let e=this.typeVar();this.emitBlock([`def from_list(f`,this.typeHint(`: `,this.withTyping(`Callable`),`[[`,this.withTyping(`Any`),`], `,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withTyping(`List`),`[`,e,`]`),`:`],()=>{this.emitLine(`assert isinstance(x, list)`),this.emitLine(`return [f(y) for y in x]`)})}emitToClassConverter(){let e=this.typeVar();this.emitBlock([`def to_class(c`,this.typeHint(`: `,this.withTyping(`Type`),`[`,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> dict`),`:`],()=>{this.emitLine(`assert isinstance(x, c)`),this.emitLine(`return `,this.cast(this.withTyping(`Any`),`x`),`.to_dict()`)})}emitDictConverter(){let e=this.typeVar();this.emitBlock([`def from_dict(f`,this.typeHint(`: `,this.withTyping(`Callable`),`[[`,this.withTyping(`Any`),`], `,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withTyping(`Dict`),`[str, `,e,`]`),`:`],()=>{this.emitLine(`assert isinstance(x, dict)`),this.emitLine(`return { k: f(v) for (k, v) in x.items() }`)})}emitUnionConverter(){this.emitMultiline(`def from_union(fs, x):
855
+ }`)}emitSourceStructure(){this.emitFileHeader(),!this._options.justTypes&&!this._options.codersInClass&&this.forEachTopLevel(`leading-and-interposing`,(e,t)=>{let{encoder:n,decoder:r}=(0,d.defined)(this._topLevelDependents.get(t));this.emitLine(this.dartType(e),` `,r,`(String str) => `,this.fromDynamicExpression(e.isNullable,e,`json.decode(str)`),`;`),this.ensureBlankLine(),this.emitLine(`String `,n,`(`,this.dartType(e),` data) => json.encode(`,this.toDynamicExpression(e.isNullable,e,`data`),`);`)}),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this._options.useFreezed?this.emitFreezedClassDefinition(e,t):this.emitClassDefinition(e,t),(e,t)=>this.emitEnumDefinition(e,t),(e,t)=>{}),this._needEnumValues&&this.emitEnumValues()}};e.DartRenderer=S})),oo=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.JSONPythonRenderer=e.PythonRenderer=e.PythonTargetLanguage=e.pythonOptions=void 0;var n=Ba(),r=wa(),i=ra(),o=Ra(),s=Ta(),c=ua(),l=Q(),u=Ea(),d=ha(),f=Ia(),p=a(),m=t(la()),h=[`Any`,`True`,`False`,`None`,`Enum`,`List`,`Dict`,`Optional`,`Union`,`Iterable`,`Type`,`TypeVar`,`T`,`EnumT`],g=`and.as.assert.async.await.bool.break.class.continue.datetime.def.del.dict.elif.else.except.finally.float.for.from.global.if.import.in.int.is.lambda.nonlocal.not.or.pass.print.raise.return.self.str.try.while.with.yield`.split(`.`);e.pythonOptions={features:new i.EnumOption(`python-version`,`Python version`,[[`3.5`,{typeHints:!1,dataClasses:!1}],[`3.6`,{typeHints:!0,dataClasses:!1}],[`3.7`,{typeHints:!0,dataClasses:!0}]],`3.6`),justTypes:new i.BooleanOption(`just-types`,`Classes only`,!1),nicePropertyNames:new i.BooleanOption(`nice-property-names`,`Transform property names to be Pythonic`,!0)},e.PythonTargetLanguage=class extends n.TargetLanguage{getOptions(){return[e.pythonOptions.features,e.pythonOptions.justTypes,e.pythonOptions.nicePropertyNames]}get stringTypeMapping(){let e=new Map,t=`date-time`;return e.set(`date`,t),e.set(`time`,t),e.set(`date-time`,t),e.set(`uuid`,`uuid`),e.set(`integer-string`,`integer-string`),e.set(`bool-string`,`bool-string`),e}get supportsUnionsWithBothNumberTypes(){return!0}get supportsOptionalClassProperties(){return!1}needsTransformerForType(e){return e instanceof r.UnionType?(0,p.iterableSome)(e.members,e=>this.needsTransformerForType(e)):e.kind===`integer-string`||e.kind===`bool-string`}makeRenderer(t,n){let r=(0,i.getOptionValues)(e.pythonOptions,n);return r.justTypes?new T(this,t,r):new A(this,t,r)}};function _(e){let t=m.default.getCategory(e);return[`Lu`,`Ll`,`Lt`,`Lm`,`Lo`,`Nl`].indexOf(t)>=0}function v(e){if(_(e))return!0;let t=m.default.getCategory(e);return[`Mn`,`Mc`,`Nd`,`Pc`].indexOf(t)>=0}function y(e){let t=String.fromCharCode(e).normalize(`NFKC`),n=t.length;if(n===0||!_(t.charCodeAt(0)))return!1;for(let e=1;e<n;e++)if(!v(t.charCodeAt(e)))return!1;return!0}function b(e){let t=String.fromCharCode(e).normalize(`NFKC`),n=t.length;for(let e=0;e<n;e++)if(!v(t.charCodeAt(e)))return!1;return!0}var x=(0,c.utf16LegalizeCharacters)(b);function S(e){let t=(0,c.splitIntoWords)(e);return(0,c.combineWords)(t,x,c.firstUpperWordStyle,c.firstUpperWordStyle,c.allUpperWordStyle,c.allUpperWordStyle,``,y)}function C(e,t){return t?e?c.allUpperWordStyle:c.allLowerWordStyle:c.originalWord}function w(e,t,n){let r=C(t,n),i=n?`_`:``,a=(0,c.splitIntoWords)(e);return(0,c.combineWords)(a,x,r,r,r,r,i,y)}var T=class extends o.ConvenienceRenderer{constructor(e,t,n){super(e,t),this.pyOptions=n,this.imports=new Map,this.declaredTypes=new Set}forbiddenNamesForGlobalNamespace(){return h}forbiddenForObjectProperties(e,t){return{names:g,includeGlobalForbidden:!1}}makeNamedTypeNamer(){return(0,s.funPrefixNamer)(`type`,S)}namerForObjectProperty(){return(0,s.funPrefixNamer)(`property`,e=>w(e,!1,this.pyOptions.nicePropertyNames))}makeUnionMemberNamer(){return null}makeEnumCaseNamer(){return(0,s.funPrefixNamer)(`enum-case`,e=>w(e,!0,this.pyOptions.nicePropertyNames))}get commentLineStart(){return`# `}emitDescriptionBlock(e){e.length===1?this.emitLine(`"""`,e[0],`"""`):this.emitCommentLines(e,``,void 0,`"""`,`"""`)}get needsTypeDeclarationBeforeUse(){return!0}canBeForwardDeclared(e){let t=e.kind;return t===`class`||t===`enum`}emitBlock(e,t){this.emitLine(e),this.indent(t)}string(e){return[`"`,(0,c.stringEscape)(e),`"`]}withImport(e,t){return(this.pyOptions.features.typeHints||e!==`typing`)&&(0,p.mapUpdateInto)(this.imports,e,e=>e?(0,p.setUnionInto)(e,[t]):new Set([t])),t}withTyping(e){return this.withImport(`typing`,e)}namedType(e){let t=this.nameForNamedType(e);return this.declaredTypes.has(e)?t:[`'`,t,`'`]}pythonType(e){let t=(0,f.followTargetType)(e);return(0,d.matchType)(t,e=>this.withTyping(`Any`),e=>`None`,e=>`bool`,e=>`int`,e=>`float`,e=>`str`,e=>[this.withTyping(`List`),`[`,this.pythonType(e.items),`]`],e=>this.namedType(e),e=>[this.withTyping(`Dict`),`[str, `,this.pythonType(e.values),`]`],e=>this.namedType(e),e=>{let[t,n]=(0,d.removeNullFromUnion)(e),r=Array.from(n).map(e=>this.pythonType(e));if(t!==null){let e=[];return!this.getAlphabetizeProperties()&&this.pyOptions.features.dataClasses&&e.push(` = None`),n.size>1?(this.withImport(`typing`,`Union`),[this.withTyping(`Optional`),`[Union[`,(0,p.arrayIntercalate)(`, `,r),`]]`,...e]):[this.withTyping(`Optional`),`[`,(0,l.defined)((0,p.iterableFirst)(r)),`]`,...e]}else return[this.withTyping(`Union`),`[`,(0,p.arrayIntercalate)(`, `,r),`]`]},e=>e.kind===`date-time`?this.withImport(`datetime`,`datetime`):e.kind===`uuid`?this.withImport(`uuid`,`UUID`):(0,l.panic)(`Transformed type ${e.kind} not supported`))}declarationLine(e){return e instanceof r.ClassType?[`class `,this.nameForNamedType(e),`:`]:e instanceof r.EnumType?[`class `,this.nameForNamedType(e),`(`,this.withImport(`enum`,`Enum`),`):`]:(0,l.panic)(`Can't declare type ${e.kind}`)}declareType(e,t){this.emitBlock(this.declarationLine(e),()=>{this.emitDescription(this.descriptionForType(e)),t()}),this.declaredTypes.add(e)}emitClassMembers(e){if(this.pyOptions.features.dataClasses)return;let t=[];this.forEachClassProperty(e,`none`,(e,n,r)=>{t.push([e,this.typeHint(`: `,this.pythonType(r.type))])}),this.emitBlock([`def __init__(self, `,(0,p.arrayIntercalate)(`, `,t),`)`,this.typeHint(` -> None`),`:`],()=>{t.length===0?this.emitLine(`pass`):this.forEachClassProperty(e,`none`,e=>{this.emitLine(`self.`,e,` = `,e)})})}typeHint(...e){return this.pyOptions.features.typeHints?e:[]}typingDecl(e,t){return[e,this.typeHint(`: `,this.withTyping(t))]}typingReturn(e){return this.typeHint(` -> `,this.withTyping(e))}sortClassProperties(e,t){return this.pyOptions.features.dataClasses?(0,p.mapSortBy)(e,e=>+(e.type instanceof r.UnionType&&(0,d.nullableFromUnion)(e.type)!=null)):super.sortClassProperties(e,t)}emitClass(e){this.pyOptions.features.dataClasses&&this.emitLine(`@`,this.withImport(`dataclasses`,`dataclass`)),this.declareType(e,()=>{this.pyOptions.features.typeHints&&(e.getProperties().size===0?this.emitLine(`pass`):this.forEachClassProperty(e,`none`,(t,n,r)=>{this.emitDescription(this.descriptionForClassProperty(e,n)),this.emitLine(t,this.typeHint(`: `,this.pythonType(r.type)))}),this.ensureBlankLine()),this.emitClassMembers(e)})}emitEnum(e){this.declareType(e,()=>{this.forEachEnumCase(e,`none`,(e,t)=>{this.emitLine([e,` = `,this.string(t)])})})}emitImports(){this.imports.forEach((e,t)=>{this.emitLine(`from `,t,` import `,Array.from(e).join(`, `))})}emitSupportCode(){}emitClosingCode(){}emitSourceStructure(e){let t=this.gatherSource(()=>{this.forEachNamedType([`interposing`,2],e=>this.emitClass(e),e=>this.emitEnum(e),e=>{})}),n=this.gatherSource(()=>this.emitClosingCode()),r=this.gatherSource(()=>this.emitSupportCode());this.leadingComments!==void 0&&this.emitCommentLines(this.leadingComments),this.ensureBlankLine(),this.emitImports(),this.ensureBlankLine(2),this.emitGatheredSource(r),this.ensureBlankLine(2),this.emitGatheredSource(t),this.ensureBlankLine(2),this.emitGatheredSource(n)}};e.PythonRenderer=T;function E(e,t){return typeof t==`function`?e.value===void 0?e.lambda===void 0?{lambda:(0,u.multiWord)(` `,`lambda x:`,t(`x`)),value:void 0}:{lambda:(0,u.multiWord)(` `,`lambda x:`,t([(0,u.parenIfNeeded)(e.lambda),`(x)`])),value:void 0}:{value:t(k(e))}:t.value===void 0?t.lambda===void 0?e:e.value===void 0?e.lambda===void 0?t:{lambda:(0,u.multiWord)(``,`lambda x: `,(0,u.parenIfNeeded)(t.lambda),`(`,(0,u.parenIfNeeded)(e.lambda),`(x))`),value:void 0}:{lambda:t.lambda,value:k(e)}:(0,l.panic)(`Cannot compose into a value`)}var D={value:void 0};function O(e){return e.lambda===void 0?e.value===void 0?(0,u.multiWord)(` `,`lambda x:`,`x`):(0,u.multiWord)(` `,`lambda x:`,e.value):e.value===void 0?e.lambda:(0,u.multiWord)(``,`lambda x: `,(0,u.parenIfNeeded)(e.lambda),`(`,e.value,`)`)}function k(e){return e.value===void 0?(0,l.panic)(`Cannot make value from lambda without value`):e.lambda===void 0?e.value:[(0,u.parenIfNeeded)(e.lambda),`(`,e.value,`)`]}var A=class extends T{constructor(){super(...arguments),this._deserializerFunctions=new Set,this._converterNamer=(0,s.funPrefixNamer)(`converter`,e=>w(e,!1,this.pyOptions.nicePropertyNames)),this._topLevelConverterNames=new Map,this._haveTypeVar=!1,this._haveEnumTypeVar=!1,this._haveDateutil=!1}emitTypeVar(e,t){this.pyOptions.features.typeHints&&this.emitLine(e,` = `,this.withTyping(`TypeVar`),`(`,this.string(e),t,`)`)}typeVar(){return this._haveTypeVar=!0,this.withTyping(`TypeVar`),`T`}enumTypeVar(){return this._haveEnumTypeVar=!0,this.withTyping(`TypeVar`),this.withImport(`enum`,`Enum`),`EnumT`}cast(e,t){return this.pyOptions.features.typeHints?[this.withTyping(`cast`),`(`,e,`, `,t,`)`]:t}emitNoneConverter(){this.emitBlock([`def from_none(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withTyping(`Any`)),`:`],()=>{this.emitLine(`assert x is None`),this.emitLine(`return x`)})}emitBoolConverter(){this.emitBlock([`def from_bool(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> bool`),`:`],()=>{this.emitLine(`assert isinstance(x, bool)`),this.emitLine(`return x`)})}emitIntConverter(){this.emitBlock([`def from_int(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> int`),`:`],()=>{this.emitLine(`assert isinstance(x, int) and not isinstance(x, bool)`),this.emitLine(`return x`)})}emitFromFloatConverter(){this.emitBlock([`def from_float(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> float`),`:`],()=>{this.emitLine(`assert isinstance(x, (float, int)) and not isinstance(x, bool)`),this.emitLine(`return float(x)`)})}emitToFloatConverter(){this.emitBlock([`def to_float(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> float`),`:`],()=>{this.emitLine(`assert isinstance(x, float)`),this.emitLine(`return x`)})}emitStrConverter(){this.emitBlock([`def from_str(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> str`),`:`],()=>{this.emitLine(`assert isinstance(x, `,`str`,`)`),this.emitLine(`return x`)})}emitToEnumConverter(){let e=this.enumTypeVar();this.emitBlock([`def to_enum(c`,this.typeHint(`: `,this.withTyping(`Type`),`[`,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,e),`:`],()=>{this.emitLine(`assert isinstance(x, c)`),this.emitLine(`return x.value`)})}emitListConverter(){let e=this.typeVar();this.emitBlock([`def from_list(f`,this.typeHint(`: `,this.withTyping(`Callable`),`[[`,this.withTyping(`Any`),`], `,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withTyping(`List`),`[`,e,`]`),`:`],()=>{this.emitLine(`assert isinstance(x, list)`),this.emitLine(`return [f(y) for y in x]`)})}emitToClassConverter(){let e=this.typeVar();this.emitBlock([`def to_class(c`,this.typeHint(`: `,this.withTyping(`Type`),`[`,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> dict`),`:`],()=>{this.emitLine(`assert isinstance(x, c)`),this.emitLine(`return `,this.cast(this.withTyping(`Any`),`x`),`.to_dict()`)})}emitDictConverter(){let e=this.typeVar();this.emitBlock([`def from_dict(f`,this.typeHint(`: `,this.withTyping(`Callable`),`[[`,this.withTyping(`Any`),`], `,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withTyping(`Dict`),`[str, `,e,`]`),`:`],()=>{this.emitLine(`assert isinstance(x, dict)`),this.emitLine(`return { k: f(v) for (k, v) in x.items() }`)})}emitUnionConverter(){this.emitMultiline(`def from_union(fs, x):
856
856
  for f in fs:
857
857
  try:
858
858
  return f(x)
@@ -862,9 +862,9 @@ makeNullableEncoder f m =
862
862
  import Data.Aeson.Types (emptyObject)
863
863
  import Data.ByteString.Lazy (ByteString)
864
864
  import Data.HashMap.Strict (HashMap)
865
- import Data.Text (Text)`),this._options.useList||this.emitLine(`import Data.Vector (Vector)`)),this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitTopLevelDefinition(e,t),e=>this.namedTypeToNameForTopLevel(e)===void 0),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClassDefinition(e,t),(e,t)=>this.emitEnumDefinition(e,t),(e,t)=>this.emitUnionDefinition(e,t)),this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitTopLevelFunctions(t)),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClassFunctions(e,t),(e,t)=>this.emitEnumFunctions(e,t),(e,t)=>this.emitUnionFunctions(e,t)),!this._options.justTypes&&this.ensureBlankLine()}};e.HaskellRenderer=h})),lo=i(((e,t)=>{(function(){var n,r=`4.17.21`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c=`__lodash_hash_undefined__`,l=500,u=`__lodash_placeholder__`,d=1,f=2,p=4,m=1,h=2,g=1,_=2,v=4,y=8,b=16,x=32,S=64,C=128,w=256,T=512,E=30,D=`...`,O=800,k=16,A=1,j=2,M=3,N=1/0,P=9007199254740991,ee=17976931348623157e292,F=NaN,I=4294967295,L=I-1,R=I>>>1,z=[[`ary`,C],[`bind`,g],[`bindKey`,_],[`curry`,y],[`curryRight`,b],[`flip`,T],[`partial`,x],[`partialRight`,S],[`rearg`,w]],te=`[object Arguments]`,ne=`[object Array]`,re=`[object AsyncFunction]`,B=`[object Boolean]`,V=`[object Date]`,ie=`[object DOMException]`,ae=`[object Error]`,H=`[object Function]`,oe=`[object GeneratorFunction]`,U=`[object Map]`,se=`[object Number]`,ce=`[object Null]`,le=`[object Object]`,ue=`[object Promise]`,de=`[object Proxy]`,fe=`[object RegExp]`,W=`[object Set]`,G=`[object String]`,pe=`[object Symbol]`,me=`[object Undefined]`,K=`[object WeakMap]`,q=`[object WeakSet]`,he=`[object ArrayBuffer]`,ge=`[object DataView]`,J=`[object Float32Array]`,_e=`[object Float64Array]`,ve=`[object Int8Array]`,ye=`[object Int16Array]`,Y=`[object Int32Array]`,be=`[object Uint8Array]`,X=`[object Uint8ClampedArray]`,xe=`[object Uint16Array]`,Se=`[object Uint32Array]`,Ce=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Te=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Oe=RegExp(Ee.source),ke=RegExp(De.source),Ae=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),Re=/^\s+/,ze=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ve=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,Ke=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,$e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt=`\\ud800-\\udfff`,rt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,it=`\\u2700-\\u27bf`,at=`a-z\\xdf-\\xf6\\xf8-\\xff`,ot=`\\xac\\xb1\\xd7\\xf7`,st=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ct=`\\u2000-\\u206f`,lt=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,ut=`A-Z\\xc0-\\xd6\\xd8-\\xde`,dt=`\\ufe0e\\ufe0f`,ft=ot+st+ct+lt,pt=`['’]`,mt=`[`+nt+`]`,ht=`[`+ft+`]`,gt=`[`+rt+`]`,_t=`\\d+`,vt=`[`+it+`]`,yt=`[`+at+`]`,bt=`[^`+nt+ft+_t+it+at+ut+`]`,xt=`\\ud83c[\\udffb-\\udfff]`,St=`(?:`+gt+`|`+xt+`)`,Ct=`[^`+nt+`]`,wt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Tt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Et=`[`+ut+`]`,Dt=`\\u200d`,Ot=`(?:`+yt+`|`+bt+`)`,kt=`(?:`+Et+`|`+bt+`)`,At=`(?:`+pt+`(?:d|ll|m|re|s|t|ve))?`,jt=`(?:`+pt+`(?:D|LL|M|RE|S|T|VE))?`,Mt=St+`?`,Nt=`[`+dt+`]?`,Pt=`(?:`+Dt+`(?:`+[Ct,wt,Tt].join(`|`)+`)`+Nt+Mt+`)*`,Ft=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,It=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Lt=Nt+Mt+Pt,Rt=`(?:`+[vt,wt,Tt].join(`|`)+`)`+Lt,zt=`(?:`+[Ct+gt+`?`,gt,wt,Tt,mt].join(`|`)+`)`,Bt=RegExp(pt,`g`),Vt=RegExp(gt,`g`),Ht=RegExp(xt+`(?=`+xt+`)|`+zt+Lt,`g`),Ut=RegExp([Et+`?`+yt+`+`+At+`(?=`+[ht,Et,`$`].join(`|`)+`)`,kt+`+`+jt+`(?=`+[ht,Et+Ot,`$`].join(`|`)+`)`,Et+`?`+Ot+`+`+At,Et+`+`+jt,It,Ft,_t,Rt].join(`|`),`g`),Wt=RegExp(`[`+Dt+nt+rt+dt+`]`),Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),qt=-1,Jt={};Jt[J]=Jt[_e]=Jt[ve]=Jt[ye]=Jt[Y]=Jt[be]=Jt[X]=Jt[xe]=Jt[Se]=!0,Jt[te]=Jt[ne]=Jt[he]=Jt[B]=Jt[ge]=Jt[V]=Jt[ae]=Jt[H]=Jt[U]=Jt[se]=Jt[le]=Jt[fe]=Jt[W]=Jt[G]=Jt[K]=!1;var Yt={};Yt[te]=Yt[ne]=Yt[he]=Yt[ge]=Yt[B]=Yt[V]=Yt[J]=Yt[_e]=Yt[ve]=Yt[ye]=Yt[Y]=Yt[U]=Yt[se]=Yt[le]=Yt[fe]=Yt[W]=Yt[G]=Yt[pe]=Yt[be]=Yt[X]=Yt[xe]=Yt[Se]=!0,Yt[ae]=Yt[H]=Yt[K]=!1;var Xt={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Zt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Qt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},$t={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},en=parseFloat,tn=parseInt,nn=typeof global==`object`&&global&&global.Object===Object&&global,rn=typeof self==`object`&&self&&self.Object===Object&&self,an=nn||rn||Function(`return this`)(),on=typeof e==`object`&&e&&!e.nodeType&&e,sn=on&&typeof t==`object`&&t&&!t.nodeType&&t,cn=sn&&sn.exports===on,ln=cn&&nn.process,un=function(){try{return sn&&sn.require&&sn.require(`util`).types||ln&&ln.binding&&ln.binding(`util`)}catch{}}(),dn=un&&un.isArrayBuffer,fn=un&&un.isDate,pn=un&&un.isMap,mn=un&&un.isRegExp,hn=un&&un.isSet,gn=un&&un.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function vn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function yn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function bn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function xn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Sn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Cn(e,t){return!!(e!=null&&e.length)&&Fn(e,t,0)>-1}function wn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Tn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function En(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Dn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function On(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function kn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var An=zn(`length`);function jn(e){return e.split(``)}function Mn(e){return e.match(Ue)||[]}function Nn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Pn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Fn(e,t,n){return t===t?dr(e,t,n):Pn(e,Ln,n)}function In(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Ln(e){return e!==e}function Rn(e,t){var n=e==null?0:e.length;return n?Un(e,t)/n:F}function zn(e){return function(t){return t==null?n:t[e]}}function Bn(e){return function(t){return e==null?n:e[t]}}function Vn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Hn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Un(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Wn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gn(e,t){return Tn(t,function(t){return[t,e[t]]})}function Kn(e){return e&&e.slice(0,hr(e)+1).replace(Re,``)}function qn(e){return function(t){return e(t)}}function Jn(e,t){return Tn(t,function(t){return e[t]})}function Yn(e,t){return e.has(t)}function Xn(e,t){for(var n=-1,r=e.length;++n<r&&Fn(t,e[n],0)>-1;);return n}function Zn(e,t){for(var n=e.length;n--&&Fn(t,e[n],0)>-1;);return n}function Qn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $n=Bn(Xt),er=Bn(Zt);function tr(e){return`\\`+$t[e]}function nr(e,t){return e==null?n:e[t]}function rr(e){return Wt.test(e)}function ir(e){return Gt.test(e)}function ar(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function or(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function sr(e,t){return function(n){return e(t(n))}}function cr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===u)&&(e[n]=u,a[i++]=n)}return a}function lr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function ur(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function dr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function fr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function pr(e){return rr(e)?_r(e):An(e)}function mr(e){return rr(e)?vr(e):jn(e)}function hr(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var gr=Bn(Qt);function _r(e){for(var t=Ht.lastIndex=0;Ht.test(e);)++t;return t}function vr(e){return e.match(Ht)||[]}function yr(e){return e.match(Ut)||[]}var br=(function e(t){t=t==null?an:br.defaults(an.Object(),t,br.pick(an,Kt));var ze=t.Array,Ue=t.Date,nt=t.Error,rt=t.Function,it=t.Math,at=t.Object,ot=t.RegExp,st=t.String,ct=t.TypeError,lt=ze.prototype,ut=rt.prototype,dt=at.prototype,ft=t[`__core-js_shared__`],pt=ut.toString,mt=dt.hasOwnProperty,ht=0,gt=function(){var e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),_t=dt.toString,vt=pt.call(at),yt=an._,bt=ot(`^`+pt.call(mt).replace(Ie,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),xt=cn?t.Buffer:n,St=t.Symbol,Ct=t.Uint8Array,wt=xt?xt.allocUnsafe:n,Tt=sr(at.getPrototypeOf,at),Et=at.create,Dt=dt.propertyIsEnumerable,Ot=lt.splice,kt=St?St.isConcatSpreadable:n,At=St?St.iterator:n,jt=St?St.toStringTag:n,Mt=function(){try{var e=qo(at,`defineProperty`);return e({},``,{}),e}catch{}}(),Nt=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Pt=Ue&&Ue.now!==an.Date.now&&Ue.now,Ft=t.setTimeout!==an.setTimeout&&t.setTimeout,It=it.ceil,Lt=it.floor,Rt=at.getOwnPropertySymbols,zt=xt?xt.isBuffer:n,Ht=t.isFinite,Ut=lt.join,Wt=sr(at.keys,at),Gt=it.max,Xt=it.min,Zt=Ue.now,Qt=t.parseInt,$t=it.random,nn=lt.reverse,rn=qo(t,`DataView`),on=qo(t,`Map`),sn=qo(t,`Promise`),ln=qo(t,`Set`),un=qo(t,`WeakMap`),An=qo(at,`create`),jn=un&&new un,Bn={},dr=Ms(rn),_r=Ms(on),vr=Ms(sn),xr=Ms(ln),Sr=Ms(un),Cr=St?St.prototype:n,wr=Cr?Cr.valueOf:n,Tr=Cr?Cr.toString:n;function Z(e){if(Tu(e)&&!cu(e)&&!(e instanceof kr)){if(e instanceof Or)return e;if(mt.call(e,`__wrapped__`))return Ps(e)}return new Or(e)}var Er=function(){function e(){}return function(t){if(!wu(t))return{};if(Et)return Et(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Dr(){}function Or(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}Z.templateSettings={escape:Ae,evaluate:je,interpolate:Me,variable:``,imports:{_:Z}},Z.prototype=Dr.prototype,Z.prototype.constructor=Z,Or.prototype=Er(Dr.prototype),Or.prototype.constructor=Or;function kr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function Ar(){var e=new kr(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e}function jr(){if(this.__filtered__){var e=new kr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Mr(){var e=this.__wrapped__.value(),t=this.__dir__,n=cu(e),r=t<0,i=n?e.length:0,a=Qo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Xt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return za(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==j)g=b;else if(!b){if(y==A)continue outer;break outer}}m[f++]=g}return m}kr.prototype=Er(Dr.prototype),kr.prototype.constructor=kr;function Nr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pr(){this.__data__=An?An(null):{},this.size=0}function Fr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ir(e){var t=this.__data__;if(An){var r=t[e];return r===c?n:r}return mt.call(t,e)?t[e]:n}function Lr(e){var t=this.__data__;return An?t[e]!==n:mt.call(t,e)}function Rr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=An&&t===n?c:t,this}Nr.prototype.clear=Pr,Nr.prototype.delete=Fr,Nr.prototype.get=Ir,Nr.prototype.has=Lr,Nr.prototype.set=Rr;function zr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function Vr(e){var t=this.__data__,n=fi(t,e);return n<0?!1:(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)}function Hr(e){var t=this.__data__,r=fi(t,e);return r<0?n:t[r][1]}function Ur(e){return fi(this.__data__,e)>-1}function Wr(e,t){var n=this.__data__,r=fi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}zr.prototype.clear=Br,zr.prototype.delete=Vr,zr.prototype.get=Hr,zr.prototype.has=Ur,zr.prototype.set=Wr;function Gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kr(){this.size=0,this.__data__={hash:new Nr,map:new(on||zr),string:new Nr}}function qr(e){var t=Go(this,e).delete(e);return this.size-=t?1:0,t}function Jr(e){return Go(this,e).get(e)}function Yr(e){return Go(this,e).has(e)}function Xr(e,t){var n=Go(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Gr.prototype.clear=Kr,Gr.prototype.delete=qr,Gr.prototype.get=Jr,Gr.prototype.has=Yr,Gr.prototype.set=Xr;function Zr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Gr;++t<n;)this.add(e[t])}function Qr(e){return this.__data__.set(e,c),this}function $r(e){return this.__data__.has(e)}Zr.prototype.add=Zr.prototype.push=Qr,Zr.prototype.has=$r;function ei(e){this.size=(this.__data__=new zr(e)).size}function ti(){this.__data__=new zr,this.size=0}function ni(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ri(e){return this.__data__.get(e)}function ii(e){return this.__data__.has(e)}function ai(e,t){var n=this.__data__;if(n instanceof zr){var r=n.__data__;if(!on||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gr(r)}return n.set(e,t),this.size=n.size,this}ei.prototype.clear=ti,ei.prototype.delete=ni,ei.prototype.get=ri,ei.prototype.has=ii,ei.prototype.set=ai;function oi(e,t){var n=cu(e),r=!n&&su(e),i=!n&&!r&&pu(e),a=!n&&!r&&!i&&Bu(e),o=n||r||i||a,s=o?Wn(e.length,st):[],c=s.length;for(var l in e)(t||mt.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||os(l,c)))&&s.push(l);return s}function si(e){var t=e.length;return t?e[va(0,t-1)]:n}function ci(e,t){return ks(io(e),vi(t,0,e.length))}function li(e){return ks(io(e))}function ui(e,t,r){(r!==n&&!iu(e[t],r)||r===n&&!(t in e))&&gi(e,t,r)}function di(e,t,r){var i=e[t];(!(mt.call(e,t)&&iu(i,r))||r===n&&!(t in e))&&gi(e,t,r)}function fi(e,t){for(var n=e.length;n--;)if(iu(e[n][0],t))return n;return-1}function pi(e,t,n,r){return wi(e,function(e,i,a){t(r,e,n(e),a)}),r}function mi(e,t){return e&&ao(t,Sd(t),e)}function hi(e,t){return e&&ao(t,Cd(t),e)}function gi(e,t,n){t==`__proto__`&&Mt?Mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function _i(e,t){for(var r=-1,i=t.length,a=ze(i),o=e==null;++r<i;)a[r]=o?n:gd(e,t[r]);return a}function vi(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function yi(e,t,r,i,a,o){var s,c=t&d,l=t&f,u=t&p;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!wu(e))return e;var m=cu(e);if(m){if(s=ts(e),!c)return io(e,s)}else{var h=Zo(e),g=h==H||h==oe;if(pu(e))return Ja(e,c);if(h==le||h==te||g&&!a){if(s=l||g?{}:ns(e),!c)return l?so(e,hi(s,e)):oo(e,mi(s,e))}else{if(!Yt[h])return a?e:{};s=rs(e,h,c)}}o||=new ei;var _=o.get(e);if(_)return _;o.set(e,s),Lu(e)?e.forEach(function(n){s.add(yi(n,t,r,n,e,o))}):Eu(e)&&e.forEach(function(n,i){s.set(i,yi(n,t,r,i,e,o))});var v=m?n:(u?l?Vo:Bo:l?Cd:Sd)(e);return yn(v||e,function(n,i){v&&(i=n,n=e[i]),di(s,i,yi(n,t,r,i,e,o))}),s}function bi(e){var t=Sd(e);return function(n){return xi(n,e,t)}}function xi(e,t,r){var i=r.length;if(e==null)return!i;for(e=at(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function Si(e,t,r){if(typeof e!=`function`)throw new ct(o);return Ts(function(){e.apply(n,r)},t)}function Ci(e,t,n,r){var a=-1,o=Cn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Tn(t,qn(n))),r?(o=wn,s=!1):t.length>=i&&(o=Yn,s=!1,t=new Zr(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var wi=uo(Ni),Ti=uo(Pi,!0);function Ei(e,t){var n=!0;return wi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Di(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!zu(s):r(s,c)))var c=s,l=o}return l}function Oi(e,t,r,i){var a=e.length;for(r=Ju(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Ju(i),i<0&&(i+=a),i=r>i?0:Yu(i);r<i;)e[r++]=t;return e}function ki(e,t){var n=[];return wi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ai(e,t,n,r,i){var a=-1,o=e.length;for(n||=as,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Ai(s,t-1,n,r,i):En(i,s):r||(i[i.length]=s)}return i}var ji=fo(),Mi=fo(!0);function Ni(e,t){return e&&ji(e,t,Sd)}function Pi(e,t){return e&&Mi(e,t,Sd)}function Fi(e,t){return Sn(t,function(t){return xu(e[t])})}function Ii(e,t){t=Wa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[js(t[r++])];return r&&r==i?e:n}function Li(e,t,n){var r=t(e);return cu(e)?r:En(r,n(e))}function Ri(e){return e==null?e===n?me:ce:jt&&jt in at(e)?Jo(e):ys(e)}function zi(e,t){return e>t}function Bi(e,t){return e!=null&&mt.call(e,t)}function Vi(e,t){return e!=null&&t in at(e)}function Hi(e,t,n){return e>=Xt(t,n)&&e<Gt(t,n)}function Ui(e,t,r){for(var i=r?wn:Cn,a=e[0].length,o=e.length,s=o,c=ze(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Tn(d,qn(t))),l=Xt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Zr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Yn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Yn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Wi(e,t,n,r){return Ni(e,function(e,i,a){t(r,n(e),i,a)}),r}function Gi(e,t,r){t=Wa(t,e),e=xs(e,t);var i=e==null?e:e[js(ac(t))];return i==null?n:_n(i,e,r)}function Ki(e){return Tu(e)&&Ri(e)==te}function qi(e){return Tu(e)&&Ri(e)==he}function Ji(e){return Tu(e)&&Ri(e)==V}function Yi(e,t,n,r,i){return e===t?!0:e==null||t==null||!Tu(e)&&!Tu(t)?e!==e&&t!==t:Xi(e,t,n,r,Yi,i)}function Xi(e,t,n,r,i,a){var o=cu(e),s=cu(t),c=o?ne:Zo(e),l=s?ne:Zo(t);c=c==te?le:c,l=l==te?le:l;var u=c==le,d=l==le,f=c==l;if(f&&pu(e)){if(!pu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new ei,o||Bu(e)?Io(e,t,n,r,i,a):Lo(e,t,c,n,r,i,a);if(!(n&m)){var p=u&&mt.call(e,`__wrapped__`),h=d&&mt.call(t,`__wrapped__`);if(p||h){var g=p?e.value():e,_=h?t.value():t;return a||=new ei,i(g,_,n,r,a)}}return f?(a||=new ei,Ro(e,t,n,r,i,a)):!1}function Zi(e){return Tu(e)&&Zo(e)==U}function Qi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=at(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new ei;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Yi(d,u,m|h,i,f):p))return!1}}return!0}function $i(e){return!wu(e)||ds(e)?!1:(xu(e)?bt:Xe).test(Ms(e))}function ea(e){return Tu(e)&&Ri(e)==fe}function Q(e){return Tu(e)&&Zo(e)==W}function ta(e){return Tu(e)&&Cu(e.length)&&!!Jt[Ri(e)]}function na(e){return typeof e==`function`?e:e==null?jf:typeof e==`object`?cu(e)?ca(e[0],e[1]):sa(e):Wf(e)}function ra(e){if(!ps(e))return Wt(e);var t=[];for(var n in at(e))mt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ia(e){if(!wu(e))return vs(e);var t=ps(e),n=[];for(var r in e)r==`constructor`&&(t||!mt.call(e,r))||n.push(r);return n}function aa(e,t){return e<t}function oa(e,t){var n=-1,r=uu(e)?ze(e.length):[];return wi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function sa(e){var t=Ko(e);return t.length==1&&t[0][2]?hs(t[0][0],t[0][1]):function(n){return n===e||Qi(n,e,t)}}function ca(e,t){return cs(e)&&ms(t)?hs(js(e),t):function(r){var i=gd(r,e);return i===n&&i===t?vd(r,e):Yi(t,i,m|h)}}function la(e,t,r,i,a){e!==t&&ji(t,function(o,s){if(a||=new ei,wu(o))ua(e,t,s,r,la,i,a);else{var c=i?i(Cs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ui(e,s,c)}},Cd)}function ua(e,t,r,i,a,o,s){var c=Cs(e,r),l=Cs(t,r),u=s.get(l);if(u){ui(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=cu(l),m=!p&&pu(l),h=!p&&!m&&Bu(l);d=l,p||m||h?cu(c)?d=c:du(c)?d=io(c):m?(f=!1,d=Ja(l,!0)):h?(f=!1,d=$a(l,!0)):d=[]:Pu(l)||su(l)?(d=c,su(c)?d=Zu(c):(!wu(c)||xu(c))&&(d=ns(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ui(e,r,d)}function da(e,t){var r=e.length;if(r)return t+=t<0?r:0,os(t,r)?e[t]:n}function fa(e,t,n){t=t.length?Tn(t,function(e){return cu(e)?function(t){return Ii(t,e.length===1?e[0]:e)}:e}):[jf];var r=-1;return t=Tn(t,qn($())),Hn(oa(e,function(e,n,i){return{criteria:Tn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return to(e,t,n)})}function pa(e,t){return ma(e,t,function(t,n){return vd(e,n)})}function ma(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ii(e,o);n(s,o)&&wa(a,Wa(o,e),s)}return a}function ha(e){return function(t){return Ii(t,e)}}function ga(e,t,n,r){var i=r?In:Fn,a=-1,o=t.length,s=e;for(e===t&&(t=io(t)),n&&(s=Tn(e,qn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Ot.call(s,c,1),Ot.call(e,c,1);return e}function _a(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;os(i)?Ot.call(e,i,1):Ia(e,i)}}return e}function va(e,t){return e+Lt($t()*(t-e+1))}function ya(e,t,n,r){for(var i=-1,a=Gt(It((t-e)/(n||1)),0),o=ze(a);a--;)o[r?a:++i]=e,e+=n;return o}function ba(e,t){var n=``;if(!e||t<1||t>P)return n;do t%2&&(n+=e),t=Lt(t/2),t&&(e+=e);while(t);return n}function xa(e,t){return Es(bs(e,t,jf),e+``)}function Sa(e){return si(Vd(e))}function Ca(e,t){var n=Vd(e);return ks(n,vi(t,0,n.length))}function wa(e,t,r,i){if(!wu(e))return e;t=Wa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=js(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=wu(d)?d:os(t[a+1])?[]:{})}di(c,l,u),c=c[l]}return e}var Ta=jn?function(e,t){return jn.set(e,t),e}:jf,Ea=Mt?function(e,t){return Mt(e,`toString`,{configurable:!0,enumerable:!1,value:Df(t),writable:!0})}:jf;function Da(e){return ks(Vd(e))}function Oa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ze(i);++r<i;)a[r]=e[r+t];return a}function ka(e,t){var n;return wi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Aa(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=R){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!zu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ja(e,t,jf,n)}function ja(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=zu(t),u=t===n;a<o;){var d=Lt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=zu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Xt(o,L)}function Ma(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!iu(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Na(e){return typeof e==`number`?e:zu(e)?F:+e}function Pa(e){if(typeof e==`string`)return e;if(cu(e))return Tn(e,Pa)+``;if(zu(e))return Tr?Tr.call(e):``;var t=e+``;return t==`0`&&1/e==-N?`-0`:t}function Fa(e,t,n){var r=-1,a=Cn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=wn;else if(o>=i){var u=t?null:Ao(e);if(u)return lr(u);s=!1,a=Yn,l=new Zr}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Ia(e,t){return t=Wa(t,e),e=xs(e,t),e==null||delete e[js(ac(t))]}function La(e,t,n,r){return wa(e,t,n(Ii(e,t)),r)}function Ra(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Oa(e,r?0:a,r?a+1:i):Oa(e,r?a+1:0,r?i:a)}function za(e,t){var n=e;return n instanceof kr&&(n=n.value()),Dn(t,function(e,t){return t.func.apply(t.thisArg,En([e],t.args))},n)}function Ba(e,t,n){var r=e.length;if(r<2)return r?Fa(e[0]):[];for(var i=-1,a=ze(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Ci(a[i]||o,e[s],t,n));return Fa(Ai(a,1),t,n)}function Va(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ha(e){return du(e)?e:[]}function Ua(e){return typeof e==`function`?e:jf}function Wa(e,t){return cu(e)?e:cs(e,t)?[e]:As($u(e))}var Ga=xa;function Ka(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Oa(e,t,r)}var qa=Nt||function(e){return an.clearTimeout(e)};function Ja(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Ya(e){var t=new e.constructor(e.byteLength);return new Ct(t).set(new Ct(e)),t}function Xa(e,t){var n=t?Ya(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Za(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}function Qa(e){return wr?at(wr.call(e)):{}}function $a(e,t){var n=t?Ya(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=zu(e),s=t!==n,c=t===null,l=t===t,u=zu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function to(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=eo(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function no(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Gt(a-o,0),u=ze(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function ro(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Gt(a-s,0),d=ze(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function io(e,t){var n=-1,r=e.length;for(t||=ze(r);++n<r;)t[n]=e[n];return t}function ao(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?gi(r,c,l):di(r,c,l)}return r}function oo(e,t){return ao(e,Yo(e),t)}function so(e,t){return ao(e,Xo(e),t)}function co(e,t){return function(n,r){var i=cu(n)?vn:pi,a=t?t():{};return i(n,e,$(r,2),a)}}function lo(e){return xa(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&ss(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=at(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function uo(e,t){return function(n,r){if(n==null)return n;if(!uu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=at(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function fo(e){return function(t,n,r){for(var i=-1,a=at(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function po(e,t,n){var r=t&g,i=go(e);function a(){return(this&&this!==an&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function mo(e){return function(t){t=$u(t);var r=rr(t)?mr(t):n,i=r?r[0]:t.charAt(0),a=r?Ka(r,1).join(``):t.slice(1);return i[e]()+a}}function ho(e){return function(t){return Dn(Sf(Jd(t).replace(Bt,``)),e,``)}}function go(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Er(e.prototype),r=e.apply(n,t);return wu(r)?r:n}}function _o(e,t,r){var i=go(e);function a(){for(var o=arguments.length,s=ze(o),c=o,l=Wo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:cr(s,l);return o-=u.length,o<r?Oo(e,t,bo,a.placeholder,n,s,u,n,n,r-o):_n(this&&this!==an&&this instanceof a?i:e,this,s)}return a}function vo(e){return function(t,r,i){var a=at(t);if(!uu(t)){var o=$(r,3);t=Sd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function yo(e){return zo(function(t){var r=t.length,i=r,a=Or.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new ct(o);if(a&&!c&&Uo(s)==`wrapper`)var c=new Or([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=Uo(s),u=l==`wrapper`?Ho(s):n;c=u&&us(u[0])&&u[1]==(C|y|x|w)&&!u[4].length&&u[9]==1?c[Uo(u[0])].apply(c,u[3]):s.length==1&&us(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&cu(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function bo(e,t,r,i,a,o,s,c,l,u){var d=t&C,f=t&g,p=t&_,m=t&(y|b),h=t&T,v=p?n:go(e);function x(){for(var n=arguments.length,g=ze(n),_=n;_--;)g[_]=arguments[_];if(m)var y=Wo(x),b=Qn(g,y);if(i&&(g=no(g,i,a,m)),o&&(g=ro(g,o,s,m)),n-=b,m&&n<u){var S=cr(g,y);return Oo(e,t,bo,x.placeholder,r,g,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=g.length,c?g=Ss(g,c):h&&n>1&&g.reverse(),d&&l<n&&(g.length=l),this&&this!==an&&this instanceof x&&(w=v||go(w)),w.apply(C,g)}return x}function xo(e,t){return function(n,r){return Wi(n,e,t(r),{})}}function So(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Pa(r),i=Pa(i)):(r=Na(r),i=Na(i)),a=e(r,i)}return a}}function Co(e){return zo(function(t){return t=Tn(t,qn($())),xa(function(n){var r=this;return e(t,function(e){return _n(e,r,n)})})})}function wo(e,t){t=t===n?` `:Pa(t);var r=t.length;if(r<2)return r?ba(t,e):t;var i=ba(t,It(e/pr(t)));return rr(t)?Ka(mr(i),0,e).join(``):i.slice(0,e)}function To(e,t,n,r){var i=t&g,a=go(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=ze(l+s),d=this&&this!==an&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return _n(d,i?n:this,u)}return o}function Eo(e){return function(t,r,i){return i&&typeof i!=`number`&&ss(t,r,i)&&(r=i=n),t=qu(t),r===n?(r=t,t=0):r=qu(r),i=i===n?t<r?1:-1:qu(i),ya(t,r,i,e)}}function Do(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=Xu(t),n=Xu(n)),e(t,n)}}function Oo(e,t,r,i,a,o,s,c,l,u){var d=t&y,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?x:S,t&=~(d?S:x),t&v||(t&=~(g|_));var b=[e,t,a,m,f,h,p,c,l,u],C=r.apply(n,b);return us(e)&&ws(C,b),C.placeholder=i,Ds(C,e,t)}function ko(e){var t=it[e];return function(e,n){if(e=Xu(e),n=n==null?0:Xt(Ju(n),292),n&&Ht(e)){var r=($u(e)+`e`).split(`e`);return r=($u(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Ao=ln&&1/lr(new ln([,-0]))[1]==N?function(e){return new ln(e)}:zf;function jo(e){return function(t){var n=Zo(t);return n==U?or(t):n==W?ur(t):Gn(t,e(t))}}function Mo(e,t,r,i,a,s,c,l){var u=t&_;if(!u&&typeof e!=`function`)throw new ct(o);var d=i?i.length:0;if(d||(t&=~(x|S),i=a=n),c=c===n?c:Gt(Ju(c),0),l=l===n?l:Ju(l),d-=a?a.length:0,t&S){var f=i,p=a;i=a=n}var m=u?n:Ho(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&_s(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:Gt(h[9]-d,0),!l&&t&(y|b)&&(t&=~(y|b)),!t||t==g)var v=po(e,t,r);else v=t==y||t==b?_o(e,t,l):(t==x||t==(g|x))&&!a.length?To(e,t,r,i):bo.apply(n,h);return Ds((m?Ta:ws)(v,h),e,t)}function No(e,t,r,i){return e===n||iu(e,dt[r])&&!mt.call(i,r)?t:e}function Po(e,t,r,i,a,o){return wu(e)&&wu(t)&&(o.set(t,e),la(e,t,n,Po,o),o.delete(t)),e}function Fo(e){return Pu(e)?n:e}function Io(e,t,r,i,a,o){var s=r&m,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,g=r&h?new Zr:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(g){if(!kn(t,function(e,t){if(!Yn(g,t)&&(_===e||a(_,e,r,i,o)))return g.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Lo(e,t,n,r,i,a,o){switch(n){case ge:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!a(new Ct(e),new Ct(t)));case B:case V:case se:return iu(+e,+t);case ae:return e.name==t.name&&e.message==t.message;case fe:case G:return e==t+``;case U:var s=or;case W:var c=r&m;if(s||=lr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=h,o.set(e,t);var u=Io(s(e),s(t),r,i,a,o);return o.delete(e),u;case pe:if(wr)return wr.call(e)==wr.call(t)}return!1}function Ro(e,t,r,i,a,o){var s=r&m,c=Bo(e),l=c.length;if(l!=Bo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:mt.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){h=!1;break}g||=d==`constructor`}if(h&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(h=!1)}return o.delete(e),o.delete(t),h}function zo(e){return Es(bs(e,n,Js),e+``)}function Bo(e){return Li(e,Sd,Yo)}function Vo(e){return Li(e,Cd,Xo)}var Ho=jn?function(e){return jn.get(e)}:zf;function Uo(e){for(var t=e.name+``,n=Bn[t],r=mt.call(Bn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Wo(e){return(mt.call(Z,`placeholder`)?Z:e).placeholder}function $(){var e=Z.iteratee||Mf;return e=e===Mf?na:e,arguments.length?e(arguments[0],arguments[1]):e}function Go(e,t){var n=e.__data__;return ls(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ko(e){for(var t=Sd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ms(i)]}return t}function qo(e,t){var r=nr(e,t);return $i(r)?r:n}function Jo(e){var t=mt.call(e,jt),r=e[jt];try{e[jt]=n;var i=!0}catch{}var a=_t.call(e);return i&&(t?e[jt]=r:delete e[jt]),a}var Yo=Rt?function(e){return e==null?[]:(e=at(e),Sn(Rt(e),function(t){return Dt.call(e,t)}))}:Jf,Xo=Rt?function(e){for(var t=[];e;)En(t,Yo(e)),e=Tt(e);return t}:Jf,Zo=Ri;(rn&&Zo(new rn(new ArrayBuffer(1)))!=ge||on&&Zo(new on)!=U||sn&&Zo(sn.resolve())!=ue||ln&&Zo(new ln)!=W||un&&Zo(new un)!=K)&&(Zo=function(e){var t=Ri(e),r=t==le?e.constructor:n,i=r?Ms(r):``;if(i)switch(i){case dr:return ge;case _r:return U;case vr:return ue;case xr:return W;case Sr:return K}return t});function Qo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Xt(t,e+o);break;case`takeRight`:e=Gt(e,t-o);break}}return{start:e,end:t}}function $o(e){var t=e.match(Ve);return t?t[1].split(He):[]}function es(e,t,n){t=Wa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=js(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Cu(i)&&os(o,i)&&(cu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&mt.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function ns(e){return typeof e.constructor==`function`&&!ps(e)?Er(Tt(e)):{}}function rs(e,t,n){var r=e.constructor;switch(t){case he:return Ya(e);case B:case V:return new r(+e);case ge:return Xa(e,n);case J:case _e:case ve:case ye:case Y:case be:case X:case xe:case Se:return $a(e,n);case U:return new r;case se:case G:return new r(e);case fe:return Za(e);case W:return new r;case pe:return Qa(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Be,`{
865
+ import Data.Text (Text)`),this._options.useList||this.emitLine(`import Data.Vector (Vector)`)),this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitTopLevelDefinition(e,t),e=>this.namedTypeToNameForTopLevel(e)===void 0),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClassDefinition(e,t),(e,t)=>this.emitEnumDefinition(e,t),(e,t)=>this.emitUnionDefinition(e,t)),this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitTopLevelFunctions(t)),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClassFunctions(e,t),(e,t)=>this.emitEnumFunctions(e,t),(e,t)=>this.emitUnionFunctions(e,t)),!this._options.justTypes&&this.ensureBlankLine()}};e.HaskellRenderer=h})),lo=i(((e,t)=>{(function(){var n,r=`4.17.21`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c=`__lodash_hash_undefined__`,l=500,u=`__lodash_placeholder__`,d=1,f=2,p=4,m=1,h=2,g=1,_=2,v=4,y=8,b=16,x=32,S=64,C=128,w=256,T=512,E=30,D=`...`,O=800,k=16,A=1,j=2,M=3,N=1/0,P=9007199254740991,ee=17976931348623157e292,F=NaN,I=4294967295,L=I-1,R=I>>>1,z=[[`ary`,C],[`bind`,g],[`bindKey`,_],[`curry`,y],[`curryRight`,b],[`flip`,T],[`partial`,x],[`partialRight`,S],[`rearg`,w]],te=`[object Arguments]`,ne=`[object Array]`,re=`[object AsyncFunction]`,B=`[object Boolean]`,V=`[object Date]`,ie=`[object DOMException]`,ae=`[object Error]`,H=`[object Function]`,oe=`[object GeneratorFunction]`,U=`[object Map]`,se=`[object Number]`,ce=`[object Null]`,le=`[object Object]`,ue=`[object Promise]`,de=`[object Proxy]`,fe=`[object RegExp]`,W=`[object Set]`,G=`[object String]`,pe=`[object Symbol]`,me=`[object Undefined]`,K=`[object WeakMap]`,q=`[object WeakSet]`,he=`[object ArrayBuffer]`,ge=`[object DataView]`,J=`[object Float32Array]`,_e=`[object Float64Array]`,ve=`[object Int8Array]`,ye=`[object Int16Array]`,Y=`[object Int32Array]`,be=`[object Uint8Array]`,X=`[object Uint8ClampedArray]`,xe=`[object Uint16Array]`,Se=`[object Uint32Array]`,Ce=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Te=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Oe=RegExp(Ee.source),ke=RegExp(De.source),Ae=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),Re=/^\s+/,ze=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ve=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,Ke=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,$e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt=`\\ud800-\\udfff`,rt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,it=`\\u2700-\\u27bf`,at=`a-z\\xdf-\\xf6\\xf8-\\xff`,ot=`\\xac\\xb1\\xd7\\xf7`,st=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ct=`\\u2000-\\u206f`,lt=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,ut=`A-Z\\xc0-\\xd6\\xd8-\\xde`,dt=`\\ufe0e\\ufe0f`,ft=ot+st+ct+lt,pt=`['’]`,mt=`[`+nt+`]`,ht=`[`+ft+`]`,gt=`[`+rt+`]`,_t=`\\d+`,vt=`[`+it+`]`,yt=`[`+at+`]`,bt=`[^`+nt+ft+_t+it+at+ut+`]`,xt=`\\ud83c[\\udffb-\\udfff]`,St=`(?:`+gt+`|`+xt+`)`,Ct=`[^`+nt+`]`,wt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Tt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Et=`[`+ut+`]`,Dt=`\\u200d`,Ot=`(?:`+yt+`|`+bt+`)`,kt=`(?:`+Et+`|`+bt+`)`,At=`(?:`+pt+`(?:d|ll|m|re|s|t|ve))?`,jt=`(?:`+pt+`(?:D|LL|M|RE|S|T|VE))?`,Mt=St+`?`,Nt=`[`+dt+`]?`,Pt=`(?:`+Dt+`(?:`+[Ct,wt,Tt].join(`|`)+`)`+Nt+Mt+`)*`,Ft=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,It=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Lt=Nt+Mt+Pt,Rt=`(?:`+[vt,wt,Tt].join(`|`)+`)`+Lt,zt=`(?:`+[Ct+gt+`?`,gt,wt,Tt,mt].join(`|`)+`)`,Bt=RegExp(pt,`g`),Vt=RegExp(gt,`g`),Ht=RegExp(xt+`(?=`+xt+`)|`+zt+Lt,`g`),Ut=RegExp([Et+`?`+yt+`+`+At+`(?=`+[ht,Et,`$`].join(`|`)+`)`,kt+`+`+jt+`(?=`+[ht,Et+Ot,`$`].join(`|`)+`)`,Et+`?`+Ot+`+`+At,Et+`+`+jt,It,Ft,_t,Rt].join(`|`),`g`),Wt=RegExp(`[`+Dt+nt+rt+dt+`]`),Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),qt=-1,Jt={};Jt[J]=Jt[_e]=Jt[ve]=Jt[ye]=Jt[Y]=Jt[be]=Jt[X]=Jt[xe]=Jt[Se]=!0,Jt[te]=Jt[ne]=Jt[he]=Jt[B]=Jt[ge]=Jt[V]=Jt[ae]=Jt[H]=Jt[U]=Jt[se]=Jt[le]=Jt[fe]=Jt[W]=Jt[G]=Jt[K]=!1;var Yt={};Yt[te]=Yt[ne]=Yt[he]=Yt[ge]=Yt[B]=Yt[V]=Yt[J]=Yt[_e]=Yt[ve]=Yt[ye]=Yt[Y]=Yt[U]=Yt[se]=Yt[le]=Yt[fe]=Yt[W]=Yt[G]=Yt[pe]=Yt[be]=Yt[X]=Yt[xe]=Yt[Se]=!0,Yt[ae]=Yt[H]=Yt[K]=!1;var Xt={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Zt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Qt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},$t={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},en=parseFloat,tn=parseInt,nn=typeof global==`object`&&global&&global.Object===Object&&global,rn=typeof self==`object`&&self&&self.Object===Object&&self,an=nn||rn||Function(`return this`)(),on=typeof e==`object`&&e&&!e.nodeType&&e,sn=on&&typeof t==`object`&&t&&!t.nodeType&&t,cn=sn&&sn.exports===on,ln=cn&&nn.process,un=function(){try{return sn&&sn.require&&sn.require(`util`).types||ln&&ln.binding&&ln.binding(`util`)}catch{}}(),dn=un&&un.isArrayBuffer,fn=un&&un.isDate,pn=un&&un.isMap,mn=un&&un.isRegExp,hn=un&&un.isSet,gn=un&&un.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function vn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function yn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function bn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function xn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Sn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Cn(e,t){return!!(e!=null&&e.length)&&Fn(e,t,0)>-1}function wn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Tn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function En(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Dn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function On(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function kn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var An=zn(`length`);function jn(e){return e.split(``)}function Mn(e){return e.match(Ue)||[]}function Nn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Pn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Fn(e,t,n){return t===t?dr(e,t,n):Pn(e,Ln,n)}function In(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Ln(e){return e!==e}function Rn(e,t){var n=e==null?0:e.length;return n?Un(e,t)/n:F}function zn(e){return function(t){return t==null?n:t[e]}}function Bn(e){return function(t){return e==null?n:e[t]}}function Vn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Hn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Un(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function Wn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gn(e,t){return Tn(t,function(t){return[t,e[t]]})}function Kn(e){return e&&e.slice(0,hr(e)+1).replace(Re,``)}function qn(e){return function(t){return e(t)}}function Jn(e,t){return Tn(t,function(t){return e[t]})}function Yn(e,t){return e.has(t)}function Xn(e,t){for(var n=-1,r=e.length;++n<r&&Fn(t,e[n],0)>-1;);return n}function Zn(e,t){for(var n=e.length;n--&&Fn(t,e[n],0)>-1;);return n}function Qn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $n=Bn(Xt),er=Bn(Zt);function tr(e){return`\\`+$t[e]}function nr(e,t){return e==null?n:e[t]}function rr(e){return Wt.test(e)}function ir(e){return Gt.test(e)}function ar(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function or(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function sr(e,t){return function(n){return e(t(n))}}function cr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===u)&&(e[n]=u,a[i++]=n)}return a}function lr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function ur(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function dr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function fr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function pr(e){return rr(e)?_r(e):An(e)}function mr(e){return rr(e)?vr(e):jn(e)}function hr(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var gr=Bn(Qt);function _r(e){for(var t=Ht.lastIndex=0;Ht.test(e);)++t;return t}function vr(e){return e.match(Ht)||[]}function yr(e){return e.match(Ut)||[]}var br=(function e(t){t=t==null?an:br.defaults(an.Object(),t,br.pick(an,Kt));var ze=t.Array,Ue=t.Date,nt=t.Error,rt=t.Function,it=t.Math,at=t.Object,ot=t.RegExp,st=t.String,ct=t.TypeError,lt=ze.prototype,ut=rt.prototype,dt=at.prototype,ft=t[`__core-js_shared__`],pt=ut.toString,mt=dt.hasOwnProperty,ht=0,gt=function(){var e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),_t=dt.toString,vt=pt.call(at),yt=an._,bt=ot(`^`+pt.call(mt).replace(Ie,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),xt=cn?t.Buffer:n,St=t.Symbol,Ct=t.Uint8Array,wt=xt?xt.allocUnsafe:n,Tt=sr(at.getPrototypeOf,at),Et=at.create,Dt=dt.propertyIsEnumerable,Ot=lt.splice,kt=St?St.isConcatSpreadable:n,At=St?St.iterator:n,jt=St?St.toStringTag:n,Mt=function(){try{var e=qo(at,`defineProperty`);return e({},``,{}),e}catch{}}(),Nt=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Pt=Ue&&Ue.now!==an.Date.now&&Ue.now,Ft=t.setTimeout!==an.setTimeout&&t.setTimeout,It=it.ceil,Lt=it.floor,Rt=at.getOwnPropertySymbols,zt=xt?xt.isBuffer:n,Ht=t.isFinite,Ut=lt.join,Wt=sr(at.keys,at),Gt=it.max,Xt=it.min,Zt=Ue.now,Qt=t.parseInt,$t=it.random,nn=lt.reverse,rn=qo(t,`DataView`),on=qo(t,`Map`),sn=qo(t,`Promise`),ln=qo(t,`Set`),un=qo(t,`WeakMap`),An=qo(at,`create`),jn=un&&new un,Bn={},dr=Ms(rn),_r=Ms(on),vr=Ms(sn),xr=Ms(ln),Sr=Ms(un),Cr=St?St.prototype:n,wr=Cr?Cr.valueOf:n,Tr=Cr?Cr.toString:n;function Z(e){if(Tu(e)&&!cu(e)&&!(e instanceof kr)){if(e instanceof Or)return e;if(mt.call(e,`__wrapped__`))return Ps(e)}return new Or(e)}var Er=function(){function e(){}return function(t){if(!wu(t))return{};if(Et)return Et(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Dr(){}function Or(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}Z.templateSettings={escape:Ae,evaluate:je,interpolate:Me,variable:``,imports:{_:Z}},Z.prototype=Dr.prototype,Z.prototype.constructor=Z,Or.prototype=Er(Dr.prototype),Or.prototype.constructor=Or;function kr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function Ar(){var e=new kr(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e}function jr(){if(this.__filtered__){var e=new kr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Mr(){var e=this.__wrapped__.value(),t=this.__dir__,n=cu(e),r=t<0,i=n?e.length:0,a=Qo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Xt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return za(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==j)g=b;else if(!b){if(y==A)continue outer;break outer}}m[f++]=g}return m}kr.prototype=Er(Dr.prototype),kr.prototype.constructor=kr;function Nr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pr(){this.__data__=An?An(null):{},this.size=0}function Fr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Ir(e){var t=this.__data__;if(An){var r=t[e];return r===c?n:r}return mt.call(t,e)?t[e]:n}function Lr(e){var t=this.__data__;return An?t[e]!==n:mt.call(t,e)}function Rr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=An&&t===n?c:t,this}Nr.prototype.clear=Pr,Nr.prototype.delete=Fr,Nr.prototype.get=Ir,Nr.prototype.has=Lr,Nr.prototype.set=Rr;function zr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function Vr(e){var t=this.__data__,n=fi(t,e);return n<0?!1:(n==t.length-1?t.pop():Ot.call(t,n,1),--this.size,!0)}function Hr(e){var t=this.__data__,r=fi(t,e);return r<0?n:t[r][1]}function Ur(e){return fi(this.__data__,e)>-1}function Wr(e,t){var n=this.__data__,r=fi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}zr.prototype.clear=Br,zr.prototype.delete=Vr,zr.prototype.get=Hr,zr.prototype.has=Ur,zr.prototype.set=Wr;function Gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kr(){this.size=0,this.__data__={hash:new Nr,map:new(on||zr),string:new Nr}}function qr(e){var t=Go(this,e).delete(e);return this.size-=+!!t,t}function Jr(e){return Go(this,e).get(e)}function Yr(e){return Go(this,e).has(e)}function Xr(e,t){var n=Go(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Gr.prototype.clear=Kr,Gr.prototype.delete=qr,Gr.prototype.get=Jr,Gr.prototype.has=Yr,Gr.prototype.set=Xr;function Zr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Gr;++t<n;)this.add(e[t])}function Qr(e){return this.__data__.set(e,c),this}function $r(e){return this.__data__.has(e)}Zr.prototype.add=Zr.prototype.push=Qr,Zr.prototype.has=$r;function ei(e){var t=this.__data__=new zr(e);this.size=t.size}function ti(){this.__data__=new zr,this.size=0}function ni(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ri(e){return this.__data__.get(e)}function ii(e){return this.__data__.has(e)}function ai(e,t){var n=this.__data__;if(n instanceof zr){var r=n.__data__;if(!on||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gr(r)}return n.set(e,t),this.size=n.size,this}ei.prototype.clear=ti,ei.prototype.delete=ni,ei.prototype.get=ri,ei.prototype.has=ii,ei.prototype.set=ai;function oi(e,t){var n=cu(e),r=!n&&su(e),i=!n&&!r&&pu(e),a=!n&&!r&&!i&&Bu(e),o=n||r||i||a,s=o?Wn(e.length,st):[],c=s.length;for(var l in e)(t||mt.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||os(l,c)))&&s.push(l);return s}function si(e){var t=e.length;return t?e[va(0,t-1)]:n}function ci(e,t){return ks(io(e),vi(t,0,e.length))}function li(e){return ks(io(e))}function ui(e,t,r){(r!==n&&!iu(e[t],r)||r===n&&!(t in e))&&gi(e,t,r)}function di(e,t,r){var i=e[t];(!(mt.call(e,t)&&iu(i,r))||r===n&&!(t in e))&&gi(e,t,r)}function fi(e,t){for(var n=e.length;n--;)if(iu(e[n][0],t))return n;return-1}function pi(e,t,n,r){return wi(e,function(e,i,a){t(r,e,n(e),a)}),r}function mi(e,t){return e&&ao(t,Sd(t),e)}function hi(e,t){return e&&ao(t,Cd(t),e)}function gi(e,t,n){t==`__proto__`&&Mt?Mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function _i(e,t){for(var r=-1,i=t.length,a=ze(i),o=e==null;++r<i;)a[r]=o?n:gd(e,t[r]);return a}function vi(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function yi(e,t,r,i,a,o){var s,c=t&d,l=t&f,u=t&p;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!wu(e))return e;var m=cu(e);if(m){if(s=ts(e),!c)return io(e,s)}else{var h=Zo(e),g=h==H||h==oe;if(pu(e))return Ja(e,c);if(h==le||h==te||g&&!a){if(s=l||g?{}:ns(e),!c)return l?so(e,hi(s,e)):oo(e,mi(s,e))}else{if(!Yt[h])return a?e:{};s=rs(e,h,c)}}o||=new ei;var _=o.get(e);if(_)return _;o.set(e,s),Lu(e)?e.forEach(function(n){s.add(yi(n,t,r,n,e,o))}):Eu(e)&&e.forEach(function(n,i){s.set(i,yi(n,t,r,i,e,o))});var v=m?n:(u?l?Vo:Bo:l?Cd:Sd)(e);return yn(v||e,function(n,i){v&&(i=n,n=e[i]),di(s,i,yi(n,t,r,i,e,o))}),s}function bi(e){var t=Sd(e);return function(n){return xi(n,e,t)}}function xi(e,t,r){var i=r.length;if(e==null)return!i;for(e=at(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function Si(e,t,r){if(typeof e!=`function`)throw new ct(o);return Ts(function(){e.apply(n,r)},t)}function Ci(e,t,n,r){var a=-1,o=Cn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Tn(t,qn(n))),r?(o=wn,s=!1):t.length>=i&&(o=Yn,s=!1,t=new Zr(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var wi=uo(Ni),Ti=uo(Pi,!0);function Ei(e,t){var n=!0;return wi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Di(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!zu(s):r(s,c)))var c=s,l=o}return l}function Oi(e,t,r,i){var a=e.length;for(r=Ju(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Ju(i),i<0&&(i+=a),i=r>i?0:Yu(i);r<i;)e[r++]=t;return e}function ki(e,t){var n=[];return wi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ai(e,t,n,r,i){var a=-1,o=e.length;for(n||=as,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Ai(s,t-1,n,r,i):En(i,s):r||(i[i.length]=s)}return i}var ji=fo(),Mi=fo(!0);function Ni(e,t){return e&&ji(e,t,Sd)}function Pi(e,t){return e&&Mi(e,t,Sd)}function Fi(e,t){return Sn(t,function(t){return xu(e[t])})}function Ii(e,t){t=Wa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[js(t[r++])];return r&&r==i?e:n}function Li(e,t,n){var r=t(e);return cu(e)?r:En(r,n(e))}function Ri(e){return e==null?e===n?me:ce:jt&&jt in at(e)?Jo(e):ys(e)}function zi(e,t){return e>t}function Bi(e,t){return e!=null&&mt.call(e,t)}function Vi(e,t){return e!=null&&t in at(e)}function Hi(e,t,n){return e>=Xt(t,n)&&e<Gt(t,n)}function Ui(e,t,r){for(var i=r?wn:Cn,a=e[0].length,o=e.length,s=o,c=ze(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Tn(d,qn(t))),l=Xt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Zr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Yn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Yn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Wi(e,t,n,r){return Ni(e,function(e,i,a){t(r,n(e),i,a)}),r}function Gi(e,t,r){t=Wa(t,e),e=xs(e,t);var i=e==null?e:e[js(ac(t))];return i==null?n:_n(i,e,r)}function Ki(e){return Tu(e)&&Ri(e)==te}function qi(e){return Tu(e)&&Ri(e)==he}function Ji(e){return Tu(e)&&Ri(e)==V}function Yi(e,t,n,r,i){return e===t?!0:e==null||t==null||!Tu(e)&&!Tu(t)?e!==e&&t!==t:Xi(e,t,n,r,Yi,i)}function Xi(e,t,n,r,i,a){var o=cu(e),s=cu(t),c=o?ne:Zo(e),l=s?ne:Zo(t);c=c==te?le:c,l=l==te?le:l;var u=c==le,d=l==le,f=c==l;if(f&&pu(e)){if(!pu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new ei,o||Bu(e)?Io(e,t,n,r,i,a):Lo(e,t,c,n,r,i,a);if(!(n&m)){var p=u&&mt.call(e,`__wrapped__`),h=d&&mt.call(t,`__wrapped__`);if(p||h){var g=p?e.value():e,_=h?t.value():t;return a||=new ei,i(g,_,n,r,a)}}return f?(a||=new ei,Ro(e,t,n,r,i,a)):!1}function Zi(e){return Tu(e)&&Zo(e)==U}function Qi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=at(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new ei;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Yi(d,u,m|h,i,f):p))return!1}}return!0}function $i(e){return!wu(e)||ds(e)?!1:(xu(e)?bt:Xe).test(Ms(e))}function ea(e){return Tu(e)&&Ri(e)==fe}function Q(e){return Tu(e)&&Zo(e)==W}function ta(e){return Tu(e)&&Cu(e.length)&&!!Jt[Ri(e)]}function na(e){return typeof e==`function`?e:e==null?jf:typeof e==`object`?cu(e)?ca(e[0],e[1]):sa(e):Wf(e)}function ra(e){if(!ps(e))return Wt(e);var t=[];for(var n in at(e))mt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ia(e){if(!wu(e))return vs(e);var t=ps(e),n=[];for(var r in e)r==`constructor`&&(t||!mt.call(e,r))||n.push(r);return n}function aa(e,t){return e<t}function oa(e,t){var n=-1,r=uu(e)?ze(e.length):[];return wi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function sa(e){var t=Ko(e);return t.length==1&&t[0][2]?hs(t[0][0],t[0][1]):function(n){return n===e||Qi(n,e,t)}}function ca(e,t){return cs(e)&&ms(t)?hs(js(e),t):function(r){var i=gd(r,e);return i===n&&i===t?vd(r,e):Yi(t,i,m|h)}}function la(e,t,r,i,a){e!==t&&ji(t,function(o,s){if(a||=new ei,wu(o))ua(e,t,s,r,la,i,a);else{var c=i?i(Cs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ui(e,s,c)}},Cd)}function ua(e,t,r,i,a,o,s){var c=Cs(e,r),l=Cs(t,r),u=s.get(l);if(u){ui(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=cu(l),m=!p&&pu(l),h=!p&&!m&&Bu(l);d=l,p||m||h?cu(c)?d=c:du(c)?d=io(c):m?(f=!1,d=Ja(l,!0)):h?(f=!1,d=$a(l,!0)):d=[]:Pu(l)||su(l)?(d=c,su(c)?d=Zu(c):(!wu(c)||xu(c))&&(d=ns(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ui(e,r,d)}function da(e,t){var r=e.length;if(r)return t+=t<0?r:0,os(t,r)?e[t]:n}function fa(e,t,n){t=t.length?Tn(t,function(e){return cu(e)?function(t){return Ii(t,e.length===1?e[0]:e)}:e}):[jf];var r=-1;return t=Tn(t,qn($())),Hn(oa(e,function(e,n,i){return{criteria:Tn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return to(e,t,n)})}function pa(e,t){return ma(e,t,function(t,n){return vd(e,n)})}function ma(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ii(e,o);n(s,o)&&wa(a,Wa(o,e),s)}return a}function ha(e){return function(t){return Ii(t,e)}}function ga(e,t,n,r){var i=r?In:Fn,a=-1,o=t.length,s=e;for(e===t&&(t=io(t)),n&&(s=Tn(e,qn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Ot.call(s,c,1),Ot.call(e,c,1);return e}function _a(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;os(i)?Ot.call(e,i,1):Ia(e,i)}}return e}function va(e,t){return e+Lt($t()*(t-e+1))}function ya(e,t,n,r){for(var i=-1,a=Gt(It((t-e)/(n||1)),0),o=ze(a);a--;)o[r?a:++i]=e,e+=n;return o}function ba(e,t){var n=``;if(!e||t<1||t>P)return n;do t%2&&(n+=e),t=Lt(t/2),t&&(e+=e);while(t);return n}function xa(e,t){return Es(bs(e,t,jf),e+``)}function Sa(e){return si(Vd(e))}function Ca(e,t){var n=Vd(e);return ks(n,vi(t,0,n.length))}function wa(e,t,r,i){if(!wu(e))return e;t=Wa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=js(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=wu(d)?d:os(t[a+1])?[]:{})}di(c,l,u),c=c[l]}return e}var Ta=jn?function(e,t){return jn.set(e,t),e}:jf,Ea=Mt?function(e,t){return Mt(e,`toString`,{configurable:!0,enumerable:!1,value:Df(t),writable:!0})}:jf;function Da(e){return ks(Vd(e))}function Oa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ze(i);++r<i;)a[r]=e[r+t];return a}function ka(e,t){var n;return wi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Aa(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=R){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!zu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ja(e,t,jf,n)}function ja(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=zu(t),u=t===n;a<o;){var d=Lt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=zu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Xt(o,L)}function Ma(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!iu(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Na(e){return typeof e==`number`?e:zu(e)?F:+e}function Pa(e){if(typeof e==`string`)return e;if(cu(e))return Tn(e,Pa)+``;if(zu(e))return Tr?Tr.call(e):``;var t=e+``;return t==`0`&&1/e==-N?`-0`:t}function Fa(e,t,n){var r=-1,a=Cn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=wn;else if(o>=i){var u=t?null:Ao(e);if(u)return lr(u);s=!1,a=Yn,l=new Zr}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Ia(e,t){return t=Wa(t,e),e=xs(e,t),e==null||delete e[js(ac(t))]}function La(e,t,n,r){return wa(e,t,n(Ii(e,t)),r)}function Ra(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Oa(e,r?0:a,r?a+1:i):Oa(e,r?a+1:0,r?i:a)}function za(e,t){var n=e;return n instanceof kr&&(n=n.value()),Dn(t,function(e,t){return t.func.apply(t.thisArg,En([e],t.args))},n)}function Ba(e,t,n){var r=e.length;if(r<2)return r?Fa(e[0]):[];for(var i=-1,a=ze(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Ci(a[i]||o,e[s],t,n));return Fa(Ai(a,1),t,n)}function Va(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ha(e){return du(e)?e:[]}function Ua(e){return typeof e==`function`?e:jf}function Wa(e,t){return cu(e)?e:cs(e,t)?[e]:As($u(e))}var Ga=xa;function Ka(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Oa(e,t,r)}var qa=Nt||function(e){return an.clearTimeout(e)};function Ja(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Ya(e){var t=new e.constructor(e.byteLength);return new Ct(t).set(new Ct(e)),t}function Xa(e,t){var n=t?Ya(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Za(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}function Qa(e){return wr?at(wr.call(e)):{}}function $a(e,t){var n=t?Ya(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=zu(e),s=t!==n,c=t===null,l=t===t,u=zu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function to(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=eo(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function no(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Gt(a-o,0),u=ze(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function ro(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Gt(a-s,0),d=ze(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function io(e,t){var n=-1,r=e.length;for(t||=ze(r);++n<r;)t[n]=e[n];return t}function ao(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?gi(r,c,l):di(r,c,l)}return r}function oo(e,t){return ao(e,Yo(e),t)}function so(e,t){return ao(e,Xo(e),t)}function co(e,t){return function(n,r){var i=cu(n)?vn:pi,a=t?t():{};return i(n,e,$(r,2),a)}}function lo(e){return xa(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&ss(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=at(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function uo(e,t){return function(n,r){if(n==null)return n;if(!uu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=at(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function fo(e){return function(t,n,r){for(var i=-1,a=at(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function po(e,t,n){var r=t&g,i=go(e);function a(){return(this&&this!==an&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function mo(e){return function(t){t=$u(t);var r=rr(t)?mr(t):n,i=r?r[0]:t.charAt(0),a=r?Ka(r,1).join(``):t.slice(1);return i[e]()+a}}function ho(e){return function(t){return Dn(Sf(Jd(t).replace(Bt,``)),e,``)}}function go(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Er(e.prototype),r=e.apply(n,t);return wu(r)?r:n}}function _o(e,t,r){var i=go(e);function a(){for(var o=arguments.length,s=ze(o),c=o,l=Wo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:cr(s,l);return o-=u.length,o<r?Oo(e,t,bo,a.placeholder,n,s,u,n,n,r-o):_n(this&&this!==an&&this instanceof a?i:e,this,s)}return a}function vo(e){return function(t,r,i){var a=at(t);if(!uu(t)){var o=$(r,3);t=Sd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function yo(e){return zo(function(t){var r=t.length,i=r,a=Or.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new ct(o);if(a&&!c&&Uo(s)==`wrapper`)var c=new Or([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=Uo(s),u=l==`wrapper`?Ho(s):n;c=u&&us(u[0])&&u[1]==(C|y|x|w)&&!u[4].length&&u[9]==1?c[Uo(u[0])].apply(c,u[3]):s.length==1&&us(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&cu(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function bo(e,t,r,i,a,o,s,c,l,u){var d=t&C,f=t&g,p=t&_,m=t&(y|b),h=t&T,v=p?n:go(e);function x(){for(var n=arguments.length,g=ze(n),_=n;_--;)g[_]=arguments[_];if(m)var y=Wo(x),b=Qn(g,y);if(i&&(g=no(g,i,a,m)),o&&(g=ro(g,o,s,m)),n-=b,m&&n<u){var S=cr(g,y);return Oo(e,t,bo,x.placeholder,r,g,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=g.length,c?g=Ss(g,c):h&&n>1&&g.reverse(),d&&l<n&&(g.length=l),this&&this!==an&&this instanceof x&&(w=v||go(w)),w.apply(C,g)}return x}function xo(e,t){return function(n,r){return Wi(n,e,t(r),{})}}function So(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Pa(r),i=Pa(i)):(r=Na(r),i=Na(i)),a=e(r,i)}return a}}function Co(e){return zo(function(t){return t=Tn(t,qn($())),xa(function(n){var r=this;return e(t,function(e){return _n(e,r,n)})})})}function wo(e,t){t=t===n?` `:Pa(t);var r=t.length;if(r<2)return r?ba(t,e):t;var i=ba(t,It(e/pr(t)));return rr(t)?Ka(mr(i),0,e).join(``):i.slice(0,e)}function To(e,t,n,r){var i=t&g,a=go(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=ze(l+s),d=this&&this!==an&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return _n(d,i?n:this,u)}return o}function Eo(e){return function(t,r,i){return i&&typeof i!=`number`&&ss(t,r,i)&&(r=i=n),t=qu(t),r===n?(r=t,t=0):r=qu(r),i=i===n?t<r?1:-1:qu(i),ya(t,r,i,e)}}function Do(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=Xu(t),n=Xu(n)),e(t,n)}}function Oo(e,t,r,i,a,o,s,c,l,u){var d=t&y,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?x:S,t&=~(d?S:x),t&v||(t&=~(g|_));var b=[e,t,a,m,f,h,p,c,l,u],C=r.apply(n,b);return us(e)&&ws(C,b),C.placeholder=i,Ds(C,e,t)}function ko(e){var t=it[e];return function(e,n){if(e=Xu(e),n=n==null?0:Xt(Ju(n),292),n&&Ht(e)){var r=($u(e)+`e`).split(`e`);return r=($u(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Ao=ln&&1/lr(new ln([,-0]))[1]==N?function(e){return new ln(e)}:zf;function jo(e){return function(t){var n=Zo(t);return n==U?or(t):n==W?ur(t):Gn(t,e(t))}}function Mo(e,t,r,i,a,s,c,l){var u=t&_;if(!u&&typeof e!=`function`)throw new ct(o);var d=i?i.length:0;if(d||(t&=~(x|S),i=a=n),c=c===n?c:Gt(Ju(c),0),l=l===n?l:Ju(l),d-=a?a.length:0,t&S){var f=i,p=a;i=a=n}var m=u?n:Ho(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&_s(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:Gt(h[9]-d,0),!l&&t&(y|b)&&(t&=~(y|b)),!t||t==g)var v=po(e,t,r);else v=t==y||t==b?_o(e,t,l):(t==x||t==(g|x))&&!a.length?To(e,t,r,i):bo.apply(n,h);return Ds((m?Ta:ws)(v,h),e,t)}function No(e,t,r,i){return e===n||iu(e,dt[r])&&!mt.call(i,r)?t:e}function Po(e,t,r,i,a,o){return wu(e)&&wu(t)&&(o.set(t,e),la(e,t,n,Po,o),o.delete(t)),e}function Fo(e){return Pu(e)?n:e}function Io(e,t,r,i,a,o){var s=r&m,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,g=r&h?new Zr:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(g){if(!kn(t,function(e,t){if(!Yn(g,t)&&(_===e||a(_,e,r,i,o)))return g.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Lo(e,t,n,r,i,a,o){switch(n){case ge:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!a(new Ct(e),new Ct(t)));case B:case V:case se:return iu(+e,+t);case ae:return e.name==t.name&&e.message==t.message;case fe:case G:return e==t+``;case U:var s=or;case W:var c=r&m;if(s||=lr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=h,o.set(e,t);var u=Io(s(e),s(t),r,i,a,o);return o.delete(e),u;case pe:if(wr)return wr.call(e)==wr.call(t)}return!1}function Ro(e,t,r,i,a,o){var s=r&m,c=Bo(e),l=c.length;if(l!=Bo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:mt.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){h=!1;break}g||=d==`constructor`}if(h&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(h=!1)}return o.delete(e),o.delete(t),h}function zo(e){return Es(bs(e,n,Js),e+``)}function Bo(e){return Li(e,Sd,Yo)}function Vo(e){return Li(e,Cd,Xo)}var Ho=jn?function(e){return jn.get(e)}:zf;function Uo(e){for(var t=e.name+``,n=Bn[t],r=mt.call(Bn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Wo(e){return(mt.call(Z,`placeholder`)?Z:e).placeholder}function $(){var e=Z.iteratee||Mf;return e=e===Mf?na:e,arguments.length?e(arguments[0],arguments[1]):e}function Go(e,t){var n=e.__data__;return ls(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ko(e){for(var t=Sd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ms(i)]}return t}function qo(e,t){var r=nr(e,t);return $i(r)?r:n}function Jo(e){var t=mt.call(e,jt),r=e[jt];try{e[jt]=n;var i=!0}catch{}var a=_t.call(e);return i&&(t?e[jt]=r:delete e[jt]),a}var Yo=Rt?function(e){return e==null?[]:(e=at(e),Sn(Rt(e),function(t){return Dt.call(e,t)}))}:Jf,Xo=Rt?function(e){for(var t=[];e;)En(t,Yo(e)),e=Tt(e);return t}:Jf,Zo=Ri;(rn&&Zo(new rn(new ArrayBuffer(1)))!=ge||on&&Zo(new on)!=U||sn&&Zo(sn.resolve())!=ue||ln&&Zo(new ln)!=W||un&&Zo(new un)!=K)&&(Zo=function(e){var t=Ri(e),r=t==le?e.constructor:n,i=r?Ms(r):``;if(i)switch(i){case dr:return ge;case _r:return U;case vr:return ue;case xr:return W;case Sr:return K}return t});function Qo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Xt(t,e+o);break;case`takeRight`:e=Gt(e,t-o);break}}return{start:e,end:t}}function $o(e){var t=e.match(Ve);return t?t[1].split(He):[]}function es(e,t,n){t=Wa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=js(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Cu(i)&&os(o,i)&&(cu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&mt.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function ns(e){return typeof e.constructor==`function`&&!ps(e)?Er(Tt(e)):{}}function rs(e,t,n){var r=e.constructor;switch(t){case he:return Ya(e);case B:case V:return new r(+e);case ge:return Xa(e,n);case J:case _e:case ve:case ye:case Y:case be:case X:case xe:case Se:return $a(e,n);case U:return new r;case se:case G:return new r(e);case fe:return Za(e);case W:return new r;case pe:return Qa(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Be,`{
866
866
  /* [wrapped with `+t+`] */
867
- `)}function as(e){return cu(e)||su(e)||!!(kt&&e&&e[kt])}function os(e,t){var n=typeof e;return t??=P,!!t&&(n==`number`||n!=`symbol`&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!wu(n))return!1;var r=typeof t;return(r==`number`?uu(n)&&os(t,n.length):r==`string`&&t in n)?iu(n[t],e):!1}function cs(e,t){if(cu(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||zu(e)?!0:Pe.test(e)||!Ne.test(e)||t!=null&&e in at(t)}function ls(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function us(e){var t=Uo(e),n=Z[t];if(typeof n!=`function`||!(t in kr.prototype))return!1;if(e===n)return!0;var r=Ho(n);return!!r&&e===r[0]}function ds(e){return!!gt&&gt in e}var fs=ft?xu:Yf;function ps(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||dt)}function ms(e){return e===e&&!wu(e)}function hs(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in at(r))}}function gs(e){var t=Bl(e,function(e){return n.size===l&&n.clear(),e}),n=t.cache;return t}function _s(e,t){var n=e[1],r=t[1],i=n|r,a=i<(g|_|C),o=r==C&&n==y||r==C&&n==w&&e[7].length<=t[8]||r==(C|w)&&t[7].length<=t[8]&&n==y;if(!(a||o))return e;r&g&&(e[2]=t[2],i|=n&g?0:v);var s=t[3];if(s){var c=e[3];e[3]=c?no(c,s,t[4]):s,e[4]=c?cr(e[3],u):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?ro(c,s,t[6]):s,e[6]=c?cr(e[5],u):t[6]),s=t[7],s&&(e[7]=s),r&C&&(e[8]=e[8]==null?t[8]:Xt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function vs(e){var t=[];if(e!=null)for(var n in at(e))t.push(n);return t}function ys(e){return _t.call(e)}function bs(e,t,r){return t=Gt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Gt(n.length-t,0),o=ze(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=ze(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),_n(e,this,s)}}function xs(e,t){return t.length<2?e:Ii(e,Oa(t,0,-1))}function Ss(e,t){for(var r=e.length,i=Xt(t.length,r),a=io(e);i--;){var o=t[i];e[i]=os(o,r)?a[o]:n}return e}function Cs(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var ws=Os(Ta),Ts=Ft||function(e,t){return an.setTimeout(e,t)},Es=Os(Ea);function Ds(e,t,n){var r=t+``;return Es(e,is(r,Ns($o(r),n)))}function Os(e){var t=0,r=0;return function(){var i=Zt(),a=k-(i-r);if(r=i,a>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ks(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=va(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var As=gs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Fe,function(e,n,r,i){t.push(r?i.replace(Ge,`$1`):n||e)}),t});function js(e){if(typeof e==`string`||zu(e))return e;var t=e+``;return t==`0`&&1/e==-N?`-0`:t}function Ms(e){if(e!=null){try{return pt.call(e)}catch{}try{return e+``}catch{}}return``}function Ns(e,t){return yn(z,function(n){var r=`_.`+n[0];t&n[1]&&!Cn(e,r)&&e.push(r)}),e.sort()}function Ps(e){if(e instanceof kr)return e.clone();var t=new Or(e.__wrapped__,e.__chain__);return t.__actions__=io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Fs(e,t,r){t=(r?ss(e,t,r):t===n)?1:Gt(Ju(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=ze(It(i/t));a<i;)s[o++]=Oa(e,a,a+=t);return s}function Is(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ls(){var e=arguments.length;if(!e)return[];for(var t=ze(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return En(cu(n)?io(n):[n],Ai(t,1))}var Rs=xa(function(e,t){return du(e)?Ci(e,Ai(t,1,du,!0)):[]}),zs=xa(function(e,t){var r=ac(t);return du(r)&&(r=n),du(e)?Ci(e,Ai(t,1,du,!0),$(r,2)):[]}),Bs=xa(function(e,t){var r=ac(t);return du(r)&&(r=n),du(e)?Ci(e,Ai(t,1,du,!0),n,r):[]});function Vs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Ju(t),Oa(e,t<0?0:t,i)):[]}function Hs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Ju(t),t=i-t,Oa(e,0,t<0?0:t)):[]}function Us(e,t){return e&&e.length?Ra(e,$(t,3),!0,!0):[]}function Ws(e,t){return e&&e.length?Ra(e,$(t,3),!0):[]}function Gs(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&ss(e,t,n)&&(n=0,r=i),Oi(e,t,n,r)):[]}function Ks(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Ju(n);return i<0&&(i=Gt(r+i,0)),Pn(e,$(t,3),i)}function qs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Ju(r),a=r<0?Gt(i+a,0):Xt(a,i-1)),Pn(e,$(t,3),a,!0)}function Js(e){return e!=null&&e.length?Ai(e,1):[]}function Ys(e){return e!=null&&e.length?Ai(e,N):[]}function Xs(e,t){return e!=null&&e.length?(t=t===n?1:Ju(t),Ai(e,t)):[]}function Zs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Qs(e){return e&&e.length?e[0]:n}function $s(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Ju(n);return i<0&&(i=Gt(r+i,0)),Fn(e,t,i)}function ec(e){return e!=null&&e.length?Oa(e,0,-1):[]}var tc=xa(function(e){var t=Tn(e,Ha);return t.length&&t[0]===e[0]?Ui(t):[]}),nc=xa(function(e){var t=ac(e),r=Tn(e,Ha);return t===ac(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ui(r,$(t,2)):[]}),rc=xa(function(e){var t=ac(e),r=Tn(e,Ha);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ui(r,n,t):[]});function ic(e,t){return e==null?``:Ut.call(e,t)}function ac(e){var t=e==null?0:e.length;return t?e[t-1]:n}function oc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Ju(r),a=a<0?Gt(i+a,0):Xt(a,i-1)),t===t?fr(e,t,a):Pn(e,Ln,a,!0)}function sc(e,t){return e&&e.length?da(e,Ju(t)):n}var cc=xa(lc);function lc(e,t){return e&&e.length&&t&&t.length?ga(e,t):e}function uc(e,t,n){return e&&e.length&&t&&t.length?ga(e,t,$(n,2)):e}function dc(e,t,r){return e&&e.length&&t&&t.length?ga(e,t,n,r):e}var fc=zo(function(e,t){var n=e==null?0:e.length,r=_i(e,t);return _a(e,Tn(t,function(e){return os(e,n)?+e:e}).sort(eo)),r});function pc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=$(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return _a(e,i),n}function mc(e){return e==null?e:nn.call(e)}function hc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&ss(e,t,r)?(t=0,r=i):(t=t==null?0:Ju(t),r=r===n?i:Ju(r)),Oa(e,t,r)):[]}function gc(e,t){return Aa(e,t)}function _c(e,t,n){return ja(e,t,$(n,2))}function vc(e,t){var n=e==null?0:e.length;if(n){var r=Aa(e,t);if(r<n&&iu(e[r],t))return r}return-1}function yc(e,t){return Aa(e,t,!0)}function bc(e,t,n){return ja(e,t,$(n,2),!0)}function xc(e,t){if(e!=null&&e.length){var n=Aa(e,t,!0)-1;if(iu(e[n],t))return n}return-1}function Sc(e){return e&&e.length?Ma(e):[]}function Cc(e,t){return e&&e.length?Ma(e,$(t,2)):[]}function wc(e){var t=e==null?0:e.length;return t?Oa(e,1,t):[]}function Tc(e,t,r){return e&&e.length?(t=r||t===n?1:Ju(t),Oa(e,0,t<0?0:t)):[]}function Ec(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Ju(t),t=i-t,Oa(e,t<0?0:t,i)):[]}function Dc(e,t){return e&&e.length?Ra(e,$(t,3),!1,!0):[]}function Oc(e,t){return e&&e.length?Ra(e,$(t,3)):[]}var kc=xa(function(e){return Fa(Ai(e,1,du,!0))}),Ac=xa(function(e){var t=ac(e);return du(t)&&(t=n),Fa(Ai(e,1,du,!0),$(t,2))}),jc=xa(function(e){var t=ac(e);return t=typeof t==`function`?t:n,Fa(Ai(e,1,du,!0),n,t)});function Mc(e){return e&&e.length?Fa(e):[]}function Nc(e,t){return e&&e.length?Fa(e,$(t,2)):[]}function Pc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Fa(e,n,t):[]}function Fc(e){if(!(e&&e.length))return[];var t=0;return e=Sn(e,function(e){if(du(e))return t=Gt(e.length,t),!0}),Wn(t,function(t){return Tn(e,zn(t))})}function Ic(e,t){if(!(e&&e.length))return[];var r=Fc(e);return t==null?r:Tn(r,function(e){return _n(t,n,e)})}var Lc=xa(function(e,t){return du(e)?Ci(e,t):[]}),Rc=xa(function(e){return Ba(Sn(e,du))}),zc=xa(function(e){var t=ac(e);return du(t)&&(t=n),Ba(Sn(e,du),$(t,2))}),Bc=xa(function(e){var t=ac(e);return t=typeof t==`function`?t:n,Ba(Sn(e,du),n,t)}),Vc=xa(Fc);function Hc(e,t){return Va(e||[],t||[],di)}function Uc(e,t){return Va(e||[],t||[],wa)}var Wc=xa(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Ic(e,r)});function Gc(e){var t=Z(e);return t.__chain__=!0,t}function Kc(e,t){return t(e),e}function qc(e,t){return t(e)}var Jc=zo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return _i(t,e)};return t>1||this.__actions__.length||!(i instanceof kr)||!os(r)?this.thru(a):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:qc,args:[a],thisArg:n}),new Or(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Yc(){return Gc(this)}function Xc(){return new Or(this.value(),this.__chain__)}function Zc(){this.__values__===n&&(this.__values__=Ku(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Qc(){return this}function $c(e){for(var t,r=this;r instanceof Dr;){var i=Ps(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function el(){var e=this.__wrapped__;if(e instanceof kr){var t=e;return this.__actions__.length&&(t=new kr(this)),t=t.reverse(),t.__actions__.push({func:qc,args:[mc],thisArg:n}),new Or(t,this.__chain__)}return this.thru(mc)}function tl(){return za(this.__wrapped__,this.__actions__)}var nl=co(function(e,t,n){mt.call(e,n)?++e[n]:gi(e,n,1)});function rl(e,t,r){var i=cu(e)?xn:Ei;return r&&ss(e,t,r)&&(t=n),i(e,$(t,3))}function il(e,t){return(cu(e)?Sn:ki)(e,$(t,3))}var al=vo(Ks),ol=vo(qs);function sl(e,t){return Ai(gl(e,t),1)}function cl(e,t){return Ai(gl(e,t),N)}function ll(e,t,r){return r=r===n?1:Ju(r),Ai(gl(e,t),r)}function ul(e,t){return(cu(e)?yn:wi)(e,$(t,3))}function dl(e,t){return(cu(e)?bn:Ti)(e,$(t,3))}var fl=co(function(e,t,n){mt.call(e,n)?e[n].push(t):gi(e,n,[t])});function pl(e,t,n,r){e=uu(e)?e:Vd(e),n=n&&!r?Ju(n):0;var i=e.length;return n<0&&(n=Gt(i+n,0)),Ru(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Fn(e,t,n)>-1}var ml=xa(function(e,t,n){var r=-1,i=typeof t==`function`,a=uu(e)?ze(e.length):[];return wi(e,function(e){a[++r]=i?_n(t,e,n):Gi(e,t,n)}),a}),hl=co(function(e,t,n){gi(e,n,t)});function gl(e,t){return(cu(e)?Tn:oa)(e,$(t,3))}function _l(e,t,r,i){return e==null?[]:(cu(t)||(t=t==null?[]:[t]),r=i?n:r,cu(r)||(r=r==null?[]:[r]),fa(e,t,r))}var vl=co(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function yl(e,t,n){var r=cu(e)?Dn:Vn,i=arguments.length<3;return r(e,$(t,4),n,i,wi)}function bl(e,t,n){var r=cu(e)?On:Vn,i=arguments.length<3;return r(e,$(t,4),n,i,Ti)}function xl(e,t){return(cu(e)?Sn:ki)(e,Vl($(t,3)))}function Sl(e){return(cu(e)?si:Sa)(e)}function Cl(e,t,r){return t=(r?ss(e,t,r):t===n)?1:Ju(t),(cu(e)?ci:Ca)(e,t)}function wl(e){return(cu(e)?li:Da)(e)}function Tl(e){if(e==null)return 0;if(uu(e))return Ru(e)?pr(e):e.length;var t=Zo(e);return t==U||t==W?e.size:ra(e).length}function El(e,t,r){var i=cu(e)?kn:ka;return r&&ss(e,t,r)&&(t=n),i(e,$(t,3))}var Dl=xa(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),fa(e,Ai(t,1),[])}),Ol=Pt||function(){return an.Date.now()};function kl(e,t){if(typeof t!=`function`)throw new ct(o);return e=Ju(e),function(){if(--e<1)return t.apply(this,arguments)}}function Al(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Mo(e,C,n,n,n,n,t)}function jl(e,t){var r;if(typeof t!=`function`)throw new ct(o);return e=Ju(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ml=xa(function(e,t,n){var r=g;if(n.length){var i=cr(n,Wo(Ml));r|=x}return Mo(e,r,t,n,i)}),Nl=xa(function(e,t,n){var r=g|_;if(n.length){var i=cr(n,Wo(Nl));r|=x}return Mo(t,r,e,n,i)});function Pl(e,t,r){t=r?n:t;var i=Mo(e,y,n,n,n,n,n,t);return i.placeholder=Pl.placeholder,i}function Fl(e,t,r){t=r?n:t;var i=Mo(e,b,n,n,n,n,n,t);return i.placeholder=Fl.placeholder,i}function Il(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ct(o);t=Xu(t)||0,wu(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?Gt(Xu(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Ts(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Xt(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Ol();if(v(e))return b(e);l=Ts(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&qa(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(Ol())}function C(){var e=Ol(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return qa(l),l=Ts(y,t),h(u)}return l===n&&(l=Ts(y,t)),c}return C.cancel=x,C.flush=S,C}var Ll=xa(function(e,t){return Si(e,1,t)}),Rl=xa(function(e,t,n){return Si(e,Xu(t)||0,n)});function zl(e){return Mo(e,T)}function Bl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ct(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Bl.Cache||Gr),n}Bl.Cache=Gr;function Vl(e){if(typeof e!=`function`)throw new ct(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Hl(e){return jl(2,e)}var Ul=Ga(function(e,t){t=t.length==1&&cu(t[0])?Tn(t[0],qn($())):Tn(Ai(t,1),qn($()));var n=t.length;return xa(function(r){for(var i=-1,a=Xt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return _n(e,this,r)})}),Wl=xa(function(e,t){return Mo(e,x,n,t,cr(t,Wo(Wl)))}),Gl=xa(function(e,t){return Mo(e,S,n,t,cr(t,Wo(Gl)))}),Kl=zo(function(e,t){return Mo(e,w,n,n,n,t)});function ql(e,t){if(typeof e!=`function`)throw new ct(o);return t=t===n?t:Ju(t),xa(e,t)}function Jl(e,t){if(typeof e!=`function`)throw new ct(o);return t=t==null?0:Gt(Ju(t),0),xa(function(n){var r=n[t],i=Ka(n,0,t);return r&&En(i,r),_n(e,this,i)})}function Yl(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new ct(o);return wu(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Il(e,t,{leading:r,maxWait:t,trailing:i})}function Xl(e){return Al(e,1)}function Zl(e,t){return Wl(Ua(t),e)}function Ql(){if(!arguments.length)return[];var e=arguments[0];return cu(e)?e:[e]}function $l(e){return yi(e,p)}function eu(e,t){return t=typeof t==`function`?t:n,yi(e,p,t)}function tu(e){return yi(e,d|p)}function nu(e,t){return t=typeof t==`function`?t:n,yi(e,d|p,t)}function ru(e,t){return t==null||xi(e,t,Sd(t))}function iu(e,t){return e===t||e!==e&&t!==t}var au=Do(zi),ou=Do(function(e,t){return e>=t}),su=Ki(function(){return arguments}())?Ki:function(e){return Tu(e)&&mt.call(e,`callee`)&&!Dt.call(e,`callee`)},cu=ze.isArray,lu=dn?qn(dn):qi;function uu(e){return e!=null&&Cu(e.length)&&!xu(e)}function du(e){return Tu(e)&&uu(e)}function fu(e){return e===!0||e===!1||Tu(e)&&Ri(e)==B}var pu=zt||Yf,mu=fn?qn(fn):Ji;function hu(e){return Tu(e)&&e.nodeType===1&&!Pu(e)}function gu(e){if(e==null)return!0;if(uu(e)&&(cu(e)||typeof e==`string`||typeof e.splice==`function`||pu(e)||Bu(e)||su(e)))return!e.length;var t=Zo(e);if(t==U||t==W)return!e.size;if(ps(e))return!ra(e).length;for(var n in e)if(mt.call(e,n))return!1;return!0}function _u(e,t){return Yi(e,t)}function vu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Yi(e,t,n,r):!!i}function yu(e){if(!Tu(e))return!1;var t=Ri(e);return t==ae||t==ie||typeof e.message==`string`&&typeof e.name==`string`&&!Pu(e)}function bu(e){return typeof e==`number`&&Ht(e)}function xu(e){if(!wu(e))return!1;var t=Ri(e);return t==H||t==oe||t==re||t==de}function Su(e){return typeof e==`number`&&e==Ju(e)}function Cu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=P}function wu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Tu(e){return typeof e==`object`&&!!e}var Eu=pn?qn(pn):Zi;function Du(e,t){return e===t||Qi(e,t,Ko(t))}function Ou(e,t,r){return r=typeof r==`function`?r:n,Qi(e,t,Ko(t),r)}function ku(e){return Nu(e)&&e!=+e}function Au(e){if(fs(e))throw new nt(a);return $i(e)}function ju(e){return e===null}function Mu(e){return e==null}function Nu(e){return typeof e==`number`||Tu(e)&&Ri(e)==se}function Pu(e){if(!Tu(e)||Ri(e)!=le)return!1;var t=Tt(e);if(t===null)return!0;var n=mt.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&pt.call(n)==vt}var Fu=mn?qn(mn):ea;function Iu(e){return Su(e)&&e>=-P&&e<=P}var Lu=hn?qn(hn):Q;function Ru(e){return typeof e==`string`||!cu(e)&&Tu(e)&&Ri(e)==G}function zu(e){return typeof e==`symbol`||Tu(e)&&Ri(e)==pe}var Bu=gn?qn(gn):ta;function Vu(e){return e===n}function Hu(e){return Tu(e)&&Zo(e)==K}function Uu(e){return Tu(e)&&Ri(e)==q}var Wu=Do(aa),Gu=Do(function(e,t){return e<=t});function Ku(e){if(!e)return[];if(uu(e))return Ru(e)?mr(e):io(e);if(At&&e[At])return ar(e[At]());var t=Zo(e);return(t==U?or:t==W?lr:Vd)(e)}function qu(e){return e?(e=Xu(e),e===N||e===-N?(e<0?-1:1)*ee:e===e?e:0):e===0?e:0}function Ju(e){var t=qu(e),n=t%1;return t===t?n?t-n:t:0}function Yu(e){return e?vi(Ju(e),0,I):0}function Xu(e){if(typeof e==`number`)return e;if(zu(e))return F;if(wu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=wu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Kn(e);var n=Ye.test(e);return n||Ze.test(e)?tn(e.slice(2),n?2:8):Je.test(e)?F:+e}function Zu(e){return ao(e,Cd(e))}function Qu(e){return e?vi(Ju(e),-P,P):e===0?e:0}function $u(e){return e==null?``:Pa(e)}var ed=lo(function(e,t){if(ps(t)||uu(t)){ao(t,Sd(t),e);return}for(var n in t)mt.call(t,n)&&di(e,n,t[n])}),td=lo(function(e,t){ao(t,Cd(t),e)}),nd=lo(function(e,t,n,r){ao(t,Cd(t),e,r)}),rd=lo(function(e,t,n,r){ao(t,Sd(t),e,r)}),id=zo(_i);function ad(e,t){var n=Er(e);return t==null?n:mi(n,t)}var od=xa(function(e,t){e=at(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ss(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Cd(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||iu(d,dt[u])&&!mt.call(e,u))&&(e[u]=o[u])}return e}),sd=xa(function(e){return e.push(n,Po),_n(Dd,n,e)});function cd(e,t){return Nn(e,$(t,3),Ni)}function ld(e,t){return Nn(e,$(t,3),Pi)}function ud(e,t){return e==null?e:ji(e,$(t,3),Cd)}function dd(e,t){return e==null?e:Mi(e,$(t,3),Cd)}function fd(e,t){return e&&Ni(e,$(t,3))}function pd(e,t){return e&&Pi(e,$(t,3))}function md(e){return e==null?[]:Fi(e,Sd(e))}function hd(e){return e==null?[]:Fi(e,Cd(e))}function gd(e,t,r){var i=e==null?n:Ii(e,t);return i===n?r:i}function _d(e,t){return e!=null&&es(e,t,Bi)}function vd(e,t){return e!=null&&es(e,t,Vi)}var yd=xo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=_t.call(t)),e[t]=n},Df(jf)),bd=xo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=_t.call(t)),mt.call(e,t)?e[t].push(n):e[t]=[n]},$),xd=xa(Gi);function Sd(e){return uu(e)?oi(e):ra(e)}function Cd(e){return uu(e)?oi(e,!0):ia(e)}function wd(e,t){var n={};return t=$(t,3),Ni(e,function(e,r,i){gi(n,t(e,r,i),e)}),n}function Td(e,t){var n={};return t=$(t,3),Ni(e,function(e,r,i){gi(n,r,t(e,r,i))}),n}var Ed=lo(function(e,t,n){la(e,t,n)}),Dd=lo(function(e,t,n,r){la(e,t,n,r)}),Od=zo(function(e,t){var n={};if(e==null)return n;var r=!1;t=Tn(t,function(t){return t=Wa(t,e),r||=t.length>1,t}),ao(e,Vo(e),n),r&&(n=yi(n,d|f|p,Fo));for(var i=t.length;i--;)Ia(n,t[i]);return n});function kd(e,t){return jd(e,Vl($(t)))}var Ad=zo(function(e,t){return e==null?{}:pa(e,t)});function jd(e,t){if(e==null)return{};var n=Tn(Vo(e),function(e){return[e]});return t=$(t),ma(e,n,function(e,n){return t(e,n[0])})}function Md(e,t,r){t=Wa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[js(t[i])];o===n&&(i=a,o=r),e=xu(o)?o.call(e):o}return e}function Nd(e,t,n){return e==null?e:wa(e,t,n)}function Pd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:wa(e,t,r,i)}var Fd=jo(Sd),Id=jo(Cd);function Ld(e,t,n){var r=cu(e),i=r||pu(e)||Bu(e);if(t=$(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:wu(e)&&xu(a)?Er(Tt(e)):{}}return(i?yn:Ni)(e,function(e,r,i){return t(n,e,r,i)}),n}function Rd(e,t){return e==null?!0:Ia(e,t)}function zd(e,t,n){return e==null?e:La(e,t,Ua(n))}function Bd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:La(e,t,Ua(r),i)}function Vd(e){return e==null?[]:Jn(e,Sd(e))}function Hd(e){return e==null?[]:Jn(e,Cd(e))}function Ud(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Xu(r),r=r===r?r:0),t!==n&&(t=Xu(t),t=t===t?t:0),vi(Xu(e),t,r)}function Wd(e,t,r){return t=qu(t),r===n?(r=t,t=0):r=qu(r),e=Xu(e),Hi(e,t,r)}function Gd(e,t,r){if(r&&typeof r!=`boolean`&&ss(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=qu(e),t===n?(t=e,e=0):t=qu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=$t();return Xt(e+a*(t-e+en(`1e-`+((a+``).length-1))),t)}return va(e,t)}var Kd=ho(function(e,t,n){return t=t.toLowerCase(),e+(n?qd(t):t)});function qd(e){return xf($u(e).toLowerCase())}function Jd(e){return e=$u(e),e&&e.replace($e,$n).replace(Vt,``)}function Yd(e,t,r){e=$u(e),t=Pa(t);var i=e.length;r=r===n?i:vi(Ju(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Xd(e){return e=$u(e),e&&ke.test(e)?e.replace(De,er):e}function Zd(e){return e=$u(e),e&&Le.test(e)?e.replace(Ie,`\\$&`):e}var Qd=ho(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),$d=ho(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),ef=mo(`toLowerCase`);function tf(e,t,n){e=$u(e),t=Ju(t);var r=t?pr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return wo(Lt(i),n)+e+wo(It(i),n)}function nf(e,t,n){e=$u(e),t=Ju(t);var r=t?pr(e):0;return t&&r<t?e+wo(t-r,n):e}function rf(e,t,n){e=$u(e),t=Ju(t);var r=t?pr(e):0;return t&&r<t?wo(t-r,n)+e:e}function af(e,t,n){return n||t==null?t=0:t&&=+t,Qt($u(e).replace(Re,``),t||0)}function of(e,t,r){return t=(r?ss(e,t,r):t===n)?1:Ju(t),ba($u(e),t)}function sf(){var e=arguments,t=$u(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var cf=ho(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function lf(e,t,r){return r&&typeof r!=`number`&&ss(e,t,r)&&(t=r=n),r=r===n?I:r>>>0,r?(e=$u(e),e&&(typeof t==`string`||t!=null&&!Fu(t))&&(t=Pa(t),!t&&rr(e))?Ka(mr(e),0,r):e.split(t,r)):[]}var uf=ho(function(e,t,n){return e+(n?` `:``)+xf(t)});function df(e,t,n){return e=$u(e),n=n==null?0:vi(Ju(n),0,e.length),t=Pa(t),e.slice(n,n+t.length)==t}function ff(e,t,r){var i=Z.templateSettings;r&&ss(e,t,r)&&(t=n),e=$u(e),t=nd({},t,i,No);var a=nd({},t.imports,i.imports,No),o=Sd(a),c=Jn(a,o),l,u,d=0,f=t.interpolate||et,p=`__p += '`,m=ot((t.escape||et).source+`|`+f.source+`|`+(f===Me?Ke:et).source+`|`+(t.evaluate||et).source+`|$`,`g`),h=`//# sourceURL=`+(mt.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++qt+`]`)+`
867
+ `)}function as(e){return cu(e)||su(e)||!!(kt&&e&&e[kt])}function os(e,t){var n=typeof e;return t??=P,!!t&&(n==`number`||n!=`symbol`&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!wu(n))return!1;var r=typeof t;return(r==`number`?uu(n)&&os(t,n.length):r==`string`&&t in n)?iu(n[t],e):!1}function cs(e,t){if(cu(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||zu(e)?!0:Pe.test(e)||!Ne.test(e)||t!=null&&e in at(t)}function ls(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function us(e){var t=Uo(e),n=Z[t];if(typeof n!=`function`||!(t in kr.prototype))return!1;if(e===n)return!0;var r=Ho(n);return!!r&&e===r[0]}function ds(e){return!!gt&&gt in e}var fs=ft?xu:Yf;function ps(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||dt)}function ms(e){return e===e&&!wu(e)}function hs(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in at(r))}}function gs(e){var t=Bl(e,function(e){return n.size===l&&n.clear(),e}),n=t.cache;return t}function _s(e,t){var n=e[1],r=t[1],i=n|r,a=i<(g|_|C),o=r==C&&n==y||r==C&&n==w&&e[7].length<=t[8]||r==(C|w)&&t[7].length<=t[8]&&n==y;if(!(a||o))return e;r&g&&(e[2]=t[2],i|=n&g?0:v);var s=t[3];if(s){var c=e[3];e[3]=c?no(c,s,t[4]):s,e[4]=c?cr(e[3],u):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?ro(c,s,t[6]):s,e[6]=c?cr(e[5],u):t[6]),s=t[7],s&&(e[7]=s),r&C&&(e[8]=e[8]==null?t[8]:Xt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function vs(e){var t=[];if(e!=null)for(var n in at(e))t.push(n);return t}function ys(e){return _t.call(e)}function bs(e,t,r){return t=Gt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Gt(n.length-t,0),o=ze(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=ze(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),_n(e,this,s)}}function xs(e,t){return t.length<2?e:Ii(e,Oa(t,0,-1))}function Ss(e,t){for(var r=e.length,i=Xt(t.length,r),a=io(e);i--;){var o=t[i];e[i]=os(o,r)?a[o]:n}return e}function Cs(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var ws=Os(Ta),Ts=Ft||function(e,t){return an.setTimeout(e,t)},Es=Os(Ea);function Ds(e,t,n){var r=t+``;return Es(e,is(r,Ns($o(r),n)))}function Os(e){var t=0,r=0;return function(){var i=Zt(),a=k-(i-r);if(r=i,a>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ks(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=va(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var As=gs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Fe,function(e,n,r,i){t.push(r?i.replace(Ge,`$1`):n||e)}),t});function js(e){if(typeof e==`string`||zu(e))return e;var t=e+``;return t==`0`&&1/e==-N?`-0`:t}function Ms(e){if(e!=null){try{return pt.call(e)}catch{}try{return e+``}catch{}}return``}function Ns(e,t){return yn(z,function(n){var r=`_.`+n[0];t&n[1]&&!Cn(e,r)&&e.push(r)}),e.sort()}function Ps(e){if(e instanceof kr)return e.clone();var t=new Or(e.__wrapped__,e.__chain__);return t.__actions__=io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Fs(e,t,r){t=(r?ss(e,t,r):t===n)?1:Gt(Ju(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=ze(It(i/t));a<i;)s[o++]=Oa(e,a,a+=t);return s}function Is(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ls(){var e=arguments.length;if(!e)return[];for(var t=ze(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return En(cu(n)?io(n):[n],Ai(t,1))}var Rs=xa(function(e,t){return du(e)?Ci(e,Ai(t,1,du,!0)):[]}),zs=xa(function(e,t){var r=ac(t);return du(r)&&(r=n),du(e)?Ci(e,Ai(t,1,du,!0),$(r,2)):[]}),Bs=xa(function(e,t){var r=ac(t);return du(r)&&(r=n),du(e)?Ci(e,Ai(t,1,du,!0),n,r):[]});function Vs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Ju(t),Oa(e,t<0?0:t,i)):[]}function Hs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Ju(t),t=i-t,Oa(e,0,t<0?0:t)):[]}function Us(e,t){return e&&e.length?Ra(e,$(t,3),!0,!0):[]}function Ws(e,t){return e&&e.length?Ra(e,$(t,3),!0):[]}function Gs(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&ss(e,t,n)&&(n=0,r=i),Oi(e,t,n,r)):[]}function Ks(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Ju(n);return i<0&&(i=Gt(r+i,0)),Pn(e,$(t,3),i)}function qs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Ju(r),a=r<0?Gt(i+a,0):Xt(a,i-1)),Pn(e,$(t,3),a,!0)}function Js(e){return e!=null&&e.length?Ai(e,1):[]}function Ys(e){return e!=null&&e.length?Ai(e,N):[]}function Xs(e,t){return e!=null&&e.length?(t=t===n?1:Ju(t),Ai(e,t)):[]}function Zs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Qs(e){return e&&e.length?e[0]:n}function $s(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Ju(n);return i<0&&(i=Gt(r+i,0)),Fn(e,t,i)}function ec(e){return e!=null&&e.length?Oa(e,0,-1):[]}var tc=xa(function(e){var t=Tn(e,Ha);return t.length&&t[0]===e[0]?Ui(t):[]}),nc=xa(function(e){var t=ac(e),r=Tn(e,Ha);return t===ac(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ui(r,$(t,2)):[]}),rc=xa(function(e){var t=ac(e),r=Tn(e,Ha);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ui(r,n,t):[]});function ic(e,t){return e==null?``:Ut.call(e,t)}function ac(e){var t=e==null?0:e.length;return t?e[t-1]:n}function oc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Ju(r),a=a<0?Gt(i+a,0):Xt(a,i-1)),t===t?fr(e,t,a):Pn(e,Ln,a,!0)}function sc(e,t){return e&&e.length?da(e,Ju(t)):n}var cc=xa(lc);function lc(e,t){return e&&e.length&&t&&t.length?ga(e,t):e}function uc(e,t,n){return e&&e.length&&t&&t.length?ga(e,t,$(n,2)):e}function dc(e,t,r){return e&&e.length&&t&&t.length?ga(e,t,n,r):e}var fc=zo(function(e,t){var n=e==null?0:e.length,r=_i(e,t);return _a(e,Tn(t,function(e){return os(e,n)?+e:e}).sort(eo)),r});function pc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=$(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return _a(e,i),n}function mc(e){return e==null?e:nn.call(e)}function hc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&ss(e,t,r)?(t=0,r=i):(t=t==null?0:Ju(t),r=r===n?i:Ju(r)),Oa(e,t,r)):[]}function gc(e,t){return Aa(e,t)}function _c(e,t,n){return ja(e,t,$(n,2))}function vc(e,t){var n=e==null?0:e.length;if(n){var r=Aa(e,t);if(r<n&&iu(e[r],t))return r}return-1}function yc(e,t){return Aa(e,t,!0)}function bc(e,t,n){return ja(e,t,$(n,2),!0)}function xc(e,t){if(e!=null&&e.length){var n=Aa(e,t,!0)-1;if(iu(e[n],t))return n}return-1}function Sc(e){return e&&e.length?Ma(e):[]}function Cc(e,t){return e&&e.length?Ma(e,$(t,2)):[]}function wc(e){var t=e==null?0:e.length;return t?Oa(e,1,t):[]}function Tc(e,t,r){return e&&e.length?(t=r||t===n?1:Ju(t),Oa(e,0,t<0?0:t)):[]}function Ec(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Ju(t),t=i-t,Oa(e,t<0?0:t,i)):[]}function Dc(e,t){return e&&e.length?Ra(e,$(t,3),!1,!0):[]}function Oc(e,t){return e&&e.length?Ra(e,$(t,3)):[]}var kc=xa(function(e){return Fa(Ai(e,1,du,!0))}),Ac=xa(function(e){var t=ac(e);return du(t)&&(t=n),Fa(Ai(e,1,du,!0),$(t,2))}),jc=xa(function(e){var t=ac(e);return t=typeof t==`function`?t:n,Fa(Ai(e,1,du,!0),n,t)});function Mc(e){return e&&e.length?Fa(e):[]}function Nc(e,t){return e&&e.length?Fa(e,$(t,2)):[]}function Pc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Fa(e,n,t):[]}function Fc(e){if(!(e&&e.length))return[];var t=0;return e=Sn(e,function(e){if(du(e))return t=Gt(e.length,t),!0}),Wn(t,function(t){return Tn(e,zn(t))})}function Ic(e,t){if(!(e&&e.length))return[];var r=Fc(e);return t==null?r:Tn(r,function(e){return _n(t,n,e)})}var Lc=xa(function(e,t){return du(e)?Ci(e,t):[]}),Rc=xa(function(e){return Ba(Sn(e,du))}),zc=xa(function(e){var t=ac(e);return du(t)&&(t=n),Ba(Sn(e,du),$(t,2))}),Bc=xa(function(e){var t=ac(e);return t=typeof t==`function`?t:n,Ba(Sn(e,du),n,t)}),Vc=xa(Fc);function Hc(e,t){return Va(e||[],t||[],di)}function Uc(e,t){return Va(e||[],t||[],wa)}var Wc=xa(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Ic(e,r)});function Gc(e){var t=Z(e);return t.__chain__=!0,t}function Kc(e,t){return t(e),e}function qc(e,t){return t(e)}var Jc=zo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return _i(t,e)};return t>1||this.__actions__.length||!(i instanceof kr)||!os(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:qc,args:[a],thisArg:n}),new Or(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Yc(){return Gc(this)}function Xc(){return new Or(this.value(),this.__chain__)}function Zc(){this.__values__===n&&(this.__values__=Ku(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Qc(){return this}function $c(e){for(var t,r=this;r instanceof Dr;){var i=Ps(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function el(){var e=this.__wrapped__;if(e instanceof kr){var t=e;return this.__actions__.length&&(t=new kr(this)),t=t.reverse(),t.__actions__.push({func:qc,args:[mc],thisArg:n}),new Or(t,this.__chain__)}return this.thru(mc)}function tl(){return za(this.__wrapped__,this.__actions__)}var nl=co(function(e,t,n){mt.call(e,n)?++e[n]:gi(e,n,1)});function rl(e,t,r){var i=cu(e)?xn:Ei;return r&&ss(e,t,r)&&(t=n),i(e,$(t,3))}function il(e,t){return(cu(e)?Sn:ki)(e,$(t,3))}var al=vo(Ks),ol=vo(qs);function sl(e,t){return Ai(gl(e,t),1)}function cl(e,t){return Ai(gl(e,t),N)}function ll(e,t,r){return r=r===n?1:Ju(r),Ai(gl(e,t),r)}function ul(e,t){return(cu(e)?yn:wi)(e,$(t,3))}function dl(e,t){return(cu(e)?bn:Ti)(e,$(t,3))}var fl=co(function(e,t,n){mt.call(e,n)?e[n].push(t):gi(e,n,[t])});function pl(e,t,n,r){e=uu(e)?e:Vd(e),n=n&&!r?Ju(n):0;var i=e.length;return n<0&&(n=Gt(i+n,0)),Ru(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Fn(e,t,n)>-1}var ml=xa(function(e,t,n){var r=-1,i=typeof t==`function`,a=uu(e)?ze(e.length):[];return wi(e,function(e){a[++r]=i?_n(t,e,n):Gi(e,t,n)}),a}),hl=co(function(e,t,n){gi(e,n,t)});function gl(e,t){return(cu(e)?Tn:oa)(e,$(t,3))}function _l(e,t,r,i){return e==null?[]:(cu(t)||(t=t==null?[]:[t]),r=i?n:r,cu(r)||(r=r==null?[]:[r]),fa(e,t,r))}var vl=co(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function yl(e,t,n){var r=cu(e)?Dn:Vn,i=arguments.length<3;return r(e,$(t,4),n,i,wi)}function bl(e,t,n){var r=cu(e)?On:Vn,i=arguments.length<3;return r(e,$(t,4),n,i,Ti)}function xl(e,t){return(cu(e)?Sn:ki)(e,Vl($(t,3)))}function Sl(e){return(cu(e)?si:Sa)(e)}function Cl(e,t,r){return t=(r?ss(e,t,r):t===n)?1:Ju(t),(cu(e)?ci:Ca)(e,t)}function wl(e){return(cu(e)?li:Da)(e)}function Tl(e){if(e==null)return 0;if(uu(e))return Ru(e)?pr(e):e.length;var t=Zo(e);return t==U||t==W?e.size:ra(e).length}function El(e,t,r){var i=cu(e)?kn:ka;return r&&ss(e,t,r)&&(t=n),i(e,$(t,3))}var Dl=xa(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),fa(e,Ai(t,1),[])}),Ol=Pt||function(){return an.Date.now()};function kl(e,t){if(typeof t!=`function`)throw new ct(o);return e=Ju(e),function(){if(--e<1)return t.apply(this,arguments)}}function Al(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Mo(e,C,n,n,n,n,t)}function jl(e,t){var r;if(typeof t!=`function`)throw new ct(o);return e=Ju(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ml=xa(function(e,t,n){var r=g;if(n.length){var i=cr(n,Wo(Ml));r|=x}return Mo(e,r,t,n,i)}),Nl=xa(function(e,t,n){var r=g|_;if(n.length){var i=cr(n,Wo(Nl));r|=x}return Mo(t,r,e,n,i)});function Pl(e,t,r){t=r?n:t;var i=Mo(e,y,n,n,n,n,n,t);return i.placeholder=Pl.placeholder,i}function Fl(e,t,r){t=r?n:t;var i=Mo(e,b,n,n,n,n,n,t);return i.placeholder=Fl.placeholder,i}function Il(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ct(o);t=Xu(t)||0,wu(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?Gt(Xu(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Ts(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Xt(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Ol();if(v(e))return b(e);l=Ts(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&qa(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(Ol())}function C(){var e=Ol(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return qa(l),l=Ts(y,t),h(u)}return l===n&&(l=Ts(y,t)),c}return C.cancel=x,C.flush=S,C}var Ll=xa(function(e,t){return Si(e,1,t)}),Rl=xa(function(e,t,n){return Si(e,Xu(t)||0,n)});function zl(e){return Mo(e,T)}function Bl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ct(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Bl.Cache||Gr),n}Bl.Cache=Gr;function Vl(e){if(typeof e!=`function`)throw new ct(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Hl(e){return jl(2,e)}var Ul=Ga(function(e,t){t=t.length==1&&cu(t[0])?Tn(t[0],qn($())):Tn(Ai(t,1),qn($()));var n=t.length;return xa(function(r){for(var i=-1,a=Xt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return _n(e,this,r)})}),Wl=xa(function(e,t){return Mo(e,x,n,t,cr(t,Wo(Wl)))}),Gl=xa(function(e,t){return Mo(e,S,n,t,cr(t,Wo(Gl)))}),Kl=zo(function(e,t){return Mo(e,w,n,n,n,t)});function ql(e,t){if(typeof e!=`function`)throw new ct(o);return t=t===n?t:Ju(t),xa(e,t)}function Jl(e,t){if(typeof e!=`function`)throw new ct(o);return t=t==null?0:Gt(Ju(t),0),xa(function(n){var r=n[t],i=Ka(n,0,t);return r&&En(i,r),_n(e,this,i)})}function Yl(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new ct(o);return wu(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Il(e,t,{leading:r,maxWait:t,trailing:i})}function Xl(e){return Al(e,1)}function Zl(e,t){return Wl(Ua(t),e)}function Ql(){if(!arguments.length)return[];var e=arguments[0];return cu(e)?e:[e]}function $l(e){return yi(e,p)}function eu(e,t){return t=typeof t==`function`?t:n,yi(e,p,t)}function tu(e){return yi(e,d|p)}function nu(e,t){return t=typeof t==`function`?t:n,yi(e,d|p,t)}function ru(e,t){return t==null||xi(e,t,Sd(t))}function iu(e,t){return e===t||e!==e&&t!==t}var au=Do(zi),ou=Do(function(e,t){return e>=t}),su=Ki(function(){return arguments}())?Ki:function(e){return Tu(e)&&mt.call(e,`callee`)&&!Dt.call(e,`callee`)},cu=ze.isArray,lu=dn?qn(dn):qi;function uu(e){return e!=null&&Cu(e.length)&&!xu(e)}function du(e){return Tu(e)&&uu(e)}function fu(e){return e===!0||e===!1||Tu(e)&&Ri(e)==B}var pu=zt||Yf,mu=fn?qn(fn):Ji;function hu(e){return Tu(e)&&e.nodeType===1&&!Pu(e)}function gu(e){if(e==null)return!0;if(uu(e)&&(cu(e)||typeof e==`string`||typeof e.splice==`function`||pu(e)||Bu(e)||su(e)))return!e.length;var t=Zo(e);if(t==U||t==W)return!e.size;if(ps(e))return!ra(e).length;for(var n in e)if(mt.call(e,n))return!1;return!0}function _u(e,t){return Yi(e,t)}function vu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Yi(e,t,n,r):!!i}function yu(e){if(!Tu(e))return!1;var t=Ri(e);return t==ae||t==ie||typeof e.message==`string`&&typeof e.name==`string`&&!Pu(e)}function bu(e){return typeof e==`number`&&Ht(e)}function xu(e){if(!wu(e))return!1;var t=Ri(e);return t==H||t==oe||t==re||t==de}function Su(e){return typeof e==`number`&&e==Ju(e)}function Cu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=P}function wu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Tu(e){return typeof e==`object`&&!!e}var Eu=pn?qn(pn):Zi;function Du(e,t){return e===t||Qi(e,t,Ko(t))}function Ou(e,t,r){return r=typeof r==`function`?r:n,Qi(e,t,Ko(t),r)}function ku(e){return Nu(e)&&e!=+e}function Au(e){if(fs(e))throw new nt(a);return $i(e)}function ju(e){return e===null}function Mu(e){return e==null}function Nu(e){return typeof e==`number`||Tu(e)&&Ri(e)==se}function Pu(e){if(!Tu(e)||Ri(e)!=le)return!1;var t=Tt(e);if(t===null)return!0;var n=mt.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&pt.call(n)==vt}var Fu=mn?qn(mn):ea;function Iu(e){return Su(e)&&e>=-P&&e<=P}var Lu=hn?qn(hn):Q;function Ru(e){return typeof e==`string`||!cu(e)&&Tu(e)&&Ri(e)==G}function zu(e){return typeof e==`symbol`||Tu(e)&&Ri(e)==pe}var Bu=gn?qn(gn):ta;function Vu(e){return e===n}function Hu(e){return Tu(e)&&Zo(e)==K}function Uu(e){return Tu(e)&&Ri(e)==q}var Wu=Do(aa),Gu=Do(function(e,t){return e<=t});function Ku(e){if(!e)return[];if(uu(e))return Ru(e)?mr(e):io(e);if(At&&e[At])return ar(e[At]());var t=Zo(e);return(t==U?or:t==W?lr:Vd)(e)}function qu(e){return e?(e=Xu(e),e===N||e===-N?(e<0?-1:1)*ee:e===e?e:0):e===0?e:0}function Ju(e){var t=qu(e),n=t%1;return t===t?n?t-n:t:0}function Yu(e){return e?vi(Ju(e),0,I):0}function Xu(e){if(typeof e==`number`)return e;if(zu(e))return F;if(wu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=wu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Kn(e);var n=Ye.test(e);return n||Ze.test(e)?tn(e.slice(2),n?2:8):Je.test(e)?F:+e}function Zu(e){return ao(e,Cd(e))}function Qu(e){return e?vi(Ju(e),-P,P):e===0?e:0}function $u(e){return e==null?``:Pa(e)}var ed=lo(function(e,t){if(ps(t)||uu(t)){ao(t,Sd(t),e);return}for(var n in t)mt.call(t,n)&&di(e,n,t[n])}),td=lo(function(e,t){ao(t,Cd(t),e)}),nd=lo(function(e,t,n,r){ao(t,Cd(t),e,r)}),rd=lo(function(e,t,n,r){ao(t,Sd(t),e,r)}),id=zo(_i);function ad(e,t){var n=Er(e);return t==null?n:mi(n,t)}var od=xa(function(e,t){e=at(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ss(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Cd(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||iu(d,dt[u])&&!mt.call(e,u))&&(e[u]=o[u])}return e}),sd=xa(function(e){return e.push(n,Po),_n(Dd,n,e)});function cd(e,t){return Nn(e,$(t,3),Ni)}function ld(e,t){return Nn(e,$(t,3),Pi)}function ud(e,t){return e==null?e:ji(e,$(t,3),Cd)}function dd(e,t){return e==null?e:Mi(e,$(t,3),Cd)}function fd(e,t){return e&&Ni(e,$(t,3))}function pd(e,t){return e&&Pi(e,$(t,3))}function md(e){return e==null?[]:Fi(e,Sd(e))}function hd(e){return e==null?[]:Fi(e,Cd(e))}function gd(e,t,r){var i=e==null?n:Ii(e,t);return i===n?r:i}function _d(e,t){return e!=null&&es(e,t,Bi)}function vd(e,t){return e!=null&&es(e,t,Vi)}var yd=xo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=_t.call(t)),e[t]=n},Df(jf)),bd=xo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=_t.call(t)),mt.call(e,t)?e[t].push(n):e[t]=[n]},$),xd=xa(Gi);function Sd(e){return uu(e)?oi(e):ra(e)}function Cd(e){return uu(e)?oi(e,!0):ia(e)}function wd(e,t){var n={};return t=$(t,3),Ni(e,function(e,r,i){gi(n,t(e,r,i),e)}),n}function Td(e,t){var n={};return t=$(t,3),Ni(e,function(e,r,i){gi(n,r,t(e,r,i))}),n}var Ed=lo(function(e,t,n){la(e,t,n)}),Dd=lo(function(e,t,n,r){la(e,t,n,r)}),Od=zo(function(e,t){var n={};if(e==null)return n;var r=!1;t=Tn(t,function(t){return t=Wa(t,e),r||=t.length>1,t}),ao(e,Vo(e),n),r&&(n=yi(n,d|f|p,Fo));for(var i=t.length;i--;)Ia(n,t[i]);return n});function kd(e,t){return jd(e,Vl($(t)))}var Ad=zo(function(e,t){return e==null?{}:pa(e,t)});function jd(e,t){if(e==null)return{};var n=Tn(Vo(e),function(e){return[e]});return t=$(t),ma(e,n,function(e,n){return t(e,n[0])})}function Md(e,t,r){t=Wa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[js(t[i])];o===n&&(i=a,o=r),e=xu(o)?o.call(e):o}return e}function Nd(e,t,n){return e==null?e:wa(e,t,n)}function Pd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:wa(e,t,r,i)}var Fd=jo(Sd),Id=jo(Cd);function Ld(e,t,n){var r=cu(e),i=r||pu(e)||Bu(e);if(t=$(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:wu(e)&&xu(a)?Er(Tt(e)):{}}return(i?yn:Ni)(e,function(e,r,i){return t(n,e,r,i)}),n}function Rd(e,t){return e==null?!0:Ia(e,t)}function zd(e,t,n){return e==null?e:La(e,t,Ua(n))}function Bd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:La(e,t,Ua(r),i)}function Vd(e){return e==null?[]:Jn(e,Sd(e))}function Hd(e){return e==null?[]:Jn(e,Cd(e))}function Ud(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Xu(r),r=r===r?r:0),t!==n&&(t=Xu(t),t=t===t?t:0),vi(Xu(e),t,r)}function Wd(e,t,r){return t=qu(t),r===n?(r=t,t=0):r=qu(r),e=Xu(e),Hi(e,t,r)}function Gd(e,t,r){if(r&&typeof r!=`boolean`&&ss(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=qu(e),t===n?(t=e,e=0):t=qu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=$t();return Xt(e+a*(t-e+en(`1e-`+((a+``).length-1))),t)}return va(e,t)}var Kd=ho(function(e,t,n){return t=t.toLowerCase(),e+(n?qd(t):t)});function qd(e){return xf($u(e).toLowerCase())}function Jd(e){return e=$u(e),e&&e.replace($e,$n).replace(Vt,``)}function Yd(e,t,r){e=$u(e),t=Pa(t);var i=e.length;r=r===n?i:vi(Ju(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Xd(e){return e=$u(e),e&&ke.test(e)?e.replace(De,er):e}function Zd(e){return e=$u(e),e&&Le.test(e)?e.replace(Ie,`\\$&`):e}var Qd=ho(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),$d=ho(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),ef=mo(`toLowerCase`);function tf(e,t,n){e=$u(e),t=Ju(t);var r=t?pr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return wo(Lt(i),n)+e+wo(It(i),n)}function nf(e,t,n){e=$u(e),t=Ju(t);var r=t?pr(e):0;return t&&r<t?e+wo(t-r,n):e}function rf(e,t,n){e=$u(e),t=Ju(t);var r=t?pr(e):0;return t&&r<t?wo(t-r,n)+e:e}function af(e,t,n){return n||t==null?t=0:t&&=+t,Qt($u(e).replace(Re,``),t||0)}function of(e,t,r){return t=(r?ss(e,t,r):t===n)?1:Ju(t),ba($u(e),t)}function sf(){var e=arguments,t=$u(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var cf=ho(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function lf(e,t,r){return r&&typeof r!=`number`&&ss(e,t,r)&&(t=r=n),r=r===n?I:r>>>0,r?(e=$u(e),e&&(typeof t==`string`||t!=null&&!Fu(t))&&(t=Pa(t),!t&&rr(e))?Ka(mr(e),0,r):e.split(t,r)):[]}var uf=ho(function(e,t,n){return e+(n?` `:``)+xf(t)});function df(e,t,n){return e=$u(e),n=n==null?0:vi(Ju(n),0,e.length),t=Pa(t),e.slice(n,n+t.length)==t}function ff(e,t,r){var i=Z.templateSettings;r&&ss(e,t,r)&&(t=n),e=$u(e),t=nd({},t,i,No);var a=nd({},t.imports,i.imports,No),o=Sd(a),c=Jn(a,o),l,u,d=0,f=t.interpolate||et,p=`__p += '`,m=ot((t.escape||et).source+`|`+f.source+`|`+(f===Me?Ke:et).source+`|`+(t.evaluate||et).source+`|$`,`g`),h=`//# sourceURL=`+(mt.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++qt+`]`)+`
868
868
  `;e.replace(m,function(t,n,r,i,a,o){return r||=i,p+=e.slice(d,o).replace(tt,tr),n&&(l=!0,p+=`' +
869
869
  __e(`+n+`) +
870
870
  '`),a&&(u=!0,p+=`';
@@ -921,8 +921,8 @@ treating contingent properties as nullable.`,order:7},ignoreJsonRefs:{descriptio
921
921
  '{ $ref: "#/foo/bar" }' to refer
922
922
  to another part of the input.`,order:8}},e.inferenceFlagNames=Object.getOwnPropertyNames(e.inferenceFlagsObject),e.inferenceFlags=e.inferenceFlagsObject;var T={lang:`ts`,inputData:new b.InputData,alphabetizeProperties:!1,allPropertiesOptional:!1,fixedTopLevels:!1,noRender:!1,leadingComments:void 0,rendererOptions:{},indentation:void 0,outputFilename:`stdout`,debugPrintGraph:!1,checkProvenance:!1,debugPrintReconstitution:!1,debugPrintGatherNames:!1,debugPrintTransformations:!1,debugPrintTimes:!1,debugPrintSchemaResolving:!1};function E(){let t={};for(let n of e.inferenceFlagNames)t[n]=!0;return t}e.defaultInferenceFlags=E();var D=class{constructor(t){this._options=Object.assign({},T,e.defaultInferenceFlags);for(let e of Object.getOwnPropertyNames(t)){let n=t[e];n!==void 0&&(this._options[e]=n)}}get stringTypeMapping(){let t=w(this._options.lang),n=new Map(t.stringTypeMapping);for(let t of e.inferenceFlagNames){let r=e.inferenceFlags[t].stringType;!this._options[t]&&r!==void 0&&n.set(r,`string`)}return n}get debugPrintReconstitution(){return this._options.debugPrintReconstitution===!0}get debugPrintTransformations(){return this._options.debugPrintTransformations}get debugPrintSchemaResolving(){return this._options.debugPrintSchemaResolving}timeSync(e,t){return i(this,void 0,void 0,function*(){let n=Date.now(),r=yield t(),i=Date.now();return this._options.debugPrintTimes&&console.log(`${e} took ${i-n}ms`),r})}time(e,t){let n=Date.now(),r=t(),i=Date.now();return this._options.debugPrintTimes&&console.log(`${e} took ${i-n}ms`),r}makeGraphInputs(){let e=w(this._options.lang),t=this.stringTypeMapping;return{targetLanguage:e,stringTypeMapping:t,conflateNumbers:!e.supportsUnionsWithBothNumberTypes,typeBuilder:new d.TypeBuilder(0,t,this._options.alphabetizeProperties,this._options.allPropertiesOptional,this._options.checkProvenance,!1)}}makeGraph(e){return i(this,void 0,void 0,function*(){let t=this.makeGraphInputs();return yield this.timeSync(`read input`,()=>i(this,void 0,void 0,function*(){return yield e.addTypes(this,t.typeBuilder,this._options.inferMaps,this._options.inferEnums,this._options.fixedTopLevels)})),this.processGraph(e,t)})}makeGraphSync(e){let t=this.makeGraphInputs();return this.time(`read input`,()=>e.addTypesSync(this,t.typeBuilder,this._options.inferMaps,this._options.inferEnums,this._options.fixedTopLevels)),this.processGraph(e,t)}processGraph(e,t){let{targetLanguage:n,stringTypeMapping:r,conflateNumbers:i,typeBuilder:a}=t,o=a.finish();this._options.debugPrintGraph&&(o.setPrintOnRewrite(),o.printGraph());let s=this.debugPrintReconstitution;(a.didAddForwardingIntersection||!this._options.ignoreJsonRefs)&&this.time(`remove indirection intersections`,()=>o=(0,f.removeIndirectionIntersections)(o,r,s));let d=!1;if(e.needSchemaProcessing||!this._options.ignoreJsonRefs){let e=!1;do{let t=o;e||this.time(`resolve intersections`,()=>[o,e]=(0,_.resolveIntersections)(o,r,s)),d||this.time(`flatten unions`,()=>[o,d]=(0,g.flattenUnions)(o,r,i,!0,s)),o===t&&(0,c.assert)(e&&d,`Graph didn't change but we're not done`)}while(!e||!d)}this.time(`replace object type`,()=>o=(0,v.replaceObjectType)(o,r,i,n.supportsFullObjectType,s));do this.time(`flatten unions`,()=>[o,d]=(0,g.flattenUnions)(o,r,i,!1,s));while(!d);if(this._options.combineClasses){let e=this.time(`combine classes`,()=>(0,l.combineClasses)(this,o,this._options.alphabetizeProperties,!0,!1,s));e===o?o=e:this.time(`combine classes cleanup`,()=>o=(0,l.combineClasses)(this,e,this._options.alphabetizeProperties,!1,!0,s))}if(this._options.inferMaps)for(;;){let e=this.time(`infer maps`,()=>(0,u.inferMaps)(o,r,!0,s));if(e===o)break;o=e}let p=e.needSchemaProcessing?`all`:this._options.inferEnums?`infer`:`none`;return this.time(`expand strings`,()=>o=(0,h.expandStrings)(this,o,p)),this.time(`flatten unions`,()=>[o,d]=(0,g.flattenUnions)(o,r,i,!1,s)),(0,c.assert)(d,`We should only have to flatten unions once after expanding strings`),e.needSchemaProcessing&&this.time(`flatten strings`,()=>o=(0,x.flattenStrings)(o,r,s)),this.time(`none to any`,()=>o=(0,f.noneToAny)(o,r,s)),n.supportsOptionalClassProperties||this.time(`optional to nullable`,()=>o=(0,f.optionalToNullable)(o,r,s)),this.time(`fixed point`,()=>o=o.rewriteFixedPoint(!1,s)),this.time(`make transformations`,()=>o=(0,S.makeTransformations)(this,o,n)),this.time(`flatten unions`,()=>[o,d]=(0,g.flattenUnions)(o,r,i,!1,s)),(0,c.assert)(d,`We should only have to flatten unions once after making transformations`),this.time(`GC`,()=>o=o.garbageCollect(this._options.alphabetizeProperties,s)),this._options.debugPrintGraph&&console.log(`
923
923
  # gather names`),this.time(`gather names`,()=>(0,m.gatherNames)(o,!e.needSchemaProcessing,this._options.debugPrintGatherNames)),this._options.debugPrintGraph&&o.printGraph(),o}makeSimpleTextResult(e){return new Map([[this._options.outputFilename,{lines:e,annotations:[]}]])}preRun(){(0,p.initTypeNames)();let e=w(this._options.lang),t=this._options.inputData,n=t.needIR||e.names.indexOf(`schema`)<0?void 0:t.singleStringSchemaSource();if(n!==void 0){let e=JSON.stringify(JSON.parse(n),void 0,4).split(`
924
- `);e.push(``);let t={lines:e,annotations:[]};return new Map([[this._options.outputFilename,t]])}return[t,e]}run(){return i(this,void 0,void 0,function*(){let e=this.preRun();if(!Array.isArray(e))return e;let[t,n]=e,r=yield this.makeGraph(t);return this.renderGraph(n,r)})}runSync(){let e=this.preRun();if(!Array.isArray(e))return e;let[t,n]=e,r=this.makeGraphSync(t);return this.renderGraph(n,r)}renderGraph(e,t){return this._options.noRender?this.makeSimpleTextResult([`Done.`,``]):e.renderGraphAndSerialize(t,this._options.outputFilename,this._options.alphabetizeProperties,this._options.leadingComments,this._options.rendererOptions,this._options.indentation)}};function O(e){return i(this,void 0,void 0,function*(){return yield new D(e).run()})}e.quicktypeMultiFile=O;function k(e){return new D(e).runSync()}e.quicktypeMultiFileSync=k;function A(e,t){return{line:e.line+t,column:e.column}}function j(e,t){return{start:A(e.start,t),end:A(e.end,t)}}function M(e){if(e.size<=1){let t=(0,o.mapFirst)(e);return t===void 0?{lines:[],annotations:[]}:t}let t=[],n=[];for(let[r,i]of e){let e=t.length+2;t=t.concat([`// ${r}`,``],i.lines),n=n.concat(i.annotations.map(t=>({annotation:t.annotation,span:j(t.span,e)})))}return{lines:t,annotations:n}}e.combineRenderResults=M;function N(e){return i(this,void 0,void 0,function*(){return M(yield O(e))})}e.quicktype=N})),Ao=i((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),jo=i((e=>{var t=aa(),n=Ao(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(G(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||pe(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(G(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return le(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return fe(e).length;default:if(i)return r?-1:le(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ee(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return F(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:o<a?1:0};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,pe(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(pe(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return W(le(t,e.length-n),e,n,r)}function E(e,t,n,r){return W(ue(t),e,n,r)}function D(e,t,n,r){return W(fe(t),e,n,r)}function O(e,t,n,r){return W(de(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}var j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ee(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=me[e[r]];return i}function F(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)};function L(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=K(function(e,t=0){return R(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=K(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=K(function(e,t=0){return R(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=K(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function te(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function ne(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return ne(this,e,t,!1,n)};function re(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return re(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return re(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var B={};function V(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}V(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),V(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),V(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ie(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ie(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ie(e){let t=``,n=e.length,r=e[0]===`-`?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ae(e,t,n){oe(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&U(t,e.length-(n+1))}function H(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE(`value`,i,e)}ae(r,i,a)}function oe(e,t){if(typeof e!=`number`)throw new B.ERR_INVALID_ARG_TYPE(t,`number`,e)}function U(e,t,n){throw Math.floor(e)===e?t<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE(n||`offset`,`>= ${n?1:0} and <= ${t}`,e):(oe(e,n),new B.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var se=/[^+/0-9A-Za-z-_]/g;function ce(e){if(e=e.split(`=`)[0],e=e.trim().replace(se,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function le(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function ue(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function de(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function fe(e){return t.toByteArray(ce(e))}function W(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function pe(e){return e!==e}var me=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function K(e){return typeof BigInt>`u`?q:e}function q(){throw Error(`BigInt not supported`)}})),Mo=i(((e,t)=>{t.exports={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:2**53-1,NumberMIN_SAFE_INTEGER:-(2**53-1),NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(e,t,n){return e.set(t,n)},Uint8Array}})),No=i(((e,t)=>{var n=jo(),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,a=i===void 0?function(e){return!1}:function(e){return e instanceof i};t.exports={AggregateError:class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t=``;for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name=`AggregateError`,this.errors=e}},kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}},promisify(e){return new Promise((t,n)=>{e((e,...r)=>e?n(e):t(...r))})},debuglog(){return function(){}},format(e,...t){return e.replace(/%([sdifj])/g,function(...[e,n]){let r=t.shift();return n===`f`?r.toFixed(6):n===`j`?JSON.stringify(r):n===`s`&&typeof r==`object`?`${r.constructor===Object?``:r.constructor.name} {}`.trim():r.toString()})},inspect(e){switch(typeof e){case`string`:if(e.includes(`'`)){if(!e.includes(`"`))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case`number`:return isNaN(e)?`NaN`:Object.is(e,-0)?String(e):e;case`bigint`:return`${String(e)}n`;case`boolean`:case`undefined`:return String(e);case`object`:return`{}`}},types:{isAsyncFunction(e){return e instanceof r},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:a},t.exports.promisify.custom=Symbol.for(`nodejs.util.promisify.custom`)})),Po=r({default:()=>Fo}),Fo,Io=n((()=>{Fo=Object.freeze(Object.create(null,{__mock__:{get:()=>!0}}))})),Lo=i(((e,t)=>{var{format:n,inspect:r,AggregateError:i}=No(),a=globalThis.AggregateError||i,o=Symbol(`kIsNodeError`),s=[`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`],c=/^([A-Z][a-z0-9]*)+$/,l=`__node_internal_`,u={};function d(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function f(e){let t=``,n=e.length,r=e[0]===`-`?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function p(e,t,r){if(typeof t==`function`)return d(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return d(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:n(t,...r)}function m(e,t,n){n||=Error;class r extends n{constructor(...n){super(p(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[o]=!0,u[e]=r}function h(e){let t=l+e.name;return Object.defineProperty(e,`name`,{value:t}),e}function g(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new a([t,e],t.message);return n.code=t.code,n}return e||t}var _=class extends Error{constructor(e=`The operation was aborted`,t=void 0){if(t!==void 0&&typeof t!=`object`)throw new u.ERR_INVALID_ARG_TYPE(`options`,`Object`,t);super(e,t),this.code=`ABORT_ERR`,this.name=`AbortError`}};m(`ERR_ASSERTION`,`%s`,Error),m(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{d(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let i=`The `;e.endsWith(` argument`)?i+=`${e} `:i+=`"${e}" ${e.includes(`.`)?`property`:`argument`} `,i+=`must be `;let a=[],o=[],l=[];for(let e of t)d(typeof e==`string`,`All expected entries have to be of type string`),s.includes(e)?a.push(e.toLowerCase()):c.test(e)?o.push(e):(d(e!==`object`,`The value "object" should be written as "Object"`),l.push(e));if(o.length>0){let e=a.indexOf(`object`);e!==-1&&(a.splice(a,e,1),o.push(`Object`))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();i+=`one of type ${a.join(`, `)}, or ${e}`}}(o.length>0||l.length>0)&&(i+=` or `)}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();i+=`an instance of ${o.join(`, `)}, or ${e}`}}l.length>0&&(i+=` or `)}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(i+=`an `),i+=`${l[0]}`;break;case 2:i+=`one of ${l[0]} or ${l[1]}`;break;default:{let e=l.pop();i+=`one of ${l.join(`, `)}, or ${e}`}}if(n==null)i+=`. Received ${n}`;else if(typeof n==`function`&&n.name)i+=`. Received function ${n.name}`;else if(typeof n==`object`){var u;if((u=n.constructor)!=null&&u.name)i+=`. Received an instance of ${n.constructor.name}`;else{let e=r(n,{depth:-1});i+=`. Received ${e}`}}else{let e=r(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof n} (${e})`}return i},TypeError),m(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let i=r(t);return i.length>128&&(i=i.slice(0,128)+`...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${i}`},TypeError),m(`ERR_INVALID_RETURN_VALUE`,(e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${n!=null&&(r=n.constructor)!=null&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`}.`},TypeError),m(`ERR_MISSING_ARGS`,(...e)=>{d(e.length>0,`At least one arg needs to be specified`);let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(` or `),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(`, `)}, and ${n} arguments`}break}return`${t} must be specified`},TypeError),m(`ERR_OUT_OF_RANGE`,(e,t,n)=>{d(t,`Missing "range" argument`);let i;return Number.isInteger(n)&&Math.abs(n)>2**32?i=f(String(n)):typeof n==`bigint`?(i=String(n),(n>2n**32n||n<-(2n**32n))&&(i=f(i)),i+=`n`):i=r(n),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError),m(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`,Error),m(`ERR_METHOD_NOT_IMPLEMENTED`,`The %s method is not implemented`,Error),m(`ERR_STREAM_ALREADY_FINISHED`,`Cannot call %s after a stream was finished`,Error),m(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`,Error),m(`ERR_STREAM_DESTROYED`,`Cannot call %s after a stream was destroyed`,Error),m(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),m(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`,Error),m(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`,Error),m(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`,Error),m(`ERR_STREAM_WRITE_AFTER_END`,`write after end`,Error),m(`ERR_UNKNOWN_ENCODING`,`Unknown encoding: %s`,TypeError),t.exports={AbortError:_,aggregateTwoErrors:h(g),hideStackFrames:h,codes:u}})),Ro=i(((e,t)=>{var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:l,NumberParseInt:u,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:h}=Mo(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:_,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:y,ERR_OUT_OF_RANGE:b,ERR_UNKNOWN_SIGNAL:x}}=Lo(),{normalizeEncoding:S}=No(),{isAsyncFunction:C,isArrayBufferView:w}=No().types,T={};function E(e){return e===(e|0)}function D(e){return e===e>>>0}var O=/^[0-7]+$/,k=`must be a 32-bit unsigned integer or an octal string`;function A(e,t,n){if(e===void 0&&(e=n),typeof e==`string`){if(f(O,e)===null)throw new y(t,e,k);e=u(e,8)}return N(e,t),e}var j=g((e,t,n=l,r=c)=>{if(typeof e!=`number`)throw new v(t,`number`,e);if(!o(e))throw new b(t,`an integer`,e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)}),M=g((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!=`number`)throw new v(t,`number`,e);if(!o(e))throw new b(t,`an integer`,e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)}),N=g((e,t,n=!1)=>{if(typeof e!=`number`)throw new v(t,`number`,e);if(!o(e))throw new b(t,`an integer`,e);let r=n?1:0,i=4294967295;if(e<r||e>i)throw new b(t,`>= ${r} && <= ${i}`,e)});function P(e,t){if(typeof e!=`string`)throw new v(t,`string`,e)}function ee(e,t,n=void 0,r){if(typeof e!=`number`)throw new v(t,`number`,e);if(n!=null&&e<n||r!=null&&e>r||(n!=null||r!=null)&&s(e))throw new b(t,`${n==null?``:`>= ${n}`}${n!=null&&r!=null?` && `:``}${r==null?``:`<= ${r}`}`,e)}var F=g((e,t,n)=>{if(!r(n,e))throw new y(t,e,`must be one of: `+i(a(n,e=>typeof e==`string`?`'${e}'`:p(e)),`, `))});function I(e,t){if(typeof e!=`boolean`)throw new v(t,`boolean`,e)}function L(e,t,n){return e==null||!d(e,t)?n:e[t]}var R=g((e,t,r=null)=>{let i=L(r,`allowArray`,!1),a=L(r,`allowFunction`,!1);if(!L(r,`nullable`,!1)&&e===null||!i&&n(e)||typeof e!=`object`&&(!a||typeof e!=`function`))throw new v(t,`Object`,e)}),z=g((e,t,r=0)=>{if(!n(e))throw new v(t,`Array`,e);if(e.length<r)throw new y(t,e,`must be longer than ${r}`)});function te(e,t=`signal`){if(P(e,t),T[e]===void 0)throw T[m(e)]===void 0?new x(e):new x(e+` (signals must use all capital letters)`)}var ne=g((e,t=`buffer`)=>{if(!w(e))throw new v(t,[`Buffer`,`TypedArray`,`DataView`],e)});function re(e,t){let n=S(t),r=e.length;if(n===`hex`&&r%2!=0)throw new y(`encoding`,t,`is invalid for data of length ${r}`)}function B(e,t=`Port`,n=!0){if(typeof e!=`number`&&typeof e!=`string`||typeof e==`string`&&h(e).length===0||+e!=e>>>0||e>65535||e===0&&!n)throw new _(t,e,n);return e|0}var V=g((e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new v(t,`AbortSignal`,e)}),ie=g((e,t)=>{if(typeof e!=`function`)throw new v(t,`Function`,e)}),ae=g((e,t)=>{if(typeof e!=`function`||C(e))throw new v(t,`Function`,e)}),H=g((e,t)=>{if(e!==void 0)throw new v(t,`undefined`,e)});function oe(e,t,n){if(!r(n,e))throw new v(t,`('${i(n,`|`)}')`,e)}t.exports={isInt32:E,isUint32:D,parseFileMode:A,validateArray:z,validateBoolean:I,validateBuffer:ne,validateEncoding:re,validateFunction:ie,validateInt32:M,validateInteger:j,validateNumber:ee,validateObject:R,validateOneOf:F,validatePlainFunction:ae,validatePort:B,validateSignalName:te,validateString:P,validateUint32:N,validateUndefined:H,validateUnion:oe,validateAbortSignal:V}})),zo=i(((e,t)=>{var n=t.exports={},r,i;function a(){throw Error(`setTimeout has not been defined`)}function o(){throw Error(`clearTimeout has not been defined`)}(function(){try{r=typeof setTimeout==`function`?setTimeout:a}catch{r=a}try{i=typeof clearTimeout==`function`?clearTimeout:o}catch{i=o}})();function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch{try{return r.call(null,e,0)}catch{return r.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}var l=[],u=!1,d,f=-1;function p(){!u||!d||(u=!1,d.length?l=d.concat(l):f=-1,l.length&&m())}function m(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(d=l,l=[];++f<t;)d&&d[f].run();f=-1,t=l.length}d=null,u=!1,c(e)}}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),l.length===1&&!u&&s(m)};function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)},n.title=`browser`,n.browser=!0,n.env={},n.argv=[],n.version=``,n.versions={};function g(){}n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw Error(`process.binding is not supported`)},n.cwd=function(){return`/`},n.chdir=function(e){throw Error(`process.chdir is not supported`)},n.umask=function(){return 0}})),Bo=i(((e,t)=>{var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i}=Mo(),a=n(`kDestroyed`),o=n(`kIsErrored`),s=n(`kIsReadable`),c=n(`kIsDisturbed`);function l(e,t=!1){return!!(e&&typeof e.pipe==`function`&&typeof e.on==`function`&&(!t||typeof e.pause==`function`&&typeof e.resume==`function`)&&(!e._writableState||e._readableState?.readable!==!1)&&(!e._writableState||e._readableState))}function u(e){return!!(e&&typeof e.write==`function`&&typeof e.on==`function`&&(!e._readableState||e._writableState?.writable!==!1))}function d(e){return!!(e&&typeof e.pipe==`function`&&e._readableState&&typeof e.on==`function`&&typeof e.write==`function`)}function f(e){return e&&(e._readableState||e._writableState||typeof e.write==`function`&&typeof e.on==`function`||typeof e.pipe==`function`&&typeof e.on==`function`)}function p(e,t){return e==null?!1:t===!0?typeof e[r]==`function`:t===!1?typeof e[i]==`function`:typeof e[r]==`function`||typeof e[i]==`function`}function m(e){if(!f(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||r!=null&&r.destroyed)}function h(e){if(!u(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function g(e,t){if(!u(e))return null;if(e.writableFinished===!0)return!0;let n=e._writableState;return n!=null&&n.errored?!1:typeof n?.finished==`boolean`?!!(n.finished||t===!1&&n.ended===!0&&n.length===0):null}function _(e){if(!l(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function v(e,t){if(!l(e))return null;let n=e._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted==`boolean`?!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0):null}function y(e){return e&&e[s]!=null?e[s]:typeof e?.readable==`boolean`?m(e)?!1:l(e)&&e.readable&&!v(e):null}function b(e){return typeof e?.writable==`boolean`?m(e)?!1:u(e)&&e.writable&&!h(e):null}function x(e,t){return f(e)?m(e)?!0:!(t?.readable!==!1&&y(e)||t?.writable!==!1&&b(e)):null}function S(e){return f(e)?e.writableErrored?e.writableErrored:e._writableState?.errored??null:null}function C(e){return f(e)?e.readableErrored?e.readableErrored:e._readableState?.errored??null:null}function w(e){if(!f(e))return null;if(typeof e.closed==`boolean`)return e.closed;let t=e._writableState,n=e._readableState;return typeof t?.closed==`boolean`||typeof n?.closed==`boolean`?t?.closed||n?.closed:typeof e._closed==`boolean`&&T(e)?e._closed:null}function T(e){return typeof e._closed==`boolean`&&typeof e._defaultKeepAlive==`boolean`&&typeof e._removedConnection==`boolean`&&typeof e._removedContLen==`boolean`}function E(e){return typeof e._sent100==`boolean`&&T(e)}function D(e){return typeof e._consuming==`boolean`&&typeof e._dumped==`boolean`&&e.req?.upgradeOrConnect===void 0}function O(e){if(!f(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&E(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function k(e){return!!(e&&(e[c]??(e.readableDidRead||e.readableAborted)))}function A(e){return!!(e&&(e[o]??e.readableErrored??e.writableErrored??e._readableState?.errorEmitted??e._writableState?.errorEmitted??e._readableState?.errored??e._writableState?.errored))}t.exports={kDestroyed:a,isDisturbed:k,kIsDisturbed:c,isErrored:A,kIsErrored:o,isReadable:y,kIsReadable:s,isClosed:w,isDestroyed:m,isDuplexNodeStream:d,isFinished:x,isIterable:p,isReadableNodeStream:l,isReadableEnded:_,isReadableFinished:v,isReadableErrored:C,isNodeStream:f,isWritable:b,isWritableNodeStream:u,isWritableEnded:h,isWritableFinished:g,isWritableErrored:S,isServerRequest:D,isServerResponse:E,willEmitClose:O}})),Vo=i(((e,t)=>{var n=zo(),{AbortError:r,codes:i}=Lo(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:c}=No(),{validateAbortSignal:l,validateFunction:u,validateObject:d}=Ro(),{Promise:f}=Mo(),{isClosed:p,isReadable:m,isReadableNodeStream:h,isReadableFinished:g,isReadableErrored:_,isWritable:v,isWritableNodeStream:y,isWritableFinished:b,isWritableErrored:x,isNodeStream:S,willEmitClose:C}=Bo();function w(e){return e.setHeader&&typeof e.abort==`function`}var T=()=>{};function E(e,t,i){arguments.length===2?(i=t,t=s):t==null?t=s:d(t,`options`),u(i,`callback`),l(t.signal,`options.signal`),i=c(i);let f=t.readable??h(e),E=t.writable??y(e);if(!S(e))throw new a(`stream`,`Stream`,e);let D=e._writableState,O=e._readableState,k=()=>{e.writable||M()},A=C(e)&&h(e)===f&&y(e)===E,j=b(e,!1),M=()=>{j=!0,e.destroyed&&(A=!1),!(A&&(!e.readable||f))&&(!f||N)&&i.call(e)},N=g(e,!1),P=()=>{N=!0,e.destroyed&&(A=!1),!(A&&(!e.writable||E))&&(!E||j)&&i.call(e)},ee=t=>{i.call(e,t)},F=p(e),I=()=>{F=!0;let t=x(e)||_(e);if(t&&typeof t!=`boolean`)return i.call(e,t);if(f&&!N&&h(e,!0)&&!g(e,!1)||E&&!j&&!b(e,!1))return i.call(e,new o);i.call(e)},L=()=>{e.req.on(`finish`,M)};w(e)?(e.on(`complete`,M),A||e.on(`abort`,I),e.req?L():e.on(`request`,L)):E&&!D&&(e.on(`end`,k),e.on(`close`,k)),!A&&typeof e.aborted==`boolean`&&e.on(`aborted`,I),e.on(`end`,P),e.on(`finish`,M),t.error!==!1&&e.on(`error`,ee),e.on(`close`,I),F?n.nextTick(I):D!=null&&D.errorEmitted||O!=null&&O.errorEmitted?A||n.nextTick(I):(!f&&(!A||m(e))&&(j||v(e)===!1)||!E&&(!A||v(e))&&(N||m(e)===!1)||O&&e.req&&e.aborted)&&n.nextTick(I);let R=()=>{i=T,e.removeListener(`aborted`,I),e.removeListener(`complete`,M),e.removeListener(`abort`,I),e.removeListener(`request`,L),e.req&&e.req.removeListener(`finish`,M),e.removeListener(`end`,k),e.removeListener(`close`,k),e.removeListener(`finish`,M),e.removeListener(`end`,P),e.removeListener(`error`,ee),e.removeListener(`close`,I)};if(t.signal&&!F){let a=()=>{let n=i;R(),n.call(e,new r(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(a);else{let n=i;i=c((...r)=>{t.signal.removeEventListener(`abort`,a),n.apply(e,r)}),t.signal.addEventListener(`abort`,a)}}return R}function D(e,t){return new f((n,r)=>{E(e,t,e=>{e?r(e):n()})})}t.exports=E,t.exports.finished=D})),Ho=i(((t,n)=>{var r=globalThis.AbortController||(Io(),e(Po)).AbortController,{codes:{ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Lo(),{validateAbortSignal:c,validateInteger:l,validateObject:u}=Ro(),d=Mo().Symbol(`kWeak`),{finished:f}=Vo(),{ArrayPrototypePush:p,MathFloor:m,Number:h,NumberIsNaN:g,Promise:_,PromiseReject:v,PromisePrototypeThen:y,Symbol:b}=Mo(),x=b(`kEmpty`),S=b(`kEof`);function C(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`);let n=1;return t?.concurrency!=null&&(n=m(t.concurrency)),l(n,`concurrency`,1),async function*(){var i,a;let o=new r,c=this,l=[],u=o.signal,d={signal:u},f=()=>o.abort();t!=null&&(i=t.signal)!=null&&i.aborted&&f(),t==null||(a=t.signal)==null||a.addEventListener(`abort`,f);let p,m,h=!1;function g(){h=!0}async function b(){try{for await(let t of c){if(h)return;if(u.aborted)throw new s;try{t=e(t,d)}catch(e){t=v(e)}t!==x&&(typeof t?.catch==`function`&&t.catch(g),l.push(t),p&&=(p(),null),!h&&l.length&&l.length>=n&&await new _(e=>{m=e}))}l.push(S)}catch(e){let t=v(e);y(t,void 0,g),l.push(t)}finally{var r;h=!0,p&&=(p(),null),t==null||(r=t.signal)==null||r.removeEventListener(`abort`,f)}}b();try{for(;;){for(;l.length>0;){let e=await l[0];if(e===S)return;if(u.aborted)throw new s;e!==x&&(yield e),l.shift(),m&&=(m(),null)}await new _(e=>{p=e})}}finally{o.abort(),h=!0,m&&=(m(),null)}}.call(this)}function w(e=void 0){return e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`),async function*(){let t=0;for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)}async function T(e,t=void 0){for await(let n of k.call(this,e,t))return!0;return!1}async function E(e,t=void 0){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);return!await T.call(this,async(...t)=>!await e(...t),t)}async function D(e,t){for await(let n of k.call(this,e,t))return n}async function O(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n),x}for await(let e of C.call(this,n,t));}function k(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n)?t:x}return C.call(this,n,t)}var A=class extends a{constructor(){super(`reduce`),this.message=`Reduce of an empty stream requires an initial value`}};async function j(e,t,n){var a;if(typeof e!=`function`)throw new i(`reducer`,[`Function`,`AsyncFunction`],e);n!=null&&u(n,`options`),n?.signal!=null&&c(n.signal,`options.signal`);let o=arguments.length>1;if(n!=null&&(a=n.signal)!=null&&a.aborted){let e=new s(void 0,{cause:n.signal.reason});throw this.once(`error`,()=>{}),await f(this.destroy(e)),e}let l=new r,p=l.signal;if(n!=null&&n.signal){let e={once:!0,[d]:this};n.signal.addEventListener(`abort`,()=>l.abort(),e)}let m=!1;try{for await(let r of this){var h;if(m=!0,n!=null&&(h=n.signal)!=null&&h.aborted)throw new s;o?t=await e(t,r,{signal:p}):(t=r,o=!0)}if(!m&&!o)throw new A}finally{l.abort()}return t}async function M(e){e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`);let t=[];for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s(void 0,{cause:e.signal.reason});p(t,r)}return t}function N(e,t){let n=C.call(this,e,t);return async function*(){for await(let e of n)yield*e}.call(this)}function P(e){if(e=h(e),g(e))return 0;if(e<0)throw new o(`number`,`>= 0`,e);return e}function ee(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=P(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)}function F(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=P(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;if(e-- >0)yield n;else return}}.call(this)}n.exports.streamReturningOperators={asIndexedPairs:w,drop:ee,filter:k,flatMap:N,map:C,take:F},n.exports.promiseReturningOperators={every:E,forEach:O,reduce:j,toArray:M,some:T,find:D}})),Uo=i(((e,t)=>{var n=zo(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Lo(),{Symbol:o}=Mo(),{kDestroyed:s,isDestroyed:c,isFinished:l,isServerRequest:u}=Bo(),d=o(`kDestroy`),f=o(`kConstruct`);function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function m(e,t){let n=this._readableState,i=this._writableState,a=i||n;return i&&i.destroyed||n&&n.destroyed?(typeof t==`function`&&t(),this):(p(e,i,n),i&&(i.destroyed=!0),n&&(n.destroyed=!0),a.constructed?h(this,e,t):this.once(d,function(n){h(this,r(n,e),t)}),this)}function h(e,t,r){let i=!1;function a(t){if(i)return;i=!0;let a=e._readableState,o=e._writableState;p(t,o,a),o&&(o.closed=!0),a&&(a.closed=!0),typeof r==`function`&&r(t),t?n.nextTick(g,e,t):n.nextTick(_,e)}try{e._destroy(t||null,a)}catch(e){a(e)}}function g(e,t){v(e,t),_(e)}function _(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n&&n.emitClose||t&&t.emitClose)&&e.emit(`close`)}function v(e,t){let n=e._readableState,r=e._writableState;r&&r.errorEmitted||n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit(`error`,t))}function y(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function b(e,t,r){let i=e._readableState,a=e._writableState;if(a&&a.destroyed||i&&i.destroyed)return this;i&&i.autoDestroy||a&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(v,e,t):v(e,t))}function x(e,t){if(typeof e._construct!=`function`)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(f,t),!(e.listenerCount(f)>1)&&n.nextTick(S,e)}function S(e){let t=!1;function r(r){if(t){b(e,r??new i);return}t=!0;let a=e._readableState,o=e._writableState,s=o||a;a&&(a.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(d,r):r?b(e,r,!0):n.nextTick(C,e)}try{e._construct(r)}catch(e){r(e)}}function C(e){e.emit(f)}function w(e){return e&&e.setHeader&&typeof e.abort==`function`}function T(e){e.emit(`close`)}function E(e,t){e.emit(`error`,t),n.nextTick(T,e)}function D(e,t){!e||c(e)||(!t&&!l(e)&&(t=new a),u(e)?(e.socket=null,e.destroy(t)):w(e)?e.abort():w(e.req)?e.req.abort():typeof e.destroy==`function`?e.destroy(t):typeof e.close==`function`?e.close():t?n.nextTick(E,e,t):n.nextTick(T,e),e.destroyed||(e[s]=!0))}t.exports={construct:x,destroyer:D,destroy:m,undestroy:y,errorOrDestroy:b}})),Wo=i(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),$=i(((e,t)=>{var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=Mo(),{EventEmitter:i}=Wo();function a(e){i.call(this,e)}r(a.prototype,i.prototype),r(a,i),a.prototype.pipe=function(e,t){let n=this;function r(t){e.writable&&e.write(t)===!1&&n.pause&&n.pause()}n.on(`data`,r);function a(){n.readable&&n.resume&&n.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(n.on(`end`,c),n.on(`close`,l));let s=!1;function c(){s||(s=!0,e.end())}function l(){s||(s=!0,typeof e.destroy==`function`&&e.destroy())}function u(e){d(),i.listenerCount(this,`error`)===0&&this.emit(`error`,e)}o(n,`error`,u),o(e,`error`,u);function d(){n.removeListener(`data`,r),e.removeListener(`drain`,a),n.removeListener(`end`,c),n.removeListener(`close`,l),n.removeListener(`error`,u),e.removeListener(`error`,u),n.removeListener(`end`,d),n.removeListener(`close`,d),e.removeListener(`close`,d)}return n.on(`end`,d),n.on(`close`,d),e.on(`close`,d),e.emit(`pipe`,n),e};function o(e,t,r){if(typeof e.prependListener==`function`)return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}t.exports={Stream:a,prependListener:o}})),Go=i(((e,t)=>{var{AbortError:n,codes:r}=Lo(),i=Vo(),{ERR_INVALID_ARG_TYPE:a}=r,o=(e,t)=>{if(typeof e!=`object`||!(`aborted`in e))throw new a(t,`AbortSignal`,e)};function s(e){return!!(e&&typeof e.pipe==`function`)}t.exports.addAbortSignal=function(e,n){if(o(e,`signal`),!s(n))throw new a(`stream`,`stream.Stream`,n);return t.exports.addAbortSignalNoValidate(e,n)},t.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=`object`||!(`aborted`in e))return t;let r=()=>{t.destroy(new n(void 0,{cause:e.reason}))};return e.aborted?r():(e.addEventListener(`abort`,r),i(t,()=>e.removeEventListener(`abort`,r))),t}})),Ko=i(((e,t)=>{var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=Mo(),{Buffer:o}=jo(),{inspect:s}=No();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return``;let t=this.head,n=``+t.data;for(;(t=t.next)!==null;)n+=e+t.data;return n}concat(e){if(this.length===0)return o.alloc(0);let t=o.allocUnsafe(e>>>0),n=this.head,r=0;for(;n;)i(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){let n=this.head.data;if(e<n.length){let t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[r](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t=``,r=this.head,i=0;do{let a=r.data;if(e>a.length)t+=a,e-=a.length;else{e===a.length?(t+=a,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(a,0,e),this.head=r,r.data=n(a,e));break}++i}while((r=r.next)!==null);return this.length-=i,t}_getBuffer(e){let t=o.allocUnsafe(e),n=e,r=this.head,s=0;do{let o=r.data;if(e>o.length)i(t,o,n-e),e-=o.length;else{e===o.length?(i(t,o,n-e),++s,r.next?this.head=r.next:this.head=this.tail=null):(i(t,new a(o.buffer,o.byteOffset,e),n-e),this.head=r,r.data=o.slice(e));break}++s}while((r=r.next)!==null);return this.length-=s,t}[Symbol.for(`nodejs.util.inspect.custom`)](e,t){return s(this,{...t,depth:0,customInspect:!1})}}})),qo=i(((e,t)=>{var{MathFloor:n,NumberIsInteger:r}=Mo(),{ERR_INVALID_ARG_VALUE:i}=Lo().codes;function a(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function o(e){return e?16:16*1024}function s(e,t,s,c){let l=a(t,c,s);if(l!=null){if(!r(l)||l<0)throw new i(c?`options.${s}`:`options.highWaterMark`,l);return n(l)}return o(e.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:o}})),Jo=i((e=>{var t=aa(),n=Ao(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(oe(e,ArrayBuffer)||e&&oe(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(oe(e,SharedArrayBuffer)||e&&oe(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:_(e.length)|0,n=o(t),r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(oe(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);var r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n);return Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){var t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||U(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(oe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),oe(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(oe(a,Uint8Array))i+a.length>r.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=a.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||oe(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return B(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ae(e).length;default:if(i)return r?-1:B(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ee(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return F(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){var t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(oe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d<c;++d)if(l[d]!==u[d]){a=l[d],o=u[d];break}return a<o?-1:o<a?1:0};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,U(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===s)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(c(e,l+f)!==c(t,f)){d=!1;break}if(d)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(U(s))return o;e[n+o]=s}return o}function T(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function E(e,t,n,r){return H(V(t),e,n,r)}function D(e,t,n,r){return H(ae(t),e,n,r)}function O(e,t,n,r){return H(ie(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return M(r)}var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ee(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,a=t;a<n;++a)i+=se[e[a]];return i}function F(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)};function L(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;L(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;L(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);L(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);L(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function z(e,t,r,i,a){return t=+t,r>>>=0,a||R(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)};function te(e,t,r,i,a){return t=+t,r>>>=0,a||R(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return te(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return te(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),c=o.length;if(c===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(a=0;a<n-t;++a)this[a+t]=o[a%c]}return this};var ne=/[^+/0-9A-Za-z-_]/g;function re(e){if(e=e.split(`=`)[0],e=e.trim().replace(ne,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function B(e,t){t||=1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function V(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ie(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ae(e){return t.toByteArray(re(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function oe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function U(e){return e!==e}var se=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),Yo=i(((e,t)=>{var n=Jo(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),Xo=i((e=>{var t=Yo().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Zo=i(((e,t)=>{var n=zo(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=Mo(),{Buffer:o}=jo(),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:c}=Lo().codes;function l(e,t,l){let u;if(typeof t==`string`||t instanceof o)return new e({objectMode:!0,...l,read(){this.push(t),this.push(null)}});let d;if(t&&t[i])d=!0,u=t[i]();else if(t&&t[a])d=!1,u=t[a]();else throw new s(`iterable`,[`Iterable`],t);let f=new e({objectMode:!0,highWaterMark:1,...l}),p=!1;f._read=function(){p||(p=!0,h())},f._destroy=function(e,t){r(m(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))};async function m(e){let t=e!=null,n=typeof u.throw==`function`;if(t&&n){let{value:t,done:n}=await u.throw(e);if(await t,n)return}if(typeof u.return==`function`){let{value:e}=await u.return();await e}}async function h(){for(;;){try{let{value:e,done:t}=d?await u.next():u.next();if(t)f.push(null);else{let t=e&&typeof e.then==`function`?await e:e;if(t===null)throw p=!1,new c;if(f.push(t))continue;p=!1}}catch(e){f.destroy(e)}break}}return f}t.exports=l})),Qo=i(((e,t)=>{var n=zo(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:c,ObjectSetPrototypeOf:l,Promise:u,SafeSet:d,SymbolAsyncIterator:f,Symbol:p}=Mo();t.exports=L,L.ReadableState=I;var{EventEmitter:m}=Wo(),{Stream:h,prependListener:g}=$(),{Buffer:_}=jo(),{addAbortSignal:v}=Go(),y=Vo(),b=No().debuglog(`stream`,e=>{b=e}),x=Ko(),S=Uo(),{getHighWaterMark:C,getDefaultHighWaterMark:w}=qo(),{aggregateTwoErrors:T,codes:{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_OUT_OF_RANGE:O,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:A}}=Lo(),{validateObject:j}=Ro(),M=p(`kPaused`),{StringDecoder:N}=Xo(),P=Zo();l(L.prototype,h.prototype),l(L,h);var ee=()=>{},{errorOrDestroy:F}=S;function I(e,t,n){typeof n!=`boolean`&&(n=t instanceof ts()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.readableObjectMode)),this.highWaterMark=e?C(this,e,`readableHighWaterMark`,n):w(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[M]=null,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new N(e.encoding),this.encoding=e.encoding)}function L(e){if(!(this instanceof L))return new L(e);let t=this instanceof ts();this._readableState=new I(e,this,t),e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&!t&&v(e.signal,this)),h.call(this,e),S.construct(this,()=>{this._readableState.needReadable&&ae(this,this._readableState)})}L.prototype.destroy=S.destroy,L.prototype._undestroy=S.undestroy,L.prototype._destroy=function(e,t){t(e)},L.prototype[m.captureRejectionSymbol]=function(e){this.destroy(e)},L.prototype.push=function(e,t){return R(this,e,t,!1)},L.prototype.unshift=function(e,t){return R(this,e,t,!0)};function R(e,t,n,r){b(`readableAddChunk`,t);let i=e._readableState,a;if(i.objectMode||(typeof t==`string`?(n||=i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=_.from(t,n).toString(i.encoding):(t=_.from(t,n),n=``))):t instanceof _?n=``:h._isUint8Array(t)?(t=h._uint8ArrayToBuffer(t),n=``):t!=null&&(a=new E(`chunk`,[`string`,`Buffer`,`Uint8Array`],t))),a)F(e,a);else if(t===null)i.reading=!1,B(e,i);else if(i.objectMode||t&&t.length>0)if(r)if(i.endEmitted)F(e,new A);else if(i.destroyed||i.errored)return!1;else z(e,i,t,!0);else if(i.ended)F(e,new k);else if(i.destroyed||i.errored)return!1;else i.reading=!1,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?z(e,i,t,!1):ae(e,i)):z(e,i,t,!1);else r||(i.reading=!1,ae(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function z(e,t,n,r){t.flowing&&t.length===0&&!t.sync&&e.listenerCount(`data`)>0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&V(e)),ae(e,t)}L.prototype.isPaused=function(){let e=this._readableState;return e[M]===!0||e.flowing===!1},L.prototype.setEncoding=function(e){let t=new N(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r=``;for(let e of n)r+=t.write(e);return n.clear(),r!==``&&n.push(r),this._readableState.length=r.length,this};var te=1073741824;function ne(e){if(e>te)throw new O(`size`,`<= 1GiB`,e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}function re(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}L.prototype.read=function(e){b(`read`,e),e===void 0?e=NaN:i(e)||(e=o(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=ne(e)),e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return b(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?G(this):V(this),null;if(e=re(e,t),e===0&&t.ended)return t.length===0&&G(this),null;let r=t.needReadable;if(b(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,b(`length less than watermark`,r)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)r=!1,b(`reading, ended or constructing`,r);else if(r){b(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0);try{this._read(t.highWaterMark)}catch(e){F(this,e)}t.sync=!1,t.reading||(e=re(n,t))}let a;return a=e>0?W(e,t):null,a===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),a!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(`data`,a)),a};function B(e,t){if(b(`onEofChunk`),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?V(e):(t.needReadable=!1,t.emittedReadable=!0,ie(e))}}function V(e){let t=e._readableState;b(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b(`emitReadable`,t.flowing),t.emittedReadable=!0,n.nextTick(ie,e))}function ie(e){let t=e._readableState;b(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ue(e)}function ae(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(H,e,t))}function H(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){let n=t.length;if(b(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}L.prototype._read=function(e){throw new D(`_read()`)},L.prototype.pipe=function(e,t){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),b(`pipe count=%d opts=%j`,i.pipes.length,t);let a=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr?s:v;i.endEmitted?n.nextTick(a):r.once(`end`,a),e.on(`unpipe`,o);function o(e,t){b(`onunpipe`),e===r&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,u())}function s(){b(`onend`),e.end()}let c,l=!1;function u(){b(`cleanup`),e.removeListener(`close`,h),e.removeListener(`finish`,_),c&&e.removeListener(`drain`,c),e.removeListener(`error`,m),e.removeListener(`unpipe`,o),r.removeListener(`end`,s),r.removeListener(`end`,v),r.removeListener(`data`,p),l=!0,c&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&c()}function f(){l||(i.pipes.length===1&&i.pipes[0]===e?(b(`false write response, pause`,0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(b(`false write response, pause`,i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),c||(c=oe(r,e),e.on(`drain`,c))}r.on(`data`,p);function p(t){b(`ondata`);let n=e.write(t);b(`dest.write`,n),n===!1&&f()}function m(t){if(b(`onerror`,t),v(),e.removeListener(`error`,m),e.listenerCount(`error`)===0){let n=e._writableState||e._readableState;n&&!n.errorEmitted?F(e,t):e.emit(`error`,t)}}g(e,`error`,m);function h(){e.removeListener(`finish`,_),v()}e.once(`close`,h);function _(){b(`onfinish`),e.removeListener(`close`,h),v()}e.once(`finish`,_);function v(){b(`unpipe`),r.unpipe(e)}return e.emit(`pipe`,r),e.writableNeedDrain===!0?i.flowing&&f():i.flowing||(b(`pipe resume`),r.resume()),e};function oe(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(b(`pipeOnDrain`,1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(b(`pipeOnDrain`,n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&e.listenerCount(`data`)&&e.resume()}}L.prototype.unpipe=function(e){let t=this._readableState,n={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit(`unpipe`,this,{hasUnpiped:!1});return this}let i=r(t.pipes,e);return i===-1?this:(t.pipes.splice(i,1),t.pipes.length===0&&this.pause(),e.emit(`unpipe`,this,n),this)},L.prototype.on=function(e,t){let r=h.prototype.on.call(this,e,t),i=this._readableState;return e===`data`?(i.readableListening=this.listenerCount(`readable`)>0,i.flowing!==!1&&this.resume()):e===`readable`&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,b(`on readable`,i.length,i.reading),i.length?V(this):i.reading||n.nextTick(se,this)),r},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(e,t){let r=h.prototype.removeListener.call(this,e,t);return e===`readable`&&n.nextTick(U,this),r},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(e){let t=h.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&n.nextTick(U,this),t};function U(e){let t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&t[M]===!1?t.flowing=!0:e.listenerCount(`data`)>0?e.resume():t.readableListening||(t.flowing=null)}function se(e){b(`readable nexttick read 0`),e.read(0)}L.prototype.resume=function(){let e=this._readableState;return e.flowing||(b(`resume`),e.flowing=!e.readableListening,ce(this,e)),e[M]=!1,this};function ce(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(le,e,t))}function le(e,t){b(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),ue(e),t.flowing&&!t.reading&&e.read(0)}L.prototype.pause=function(){return b(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(b(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState[M]=!0,this};function ue(e){let t=e._readableState;for(b(`flow`,t.flowing);t.flowing&&e.read()!==null;);}L.prototype.wrap=function(e){let t=!1;e.on(`data`,n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())}),e.on(`end`,()=>{this.push(null)}),e.on(`error`,e=>{F(this,e)}),e.on(`close`,()=>{this.destroy()}),e.on(`destroy`,()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=c(e);for(let t=1;t<n.length;t++){let r=n[t];this[r]===void 0&&typeof e[r]==`function`&&(this[r]=e[r].bind(e))}return this},L.prototype[f]=function(){return de(this)},L.prototype.iterator=function(e){return e!==void 0&&j(e,`options`),de(this,e)};function de(e,t){typeof e.read!=`function`&&(e=L.wrap(e,{objectMode:!0}));let n=fe(e,t);return n.stream=e,n}async function*fe(e,t){let n=ee;function r(t){this===e?(n(),n=ee):n=t}e.on(`readable`,r);let i,a=y(e,{writable:!1},e=>{i=e?T(i,e):null,n(),n=ee});try{for(;;){let t=e.destroyed?null:e.read();if(t!==null)yield t;else if(i)throw i;else if(i===null)return;else await new u(r)}}catch(e){throw i=T(i,e),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?S.destroyer(e,null):(e.off(`readable`,r),a())}}s(L.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(I.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[M]!==!1},set(e){this[M]=!!e}}}),L._fromList=W;function W(e,t){if(t.length===0)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function G(e){let t=e._readableState;b(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(pe,t,e))}function pe(e,t){if(b(`endReadableNT`,e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit(`end`),t.writable&&t.allowHalfOpen===!1)n.nextTick(me,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&t.destroy()}}}function me(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}L.from=function(e,t){return P(L,e,t)};var K;function q(){return K===void 0&&(K={}),K}L.fromWeb=function(e,t){return q().newStreamReadableFromReadableStream(e,t)},L.toWeb=function(e,t){return q().newReadableStreamFromStreamReadable(e,t)},L.wrap=function(e,t){return new L({objectMode:e.readableObjectMode??e.objectMode??!0,...t,destroy(t,n){S.destroyer(e,t),n(t)}}).wrap(e)}})),$o=i(((e,t)=>{var n=zo(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:l,Symbol:u,SymbolHasInstance:d}=Mo();t.exports=N,N.WritableState=j;var{EventEmitter:f}=Wo(),p=$().Stream,{Buffer:m}=jo(),h=Uo(),{addAbortSignal:g}=Go(),{getHighWaterMark:_,getDefaultHighWaterMark:v}=qo(),{ERR_INVALID_ARG_TYPE:y,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:w,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:E,ERR_UNKNOWN_ENCODING:D}=Lo().codes,{errorOrDestroy:O}=h;c(N.prototype,p.prototype),c(N,p);function k(){}var A=u(`kOnFinished`);function j(e,t,n){typeof n!=`boolean`&&(n=t instanceof ts()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?_(this,e,`writableHighWaterMark`,n):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(e&&e.decodeStrings===!1),this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=L.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[A]=[]}function M(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}j.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},o(j.prototype,`bufferedRequestCount`,{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function N(e){let t=this instanceof ts();if(!t&&!a(N,this))return new N(e);this._writableState=new j(e,this,t),e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&g(e.signal,this)),p.call(this,e),h.construct(this,()=>{let e=this._writableState;e.writing||ne(this,e),ie(this,e)})}o(N,d,{__proto__:null,value:function(e){return a(this,e)?!0:this===N?e&&e._writableState instanceof j:!1}}),N.prototype.pipe=function(){O(this,new S)};function P(e,t,r,i){let a=e._writableState;if(typeof r==`function`)i=r,r=a.defaultEncoding;else{if(!r)r=a.defaultEncoding;else if(r!==`buffer`&&!m.isEncoding(r))throw new D(r);typeof i!=`function`&&(i=k)}if(t===null)throw new T;if(!a.objectMode)if(typeof t==`string`)a.decodeStrings!==!1&&(t=m.from(t,r),r=`buffer`);else if(t instanceof m)r=`buffer`;else if(p._isUint8Array(t))t=p._uint8ArrayToBuffer(t),r=`buffer`;else throw new y(`chunk`,[`string`,`Buffer`,`Uint8Array`],t);let o;return a.ending?o=new E:a.destroyed&&(o=new C(`write`)),o?(n.nextTick(i,o),O(e,o,!0),o):(a.pendingcb++,ee(e,a,t,r,i))}N.prototype.write=function(e,t,n){return P(this,e,t,n)===!0},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||ne(this,e))},N.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=l(e)),!m.isEncoding(e))throw new D(e);return this._writableState.defaultEncoding=e,this};function ee(e,t,n,r,i){let a=t.objectMode?1:n.length;t.length+=a;let o=t.length<t.highWaterMark;return o||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:i}),t.allBuffers&&r!==`buffer`&&(t.allBuffers=!1),t.allNoop&&i!==k&&(t.allNoop=!1)):(t.writelen=a,t.writecb=i,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),o&&!t.errored&&!t.destroyed}function F(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new C(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function I(e,t,n,r){--t.pendingcb,r(n),te(t),O(e,n)}function L(e,t){let r=e._writableState,i=r.sync,a=r.writecb;if(typeof a!=`function`){O(e,new x);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||=t,e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(I,e,r,t,a):I(e,r,t,a)):(r.buffered.length>r.bufferedIndex&&ne(e,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===a?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:a,stream:e,state:r},n.nextTick(R,r.afterWriteTickInfo)):z(e,r,1,a))}function R({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,z(e,t,n,r)}function z(e,t,n,r){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`));n-- >0;)t.pendingcb--,r();t.destroyed&&te(t),ie(e,t)}function te(e){if(e.writing)return;for(let t=e.bufferedIndex;t<e.buffered.length;++t){let{chunk:n,callback:r}=e.buffered[t],i=e.objectMode?1:n.length;e.length-=i,r(e.errored??new C(`write`))}let t=e[A].splice(0);for(let n=0;n<t.length;n++)t[n](e.errored??new C(`end`));M(e)}function ne(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:n,bufferedIndex:i,objectMode:a}=t,o=n.length-i;if(!o)return;let s=i;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let i=t.allNoop?k:e=>{for(let t=s;t<n.length;++t)n[t].callback(e)},a=t.allNoop&&s===0?n:r(n,s);a.allBuffers=t.allBuffers,F(e,t,!0,t.length,a,``,i),M(t)}else{do{let{chunk:r,encoding:i,callback:o}=n[s];n[s++]=null,F(e,t,!1,a?1:r.length,r,i,o)}while(s<n.length&&!t.writing);s===n.length?M(t):s>256?(n.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}N.prototype._write=function(e,t,n){if(this._writev)this._writev([{chunk:e,encoding:t}],n);else throw new b(`_write()`)},N.prototype._writev=null,N.prototype.end=function(e,t,r){let a=this._writableState;typeof e==`function`?(r=e,e=null,t=null):typeof t==`function`&&(r=t,t=null);let o;if(e!=null){let n=P(this,e,t);n instanceof i&&(o=n)}return a.corked&&(a.corked=1,this.uncork()),o||(!a.errored&&!a.ending?(a.ending=!0,ie(this,a,!0),a.ended=!0):a.finished?o=new w(`end`):a.destroyed&&(o=new C(`end`))),typeof r==`function`&&(o||a.finished?n.nextTick(r,o):a[A].push(r)),this};function re(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function B(e,t){let r=!1;function i(i){if(r){O(e,i??x());return}if(r=!0,t.pendingcb--,i){let n=t[A].splice(0);for(let e=0;e<n.length;e++)n[e](i);O(e,i,t.sync)}else re(t)&&(t.prefinished=!0,e.emit(`prefinish`),t.pendingcb++,n.nextTick(ae,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}function V(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.finalCalled=!0,B(e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function ie(e,t,r){re(t)&&(V(e,t),t.pendingcb===0&&(r?(t.pendingcb++,n.nextTick((e,t)=>{re(t)?ae(e,t):t.pendingcb--},e,t)):re(t)&&(t.pendingcb++,ae(e,t))))}function ae(e,t){t.pendingcb--,t.finished=!0;let n=t[A].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit(`finish`),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))&&e.destroy()}}s(N.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return e?!e.destroyed&&!e.ending&&e.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var H=h.destroy;N.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[A].length)&&n.nextTick(te,r),H.call(this,e,t),this},N.prototype._undestroy=h.undestroy,N.prototype._destroy=function(e,t){t(e)},N.prototype[f.captureRejectionSymbol]=function(e){this.destroy(e)};var oe;function U(){return oe===void 0&&(oe={}),oe}N.fromWeb=function(e,t){return U().newStreamWritableFromWritableStream(e,t)},N.toWeb=function(e){return U().newWritableStreamFromStreamWritable(e)}})),es=i(((t,n)=>{var r=zo(),i=jo(),{isReadable:a,isWritable:o,isIterable:s,isNodeStream:c,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:d}=Bo(),f=Vo(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:h}}=Lo(),{destroyer:g}=Uo(),_=ts(),v=Qo(),{createDeferredPromise:y}=No(),b=Zo(),x=globalThis.Blob||i.Blob,S=x===void 0?function(e){return!1}:function(e){return e instanceof x},C=globalThis.AbortController||(Io(),e(Po)).AbortController,{FunctionPrototypeCall:w}=Mo(),T=class extends _{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};n.exports=function e(t,n){if(d(t))return t;if(l(t))return D({readable:t});if(u(t))return D({writable:t});if(c(t))return D({writable:!1,readable:!1});if(typeof t==`function`){let{value:e,write:i,final:a,destroy:o}=E(t);if(s(e))return b(T,e,{objectMode:!0,write:i,final:a,destroy:o});let c=e?.then;if(typeof c==`function`){let t,n=w(c,e,e=>{if(e!=null)throw new h(`nully`,`body`,e)},e=>{g(t,e)});return t=new T({objectMode:!0,readable:!1,write:i,final(e){a(async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}})},destroy:o})}throw new h(`Iterable, AsyncIterable or AsyncFunction`,n,e)}if(S(t))return e(t.arrayBuffer());if(s(t))return b(T,t,{objectMode:!0,writable:!1});if(typeof t?.writable==`object`||typeof t?.readable==`object`)return D({readable:t!=null&&t.readable?l(t?.readable)?t?.readable:e(t.readable):void 0,writable:t!=null&&t.writable?u(t?.writable)?t?.writable:e(t.writable):void 0});let i=t?.then;if(typeof i==`function`){let e;return w(i,t,t=>{t!=null&&e.push(t),e.push(null)},t=>{g(e,t)}),e=new T({objectMode:!0,writable:!1,read(){}})}throw new m(n,[`Blob`,`ReadableStream`,`WritableStream`,`Stream`,`Iterable`,`AsyncIterable`,`Function`,`{ readable, writable } pair`,`Promise`],t)};function E(e){let{promise:t,resolve:n}=y(),i=new C,a=i.signal;return{value:e((async function*(){for(;;){let e=t;t=null;let{chunk:i,done:o,cb:s}=await e;if(r.nextTick(s),o)return;if(a.aborted)throw new p(void 0,{cause:a.reason});({promise:t,resolve:n}=y()),yield i}})(),{signal:a}),write(e,t,r){let i=n;n=null,i({chunk:e,done:!1,cb:r})},final(e){let t=n;n=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function D(e){let t=e.readable&&typeof e.readable.read!=`function`?v.wrap(e.readable):e.readable,n=e.writable,r=!!a(t),i=!!o(n),s,c,l,u,d;function m(e){let t=u;u=null,t?t(e):e?d.destroy(e):!r&&!i&&d.destroy()}return d=new T({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(f(n,e=>{i=!1,e&&g(t,e),m(e)}),d._write=function(e,t,r){n.write(e,t)?r():s=r},d._final=function(e){n.end(),c=e},n.on(`drain`,function(){if(s){let e=s;s=null,e()}}),n.on(`finish`,function(){if(c){let e=c;c=null,e()}})),r&&(f(t,e=>{r=!1,e&&g(t,e),m(e)}),t.on(`readable`,function(){if(l){let e=l;l=null,e()}}),t.on(`end`,function(){d.push(null)}),d._read=function(){for(;;){let e=t.read();if(e===null){l=d._read;return}if(!d.push(e))return}}),d._destroy=function(e,r){!e&&u!==null&&(e=new p),l=null,s=null,c=null,u===null?r(e):(u=r,g(n,e),g(t,e))},d}})),ts=i(((e,t)=>{var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=Mo();t.exports=c;var o=Qo(),s=$o();a(c.prototype,o.prototype),a(c,o);{let e=i(s.prototype);for(let t=0;t<e.length;t++){let n=e[t];c.prototype[n]||(c.prototype[n]=s.prototype[n])}}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),s.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}n(c.prototype,{writable:{__proto__:null,...r(s.prototype,`writable`)},writableHighWaterMark:{__proto__:null,...r(s.prototype,`writableHighWaterMark`)},writableObjectMode:{__proto__:null,...r(s.prototype,`writableObjectMode`)},writableBuffer:{__proto__:null,...r(s.prototype,`writableBuffer`)},writableLength:{__proto__:null,...r(s.prototype,`writableLength`)},writableFinished:{__proto__:null,...r(s.prototype,`writableFinished`)},writableCorked:{__proto__:null,...r(s.prototype,`writableCorked`)},writableEnded:{__proto__:null,...r(s.prototype,`writableEnded`)},writableNeedDrain:{__proto__:null,...r(s.prototype,`writableNeedDrain`)},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});var l;function u(){return l===void 0&&(l={}),l}c.fromWeb=function(e,t){return u().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return u().newReadableWritablePairFromDuplex(e)};var d;c.from=function(e){return d||=es(),d(e,`body`)}})),ns=i(((e,t)=>{var{ObjectSetPrototypeOf:n,Symbol:r}=Mo();t.exports=c;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Lo().codes,a=ts(),{getHighWaterMark:o}=qo();n(c.prototype,a.prototype),n(c,a);var s=r(`kCallback`);function c(e){if(!(this instanceof c))return new c(e);let t=e?o(this,e,`readableHighWaterMark`,!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function l(e){typeof this._flush==`function`&&!this.destroyed?this._flush((t,n)=>{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}function u(){this._final!==l&&l.call(this)}c.prototype._final=l,c.prototype._transform=function(e,t,n){throw new i(`_transform()`)},c.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,a=r.length;this._transform(e,t,(e,t)=>{if(e){n(e);return}t!=null&&this.push(t),i.ended||a===r.length||r.length<r.highWaterMark?n():this[s]=n})},c.prototype._read=function(){if(this[s]){let e=this[s];this[s]=null,e()}}})),rs=i(((e,t)=>{var{ObjectSetPrototypeOf:n}=Mo();t.exports=i;var r=ns();n(i.prototype,r.prototype),n(i,r);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),is=i(((t,n)=>{var r=zo(),{ArrayIsArray:i,Promise:a,SymbolAsyncIterator:o}=Mo(),s=Vo(),{once:c}=No(),l=Uo(),u=ts(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:h,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:_}=Lo(),{validateFunction:v,validateAbortSignal:y}=Ro(),{isIterable:b,isReadable:x,isReadableNodeStream:S,isNodeStream:C}=Bo(),w=globalThis.AbortController||(Io(),e(Po)).AbortController,T,E;function D(e,t,n){let r=!1;return e.on(`close`,()=>{r=!0}),{destroy:t=>{r||(r=!0,l.destroyer(e,t||new h(`pipe`)))},cleanup:s(e,{readable:t,writable:n},e=>{r=!e})}}function O(e){return v(e[e.length-1],`streams[stream.length - 1]`),e.pop()}function k(e){if(b(e))return e;if(S(e))return A(e);throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`],e)}async function*A(e){E||=Qo(),yield*E.prototype[o].call(e)}async function j(e,t,n,{end:r}){let i,o=null,c=e=>{if(e&&(i=e),o){let e=o;o=null,e()}},l=()=>new a((e,t)=>{i?t(i):o=()=>{i?t(i):e()}});t.on(`drain`,c);let u=s(t,{readable:!1},c);try{t.writableNeedDrain&&await l();for await(let n of e)t.write(n)||await l();r&&t.end(),await l(),n()}catch(e){n(i===e?e:d(i,e))}finally{u(),t.off(`drain`,c)}}function M(...e){return N(e,c(O(e)))}function N(e,t,n){if(e.length===1&&i(e[0])&&(e=e[0]),e.length<2)throw new m(`streams`);let a=new w,o=a.signal,s=n?.signal,c=[];y(s,`options.signal`);function l(){O(new _)}s?.addEventListener(`abort`,l);let d,h,g=[],v=0;function E(e){O(e,--v===0)}function O(e,n){if(e&&(!d||d.code===`ERR_STREAM_PREMATURE_CLOSE`)&&(d=e),!(!d&&!n)){for(;g.length;)g.shift()(d);s?.removeEventListener(`abort`,l),a.abort(),n&&(d||c.forEach(e=>e()),r.nextTick(t,d,h))}}let A;for(let t=0;t<e.length;t++){let i=e[t],a=t<e.length-1,s=t>0,l=a||n?.end!==!1,d=t===e.length-1;if(C(i)){if(l){let{destroy:e,cleanup:t}=D(i,a,s);g.push(e),x(i)&&d&&c.push(t)}function e(e){e&&e.name!==`AbortError`&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`&&E(e)}i.on(`error`,e),x(i)&&d&&c.push(()=>{i.removeListener(`error`,e)})}if(t===0)if(typeof i==`function`){if(A=i({signal:o}),!b(A))throw new p(`Iterable, AsyncIterable or Stream`,`source`,A)}else A=b(i)||S(i)?i:u.from(i);else if(typeof i==`function`)if(A=k(A),A=i(A,{signal:o}),a){if(!b(A,!0))throw new p(`AsyncIterable`,`transform[${t-1}]`,A)}else{T||=rs();let e=new T({objectMode:!0}),t=A?.then;if(typeof t==`function`)v++,t.call(A,t=>{h=t,t!=null&&e.write(t),l&&e.end(),r.nextTick(E)},t=>{e.destroy(t),r.nextTick(E,t)});else if(b(A,!0))v++,j(A,e,E,{end:l});else throw new p(`AsyncIterable or Promise`,`destination`,A);A=e;let{destroy:n,cleanup:i}=D(A,!1,!0);g.push(n),d&&c.push(i)}else if(C(i)){if(S(A)){v+=2;let e=P(A,i,E,{end:l});x(i)&&d&&c.push(e)}else if(b(A))v++,j(A,i,E,{end:l});else throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`],A);A=i}else A=u.from(i)}return(o!=null&&o.aborted||s!=null&&s.aborted)&&r.nextTick(l),A}function P(e,t,n,{end:r}){let i=!1;return t.on(`close`,()=>{i||n(new g)}),e.pipe(t,{end:r}),r?e.once(`end`,()=>{i=!0,t.end()}):n(),s(e,{readable:!0,writable:!1},t=>{let r=e._readableState;t&&t.code===`ERR_STREAM_PREMATURE_CLOSE`&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once(`end`,n).once(`error`,n):n(t)}),s(t,{readable:!1,writable:!0},n)}n.exports={pipelineImpl:N,pipeline:M}})),as=i(((e,t)=>{var{pipeline:n}=is(),r=ts(),{destroyer:i}=Uo(),{isNodeStream:a,isReadable:o,isWritable:s}=Bo(),{AbortError:c,codes:{ERR_INVALID_ARG_VALUE:l,ERR_MISSING_ARGS:u}}=Lo();t.exports=function(...e){if(e.length===0)throw new u(`streams`);if(e.length===1)return r.from(e[0]);let t=[...e];if(typeof e[0]==`function`&&(e[0]=r.from(e[0])),typeof e[e.length-1]==`function`){let t=e.length-1;e[t]=r.from(e[t])}for(let n=0;n<e.length;++n)if(a(e[n])){if(n<e.length-1&&!o(e[n]))throw new l(`streams[${n}]`,t[n],`must be readable`);if(n>0&&!s(e[n]))throw new l(`streams[${n}]`,t[n],`must be writable`)}let d,f,p,m,h;function g(e){let t=m;m=null,t?t(e):e?h.destroy(e):!b&&!y&&h.destroy()}let _=e[0],v=n(e,g),y=!!s(_),b=!!o(v);return h=new r({writableObjectMode:!!(_!=null&&_.writableObjectMode),readableObjectMode:!!(v!=null&&v.writableObjectMode),writable:y,readable:b}),y&&(h._write=function(e,t,n){_.write(e,t)?n():d=n},h._final=function(e){_.end(),f=e},_.on(`drain`,function(){if(d){let e=d;d=null,e()}}),v.on(`finish`,function(){if(f){let e=f;f=null,e()}})),b&&(v.on(`readable`,function(){if(p){let e=p;p=null,e()}}),v.on(`end`,function(){h.push(null)}),h._read=function(){for(;;){let e=v.read();if(e===null){p=h._read;return}if(!h.push(e))return}}),h._destroy=function(e,t){!e&&m!==null&&(e=new c),p=null,d=null,f=null,m===null?t(e):(m=t,i(v,e))},h}})),os=i(((e,t)=>{var{ArrayPrototypePop:n,Promise:r}=Mo(),{isIterable:i,isNodeStream:a}=Bo(),{pipelineImpl:o}=is(),{finished:s}=Vo();function c(...e){return new r((t,r)=>{let s,c,l=e[e.length-1];if(l&&typeof l==`object`&&!a(l)&&!i(l)){let t=n(e);s=t.signal,c=t.end}o(e,(e,n)=>{e?r(e):t(n)},{signal:s,end:c})})}t.exports={finished:s,pipeline:c}})),ss=i(((e,t)=>{var{Buffer:n}=jo(),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=Mo(),{promisify:{custom:o}}=No(),{streamReturningOperators:s,promiseReturningOperators:c}=Ho(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=Lo(),u=as(),{pipeline:d}=is(),{destroyer:f}=Uo(),p=Vo(),m=os(),h=Bo(),g=t.exports=$().Stream;g.isDisturbed=h.isDisturbed,g.isErrored=h.isErrored,g.isReadable=h.isReadable,g.Readable=Qo();for(let e of i(s)){let t=s[e];function n(...e){if(new.target)throw l();return g.Readable.from(a(t,this,e))}r(n,`name`,{__proto__:null,value:t.name}),r(n,`length`,{__proto__:null,value:t.length}),r(g.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let e of i(c)){let t=c[e];function n(...e){if(new.target)throw l();return a(t,this,e)}r(n,`name`,{__proto__:null,value:t.name}),r(n,`length`,{__proto__:null,value:t.length}),r(g.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}g.Writable=$o(),g.Duplex=ts(),g.Transform=ns(),g.PassThrough=rs(),g.pipeline=d;var{addAbortSignal:_}=Go();g.addAbortSignal=_,g.finished=p,g.destroy=f,g.compose=u,r(g,`promises`,{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(d,o,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(p,o,{__proto__:null,enumerable:!0,get(){return m.finished}}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}})),cs=i(((e,t)=>{var n=ss(),r=os(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,`promises`,{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports})),ls=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=cs();function n(e){e=Object.assign({},e);let n=e.array,r=e.encoding,i=r===`buffer`,a=!1;n?a=!(r||i):r||=`utf8`,i&&(r=void 0);let o=0,s=[],c=new t.PassThrough({objectMode:a});return r&&c.setEncoding(r),c.on(`data`,e=>{s.push(e),a?o=s.length:o+=e.length}),c.getBufferedValue=()=>n?s:i?Buffer.concat(s,o):s.join(``),c.getBufferedLength=()=>o,c}e.default=n})),us=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.array=e.buffer=e.getStream=void 0;var n=t(ls());function r(e,t={}){if(!e)return Promise.reject(Error(`Expected a stream`));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer||1/0,i,a,o=new Promise((o,s)=>{let c=e=>{e&&(e.bufferedData=i.getBufferedValue()),s(e)};i=(0,n.default)(t),e.once(`error`,c),e.pipe(i),i.on(`data`,()=>{i.getBufferedLength()>r&&s(Error(`maxBuffer exceeded`))}),i.once(`error`,c),i.on(`end`,o),a=()=>{e.unpipe&&e.unpipe(i)}});return o.then(a,a),o.then(()=>i.getBufferedValue())}e.getStream=r;function i(e,t={}){r(e,Object.assign({},t,{encoding:`buffer`}))}e.buffer=i;function a(e,t={}){r(e,Object.assign({},t,{array:!0}))}e.array=a})),ds=i(((e,t)=>{t.exports={}})),fs=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n=typeof window<`u`&&window.document!==void 0,r=typeof process<`u`&&process.versions!=null&&process.versions.node!=null,i=(typeof self>`u`?`undefined`:t(self))===`object`&&self.constructor&&self.constructor.name===`DedicatedWorkerGlobalScope`,a=typeof window<`u`&&window.name===`nodejs`||typeof navigator<`u`&&(navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),o=typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno!==void 0;e.isBrowser=n,e.isWebWorker=i,e.isNode=r,e.isJsDom=a,e.isDeno=o})),ps=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DefaultMap=void 0,e.DefaultMap=class extends Map{constructor(e,t){super(t),this._defaultFunc=e}get(e){let t=super.get(e);if(t===void 0){if(this.has(e))return t;t=this._defaultFunc(e),this.set(e,t)}return t}update(e,t){let n=t(this.get(e));return this.set(e,n),n}}})),ms=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DefaultMap=e.exceptionToError=e.exceptionToString=e.filterUndefined=e.mapFilterUndefined=e.hasOwnProperty=e.isEnumValue=e.definedMap=e.reduceTwo=e.sleep=e.dontAwait=e.defined=e.assertNever=e.assert=e.panic=e.proveNever=e.proveType=void 0;function t(e){}e.proveType=t;function n(e,t,n){return console.trace(t),n}e.proveNever=n;function r(e=`This should not happen`){throw console.trace(e),Error(e)}e.panic=r;function i(e,t=`Assertion failed`){if(!e)return r(t)}e.assert=i;function a(e,t="`never` happened"){return r(t)}e.assertNever=a;function o(e,t){return e===void 0?r(`Value was undefined but should be defined`+(t===void 0?``:` because: ${t}`)):e}e.defined=o;function s(e){e instanceof Promise&&e.catch(e=>{throw console.trace(`Unhandled error from unawaited promise`,e),e})}e.dontAwait=s;function c(e){return new Promise(t=>{setTimeout(t,e)})}e.sleep=c;function l(e,t,n){return e===void 0?t:t===void 0?e:n(e,t)}e.reduceTwo=l;function u(e,t){if(e!==void 0)return t(e)}e.definedMap=u;function d(e,t){return Object.keys(e).map(t=>e[t]).some(e=>e===t)}e.isEnumValue=d;function f(e,t){return e==null?!1:Object.prototype.hasOwnProperty.call(e,t)}e.hasOwnProperty=f;function p(e,t){let n=[],r=0;for(let i of e){let e=t(i,r);r+=1,e!==void 0&&n.push(e)}return n}e.mapFilterUndefined=p;function m(e){let t=[];for(let n of e)n!==void 0&&t.push(n);return t}e.filterUndefined=m;function h(e){if(e===void 0)return``;try{return e.toString()}catch(e){try{return`Exception can't be stringified: ${h(e)}`}catch{return`Exception can't be stringified`}}}e.exceptionToString=h;function g(e){return e instanceof Error?e:Error(h(e))}e.exceptionToError=g;var _=ps();Object.defineProperty(e,`DefaultMap`,{enumerable:!0,get:function(){return _.DefaultMap}})})),hs=i(((e,t)=>{t.exports=a;var n=/^(?:\w+:)?\/\/(\S+)$/,r=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,i=/^[^\s\.]+\.\S{2,}$/;function a(e){if(typeof e!=`string`)return!1;var t=e.match(n);if(!t)return!1;var a=t[1];return a?!!(r.test(a)||i.test(a)):!1}})),gs=i(((e,t)=>{var n=typeof globalThis<`u`&&globalThis||typeof self<`u`&&self||typeof global<`u`&&global,r=(function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e})();(function(e){(function(t){var n=e!==void 0&&e||typeof self<`u`&&self||typeof global<`u`&&global||{},r={searchParams:`URLSearchParams`in n,iterable:`Symbol`in n&&`iterator`in Symbol,blob:`FileReader`in n&&`Blob`in n&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:`FormData`in n,arrayBuffer:`ArrayBuffer`in n};function i(e){return e&&DataView.prototype.isPrototypeOf(e)}if(r.arrayBuffer)var a=[`[object Int8Array]`,`[object Uint8Array]`,`[object Uint8ClampedArray]`,`[object Int16Array]`,`[object Uint16Array]`,`[object Int32Array]`,`[object Uint32Array]`,`[object Float32Array]`,`[object Float64Array]`],o=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if(typeof e!=`string`&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e===``)throw TypeError(`Invalid character in header field name: "`+e+`"`);return e.toLowerCase()}function c(e){return typeof e!=`string`&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(e.length!=2)throw TypeError(`Headers constructor: expected name/value pair to be length 2, found`+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}u.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+`, `+t:t},u.prototype.delete=function(e){delete this.map[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.map[s(e)]=c(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),l(e)},r.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function d(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError(`Already read`));e.bodyUsed=!0}}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:`utf-8`;return t.readAsText(e,i),n}function h(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join(``)}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e==`string`?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&i(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=``),this.headers.get(`content-type`)||(typeof e==`string`?this.headers.set(`content-type`,`text/plain;charset=UTF-8`):this._bodyBlob&&this._bodyBlob.type?this.headers.set(`content-type`,this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`))},r.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error(`could not read FormData body as blob`);return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(r.blob)return this.blob().then(p);throw Error(`could not read as ArrayBuffer`)},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(h(this._bodyArrayBuffer));if(this._bodyFormData)throw Error(`could not read FormData body as text`);return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}var v=[`CONNECT`,`DELETE`,`GET`,`HEAD`,`OPTIONS`,`PATCH`,`POST`,`PUT`,`TRACE`];function y(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}function b(e,t){if(!(this instanceof b))throw TypeError(`Please use the "new" operator, this DOM object constructor cannot be called as a function.`);t||={};var r=t.body;if(e instanceof b){if(e.bodyUsed)throw TypeError(`Already read`);this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||`same-origin`,(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=y(t.method||this.method||`GET`),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if(`AbortController`in n)return new AbortController().signal}(),this.referrer=null,(this.method===`GET`||this.method===`HEAD`)&&r)throw TypeError(`Body not allowed for GET or HEAD requests`);if(this._initBody(r),(this.method===`GET`||this.method===`HEAD`)&&(t.cache===`no-store`||t.cache===`no-cache`)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,`$1_=`+new Date().getTime()):this.url+=(/\?/.test(this.url)?`&`:`?`)+`_=`+new Date().getTime()}}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function x(e){var t=new FormData;return e.trim().split(`&`).forEach(function(e){if(e){var n=e.split(`=`),r=n.shift().replace(/\+/g,` `),i=n.join(`=`).replace(/\+/g,` `);t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function S(e){var t=new u;return e.replace(/\r?\n[\t ]+/g,` `).split(`\r`).map(function(e){return e.indexOf(`
925
- `)===0?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(`:`),r=n.shift().trim();if(r){var i=n.join(`:`).trim();try{t.append(r,i)}catch(e){console.warn(`Response `+e.message)}}}),t}_.call(b.prototype);function C(e,t){if(!(this instanceof C))throw TypeError(`Please use the "new" operator, this DOM object constructor cannot be called as a function.`);if(t||={},this.type=`default`,this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw RangeError(`Failed to construct 'Response': The status provided (0) is outside the range [200, 599].`);this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?``:``+t.statusText,this.headers=new u(t.headers),this.url=t.url||``,this._initBody(e)}_.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:200,statusText:``});return e.ok=!1,e.status=0,e.type=`error`,e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(w.indexOf(t)===-1)throw RangeError(`Invalid status code`);return new C(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(e,t){this.message=e,this.name=t,this.stack=Error(e).stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,i){return new Promise(function(a,o){var l=new b(e,i);if(l.signal&&l.signal.aborted)return o(new t.DOMException(`Aborted`,`AbortError`));var d=new XMLHttpRequest;function f(){d.abort()}d.onload=function(){var e={statusText:d.statusText,headers:S(d.getAllResponseHeaders()||``)};l.url.indexOf(`file://`)===0&&(d.status<200||d.status>599)?e.status=200:e.status=d.status,e.url=`responseURL`in d?d.responseURL:e.headers.get(`X-Request-URL`);var t=`response`in d?d.response:d.responseText;setTimeout(function(){a(new C(t,e))},0)},d.onerror=function(){setTimeout(function(){o(TypeError(`Network request failed`))},0)},d.ontimeout=function(){setTimeout(function(){o(TypeError(`Network request timed out`))},0)},d.onabort=function(){setTimeout(function(){o(new t.DOMException(`Aborted`,`AbortError`))},0)};function p(e){try{return e===``&&n.location.href?n.location.href:e}catch{return e}}if(d.open(l.method,p(l.url),!0),l.credentials===`include`?d.withCredentials=!0:l.credentials===`omit`&&(d.withCredentials=!1),`responseType`in d&&(r.blob?d.responseType=`blob`:r.arrayBuffer&&(d.responseType=`arraybuffer`)),i&&typeof i.headers==`object`&&!(i.headers instanceof u||n.Headers&&i.headers instanceof n.Headers)){var m=[];Object.getOwnPropertyNames(i.headers).forEach(function(e){m.push(s(e)),d.setRequestHeader(e,c(i.headers[e]))}),l.headers.forEach(function(e,t){m.indexOf(t)===-1&&d.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){d.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener(`abort`,f),d.onreadystatechange=function(){d.readyState===4&&l.signal.removeEventListener(`abort`,f)}),d.send(l._bodyInit===void 0?null:l._bodyInit)})}return T.polyfill=!0,n.fetch||(n.fetch=T,n.Headers=u,n.Request=b,n.Response=C),t.Headers=u,t.Request=b,t.Response=C,t.fetch=T,Object.defineProperty(t,`__esModule`,{value:!0}),t})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),_s=i((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.readFromFileOrURL=e.readableFromFileOrURL=void 0;var o=r(ds()),s=fs(),c=us(),l=ms(),u=bs(),d=hs(),f=a(gs());function p(e){return Array.isArray(e)?e.reduce(function(e,t){if(t!==void 0&&t.length>0){let n=t.indexOf(`:`);if(n<0)return(0,u.panic)(`Could not parse HTTP header "${t}".`);let r=t.slice(0,n).trim();e[r]=t.slice(n+1).trim()}return e},{}):{}}function m(e,t){return i(this,void 0,void 0,function*(){try{if(d(e)){let n=yield(0,f.default)(e,{headers:p(t)});return(0,l.defined)(n.body)}else if(s.isNode){if(e===`-`)return process.stdin;let t=o.lstatSync(e).isSymbolicLink()?o.readlinkSync(e):e;if(o.existsSync(t))return o.createReadStream(t,`utf8`)}}catch(t){return(0,u.messageError)(`MiscReadError`,{fileOrURL:e,message:(0,l.exceptionToString)(t)})}return(0,u.messageError)(`DriverInputFileDoesNotExist`,{filename:e})})}e.readableFromFileOrURL=m;function h(e,t){return i(this,void 0,void 0,function*(){let n=yield m(e,t);try{return yield(0,c.getStream)(n)}catch(t){return(0,u.messageError)(`MiscReadError`,{fileOrURL:e,message:(0,l.exceptionToString)(t)})}})}e.readFromFileOrURL=h})),vs=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.FetchingJSONSchemaStore=void 0;var n=Aa(),r=bs(),i=_s();e.FetchingJSONSchemaStore=class extends n.JSONSchemaStore{constructor(e){super(),this._httpHeaders=e}fetch(e){return t(this,void 0,void 0,function*(){return(0,r.parseJSON)(yield(0,i.readFromFileOrURL)(e,this._httpHeaders),`JSON Schema`,e)})}}})),ys=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sourcesFromPostmanCollection=void 0;var t=Q();function n(e){try{return JSON.parse(e),!0}catch{return!1}}function r(e,r){let i=[],a=[];function o(e){if(typeof e==`object`){if(Array.isArray(e.item)){for(let t of e.item)o(t);typeof e.info==`object`&&typeof e.info.description==`string`&&a.push(e.info.description)}if(typeof e.name==`string`&&Array.isArray(e.response)){let t=[];for(let r of e.response)typeof r==`object`&&typeof r.body==`string`&&n(r.body)&&t.push(r.body);if(t.length>0){let n={name:e.name,samples:t},r=[e.name];if(typeof e.request==`object`){let{method:t,url:n}=e.request;t!==void 0&&typeof n==`object`&&n.raw!==void 0&&r.push(`${t} ${n.raw}`)}typeof e.request==`object`&&typeof e.request.description==`string`&&r.push(e.request.description),n.description=r.length===0?void 0:r.join(`
924
+ `);e.push(``);let t={lines:e,annotations:[]};return new Map([[this._options.outputFilename,t]])}return[t,e]}run(){return i(this,void 0,void 0,function*(){let e=this.preRun();if(!Array.isArray(e))return e;let[t,n]=e,r=yield this.makeGraph(t);return this.renderGraph(n,r)})}runSync(){let e=this.preRun();if(!Array.isArray(e))return e;let[t,n]=e,r=this.makeGraphSync(t);return this.renderGraph(n,r)}renderGraph(e,t){return this._options.noRender?this.makeSimpleTextResult([`Done.`,``]):e.renderGraphAndSerialize(t,this._options.outputFilename,this._options.alphabetizeProperties,this._options.leadingComments,this._options.rendererOptions,this._options.indentation)}};function O(e){return i(this,void 0,void 0,function*(){return yield new D(e).run()})}e.quicktypeMultiFile=O;function k(e){return new D(e).runSync()}e.quicktypeMultiFileSync=k;function A(e,t){return{line:e.line+t,column:e.column}}function j(e,t){return{start:A(e.start,t),end:A(e.end,t)}}function M(e){if(e.size<=1){let t=(0,o.mapFirst)(e);return t===void 0?{lines:[],annotations:[]}:t}let t=[],n=[];for(let[r,i]of e){let e=t.length+2;t=t.concat([`// ${r}`,``],i.lines),n=n.concat(i.annotations.map(t=>({annotation:t.annotation,span:j(t.span,e)})))}return{lines:t,annotations:n}}e.combineRenderResults=M;function N(e){return i(this,void 0,void 0,function*(){return M(yield O(e))})}e.quicktype=N})),Ao=i((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),jo=i((e=>{var t=aa(),n=Ao(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(G(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||pe(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(G(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return le(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return fe(e).length;default:if(i)return r?-1:le(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ee(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return F(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,pe(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(pe(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return W(le(t,e.length-n),e,n,r)}function E(e,t,n,r){return W(ue(t),e,n,r)}function D(e,t,n,r){return W(fe(t),e,n,r)}function O(e,t,n,r){return W(de(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}var j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ee(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=me[e[r]];return i}function F(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=K(function(e){e>>>=0,oe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&U(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)};function L(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;L(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){H(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=K(function(e,t=0){return R(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=K(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);L(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=K(function(e,t=0){return R(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=K(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function te(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function ne(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return ne(this,e,t,!1,n)};function re(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return re(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return re(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var B={};function V(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}V(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),V(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),V(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=ie(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=ie(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function ie(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ae(e,t,n){oe(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&U(t,e.length-(n+1))}function H(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE(`value`,i,e)}ae(r,i,a)}function oe(e,t){if(typeof e!=`number`)throw new B.ERR_INVALID_ARG_TYPE(t,`number`,e)}function U(e,t,n){throw Math.floor(e)===e?t<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(oe(e,n),new B.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var se=/[^+/0-9A-Za-z-_]/g;function ce(e){if(e=e.split(`=`)[0],e=e.trim().replace(se,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function le(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function ue(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function de(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function fe(e){return t.toByteArray(ce(e))}function W(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function pe(e){return e!==e}var me=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function K(e){return typeof BigInt>`u`?q:e}function q(){throw Error(`BigInt not supported`)}})),Mo=i(((e,t)=>{t.exports={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:2**53-1,NumberMIN_SAFE_INTEGER:-(2**53-1),NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(e,t,n){return e.set(t,n)},Uint8Array}})),No=i(((e,t)=>{var n=jo(),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,a=i===void 0?function(e){return!1}:function(e){return e instanceof i};t.exports={AggregateError:class extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t=``;for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name=`AggregateError`,this.errors=e}},kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}},promisify(e){return new Promise((t,n)=>{e((e,...r)=>e?n(e):t(...r))})},debuglog(){return function(){}},format(e,...t){return e.replace(/%([sdifj])/g,function(...[e,n]){let r=t.shift();return n===`f`?r.toFixed(6):n===`j`?JSON.stringify(r):n===`s`&&typeof r==`object`?`${r.constructor===Object?``:r.constructor.name} {}`.trim():r.toString()})},inspect(e){switch(typeof e){case`string`:if(e.includes(`'`)){if(!e.includes(`"`))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case`number`:return isNaN(e)?`NaN`:Object.is(e,-0)?String(e):e;case`bigint`:return`${String(e)}n`;case`boolean`:case`undefined`:return String(e);case`object`:return`{}`}},types:{isAsyncFunction(e){return e instanceof r},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:a},t.exports.promisify.custom=Symbol.for(`nodejs.util.promisify.custom`)})),Po=r({default:()=>Fo}),Fo,Io=n((()=>{Fo=Object.freeze(Object.create(null,{__mock__:{get:()=>!0}}))})),Lo=i(((e,t)=>{var{format:n,inspect:r,AggregateError:i}=No(),a=globalThis.AggregateError||i,o=Symbol(`kIsNodeError`),s=[`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`],c=/^([A-Z][a-z0-9]*)+$/,l=`__node_internal_`,u={};function d(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function f(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function p(e,t,r){if(typeof t==`function`)return d(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return d(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:n(t,...r)}function m(e,t,n){n||=Error;class r extends n{constructor(...n){super(p(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[o]=!0,u[e]=r}function h(e){let t=l+e.name;return Object.defineProperty(e,`name`,{value:t}),e}function g(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new a([t,e],t.message);return n.code=t.code,n}return e||t}var _=class extends Error{constructor(e=`The operation was aborted`,t=void 0){if(t!==void 0&&typeof t!=`object`)throw new u.ERR_INVALID_ARG_TYPE(`options`,`Object`,t);super(e,t),this.code=`ABORT_ERR`,this.name=`AbortError`}};m(`ERR_ASSERTION`,`%s`,Error),m(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{d(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let i=`The `;e.endsWith(` argument`)?i+=`${e} `:i+=`"${e}" ${e.includes(`.`)?`property`:`argument`} `,i+=`must be `;let a=[],o=[],l=[];for(let e of t)d(typeof e==`string`,`All expected entries have to be of type string`),s.includes(e)?a.push(e.toLowerCase()):c.test(e)?o.push(e):(d(e!==`object`,`The value "object" should be written as "Object"`),l.push(e));if(o.length>0){let e=a.indexOf(`object`);e!==-1&&(a.splice(a,e,1),o.push(`Object`))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();i+=`one of type ${a.join(`, `)}, or ${e}`}}(o.length>0||l.length>0)&&(i+=` or `)}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();i+=`an instance of ${o.join(`, `)}, or ${e}`}}l.length>0&&(i+=` or `)}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(i+=`an `),i+=`${l[0]}`;break;case 2:i+=`one of ${l[0]} or ${l[1]}`;break;default:{let e=l.pop();i+=`one of ${l.join(`, `)}, or ${e}`}}if(n==null)i+=`. Received ${n}`;else if(typeof n==`function`&&n.name)i+=`. Received function ${n.name}`;else if(typeof n==`object`){var u;if((u=n.constructor)!=null&&u.name)i+=`. Received an instance of ${n.constructor.name}`;else{let e=r(n,{depth:-1});i+=`. Received ${e}`}}else{let e=r(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof n} (${e})`}return i},TypeError),m(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let i=r(t);return i.length>128&&(i=i.slice(0,128)+`...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${i}`},TypeError),m(`ERR_INVALID_RETURN_VALUE`,(e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${n!=null&&(r=n.constructor)!=null&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`}.`},TypeError),m(`ERR_MISSING_ARGS`,(...e)=>{d(e.length>0,`At least one arg needs to be specified`);let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(` or `),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(`, `)}, and ${n} arguments`}break}return`${t} must be specified`},TypeError),m(`ERR_OUT_OF_RANGE`,(e,t,n)=>{d(t,`Missing "range" argument`);let i;return Number.isInteger(n)&&Math.abs(n)>2**32?i=f(String(n)):typeof n==`bigint`?(i=String(n),(n>2n**32n||n<-(2n**32n))&&(i=f(i)),i+=`n`):i=r(n),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError),m(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`,Error),m(`ERR_METHOD_NOT_IMPLEMENTED`,`The %s method is not implemented`,Error),m(`ERR_STREAM_ALREADY_FINISHED`,`Cannot call %s after a stream was finished`,Error),m(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`,Error),m(`ERR_STREAM_DESTROYED`,`Cannot call %s after a stream was destroyed`,Error),m(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),m(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`,Error),m(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`,Error),m(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`,Error),m(`ERR_STREAM_WRITE_AFTER_END`,`write after end`,Error),m(`ERR_UNKNOWN_ENCODING`,`Unknown encoding: %s`,TypeError),t.exports={AbortError:_,aggregateTwoErrors:h(g),hideStackFrames:h,codes:u}})),Ro=i(((e,t)=>{var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:a,NumberIsInteger:o,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:l,NumberParseInt:u,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:h}=Mo(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:_,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:y,ERR_OUT_OF_RANGE:b,ERR_UNKNOWN_SIGNAL:x}}=Lo(),{normalizeEncoding:S}=No(),{isAsyncFunction:C,isArrayBufferView:w}=No().types,T={};function E(e){return e===(e|0)}function D(e){return e===e>>>0}var O=/^[0-7]+$/,k=`must be a 32-bit unsigned integer or an octal string`;function A(e,t,n){if(e===void 0&&(e=n),typeof e==`string`){if(f(O,e)===null)throw new y(t,e,k);e=u(e,8)}return N(e,t),e}var j=g((e,t,n=l,r=c)=>{if(typeof e!=`number`)throw new v(t,`number`,e);if(!o(e))throw new b(t,`an integer`,e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)}),M=g((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!=`number`)throw new v(t,`number`,e);if(!o(e))throw new b(t,`an integer`,e);if(e<n||e>r)throw new b(t,`>= ${n} && <= ${r}`,e)}),N=g((e,t,n=!1)=>{if(typeof e!=`number`)throw new v(t,`number`,e);if(!o(e))throw new b(t,`an integer`,e);let r=+!!n,i=4294967295;if(e<r||e>i)throw new b(t,`>= ${r} && <= ${i}`,e)});function P(e,t){if(typeof e!=`string`)throw new v(t,`string`,e)}function ee(e,t,n=void 0,r){if(typeof e!=`number`)throw new v(t,`number`,e);if(n!=null&&e<n||r!=null&&e>r||(n!=null||r!=null)&&s(e))throw new b(t,`${n==null?``:`>= ${n}`}${n!=null&&r!=null?` && `:``}${r==null?``:`<= ${r}`}`,e)}var F=g((e,t,n)=>{if(!r(n,e))throw new y(t,e,`must be one of: `+i(a(n,e=>typeof e==`string`?`'${e}'`:p(e)),`, `))});function I(e,t){if(typeof e!=`boolean`)throw new v(t,`boolean`,e)}function L(e,t,n){return e==null||!d(e,t)?n:e[t]}var R=g((e,t,r=null)=>{let i=L(r,`allowArray`,!1),a=L(r,`allowFunction`,!1);if(!L(r,`nullable`,!1)&&e===null||!i&&n(e)||typeof e!=`object`&&(!a||typeof e!=`function`))throw new v(t,`Object`,e)}),z=g((e,t,r=0)=>{if(!n(e))throw new v(t,`Array`,e);if(e.length<r)throw new y(t,e,`must be longer than ${r}`)});function te(e,t=`signal`){if(P(e,t),T[e]===void 0)throw T[m(e)]===void 0?new x(e):new x(e+` (signals must use all capital letters)`)}var ne=g((e,t=`buffer`)=>{if(!w(e))throw new v(t,[`Buffer`,`TypedArray`,`DataView`],e)});function re(e,t){let n=S(t),r=e.length;if(n===`hex`&&r%2!=0)throw new y(`encoding`,t,`is invalid for data of length ${r}`)}function B(e,t=`Port`,n=!0){if(typeof e!=`number`&&typeof e!=`string`||typeof e==`string`&&h(e).length===0||+e!=e>>>0||e>65535||e===0&&!n)throw new _(t,e,n);return e|0}var V=g((e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new v(t,`AbortSignal`,e)}),ie=g((e,t)=>{if(typeof e!=`function`)throw new v(t,`Function`,e)}),ae=g((e,t)=>{if(typeof e!=`function`||C(e))throw new v(t,`Function`,e)}),H=g((e,t)=>{if(e!==void 0)throw new v(t,`undefined`,e)});function oe(e,t,n){if(!r(n,e))throw new v(t,`('${i(n,`|`)}')`,e)}t.exports={isInt32:E,isUint32:D,parseFileMode:A,validateArray:z,validateBoolean:I,validateBuffer:ne,validateEncoding:re,validateFunction:ie,validateInt32:M,validateInteger:j,validateNumber:ee,validateObject:R,validateOneOf:F,validatePlainFunction:ae,validatePort:B,validateSignalName:te,validateString:P,validateUint32:N,validateUndefined:H,validateUnion:oe,validateAbortSignal:V}})),zo=i(((e,t)=>{var n=t.exports={},r,i;function a(){throw Error(`setTimeout has not been defined`)}function o(){throw Error(`clearTimeout has not been defined`)}(function(){try{r=typeof setTimeout==`function`?setTimeout:a}catch{r=a}try{i=typeof clearTimeout==`function`?clearTimeout:o}catch{i=o}})();function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch{try{return r.call(null,e,0)}catch{return r.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}var l=[],u=!1,d,f=-1;function p(){!u||!d||(u=!1,d.length?l=d.concat(l):f=-1,l.length&&m())}function m(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(d=l,l=[];++f<t;)d&&d[f].run();f=-1,t=l.length}d=null,u=!1,c(e)}}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),l.length===1&&!u&&s(m)};function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)},n.title=`browser`,n.browser=!0,n.env={},n.argv=[],n.version=``,n.versions={};function g(){}n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw Error(`process.binding is not supported`)},n.cwd=function(){return`/`},n.chdir=function(e){throw Error(`process.chdir is not supported`)},n.umask=function(){return 0}})),Bo=i(((e,t)=>{var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i}=Mo(),a=n(`kDestroyed`),o=n(`kIsErrored`),s=n(`kIsReadable`),c=n(`kIsDisturbed`);function l(e,t=!1){return!!(e&&typeof e.pipe==`function`&&typeof e.on==`function`&&(!t||typeof e.pause==`function`&&typeof e.resume==`function`)&&(!e._writableState||e._readableState?.readable!==!1)&&(!e._writableState||e._readableState))}function u(e){return!!(e&&typeof e.write==`function`&&typeof e.on==`function`&&(!e._readableState||e._writableState?.writable!==!1))}function d(e){return!!(e&&typeof e.pipe==`function`&&e._readableState&&typeof e.on==`function`&&typeof e.write==`function`)}function f(e){return e&&(e._readableState||e._writableState||typeof e.write==`function`&&typeof e.on==`function`||typeof e.pipe==`function`&&typeof e.on==`function`)}function p(e,t){return e==null?!1:t===!0?typeof e[r]==`function`:t===!1?typeof e[i]==`function`:typeof e[r]==`function`||typeof e[i]==`function`}function m(e){if(!f(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||r!=null&&r.destroyed)}function h(e){if(!u(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function g(e,t){if(!u(e))return null;if(e.writableFinished===!0)return!0;let n=e._writableState;return n!=null&&n.errored?!1:typeof n?.finished==`boolean`?!!(n.finished||t===!1&&n.ended===!0&&n.length===0):null}function _(e){if(!l(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended==`boolean`?t.ended:null}function v(e,t){if(!l(e))return null;let n=e._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted==`boolean`?!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0):null}function y(e){return e&&e[s]!=null?e[s]:typeof e?.readable==`boolean`?m(e)?!1:l(e)&&e.readable&&!v(e):null}function b(e){return typeof e?.writable==`boolean`?m(e)?!1:u(e)&&e.writable&&!h(e):null}function x(e,t){return f(e)?m(e)?!0:!(t?.readable!==!1&&y(e)||t?.writable!==!1&&b(e)):null}function S(e){return f(e)?e.writableErrored?e.writableErrored:e._writableState?.errored??null:null}function C(e){return f(e)?e.readableErrored?e.readableErrored:e._readableState?.errored??null:null}function w(e){if(!f(e))return null;if(typeof e.closed==`boolean`)return e.closed;let t=e._writableState,n=e._readableState;return typeof t?.closed==`boolean`||typeof n?.closed==`boolean`?t?.closed||n?.closed:typeof e._closed==`boolean`&&T(e)?e._closed:null}function T(e){return typeof e._closed==`boolean`&&typeof e._defaultKeepAlive==`boolean`&&typeof e._removedConnection==`boolean`&&typeof e._removedContLen==`boolean`}function E(e){return typeof e._sent100==`boolean`&&T(e)}function D(e){return typeof e._consuming==`boolean`&&typeof e._dumped==`boolean`&&e.req?.upgradeOrConnect===void 0}function O(e){if(!f(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&E(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function k(e){return!!(e&&(e[c]??(e.readableDidRead||e.readableAborted)))}function A(e){return!!(e&&(e[o]??e.readableErrored??e.writableErrored??e._readableState?.errorEmitted??e._writableState?.errorEmitted??e._readableState?.errored??e._writableState?.errored))}t.exports={kDestroyed:a,isDisturbed:k,kIsDisturbed:c,isErrored:A,kIsErrored:o,isReadable:y,kIsReadable:s,isClosed:w,isDestroyed:m,isDuplexNodeStream:d,isFinished:x,isIterable:p,isReadableNodeStream:l,isReadableEnded:_,isReadableFinished:v,isReadableErrored:C,isNodeStream:f,isWritable:b,isWritableNodeStream:u,isWritableEnded:h,isWritableFinished:g,isWritableErrored:S,isServerRequest:D,isServerResponse:E,willEmitClose:O}})),Vo=i(((e,t)=>{var n=zo(),{AbortError:r,codes:i}=Lo(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:c}=No(),{validateAbortSignal:l,validateFunction:u,validateObject:d}=Ro(),{Promise:f}=Mo(),{isClosed:p,isReadable:m,isReadableNodeStream:h,isReadableFinished:g,isReadableErrored:_,isWritable:v,isWritableNodeStream:y,isWritableFinished:b,isWritableErrored:x,isNodeStream:S,willEmitClose:C}=Bo();function w(e){return e.setHeader&&typeof e.abort==`function`}var T=()=>{};function E(e,t,i){arguments.length===2?(i=t,t=s):t==null?t=s:d(t,`options`),u(i,`callback`),l(t.signal,`options.signal`),i=c(i);let f=t.readable??h(e),E=t.writable??y(e);if(!S(e))throw new a(`stream`,`Stream`,e);let D=e._writableState,O=e._readableState,k=()=>{e.writable||M()},A=C(e)&&h(e)===f&&y(e)===E,j=b(e,!1),M=()=>{j=!0,e.destroyed&&(A=!1),!(A&&(!e.readable||f))&&(!f||N)&&i.call(e)},N=g(e,!1),P=()=>{N=!0,e.destroyed&&(A=!1),!(A&&(!e.writable||E))&&(!E||j)&&i.call(e)},ee=t=>{i.call(e,t)},F=p(e),I=()=>{F=!0;let t=x(e)||_(e);if(t&&typeof t!=`boolean`)return i.call(e,t);if(f&&!N&&h(e,!0)&&!g(e,!1)||E&&!j&&!b(e,!1))return i.call(e,new o);i.call(e)},L=()=>{e.req.on(`finish`,M)};w(e)?(e.on(`complete`,M),A||e.on(`abort`,I),e.req?L():e.on(`request`,L)):E&&!D&&(e.on(`end`,k),e.on(`close`,k)),!A&&typeof e.aborted==`boolean`&&e.on(`aborted`,I),e.on(`end`,P),e.on(`finish`,M),t.error!==!1&&e.on(`error`,ee),e.on(`close`,I),F?n.nextTick(I):D!=null&&D.errorEmitted||O!=null&&O.errorEmitted?A||n.nextTick(I):(!f&&(!A||m(e))&&(j||v(e)===!1)||!E&&(!A||v(e))&&(N||m(e)===!1)||O&&e.req&&e.aborted)&&n.nextTick(I);let R=()=>{i=T,e.removeListener(`aborted`,I),e.removeListener(`complete`,M),e.removeListener(`abort`,I),e.removeListener(`request`,L),e.req&&e.req.removeListener(`finish`,M),e.removeListener(`end`,k),e.removeListener(`close`,k),e.removeListener(`finish`,M),e.removeListener(`end`,P),e.removeListener(`error`,ee),e.removeListener(`close`,I)};if(t.signal&&!F){let a=()=>{let n=i;R(),n.call(e,new r(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(a);else{let n=i;i=c((...r)=>{t.signal.removeEventListener(`abort`,a),n.apply(e,r)}),t.signal.addEventListener(`abort`,a)}}return R}function D(e,t){return new f((n,r)=>{E(e,t,e=>{e?r(e):n()})})}t.exports=E,t.exports.finished=D})),Ho=i(((t,n)=>{var r=globalThis.AbortController||(Io(),e(Po)).AbortController,{codes:{ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Lo(),{validateAbortSignal:c,validateInteger:l,validateObject:u}=Ro(),d=Mo().Symbol(`kWeak`),{finished:f}=Vo(),{ArrayPrototypePush:p,MathFloor:m,Number:h,NumberIsNaN:g,Promise:_,PromiseReject:v,PromisePrototypeThen:y,Symbol:b}=Mo(),x=b(`kEmpty`),S=b(`kEof`);function C(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`);let n=1;return t?.concurrency!=null&&(n=m(t.concurrency)),l(n,`concurrency`,1),async function*(){var i,a;let o=new r,c=this,l=[],u=o.signal,d={signal:u},f=()=>o.abort();t!=null&&(i=t.signal)!=null&&i.aborted&&f(),t==null||(a=t.signal)==null||a.addEventListener(`abort`,f);let p,m,h=!1;function g(){h=!0}async function b(){try{for await(let t of c){if(h)return;if(u.aborted)throw new s;try{t=e(t,d)}catch(e){t=v(e)}t!==x&&(typeof t?.catch==`function`&&t.catch(g),l.push(t),p&&=(p(),null),!h&&l.length&&l.length>=n&&await new _(e=>{m=e}))}l.push(S)}catch(e){let t=v(e);y(t,void 0,g),l.push(t)}finally{var r;h=!0,p&&=(p(),null),t==null||(r=t.signal)==null||r.removeEventListener(`abort`,f)}}b();try{for(;;){for(;l.length>0;){let e=await l[0];if(e===S)return;if(u.aborted)throw new s;e!==x&&(yield e),l.shift(),m&&=(m(),null)}await new _(e=>{p=e})}}finally{o.abort(),h=!0,m&&=(m(),null)}}.call(this)}function w(e=void 0){return e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`),async function*(){let t=0;for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,r]}}.call(this)}async function T(e,t=void 0){for await(let n of k.call(this,e,t))return!0;return!1}async function E(e,t=void 0){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);return!await T.call(this,async(...t)=>!await e(...t),t)}async function D(e,t){for await(let n of k.call(this,e,t))return n}async function O(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n),x}for await(let e of C.call(this,n,t));}function k(e,t){if(typeof e!=`function`)throw new i(`fn`,[`Function`,`AsyncFunction`],e);async function n(t,n){return await e(t,n)?t:x}return C.call(this,n,t)}var A=class extends a{constructor(){super(`reduce`),this.message=`Reduce of an empty stream requires an initial value`}};async function j(e,t,n){var a;if(typeof e!=`function`)throw new i(`reducer`,[`Function`,`AsyncFunction`],e);n!=null&&u(n,`options`),n?.signal!=null&&c(n.signal,`options.signal`);let o=arguments.length>1;if(n!=null&&(a=n.signal)!=null&&a.aborted){let e=new s(void 0,{cause:n.signal.reason});throw this.once(`error`,()=>{}),await f(this.destroy(e)),e}let l=new r,p=l.signal;if(n!=null&&n.signal){let e={once:!0,[d]:this};n.signal.addEventListener(`abort`,()=>l.abort(),e)}let m=!1;try{for await(let r of this){var h;if(m=!0,n!=null&&(h=n.signal)!=null&&h.aborted)throw new s;o?t=await e(t,r,{signal:p}):(t=r,o=!0)}if(!m&&!o)throw new A}finally{l.abort()}return t}async function M(e){e!=null&&u(e,`options`),e?.signal!=null&&c(e.signal,`options.signal`);let t=[];for await(let r of this){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)throw new s(void 0,{cause:e.signal.reason});p(t,r)}return t}function N(e,t){let n=C.call(this,e,t);return async function*(){for await(let e of n)yield*e}.call(this)}function P(e){if(e=h(e),g(e))return 0;if(e<0)throw new o(`number`,`>= 0`,e);return e}function ee(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=P(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;e--<=0&&(yield n)}}.call(this)}function F(e,t=void 0){return t!=null&&u(t,`options`),t?.signal!=null&&c(t.signal,`options.signal`),e=P(e),async function*(){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)throw new s;for await(let n of this){var r;if(t!=null&&(r=t.signal)!=null&&r.aborted)throw new s;if(e-- >0)yield n;else return}}.call(this)}n.exports.streamReturningOperators={asIndexedPairs:w,drop:ee,filter:k,flatMap:N,map:C,take:F},n.exports.promiseReturningOperators={every:E,forEach:O,reduce:j,toArray:M,some:T,find:D}})),Uo=i(((e,t)=>{var n=zo(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Lo(),{Symbol:o}=Mo(),{kDestroyed:s,isDestroyed:c,isFinished:l,isServerRequest:u}=Bo(),d=o(`kDestroy`),f=o(`kConstruct`);function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function m(e,t){let n=this._readableState,i=this._writableState,a=i||n;return i&&i.destroyed||n&&n.destroyed?(typeof t==`function`&&t(),this):(p(e,i,n),i&&(i.destroyed=!0),n&&(n.destroyed=!0),a.constructed?h(this,e,t):this.once(d,function(n){h(this,r(n,e),t)}),this)}function h(e,t,r){let i=!1;function a(t){if(i)return;i=!0;let a=e._readableState,o=e._writableState;p(t,o,a),o&&(o.closed=!0),a&&(a.closed=!0),typeof r==`function`&&r(t),t?n.nextTick(g,e,t):n.nextTick(_,e)}try{e._destroy(t||null,a)}catch(e){a(e)}}function g(e,t){v(e,t),_(e)}function _(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n&&n.emitClose||t&&t.emitClose)&&e.emit(`close`)}function v(e,t){let n=e._readableState,r=e._writableState;r&&r.errorEmitted||n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit(`error`,t))}function y(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function b(e,t,r){let i=e._readableState,a=e._writableState;if(a&&a.destroyed||i&&i.destroyed)return this;i&&i.autoDestroy||a&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(v,e,t):v(e,t))}function x(e,t){if(typeof e._construct!=`function`)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(f,t),!(e.listenerCount(f)>1)&&n.nextTick(S,e)}function S(e){let t=!1;function r(r){if(t){b(e,r??new i);return}t=!0;let a=e._readableState,o=e._writableState,s=o||a;a&&(a.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(d,r):r?b(e,r,!0):n.nextTick(C,e)}try{e._construct(r)}catch(e){r(e)}}function C(e){e.emit(f)}function w(e){return e&&e.setHeader&&typeof e.abort==`function`}function T(e){e.emit(`close`)}function E(e,t){e.emit(`error`,t),n.nextTick(T,e)}function D(e,t){!e||c(e)||(!t&&!l(e)&&(t=new a),u(e)?(e.socket=null,e.destroy(t)):w(e)?e.abort():w(e.req)?e.req.abort():typeof e.destroy==`function`?e.destroy(t):typeof e.close==`function`?e.close():t?n.nextTick(E,e,t):n.nextTick(T,e),e.destroyed||(e[s]=!0))}t.exports={construct:x,destroyer:D,destroy:m,undestroy:y,errorOrDestroy:b}})),Wo=i(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),$=i(((e,t)=>{var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=Mo(),{EventEmitter:i}=Wo();function a(e){i.call(this,e)}r(a.prototype,i.prototype),r(a,i),a.prototype.pipe=function(e,t){let n=this;function r(t){e.writable&&e.write(t)===!1&&n.pause&&n.pause()}n.on(`data`,r);function a(){n.readable&&n.resume&&n.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(n.on(`end`,c),n.on(`close`,l));let s=!1;function c(){s||(s=!0,e.end())}function l(){s||(s=!0,typeof e.destroy==`function`&&e.destroy())}function u(e){d(),i.listenerCount(this,`error`)===0&&this.emit(`error`,e)}o(n,`error`,u),o(e,`error`,u);function d(){n.removeListener(`data`,r),e.removeListener(`drain`,a),n.removeListener(`end`,c),n.removeListener(`close`,l),n.removeListener(`error`,u),e.removeListener(`error`,u),n.removeListener(`end`,d),n.removeListener(`close`,d),e.removeListener(`close`,d)}return n.on(`end`,d),n.on(`close`,d),e.on(`close`,d),e.emit(`pipe`,n),e};function o(e,t,r){if(typeof e.prependListener==`function`)return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}t.exports={Stream:a,prependListener:o}})),Go=i(((e,t)=>{var{AbortError:n,codes:r}=Lo(),i=Vo(),{ERR_INVALID_ARG_TYPE:a}=r,o=(e,t)=>{if(typeof e!=`object`||!(`aborted`in e))throw new a(t,`AbortSignal`,e)};function s(e){return!!(e&&typeof e.pipe==`function`)}t.exports.addAbortSignal=function(e,n){if(o(e,`signal`),!s(n))throw new a(`stream`,`stream.Stream`,n);return t.exports.addAbortSignalNoValidate(e,n)},t.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=`object`||!(`aborted`in e))return t;let r=()=>{t.destroy(new n(void 0,{cause:e.reason}))};return e.aborted?r():(e.addEventListener(`abort`,r),i(t,()=>e.removeEventListener(`abort`,r))),t}})),Ko=i(((e,t)=>{var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=Mo(),{Buffer:o}=jo(),{inspect:s}=No();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return``;let t=this.head,n=``+t.data;for(;(t=t.next)!==null;)n+=e+t.data;return n}concat(e){if(this.length===0)return o.alloc(0);let t=o.allocUnsafe(e>>>0),n=this.head,r=0;for(;n;)i(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){let n=this.head.data;if(e<n.length){let t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[r](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t=``,r=this.head,i=0;do{let a=r.data;if(e>a.length)t+=a,e-=a.length;else{e===a.length?(t+=a,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(a,0,e),this.head=r,r.data=n(a,e));break}++i}while((r=r.next)!==null);return this.length-=i,t}_getBuffer(e){let t=o.allocUnsafe(e),n=e,r=this.head,s=0;do{let o=r.data;if(e>o.length)i(t,o,n-e),e-=o.length;else{e===o.length?(i(t,o,n-e),++s,r.next?this.head=r.next:this.head=this.tail=null):(i(t,new a(o.buffer,o.byteOffset,e),n-e),this.head=r,r.data=o.slice(e));break}++s}while((r=r.next)!==null);return this.length-=s,t}[Symbol.for(`nodejs.util.inspect.custom`)](e,t){return s(this,{...t,depth:0,customInspect:!1})}}})),qo=i(((e,t)=>{var{MathFloor:n,NumberIsInteger:r}=Mo(),{ERR_INVALID_ARG_VALUE:i}=Lo().codes;function a(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function o(e){return e?16:16*1024}function s(e,t,s,c){let l=a(t,c,s);if(l!=null){if(!r(l)||l<0)throw new i(c?`options.${s}`:`options.highWaterMark`,l);return n(l)}return o(e.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:o}})),Jo=i((e=>{var t=aa(),n=Ao(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(oe(e,ArrayBuffer)||e&&oe(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(oe(e,SharedArrayBuffer)||e&&oe(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:_(e.length)|0,n=o(t),r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(oe(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);var r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n);return Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){var t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||U(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(oe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),oe(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(oe(a,Uint8Array))i+a.length>r.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=a.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||oe(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return B(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ae(e).length;default:if(i)return r?-1:B(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return ee(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return F(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){var t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(oe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d<c;++d)if(l[d]!==u[d]){a=l[d],o=u[d];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,U(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===s)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(c(e,l+f)!==c(t,f)){d=!1;break}if(d)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(U(s))return o;e[n+o]=s}return o}function T(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function E(e,t,n,r){return H(V(t),e,n,r)}function D(e,t,n,r){return H(ae(t),e,n,r)}function O(e,t,n,r){return H(ie(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return M(r)}var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ee(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,a=t;a<n;++a)i+=se[e[a]];return i}function F(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function I(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)};function L(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;L(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;L(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);L(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);L(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function z(e,t,r,i,a){return t=+t,r>>>=0,a||R(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)};function te(e,t,r,i,a){return t=+t,r>>>=0,a||R(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return te(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return te(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),c=o.length;if(c===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(a=0;a<n-t;++a)this[a+t]=o[a%c]}return this};var ne=/[^+/0-9A-Za-z-_]/g;function re(e){if(e=e.split(`=`)[0],e=e.trim().replace(ne,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function B(e,t){t||=1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function V(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ie(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ae(e){return t.toByteArray(re(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function oe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function U(e){return e!==e}var se=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),Yo=i(((e,t)=>{var n=Jo(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),Xo=i((e=>{var t=Yo().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Zo=i(((e,t)=>{var n=zo(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=Mo(),{Buffer:o}=jo(),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:c}=Lo().codes;function l(e,t,l){let u;if(typeof t==`string`||t instanceof o)return new e({objectMode:!0,...l,read(){this.push(t),this.push(null)}});let d;if(t&&t[i])d=!0,u=t[i]();else if(t&&t[a])d=!1,u=t[a]();else throw new s(`iterable`,[`Iterable`],t);let f=new e({objectMode:!0,highWaterMark:1,...l}),p=!1;f._read=function(){p||(p=!0,h())},f._destroy=function(e,t){r(m(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))};async function m(e){let t=e!=null,n=typeof u.throw==`function`;if(t&&n){let{value:t,done:n}=await u.throw(e);if(await t,n)return}if(typeof u.return==`function`){let{value:e}=await u.return();await e}}async function h(){for(;;){try{let{value:e,done:t}=d?await u.next():u.next();if(t)f.push(null);else{let t=e&&typeof e.then==`function`?await e:e;if(t===null)throw p=!1,new c;if(f.push(t))continue;p=!1}}catch(e){f.destroy(e)}break}}return f}t.exports=l})),Qo=i(((e,t)=>{var n=zo(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:c,ObjectSetPrototypeOf:l,Promise:u,SafeSet:d,SymbolAsyncIterator:f,Symbol:p}=Mo();t.exports=L,L.ReadableState=I;var{EventEmitter:m}=Wo(),{Stream:h,prependListener:g}=$(),{Buffer:_}=jo(),{addAbortSignal:v}=Go(),y=Vo(),b=No().debuglog(`stream`,e=>{b=e}),x=Ko(),S=Uo(),{getHighWaterMark:C,getDefaultHighWaterMark:w}=qo(),{aggregateTwoErrors:T,codes:{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_OUT_OF_RANGE:O,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:A}}=Lo(),{validateObject:j}=Ro(),M=p(`kPaused`),{StringDecoder:N}=Xo(),P=Zo();l(L.prototype,h.prototype),l(L,h);var ee=()=>{},{errorOrDestroy:F}=S;function I(e,t,n){typeof n!=`boolean`&&(n=t instanceof ts()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.readableObjectMode)),this.highWaterMark=e?C(this,e,`readableHighWaterMark`,n):w(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[M]=null,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new N(e.encoding),this.encoding=e.encoding)}function L(e){if(!(this instanceof L))return new L(e);let t=this instanceof ts();this._readableState=new I(e,this,t),e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&!t&&v(e.signal,this)),h.call(this,e),S.construct(this,()=>{this._readableState.needReadable&&ae(this,this._readableState)})}L.prototype.destroy=S.destroy,L.prototype._undestroy=S.undestroy,L.prototype._destroy=function(e,t){t(e)},L.prototype[m.captureRejectionSymbol]=function(e){this.destroy(e)},L.prototype.push=function(e,t){return R(this,e,t,!1)},L.prototype.unshift=function(e,t){return R(this,e,t,!0)};function R(e,t,n,r){b(`readableAddChunk`,t);let i=e._readableState,a;if(i.objectMode||(typeof t==`string`?(n||=i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=_.from(t,n).toString(i.encoding):(t=_.from(t,n),n=``))):t instanceof _?n=``:h._isUint8Array(t)?(t=h._uint8ArrayToBuffer(t),n=``):t!=null&&(a=new E(`chunk`,[`string`,`Buffer`,`Uint8Array`],t))),a)F(e,a);else if(t===null)i.reading=!1,B(e,i);else if(i.objectMode||t&&t.length>0)if(r)if(i.endEmitted)F(e,new A);else if(i.destroyed||i.errored)return!1;else z(e,i,t,!0);else if(i.ended)F(e,new k);else if(i.destroyed||i.errored)return!1;else i.reading=!1,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?z(e,i,t,!1):ae(e,i)):z(e,i,t,!1);else r||(i.reading=!1,ae(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function z(e,t,n,r){t.flowing&&t.length===0&&!t.sync&&e.listenerCount(`data`)>0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&V(e)),ae(e,t)}L.prototype.isPaused=function(){let e=this._readableState;return e[M]===!0||e.flowing===!1},L.prototype.setEncoding=function(e){let t=new N(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r=``;for(let e of n)r+=t.write(e);return n.clear(),r!==``&&n.push(r),this._readableState.length=r.length,this};var te=1073741824;function ne(e){if(e>te)throw new O(`size`,`<= 1GiB`,e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}function re(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}L.prototype.read=function(e){b(`read`,e),e===void 0?e=NaN:i(e)||(e=o(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=ne(e)),e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return b(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?G(this):V(this),null;if(e=re(e,t),e===0&&t.ended)return t.length===0&&G(this),null;let r=t.needReadable;if(b(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,b(`length less than watermark`,r)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)r=!1,b(`reading, ended or constructing`,r);else if(r){b(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0);try{this._read(t.highWaterMark)}catch(e){F(this,e)}t.sync=!1,t.reading||(e=re(n,t))}let a;return a=e>0?W(e,t):null,a===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),a!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(`data`,a)),a};function B(e,t){if(b(`onEofChunk`),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?V(e):(t.needReadable=!1,t.emittedReadable=!0,ie(e))}}function V(e){let t=e._readableState;b(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b(`emitReadable`,t.flowing),t.emittedReadable=!0,n.nextTick(ie,e))}function ie(e){let t=e._readableState;b(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ue(e)}function ae(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(H,e,t))}function H(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){let n=t.length;if(b(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}L.prototype._read=function(e){throw new D(`_read()`)},L.prototype.pipe=function(e,t){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),b(`pipe count=%d opts=%j`,i.pipes.length,t);let a=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr?s:v;i.endEmitted?n.nextTick(a):r.once(`end`,a),e.on(`unpipe`,o);function o(e,t){b(`onunpipe`),e===r&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,u())}function s(){b(`onend`),e.end()}let c,l=!1;function u(){b(`cleanup`),e.removeListener(`close`,h),e.removeListener(`finish`,_),c&&e.removeListener(`drain`,c),e.removeListener(`error`,m),e.removeListener(`unpipe`,o),r.removeListener(`end`,s),r.removeListener(`end`,v),r.removeListener(`data`,p),l=!0,c&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&c()}function f(){l||(i.pipes.length===1&&i.pipes[0]===e?(b(`false write response, pause`,0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(b(`false write response, pause`,i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),r.pause()),c||(c=oe(r,e),e.on(`drain`,c))}r.on(`data`,p);function p(t){b(`ondata`);let n=e.write(t);b(`dest.write`,n),n===!1&&f()}function m(t){if(b(`onerror`,t),v(),e.removeListener(`error`,m),e.listenerCount(`error`)===0){let n=e._writableState||e._readableState;n&&!n.errorEmitted?F(e,t):e.emit(`error`,t)}}g(e,`error`,m);function h(){e.removeListener(`finish`,_),v()}e.once(`close`,h);function _(){b(`onfinish`),e.removeListener(`close`,h),v()}e.once(`finish`,_);function v(){b(`unpipe`),r.unpipe(e)}return e.emit(`pipe`,r),e.writableNeedDrain===!0?i.flowing&&f():i.flowing||(b(`pipe resume`),r.resume()),e};function oe(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(b(`pipeOnDrain`,1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(b(`pipeOnDrain`,n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&e.listenerCount(`data`)&&e.resume()}}L.prototype.unpipe=function(e){let t=this._readableState,n={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit(`unpipe`,this,{hasUnpiped:!1});return this}let i=r(t.pipes,e);return i===-1?this:(t.pipes.splice(i,1),t.pipes.length===0&&this.pause(),e.emit(`unpipe`,this,n),this)},L.prototype.on=function(e,t){let r=h.prototype.on.call(this,e,t),i=this._readableState;return e===`data`?(i.readableListening=this.listenerCount(`readable`)>0,i.flowing!==!1&&this.resume()):e===`readable`&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,b(`on readable`,i.length,i.reading),i.length?V(this):i.reading||n.nextTick(se,this)),r},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(e,t){let r=h.prototype.removeListener.call(this,e,t);return e===`readable`&&n.nextTick(U,this),r},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(e){let t=h.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&n.nextTick(U,this),t};function U(e){let t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&t[M]===!1?t.flowing=!0:e.listenerCount(`data`)>0?e.resume():t.readableListening||(t.flowing=null)}function se(e){b(`readable nexttick read 0`),e.read(0)}L.prototype.resume=function(){let e=this._readableState;return e.flowing||(b(`resume`),e.flowing=!e.readableListening,ce(this,e)),e[M]=!1,this};function ce(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(le,e,t))}function le(e,t){b(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),ue(e),t.flowing&&!t.reading&&e.read(0)}L.prototype.pause=function(){return b(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(b(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState[M]=!0,this};function ue(e){let t=e._readableState;for(b(`flow`,t.flowing);t.flowing&&e.read()!==null;);}L.prototype.wrap=function(e){let t=!1;e.on(`data`,n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())}),e.on(`end`,()=>{this.push(null)}),e.on(`error`,e=>{F(this,e)}),e.on(`close`,()=>{this.destroy()}),e.on(`destroy`,()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=c(e);for(let t=1;t<n.length;t++){let r=n[t];this[r]===void 0&&typeof e[r]==`function`&&(this[r]=e[r].bind(e))}return this},L.prototype[f]=function(){return de(this)},L.prototype.iterator=function(e){return e!==void 0&&j(e,`options`),de(this,e)};function de(e,t){typeof e.read!=`function`&&(e=L.wrap(e,{objectMode:!0}));let n=fe(e,t);return n.stream=e,n}async function*fe(e,t){let n=ee;function r(t){this===e?(n(),n=ee):n=t}e.on(`readable`,r);let i,a=y(e,{writable:!1},e=>{i=e?T(i,e):null,n(),n=ee});try{for(;;){let t=e.destroyed?null:e.read();if(t!==null)yield t;else if(i)throw i;else if(i===null)return;else await new u(r)}}catch(e){throw i=T(i,e),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?S.destroyer(e,null):(e.off(`readable`,r),a())}}s(L.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(I.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[M]!==!1},set(e){this[M]=!!e}}}),L._fromList=W;function W(e,t){if(t.length===0)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function G(e){let t=e._readableState;b(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(pe,t,e))}function pe(e,t){if(b(`endReadableNT`,e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit(`end`),t.writable&&t.allowHalfOpen===!1)n.nextTick(me,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&t.destroy()}}}function me(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}L.from=function(e,t){return P(L,e,t)};var K;function q(){return K===void 0&&(K={}),K}L.fromWeb=function(e,t){return q().newStreamReadableFromReadableStream(e,t)},L.toWeb=function(e,t){return q().newReadableStreamFromStreamReadable(e,t)},L.wrap=function(e,t){return new L({objectMode:e.readableObjectMode??e.objectMode??!0,...t,destroy(t,n){S.destroyer(e,t),n(t)}}).wrap(e)}})),$o=i(((e,t)=>{var n=zo(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:l,Symbol:u,SymbolHasInstance:d}=Mo();t.exports=N,N.WritableState=j;var{EventEmitter:f}=Wo(),p=$().Stream,{Buffer:m}=jo(),h=Uo(),{addAbortSignal:g}=Go(),{getHighWaterMark:_,getDefaultHighWaterMark:v}=qo(),{ERR_INVALID_ARG_TYPE:y,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:w,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:E,ERR_UNKNOWN_ENCODING:D}=Lo().codes,{errorOrDestroy:O}=h;c(N.prototype,p.prototype),c(N,p);function k(){}var A=u(`kOnFinished`);function j(e,t,n){typeof n!=`boolean`&&(n=t instanceof ts()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?_(this,e,`writableHighWaterMark`,n):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(e&&e.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=L.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[A]=[]}function M(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}j.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},o(j.prototype,`bufferedRequestCount`,{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function N(e){let t=this instanceof ts();if(!t&&!a(N,this))return new N(e);this._writableState=new j(e,this,t),e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final),typeof e.construct==`function`&&(this._construct=e.construct),e.signal&&g(e.signal,this)),p.call(this,e),h.construct(this,()=>{let e=this._writableState;e.writing||ne(this,e),ie(this,e)})}o(N,d,{__proto__:null,value:function(e){return a(this,e)?!0:this===N?e&&e._writableState instanceof j:!1}}),N.prototype.pipe=function(){O(this,new S)};function P(e,t,r,i){let a=e._writableState;if(typeof r==`function`)i=r,r=a.defaultEncoding;else{if(!r)r=a.defaultEncoding;else if(r!==`buffer`&&!m.isEncoding(r))throw new D(r);typeof i!=`function`&&(i=k)}if(t===null)throw new T;if(!a.objectMode)if(typeof t==`string`)a.decodeStrings!==!1&&(t=m.from(t,r),r=`buffer`);else if(t instanceof m)r=`buffer`;else if(p._isUint8Array(t))t=p._uint8ArrayToBuffer(t),r=`buffer`;else throw new y(`chunk`,[`string`,`Buffer`,`Uint8Array`],t);let o;return a.ending?o=new E:a.destroyed&&(o=new C(`write`)),o?(n.nextTick(i,o),O(e,o,!0),o):(a.pendingcb++,ee(e,a,t,r,i))}N.prototype.write=function(e,t,n){return P(this,e,t,n)===!0},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||ne(this,e))},N.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=l(e)),!m.isEncoding(e))throw new D(e);return this._writableState.defaultEncoding=e,this};function ee(e,t,n,r,i){let a=t.objectMode?1:n.length;t.length+=a;let o=t.length<t.highWaterMark;return o||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:i}),t.allBuffers&&r!==`buffer`&&(t.allBuffers=!1),t.allNoop&&i!==k&&(t.allNoop=!1)):(t.writelen=a,t.writecb=i,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),o&&!t.errored&&!t.destroyed}function F(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new C(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function I(e,t,n,r){--t.pendingcb,r(n),te(t),O(e,n)}function L(e,t){let r=e._writableState,i=r.sync,a=r.writecb;if(typeof a!=`function`){O(e,new x);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||=t,e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick(I,e,r,t,a):I(e,r,t,a)):(r.buffered.length>r.bufferedIndex&&ne(e,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===a?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:a,stream:e,state:r},n.nextTick(R,r.afterWriteTickInfo)):z(e,r,1,a))}function R({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,z(e,t,n,r)}function z(e,t,n,r){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`));n-- >0;)t.pendingcb--,r();t.destroyed&&te(t),ie(e,t)}function te(e){if(e.writing)return;for(let t=e.bufferedIndex;t<e.buffered.length;++t){let{chunk:n,callback:r}=e.buffered[t],i=e.objectMode?1:n.length;e.length-=i,r(e.errored??new C(`write`))}let t=e[A].splice(0);for(let n=0;n<t.length;n++)t[n](e.errored??new C(`end`));M(e)}function ne(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:n,bufferedIndex:i,objectMode:a}=t,o=n.length-i;if(!o)return;let s=i;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let i=t.allNoop?k:e=>{for(let t=s;t<n.length;++t)n[t].callback(e)},a=t.allNoop&&s===0?n:r(n,s);a.allBuffers=t.allBuffers,F(e,t,!0,t.length,a,``,i),M(t)}else{do{let{chunk:r,encoding:i,callback:o}=n[s];n[s++]=null,F(e,t,!1,a?1:r.length,r,i,o)}while(s<n.length&&!t.writing);s===n.length?M(t):s>256?(n.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}N.prototype._write=function(e,t,n){if(this._writev)this._writev([{chunk:e,encoding:t}],n);else throw new b(`_write()`)},N.prototype._writev=null,N.prototype.end=function(e,t,r){let a=this._writableState;typeof e==`function`?(r=e,e=null,t=null):typeof t==`function`&&(r=t,t=null);let o;if(e!=null){let n=P(this,e,t);n instanceof i&&(o=n)}return a.corked&&(a.corked=1,this.uncork()),o||(!a.errored&&!a.ending?(a.ending=!0,ie(this,a,!0),a.ended=!0):a.finished?o=new w(`end`):a.destroyed&&(o=new C(`end`))),typeof r==`function`&&(o||a.finished?n.nextTick(r,o):a[A].push(r)),this};function re(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function B(e,t){let r=!1;function i(i){if(r){O(e,i??x());return}if(r=!0,t.pendingcb--,i){let n=t[A].splice(0);for(let e=0;e<n.length;e++)n[e](i);O(e,i,t.sync)}else re(t)&&(t.prefinished=!0,e.emit(`prefinish`),t.pendingcb++,n.nextTick(ae,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}function V(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.finalCalled=!0,B(e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function ie(e,t,r){re(t)&&(V(e,t),t.pendingcb===0&&(r?(t.pendingcb++,n.nextTick((e,t)=>{re(t)?ae(e,t):t.pendingcb--},e,t)):re(t)&&(t.pendingcb++,ae(e,t))))}function ae(e,t){t.pendingcb--,t.finished=!0;let n=t[A].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit(`finish`),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))&&e.destroy()}}s(N.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return e?!e.destroyed&&!e.ending&&e.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var H=h.destroy;N.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[A].length)&&n.nextTick(te,r),H.call(this,e,t),this},N.prototype._undestroy=h.undestroy,N.prototype._destroy=function(e,t){t(e)},N.prototype[f.captureRejectionSymbol]=function(e){this.destroy(e)};var oe;function U(){return oe===void 0&&(oe={}),oe}N.fromWeb=function(e,t){return U().newStreamWritableFromWritableStream(e,t)},N.toWeb=function(e){return U().newWritableStreamFromStreamWritable(e)}})),es=i(((t,n)=>{var r=zo(),i=jo(),{isReadable:a,isWritable:o,isIterable:s,isNodeStream:c,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:d}=Bo(),f=Vo(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:h}}=Lo(),{destroyer:g}=Uo(),_=ts(),v=Qo(),{createDeferredPromise:y}=No(),b=Zo(),x=globalThis.Blob||i.Blob,S=x===void 0?function(e){return!1}:function(e){return e instanceof x},C=globalThis.AbortController||(Io(),e(Po)).AbortController,{FunctionPrototypeCall:w}=Mo(),T=class extends _{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};n.exports=function e(t,n){if(d(t))return t;if(l(t))return D({readable:t});if(u(t))return D({writable:t});if(c(t))return D({writable:!1,readable:!1});if(typeof t==`function`){let{value:e,write:i,final:a,destroy:o}=E(t);if(s(e))return b(T,e,{objectMode:!0,write:i,final:a,destroy:o});let c=e?.then;if(typeof c==`function`){let t,n=w(c,e,e=>{if(e!=null)throw new h(`nully`,`body`,e)},e=>{g(t,e)});return t=new T({objectMode:!0,readable:!1,write:i,final(e){a(async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}})},destroy:o})}throw new h(`Iterable, AsyncIterable or AsyncFunction`,n,e)}if(S(t))return e(t.arrayBuffer());if(s(t))return b(T,t,{objectMode:!0,writable:!1});if(typeof t?.writable==`object`||typeof t?.readable==`object`)return D({readable:t!=null&&t.readable?l(t?.readable)?t?.readable:e(t.readable):void 0,writable:t!=null&&t.writable?u(t?.writable)?t?.writable:e(t.writable):void 0});let i=t?.then;if(typeof i==`function`){let e;return w(i,t,t=>{t!=null&&e.push(t),e.push(null)},t=>{g(e,t)}),e=new T({objectMode:!0,writable:!1,read(){}})}throw new m(n,[`Blob`,`ReadableStream`,`WritableStream`,`Stream`,`Iterable`,`AsyncIterable`,`Function`,`{ readable, writable } pair`,`Promise`],t)};function E(e){let{promise:t,resolve:n}=y(),i=new C,a=i.signal;return{value:e((async function*(){for(;;){let e=t;t=null;let{chunk:i,done:o,cb:s}=await e;if(r.nextTick(s),o)return;if(a.aborted)throw new p(void 0,{cause:a.reason});({promise:t,resolve:n}=y()),yield i}})(),{signal:a}),write(e,t,r){let i=n;n=null,i({chunk:e,done:!1,cb:r})},final(e){let t=n;n=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function D(e){let t=e.readable&&typeof e.readable.read!=`function`?v.wrap(e.readable):e.readable,n=e.writable,r=!!a(t),i=!!o(n),s,c,l,u,d;function m(e){let t=u;u=null,t?t(e):e?d.destroy(e):!r&&!i&&d.destroy()}return d=new T({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(f(n,e=>{i=!1,e&&g(t,e),m(e)}),d._write=function(e,t,r){n.write(e,t)?r():s=r},d._final=function(e){n.end(),c=e},n.on(`drain`,function(){if(s){let e=s;s=null,e()}}),n.on(`finish`,function(){if(c){let e=c;c=null,e()}})),r&&(f(t,e=>{r=!1,e&&g(t,e),m(e)}),t.on(`readable`,function(){if(l){let e=l;l=null,e()}}),t.on(`end`,function(){d.push(null)}),d._read=function(){for(;;){let e=t.read();if(e===null){l=d._read;return}if(!d.push(e))return}}),d._destroy=function(e,r){!e&&u!==null&&(e=new p),l=null,s=null,c=null,u===null?r(e):(u=r,g(n,e),g(t,e))},d}})),ts=i(((e,t)=>{var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=Mo();t.exports=c;var o=Qo(),s=$o();a(c.prototype,o.prototype),a(c,o);{let e=i(s.prototype);for(let t=0;t<e.length;t++){let n=e[t];c.prototype[n]||(c.prototype[n]=s.prototype[n])}}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),s.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}n(c.prototype,{writable:{__proto__:null,...r(s.prototype,`writable`)},writableHighWaterMark:{__proto__:null,...r(s.prototype,`writableHighWaterMark`)},writableObjectMode:{__proto__:null,...r(s.prototype,`writableObjectMode`)},writableBuffer:{__proto__:null,...r(s.prototype,`writableBuffer`)},writableLength:{__proto__:null,...r(s.prototype,`writableLength`)},writableFinished:{__proto__:null,...r(s.prototype,`writableFinished`)},writableCorked:{__proto__:null,...r(s.prototype,`writableCorked`)},writableEnded:{__proto__:null,...r(s.prototype,`writableEnded`)},writableNeedDrain:{__proto__:null,...r(s.prototype,`writableNeedDrain`)},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});var l;function u(){return l===void 0&&(l={}),l}c.fromWeb=function(e,t){return u().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return u().newReadableWritablePairFromDuplex(e)};var d;c.from=function(e){return d||=es(),d(e,`body`)}})),ns=i(((e,t)=>{var{ObjectSetPrototypeOf:n,Symbol:r}=Mo();t.exports=c;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Lo().codes,a=ts(),{getHighWaterMark:o}=qo();n(c.prototype,a.prototype),n(c,a);var s=r(`kCallback`);function c(e){if(!(this instanceof c))return new c(e);let t=e?o(this,e,`readableHighWaterMark`,!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function l(e){typeof this._flush==`function`&&!this.destroyed?this._flush((t,n)=>{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}function u(){this._final!==l&&l.call(this)}c.prototype._final=l,c.prototype._transform=function(e,t,n){throw new i(`_transform()`)},c.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,a=r.length;this._transform(e,t,(e,t)=>{if(e){n(e);return}t!=null&&this.push(t),i.ended||a===r.length||r.length<r.highWaterMark?n():this[s]=n})},c.prototype._read=function(){if(this[s]){let e=this[s];this[s]=null,e()}}})),rs=i(((e,t)=>{var{ObjectSetPrototypeOf:n}=Mo();t.exports=i;var r=ns();n(i.prototype,r.prototype),n(i,r);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),is=i(((t,n)=>{var r=zo(),{ArrayIsArray:i,Promise:a,SymbolAsyncIterator:o}=Mo(),s=Vo(),{once:c}=No(),l=Uo(),u=ts(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:h,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:_}=Lo(),{validateFunction:v,validateAbortSignal:y}=Ro(),{isIterable:b,isReadable:x,isReadableNodeStream:S,isNodeStream:C}=Bo(),w=globalThis.AbortController||(Io(),e(Po)).AbortController,T,E;function D(e,t,n){let r=!1;return e.on(`close`,()=>{r=!0}),{destroy:t=>{r||(r=!0,l.destroyer(e,t||new h(`pipe`)))},cleanup:s(e,{readable:t,writable:n},e=>{r=!e})}}function O(e){return v(e[e.length-1],`streams[stream.length - 1]`),e.pop()}function k(e){if(b(e))return e;if(S(e))return A(e);throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`],e)}async function*A(e){E||=Qo(),yield*E.prototype[o].call(e)}async function j(e,t,n,{end:r}){let i,o=null,c=e=>{if(e&&(i=e),o){let e=o;o=null,e()}},l=()=>new a((e,t)=>{i?t(i):o=()=>{i?t(i):e()}});t.on(`drain`,c);let u=s(t,{readable:!1},c);try{t.writableNeedDrain&&await l();for await(let n of e)t.write(n)||await l();r&&t.end(),await l(),n()}catch(e){n(i===e?e:d(i,e))}finally{u(),t.off(`drain`,c)}}function M(...e){return N(e,c(O(e)))}function N(e,t,n){if(e.length===1&&i(e[0])&&(e=e[0]),e.length<2)throw new m(`streams`);let a=new w,o=a.signal,s=n?.signal,c=[];y(s,`options.signal`);function l(){O(new _)}s?.addEventListener(`abort`,l);let d,h,g=[],v=0;function E(e){O(e,--v===0)}function O(e,n){if(e&&(!d||d.code===`ERR_STREAM_PREMATURE_CLOSE`)&&(d=e),!(!d&&!n)){for(;g.length;)g.shift()(d);s?.removeEventListener(`abort`,l),a.abort(),n&&(d||c.forEach(e=>e()),r.nextTick(t,d,h))}}let A;for(let t=0;t<e.length;t++){let i=e[t],a=t<e.length-1,s=t>0,l=a||n?.end!==!1,d=t===e.length-1;if(C(i)){if(l){let{destroy:e,cleanup:t}=D(i,a,s);g.push(e),x(i)&&d&&c.push(t)}function e(e){e&&e.name!==`AbortError`&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`&&E(e)}i.on(`error`,e),x(i)&&d&&c.push(()=>{i.removeListener(`error`,e)})}if(t===0)if(typeof i==`function`){if(A=i({signal:o}),!b(A))throw new p(`Iterable, AsyncIterable or Stream`,`source`,A)}else A=b(i)||S(i)?i:u.from(i);else if(typeof i==`function`)if(A=k(A),A=i(A,{signal:o}),a){if(!b(A,!0))throw new p(`AsyncIterable`,`transform[${t-1}]`,A)}else{T||=rs();let e=new T({objectMode:!0}),t=A?.then;if(typeof t==`function`)v++,t.call(A,t=>{h=t,t!=null&&e.write(t),l&&e.end(),r.nextTick(E)},t=>{e.destroy(t),r.nextTick(E,t)});else if(b(A,!0))v++,j(A,e,E,{end:l});else throw new p(`AsyncIterable or Promise`,`destination`,A);A=e;let{destroy:n,cleanup:i}=D(A,!1,!0);g.push(n),d&&c.push(i)}else if(C(i)){if(S(A)){v+=2;let e=P(A,i,E,{end:l});x(i)&&d&&c.push(e)}else if(b(A))v++,j(A,i,E,{end:l});else throw new f(`val`,[`Readable`,`Iterable`,`AsyncIterable`],A);A=i}else A=u.from(i)}return(o!=null&&o.aborted||s!=null&&s.aborted)&&r.nextTick(l),A}function P(e,t,n,{end:r}){let i=!1;return t.on(`close`,()=>{i||n(new g)}),e.pipe(t,{end:r}),r?e.once(`end`,()=>{i=!0,t.end()}):n(),s(e,{readable:!0,writable:!1},t=>{let r=e._readableState;t&&t.code===`ERR_STREAM_PREMATURE_CLOSE`&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once(`end`,n).once(`error`,n):n(t)}),s(t,{readable:!1,writable:!0},n)}n.exports={pipelineImpl:N,pipeline:M}})),as=i(((e,t)=>{var{pipeline:n}=is(),r=ts(),{destroyer:i}=Uo(),{isNodeStream:a,isReadable:o,isWritable:s}=Bo(),{AbortError:c,codes:{ERR_INVALID_ARG_VALUE:l,ERR_MISSING_ARGS:u}}=Lo();t.exports=function(...e){if(e.length===0)throw new u(`streams`);if(e.length===1)return r.from(e[0]);let t=[...e];if(typeof e[0]==`function`&&(e[0]=r.from(e[0])),typeof e[e.length-1]==`function`){let t=e.length-1;e[t]=r.from(e[t])}for(let n=0;n<e.length;++n)if(a(e[n])){if(n<e.length-1&&!o(e[n]))throw new l(`streams[${n}]`,t[n],`must be readable`);if(n>0&&!s(e[n]))throw new l(`streams[${n}]`,t[n],`must be writable`)}let d,f,p,m,h;function g(e){let t=m;m=null,t?t(e):e?h.destroy(e):!b&&!y&&h.destroy()}let _=e[0],v=n(e,g),y=!!s(_),b=!!o(v);return h=new r({writableObjectMode:!!(_!=null&&_.writableObjectMode),readableObjectMode:!!(v!=null&&v.writableObjectMode),writable:y,readable:b}),y&&(h._write=function(e,t,n){_.write(e,t)?n():d=n},h._final=function(e){_.end(),f=e},_.on(`drain`,function(){if(d){let e=d;d=null,e()}}),v.on(`finish`,function(){if(f){let e=f;f=null,e()}})),b&&(v.on(`readable`,function(){if(p){let e=p;p=null,e()}}),v.on(`end`,function(){h.push(null)}),h._read=function(){for(;;){let e=v.read();if(e===null){p=h._read;return}if(!h.push(e))return}}),h._destroy=function(e,t){!e&&m!==null&&(e=new c),p=null,d=null,f=null,m===null?t(e):(m=t,i(v,e))},h}})),os=i(((e,t)=>{var{ArrayPrototypePop:n,Promise:r}=Mo(),{isIterable:i,isNodeStream:a}=Bo(),{pipelineImpl:o}=is(),{finished:s}=Vo();function c(...e){return new r((t,r)=>{let s,c,l=e[e.length-1];if(l&&typeof l==`object`&&!a(l)&&!i(l)){let t=n(e);s=t.signal,c=t.end}o(e,(e,n)=>{e?r(e):t(n)},{signal:s,end:c})})}t.exports={finished:s,pipeline:c}})),ss=i(((e,t)=>{var{Buffer:n}=jo(),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=Mo(),{promisify:{custom:o}}=No(),{streamReturningOperators:s,promiseReturningOperators:c}=Ho(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=Lo(),u=as(),{pipeline:d}=is(),{destroyer:f}=Uo(),p=Vo(),m=os(),h=Bo(),g=t.exports=$().Stream;g.isDisturbed=h.isDisturbed,g.isErrored=h.isErrored,g.isReadable=h.isReadable,g.Readable=Qo();for(let e of i(s)){let t=s[e];function n(...e){if(new.target)throw l();return g.Readable.from(a(t,this,e))}r(n,`name`,{__proto__:null,value:t.name}),r(n,`length`,{__proto__:null,value:t.length}),r(g.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let e of i(c)){let t=c[e];function n(...e){if(new.target)throw l();return a(t,this,e)}r(n,`name`,{__proto__:null,value:t.name}),r(n,`length`,{__proto__:null,value:t.length}),r(g.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}g.Writable=$o(),g.Duplex=ts(),g.Transform=ns(),g.PassThrough=rs(),g.pipeline=d;var{addAbortSignal:_}=Go();g.addAbortSignal=_,g.finished=p,g.destroy=f,g.compose=u,r(g,`promises`,{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(d,o,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(p,o,{__proto__:null,enumerable:!0,get(){return m.finished}}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}})),cs=i(((e,t)=>{var n=ss(),r=os(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,`promises`,{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports})),ls=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=cs();function n(e){e=Object.assign({},e);let n=e.array,r=e.encoding,i=r===`buffer`,a=!1;n?a=!(r||i):r||=`utf8`,i&&(r=void 0);let o=0,s=[],c=new t.PassThrough({objectMode:a});return r&&c.setEncoding(r),c.on(`data`,e=>{s.push(e),a?o=s.length:o+=e.length}),c.getBufferedValue=()=>n?s:i?Buffer.concat(s,o):s.join(``),c.getBufferedLength=()=>o,c}e.default=n})),us=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.array=e.buffer=e.getStream=void 0;var n=t(ls());function r(e,t={}){if(!e)return Promise.reject(Error(`Expected a stream`));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer||1/0,i,a,o=new Promise((o,s)=>{let c=e=>{e&&(e.bufferedData=i.getBufferedValue()),s(e)};i=(0,n.default)(t),e.once(`error`,c),e.pipe(i),i.on(`data`,()=>{i.getBufferedLength()>r&&s(Error(`maxBuffer exceeded`))}),i.once(`error`,c),i.on(`end`,o),a=()=>{e.unpipe&&e.unpipe(i)}});return o.then(a,a),o.then(()=>i.getBufferedValue())}e.getStream=r;function i(e,t={}){r(e,Object.assign({},t,{encoding:`buffer`}))}e.buffer=i;function a(e,t={}){r(e,Object.assign({},t,{array:!0}))}e.array=a})),ds=i(((e,t)=>{t.exports={}})),fs=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n=typeof window<`u`&&window.document!==void 0,r=typeof process<`u`&&process.versions!=null&&process.versions.node!=null,i=(typeof self>`u`?`undefined`:t(self))===`object`&&self.constructor&&self.constructor.name===`DedicatedWorkerGlobalScope`,a=typeof window<`u`&&window.name===`nodejs`||typeof navigator<`u`&&(navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),o=typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno!==void 0;e.isBrowser=n,e.isWebWorker=i,e.isNode=r,e.isJsDom=a,e.isDeno=o})),ps=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DefaultMap=void 0,e.DefaultMap=class extends Map{constructor(e,t){super(t),this._defaultFunc=e}get(e){let t=super.get(e);if(t===void 0){if(this.has(e))return t;t=this._defaultFunc(e),this.set(e,t)}return t}update(e,t){let n=t(this.get(e));return this.set(e,n),n}}})),ms=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DefaultMap=e.exceptionToError=e.exceptionToString=e.filterUndefined=e.mapFilterUndefined=e.hasOwnProperty=e.isEnumValue=e.definedMap=e.reduceTwo=e.sleep=e.dontAwait=e.defined=e.assertNever=e.assert=e.panic=e.proveNever=e.proveType=void 0;function t(e){}e.proveType=t;function n(e,t,n){return console.trace(t),n}e.proveNever=n;function r(e=`This should not happen`){throw console.trace(e),Error(e)}e.panic=r;function i(e,t=`Assertion failed`){if(!e)return r(t)}e.assert=i;function a(e,t="`never` happened"){return r(t)}e.assertNever=a;function o(e,t){return e===void 0?r(`Value was undefined but should be defined`+(t===void 0?``:` because: ${t}`)):e}e.defined=o;function s(e){e instanceof Promise&&e.catch(e=>{throw console.trace(`Unhandled error from unawaited promise`,e),e})}e.dontAwait=s;function c(e){return new Promise(t=>{setTimeout(t,e)})}e.sleep=c;function l(e,t,n){return e===void 0?t:t===void 0?e:n(e,t)}e.reduceTwo=l;function u(e,t){if(e!==void 0)return t(e)}e.definedMap=u;function d(e,t){return Object.keys(e).map(t=>e[t]).some(e=>e===t)}e.isEnumValue=d;function f(e,t){return e==null?!1:Object.prototype.hasOwnProperty.call(e,t)}e.hasOwnProperty=f;function p(e,t){let n=[],r=0;for(let i of e){let e=t(i,r);r+=1,e!==void 0&&n.push(e)}return n}e.mapFilterUndefined=p;function m(e){let t=[];for(let n of e)n!==void 0&&t.push(n);return t}e.filterUndefined=m;function h(e){if(e===void 0)return``;try{return e.toString()}catch(e){try{return`Exception can't be stringified: ${h(e)}`}catch{return`Exception can't be stringified`}}}e.exceptionToString=h;function g(e){return e instanceof Error?e:Error(h(e))}e.exceptionToError=g;var _=ps();Object.defineProperty(e,`DefaultMap`,{enumerable:!0,get:function(){return _.DefaultMap}})})),hs=i(((e,t)=>{t.exports=a;var n=/^(?:\w+:)?\/\/(\S+)$/,r=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,i=/^[^\s\.]+\.\S{2,}$/;function a(e){if(typeof e!=`string`)return!1;var t=e.match(n);if(!t)return!1;var a=t[1];return a?!!(r.test(a)||i.test(a)):!1}})),gs=i(((e,t)=>{var n=typeof globalThis<`u`&&globalThis||typeof self<`u`&&self||typeof global<`u`&&global,r=(function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e})();(function(e){(function(t){var n=e!==void 0&&e||typeof self<`u`&&self||typeof global<`u`&&global||{},r={searchParams:`URLSearchParams`in n,iterable:`Symbol`in n&&`iterator`in Symbol,blob:`FileReader`in n&&`Blob`in n&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:`FormData`in n,arrayBuffer:`ArrayBuffer`in n};function i(e){return e&&DataView.prototype.isPrototypeOf(e)}if(r.arrayBuffer)var a=[`[object Int8Array]`,`[object Uint8Array]`,`[object Uint8ClampedArray]`,`[object Int16Array]`,`[object Uint16Array]`,`[object Int32Array]`,`[object Uint32Array]`,`[object Float32Array]`,`[object Float64Array]`],o=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if(typeof e!=`string`&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e===``)throw TypeError(`Invalid character in header field name: "`+e+`"`);return e.toLowerCase()}function c(e){return typeof e!=`string`&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(e.length!=2)throw TypeError(`Headers constructor: expected name/value pair to be length 2, found`+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}u.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+`, `+t:t},u.prototype.delete=function(e){delete this.map[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.map[s(e)]=c(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),l(e)},r.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function d(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError(`Already read`));e.bodyUsed=!0}}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:`utf-8`;return t.readAsText(e,i),n}function h(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join(``)}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e==`string`?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&i(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=``),this.headers.get(`content-type`)||(typeof e==`string`?this.headers.set(`content-type`,`text/plain;charset=UTF-8`):this._bodyBlob&&this._bodyBlob.type?this.headers.set(`content-type`,this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`))},r.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error(`could not read FormData body as blob`);return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(r.blob)return this.blob().then(p);throw Error(`could not read as ArrayBuffer`)},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(h(this._bodyArrayBuffer));if(this._bodyFormData)throw Error(`could not read FormData body as text`);return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}var v=[`CONNECT`,`DELETE`,`GET`,`HEAD`,`OPTIONS`,`PATCH`,`POST`,`PUT`,`TRACE`];function y(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}function b(e,t){if(!(this instanceof b))throw TypeError(`Please use the "new" operator, this DOM object constructor cannot be called as a function.`);t||={};var r=t.body;if(e instanceof b){if(e.bodyUsed)throw TypeError(`Already read`);this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||`same-origin`,(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=y(t.method||this.method||`GET`),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if(`AbortController`in n)return new AbortController().signal}(),this.referrer=null,(this.method===`GET`||this.method===`HEAD`)&&r)throw TypeError(`Body not allowed for GET or HEAD requests`);if(this._initBody(r),(this.method===`GET`||this.method===`HEAD`)&&(t.cache===`no-store`||t.cache===`no-cache`)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,`$1_=`+new Date().getTime());else{var a=/\?/;this.url+=(a.test(this.url)?`&`:`?`)+`_=`+new Date().getTime()}}}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function x(e){var t=new FormData;return e.trim().split(`&`).forEach(function(e){if(e){var n=e.split(`=`),r=n.shift().replace(/\+/g,` `),i=n.join(`=`).replace(/\+/g,` `);t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function S(e){var t=new u;return e.replace(/\r?\n[\t ]+/g,` `).split(`\r`).map(function(e){return e.indexOf(`
925
+ `)===0?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(`:`),r=n.shift().trim();if(r){var i=n.join(`:`).trim();try{t.append(r,i)}catch(e){console.warn(`Response `+e.message)}}}),t}_.call(b.prototype);function C(e,t){if(!(this instanceof C))throw TypeError(`Please use the "new" operator, this DOM object constructor cannot be called as a function.`);if(t||={},this.type=`default`,this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw RangeError(`Failed to construct 'Response': The status provided (0) is outside the range [200, 599].`);this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?``:``+t.statusText,this.headers=new u(t.headers),this.url=t.url||``,this._initBody(e)}_.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:200,statusText:``});return e.ok=!1,e.status=0,e.type=`error`,e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(w.indexOf(t)===-1)throw RangeError(`Invalid status code`);return new C(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,i){return new Promise(function(a,o){var l=new b(e,i);if(l.signal&&l.signal.aborted)return o(new t.DOMException(`Aborted`,`AbortError`));var d=new XMLHttpRequest;function f(){d.abort()}d.onload=function(){var e={statusText:d.statusText,headers:S(d.getAllResponseHeaders()||``)};l.url.indexOf(`file://`)===0&&(d.status<200||d.status>599)?e.status=200:e.status=d.status,e.url=`responseURL`in d?d.responseURL:e.headers.get(`X-Request-URL`);var t=`response`in d?d.response:d.responseText;setTimeout(function(){a(new C(t,e))},0)},d.onerror=function(){setTimeout(function(){o(TypeError(`Network request failed`))},0)},d.ontimeout=function(){setTimeout(function(){o(TypeError(`Network request timed out`))},0)},d.onabort=function(){setTimeout(function(){o(new t.DOMException(`Aborted`,`AbortError`))},0)};function p(e){try{return e===``&&n.location.href?n.location.href:e}catch{return e}}if(d.open(l.method,p(l.url),!0),l.credentials===`include`?d.withCredentials=!0:l.credentials===`omit`&&(d.withCredentials=!1),`responseType`in d&&(r.blob?d.responseType=`blob`:r.arrayBuffer&&(d.responseType=`arraybuffer`)),i&&typeof i.headers==`object`&&!(i.headers instanceof u||n.Headers&&i.headers instanceof n.Headers)){var m=[];Object.getOwnPropertyNames(i.headers).forEach(function(e){m.push(s(e)),d.setRequestHeader(e,c(i.headers[e]))}),l.headers.forEach(function(e,t){m.indexOf(t)===-1&&d.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){d.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener(`abort`,f),d.onreadystatechange=function(){d.readyState===4&&l.signal.removeEventListener(`abort`,f)}),d.send(l._bodyInit===void 0?null:l._bodyInit)})}return T.polyfill=!0,n.fetch||(n.fetch=T,n.Headers=u,n.Request=b,n.Response=C),t.Headers=u,t.Request=b,t.Response=C,t.fetch=T,Object.defineProperty(t,`__esModule`,{value:!0}),t})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),_s=i((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.readFromFileOrURL=e.readableFromFileOrURL=void 0;var o=r(ds()),s=fs(),c=us(),l=ms(),u=bs(),d=hs(),f=a(gs());function p(e){return Array.isArray(e)?e.reduce(function(e,t){if(t!==void 0&&t.length>0){let n=t.indexOf(`:`);if(n<0)return(0,u.panic)(`Could not parse HTTP header "${t}".`);let r=t.slice(0,n).trim();e[r]=t.slice(n+1).trim()}return e},{}):{}}function m(e,t){return i(this,void 0,void 0,function*(){try{if(d(e)){let n=yield(0,f.default)(e,{headers:p(t)});return(0,l.defined)(n.body)}else if(s.isNode){if(e===`-`)return process.stdin;let t=o.lstatSync(e).isSymbolicLink()?o.readlinkSync(e):e;if(o.existsSync(t))return o.createReadStream(t,`utf8`)}}catch(t){return(0,u.messageError)(`MiscReadError`,{fileOrURL:e,message:(0,l.exceptionToString)(t)})}return(0,u.messageError)(`DriverInputFileDoesNotExist`,{filename:e})})}e.readableFromFileOrURL=m;function h(e,t){return i(this,void 0,void 0,function*(){let n=yield m(e,t);try{return yield(0,c.getStream)(n)}catch(t){return(0,u.messageError)(`MiscReadError`,{fileOrURL:e,message:(0,l.exceptionToString)(t)})}})}e.readFromFileOrURL=h})),vs=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.FetchingJSONSchemaStore=void 0;var n=Aa(),r=bs(),i=_s();e.FetchingJSONSchemaStore=class extends n.JSONSchemaStore{constructor(e){super(),this._httpHeaders=e}fetch(e){return t(this,void 0,void 0,function*(){return(0,r.parseJSON)(yield(0,i.readFromFileOrURL)(e,this._httpHeaders),`JSON Schema`,e)})}}})),ys=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sourcesFromPostmanCollection=void 0;var t=Q();function n(e){try{return JSON.parse(e),!0}catch{return!1}}function r(e,r){let i=[],a=[];function o(e){if(typeof e==`object`){if(Array.isArray(e.item)){for(let t of e.item)o(t);typeof e.info==`object`&&typeof e.info.description==`string`&&a.push(e.info.description)}if(typeof e.name==`string`&&Array.isArray(e.response)){let t=[];for(let r of e.response)typeof r==`object`&&typeof r.body==`string`&&n(r.body)&&t.push(r.body);if(t.length>0){let n={name:e.name,samples:t},r=[e.name];if(typeof e.request==`object`){let{method:t,url:n}=e.request;t!==void 0&&typeof n==`object`&&n.raw!==void 0&&r.push(`${t} ${n.raw}`)}typeof e.request==`object`&&typeof e.request.description==`string`&&r.push(e.request.description),n.description=r.length===0?void 0:r.join(`
926
926
 
927
927
  `),i.push(n)}}}}o((0,t.parseJSON)(e,`Postman collection`,r));let s=a.join(`
928
928