@nuxt/devtools-assets 4.0.0-alpha.16 → 4.0.0-alpha.18

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 (131) hide show
  1. package/dist/200.html +1 -1
  2. package/dist/404.html +1 -1
  3. package/dist/_nuxt/__blank-duvhi4s0.js +1 -0
  4. package/dist/_nuxt/{analyze-build-hfw8abvg.js → analyze-build-dxk7tjiy.js} +1 -1
  5. package/dist/_nuxt/assets-cld08ro2.js +6 -0
  6. package/dist/_nuxt/builds/latest.json +1 -1
  7. package/dist/_nuxt/builds/meta/86942b7f-6386-434e-a301-a20a57558faf.json +1 -0
  8. package/dist/_nuxt/{client-emmr75ek.js → client-cyidxu09.js} +1 -1
  9. package/dist/_nuxt/code-diff-pfug60ft.js +8 -0
  10. package/dist/_nuxt/code-snippets-etap53uo.js +1 -0
  11. package/dist/_nuxt/components-bruexj4a.js +1 -0
  12. package/dist/_nuxt/composable-item-exu2bqh0.js +1 -0
  13. package/dist/_nuxt/custom-_name_-fx9q0yyk.js +1 -0
  14. package/dist/_nuxt/{data-schema-button-inlvipju.js → data-schema-button-f6b405qw.js} +1 -1
  15. package/dist/_nuxt/{data-schema-drawer-hs0jic8d.js → data-schema-drawer-dxgx2sok.js} +1 -1
  16. package/dist/_nuxt/{debug-dp329xc5.js → debug-kza8ei0b.js} +1 -1
  17. package/dist/_nuxt/{default-d7mkpxzp.js → default-kwc4wduv.js} +1 -1
  18. package/dist/_nuxt/{duration-display-e2k1v6ig.js → duration-display-cx0hums1.js} +1 -1
  19. package/dist/_nuxt/entry.css-ny90blho.css +1 -0
  20. package/dist/_nuxt/error-404-jbz5s8g8.js +1 -0
  21. package/dist/_nuxt/error-404.css-ejpwqziw.css +1 -0
  22. package/dist/_nuxt/error-500-cx8lxiju.js +1 -0
  23. package/dist/_nuxt/error-500.css-jfxw36zl.css +1 -0
  24. package/dist/_nuxt/{error-d87dhck2.js → error-hs90qh5b.js} +1 -1
  25. package/dist/_nuxt/{filepath-item-czyc9qig.js → filepath-item-jfkmuag3.js} +1 -1
  26. package/dist/_nuxt/full-pcoyx8ep.js +1 -0
  27. package/dist/_nuxt/{help-fab-n8qqfld8.js → help-fab-husn5zkx.js} +1 -1
  28. package/dist/_nuxt/{hooks-f35l9yia.js → hooks-k0xbsxx4.js} +1 -1
  29. package/dist/_nuxt/{imports-f88clfh9.js → imports-f5rpxqxi.js} +1 -1
  30. package/dist/_nuxt/{launch-page-bx84wtxm.js → launch-page-krdr9p9s.js} +1 -1
  31. package/dist/_nuxt/ld8feoqj.js +4 -0
  32. package/dist/_nuxt/modules-g6lf7tbt.js +1 -0
  33. package/dist/_nuxt/nbadge-c0z39lwn.js +1 -0
  34. package/dist/_nuxt/ncard-nledjs9m.js +1 -0
  35. package/dist/_nuxt/ncheckbox-f45numwj.js +1 -0
  36. package/dist/_nuxt/{ncode-block-max8fvq2.js → ncode-block-lo7bvbmn.js} +2 -2
  37. package/dist/_nuxt/ndrawer-hxy5nweo.js +1 -0
  38. package/dist/_nuxt/{ndropdown-mea46jmv.js → ndropdown-hjlja5vm.js} +1 -1
  39. package/dist/_nuxt/nicon-ed7stj2f.js +6 -0
  40. package/dist/_nuxt/nicon-title-bc8690za.js +1 -0
  41. package/dist/_nuxt/{nlink-h24lkinz.js → nlink-o04f6a2k.js} +1 -1
  42. package/dist/_nuxt/nmarkdown-ibxzh9l6.js +1 -0
  43. package/dist/_nuxt/{nnavbar-fz22qxct.js → nnavbar-m0eev8zc.js} +1 -1
  44. package/dist/_nuxt/none-gtecxc1k.js +1 -0
  45. package/dist/_nuxt/npanel-grids-d696wmf0.js +1 -0
  46. package/dist/_nuxt/nsection-block-giwyhvyv.js +1 -0
  47. package/dist/_nuxt/nselect-flx4akj0.js +1 -0
  48. package/dist/_nuxt/{nselect-tabs-e8gq1x3i.js → nselect-tabs-fbhx95rz.js} +1 -1
  49. package/dist/_nuxt/{nsplit-pane-oiwijp9o.js → nsplit-pane-wqr6p2la.js} +1 -1
  50. package/dist/_nuxt/nsplit-pane.css-ejck9ujc.css +1 -0
  51. package/dist/_nuxt/{ntip-d68tdsao.js → ntip-oo98nqyy.js} +1 -1
  52. package/dist/_nuxt/{nuxt-do0kxfjr.js → nuxt-ekhuaqhk.js} +1 -1
  53. package/dist/_nuxt/nuxt-link-d782yzf7.js +1 -0
  54. package/dist/_nuxt/{open-graph-nrj7nswj.js → open-graph-navpqc2c.js} +2 -2
  55. package/dist/_nuxt/overview-kv0fmfnk.js +1 -0
  56. package/dist/_nuxt/pages-kew0035o.js +1 -0
  57. package/dist/_nuxt/{pages-ehsom8mt.js → pages-mw4ap9gs.js} +1 -1
  58. package/dist/_nuxt/{payload-mhs67e9v.js → payload-hjp0verv.js} +1 -1
  59. package/dist/_nuxt/{plugins-l9lulpdj.js → plugins-r4yackt3.js} +1 -1
  60. package/dist/_nuxt/ready-nojqt2hc.js +2 -0
  61. package/dist/_nuxt/{runtime-configs-javheirj.js → runtime-configs-j8ng620p.js} +1 -1
  62. package/dist/_nuxt/server-route-inputs-nejfwmwu.js +1 -0
  63. package/dist/_nuxt/server-routes-fo5k6yv1.js +7 -0
  64. package/dist/_nuxt/server-tasks-nchgmtl9.js +1 -0
  65. package/dist/_nuxt/{settings-hmbqo4jz.js → settings-c4cui6u6.js} +1 -1
  66. package/dist/_nuxt/{stacktrace-list-ovbin0wh.js → stacktrace-list-i7wlo6xl.js} +1 -1
  67. package/dist/_nuxt/{state-components-fdfg09ns.js → state-components-f0u4jm29.js} +1 -1
  68. package/dist/_nuxt/{state-editor-na45t3ei.js → state-editor-eohzeblc.js} +1 -1
  69. package/dist/_nuxt/state-modules-h1enh4jx.js +1 -0
  70. package/dist/_nuxt/{state-tabs-bwxsj7b7.js → state-tabs-f1nalpue.js} +1 -1
  71. package/dist/_nuxt/storage-l7nk970m.js +1 -0
  72. package/dist/_nuxt/{timeline-jm2tbzy5.js → timeline-ia9tekca.js} +2 -2
  73. package/dist/_nuxt/{unhead.-h-zvkou0-mbcanjs1.js → unhead.-h-zvkou0-b7ygyvjk.js} +1 -1
  74. package/dist/_nuxt/utils-mae882d9.js +1 -0
  75. package/dist/_nuxt/vendor/{json-editor-vue-loiyok3w.js → json-editor-vue-gdztbg5h.js} +84 -84
  76. package/dist/_nuxt/vendor/{markdown-exit-mwtenvma.js → markdown-exit-j0g0sjtn.js} +2 -2
  77. package/dist/_nuxt/vendor/{quicktype-core-lz5bp16m.js → quicktype-core-cprepn67.js} +12 -12
  78. package/dist/_nuxt/vendor/shiki-ebpttx2o.js +152 -0
  79. package/dist/_nuxt/vendor/unocss-dy47a456.js +1 -0
  80. package/dist/_nuxt/vendor/unocss.css-ekbl8926.css +1 -0
  81. package/dist/_nuxt/vendor/{vis-bjkylbfi.js → vis-hcwn2u0l.js} +8 -8
  82. package/dist/_nuxt/{virtual-files-boceghp0.js → virtual-files-gj441pwv.js} +1 -1
  83. package/dist/_nuxt/virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-bkuxbmrx.js +1 -0
  84. package/dist/index.html +1 -1
  85. package/dist/manifest.json +1049 -0
  86. package/package.json +1 -1
  87. package/dist/_nuxt/__blank-j37ubijv.js +0 -1
  88. package/dist/_nuxt/assets-hwr10yt2.js +0 -6
  89. package/dist/_nuxt/auth-required-panel-g9ptdxdf.js +0 -1
  90. package/dist/_nuxt/builds/meta/b5d516a8-6a4d-4189-b4e9-709bc74481a8.json +0 -1
  91. package/dist/_nuxt/code-diff-jkix62zp.js +0 -8
  92. package/dist/_nuxt/code-snippets-i5oi04ea.js +0 -1
  93. package/dist/_nuxt/components-m1u1pgwl.js +0 -1
  94. package/dist/_nuxt/composable-item-o8hvl2ba.js +0 -1
  95. package/dist/_nuxt/custom-_name_-gpyd9o5f.js +0 -1
  96. package/dist/_nuxt/dist-2c3gpsw0.js +0 -1
  97. package/dist/_nuxt/dist-gklva25a.js +0 -1
  98. package/dist/_nuxt/e60d9o5m.js +0 -4
  99. package/dist/_nuxt/entry.css-idphumh2.css +0 -1
  100. package/dist/_nuxt/error-404-jbfefpdl.js +0 -1
  101. package/dist/_nuxt/error-404.css-ltf2gptt.css +0 -1
  102. package/dist/_nuxt/error-500-fy346mzn.js +0 -1
  103. package/dist/_nuxt/error-500.css-of6tmx5y.css +0 -1
  104. package/dist/_nuxt/full-j3k0a2z7.js +0 -1
  105. package/dist/_nuxt/modules-hxfo86o4.js +0 -1
  106. package/dist/_nuxt/nbadge-lez490i7.js +0 -1
  107. package/dist/_nuxt/ncard-0yfb2h7y.js +0 -1
  108. package/dist/_nuxt/ncheckbox-nzuxpzla.js +0 -1
  109. package/dist/_nuxt/ndrawer-l1kah2j1.js +0 -1
  110. package/dist/_nuxt/nicon-ce2873sm.js +0 -4
  111. package/dist/_nuxt/nicon-title-kiagu9rq.js +0 -1
  112. package/dist/_nuxt/nmarkdown-j0lf2kiy.js +0 -1
  113. package/dist/_nuxt/none-jcj2ibdg.js +0 -1
  114. package/dist/_nuxt/npanel-grids-bid768ij.js +0 -1
  115. package/dist/_nuxt/nsection-block-dukxxxpp.js +0 -1
  116. package/dist/_nuxt/nselect-klsrsena.js +0 -1
  117. package/dist/_nuxt/nsplit-pane.css-m4u6p021.css +0 -1
  118. package/dist/_nuxt/nuxt-link-mx5g5562.js +0 -1
  119. package/dist/_nuxt/overview-l1ek208c.js +0 -1
  120. package/dist/_nuxt/pages-clkcc6n5.js +0 -1
  121. package/dist/_nuxt/ready-o29w8nwe.js +0 -2
  122. package/dist/_nuxt/server-route-inputs-jke5p1bw.js +0 -1
  123. package/dist/_nuxt/server-routes-i71o6v62.js +0 -7
  124. package/dist/_nuxt/server-tasks-ndbrttya.js +0 -1
  125. package/dist/_nuxt/state-modules-exajrqoq.js +0 -1
  126. package/dist/_nuxt/storage-e83ngq54.js +0 -1
  127. package/dist/_nuxt/unocss-runtime-pdhw1wjh.js +0 -1
  128. package/dist/_nuxt/utils-j2dyj2b6.js +0 -1
  129. package/dist/_nuxt/vendor/shiki-g3svwmfz.js +0 -152
  130. package/dist/_nuxt/vendor/unocss-d02n8ppo.js +0 -3
  131. package/dist/_nuxt/vendor/unocss.css-b4o5vw3g.css +0 -1
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,n,r,t as i}from"../rolldown-runtime-f96lzs6p.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&&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 F(e,t){return C(Array.from(e),([e,n])=>t(n,e))}e.mapSortToArray=F;function I(e,t){return new Map(F(e,t))}e.mapSortBy=I;function L(e){return I(e,(e,t)=>t)}e.mapSortByKey=L;function R(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=R;function z(e,t,n){return e.set(t,n(e.get(t))),e}e.mapUpdateInto=z;function B(e){let t=new Map;for(let n of Object.getOwnPropertyNames(e))t.set(n,e[n]);return t}e.mapFromObject=B;function ee(e){let t={};for(let[n,r]of e)t[n]=r;return t}e.mapToObject=ee;function te(e,t){let n=new Map;for(let r of e)n.set(r,t(r));return n}e.mapFromIterable=te;function ne(e,t){for(let[n,r]of e)if(t(r,n))return r}e.mapFind=ne;function V(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=V;function H(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=H;function re(e,t){for(let n of t)if(!e.has(n))return!1;return!0}e.setIsSuperset=re;function ie(e,t){for(let n of t)for(let t of n)e.add(t);return e}e.setUnionManyInto=ie;function U(e,...t){return ie(e,t)}e.setUnionInto=U;function ae(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}e.setIntersect=ae;function oe(e,t){let n=new Set(e);for(let e of t)n.delete(e);return n}e.setSubtract=oe;function se(...e){let t=new Set;return U(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 pe(e){return e instanceof Set?e:new Set(e)}e.toReadonlySet=pe,e.EqualityMap=class{constructor(){this._map=new Map}set(e,t){let n=me(e)|0;for(;;){let r=this._map.get(n);if(r===void 0){this._map.set(n,[e,t]);return}if(W(e,r[0])){r[1]=t;return}n=n+1|0}}get(e){let t=me(e)|0;for(;;){let n=this._map.get(t);if(n===void 0)return;if(W(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 W(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(!W(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(!W(e[r],t[r]))return!1;return!0}return!1}e.areEqual=W;function me(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+=me(e);return i}if(t instanceof Map){let n=e.hashCodeInit;for(let[e,r]of t)n+=me(e),i+=me(r);return r(n,i)}if(Array.isArray(t)){for(let e of t)i=r(i,me(e));return i}throw Error(`Cannot hash ${t}`)}e.hashCodeOf=me})),o=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,(function(){var e=n.Base64,t=n.Base64={};r(t),t.noConflict=function(){return n.Base64=e,t}})())})(e,(function(e){var t=`3.9.3`,n=t,r=typeof TextDecoder==`function`?new TextDecoder(`utf-8`,{ignoreBOM:!0}):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)}:f,m=typeof Uint8Array.prototype.toBase64==`function`?function(e){return e.toBase64()}: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)}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-\uDFFF]|[^\x00-\x7F]/g,v=function(e){return e.replace(_,g)},y=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|(n=o[e.charAt(a++)])<<6|(r=o[e.charAt(a++)]),n===64?i.push(c(t>>16&255)):r===64?i.push(c(t>>16&255,t>>8&255)):i.push(c(t>>16&255,t>>8&255,t&255));return i.join(``)},E=typeof atob==`function`?function(e){return atob(d(e))}:T,D=typeof Uint8Array.fromBase64==`function`?function(e){return Uint8Array.fromBase64(e)}:function(e){return l(E(e).split(``).map(function(e){return e.charCodeAt(0)}))},O=function(e){return D(A(e))},k=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)})},F=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)})},I=function(){P(),F()};e.Base64={version:t,VERSION:n,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:F,extendBuiltins:I},e.VERSION=n,e.atob=E,e.atobPolyfill=T,e.btoa=p,e.btoaPolyfill=f,e.btou=w,e.decode=j,e.encode=b,e.encodeURI=x,e.encodeURL=x,e.extendBuiltins=I,e.extendString=P,e.extendUint8Array=F,e.fromBase64=j,e.fromUint8Array=h,e.isValid=M,e.toBase64=b,e.toUint8Array=O,e.utob=v,e.version=t}))})),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 F=Array(p);o(F);var I=Array(g);o(I);function L(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 R,z,B;function ee(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function te(e){return e<256?N[e]:N[256+(e>>>7)]}function ne(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function V(e,t,n){e.bi_valid>b-n?(e.bi_buf|=t<<e.bi_valid&65535,ne(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 H(e,t,n){V(e,n[t*2],n[t*2+1])}function re(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function ie(e){e.bi_valid===16?(ne(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 U(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 ae(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]=re(r[s]++,s))}}function oe(){var e,t,n,r,i,a=Array(y+1);for(n=0,r=0;r<p-1;r++)for(F[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(I[r]=i,e=0;e<1<<D[r];e++)N[i++]=r;for(i>>=7;r<g;r++)for(I[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(ae(j,h+1,a),e=0;e<g;e++)M[e*2+1]=5,M[e*2]=re(e,5);R=new L(j,E,m+1,h,y),z=new L(M,D,0,g,y),B=new L([],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?ne(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&&(ne(e,r),ne(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?H(e,i,t):(o=P[i],H(e,o+m+1,t),s=E[o],s!==0&&(i-=F[o],V(e,i,s)),r--,o=te(r),H(e,o,n),s=D[o],s!==0&&(r-=I[o],V(e,r,s)));while(a<e.last_lit);H(e,S,t)}function pe(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],U(e,t),ae(n,c,e.bl_count)}function W(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 me(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 H(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(H(e,w,e.bl_tree),V(e,s-3,3)):(H(e,T,e.bl_tree),V(e,s-11,7)):(a!==i&&(H(e,a,e.bl_tree),s--),H(e,C,e.bl_tree),V(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 he(e){var t;for(W(e,e.dyn_ltree,e.l_desc.max_code),W(e,e.dyn_dtree,e.d_desc.max_code),pe(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 G(e,t,n,r){var i;for(V(e,t-257,5),V(e,n-1,5),V(e,r-4,4),i=0;i<r;i++)V(e,e.bl_tree[k[i]*2+1],3);me(e,e.dyn_ltree,t-1),me(e,e.dyn_dtree,n-1)}function K(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 ge=!1;function _e(e){ge||=(oe(),!0),e.l_desc=new ee(e.dyn_ltree,R),e.d_desc=new ee(e.dyn_dtree,z),e.bl_desc=new ee(e.bl_tree,B),e.bi_buf=0,e.bi_valid=0,se(e)}function q(e,t,n,r){V(e,(c<<1)+ +!!r,3),le(e,t,n,!0)}function ve(e){V(e,l<<1,3),H(e,S,j),ie(e)}function ye(e,t,r,i){var o,s,c=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=K(e)),pe(e,e.l_desc),pe(e,e.d_desc),c=he(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?q(e,t,r,i):e.strategy===n||s===o?(V(e,(l<<1)+ +!!i,3),fe(e,j,M)):(V(e,(u<<1)+ +!!i,3),G(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 be(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[te(t)*2]++),e.last_lit===e.lit_bufsize-1}e._tr_init=_e,e._tr_stored_block=q,e._tr_flush_block=ye,e._tr_tally=be,e._tr_align=ve})),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,F=2*M+1,I=15,L=3,R=258,z=R+L+1,B=32,ee=42,te=69,ne=73,V=91,H=103,re=113,ie=666,U=1,ae=2,oe=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 pe(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 W(e,t){e.pending_buf[e.pending++]=t}function me(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function he(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 G(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-z?e.strstart-(e.w_size-z):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+R,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]){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=R-(f-r),r=f-R,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 K(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-z)){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=he(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=L)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+L-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<L)););}while(e.lookahead<z&&e.strm.avail_in!==0)}function ge(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(K(e),e.lookahead===0&&t===o)return U;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,pe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-z&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=0,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):(e.strstart>e.block_start&&(pe(e,!1),e.strm.avail_out),U)}function _e(e,t){for(var r,i;;){if(e.lookahead<z){if(K(e),e.lookahead<z&&t===o)return U;if(e.lookahead===0)break}if(r=0,e.lookahead>=L&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-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-z&&(e.match_length=G(e,r)),e.match_length>=L){if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-L),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=L){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-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&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=e.strstart<L-1?e.strstart:L-1,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function q(e,t){for(var r,i,a;;){if(e.lookahead<z){if(K(e),e.lookahead<z&&t===o)return U;if(e.lookahead===0)break}if(r=0,e.lookahead>=L&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-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=L-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-z&&(e.match_length=G(e,r),e.match_length<=5&&(e.strategy===S||e.match_length===L&&e.strstart-e.match_start>4096)&&(e.match_length=L-1)),e.prev_length>=L&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-L,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-L),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+L-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=L-1,e.strstart++,i&&(pe(e,!1),e.strm.avail_out===0))return U}else if(e.match_available){if(i=n._tr_tally(e,0,e.window[e.strstart-1]),i&&pe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return U}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<L-1?e.strstart:L-1,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function ve(e,t){for(var r,i,a,s,c=e.window;;){if(e.lookahead<=R){if(K(e),e.lookahead<=R&&t===o)return U;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=L&&e.strstart>0&&(a=e.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){s=e.strstart+R;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=R-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=L?(r=n._tr_tally(e,1,e.match_length-L),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&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=0,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function ye(e,t){for(var r;;){if(e.lookahead===0&&(K(e),e.lookahead===0)){if(t===o)return U;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=0,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function be(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 J=[new be(0,0,0,0,ge),new be(4,4,8,4,_e),new be(4,5,16,8,_e),new be(4,6,32,32,_e),new be(4,4,16,16,q),new be(8,16,32,32,q),new be(8,16,128,128,q),new be(8,32,128,256,q),new be(32,128,258,1024,q),new be(32,258,258,4096,q)];function xe(e){e.window_size=2*e.w_size,de(e.head),e.max_lazy_match=J[e.level].max_lazy,e.good_match=J[e.level].good_length,e.nice_match=J[e.level].nice_length,e.max_chain_length=J[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=L-1,e.match_available=0,e.ins_h=0}function Y(){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(F*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(I+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 X(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?ee:re,e.adler=t.wrap===2?0:1,t.last_flush=o,n._tr_init(t),g)}function Se(e){var t=X(e);return t===g&&xe(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 Y;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+L-1)/L),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===ie&&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===ee){if(a.wrap===2)e.adler=0,W(a,31),W(a,139),W(a,8),a.gzhead?(W(a,+!!a.gzhead.text+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),W(a,a.gzhead.time&255),W(a,a.gzhead.time>>8&255),W(a,a.gzhead.time>>16&255),W(a,a.gzhead.time>>24&255),W(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),W(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(W(a,a.gzhead.extra.length&255),W(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=te):(W(a,0),W(a,0),W(a,0),W(a,0),W(a,0),W(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),W(a,ce),a.status=re);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|=B),l+=31-l%31,a.status=re,me(a,l),a.strstart!==0&&(me(a,e.adler>>>16),me(a,e.adler&65535)),e.adler=1}}if(a.status===te){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));)W(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=ne)}else a.status=ne}if(a.status===ne){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,W(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=V)}else a.status=V}if(a.status===V){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,W(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=H)}else a.status=H}if(a.status===H&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&fe(e),a.pending+2<=a.pending_buf_size&&(W(a,e.adler&255),W(a,e.adler>>8&255),e.adler=0,a.status=re)):a.status=re),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===ie&&e.avail_in!==0)return le(e,b);if(e.avail_in!==0||a.lookahead!==0||t!==o&&a.status!==ie){var d=a.strategy===C?ye(a,t):a.strategy===w?ve(a,t):J[a.level].func(a,t);if((d===oe||d===se)&&(a.status=ie),d===U||d===oe)return e.avail_out===0&&(a.last_flush=-1),g;if(d===ae&&(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?(W(a,e.adler&255),W(a,e.adler>>8&255),W(a,e.adler>>16&255),W(a,e.adler>>24&255),W(a,e.total_in&255),W(a,e.total_in>>8&255),W(a,e.total_in>>16&255),W(a,e.total_in>>24&255)):(me(a,e.adler>>>16),me(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!==ee&&t!==te&&t!==ne&&t!==V&&t!==H&&t!==re&&t!==ie?le(e,v):(e.state=null,t===re?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!==ee||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,K(a);a.lookahead>=L;){o=a.strstart,s=a.lookahead-(L-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+L-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=L-1,K(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=L-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=X,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,a.input=typeof e==`string`?r.string2buf(e):o.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):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)},b.prototype.onData=function(e){this.chunks.push(e)},b.prototype.onEnd=function(e){e===u&&(this.result=this.options.to===`string`?this.chunks.join(``):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)=>{t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;top:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];dolen:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b===0)E[a++]=y&65535;else if(b&16){x=y&65535,b&=15,b&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];dodist:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b&16){if(S=y&65535,b&=15,m<b&&(p+=T[r++]<<m,m+=8,m<b&&(p+=T[r++]<<m,m+=8)),S+=p&(1<<b)-1,S>c){e.msg=`invalid distance too far back`,n.mode=30;break top}if(p>>>=b,m-=b,b=a-o,S>b){if(b=S-b,b>u&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break top}if(C=0,w=f,d===0){if(C+=l-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,b-=d,b<x){x-=b;do E[a++]=f[C++];while(--b);if(C=0,d<x){b=d,x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}}else if(C+=d-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}for(;x>2;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],x>1&&(E[a++]=w[C++]))}else{C=a-S;do E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],x-=3;while(x>2);x&&(E[a++]=E[C++],x>1&&(E[a++]=E[C++]))}}else if(b&64){e.msg=`invalid distance code`,n.mode=30;break top}else{y=g[(y&65535)+(p&(1<<b)-1)];continue dodist}break}}else if(!(b&64)){y=h[(y&65535)+(p&(1<<b)-1)];continue dolen}else if(b&32){n.mode=12;break top}else{e.msg=`invalid literal/length code`,n.mode=30;break top}break}}while(r<i&&a<s);x=m>>3,r-=x,m-=x<<3,p&=(1<<m)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?5+(i-r):5-(r-i),e.avail_out=a<s?257+(s-a):257-(a-s),n.hold=p,n.bits=m}})),_=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,F=null,I=0,L,R=new n.Buf16(r+1),z=new n.Buf16(r+1),B=null,ee=0,te,ne,V;for(b=0;b<=r;b++)R[b]=0;for(x=0;x<m;x++)R[t[s+x]]++;for(w=y,C=r;C>=1&&R[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&&R[S]===0;S++);for(w<S&&(w=S),D=1,b=1;b<=r;b++)if(D<<=1,D-=R[b],D<0)return-1;if(D>0&&(e===o||C!==1))return-1;for(z[1]=0,b=1;b<r;b++)z[b+1]=z[b]+R[b];for(x=0;x<m;x++)t[s+x]!==0&&(_[z[t[s+x]]++]=x);if(e===o?(F=B=_,L=19):e===c?(F=u,I-=257,B=d,ee-=257,L=256):(F=f,B=p,L=-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(;;){te=b-E,_[x]<L?(ne=0,V=_[x]):_[x]>L?(ne=B[ee+_[x]],V=F[I+_[x]]):(ne=96,V=0),A=1<<b-E,j=1<<T,S=j;do j-=A,h[P+(k>>E)+j]=te<<24|ne<<16|V|0;while(j!==0);for(A=1<<b-1;k&A;)A>>=1;if(A===0?k=0:(k&=A-1,k+=A),x++,--R[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-=R[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,F=11,I=12,L=13,R=14,z=15,B=16,ee=17,te=18,ne=19,V=20,H=21,re=22,ie=23,U=24,ae=25,oe=26,se=27,ce=28,le=29,ue=30,de=31,fe=32,pe=852,W=592,me=15;function he(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function G(){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 K(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(pe),n.distcode=n.distdyn=new t.Buf32(W),n.sane=1,n.back=-1,h)}function ge(e){var t;return!e||!e.state?b:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,K(e))}function _e(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,ge(e))}function q(e,t){var n,r;return e?(r=new G,e.state=r,r.window=null,n=_e(e,t),n!==h&&(e.state=null),n):b}function ve(e){return q(e,me)}var ye=!0,be,J;function xe(e){if(ye){var n;for(be=new t.Buf32(512),J=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,be,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;a(d,e.lens,0,32,J,0,e.work,{bits:5}),ye=!1}e.lencode=be,e.lenbits=9,e.distcode=J,e.distbits=5}function Y(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 X(e,s){var l,u,g,_,pe,W,me,G,K,ge,_e,q,ve,ye,be=0,J,X,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===I&&(l.mode=L),pe=e.next_out,g=e.output,me=e.avail_out,_=e.next_in,u=e.input,W=e.avail_in,G=l.hold,K=l.bits,ge=W,_e=me,De=h;inf_leave:for(;;)switch(l.mode){case T:if(l.wrap===0){l.mode=L;break}for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(l.wrap&2&&G===35615){l.check=0,Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0),G=0,K=0,l.mode=E;break}if(l.flags=0,l.head&&(l.head.done=!1),!(l.wrap&1)||(((G&255)<<8)+(G>>8))%31){e.msg=`incorrect header check`,l.mode=ue;break}if((G&15)!==w){e.msg=`unknown compression method`,l.mode=ue;break}if(G>>>=4,K-=4,Ee=(G&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=G&512?P:I,G=0,K=0;break;case E:for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(l.flags=G,(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=G>>8&1),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0)),G=0,K=0,l.mode=D;case D:for(;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.head&&(l.head.time=G),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,Oe[2]=G>>>16&255,Oe[3]=G>>>24&255,l.check=r(l.check,Oe,4,0)),G=0,K=0,l.mode=O;case O:for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.head&&(l.head.xflags=G&255,l.head.os=G>>8),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0)),G=0,K=0,l.mode=k;case k:if(l.flags&1024){for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.length=G,l.head&&(l.head.extra_len=G),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0)),G=0,K=0}else l.head&&(l.head.extra=null);l.mode=A;case A:if(l.flags&1024&&(q=l.length,q>W&&(q=W),q&&(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,_,q,Ee)),l.flags&512&&(l.check=r(l.check,u,q,_)),W-=q,_+=q,l.length-=q),l.length))break inf_leave;l.length=0,l.mode=j;case j:if(l.flags&2048){if(W===0)break inf_leave;q=0;do Ee=u[_+q++],l.head&&Ee&&l.length<65536&&(l.head.name+=String.fromCharCode(Ee));while(Ee&&q<W);if(l.flags&512&&(l.check=r(l.check,u,q,_)),W-=q,_+=q,Ee)break inf_leave}else l.head&&(l.head.name=null);l.length=0,l.mode=M;case M:if(l.flags&4096){if(W===0)break inf_leave;q=0;do Ee=u[_+q++],l.head&&Ee&&l.length<65536&&(l.head.comment+=String.fromCharCode(Ee));while(Ee&&q<W);if(l.flags&512&&(l.check=r(l.check,u,q,_)),W-=q,_+=q,Ee)break inf_leave}else l.head&&(l.head.comment=null);l.mode=N;case N:if(l.flags&512){for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(G!==(l.check&65535)){e.msg=`header crc mismatch`,l.mode=ue;break}G=0,K=0}l.head&&(l.head.hcrc=l.flags>>9&1,l.head.done=!0),e.adler=l.check=0,l.mode=I;break;case P:for(;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}e.adler=l.check=he(G),G=0,K=0,l.mode=F;case F:if(l.havedict===0)return e.next_out=pe,e.avail_out=me,e.next_in=_,e.avail_in=W,l.hold=G,l.bits=K,y;e.adler=l.check=1,l.mode=I;case I:if(s===p||s===m)break inf_leave;case L:if(l.last){G>>>=K&7,K-=K&7,l.mode=se;break}for(;K<3;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}switch(l.last=G&1,G>>>=1,--K,G&3){case 0:l.mode=R;break;case 1:if(xe(l),l.mode=V,s===m){G>>>=2,K-=2;break inf_leave}break;case 2:l.mode=ee;break;case 3:e.msg=`invalid block type`,l.mode=ue}G>>>=2,K-=2;break;case R:for(G>>>=K&7,K-=K&7;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if((G&65535)!=(G>>>16^65535)){e.msg=`invalid stored block lengths`,l.mode=ue;break}if(l.length=G&65535,G=0,K=0,l.mode=z,s===m)break inf_leave;case z:l.mode=B;case B:if(q=l.length,q){if(q>W&&(q=W),q>me&&(q=me),q===0)break inf_leave;t.arraySet(g,u,_,q,pe),W-=q,_+=q,me-=q,pe+=q,l.length-=q;break}l.mode=I;break;case ee:for(;K<14;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(l.nlen=(G&31)+257,G>>>=5,K-=5,l.ndist=(G&31)+1,G>>>=5,K-=5,l.ncode=(G&15)+4,G>>>=4,K-=4,l.nlen>286||l.ndist>30){e.msg=`too many length or distance symbols`,l.mode=ue;break}l.have=0,l.mode=te;case te:for(;l.have<l.ncode;){for(;K<3;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.lens[je[l.have++]]=G&7,G>>>=3,K-=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=ne;case ne:for(;l.have<l.nlen+l.ndist;){for(;be=l.lencode[G&(1<<l.lenbits)-1],J=be>>>24,X=be>>>16&255,Se=be&65535,!(J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(Se<16)G>>>=J,K-=J,l.lens[l.have++]=Se;else{if(Se===16){for(Ae=J+2;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(G>>>=J,K-=J,l.have===0){e.msg=`invalid bit length repeat`,l.mode=ue;break}Ee=l.lens[l.have-1],q=3+(G&3),G>>>=2,K-=2}else if(Se===17){for(Ae=J+3;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=J,K-=J,Ee=0,q=3+(G&7),G>>>=3,K-=3}else{for(Ae=J+7;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=J,K-=J,Ee=0,q=11+(G&127),G>>>=7,K-=7}if(l.have+q>l.nlen+l.ndist){e.msg=`invalid bit length repeat`,l.mode=ue;break}for(;q--;)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=V,s===m)break inf_leave;case V:l.mode=H;case H:if(W>=6&&me>=258){e.next_out=pe,e.avail_out=me,e.next_in=_,e.avail_in=W,l.hold=G,l.bits=K,i(e,_e),pe=e.next_out,g=e.output,me=e.avail_out,_=e.next_in,u=e.input,W=e.avail_in,G=l.hold,K=l.bits,l.mode===I&&(l.back=-1);break}for(l.back=0;be=l.lencode[G&(1<<l.lenbits)-1],J=be>>>24,X=be>>>16&255,Se=be&65535,!(J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(X&&!(X&240)){for(Ce=J,we=X,Te=Se;be=l.lencode[Te+((G&(1<<Ce+we)-1)>>Ce)],J=be>>>24,X=be>>>16&255,Se=be&65535,!(Ce+J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=Ce,K-=Ce,l.back+=Ce}if(G>>>=J,K-=J,l.back+=J,l.length=Se,X===0){l.mode=oe;break}if(X&32){l.back=-1,l.mode=I;break}if(X&64){e.msg=`invalid literal/length code`,l.mode=ue;break}l.extra=X&15,l.mode=re;case re:if(l.extra){for(Ae=l.extra;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.length+=G&(1<<l.extra)-1,G>>>=l.extra,K-=l.extra,l.back+=l.extra}l.was=l.length,l.mode=ie;case ie:for(;be=l.distcode[G&(1<<l.distbits)-1],J=be>>>24,X=be>>>16&255,Se=be&65535,!(J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(!(X&240)){for(Ce=J,we=X,Te=Se;be=l.distcode[Te+((G&(1<<Ce+we)-1)>>Ce)],J=be>>>24,X=be>>>16&255,Se=be&65535,!(Ce+J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=Ce,K-=Ce,l.back+=Ce}if(G>>>=J,K-=J,l.back+=J,X&64){e.msg=`invalid distance code`,l.mode=ue;break}l.offset=Se,l.extra=X&15,l.mode=U;case U:if(l.extra){for(Ae=l.extra;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.offset+=G&(1<<l.extra)-1,G>>>=l.extra,K-=l.extra,l.back+=l.extra}if(l.offset>l.dmax){e.msg=`invalid distance too far back`,l.mode=ue;break}l.mode=ae;case ae:if(me===0)break inf_leave;if(q=_e-me,l.offset>q){if(q=l.offset-q,q>l.whave&&l.sane){e.msg=`invalid distance too far back`,l.mode=ue;break}q>l.wnext?(q-=l.wnext,ve=l.wsize-q):ve=l.wnext-q,q>l.length&&(q=l.length),ye=l.window}else ye=g,ve=pe-l.offset,q=l.length;q>me&&(q=me),me-=q,l.length-=q;do g[pe++]=ye[ve++];while(--q);l.length===0&&(l.mode=H);break;case oe:if(me===0)break inf_leave;g[pe++]=l.length,me--,l.mode=H;break;case se:if(l.wrap){for(;K<32;){if(W===0)break inf_leave;W--,G|=u[_++]<<K,K+=8}if(_e-=me,e.total_out+=_e,l.total+=_e,_e&&(e.adler=l.check=l.flags?r(l.check,g,_e,pe-_e):n(l.check,g,_e,pe-_e)),_e=me,(l.flags?G:he(G))!==l.check){e.msg=`incorrect data check`,l.mode=ue;break}G=0,K=0}l.mode=ce;case ce:if(l.wrap&&l.flags){for(;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(G!==(l.total&4294967295)){e.msg=`incorrect length check`,l.mode=ue;break}G=0,K=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=pe,e.avail_out=me,e.next_in=_,e.avail_in=W,l.hold=G,l.bits=K,(l.wsize||_e!==e.avail_out&&l.mode<ue&&(l.mode<se||s!==f))&&Y(e,e.output,e.next_out,_e-e.avail_out)?(l.mode=de,S):(ge-=e.avail_in,_e-=e.avail_out,e.total_in+=ge,e.total_out+=_e,l.total+=_e,l.wrap&&_e&&(e.adler=l.check=l.flags?r(l.check,g,_e,e.next_out-_e):n(l.check,g,_e,e.next_out-_e)),e.data_type=l.bits+(l.last?64:0)+(l.mode===I?128:0)+(l.mode===V||l.mode===z?256:0),(ge===0&&_e===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!==F)?b:i.mode===F&&(a=1,a=n(a,t,r,0),a!==i.check)?x:(o=Y(e,t,r,r),o?(i.mode=de,S):(i.havedict=1,h))}e.inflateReset=ge,e.inflateReset2=_e,e.inflateResetKeep=K,e.inflateInit=ve,e.inflateInit2=q,e.inflate=X,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,o.input=typeof e==`string`?r.binstring2buf(e):l.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):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)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===i.Z_OK&&(this.result=this.options.to===`string`?this.chunks.join(``):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,F,I,L,R,z,B=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,F=e=>!!e&&typeof e==`object`&&e[M]===O,I=e=>!!e&&typeof e==`object`&&e[M]===k,L=e=>!!e&&typeof e==`object`&&e[M]===A,R=e=>!!e&&typeof e==`object`&&e[M]===j,z=e=>(L(e)||w(e))&&!!e.anchor}));function ee(e,t){let n=H(t);P(e)?te(null,e.contents,n,Object.freeze([e]))===oe&&(e.contents=null):te(null,e,n,Object.freeze([]))}function te(e,t,n,r){let i=re(e,t,n,r);if(T(i)||I(i))return ie(e,r,i),te(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=te(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===U)return U;else i===oe&&(t.items.splice(e,1),--e)}}else if(I(t)){r=Object.freeze(r.concat(t));let e=te(`key`,t.key,n,r);if(e===U)return U;e===oe&&(t.key=null);let i=te(`value`,t.value,n,r);if(i===U)return U;i===oe&&(t.value=null)}}return i}async function ne(e,t){let n=H(t);P(e)?await V(null,e.contents,n,Object.freeze([e]))===oe&&(e.contents=null):await V(null,e,n,Object.freeze([]))}async function V(e,t,n,r){let i=await re(e,t,n,r);if(T(i)||I(i))return ie(e,r,i),V(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 V(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===U)return U;else i===oe&&(t.items.splice(e,1),--e)}}else if(I(t)){r=Object.freeze(r.concat(t));let e=await V(`key`,t.key,n,r);if(e===U)return U;e===oe&&(t.key=null);let i=await V(`value`,t.value,n,r);if(i===U)return U;i===oe&&(t.value=null)}}return i}function H(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 re(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(F(t))return n.Map?.(e,t,r);if(R(t))return n.Seq?.(e,t,r);if(I(t))return n.Pair?.(e,t,r);if(L(t))return n.Scalar?.(e,t,r);if(N(t))return n.Alias?.(e,t,r)}function ie(e,t,n){let r=t[t.length-1];if(w(r))r.items[e]=n;else if(I(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 U,ae,oe,se=n((()=>{B(),U=Symbol(`break visit`),ae=Symbol(`skip children`),oe=Symbol(`remove node`),ee.BREAK=U,ee.SKIP=ae,ee.REMOVE=oe,ne.BREAK=U,ne.SKIP=ae,ne.REMOVE=oe})),ce,le,ue,de=n((()=>{B(),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)}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={};ee(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-f96lzs6p.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&&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 F(e,t){return C(Array.from(e),([e,n])=>t(n,e))}e.mapSortToArray=F;function I(e,t){return new Map(F(e,t))}e.mapSortBy=I;function L(e){return I(e,(e,t)=>t)}e.mapSortByKey=L;function R(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=R;function z(e,t,n){return e.set(t,n(e.get(t))),e}e.mapUpdateInto=z;function B(e){let t=new Map;for(let n of Object.getOwnPropertyNames(e))t.set(n,e[n]);return t}e.mapFromObject=B;function ee(e){let t={};for(let[n,r]of e)t[n]=r;return t}e.mapToObject=ee;function te(e,t){let n=new Map;for(let r of e)n.set(r,t(r));return n}e.mapFromIterable=te;function ne(e,t){for(let[n,r]of e)if(t(r,n))return r}e.mapFind=ne;function V(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=V;function H(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=H;function re(e,t){for(let n of t)if(!e.has(n))return!1;return!0}e.setIsSuperset=re;function ie(e,t){for(let n of t)for(let t of n)e.add(t);return e}e.setUnionManyInto=ie;function U(e,...t){return ie(e,t)}e.setUnionInto=U;function ae(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}e.setIntersect=ae;function oe(e,t){let n=new Set(e);for(let e of t)n.delete(e);return n}e.setSubtract=oe;function se(...e){let t=new Set;return U(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 pe(e){return e instanceof Set?e:new Set(e)}e.toReadonlySet=pe,e.EqualityMap=class{constructor(){this._map=new Map}set(e,t){let n=me(e)|0;for(;;){let r=this._map.get(n);if(r===void 0){this._map.set(n,[e,t]);return}if(W(e,r[0])){r[1]=t;return}n=n+1|0}}get(e){let t=me(e)|0;for(;;){let n=this._map.get(t);if(n===void 0)return;if(W(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 W(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(!W(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(!W(e[r],t[r]))return!1;return!0}return!1}e.areEqual=W;function me(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+=me(e);return i}if(t instanceof Map){let n=e.hashCodeInit;for(let[e,r]of t)n+=me(e),i+=me(r);return r(n,i)}if(Array.isArray(t)){for(let e of t)i=r(i,me(e));return i}throw Error(`Cannot hash ${t}`)}e.hashCodeOf=me})),o=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,(function(){var e=n.Base64,t=n.Base64={};r(t),t.noConflict=function(){return n.Base64=e,t}})())})(e,(function(e){var t=`3.9.3`,n=t,r=typeof TextDecoder==`function`?new TextDecoder(`utf-8`,{ignoreBOM:!0}):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)}:f,m=typeof Uint8Array.prototype.toBase64==`function`?function(e){return e.toBase64()}: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)}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-\uDFFF]|[^\x00-\x7F]/g,v=function(e){return e.replace(_,g)},y=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|(n=o[e.charAt(a++)])<<6|(r=o[e.charAt(a++)]),n===64?i.push(c(t>>16&255)):r===64?i.push(c(t>>16&255,t>>8&255)):i.push(c(t>>16&255,t>>8&255,t&255));return i.join(``)},E=typeof atob==`function`?function(e){return atob(d(e))}:T,D=typeof Uint8Array.fromBase64==`function`?function(e){return Uint8Array.fromBase64(e)}:function(e){return l(E(e).split(``).map(function(e){return e.charCodeAt(0)}))},O=function(e){return D(A(e))},k=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)})},F=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)})},I=function(){P(),F()};e.Base64={version:t,VERSION:n,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:F,extendBuiltins:I},e.VERSION=n,e.atob=E,e.atobPolyfill=T,e.btoa=p,e.btoaPolyfill=f,e.btou=w,e.decode=j,e.encode=b,e.encodeURI=x,e.encodeURL=x,e.extendBuiltins=I,e.extendString=P,e.extendUint8Array=F,e.fromBase64=j,e.fromUint8Array=h,e.isValid=M,e.toBase64=b,e.toUint8Array=O,e.utob=v,e.version=t}))})),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 F=Array(p);o(F);var I=Array(g);o(I);function L(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 R,z,B;function ee(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function te(e){return e<256?N[e]:N[256+(e>>>7)]}function ne(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function V(e,t,n){e.bi_valid>b-n?(e.bi_buf|=t<<e.bi_valid&65535,ne(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 H(e,t,n){V(e,n[t*2],n[t*2+1])}function re(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function ie(e){e.bi_valid===16?(ne(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 U(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 ae(e,t,n){for(var r=Array(y+1),i=0,a=1,o;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]=re(r[s]++,s))}}function oe(){var e,t,n,r,i,a=Array(y+1);for(n=0,r=0;r<p-1;r++)for(F[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(I[r]=i,e=0;e<1<<D[r];e++)N[i++]=r;for(i>>=7;r<g;r++)for(I[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(ae(j,h+1,a),e=0;e<g;e++)M[e*2+1]=5,M[e*2]=re(e,5);R=new L(j,E,m+1,h,y),z=new L(M,D,0,g,y),B=new L([],O,0,_,x)}function se(e){for(var 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?ne(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&&(ne(e,r),ne(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?H(e,i,t):(o=P[i],H(e,o+m+1,t),s=E[o],s!==0&&(i-=F[o],V(e,i,s)),r--,o=te(r),H(e,o,n),s=D[o],s!==0&&(r-=I[o],V(e,r,s)));while(a<e.last_lit);H(e,S,t)}function pe(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],U(e,t),ae(n,c,e.bl_count)}function W(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 me(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 H(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(H(e,w,e.bl_tree),V(e,s-3,3)):(H(e,T,e.bl_tree),V(e,s-11,7)):(a!==i&&(H(e,a,e.bl_tree),s--),H(e,C,e.bl_tree),V(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 he(e){var t;for(W(e,e.dyn_ltree,e.l_desc.max_code),W(e,e.dyn_dtree,e.d_desc.max_code),pe(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 G(e,t,n,r){var i;for(V(e,t-257,5),V(e,n-1,5),V(e,r-4,4),i=0;i<r;i++)V(e,e.bl_tree[k[i]*2+1],3);me(e,e.dyn_ltree,t-1),me(e,e.dyn_dtree,n-1)}function K(e){for(var t=4093624447,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 ge=!1;function _e(e){ge||=(oe(),!0),e.l_desc=new ee(e.dyn_ltree,R),e.d_desc=new ee(e.dyn_dtree,z),e.bl_desc=new ee(e.bl_tree,B),e.bi_buf=0,e.bi_valid=0,se(e)}function q(e,t,n,r){V(e,(c<<1)+ +!!r,3),le(e,t,n,!0)}function ve(e){V(e,l<<1,3),H(e,S,j),ie(e)}function ye(e,t,r,i){var o,s,c=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=K(e)),pe(e,e.l_desc),pe(e,e.d_desc),c=he(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?q(e,t,r,i):e.strategy===n||s===o?(V(e,(l<<1)+ +!!i,3),fe(e,j,M)):(V(e,(u<<1)+ +!!i,3),G(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 be(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[te(t)*2]++),e.last_lit===e.lit_bufsize-1}e._tr_init=_e,e._tr_stored_block=q,e._tr_flush_block=ye,e._tr_tally=be,e._tr_align=ve})),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,F=2*M+1,I=15,L=3,R=258,z=R+L+1,B=32,ee=42,te=69,ne=73,V=91,H=103,re=113,ie=666,U=1,ae=2,oe=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 pe(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 W(e,t){e.pending_buf[e.pending++]=t}function me(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function he(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 G(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-z?e.strstart-(e.w_size-z):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+R,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]){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=R-(f-r),r=f-R,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 K(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-z)){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=he(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=L)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+L-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<L)););}while(e.lookahead<z&&e.strm.avail_in!==0)}function ge(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(K(e),e.lookahead===0&&t===o)return U;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,pe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-z&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=0,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):(e.strstart>e.block_start&&(pe(e,!1),e.strm.avail_out),U)}function _e(e,t){for(var r,i;;){if(e.lookahead<z){if(K(e),e.lookahead<z&&t===o)return U;if(e.lookahead===0)break}if(r=0,e.lookahead>=L&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-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-z&&(e.match_length=G(e,r)),e.match_length>=L){if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-L),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=L){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-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&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=e.strstart<L-1?e.strstart:L-1,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function q(e,t){for(var r,i,a;;){if(e.lookahead<z){if(K(e),e.lookahead<z&&t===o)return U;if(e.lookahead===0)break}if(r=0,e.lookahead>=L&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+L-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=L-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-z&&(e.match_length=G(e,r),e.match_length<=5&&(e.strategy===S||e.match_length===L&&e.strstart-e.match_start>4096)&&(e.match_length=L-1)),e.prev_length>=L&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-L,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-L),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+L-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=L-1,e.strstart++,i&&(pe(e,!1),e.strm.avail_out===0))return U}else if(e.match_available){if(i=n._tr_tally(e,0,e.window[e.strstart-1]),i&&pe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return U}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<L-1?e.strstart:L-1,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function ve(e,t){for(var r,i,a,s,c=e.window;;){if(e.lookahead<=R){if(K(e),e.lookahead<=R&&t===o)return U;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=L&&e.strstart>0&&(a=e.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){s=e.strstart+R;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=R-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=L?(r=n._tr_tally(e,1,e.match_length-L),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&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=0,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function ye(e,t){for(var r;;){if(e.lookahead===0&&(K(e),e.lookahead===0)){if(t===o)return U;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(pe(e,!1),e.strm.avail_out===0))return U}return e.insert=0,t===m?(pe(e,!0),e.strm.avail_out===0?oe:se):e.last_lit&&(pe(e,!1),e.strm.avail_out===0)?U:ae}function be(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 J=[new be(0,0,0,0,ge),new be(4,4,8,4,_e),new be(4,5,16,8,_e),new be(4,6,32,32,_e),new be(4,4,16,16,q),new be(8,16,32,32,q),new be(8,16,128,128,q),new be(8,32,128,256,q),new be(32,128,258,1024,q),new be(32,258,258,4096,q)];function xe(e){e.window_size=2*e.w_size,de(e.head),e.max_lazy_match=J[e.level].max_lazy,e.good_match=J[e.level].good_length,e.nice_match=J[e.level].nice_length,e.max_chain_length=J[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=L-1,e.match_available=0,e.ins_h=0}function Y(){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(F*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(I+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 X(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?ee:re,e.adler=t.wrap===2?0:1,t.last_flush=o,n._tr_init(t),g)}function Se(e){var t=X(e);return t===g&&xe(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 Y;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+L-1)/L),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===ie&&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===ee){if(a.wrap===2)e.adler=0,W(a,31),W(a,139),W(a,8),a.gzhead?(W(a,+!!a.gzhead.text+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),W(a,a.gzhead.time&255),W(a,a.gzhead.time>>8&255),W(a,a.gzhead.time>>16&255),W(a,a.gzhead.time>>24&255),W(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),W(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(W(a,a.gzhead.extra.length&255),W(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=te):(W(a,0),W(a,0),W(a,0),W(a,0),W(a,0),W(a,a.level===9?2:a.strategy>=C||a.level<2?4:0),W(a,ce),a.status=re);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|=B),l+=31-l%31,a.status=re,me(a,l),a.strstart!==0&&(me(a,e.adler>>>16),me(a,e.adler&65535)),e.adler=1}}if(a.status===te){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));)W(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=ne)}else a.status=ne}if(a.status===ne){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,W(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=V)}else a.status=V}if(a.status===V){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,W(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=H)}else a.status=H}if(a.status===H&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&fe(e),a.pending+2<=a.pending_buf_size&&(W(a,e.adler&255),W(a,e.adler>>8&255),e.adler=0,a.status=re)):a.status=re),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===ie&&e.avail_in!==0)return le(e,b);if(e.avail_in!==0||a.lookahead!==0||t!==o&&a.status!==ie){var d=a.strategy===C?ye(a,t):a.strategy===w?ve(a,t):J[a.level].func(a,t);if((d===oe||d===se)&&(a.status=ie),d===U||d===oe)return e.avail_out===0&&(a.last_flush=-1),g;if(d===ae&&(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?(W(a,e.adler&255),W(a,e.adler>>8&255),W(a,e.adler>>16&255),W(a,e.adler>>24&255),W(a,e.total_in&255),W(a,e.total_in>>8&255),W(a,e.total_in>>16&255),W(a,e.total_in>>24&255)):(me(a,e.adler>>>16),me(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!==ee&&t!==te&&t!==ne&&t!==V&&t!==H&&t!==re&&t!==ie?le(e,v):(e.state=null,t===re?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!==ee||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,K(a);a.lookahead>=L;){o=a.strstart,s=a.lookahead-(L-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+L-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=L-1,K(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=L-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=X,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,a.input=typeof e==`string`?r.string2buf(e):o.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):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)},b.prototype.onData=function(e){this.chunks.push(e)},b.prototype.onEnd=function(e){e===u&&(this.result=this.options.to===`string`?this.chunks.join(``):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)=>{t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;top:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];dolen:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b===0)E[a++]=y&65535;else if(b&16){x=y&65535,b&=15,b&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];dodist:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b&16){if(S=y&65535,b&=15,m<b&&(p+=T[r++]<<m,m+=8,m<b&&(p+=T[r++]<<m,m+=8)),S+=p&(1<<b)-1,S>c){e.msg=`invalid distance too far back`,n.mode=30;break top}if(p>>>=b,m-=b,b=a-o,S>b){if(b=S-b,b>u&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break top}if(C=0,w=f,d===0){if(C+=l-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,b-=d,b<x){x-=b;do E[a++]=f[C++];while(--b);if(C=0,d<x){b=d,x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}}else if(C+=d-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}for(;x>2;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],x>1&&(E[a++]=w[C++]))}else{C=a-S;do E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],x-=3;while(x>2);x&&(E[a++]=E[C++],x>1&&(E[a++]=E[C++]))}}else if(b&64){e.msg=`invalid distance code`,n.mode=30;break top}else{y=g[(y&65535)+(p&(1<<b)-1)];continue dodist}break}}else if(!(b&64)){y=h[(y&65535)+(p&(1<<b)-1)];continue dolen}else if(b&32){n.mode=12;break top}else{e.msg=`invalid literal/length code`,n.mode=30;break top}break}}while(r<i&&a<s);x=m>>3,r-=x,m-=x<<3,p&=(1<<m)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?5+(i-r):5-(r-i),e.avail_out=a<s?257+(s-a):257-(a-s),n.hold=p,n.bits=m}})),_=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,F=null,I=0,L,R=new n.Buf16(r+1),z=new n.Buf16(r+1),B=null,ee=0,te,ne,V;for(b=0;b<=r;b++)R[b]=0;for(x=0;x<m;x++)R[t[s+x]]++;for(w=y,C=r;C>=1&&R[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&&R[S]===0;S++);for(w<S&&(w=S),D=1,b=1;b<=r;b++)if(D<<=1,D-=R[b],D<0)return-1;if(D>0&&(e===o||C!==1))return-1;for(z[1]=0,b=1;b<r;b++)z[b+1]=z[b]+R[b];for(x=0;x<m;x++)t[s+x]!==0&&(_[z[t[s+x]]++]=x);if(e===o?(F=B=_,L=19):e===c?(F=u,I-=257,B=d,ee-=257,L=256):(F=f,B=p,L=-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(;;){te=b-E,_[x]<L?(ne=0,V=_[x]):_[x]>L?(ne=B[ee+_[x]],V=F[I+_[x]]):(ne=96,V=0),A=1<<b-E,j=1<<T,S=j;do j-=A,h[P+(k>>E)+j]=te<<24|ne<<16|V|0;while(j!==0);for(A=1<<b-1;k&A;)A>>=1;if(A===0?k=0:(k&=A-1,k+=A),x++,--R[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-=R[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,F=11,I=12,L=13,R=14,z=15,B=16,ee=17,te=18,ne=19,V=20,H=21,re=22,ie=23,U=24,ae=25,oe=26,se=27,ce=28,le=29,ue=30,de=31,fe=32,pe=852,W=592,me=15;function he(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function G(){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 K(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(pe),n.distcode=n.distdyn=new t.Buf32(W),n.sane=1,n.back=-1,h)}function ge(e){var t;return!e||!e.state?b:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,K(e))}function _e(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,ge(e))}function q(e,t){var n,r;return e?(r=new G,e.state=r,r.window=null,n=_e(e,t),n!==h&&(e.state=null),n):b}function ve(e){return q(e,me)}var ye=!0,be,J;function xe(e){if(ye){var n;for(be=new t.Buf32(512),J=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,be,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;a(d,e.lens,0,32,J,0,e.work,{bits:5}),ye=!1}e.lencode=be,e.lenbits=9,e.distcode=J,e.distbits=5}function Y(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 X(e,s){var l,u,g,_,pe,W,me,G,K,ge,_e,q,ve,ye,be=0,J,X,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===I&&(l.mode=L),pe=e.next_out,g=e.output,me=e.avail_out,_=e.next_in,u=e.input,W=e.avail_in,G=l.hold,K=l.bits,ge=W,_e=me,De=h;inf_leave:for(;;)switch(l.mode){case T:if(l.wrap===0){l.mode=L;break}for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(l.wrap&2&&G===35615){l.check=0,Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0),G=0,K=0,l.mode=E;break}if(l.flags=0,l.head&&(l.head.done=!1),!(l.wrap&1)||(((G&255)<<8)+(G>>8))%31){e.msg=`incorrect header check`,l.mode=ue;break}if((G&15)!==w){e.msg=`unknown compression method`,l.mode=ue;break}if(G>>>=4,K-=4,Ee=(G&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=G&512?P:I,G=0,K=0;break;case E:for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(l.flags=G,(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=G>>8&1),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0)),G=0,K=0,l.mode=D;case D:for(;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.head&&(l.head.time=G),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,Oe[2]=G>>>16&255,Oe[3]=G>>>24&255,l.check=r(l.check,Oe,4,0)),G=0,K=0,l.mode=O;case O:for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.head&&(l.head.xflags=G&255,l.head.os=G>>8),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0)),G=0,K=0,l.mode=k;case k:if(l.flags&1024){for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.length=G,l.head&&(l.head.extra_len=G),l.flags&512&&(Oe[0]=G&255,Oe[1]=G>>>8&255,l.check=r(l.check,Oe,2,0)),G=0,K=0}else l.head&&(l.head.extra=null);l.mode=A;case A:if(l.flags&1024&&(q=l.length,q>W&&(q=W),q&&(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,_,q,Ee)),l.flags&512&&(l.check=r(l.check,u,q,_)),W-=q,_+=q,l.length-=q),l.length))break inf_leave;l.length=0,l.mode=j;case j:if(l.flags&2048){if(W===0)break inf_leave;q=0;do Ee=u[_+q++],l.head&&Ee&&l.length<65536&&(l.head.name+=String.fromCharCode(Ee));while(Ee&&q<W);if(l.flags&512&&(l.check=r(l.check,u,q,_)),W-=q,_+=q,Ee)break inf_leave}else l.head&&(l.head.name=null);l.length=0,l.mode=M;case M:if(l.flags&4096){if(W===0)break inf_leave;q=0;do Ee=u[_+q++],l.head&&Ee&&l.length<65536&&(l.head.comment+=String.fromCharCode(Ee));while(Ee&&q<W);if(l.flags&512&&(l.check=r(l.check,u,q,_)),W-=q,_+=q,Ee)break inf_leave}else l.head&&(l.head.comment=null);l.mode=N;case N:if(l.flags&512){for(;K<16;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(G!==(l.check&65535)){e.msg=`header crc mismatch`,l.mode=ue;break}G=0,K=0}l.head&&(l.head.hcrc=l.flags>>9&1,l.head.done=!0),e.adler=l.check=0,l.mode=I;break;case P:for(;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}e.adler=l.check=he(G),G=0,K=0,l.mode=F;case F:if(l.havedict===0)return e.next_out=pe,e.avail_out=me,e.next_in=_,e.avail_in=W,l.hold=G,l.bits=K,y;e.adler=l.check=1,l.mode=I;case I:if(s===p||s===m)break inf_leave;case L:if(l.last){G>>>=K&7,K-=K&7,l.mode=se;break}for(;K<3;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}switch(l.last=G&1,G>>>=1,--K,G&3){case 0:l.mode=R;break;case 1:if(xe(l),l.mode=V,s===m){G>>>=2,K-=2;break inf_leave}break;case 2:l.mode=ee;break;case 3:e.msg=`invalid block type`,l.mode=ue}G>>>=2,K-=2;break;case R:for(G>>>=K&7,K-=K&7;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if((G&65535)!=(G>>>16^65535)){e.msg=`invalid stored block lengths`,l.mode=ue;break}if(l.length=G&65535,G=0,K=0,l.mode=z,s===m)break inf_leave;case z:l.mode=B;case B:if(q=l.length,q){if(q>W&&(q=W),q>me&&(q=me),q===0)break inf_leave;t.arraySet(g,u,_,q,pe),W-=q,_+=q,me-=q,pe+=q,l.length-=q;break}l.mode=I;break;case ee:for(;K<14;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(l.nlen=(G&31)+257,G>>>=5,K-=5,l.ndist=(G&31)+1,G>>>=5,K-=5,l.ncode=(G&15)+4,G>>>=4,K-=4,l.nlen>286||l.ndist>30){e.msg=`too many length or distance symbols`,l.mode=ue;break}l.have=0,l.mode=te;case te:for(;l.have<l.ncode;){for(;K<3;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.lens[je[l.have++]]=G&7,G>>>=3,K-=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=ne;case ne:for(;l.have<l.nlen+l.ndist;){for(;be=l.lencode[G&(1<<l.lenbits)-1],J=be>>>24,X=be>>>16&255,Se=be&65535,!(J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(Se<16)G>>>=J,K-=J,l.lens[l.have++]=Se;else{if(Se===16){for(Ae=J+2;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(G>>>=J,K-=J,l.have===0){e.msg=`invalid bit length repeat`,l.mode=ue;break}Ee=l.lens[l.have-1],q=3+(G&3),G>>>=2,K-=2}else if(Se===17){for(Ae=J+3;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=J,K-=J,Ee=0,q=3+(G&7),G>>>=3,K-=3}else{for(Ae=J+7;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=J,K-=J,Ee=0,q=11+(G&127),G>>>=7,K-=7}if(l.have+q>l.nlen+l.ndist){e.msg=`invalid bit length repeat`,l.mode=ue;break}for(;q--;)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=V,s===m)break inf_leave;case V:l.mode=H;case H:if(W>=6&&me>=258){e.next_out=pe,e.avail_out=me,e.next_in=_,e.avail_in=W,l.hold=G,l.bits=K,i(e,_e),pe=e.next_out,g=e.output,me=e.avail_out,_=e.next_in,u=e.input,W=e.avail_in,G=l.hold,K=l.bits,l.mode===I&&(l.back=-1);break}for(l.back=0;be=l.lencode[G&(1<<l.lenbits)-1],J=be>>>24,X=be>>>16&255,Se=be&65535,!(J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(X&&!(X&240)){for(Ce=J,we=X,Te=Se;be=l.lencode[Te+((G&(1<<Ce+we)-1)>>Ce)],J=be>>>24,X=be>>>16&255,Se=be&65535,!(Ce+J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=Ce,K-=Ce,l.back+=Ce}if(G>>>=J,K-=J,l.back+=J,l.length=Se,X===0){l.mode=oe;break}if(X&32){l.back=-1,l.mode=I;break}if(X&64){e.msg=`invalid literal/length code`,l.mode=ue;break}l.extra=X&15,l.mode=re;case re:if(l.extra){for(Ae=l.extra;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.length+=G&(1<<l.extra)-1,G>>>=l.extra,K-=l.extra,l.back+=l.extra}l.was=l.length,l.mode=ie;case ie:for(;be=l.distcode[G&(1<<l.distbits)-1],J=be>>>24,X=be>>>16&255,Se=be&65535,!(J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(!(X&240)){for(Ce=J,we=X,Te=Se;be=l.distcode[Te+((G&(1<<Ce+we)-1)>>Ce)],J=be>>>24,X=be>>>16&255,Se=be&65535,!(Ce+J<=K);){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}G>>>=Ce,K-=Ce,l.back+=Ce}if(G>>>=J,K-=J,l.back+=J,X&64){e.msg=`invalid distance code`,l.mode=ue;break}l.offset=Se,l.extra=X&15,l.mode=U;case U:if(l.extra){for(Ae=l.extra;K<Ae;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}l.offset+=G&(1<<l.extra)-1,G>>>=l.extra,K-=l.extra,l.back+=l.extra}if(l.offset>l.dmax){e.msg=`invalid distance too far back`,l.mode=ue;break}l.mode=ae;case ae:if(me===0)break inf_leave;if(q=_e-me,l.offset>q){if(q=l.offset-q,q>l.whave&&l.sane){e.msg=`invalid distance too far back`,l.mode=ue;break}q>l.wnext?(q-=l.wnext,ve=l.wsize-q):ve=l.wnext-q,q>l.length&&(q=l.length),ye=l.window}else ye=g,ve=pe-l.offset,q=l.length;q>me&&(q=me),me-=q,l.length-=q;do g[pe++]=ye[ve++];while(--q);l.length===0&&(l.mode=H);break;case oe:if(me===0)break inf_leave;g[pe++]=l.length,me--,l.mode=H;break;case se:if(l.wrap){for(;K<32;){if(W===0)break inf_leave;W--,G|=u[_++]<<K,K+=8}if(_e-=me,e.total_out+=_e,l.total+=_e,_e&&(e.adler=l.check=l.flags?r(l.check,g,_e,pe-_e):n(l.check,g,_e,pe-_e)),_e=me,(l.flags?G:he(G))!==l.check){e.msg=`incorrect data check`,l.mode=ue;break}G=0,K=0}l.mode=ce;case ce:if(l.wrap&&l.flags){for(;K<32;){if(W===0)break inf_leave;W--,G+=u[_++]<<K,K+=8}if(G!==(l.total&4294967295)){e.msg=`incorrect length check`,l.mode=ue;break}G=0,K=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=pe,e.avail_out=me,e.next_in=_,e.avail_in=W,l.hold=G,l.bits=K,(l.wsize||_e!==e.avail_out&&l.mode<ue&&(l.mode<se||s!==f))&&Y(e,e.output,e.next_out,_e-e.avail_out)?(l.mode=de,S):(ge-=e.avail_in,_e-=e.avail_out,e.total_in+=ge,e.total_out+=_e,l.total+=_e,l.wrap&&_e&&(e.adler=l.check=l.flags?r(l.check,g,_e,e.next_out-_e):n(l.check,g,_e,e.next_out-_e)),e.data_type=l.bits+(l.last?64:0)+(l.mode===I?128:0)+(l.mode===V||l.mode===z?256:0),(ge===0&&_e===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!==F)?b:i.mode===F&&(a=1,a=n(a,t,r,0),a!==i.check)?x:(o=Y(e,t,r,r),o?(i.mode=de,S):(i.havedict=1,h))}e.inflateReset=ge,e.inflateReset2=_e,e.inflateResetKeep=K,e.inflateInit=ve,e.inflateInit2=q,e.inflate=X,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,o.input=typeof e==`string`?r.binstring2buf(e):l.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):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)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===i.Z_OK&&(this.result=this.options.to===`string`?this.chunks.join(``):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,F,I,L,R,z,B=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,F=e=>!!e&&typeof e==`object`&&e[M]===O,I=e=>!!e&&typeof e==`object`&&e[M]===k,L=e=>!!e&&typeof e==`object`&&e[M]===A,R=e=>!!e&&typeof e==`object`&&e[M]===j,z=e=>(L(e)||w(e))&&!!e.anchor}));function ee(e,t){let n=H(t);P(e)?te(null,e.contents,n,Object.freeze([e]))===oe&&(e.contents=null):te(null,e,n,Object.freeze([]))}function te(e,t,n,r){let i=re(e,t,n,r);if(T(i)||I(i))return ie(e,r,i),te(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=te(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===U)return U;else i===oe&&(t.items.splice(e,1),--e)}}else if(I(t)){r=Object.freeze(r.concat(t));let e=te(`key`,t.key,n,r);if(e===U)return U;e===oe&&(t.key=null);let i=te(`value`,t.value,n,r);if(i===U)return U;i===oe&&(t.value=null)}}return i}async function ne(e,t){let n=H(t);P(e)?await V(null,e.contents,n,Object.freeze([e]))===oe&&(e.contents=null):await V(null,e,n,Object.freeze([]))}async function V(e,t,n,r){let i=await re(e,t,n,r);if(T(i)||I(i))return ie(e,r,i),V(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 V(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===U)return U;else i===oe&&(t.items.splice(e,1),--e)}}else if(I(t)){r=Object.freeze(r.concat(t));let e=await V(`key`,t.key,n,r);if(e===U)return U;e===oe&&(t.key=null);let i=await V(`value`,t.value,n,r);if(i===U)return U;i===oe&&(t.value=null)}}return i}function H(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 re(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(F(t))return n.Map?.(e,t,r);if(R(t))return n.Seq?.(e,t,r);if(I(t))return n.Pair?.(e,t,r);if(L(t))return n.Scalar?.(e,t,r);if(N(t))return n.Alias?.(e,t,r)}function ie(e,t,n){let r=t[t.length-1];if(w(r))r.items[e]=n;else if(I(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 U,ae,oe,se=n((()=>{B(),U=Symbol(`break visit`),ae=Symbol(`skip children`),oe=Symbol(`remove node`),ee.BREAK=U,ee.SKIP=ae,ee.REMOVE=oe,ne.BREAK=U,ne.SKIP=ae,ne.REMOVE=oe})),ce,le,ue,de=n((()=>{B(),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)}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={};ee(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 pe(e){let t=new Set;return ee(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function W(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function me(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=pe(e);let a=W(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(L(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 he=n((()=>{B(),se()}));function G(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=G(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=G(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=G(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=G(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}var K=n((()=>{}));function ge(e,t,n){if(Array.isArray(e))return e.map((e,t)=>ge(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!z(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 _e=n((()=>{B()})),q,ve=n((()=>{K(),B(),_e(),q=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=ge(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?G(i,{"":o},``,o):o}}}));function ye(e,t,n){if(N(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(w(t)){let r=0;for(let i of t.items){let t=ye(e,i,n);t>r&&(r=t)}return r}if(I(t)){let r=ye(e,t.key,n),i=ye(e,t.value,n);return Math.max(r,i)}return 1}var be,J=n((()=>{he(),se(),B(),ve(),_e(),be=class extends q{constructor(e){super(E),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],ee(e,{Node:(e,t)=>{(N(t)||z(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||=(ge(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=ye(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}}})),xe,Y,X=n((()=>{B(),ve(),_e(),xe=e=>!e||typeof e!=`function`&&typeof e!=`object`,Y=class extends q{constructor(e){super(A),this.value=e}toJSON(e,t){return t?.keep?this.value:ge(this.value,e,t)}toString(){return String(this.value)}},Y.BLOCK_FOLDED=`BLOCK_FOLDED`,Y.BLOCK_LITERAL=`BLOCK_LITERAL`,Y.PLAIN=`PLAIN`,Y.QUOTE_DOUBLE=`QUOTE_DOUBLE`,Y.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(I(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??(c.anchor=i(e)),new be(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 Y(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 Y(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}var we,Te=n((()=>{J(),B(),X(),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(),B(),ve(),De=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Oe=class extends q{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)||I(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&&L(i)?i.value:i:w(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!I(t))return!1;let n=t.value;return n==null||e&&L(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
  `)?`
@@ -103,7 +103,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
103
103
  `)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
104
104
  `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
105
105
  `;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
106
- `&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Di(r)||e&&Ai.has(r))break;t=n}else if(Di(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
106
+ `&&n>=this.pos&&n+1+t>i)e=n;else break}while(1);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Di(r)||e&&Ai.has(r))break;t=n}else if(Di(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
107
107
  `?(n+=1,r=`
108
108
  `,i=this.buffer[n+1]):t=n),i===`#`||e&&Ai.has(i))break;if(r===`
109
109
  `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&Ai.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(Mi),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(Di(n)||t&&Ai.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Di(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(ki.has(t))t=this.buffer[++e];else if(t===`%`&&Oi.has(this.buffer[e+1])&&Oi.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
@@ -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)){Hi(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(Li(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Vi(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(Li(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(zi(t.key)&&!Li(t.sep,`newline`)){let e=Vi(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]}):Li(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&&!Li(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)){Hi(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||Li(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=Vi(Bi(t));Ui(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=Vi(Bi(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=Vi(Bi(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 Ki(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Fi||null,prettyErrors:t}}function qi(e,t={}){let{lineCounter:n,prettyErrors:r}=Ki(t),i=new Wi(n?.addNewLine),a=new ni(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(ar(e,n)),t.warnings.forEach(ar(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function Ji(e,t={}){let{lineCounter:n,prettyErrors:r}=Ki(t),i=new Wi(n?.addNewLine),a=new ni(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 rr(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(ar(e,n)),o.warnings.forEach(ar(e,n))),o}function Yi(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Ji(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 Xi(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 er(e,r,n).toString(n)}var Zi=n((()=>{ri(),tr(),or(),at(),B(),Ii(),Gi()})),Qi=r({Alias:()=>be,CST:()=>xi,Composer:()=>ni,Document:()=>er,Lexer:()=>Ni,LineCounter:()=>Fi,Pair:()=>_t,Parser:()=>Wi,Scalar:()=>Y,Schema:()=>Yn,YAMLError:()=>nr,YAMLMap:()=>Tt,YAMLParseError:()=>rr,YAMLSeq:()=>At,YAMLWarning:()=>ir,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>F,isNode:()=>T,isPair:()=>I,isScalar:()=>L,isSeq:()=>R,parse:()=>Yi,parseAllDocuments:()=>qi,parseDocument:()=>Ji,stringify:()=>Xi,visit:()=>ee,visitAsync:()=>ne}),$i=n((()=>{ri(),tr(),Xn(),or(),J(),B(),vt(),X(),Et(),jt(),Ei(),Pi(),Ii(),Gi(),Zi(),se()})),ea=r({Alias:()=>be,CST:()=>xi,Composer:()=>ni,Document:()=>er,Lexer:()=>Ni,LineCounter:()=>Fi,Pair:()=>_t,Parser:()=>Wi,Scalar:()=>Y,Schema:()=>Yn,YAMLError:()=>nr,YAMLMap:()=>Tt,YAMLParseError:()=>rr,YAMLSeq:()=>At,YAMLWarning:()=>ir,default:()=>ta,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>F,isNode:()=>T,isPair:()=>I,isScalar:()=>L,isSeq:()=>R,parse:()=>Yi,parseAllDocuments:()=>qi,parseDocument:()=>Ji,stringify:()=>Xi,visit:()=>ee,visitAsync:()=>ne}),ta,na=n((()=>{$i(),$i(),ta=Qi})),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((na(),e(ea)));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})),ra=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)&&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})})),ia=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}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})),aa=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})}}})),oa=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.acronymStyle=e.acronymOption=e.AcronymStyleOptions=e.acronyms=void 0;var t=aa(),n=fa();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})),sa=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(``)}})),ca=i(((e,t)=>{function n(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function r(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new n,this.dtree=new n}var i=new n,a=new n,o=new Uint8Array(30),s=new Uint16Array(30),c=new Uint8Array(30),l=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new n,f=new Uint8Array(320);function p(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 m(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 h=new Uint16Array(16);function g(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)h[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[h[t[n+i]]++]=i)}function _(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function v(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 y(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 b(e,t,n){var r=v(e,5,257),i=v(e,5,1),a=v(e,4,4),o,s,c;for(o=0;o<19;++o)f[o]=0;for(o=0;o<a;++o){var l=v(e,3,0);f[u[o]]=l}for(g(d,f,0,19),s=0;s<r+i;){var p=y(e,d);switch(p){case 16:var m=f[s-1];for(c=v(e,2,3);c;--c)f[s++]=m;break;case 17:for(c=v(e,3,3);c;--c)f[s++]=0;break;case 18:for(c=v(e,7,11);c;--c)f[s++]=0;break;default:f[s++]=p}}g(t,f,0,r),g(n,f,r,i)}function x(e,t,n){for(;;){var r=y(e,t);if(r===256)return 0;if(r<256)e.dest[e.destLen++]=r;else{var i,a,u,d;for(r-=257,i=v(e,o[r],s[r]),a=y(e,n),u=e.destLen-v(e,c[a],l[a]),d=u;d<u+i;++d)e.dest[e.destLen++]=e.dest[d]}}}function S(e){for(var t,n,r;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],n=e.source[e.sourceIndex+3],n=256*n+e.source[e.sourceIndex+2],t!==(~n&65535))return-3;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}function C(e,t){var n=new r(e,t),o,s,c;do{switch(o=_(n),s=v(n,2,0),s){case 0:c=S(n);break;case 1:c=x(n,i,a);break;case 2:b(n,n.ltree,n.dtree),c=x(n,n.ltree,n.dtree);break;default:c=-3}if(c!==0)throw Error(`Data error`)}while(!o);return n.destLen<n.dest.length?typeof n.dest.slice==`function`?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest}m(i,a),p(o,s,4,3),p(c,l,2,1),o[28]=0,s[28]=258,t.exports=C})),la=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)}}})),ua=i(((e,t)=>{var n=ca(),{swap32LE:r}=la(),i=11,a=5,o=63,s=2,c=31,l=2048,u=4;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]<<s)+(e&c),this.data[t]):e<=65535?(t=(this.data[l+(e-55296>>a)]<<s)+(e&c),this.data[t]):e<this.highStart?(t=this.data[2080+(e>>i)],t=this.data[t+(e>>a&o)],t=(t<<s)+(e&c),this.data[t]):this.data[this.data.length-u]}}})),da=i(((e,t)=>{var n=sa(),r=ua();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`,()=>F),o(t.exports,`isWhiteSpace`,()=>I),o(t.exports,`isBaseForm`,()=>L),o(t.exports,`isMark`,()=>R),o(t.exports,`default`,()=>z);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=1023;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}{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 F(e){return T(e)===`Lt`}function I(e){let t=T(e);return t===`Zs`||t===`Zl`||t===`Zp`}function L(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 R(e){let t=T(e);return t===`Mn`||t===`Me`||t===`Mc`}var z={getCategory:T,getCombiningClass:E,getScript:D,getEastAsianWidth:O,getNumericValue:k,isAlphabetic:A,isDigit:j,isPunctuation:M,isLowerCase:N,isUpperCase:P,isTitleCase:F,isWhiteSpace:I,isBaseForm:L,isMark:R}})),fa=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=oa(),i=C(),a=t(da());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 F(e){return ne(e).map(({word:e})=>e.toLowerCase()).join(`_`)}e.snakeCase=F;function I(e,t,n){let r=t?A:j;return n===``?r(`empty`):e(n.charCodeAt(0))?r(n):r(`the`+n)}e.startWithLetter=I;var L=new Set(r.acronyms),R=s(D),z=s(e=>!D(e)),B=s(e=>a.default.isLowerCase(e));e.fastIsUpperCase=s(e=>a.default.isUpperCase(e));var ee=s(e=>!a.default.isLowerCase(e)&&!a.default.isUpperCase(e)),te=s(x);function ne(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;B(t)&&(s=o),o++}}function f(){d(z)}function p(){d(B)}function m(){d(e.fastIsUpperCase)}function h(){d(ee)}function g(){d(te)}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();)_(),B(l())?(p(),g(),v()):(0,e.fastIsUpperCase)(l())?(m(),c()?v():y()===1?(p(),g(),v()):x(l())?(g(),v()):(R(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||L.has(r.toLowerCase());b.push({word:r,isAcronym:a})}return b}e.splitIntoWords=ne;function V(e){return(0,n.assert)(e.length>0,`Cannot style an empty string`),e[0].toUpperCase()+e.slice(1).toLowerCase()}e.firstUpperWordStyle=V;function H(e){return e.toUpperCase()}e.allUpperWordStyle=H;function re(e){return e}e.originalWord=re;function ie(e){return e.toLowerCase()}e.allLowerWordStyle=ie;function U(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 ae(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=U(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=U(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(U(t,e.word))}return u.join(s)}e.combineWords=ae;function oe(e,t){return t.startsWith(e)?t:e+t}e.addPrefixIfNecessary=oe;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=V,c=H):o=c=V):i=`_`,e){case`pascal`:case`pascal-upper-acronyms`:a=s=V;break;case`camel`:case`camel-upper-acronyms`:a=s=ie;break;case`underscore`:a=o=s=c=ie;break;case`upper-underscore`:a=o=s=c=H;break;default:return(0,n.assertNever)(e)}return e=>{let n=ae(ne(e),t,a,o,s,c,i,T);return r===void 0?n:oe(r,n)}}e.makeNameStyle=se})),pa=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`]})),ma=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(ra()),o=a(),s=Q(),c=ia(),l=fa(),u=pa(),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})),ha=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeBuilder=e.getNoStringTypeMapping=e.stringTypeMappingGet=e.provenanceTypeAttributeKind=void 0;var t=a(),n=Ea(),r=ba(),i=ia(),o=Q(),s=ga();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&&(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(){}}})),ga=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inferTransformedStringTypeKindForString=e.stringTypesTypeAttributeKind=e.StringTypes=void 0;var t=a(),n=ia(),r=Q(),i=ha(),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)}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=2147483647;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})),_a=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=ia(),i=Ea(),o=ga();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)}return e instanceof i.ArrayType?u(e):e instanceof i.ClassType?d(e):e instanceof i.MapType?f(e):e instanceof i.ObjectType?p(e):e instanceof i.EnumType?m(e):e instanceof i.UnionType?h(e):(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})),va=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GraphRewriteBuilder=e.GraphRemapBuilder=e.BaseGraphRewriteBuilder=e.TypeReconstituter=void 0;var t=a(),n=_a(),r=ba(),i=ia(),o=Q(),s=ha(),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)}}}})),ya=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
- `)}}})),ba=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=Ea(),r=_a(),i=Q(),o=ha(),s=va(),c=ma(),l=ya(),u=ia(),d=C(),f=26,p=(1<<f)-1,m=31;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})),xa=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 F(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:F,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)})),Sa=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}})})),Ca=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})})),wa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(xa(),Sa(),Ca()):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}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`?e[t]=!d(e[t])&&n.test(e[t])?void 0: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}return r.URI===this&&(r.URI=i),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}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():``}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)}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)||``}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)||``}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}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}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}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)}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}return e!==void 0&&typeof e!=`string`?(this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):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})})),Ta=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(wa()),r=ia(),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})),Ea=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=ma(),i=C(),o=ba(),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:Ta().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}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}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}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||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`)))})}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)})}}})),Da=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)&&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})),Oa=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=Da(),r=Q(),i=fa();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=Vi(Bi(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=Vi(Bi(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 Ki(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Fi||null,prettyErrors:t}}function qi(e,t={}){let{lineCounter:n,prettyErrors:r}=Ki(t),i=new Wi(n?.addNewLine),a=new ni(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(ar(e,n)),t.warnings.forEach(ar(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function Ji(e,t={}){let{lineCounter:n,prettyErrors:r}=Ki(t),i=new Wi(n?.addNewLine),a=new ni(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 rr(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(ar(e,n)),o.warnings.forEach(ar(e,n))),o}function Yi(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Ji(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 Xi(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 er(e,r,n).toString(n)}var Zi=n((()=>{ri(),tr(),or(),at(),B(),Ii(),Gi()})),Qi=r({Alias:()=>be,CST:()=>xi,Composer:()=>ni,Document:()=>er,Lexer:()=>Ni,LineCounter:()=>Fi,Pair:()=>_t,Parser:()=>Wi,Scalar:()=>Y,Schema:()=>Yn,YAMLError:()=>nr,YAMLMap:()=>Tt,YAMLParseError:()=>rr,YAMLSeq:()=>At,YAMLWarning:()=>ir,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>F,isNode:()=>T,isPair:()=>I,isScalar:()=>L,isSeq:()=>R,parse:()=>Yi,parseAllDocuments:()=>qi,parseDocument:()=>Ji,stringify:()=>Xi,visit:()=>ee,visitAsync:()=>ne}),$i=n((()=>{ri(),tr(),Xn(),or(),J(),B(),vt(),X(),Et(),jt(),Ei(),Pi(),Ii(),Gi(),Zi(),se()})),ea=r({Alias:()=>be,CST:()=>xi,Composer:()=>ni,Document:()=>er,Lexer:()=>Ni,LineCounter:()=>Fi,Pair:()=>_t,Parser:()=>Wi,Scalar:()=>Y,Schema:()=>Yn,YAMLError:()=>nr,YAMLMap:()=>Tt,YAMLParseError:()=>rr,YAMLSeq:()=>At,YAMLWarning:()=>ir,default:()=>ta,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>F,isNode:()=>T,isPair:()=>I,isScalar:()=>L,isSeq:()=>R,parse:()=>Yi,parseAllDocuments:()=>qi,parseDocument:()=>Ji,stringify:()=>Xi,visit:()=>ee,visitAsync:()=>ne}),ta,na=n((()=>{$i(),$i(),ta=Qi})),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((na(),e(ea)));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})),ra=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)&&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})})),ia=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}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})),aa=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})}}})),oa=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.acronymStyle=e.acronymOption=e.AcronymStyleOptions=e.acronyms=void 0;var t=aa(),n=fa();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})),sa=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){for(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=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(``)}})),ca=i(((e,t)=>{function n(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function r(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new n,this.dtree=new n}var i=new n,a=new n,o=new Uint8Array(30),s=new Uint16Array(30),c=new Uint8Array(30),l=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new n,f=new Uint8Array(320);function p(e,t,n,r){for(var i=0,a;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 m(e,t){for(var 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 h=new Uint16Array(16);function g(e,t,n,r){for(var i=0,a;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)h[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[h[t[n+i]]++]=i)}function _(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function v(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 y(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 b(e,t,n){for(var r=v(e,5,257),i=v(e,5,1),a=v(e,4,4),o=0,s,c;o<19;++o)f[o]=0;for(o=0;o<a;++o){var l=v(e,3,0);f[u[o]]=l}for(g(d,f,0,19),s=0;s<r+i;){var p=y(e,d);switch(p){case 16:var m=f[s-1];for(c=v(e,2,3);c;--c)f[s++]=m;break;case 17:for(c=v(e,3,3);c;--c)f[s++]=0;break;case 18:for(c=v(e,7,11);c;--c)f[s++]=0;break;default:f[s++]=p}}g(t,f,0,r),g(n,f,r,i)}function x(e,t,n){for(;;){var r=y(e,t);if(r===256)return 0;if(r<256)e.dest[e.destLen++]=r;else{var i,a,u,d;for(r-=257,i=v(e,o[r],s[r]),a=y(e,n),u=e.destLen-v(e,c[a],l[a]),d=u;d<u+i;++d)e.dest[e.destLen++]=e.dest[d]}}}function S(e){for(var t,n,r;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],n=e.source[e.sourceIndex+3],n=256*n+e.source[e.sourceIndex+2],t!==(~n&65535))return-3;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}function C(e,t){var n=new r(e,t),o,s,c;do{switch(o=_(n),s=v(n,2,0),s){case 0:c=S(n);break;case 1:c=x(n,i,a);break;case 2:b(n,n.ltree,n.dtree),c=x(n,n.ltree,n.dtree);break;default:c=-3}if(c!==0)throw Error(`Data error`)}while(!o);return n.destLen<n.dest.length?typeof n.dest.slice==`function`?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest}m(i,a),p(o,s,4,3),p(c,l,2,1),o[28]=0,s[28]=258,t.exports=C})),la=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)}}})),ua=i(((e,t)=>{var n=ca(),{swap32LE:r}=la(),i=11,a=5,o=63,s=2,c=31,l=2048,u=4;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]<<s)+(e&c),this.data[t]):e<=65535?(t=(this.data[l+(e-55296>>a)]<<s)+(e&c),this.data[t]):e<this.highStart?(t=this.data[2080+(e>>i)],t=this.data[t+(e>>a&o)],t=(t<<s)+(e&c),this.data[t]):this.data[this.data.length-u]}}})),da=i(((e,t)=>{var n=sa(),r=ua();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`,()=>F),o(t.exports,`isWhiteSpace`,()=>I),o(t.exports,`isBaseForm`,()=>L),o(t.exports,`isMark`,()=>R),o(t.exports,`default`,()=>z);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=1023;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}{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 F(e){return T(e)===`Lt`}function I(e){let t=T(e);return t===`Zs`||t===`Zl`||t===`Zp`}function L(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 R(e){let t=T(e);return t===`Mn`||t===`Me`||t===`Mc`}var z={getCategory:T,getCombiningClass:E,getScript:D,getEastAsianWidth:O,getNumericValue:k,isAlphabetic:A,isDigit:j,isPunctuation:M,isLowerCase:N,isUpperCase:P,isTitleCase:F,isWhiteSpace:I,isBaseForm:L,isMark:R}})),fa=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=oa(),i=C(),a=t(da());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 F(e){return ne(e).map(({word:e})=>e.toLowerCase()).join(`_`)}e.snakeCase=F;function I(e,t,n){let r=t?A:j;return n===``?r(`empty`):e(n.charCodeAt(0))?r(n):r(`the`+n)}e.startWithLetter=I;var L=new Set(r.acronyms),R=s(D),z=s(e=>!D(e)),B=s(e=>a.default.isLowerCase(e));e.fastIsUpperCase=s(e=>a.default.isUpperCase(e));var ee=s(e=>!a.default.isLowerCase(e)&&!a.default.isUpperCase(e)),te=s(x);function ne(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;B(t)&&(s=o),o++}}function f(){d(z)}function p(){d(B)}function m(){d(e.fastIsUpperCase)}function h(){d(ee)}function g(){d(te)}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();)_(),B(l())?(p(),g(),v()):(0,e.fastIsUpperCase)(l())?(m(),c()?v():y()===1?(p(),g(),v()):x(l())?(g(),v()):(R(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||L.has(r.toLowerCase());b.push({word:r,isAcronym:a})}return b}e.splitIntoWords=ne;function V(e){return(0,n.assert)(e.length>0,`Cannot style an empty string`),e[0].toUpperCase()+e.slice(1).toLowerCase()}e.firstUpperWordStyle=V;function H(e){return e.toUpperCase()}e.allUpperWordStyle=H;function re(e){return e}e.originalWord=re;function ie(e){return e.toLowerCase()}e.allLowerWordStyle=ie;function U(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 ae(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=U(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=U(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(U(t,e.word))}return u.join(s)}e.combineWords=ae;function oe(e,t){return t.startsWith(e)?t:e+t}e.addPrefixIfNecessary=oe;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=V,c=H):o=c=V):i=`_`,e){case`pascal`:case`pascal-upper-acronyms`:a=s=V;break;case`camel`:case`camel-upper-acronyms`:a=s=ie;break;case`underscore`:a=o=s=c=ie;break;case`upper-underscore`:a=o=s=c=H;break;default:return(0,n.assertNever)(e)}return e=>{let n=ae(ne(e),t,a,o,s,c,i,T);return r===void 0?n:oe(r,n)}}e.makeNameStyle=se})),pa=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`]})),ma=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(ra()),o=a(),s=Q(),c=ia(),l=fa(),u=pa(),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})),ha=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeBuilder=e.getNoStringTypeMapping=e.stringTypeMappingGet=e.provenanceTypeAttributeKind=void 0;var t=a(),n=Ea(),r=ba(),i=ia(),o=Q(),s=ga();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&&(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(){}}})),ga=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.inferTransformedStringTypeKindForString=e.stringTypesTypeAttributeKind=e.StringTypes=void 0;var t=a(),n=ia(),r=Q(),i=ha(),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)}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=2147483647;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})),_a=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=ia(),i=Ea(),o=ga();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)}return e instanceof i.ArrayType?u(e):e instanceof i.ClassType?d(e):e instanceof i.MapType?f(e):e instanceof i.ObjectType?p(e):e instanceof i.EnumType?m(e):e instanceof i.UnionType?h(e):(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})),va=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GraphRewriteBuilder=e.GraphRemapBuilder=e.BaseGraphRewriteBuilder=e.TypeReconstituter=void 0;var t=a(),n=_a(),r=ba(),i=ia(),o=Q(),s=ha(),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)}}}})),ya=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
+ `)}}})),ba=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=Ea(),r=_a(),i=Q(),o=ha(),s=va(),c=ma(),l=ya(),u=ia(),d=C(),f=26,p=(1<<f)-1,m=31;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})),xa=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 F(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:F,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)})),Sa=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);for(var 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}})})),Ca=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})})),wa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(xa(),Sa(),Ca()):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}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`?e[t]=!d(e[t])&&n.test(e[t])?void 0: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){for(var n=Math.min(e.length,t.length),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}return r.URI===this&&(r.URI=i),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}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():``}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)}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)||``}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)||``}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}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}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}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)}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}return e!==void 0&&typeof e!=`string`?(this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):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})})),Ta=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(wa()),r=ia(),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})),Ea=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=ma(),i=C(),o=ba(),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:Ta().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}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}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}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||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`)))})}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)})}}})),Da=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)&&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})),Oa=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=Da(),r=Q(),i=fa();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})),ka=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.`)})),Aa=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Renderer=void 0;var t=a(),n=Da(),r=Oa(),i=ka(),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)&&(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}}})),ja=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.declarationsForGraph=e.cycleBreakerTypesForGraph=e.DeclarationIR=void 0;var t=a(),n=Q(),r=ya(),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})),Ma=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})}}})),Na=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=ia(),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,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})),Pa=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enumValuesAttributeProducer=e.enumCaseValues=e.enumValuesTypeAttributeKind=void 0;var t=a(),n=Na(),r=ia();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})),Fa=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=ia(),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})),Ia=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(wa()),i=a(),o=Ea(),s=Q(),c=ma(),l=ma(),u=ia(),d=Ma(),f=C(),p=ga(),m=La(),h=Na(),g=Pa(),_=Fa(),v=Fa(),y=Fa(),b=Ta(),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){let n=(0,i.definedMap)(t,e=>new r.default(e));return new e(n,[])}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)}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))}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)&&(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 F=Object.getOwnPropertyNames(e.schemaTypeDict);function I(e){let t=(0,i.iterableFind)(o.transformedStringTypeTargetTypeKindsMap,([t,{jsonSchema:n}])=>n===e);if(t!==void 0)return t[0]}function L(e,t){return e===void 0?(0,f.messageError)(`SchemaFetchErrorTopLevel`,{address:t}):(0,f.messageError)(`SchemaFetchError`,{address:t,base:e.canonicalRef})}var R=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?L(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 z(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}return v.find(t)!==void 0}return!0}let x=(0,i.setFilter)(F,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=I(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 L(){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 R(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 z=n.getUniqueIntersectionType(g,void 0);m(d,z);function B(e,r){return t(this,void 0,void 0,function*(){let t=yield R(e,r),i=(0,u.makeTypeAttributesInferred)(g);r===`oneOf`&&C(e,({forType:e,forUnion:r,forCases:a})=>{if(e!==void 0&&n.addAttributes(z,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 ee=v===void 0&&(y===void 0||y.has(`object`)),te=v===void 0&&(y===void 0||y.has(`array`)),ne=x.has(`string`)&&v!==void 0&&v.find(e=>typeof e==`string`)!==void 0,V=y!==void 0||r.properties!==void 0||r.additionalProperties!==void 0||r.items!==void 0||r.required!==void 0||v!==void 0,H=[];if(V){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(ne){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));te&&e.push(yield M()),ee&&e.push(yield L()),H.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);H.push(yield _(n,i,a))}return r.allOf!==void 0&&H.push(...yield R(r.allOf,`allOf`)),r.oneOf!==void 0&&H.push(yield B(r.oneOf,`oneOf`)),r.anyOf!==void 0&&H.push(yield B(r.anyOf,`anyOf`)),n.setSetOperationMembers(z,new Set(H)),z})}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 B(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 ee(e){let t=e.fragment();if(t!==``){let e=t.split(`/`),n=e.length;if(e[n-1]!==``)return B(e[n-1]);if(n>1&&e[n-2]!==``)return B(e[n-2])}let n=e.filename();return n===``?(0,f.messageError)(`DriverCannotInferNameForSchema`,{uri:e.toString()}):B(n)}function te(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=ee(n);e=t===void 0?r:t}return[e,o]}})}var ne=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 ne(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 R(e,(0,s.defined)(this._schemaStore),i);for(let[e,t]of this._schemaSources){let n=t.name,r=yield te(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 z(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))}}})),La=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.descriptionAttributeProducer=e.propertyDescriptionsTypeAttributeKind=e.descriptionTypeAttributeKind=e.addDescriptionToSchema=void 0;var t=a(),n=ia(),r=Ia();function i(e,t){t!==void 0&&(e.description=Array.from(t).join(`
@@ -122,7 +122,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
122
122
 
123
123
  `).trim();if(t!==``)return g(t).split(`
124
124
  `).map(e=>e.trim())}var w=new f.TypeAttributeKind(`assignedName`),T=new f.TypeAttributeKind(`assignedPropertyNames`),E=new f.TypeAttributeKind(`assignedMemberNames`),D=new f.TypeAttributeKind(`assignedCaseNames`);e.ConvenienceRenderer=class extends o.Renderer{constructor(e,t){super(e,t),this._alphabetizeProperties=!1}get topLevels(){return this.typeGraph.topLevels}forbiddenNamesForGlobalNamespace(){return[]}forbiddenForObjectProperties(e,t){return{names:[],includeGlobalForbidden:!1}}forbiddenForUnionMembers(e,t){return{names:[],includeGlobalForbidden:!1}}forbiddenForEnumCases(e,t){return{names:[],includeGlobalForbidden:!1}}makeTopLevelDependencyNames(e,t){return[]}makeNamedTypeDependencyNames(e,t){return[]}makeNameForTransformation(e,t){}namedTypeToNameForTopLevel(e){if((0,r.isNamedType)(e))return e}get unionMembersInGlobalNamespace(){return!1}get enumCasesInGlobalNamespace(){return!1}get needsTypeDeclarationBeforeUse(){return!1}canBeForwardDeclared(e){return(0,s.panic)(`If needsTypeDeclarationBeforeUse returns true, canBeForwardDeclared must be implemented`)}unionNeedsName(e){return(0,r.nullableFromUnion)(e)===null}get globalNamespace(){return(0,s.defined)(this._globalNamespace)}get nameStoreView(){return(0,s.defined)(this._nameStoreView)}descriptionForType(e){return C(this.typeGraph.attributeStore.tryGet(p.descriptionTypeAttributeKind,e))}descriptionForClassProperty(e,t){let n=this.typeGraph.attributeStore.tryGet(p.propertyDescriptionsTypeAttributeKind,e);if(n!==void 0)return C(n.get(t))}setUpNaming(){this._nameStoreView=new d.TypeAttributeStoreView(this.typeGraph.attributeStore,w),this._propertyNamesStoreView=new d.TypeAttributeStoreView(this.typeGraph.attributeStore,T),this._memberNamesStoreView=new d.TypeAttributeStoreView(this.typeGraph.attributeStore,E),this._caseNamesStoreView=new d.TypeAttributeStoreView(this.typeGraph.attributeStore,D),this._namesForTransformations=new Map,this._namedTypeNamer=this.makeNamedTypeNamer(),this._unionMemberNamer=this.makeUnionMemberNamer(),this._enumCaseNamer=this.makeEnumCaseNamer(),this._globalForbiddenNamespace=(0,i.keywordNamespace)(`forbidden`,this.forbiddenNamesForGlobalNamespace()),this._otherForbiddenNamespaces=new Map,this._globalNamespace=new i.Namespace(`global`,void 0,[this._globalForbiddenNamespace],[]);let{objects:e,enums:n,unions:r}=this.typeGraph.allNamedTypesSeparated(),a=(0,t.setFilter)(r,e=>this.unionNeedsName(e));for(let[e,t]of this.topLevels)this.nameStoreView.setForTopLevel(e,this.addNameForTopLevel(t,e));for(let t of e){let e=this.addNameForNamedType(t);this.addPropertyNames(t,e)}for(let e of n){let t=this.addNameForNamedType(e);this.addEnumCaseNames(e,t)}for(let e of a){let t=this.addNameForNamedType(e);this.addUnionMemberNames(e,t)}for(let e of this.typeGraph.allTypesUnordered())this.addNameForTransformation(e);return(0,t.setUnion)([this._globalForbiddenNamespace,this._globalNamespace],this._otherForbiddenNamespaces.values())}addDependenciesForNamedType(e,t){let n=this.makeNamedTypeDependencyNames(e,t);for(let e of n)this.globalNamespace.add(e)}makeNameForTopLevel(t,n,r){return new i.SimpleName([n],(0,s.defined)(this._namedTypeNamer),e.topLevelNameOrder)}addNameForTopLevel(e,t){let n=this.namedTypeToNameForTopLevel(e),r=this.makeNameForTopLevel(e,t,n);this.globalNamespace.add(r);let i=this.makeTopLevelDependencyNames(e,r);for(let e of i)this.globalNamespace.add(e);return n!==void 0&&(this.addDependenciesForNamedType(n,r),this.nameStoreView.set(n,r)),r}makeNameForType(e,t,n,r){let a=e.getNames(),o=a.areInferred?r:n;return new i.SimpleName(a.proposedNames,t,o)}makeNameForNamedType(t){return this.makeNameForType(t,(0,s.defined)(this._namedTypeNamer),_,e.inferredNameOrder)}addNameForNamedType(e){let t=this.nameStoreView.tryGet(e);if(t!==void 0)return t;let n=this.globalNamespace.add(this.makeNameForNamedType(e));return this.addDependenciesForNamedType(e,n),this.nameStoreView.set(e,n),n}get typesWithNamedTransformations(){return(0,s.defined)(this._namesForTransformations)}nameForTransformation(e){if((0,h.transformationForType)(e)===void 0)return;let t=(0,s.defined)(this._namesForTransformations).get(e);return t===void 0?(0,s.panic)(`No name for transformation`):t}addNameForTransformation(e){let t=(0,h.transformationForType)(e);if(t===void 0)return;(0,s.assert)((0,s.defined)(this._namesForTransformations).get(e)===void 0,`Tried to give two names to the same transformation`);let n=this.makeNameForTransformation(t,this.nameStoreView.tryGet(t.targetType));n!==void 0&&(this.globalNamespace.add(n),(0,s.defined)(this._namesForTransformations).set(e,n))}processForbiddenWordsInfo(e,t){let n=[],r=[];for(let t of e.names)typeof t==`string`?r.push(t):n.push(t);let a=(0,s.defined)(this._otherForbiddenNamespaces).get(t);r.length>0&&a===void 0&&(a=(0,i.keywordNamespace)(t,r),this._otherForbiddenNamespaces=(0,s.defined)(this._otherForbiddenNamespaces).set(t,a));let o=new Set;return e.includeGlobalForbidden&&(o=o.add((0,s.defined)(this._globalForbiddenNamespace))),a!==void 0&&(o=o.add(a)),{forbiddenNames:new Set(n),forbiddenNamespaces:o}}makeNameForProperty(e,t,n,r,a){let o=this.namerForObjectProperty(e,n);if(o===null)return;let s=`${e.getCombinedName()}_${r}`,c=a===void 0?v:y,l=a===void 0?[r,s]:[a];return new i.SimpleName(l,o,c)}makePropertyDependencyNames(e,t,n,r,i){return[]}addPropertyNames(e,n){let{forbiddenNames:r,forbiddenNamespaces:a}=this.processForbiddenWordsInfo(this.forbiddenForObjectProperties(e,n),`forbidden-for-properties`),o,c=(0,m.objectPropertyNames)(e,this.targetLanguage.name),l=(0,t.mapFilterMap)(e.getSortedProperties(),(t,l)=>{let[u,d]=(0,m.getAccessorName)(c,l),f;if(f=d?new i.FixedName((0,s.defined)(u)):this.makeNameForProperty(e,n,t,l,u),f!==void 0){o===void 0&&(o=new i.Namespace(e.getCombinedName(),this.globalNamespace,a,r)),o.add(f);for(let r of this.makePropertyDependencyNames(e,n,t,l,f))o.add(r);return f}});(0,s.defined)(this._propertyNamesStoreView).set(e,l)}makeNameForUnionMember(e,t,n){let[r,a]=(0,m.unionMemberName)(e,n,this.targetLanguage.name);return a?new i.FixedName((0,s.defined)(r)):new i.DependencyName((0,s.nonNull)(this._unionMemberNamer),S,i=>r===void 0?this.proposeUnionMemberName(e,t,n,i):r)}addUnionMemberNames(e,t){if(this._unionMemberNamer===null)return;let{forbiddenNames:n,forbiddenNamespaces:r}=this.processForbiddenWordsInfo(this.forbiddenForUnionMembers(e,t),`forbidden-for-union-members`),a;a=this.unionMembersInGlobalNamespace?this.globalNamespace:new i.Namespace(e.getCombinedName(),this.globalNamespace,r,n);let o=new Map;for(let n of e.members){let r=this.makeNameForUnionMember(e,t,(0,h.followTargetType)(n));o.set(n,a.add(r))}(0,s.defined)(this._memberNamesStoreView).set(e,o)}makeNameForEnumCase(e,t,n,r){let a=`${e.getCombinedName()}_${n}`,o=r===void 0?b:x,c=r===void 0?[n,a]:[r];return new i.SimpleName(c,(0,s.nonNull)(this._enumCaseNamer),o)}addEnumCaseNames(e,t){if(this._enumCaseNamer===null)return;let{forbiddenNames:n,forbiddenNamespaces:r}=this.processForbiddenWordsInfo(this.forbiddenForEnumCases(e,t),`forbidden-for-enum-cases`),a;a=this.enumCasesInGlobalNamespace?this.globalNamespace:new i.Namespace(e.getCombinedName(),this.globalNamespace,r,n);let o=new Map,c=(0,m.enumCaseNames)(e,this.targetLanguage.name);for(let n of e.cases){let[r,l]=(0,m.getAccessorName)(c,n),u;u=l?new i.FixedName((0,s.defined)(r)):this.makeNameForEnumCase(e,t,n,r),o.set(n,a.add(u))}(0,s.defined)(this._caseNamesStoreView).set(e,o)}childrenOfType(e){let r=this.names;if(e instanceof n.ClassType){let n=(0,s.defined)(this._propertyNamesStoreView).get(e),i=(0,t.mapFilterMap)(e.getProperties(),(e,t)=>{if(n.get(t)!==void 0)return e.type}),a=(0,t.mapSortBy)(i,(e,t)=>(0,s.defined)(r.get((0,s.defined)(n.get(t)))));return new Set(a.values())}return e.getChildren()}get namedUnions(){return(0,s.defined)(this._namedUnions)}get haveNamedUnions(){return this.namedUnions.size>0}get haveNamedTypes(){return(0,s.defined)(this._namedTypes).length>0}get haveUnions(){return(0,s.defined)(this._haveUnions)}get haveMaps(){return(0,s.defined)(this._haveMaps)}get haveOptionalProperties(){return(0,s.defined)(this._haveOptionalProperties)}get enums(){return(0,s.defined)(this._namedEnums)}get haveEnums(){return this.enums.size>0}proposedUnionMemberNameForTypeKind(e){return null}proposeUnionMemberName(e,t,n,i){let a=this.proposedUnionMemberNameForTypeKind(n.kind);if(a!==null)return a;let o=e=>(0,r.matchTypeExhaustive)(e,e=>(0,s.panic)(`none type should have been replaced`),e=>`anything`,e=>`null`,e=>`bool`,e=>`integer`,e=>`double`,e=>`string`,e=>o(e.items)+`_array`,e=>i(this.nameForNamedType(e)),e=>o(e.values)+`_map`,e=>((0,s.assert)(this.targetLanguage.supportsFullObjectType,"Object type should have been replaced in `replaceObjectType`"),i(this.nameForNamedType(e))),e=>`enum`,e=>`union`,e=>e.kind.replace(`-`,`_`));return o(n)}nameForNamedType(e){return this.nameStoreView.get(e)}isForwardDeclaredType(e){return(0,s.defined)(this._declarationIR).forwardedTypes.has(e)}isImplicitCycleBreaker(e){return(0,s.panic)(`A renderer that invokes isCycleBreakerType must implement isImplicitCycleBreaker`)}canBreakCycles(e){return!0}isCycleBreakerType(e){return this._cycleBreakerTypes===void 0&&(this._cycleBreakerTypes=(0,u.cycleBreakerTypesForGraph)(this.typeGraph,e=>this.isImplicitCycleBreaker(e),e=>this.canBreakCycles(e))),this._cycleBreakerTypes.has(e)}forEachTopLevel(e,n,r){let i;return i=r===void 0?this.topLevels:(0,t.mapFilter)(this.topLevels,r),this.forEachWithBlankLines(i,e,(e,t,r)=>n(e,this.nameStoreView.getForTopLevel(t),r))}forEachDeclaration(e,n){this.forEachWithBlankLines((0,t.iterableEnumerate)((0,s.defined)(this._declarationIR).declarations),e,(e,t,r)=>n(e,r))}setAlphabetizeProperties(e){this._alphabetizeProperties=e}getAlphabetizeProperties(){return this._alphabetizeProperties}propertyCount(e){return(0,s.defined)(this._propertyNamesStoreView).get(e).size}sortClassProperties(e,n){return this._alphabetizeProperties?(0,t.mapSortBy)(e,(e,t)=>{let r=(0,s.defined)(n.get(t));return(0,s.defined)(this.names.get(r))}):e}forEachClassProperty(e,t,n){let r=(0,s.defined)(this._propertyNamesStoreView).get(e),i=this.sortClassProperties(e.getProperties(),r);this.forEachWithBlankLines(i,t,(e,t,i)=>{n((0,s.defined)(r.get(t)),t,e,i)})}nameForUnionMember(e,t){return(0,s.defined)((0,s.defined)(this._memberNamesStoreView).get(e).get(t))}nameForEnumCase(e,t){let n=(0,s.defined)(this._caseNamesStoreView).get(e);return(0,s.defined)(n.get(t))}forEachUnionMember(e,n,r,i,a){let o=n===null?e.members:n;i===null&&(i=e=>(0,s.defined)(this.names.get(e)));let c=(0,t.mapFilter)((0,s.defined)(this._memberNamesStoreView).get(e),(e,t)=>o.has(t)),l=(0,t.mapSortBy)(c,i);this.forEachWithBlankLines(l,r,a)}forEachEnumCase(e,n,r){let i=(0,s.defined)(this._caseNamesStoreView).get(e),a=(0,t.mapSortBy)(i,e=>(0,s.defined)(this.names.get(e)));this.forEachWithBlankLines(a,n,r)}forEachTransformation(e,t){this.forEachWithBlankLines((0,s.defined)(this._namesForTransformations),e,t)}forEachSpecificNamedType(e,t,n){this.forEachWithBlankLines(t,e,(e,t,r)=>n(e,this.nameForNamedType(e),r))}forEachObject(e,t){this.forEachSpecificNamedType(e,(0,s.defined)(this._namedObjects).entries(),t)}forEachEnum(e,t){this.forEachSpecificNamedType(e,this.enums.entries(),t)}forEachUnion(e,t){this.forEachSpecificNamedType(e,this.namedUnions.entries(),t)}forEachUniqueUnion(e,t,n){let r=new Map;for(let e of this.namedUnions){let n=t(e);r.has(n)||r.set(n,e)}this.forEachWithBlankLines(r,e,n)}forEachNamedType(e,t,r,i){this.forEachWithBlankLines((0,s.defined)(this._namedTypes).entries(),e,(e,a,o)=>{let c=this.nameForNamedType(e);if(e instanceof n.ObjectType)t(e,c,o);else if(e instanceof n.EnumType)r(e,c,o);else if(e instanceof n.UnionType)i(e,c,o);else return(0,s.panic)(`Named type that's neither a class nor union`)})}sourcelikeToString(e){return(0,l.serializeRenderResult)((0,l.sourcelikeToSource)(e),this.names,``).lines.join(`
125
- `)}get commentLineStart(){return`// `}emitCommentLines(e,t,n,r,i){t===void 0&&(t=this.commentLineStart),i===void 0&&(i=t),n!==void 0&&this.emitLine(n);let a=!0;for(let n of e){let e=a?i:t;this.sourcelikeToString(n)===``&&(e=(0,c.trimEnd)(e)),this.emitLine(e,n),a=!1}r!==void 0&&this.emitLine(r)}emitDescription(e){e!==void 0&&this.emitDescriptionBlock(e)}emitDescriptionBlock(e){this.emitCommentLines(e)}emitPropertyTable(e,t){let n=[],r=()=>{n.length!==0&&(this.emitTable(n),n=[])};this.forEachClassProperty(e,`none`,(i,a,o)=>{let s=this.descriptionForClassProperty(e,a);s!==void 0&&(r(),this.emitDescription(s)),n.push(t(i,a,o))}),r()}processGraph(){this._declarationIR=(0,u.declarationsForGraph)(this.typeGraph,this.needsTypeDeclarationBeforeUse?e=>this.canBeForwardDeclared(e):void 0,e=>this.childrenOfType(e),e=>e instanceof n.UnionType?this.unionNeedsName(e):(0,r.isNamedType)(e));let e=this.typeGraph.allTypesUnordered();this._haveUnions=(0,t.iterableSome)(e,e=>e instanceof n.UnionType),this._haveMaps=(0,t.iterableSome)(e,e=>e instanceof n.MapType);let i=(0,t.setFilter)(e,e=>e instanceof n.ClassType);this._haveOptionalProperties=(0,t.iterableSome)(i,e=>(0,t.mapSome)(e.getProperties(),e=>e.isOptional)),this._namedTypes=this._declarationIR.declarations.filter(e=>e.kind===`define`).map(e=>e.type);let{objects:a,enums:o,unions:s}=(0,r.separateNamedTypes)(this._namedTypes);this._namedObjects=new Set(a),this._namedEnums=new Set(o),this._namedUnions=new Set(s)}emitSource(e){this.processGraph(),this.emitSourceStructure(e)}forEachType(e){let t=new Set,n=new Set,r=Array.from(this.typeGraph.topLevels.values());function i(i){if(!t.has(i)){for(let e of i.getChildren())r.push(e);t.add(i),n.add(e(i))}}for(;;){let e=r.pop();if(e===void 0)break;i(e)}return n}}})),Va=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultDateTimeRecognizer=void 0;var t=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,29,31,30,31,30,31,31,30,31,30,31],r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i,i=/t|\s/i;e.DefaultDateTimeRecognizer=class{isDate(e){let r=e.match(t);if(r===null)return!1;let i=+r[2],a=+r[3];return i>=1&&i<=12&&a>=1&&a<=n[i]}isTime(e){let t=e.match(r);if(t===null)return!1;let n=+t[1],i=+t[2],a=+t[3];return n<=23&&i<=59&&a<=59}isDateTime(e){let t=e.split(i);return t.length===2&&this.isDate(t[0])&&this.isTime(t[1])}}})),Ha=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TargetLanguage=void 0;var t=a(),n=Oa(),r=Q(),i=Va();e.TargetLanguage=class{constructor(e,t,n){this.displayName=e,this.names=t,this.extension=n}get optionDefinitions(){return this.getOptions().map(e=>e.definition)}get cliOptionDefinitions(){let e=[],t=[];for(let{cliDefinitions:n}of this.getOptions())e=e.concat(n.actual),t=t.concat(n.display);return{actual:e,display:t}}get name(){return(0,r.defined)(this.names[0])}renderGraphAndSerialize(e,i,a,o,s,c){c===void 0&&(c=this.defaultIndentation);let l={typeGraph:e,leadingComments:o},u=this.makeRenderer(l,s);u.setAlphabetizeProperties!==void 0&&u.setAlphabetizeProperties(a);let d=u.render(i);return(0,t.mapMap)(d.sources,e=>(0,n.serializeRenderResult)(e,d.names,(0,r.defined)(c)))}get defaultIndentation(){return` `}get stringTypeMapping(){return new Map}get supportsOptionalClassProperties(){return!1}get supportsUnionsWithBothNumberTypes(){return!1}get supportsFullObjectType(){return!1}needsTransformerForType(e){return!1}get dateTimeRecognizer(){return new i.DefaultDateTimeRecognizer}}})),Ua=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SystemTextJsonCSharpRenderer=e.systemTextJsonCSharpOptions=e.NewtonsoftCSharpRenderer=e.newtonsoftCSharpOptions=e.CSharpRenderer=e.CSharpTargetLanguage=e.cSharpOptions=e.AccessModifier=e.Framework=void 0;var n=a(),r=Ea(),i=_a(),o=Oa(),s=fa(),c=Q(),l=Da(),u=Ba(),d=Ha(),f=aa(),p=ka(),m=Ra(),h=Fa(),g=t(da()),_;(function(e){e[e.Newtonsoft=0]=`Newtonsoft`,e[e.SystemTextJson=1]=`SystemTextJson`})(_=e.Framework||={});var v;(function(e){e[e.None=0]=`None`,e[e.Public=1]=`Public`,e[e.Internal=2]=`Internal`})(v=e.AccessModifier||={});function y(e){return e}function b(e){if(e instanceof r.UnionType){let t=(0,i.nullableFromUnion)(e);return t===null?`automatic`:b(t)===`manual`?`nullable`:`none`}if(e instanceof r.ArrayType){let t=b(e.items);return t===`manual`||t===`nullable`?`automatic`:`none`}return e instanceof r.EnumType?`automatic`:e.kind===`double`?(0,h.minMaxValueForType)(e)===void 0?`none`:`manual`:e.kind===`integer-string`||e.kind===`bool-string`?`manual`:e.kind===`string`?(0,h.minMaxLengthForType)(e)===void 0?`none`:`manual`:`none`}function x(e){let t=e.targetType;return t instanceof r.EnumType||t instanceof r.UnionType&&(0,i.nullableFromUnion)(t)===null}function S(e){switch(e.kind){case`date-time`:return`DateTimeOffset`;case`uuid`:return`Guid`;case`uri`:return`Uri`;default:return(0,c.panic)(`Transformed string type ${e.kind} not supported`)}}e.cSharpOptions={framework:new f.EnumOption(`framework`,`Serialization framework`,[[`NewtonSoft`,_.Newtonsoft],[`SystemTextJson`,_.SystemTextJson]],`NewtonSoft`),useList:new f.EnumOption(`array-type`,`Use T[] or List<T>`,[[`array`,!1],[`list`,!0]]),dense:new f.EnumOption(`density`,`Property density`,[[`normal`,!1],[`dense`,!0]],`normal`,`secondary`),namespace:new f.StringOption(`namespace`,`Generated namespace`,`NAME`,`QuickType`),version:new f.EnumOption(`csharp-version`,`C# version`,[[`5`,5],[`6`,6]],`6`,`secondary`),virtual:new f.BooleanOption(`virtual`,`Generate virtual properties`,!1),typeForAny:new f.EnumOption(`any-type`,`Type to use for "any"`,[[`object`,`object`],[`dynamic`,`dynamic`]],`object`,`secondary`),useDecimal:new f.EnumOption(`number-type`,`Type to use for numbers`,[[`double`,!1],[`decimal`,!0]],`double`,`secondary`),features:new f.EnumOption(`features`,`Output features`,[[`complete`,{namespaces:!0,helpers:!0,attributes:!0}],[`attributes-only`,{namespaces:!0,helpers:!1,attributes:!0}],[`just-types-and-namespace`,{namespaces:!0,helpers:!1,attributes:!1}],[`just-types`,{namespaces:!0,helpers:!1,attributes:!1}]]),baseclass:new f.EnumOption(`base-class`,`Base class`,[[`EntityData`,`EntityData`],[`Object`,void 0]],`Object`,`secondary`),checkRequired:new f.BooleanOption(`check-required`,`Fail if required properties are missing`,!1)},e.CSharpTargetLanguage=class extends d.TargetLanguage{constructor(){super(`C#`,[`cs`,`csharp`],`cs`)}getOptions(){return[e.cSharpOptions.framework,e.cSharpOptions.namespace,e.cSharpOptions.version,e.cSharpOptions.dense,e.cSharpOptions.useList,e.cSharpOptions.useDecimal,e.cSharpOptions.typeForAny,e.cSharpOptions.virtual,e.cSharpOptions.features,e.cSharpOptions.baseclass,e.cSharpOptions.checkRequired]}get stringTypeMapping(){let e=new Map;return e.set(`date`,`date-time`),e.set(`time`,`date-time`),e.set(`date-time`,`date-time`),e.set(`uuid`,`uuid`),e.set(`uri`,`uri`),e.set(`integer-string`,`integer-string`),e.set(`bool-string`,`bool-string`),e}get supportsUnionsWithBothNumberTypes(){return!0}get supportsOptionalClassProperties(){return!0}needsTransformerForType(e){let t=b(e);return t!==`none`&&t!==`nullable`}makeRenderer(t,n){let r=(0,f.getOptionValues)(e.cSharpOptions,n);switch(r.framework){case _.Newtonsoft:return new N(this,t,(0,f.getOptionValues)(e.newtonsoftCSharpOptions,n));case _.SystemTextJson:return new P(this,t,(0,f.getOptionValues)(e.systemTextJsonCSharpOptions,n));default:return(0,c.assertNever)(r.framework)}}};var C=(0,l.funPrefixNamer)(`namer`,A),w=`J`,T=`R`,E=`N`;function D(e){return g.default.isAlphabetic(e)?!0:e===95}function O(e){let t=g.default.getCategory(e);return[`Nd`,`Pc`,`Mn`,`Mc`].indexOf(t)>=0||D(e)}var k=(0,s.utf16LegalizeCharacters)(O);function A(e){let t=(0,s.splitIntoWords)(e);return(0,s.combineWords)(t,k,s.firstUpperWordStyle,s.firstUpperWordStyle,s.firstUpperWordStyle,s.firstUpperWordStyle,``,D)}function j(e){return e instanceof r.UnionType?(0,i.nullableFromUnion)(e)===null:[`integer`,`double`,`bool`,`enum`,`date-time`,`uuid`].indexOf(e.kind)>=0}var M=class extends u.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._csOptions=n}forbiddenNamesForGlobalNamespace(){return[`QuickType`,`Type`,`System`,`Console`,`Exception`,`DateTimeOffset`,`Guid`,`Uri`]}forbiddenForObjectProperties(e,t){return{names:[t,`ToString`,`GetHashCode`,`Finalize`,`Equals`,`GetType`,`MemberwiseClone`,`ReferenceEquals`],includeGlobalForbidden:!1}}forbiddenForUnionMembers(e,t){return{names:[t],includeGlobalForbidden:!0}}makeNamedTypeNamer(){return C}namerForObjectProperty(){return C}makeUnionMemberNamer(){return C}makeEnumCaseNamer(){return C}unionNeedsName(e){return(0,i.nullableFromUnion)(e)===null}namedTypeToNameForTopLevel(e){return(0,i.directlyReachableSingleNamedType)(e)}emitBlock(e,t=!1){this.emitLine(`{`),this.indent(e),this.emitLine(`}`,t?`;`:``)}get doubleType(){return this._csOptions.useDecimal?`decimal`:`double`}csType(e,t=m.followTargetType,n=!1){let r=t(e);return(0,i.matchType)(r,e=>(0,o.maybeAnnotated)(n,p.anyTypeIssueAnnotation,this._csOptions.typeForAny),e=>(0,o.maybeAnnotated)(n,p.nullTypeIssueAnnotation,this._csOptions.typeForAny),e=>`bool`,e=>`long`,e=>this.doubleType,e=>`string`,e=>{let r=this.csType(e.items,t,n);return this._csOptions.useList?[`List<`,r,`>`]:[r,`[]`]},e=>this.nameForNamedType(e),e=>[`Dictionary<string, `,this.csType(e.values,t,n),`>`],e=>this.nameForNamedType(e),e=>{let t=(0,i.nullableFromUnion)(e);return t===null?this.nameForNamedType(e):this.nullableCSType(t,y)},e=>S(e))}nullableCSType(e,t=m.followTargetType,n=!1){e=(0,m.followTargetType)(e);let r=this.csType(e,t,n);return j(e)?[r,`?`]:r}baseclassForType(e){}emitType(e,t,n,r,i,a){switch(t){case v.Public:n=[`public `,n];break;case v.Internal:n=[`internal `,n]}this.emitDescription(e),i===void 0?this.emitLine(n,` `,r):this.emitLine(n,` `,r,` : `,i),this.emitBlock(a)}attributesForProperty(e,t,n,r){}propertyDefinition(e,t,n,r){let i=e.type,a=e.isOptional?this.nullableCSType(i,m.followTargetType,!0):this.csType(i,m.followTargetType,!0),o=[`public `];return this._csOptions.virtual&&o.push(`virtual `),[...o,a,` `,t,` { get; set; }`]}emitDescriptionBlock(e){let t=`/// <summary>`;this._csOptions.dense?this.emitLine(t,e.join(`; `),`</summary>`):this.emitCommentLines(e,`/// `,t,`/// </summary>`)}blankLinesBetweenAttributes(){return!1}emitClassDefinition(e,t){this.emitType(this.descriptionForType(e),v.Public,`partial class`,t,this.baseclassForType(e),()=>{if(e.getProperties().size===0)return;let t=this.blankLinesBetweenAttributes()?`interposing`:`none`,n=[],r=!0,i;this.forEachClassProperty(e,t,(t,a,o)=>{let s=this.attributesForProperty(o,t,e,a),c=this.descriptionForClassProperty(e,a),l=this.propertyDefinition(o,t,e,a);if(s===void 0)(!r&&c!==void 0||i!==void 0)&&this.ensureBlankLine(),this.emitDescription(c),this.emitLine(l);else if(this._csOptions.dense&&s.length>0){let e=c===void 0?``:` // ${c.join(`; `)}`;n.push([s,` `,l,e])}else{this.emitDescription(c);for(let e of s)this.emitLine(e);this.emitLine(l)}r=!1,i=c}),n.length>0&&this.emitTable(n)})}emitUnionDefinition(e,t){let r=(0,i.removeNullFromUnion)(e,!0)[1];this.emitType(this.descriptionForType(e),v.Public,`partial struct`,t,this.baseclassForType(e),()=>{this.forEachUnionMember(e,r,`none`,null,(e,t)=>{let n=this.nullableCSType(t);this.emitLine(`public `,n,` `,e,`;`)}),this.ensureBlankLine();let i=Array.from(r).map(t=>[this.nameForUnionMember(e,t),` == null`]);this.ensureBlankLine(),this.forEachUnionMember(e,r,`none`,null,(e,n)=>{let r=this.csType(n);this.emitExpressionMember([`public static implicit operator `,t,`(`,r,` `,e,`)`],[`new `,t,` { `,e,` = `,e,` }`])}),e.findMember(`null`)!==void 0&&this.emitExpressionMember(`public bool IsNull`,(0,n.arrayIntercalate)(` && `,i),!0)})}emitEnumDefinition(e,t){let n=[];this.forEachEnumCase(e,`none`,e=>{n.length>0&&n.push(`, `),n.push(e)}),this.emitDescription(this.descriptionForType(e)),this.emitLine(`public enum `,t,` { `,n,` };`)}emitExpressionMember(e,t,n=!1){this._csOptions.version===5?(this.emitLine(e),this.emitBlock(()=>{let e=[`return `,t,`;`];n?(this.emitLine(`get`),this.emitBlock(()=>this.emitLine(e))):this.emitLine(e)})):this.emitLine(e,` => `,t,`;`)}emitTypeSwitch(e,t,n,r,i){(0,c.assert)(!r||n,`Can only have return with block`);for(let a of e)this.emitLine(`if (`,t(a),`)`),n?this.emitBlock(()=>{i(a),r&&this.emitLine(`return;`)}):this.indent(()=>i(a))}emitUsing(e){this.emitLine(`using `,e,`;`)}emitUsings(){for(let e of[`System`,`System.Collections.Generic`])this.emitUsing(e)}emitRequiredHelpers(){}emitTypesAndSupport(){this.forEachObject(`leading-and-interposing`,(e,t)=>this.emitClassDefinition(e,t)),this.forEachEnum(`leading-and-interposing`,(e,t)=>this.emitEnumDefinition(e,t)),this.forEachUnion(`leading-and-interposing`,(e,t)=>this.emitUnionDefinition(e,t)),this.emitRequiredHelpers()}emitDefaultLeadingComments(){}emitDefaultFollowingComments(){}needNamespace(){return!0}emitSourceStructure(){this.leadingComments===void 0?this.emitDefaultLeadingComments():this.emitCommentLines(this.leadingComments),this.ensureBlankLine(),this.needNamespace()?(this.emitLine(`namespace `,this._csOptions.namespace),this.emitBlock(()=>{this.emitUsings(),this.emitTypesAndSupport()})):(this.emitUsings(),this.emitTypesAndSupport()),this.emitDefaultFollowingComments()}};e.CSharpRenderer=M,e.newtonsoftCSharpOptions=Object.assign({},e.cSharpOptions,{});var N=class extends M{constructor(e,t,n){super(e,t,n),this._options=n,this._enumExtensionsNames=new Map,this._needHelpers=n.features.helpers,this._needAttributes=n.features.attributes,this._needNamespaces=n.features.namespaces}forbiddenNamesForGlobalNamespace(){let e=[`Converter`,`JsonConverter`,`JsonSerializer`,`JsonWriter`,`JsonToken`,`Serialize`,`Newtonsoft`,`MetadataPropertyHandling`,`DateParseHandling`,`FromJson`,`Required`];return this._options.dense&&e.push(`J`,`R`,`N`),this._options.baseclass!==void 0&&e.push(this._options.baseclass),super.forbiddenNamesForGlobalNamespace().concat(e)}forbiddenForObjectProperties(e,t){let n=super.forbiddenForObjectProperties(e,t);return n.names=n.names.concat([`ToJson`,`FromJson`,`Required`]),n}makeNameForTransformation(e,t){if(t===void 0){let t=e.transformer;return t instanceof m.DecodingTransformer&&t.consumer!==void 0&&(t=t.consumer),new l.SimpleName([`${t.kind}_converter`],C,u.inferredNameOrder+30)}return new l.DependencyName(C,t.order+30,e=>`${e(t)}_converter`)}makeNamedTypeDependencyNames(e,t){if(!(e instanceof r.EnumType))return[];let n=new l.DependencyName(C,t.order+30,e=>`${e(t)}_extensions`);return this._enumExtensionsNames.set(t,n),[n]}emitUsings(){if(!(!this._needAttributes&&!this._needHelpers)){super.emitUsings(),this.ensureBlankLine();for(let e of[`System.Globalization`,`Newtonsoft.Json`,`Newtonsoft.Json.Converters`])this.emitUsing(e);this._options.dense&&(this.emitUsing([w,` = Newtonsoft.Json.JsonPropertyAttribute`]),this.emitUsing([T,` = Newtonsoft.Json.Required`]),this.emitUsing([E,` = Newtonsoft.Json.NullValueHandling`])),this._options.baseclass===`EntityData`&&this.emitUsing(`Microsoft.Azure.Mobile.Server`)}}baseclassForType(e){return this._options.baseclass}emitDefaultLeadingComments(){this._needHelpers&&(this.emitLine(`// <auto-generated />`),this.emitLine(`//`),this.emitLine(`// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do`,this.topLevels.size===1?``:` one of these`,`:`),this.emitLine(`//`),this.emitLine(`// using `,this._options.namespace,`;`),this.emitLine(`//`),this.forEachTopLevel(`none`,(e,t)=>{let n;n=e instanceof r.EnumType?[`JsonConvert.DeserializeObject<`,t,`>(jsonString)`]:[t,`.FromJson(jsonString)`],this.emitLine(`// var `,(0,o.modifySource)(s.camelCase,t),` = `,n,`;`)}))}converterForType(e){let t=(0,m.transformationForType)(e);if(t===void 0&&e instanceof r.UnionType){let n=(0,i.nullableFromUnion)(e);n!==null&&(e=n,t=(0,m.transformationForType)(e))}if(t!==void 0&&!x(t))return(0,c.defined)(this.nameForTransformation(e))}attributesForProperty(e,t,n,r){if(!this._needAttributes)return;let i=[],a=this._options.dense?w:`JsonProperty`,o=(0,s.utf16StringEscape)(r),c=(0,m.followTargetType)(e.type).isNullable,l=e.isOptional,u=this._options.dense?`R`:`Required`,d=this._options.dense?`N`:`NullValueHandling`,f=l&&!c?[`, NullValueHandling = `,d,`.Ignore`]:[],p;p=!this._options.checkRequired||l&&c?[f]:l&&!c?[`, Required = `,u,`.DisallowNull`,f]:!l&&c?[`, Required = `,u,`.AllowNull`]:[`, Required = `,u,`.Always`,f],i.push([`[`,a,`("`,o,`"`,p,`)]`]);let h=this.converterForType(e.type);return h!==void 0&&i.push([`[JsonConverter(typeof(`,h,`))]`]),i}blankLinesBetweenAttributes(){return this._needAttributes&&!this._options.dense}topLevelResultType(e){return e.kind===`any`||e.kind===`none`?`object`:this.csType(e)}emitFromJsonForTopLevel(e,t){if(e instanceof r.EnumType)return;let n,i,a=this.namedTypeToNameForTopLevel(e);a===void 0?(n=``,i=`class`):(n=`partial `,i=a instanceof r.ClassType?`class`:`struct`);let o=this.topLevelResultType(e);this.emitType(void 0,v.Public,[n,i],t,this.baseclassForType(e),()=>{this.emitExpressionMember([`public static `,o,` FromJson(string json)`],[`JsonConvert.DeserializeObject<`,o,`>(json, `,this._options.namespace,`.Converter.Settings)`])})}emitDecoderSwitch(e){this.emitLine(`switch (reader.TokenType)`),this.emitBlock(e)}emitTokenCase(e){this.emitLine(`case JsonToken.`,e,`:`)}emitThrow(e){this.emitLine(`throw new Exception(`,e,`);`)}deserializeTypeCode(e){return[`serializer.Deserialize<`,e,`>(reader)`]}serializeValueCode(e){return[`serializer.Serialize(writer, `,e,`)`]}emitSerializeClass(){this.emitType(void 0,v.Public,`static class`,`Serialize`,void 0,()=>{let e=new Set;this.forEachTopLevel(`none`,t=>{e.has(t)||(e.add(t),this.emitExpressionMember([`public static string ToJson(this `,this.topLevelResultType(t),` self)`],[`JsonConvert.SerializeObject(self, `,this._options.namespace,`.Converter.Settings)`]))})})}emitCanConvert(e){this.emitExpressionMember(`public override bool CanConvert(Type t)`,e)}emitReadJson(e){this.emitLine(`public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)`),this.emitBlock(e)}emitWriteJson(e,t){this.emitLine(`public override void WriteJson(JsonWriter writer, object `,e,`, JsonSerializer serializer)`),this.emitBlock(t)}converterObject(e){return[e,`.Singleton`]}emitConverterClass(){this.emitType(void 0,v.Internal,`static class`,[`Converter`],void 0,()=>{this.emitLine(`public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings`),this.emitBlock(()=>{this.emitLine(`MetadataPropertyHandling = MetadataPropertyHandling.Ignore,`),this.emitLine(`DateParseHandling = DateParseHandling.None,`),this.emitLine(`Converters =`),this.emitLine(`{`),this.indent(()=>{for(let[e,t]of this.typesWithNamedTransformations)x((0,c.defined)((0,m.transformationForType)(e)))&&this.emitLine(this.converterObject(t),`,`);this.emitLine(`new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }`)}),this.emitLine(`},`)},!0)})}emitDecoderTransformerCase(e,t,n,r,i){if(n!==void 0){for(let t of e)this.emitTokenCase(t);this.indent(()=>{this.emitDecodeTransformer(n,r,i,t)||this.emitLine(`break;`)})}}emitConsume(e,t,n,r){return t===void 0?(r(e),!0):this.emitTransformer(e,t,n,r)}emitDecodeTransformer(e,t,n,i=`value`){if(e instanceof m.DecodingTransformer){let r=e.sourceType,a=this.converterForType(t);if(a!==void 0){let e=this.csType(t);this.emitLine(`var converter = `,this.converterObject(a),`;`),this.emitLine(`var `,i,` = (`,e,`)converter.ReadJson(reader, typeof(`,e,`), null, serializer);`)}else if(r.kind!==`null`){let e=t.kind===`double`?t:r;this.emitLine(`var `,i,` = `,this.deserializeTypeCode(this.csType(e)),`;`)}return this.emitConsume(i,e.consumer,t,n)}if(e instanceof m.ArrayDecodingTransformer){if(!(t instanceof r.ArrayType))return(0,c.panic)(`Array decoding must produce an array type`);this.emitLine(`reader.Read();`),this.emitLine(`var `,i,` = new List<`,this.csType(t.items),`>();`),this.emitLine(`while (reader.TokenType != JsonToken.EndArray)`),this.emitBlock(()=>{this.emitDecodeTransformer(e.itemTransformer,e.itemTargetType,e=>this.emitLine(i,`.Add(`,e,`);`),`arrayItem`),this.emitLine(`reader.Read();`)});let a=i;return this._options.useList||(a=[a,`.ToArray()`]),n(a),!0}return e instanceof m.DecodingChoiceTransformer?(this.emitDecoderSwitch(()=>{let r=e.nullTransformer;r!==void 0&&(this.emitTokenCase(`Null`),this.indent(()=>{this.emitDecodeTransformer(r,t,n,`null`)||this.emitLine(`break`)})),this.emitDecoderTransformerCase([`Integer`],`integerValue`,e.integerTransformer,t,n),this.emitDecoderTransformerCase(e.integerTransformer===void 0?[`Integer`,`Float`]:[`Float`],`doubleValue`,e.doubleTransformer,t,n),this.emitDecoderTransformerCase([`Boolean`],`boolValue`,e.boolTransformer,t,n),this.emitDecoderTransformerCase([`String`,`Date`],`stringValue`,e.stringTransformer,t,n),this.emitDecoderTransformerCase([`StartObject`],`objectValue`,e.objectTransformer,t,n),this.emitDecoderTransformerCase([`StartArray`],`arrayValue`,e.arrayTransformer,t,n)}),!1):(0,c.panic)(`Unknown transformer`)}stringCaseValue(e,t){return e.kind===`string`?[`"`,(0,s.utf16StringEscape)(t),`"`]:e instanceof r.EnumType?[this.nameForNamedType(e),`.`,this.nameForEnumCase(e,t)]:(0,c.panic)(`Type ${e.kind} does not have string cases`)}emitTransformer(e,t,a,o){function s(e){return e===void 0?a:(0,m.followTargetType)(e.sourceType)}if(t instanceof m.ChoiceTransformer){let n=t.transformers;if(n.length>1&&n.every(e=>e instanceof m.StringMatchTransformer))return this.emitLine(`switch (`,e,`)`),this.emitBlock(()=>{for(let t of n){let n=t,r=this.stringCaseValue((0,m.followTargetType)(n.sourceType),n.stringCase);this.emitLine(`case `,r,`:`),this.indent(()=>{this.emitTransformer(e,n.transformer,a,o)||this.emitLine(`break;`)})}}),!1;for(let t of n)this.emitTransformer(e,t,a,o)}else if(t instanceof m.UnionMemberMatchTransformer){let n=t.memberType,r=(0,i.nullableFromUnion)(t.sourceType),s,c;r===null?n.kind===`null`?(s=[e,`.IsNull`],c=`null`):(c=[e,`.`,this.nameForUnionMember(t.sourceType,n)],s=[c,` != null`]):n.kind===`null`?(s=[e,` == null`],c=`null`):(s=[e,` != null`],c=e),n.kind!==`null`&&j(n)&&(c=[c,`.Value`]),this.emitLine(`if (`,s,`)`),this.emitBlock(()=>this.emitTransformer(c,t.transformer,a,o))}else if(t instanceof m.StringMatchTransformer){let n=this.stringCaseValue((0,m.followTargetType)(t.sourceType),t.stringCase);this.emitLine(`if (`,e,` == `,n,`)`),this.emitBlock(()=>this.emitTransformer(e,t.transformer,a,o))}else if(t instanceof m.EncodingTransformer){let n=this.converterForType(t.sourceType);return n===void 0?this.emitLine(this.serializeValueCode(e),`;`):(this.emitLine(`var converter = `,this.converterObject(n),`;`),this.emitLine(`converter.WriteJson(writer, `,e,`, serializer);`)),o([]),!0}else if(t instanceof m.ArrayEncodingTransformer){this.emitLine(`writer.WriteStartArray();`);let n=`arrayItem`;return this.emitLine(`foreach (var `,n,` in `,e,`)`),this.emitBlock(()=>{this.emitTransformer(n,t.itemTransformer,t.itemTargetType,()=>{})}),this.emitLine(`writer.WriteEndArray();`),o([]),!0}else if(t instanceof m.ParseStringTransformer){let n=t.consumer===void 0?a:t.consumer.sourceType;switch(n.kind){case`date-time`:this.emitLine(`DateTimeOffset dt;`),this.emitLine(`if (DateTimeOffset.TryParse(`,e,`, out dt))`),this.emitBlock(()=>this.emitConsume(`dt`,t.consumer,a,o));break;case`uuid`:this.emitLine(`Guid guid;`),this.emitLine(`if (Guid.TryParse(`,e,`, out guid))`),this.emitBlock(()=>this.emitConsume(`guid`,t.consumer,a,o));break;case`uri`:this.emitLine(`try`),this.emitBlock(()=>{this.emitLine(`var uri = new Uri(`,e,`);`),this.emitConsume(`uri`,t.consumer,a,o)}),this.emitLine(`catch (UriFormatException) {}`);break;case`integer`:this.emitLine(`long l;`),this.emitLine(`if (Int64.TryParse(`,e,`, out l))`),this.emitBlock(()=>this.emitConsume(`l`,t.consumer,a,o));break;case`bool`:this.emitLine(`bool b;`),this.emitLine(`if (Boolean.TryParse(`,e,`, out b))`),this.emitBlock(()=>this.emitConsume(`b`,t.consumer,a,o));break;default:return(0,c.panic)(`Parsing string to ${n.kind} not supported`)}}else if(t instanceof m.StringifyTransformer)switch(t.sourceType.kind){case`date-time`:return this.emitConsume([e,`.ToString("o", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`uuid`:return this.emitConsume([e,`.ToString("D", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`integer`:case`uri`:return this.emitConsume([e,`.ToString()`],t.consumer,a,o);case`bool`:return this.emitLine(`var boolString = `,e,` ? "true" : "false";`),this.emitConsume(`boolString`,t.consumer,a,o);default:return(0,c.panic)(`Stringifying ${t.sourceType.kind} not supported`)}else if(t instanceof m.StringProducerTransformer){let e=this.stringCaseValue(s(t.consumer),t.result);return this.emitConsume(e,t.consumer,a,o)}else if(t instanceof m.MinMaxLengthCheckTransformer){let r=t.minLength,i=t.maxLength,s=[];return r!==void 0&&s.push([e,`.Length >= `,r.toString()]),i!==void 0&&s.push([e,`.Length <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.MinMaxValueTransformer){let r=t.minimum,i=t.maximum,s=[];return r!==void 0&&s.push([e,` >= `,r.toString()]),i!==void 0&&s.push([e,` <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.UnionInstantiationTransformer){if(!(a instanceof r.UnionType))return(0,c.panic)(`Union instantiation transformer must produce a union type`);if((0,i.nullableFromUnion)(a)!==null)o(e);else{let n=this.nameForNamedType(a),r;r=t.sourceType.kind===`null`?` `:[` `,this.nameForUnionMember(a,t.sourceType),` = `,e,` `],o([`new `,n,` {`,r,`}`])}return!0}else return(0,c.panic)(`Unknown transformer`);return!1}emitTransformation(e,t){let n=(0,c.defined)((0,m.transformationForType)(t)),i=n.reverse,a=n.targetType,o=n.transformer;this.emitType(void 0,v.Internal,`class`,e,`JsonConverter`,()=>{let t=this.csType(a),n=[`t == typeof(`,t,`)`],s=j(a);s&&(n=[n,` || t == typeof(`,t,`?)`]),this.emitCanConvert(n),this.ensureBlankLine(),this.emitReadJson(()=>{s&&!(a instanceof r.UnionType)&&this.emitLine(`if (reader.TokenType == JsonToken.Null) return null;`),this.emitDecodeTransformer(o,a,e=>this.emitLine(`return `,e,`;`))||this.emitThrow([`"Cannot unmarshal type `,t,`"`])}),this.ensureBlankLine(),this.emitWriteJson(`untypedValue`,()=>{s&&!(a instanceof r.UnionType)&&(this.emitLine(`if (untypedValue == null)`),this.emitBlock(()=>{this.emitLine(`serializer.Serialize(writer, null);`),this.emitLine(`return;`)})),this.emitLine(`var value = (`,t,`)untypedValue;`),this.emitTransformer(`value`,i.transformer,i.targetType,()=>this.emitLine(`return;`))||this.emitThrow([`"Cannot marshal type `,t,`"`])}),this.ensureBlankLine(),this.emitLine(`public static readonly `,e,` Singleton = new `,e,`();`)})}emitRequiredHelpers(){this._needHelpers&&(this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitFromJsonForTopLevel(e,t)),this.ensureBlankLine(),this.emitSerializeClass()),(this._needHelpers||this._needAttributes&&(this.haveNamedUnions||this.haveEnums))&&(this.ensureBlankLine(),this.emitConverterClass(),this.forEachTransformation(`leading-and-interposing`,(e,t)=>this.emitTransformation(e,t)))}needNamespace(){return this._needNamespaces}};e.NewtonsoftCSharpRenderer=N,e.systemTextJsonCSharpOptions=Object.assign({},e.cSharpOptions,{});var P=class extends M{constructor(e,t,n){super(e,t,n),this._options=n,this._enumExtensionsNames=new Map,this._needHelpers=n.features.helpers,this._needAttributes=n.features.attributes,this._needNamespaces=n.features.namespaces}forbiddenNamesForGlobalNamespace(){let e=[`Converter`,`JsonConverter`,`JsonSerializer`,`JsonWriter`,`JsonToken`,`Serialize`,`JsonSerializerOptions`,`FromJson`,`Required`];return this._options.dense&&e.push(`J`,`R`,`N`),this._options.baseclass!==void 0&&e.push(this._options.baseclass),super.forbiddenNamesForGlobalNamespace().concat(e)}forbiddenForObjectProperties(e,t){let n=super.forbiddenForObjectProperties(e,t);return n.names=n.names.concat([`ToJson`,`FromJson`,`Required`]),n}makeNameForTransformation(e,t){if(t===void 0){let t=e.transformer;return t instanceof m.DecodingTransformer&&t.consumer!==void 0&&(t=t.consumer),new l.SimpleName([`${t.kind}_converter`],C,u.inferredNameOrder+30)}return new l.DependencyName(C,t.order+30,e=>`${e(t)}_converter`)}makeNamedTypeDependencyNames(e,t){if(!(e instanceof r.EnumType))return[];let n=new l.DependencyName(C,t.order+30,e=>`${e(t)}_extensions`);return this._enumExtensionsNames.set(t,n),[n]}emitUsings(){if(!(!this._needAttributes&&!this._needHelpers)){super.emitUsings(),this.ensureBlankLine();for(let e of[`System.Text.Json`,`System.Text.Json.Serialization`,`System.Globalization`])this.emitUsing(e);this._options.dense&&(this.emitUsing([w,` = System.Text.Json.Serialization.JsonPropertyNameAttribute`]),this.emitUsing([E,` = System.Text.Json.Serialization.JsonIgnoreCondition`])),this._options.baseclass===`EntityData`&&this.emitUsing(`Microsoft.Azure.Mobile.Server`)}}baseclassForType(e){return this._options.baseclass}emitDefaultFollowingComments(){this._needHelpers&&(this.emitLine(`#pragma warning restore CS8618`),this.emitLine(`#pragma warning restore CS8601`),this.emitLine(`#pragma warning restore CS8603`))}emitDefaultLeadingComments(){this._needHelpers&&(this.emitLine(`// <auto-generated />`),this.emitLine(`//`),this.emitLine(`// To parse this JSON data, add NuGet 'System.Text.Json' then do`,this.topLevels.size===1?``:` one of these`,`:`),this.emitLine(`//`),this.emitLine(`// using `,this._options.namespace,`;`),this.emitLine(`//`),this.forEachTopLevel(`none`,(e,t)=>{let n;n=e instanceof r.EnumType?[`JsonSerializer.Deserialize<`,t,`>(jsonString)`]:[t,`.FromJson(jsonString)`],this.emitLine(`// var `,(0,o.modifySource)(s.camelCase,t),` = `,n,`;`)}),this.emitLine(`#nullable enable`),this.emitLine(`#pragma warning disable CS8618`),this.emitLine(`#pragma warning disable CS8601`),this.emitLine(`#pragma warning disable CS8603`))}converterForType(e){let t=(0,m.transformationForType)(e);if(t===void 0&&e instanceof r.UnionType){let n=(0,i.nullableFromUnion)(e);n!==null&&(e=n,t=(0,m.transformationForType)(e))}if(t!==void 0&&!x(t))return(0,c.defined)(this.nameForTransformation(e))}attributesForProperty(e,t,n,r){if(!this._needAttributes)return;let i=[],a=this._options.dense?w:`JsonPropertyName`,o=(0,s.utf16StringEscape)(r),c=(0,m.followTargetType)(e.type).isNullable;e.isOptional&&!c&&i.push([`[`,`JsonIgnore`,`(Condition = JsonIgnoreCondition.WhenWritingNull)]`]),i.push([`[`,a,`("`,o,`")]`]);let l=this.converterForType(e.type);return l!==void 0&&i.push([`[JsonConverter(typeof(`,l,`))]`]),i}blankLinesBetweenAttributes(){return this._needAttributes&&!this._options.dense}topLevelResultType(e){return e.kind===`any`||e.kind===`none`?`object`:this.csType(e)}emitFromJsonForTopLevel(e,t){if(e instanceof r.EnumType)return;let n,i,a=this.namedTypeToNameForTopLevel(e);a===void 0?(n=``,i=`class`):(n=`partial `,i=a instanceof r.ClassType?`class`:`struct`);let o=this.topLevelResultType(e);this.emitType(void 0,v.Public,[n,i],t,this.baseclassForType(e),()=>{this.emitExpressionMember([`public static `,o,` FromJson(string json)`],[`JsonSerializer.Deserialize<`,o,`>(json, `,this._options.namespace,`.Converter.Settings)`])})}emitDecoderSwitch(e){this.emitLine(`switch (reader.TokenType)`),this.emitBlock(e)}emitTokenCase(e){this.emitLine(`case JsonTokenType.`,e,`:`)}emitThrow(e){this.emitLine(`throw new Exception(`,e,`);`)}deserializeTypeCode(e){switch(e){case`bool`:return[`reader.GetBoolean()`];case`long`:return[`reader.GetInt64()`];case`decimal`:return[`reader.GetDecimal()`];case`double`:return[`reader.GetDouble()`];case`string`:return[`reader.GetString()`];default:return[`JsonSerializer.Deserialize<`,e,`>(ref reader, options)`]}}serializeValueCode(e){return e===`null`?[`writer.WriteNullValue()`]:[`JsonSerializer.Serialize(writer, `,e,`, options)`]}emitSerializeClass(){this.emitType(void 0,v.Public,`static class`,`Serialize`,void 0,()=>{let e=new Set;this.forEachTopLevel(`none`,t=>{e.has(t)||(e.add(t),this.emitExpressionMember([`public static string ToJson(this `,this.topLevelResultType(t),` self)`],[`JsonSerializer.Serialize(self, `,this._options.namespace,`.Converter.Settings)`]))})})}emitCanConvert(e){this.emitExpressionMember(`public override bool CanConvert(Type t)`,e)}emitReadJson(e,t){this.emitLine(`public override `,t,` Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)`),this.emitBlock(e)}emitWriteJson(e,t,n){this.emitLine(`public override void Write(Utf8JsonWriter writer, `,n,` `,e,`, JsonSerializerOptions options)`),this.emitBlock(t)}converterObject(e){return[e,`.Singleton`]}emitConverterClass(){this.emitType(void 0,v.Internal,`static class`,[`Converter`],void 0,()=>{this.emitLine(`public static readonly JsonSerializerOptions Settings = new(JsonSerializerDefaults.General)`),this.emitBlock(()=>{this.emitLine(`Converters =`),this.emitLine(`{`),this.indent(()=>{for(let[e,t]of this.typesWithNamedTransformations)x((0,c.defined)((0,m.transformationForType)(e)))&&this.emitLine(this.converterObject(t),`,`);this.emitLine(`new DateOnlyConverter(),`),this.emitLine(`new TimeOnlyConverter(),`),this.emitLine(`IsoDateTimeOffsetConverter.Singleton`)}),this.emitLine(`},`)},!0)})}emitDecoderTransformerCase(e,t,n,r,i){if(n!==void 0){for(let t of e)this.emitTokenCase(t);this.indent(()=>{this.emitDecodeTransformer(n,r,i,t)||this.emitLine(`break;`)})}}emitConsume(e,t,n,r){return t===void 0?(r(e),!0):this.emitTransformer(e,t,n,r)}emitDecodeTransformer(e,t,n,i=`value`){if(e instanceof m.DecodingTransformer){let r=e.sourceType,a=this.converterForType(t);if(a!==void 0){let e=this.csType(t);this.emitLine(`var converter = `,this.converterObject(a),`;`),this.emitLine(`var `,i,` = (`,e,`)converter.ReadJson(reader, typeof(`,e,`), null, serializer);`)}else if(r.kind!==`null`){let e=t.kind===`double`?t:r;this.emitLine(`var `,i,` = `,this.deserializeTypeCode(this.csType(e)),`;`)}return this.emitConsume(i,e.consumer,t,n)}if(e instanceof m.ArrayDecodingTransformer){if(!(t instanceof r.ArrayType))return(0,c.panic)(`Array decoding must produce an array type`);this.emitLine(`reader.Read();`),this.emitLine(`var `,i,` = new List<`,this.csType(t.items),`>();`),this.emitLine(`while (reader.TokenType != JsonToken.EndArray)`),this.emitBlock(()=>{this.emitDecodeTransformer(e.itemTransformer,e.itemTargetType,e=>this.emitLine(i,`.Add(`,e,`);`),`arrayItem`),this.emitLine(`reader.Read();`)});let a=i;return this._options.useList||(a=[a,`.ToArray()`]),n(a),!0}return e instanceof m.DecodingChoiceTransformer?(this.emitDecoderSwitch(()=>{let r=e.nullTransformer;r!==void 0&&(this.emitTokenCase(`Null`),this.indent(()=>{this.emitDecodeTransformer(r,t,n,`null`)||this.emitLine(`break`)})),this.emitDecoderTransformerCase([`Number`],`integerValue`,e.integerTransformer,t,n),this.emitDecoderTransformerCase([`Number`],`doubleValue`,e.doubleTransformer,t,n),this.emitDecoderTransformerCase([`True`,`False`],`boolValue`,e.boolTransformer,t,n),this.emitDecoderTransformerCase([`String`],`stringValue`,e.stringTransformer,t,n),this.emitDecoderTransformerCase([`StartObject`],`objectValue`,e.objectTransformer,t,n),this.emitDecoderTransformerCase([`StartArray`],`arrayValue`,e.arrayTransformer,t,n)}),!1):(0,c.panic)(`Unknown transformer`)}stringCaseValue(e,t){return e.kind===`string`?[`"`,(0,s.utf16StringEscape)(t),`"`]:e instanceof r.EnumType?[this.nameForNamedType(e),`.`,this.nameForEnumCase(e,t)]:(0,c.panic)(`Type ${e.kind} does not have string cases`)}emitTransformer(e,t,a,o){function s(e){return e===void 0?a:(0,m.followTargetType)(e.sourceType)}if(t instanceof m.ChoiceTransformer){let n=t.transformers;if(n.length>1&&n.every(e=>e instanceof m.StringMatchTransformer))return this.emitLine(`switch (`,e,`)`),this.emitBlock(()=>{for(let t of n){let n=t,r=this.stringCaseValue((0,m.followTargetType)(n.sourceType),n.stringCase);this.emitLine(`case `,r,`:`),this.indent(()=>{this.emitTransformer(e,n.transformer,a,o)||this.emitLine(`break;`)})}}),!1;for(let t of n)this.emitTransformer(e,t,a,o)}else if(t instanceof m.UnionMemberMatchTransformer){let n=t.memberType,r=(0,i.nullableFromUnion)(t.sourceType),s,c;r===null?n.kind===`null`?(s=[e,`.IsNull`],c=`null`):(c=[e,`.`,this.nameForUnionMember(t.sourceType,n)],s=[c,` != null`]):n.kind===`null`?(s=[e,` == null`],c=`null`):(s=[e,` != null`],c=e),n.kind!==`null`&&j(n)&&(c=[c,`.Value`]),this.emitLine(`if (`,s,`)`),this.emitBlock(()=>this.emitTransformer(c,t.transformer,a,o))}else if(t instanceof m.StringMatchTransformer){let n=this.stringCaseValue((0,m.followTargetType)(t.sourceType),t.stringCase);this.emitLine(`if (`,e,` == `,n,`)`),this.emitBlock(()=>this.emitTransformer(e,t.transformer,a,o))}else if(t instanceof m.EncodingTransformer){let n=this.converterForType(t.sourceType);return n===void 0?this.emitLine(this.serializeValueCode(e),`;`):(this.emitLine(`var converter = `,this.converterObject(n),`;`),this.emitLine(`converter.WriteJson(writer, `,e,`, serializer);`)),o([]),!0}else if(t instanceof m.ArrayEncodingTransformer){this.emitLine(`writer.WriteStartArray();`);let n=`arrayItem`;return this.emitLine(`foreach (var `,n,` in `,e,`)`),this.emitBlock(()=>{this.emitTransformer(n,t.itemTransformer,t.itemTargetType,()=>{})}),this.emitLine(`writer.WriteEndArray();`),o([]),!0}else if(t instanceof m.ParseStringTransformer){let n=t.consumer===void 0?a:t.consumer.sourceType;switch(n.kind){case`date-time`:this.emitLine(`DateTimeOffset dt;`),this.emitLine(`if (DateTimeOffset.TryParse(`,e,`, out dt))`),this.emitBlock(()=>this.emitConsume(`dt`,t.consumer,a,o));break;case`uuid`:this.emitLine(`Guid guid;`),this.emitLine(`if (Guid.TryParse(`,e,`, out guid))`),this.emitBlock(()=>this.emitConsume(`guid`,t.consumer,a,o));break;case`uri`:this.emitLine(`try`),this.emitBlock(()=>{this.emitLine(`var uri = new Uri("about:blank");`),this.emitLine(`if (!string.IsNullOrEmpty(stringValue))`),this.emitBlock(()=>{this.emitLine(`uri = new Uri(`,e,`);`)}),this.emitConsume(`uri`,t.consumer,a,o)}),this.emitLine(`catch (UriFormatException) {}`);break;case`integer`:this.emitLine(`long l;`),this.emitLine(`if (Int64.TryParse(`,e,`, out l))`),this.emitBlock(()=>this.emitConsume(`l`,t.consumer,a,o));break;case`bool`:this.emitLine(`bool b;`),this.emitLine(`if (Boolean.TryParse(`,e,`, out b))`),this.emitBlock(()=>this.emitConsume(`b`,t.consumer,a,o));break;default:return(0,c.panic)(`Parsing string to ${n.kind} not supported`)}}else if(t instanceof m.StringifyTransformer)switch(t.sourceType.kind){case`date-time`:return this.emitConsume([e,`.ToString("o", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`uuid`:return this.emitConsume([e,`.ToString("D", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`integer`:case`uri`:return this.emitConsume([e,`.ToString()`],t.consumer,a,o);case`bool`:return this.emitLine(`var boolString = `,e,` ? "true" : "false";`),this.emitConsume(`boolString`,t.consumer,a,o);default:return(0,c.panic)(`Stringifying ${t.sourceType.kind} not supported`)}else if(t instanceof m.StringProducerTransformer){let e=this.stringCaseValue(s(t.consumer),t.result);return this.emitConsume(e,t.consumer,a,o)}else if(t instanceof m.MinMaxLengthCheckTransformer){let r=t.minLength,i=t.maxLength,s=[];return r!==void 0&&s.push([e,`.Length >= `,r.toString()]),i!==void 0&&s.push([e,`.Length <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.MinMaxValueTransformer){let r=t.minimum,i=t.maximum,s=[];return r!==void 0&&s.push([e,` >= `,r.toString()]),i!==void 0&&s.push([e,` <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.UnionInstantiationTransformer){if(!(a instanceof r.UnionType))return(0,c.panic)(`Union instantiation transformer must produce a union type`);if((0,i.nullableFromUnion)(a)!==null)o(e);else{let n=this.nameForNamedType(a),r;r=t.sourceType.kind===`null`?` `:[` `,this.nameForUnionMember(a,t.sourceType),` = `,e,` `],o([`new `,n,` {`,r,`}`])}return!0}else return(0,c.panic)(`Unknown transformer`);return!1}emitTransformation(e,t){let n=(0,c.defined)((0,m.transformationForType)(t)),r=n.reverse,i=n.targetType,a=n.transformer,o=this.csType(i);this.emitType(void 0,v.Internal,`class`,e,[`JsonConverter<`,o,`>`],()=>{let t=[`t == typeof(`,o,`)`];this.emitCanConvert(t),this.ensureBlankLine(),this.emitReadJson(()=>{this.emitDecodeTransformer(a,i,e=>this.emitLine(`return `,e,`;`))||this.emitThrow([`"Cannot unmarshal type `,o,`"`])},o),this.ensureBlankLine(),this.emitWriteJson(`value`,()=>{this.emitTransformer(`value`,r.transformer,r.targetType,()=>this.emitLine(`return;`))||this.emitThrow([`"Cannot marshal type `,o,`"`])},o),this.ensureBlankLine(),this.emitLine(`public static readonly `,e,` Singleton = new `,e,`();`)})}emitRequiredHelpers(){this._needHelpers&&(this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitFromJsonForTopLevel(e,t)),this.ensureBlankLine(),this.emitSerializeClass()),(this._needHelpers||this._needAttributes&&(this.haveNamedUnions||this.haveEnums))&&(this.ensureBlankLine(),this.emitConverterClass(),this.forEachTransformation(`leading-and-interposing`,(e,t)=>this.emitTransformation(e,t)),this.emitMultiline(`
125
+ `)}get commentLineStart(){return`// `}emitCommentLines(e,t,n,r,i){t===void 0&&(t=this.commentLineStart),i===void 0&&(i=t),n!==void 0&&this.emitLine(n);let a=!0;for(let n of e){let e=a?i:t;this.sourcelikeToString(n)===``&&(e=(0,c.trimEnd)(e)),this.emitLine(e,n),a=!1}r!==void 0&&this.emitLine(r)}emitDescription(e){e!==void 0&&this.emitDescriptionBlock(e)}emitDescriptionBlock(e){this.emitCommentLines(e)}emitPropertyTable(e,t){let n=[],r=()=>{n.length!==0&&(this.emitTable(n),n=[])};this.forEachClassProperty(e,`none`,(i,a,o)=>{let s=this.descriptionForClassProperty(e,a);s!==void 0&&(r(),this.emitDescription(s)),n.push(t(i,a,o))}),r()}processGraph(){this._declarationIR=(0,u.declarationsForGraph)(this.typeGraph,this.needsTypeDeclarationBeforeUse?e=>this.canBeForwardDeclared(e):void 0,e=>this.childrenOfType(e),e=>e instanceof n.UnionType?this.unionNeedsName(e):(0,r.isNamedType)(e));let e=this.typeGraph.allTypesUnordered();this._haveUnions=(0,t.iterableSome)(e,e=>e instanceof n.UnionType),this._haveMaps=(0,t.iterableSome)(e,e=>e instanceof n.MapType);let i=(0,t.setFilter)(e,e=>e instanceof n.ClassType);this._haveOptionalProperties=(0,t.iterableSome)(i,e=>(0,t.mapSome)(e.getProperties(),e=>e.isOptional)),this._namedTypes=this._declarationIR.declarations.filter(e=>e.kind===`define`).map(e=>e.type);let{objects:a,enums:o,unions:s}=(0,r.separateNamedTypes)(this._namedTypes);this._namedObjects=new Set(a),this._namedEnums=new Set(o),this._namedUnions=new Set(s)}emitSource(e){this.processGraph(),this.emitSourceStructure(e)}forEachType(e){let t=new Set,n=new Set,r=Array.from(this.typeGraph.topLevels.values());function i(i){if(!t.has(i)){for(let e of i.getChildren())r.push(e);t.add(i),n.add(e(i))}}for(;;){let e=r.pop();if(e===void 0)break;i(e)}return n}}})),Va=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultDateTimeRecognizer=void 0;var t=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,29,31,30,31,30,31,31,30,31,30,31],r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i,i=/t|\s/i;e.DefaultDateTimeRecognizer=class{isDate(e){let r=e.match(t);if(r===null)return!1;let i=+r[2],a=+r[3];return i>=1&&i<=12&&a>=1&&a<=n[i]}isTime(e){let t=e.match(r);if(t===null)return!1;let n=+t[1],i=+t[2],a=+t[3];return n<=23&&i<=59&&a<=59}isDateTime(e){let t=e.split(i);return t.length===2&&this.isDate(t[0])&&this.isTime(t[1])}}})),Ha=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TargetLanguage=void 0;var t=a(),n=Oa(),r=Q(),i=Va();e.TargetLanguage=class{constructor(e,t,n){this.displayName=e,this.names=t,this.extension=n}get optionDefinitions(){return this.getOptions().map(e=>e.definition)}get cliOptionDefinitions(){let e=[],t=[];for(let{cliDefinitions:n}of this.getOptions())e=e.concat(n.actual),t=t.concat(n.display);return{actual:e,display:t}}get name(){return(0,r.defined)(this.names[0])}renderGraphAndSerialize(e,i,a,o,s,c){c===void 0&&(c=this.defaultIndentation);let l={typeGraph:e,leadingComments:o},u=this.makeRenderer(l,s);u.setAlphabetizeProperties!==void 0&&u.setAlphabetizeProperties(a);let d=u.render(i);return(0,t.mapMap)(d.sources,e=>(0,n.serializeRenderResult)(e,d.names,(0,r.defined)(c)))}get defaultIndentation(){return` `}get stringTypeMapping(){return new Map}get supportsOptionalClassProperties(){return!1}get supportsUnionsWithBothNumberTypes(){return!1}get supportsFullObjectType(){return!1}needsTransformerForType(e){return!1}get dateTimeRecognizer(){return new i.DefaultDateTimeRecognizer}}})),Ua=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SystemTextJsonCSharpRenderer=e.systemTextJsonCSharpOptions=e.NewtonsoftCSharpRenderer=e.newtonsoftCSharpOptions=e.CSharpRenderer=e.CSharpTargetLanguage=e.cSharpOptions=e.AccessModifier=e.Framework=void 0;var n=a(),r=Ea(),i=_a(),o=Oa(),s=fa(),c=Q(),l=Da(),u=Ba(),d=Ha(),f=aa(),p=ka(),m=Ra(),h=Fa(),g=t(da()),_;(function(e){e[e.Newtonsoft=0]=`Newtonsoft`,e[e.SystemTextJson=1]=`SystemTextJson`})(_=e.Framework||={});var v;(function(e){e[e.None=0]=`None`,e[e.Public=1]=`Public`,e[e.Internal=2]=`Internal`})(v=e.AccessModifier||={});function y(e){return e}function b(e){if(e instanceof r.UnionType){let t=(0,i.nullableFromUnion)(e);return t===null?`automatic`:b(t)===`manual`?`nullable`:`none`}if(e instanceof r.ArrayType){let t=b(e.items);return t===`manual`||t===`nullable`?`automatic`:`none`}return e instanceof r.EnumType?`automatic`:e.kind===`double`?(0,h.minMaxValueForType)(e)===void 0?`none`:`manual`:e.kind===`integer-string`||e.kind===`bool-string`?`manual`:e.kind===`string`?(0,h.minMaxLengthForType)(e)===void 0?`none`:`manual`:`none`}function x(e){let t=e.targetType;return t instanceof r.EnumType||t instanceof r.UnionType&&(0,i.nullableFromUnion)(t)===null}function S(e){switch(e.kind){case`date-time`:return`DateTimeOffset`;case`uuid`:return`Guid`;case`uri`:return`Uri`;default:return(0,c.panic)(`Transformed string type ${e.kind} not supported`)}}e.cSharpOptions={framework:new f.EnumOption(`framework`,`Serialization framework`,[[`NewtonSoft`,_.Newtonsoft],[`SystemTextJson`,_.SystemTextJson]],`NewtonSoft`),useList:new f.EnumOption(`array-type`,`Use T[] or List<T>`,[[`array`,!1],[`list`,!0]]),dense:new f.EnumOption(`density`,`Property density`,[[`normal`,!1],[`dense`,!0]],`normal`,`secondary`),namespace:new f.StringOption(`namespace`,`Generated namespace`,`NAME`,`QuickType`),version:new f.EnumOption(`csharp-version`,`C# version`,[[`5`,5],[`6`,6]],`6`,`secondary`),virtual:new f.BooleanOption(`virtual`,`Generate virtual properties`,!1),typeForAny:new f.EnumOption(`any-type`,`Type to use for "any"`,[[`object`,`object`],[`dynamic`,`dynamic`]],`object`,`secondary`),useDecimal:new f.EnumOption(`number-type`,`Type to use for numbers`,[[`double`,!1],[`decimal`,!0]],`double`,`secondary`),features:new f.EnumOption(`features`,`Output features`,[[`complete`,{namespaces:!0,helpers:!0,attributes:!0}],[`attributes-only`,{namespaces:!0,helpers:!1,attributes:!0}],[`just-types-and-namespace`,{namespaces:!0,helpers:!1,attributes:!1}],[`just-types`,{namespaces:!0,helpers:!1,attributes:!1}]]),baseclass:new f.EnumOption(`base-class`,`Base class`,[[`EntityData`,`EntityData`],[`Object`,void 0]],`Object`,`secondary`),checkRequired:new f.BooleanOption(`check-required`,`Fail if required properties are missing`,!1)},e.CSharpTargetLanguage=class extends d.TargetLanguage{constructor(){super(`C#`,[`cs`,`csharp`],`cs`)}getOptions(){return[e.cSharpOptions.framework,e.cSharpOptions.namespace,e.cSharpOptions.version,e.cSharpOptions.dense,e.cSharpOptions.useList,e.cSharpOptions.useDecimal,e.cSharpOptions.typeForAny,e.cSharpOptions.virtual,e.cSharpOptions.features,e.cSharpOptions.baseclass,e.cSharpOptions.checkRequired]}get stringTypeMapping(){let e=new Map;return e.set(`date`,`date-time`),e.set(`time`,`date-time`),e.set(`date-time`,`date-time`),e.set(`uuid`,`uuid`),e.set(`uri`,`uri`),e.set(`integer-string`,`integer-string`),e.set(`bool-string`,`bool-string`),e}get supportsUnionsWithBothNumberTypes(){return!0}get supportsOptionalClassProperties(){return!0}needsTransformerForType(e){let t=b(e);return t!==`none`&&t!==`nullable`}makeRenderer(t,n){let r=(0,f.getOptionValues)(e.cSharpOptions,n);switch(r.framework){case _.Newtonsoft:return new N(this,t,(0,f.getOptionValues)(e.newtonsoftCSharpOptions,n));case _.SystemTextJson:return new P(this,t,(0,f.getOptionValues)(e.systemTextJsonCSharpOptions,n));default:return(0,c.assertNever)(r.framework)}}};var C=(0,l.funPrefixNamer)(`namer`,A),w=`J`,T=`R`,E=`N`;function D(e){return g.default.isAlphabetic(e)?!0:e===95}function O(e){let t=g.default.getCategory(e);return[`Nd`,`Pc`,`Mn`,`Mc`].indexOf(t)>=0||D(e)}var k=(0,s.utf16LegalizeCharacters)(O);function A(e){let t=(0,s.splitIntoWords)(e);return(0,s.combineWords)(t,k,s.firstUpperWordStyle,s.firstUpperWordStyle,s.firstUpperWordStyle,s.firstUpperWordStyle,``,D)}function j(e){return e instanceof r.UnionType?(0,i.nullableFromUnion)(e)===null:[`integer`,`double`,`bool`,`enum`,`date-time`,`uuid`].indexOf(e.kind)>=0}var M=class extends u.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._csOptions=n}forbiddenNamesForGlobalNamespace(){return[`QuickType`,`Type`,`System`,`Console`,`Exception`,`DateTimeOffset`,`Guid`,`Uri`]}forbiddenForObjectProperties(e,t){return{names:[t,`ToString`,`GetHashCode`,`Finalize`,`Equals`,`GetType`,`MemberwiseClone`,`ReferenceEquals`],includeGlobalForbidden:!1}}forbiddenForUnionMembers(e,t){return{names:[t],includeGlobalForbidden:!0}}makeNamedTypeNamer(){return C}namerForObjectProperty(){return C}makeUnionMemberNamer(){return C}makeEnumCaseNamer(){return C}unionNeedsName(e){return(0,i.nullableFromUnion)(e)===null}namedTypeToNameForTopLevel(e){return(0,i.directlyReachableSingleNamedType)(e)}emitBlock(e,t=!1){this.emitLine(`{`),this.indent(e),this.emitLine(`}`,t?`;`:``)}get doubleType(){return this._csOptions.useDecimal?`decimal`:`double`}csType(e,t=m.followTargetType,n=!1){let r=t(e);return(0,i.matchType)(r,e=>(0,o.maybeAnnotated)(n,p.anyTypeIssueAnnotation,this._csOptions.typeForAny),e=>(0,o.maybeAnnotated)(n,p.nullTypeIssueAnnotation,this._csOptions.typeForAny),e=>`bool`,e=>`long`,e=>this.doubleType,e=>`string`,e=>{let r=this.csType(e.items,t,n);return this._csOptions.useList?[`List<`,r,`>`]:[r,`[]`]},e=>this.nameForNamedType(e),e=>[`Dictionary<string, `,this.csType(e.values,t,n),`>`],e=>this.nameForNamedType(e),e=>{let t=(0,i.nullableFromUnion)(e);return t===null?this.nameForNamedType(e):this.nullableCSType(t,y)},e=>S(e))}nullableCSType(e,t=m.followTargetType,n=!1){e=(0,m.followTargetType)(e);let r=this.csType(e,t,n);return j(e)?[r,`?`]:r}baseclassForType(e){}emitType(e,t,n,r,i,a){switch(t){case v.Public:n=[`public `,n];break;case v.Internal:n=[`internal `,n]}this.emitDescription(e),i===void 0?this.emitLine(n,` `,r):this.emitLine(n,` `,r,` : `,i),this.emitBlock(a)}attributesForProperty(e,t,n,r){}propertyDefinition(e,t,n,r){let i=e.type,a=e.isOptional?this.nullableCSType(i,m.followTargetType,!0):this.csType(i,m.followTargetType,!0),o=[`public `];return this._csOptions.virtual&&o.push(`virtual `),[...o,a,` `,t,` { get; set; }`]}emitDescriptionBlock(e){let t=`/// <summary>`;this._csOptions.dense?this.emitLine(t,e.join(`; `),`</summary>`):this.emitCommentLines(e,`/// `,t,`/// </summary>`)}blankLinesBetweenAttributes(){return!1}emitClassDefinition(e,t){this.emitType(this.descriptionForType(e),v.Public,`partial class`,t,this.baseclassForType(e),()=>{if(e.getProperties().size===0)return;let t=this.blankLinesBetweenAttributes()?`interposing`:`none`,n=[],r=!0,i;this.forEachClassProperty(e,t,(t,a,o)=>{let s=this.attributesForProperty(o,t,e,a),c=this.descriptionForClassProperty(e,a),l=this.propertyDefinition(o,t,e,a);if(s===void 0)(!r&&c!==void 0||i!==void 0)&&this.ensureBlankLine(),this.emitDescription(c),this.emitLine(l);else if(this._csOptions.dense&&s.length>0){let e=c===void 0?``:` // ${c.join(`; `)}`;n.push([s,` `,l,e])}else{this.emitDescription(c);for(let e of s)this.emitLine(e);this.emitLine(l)}r=!1,i=c}),n.length>0&&this.emitTable(n)})}emitUnionDefinition(e,t){let r=(0,i.removeNullFromUnion)(e,!0)[1];this.emitType(this.descriptionForType(e),v.Public,`partial struct`,t,this.baseclassForType(e),()=>{this.forEachUnionMember(e,r,`none`,null,(e,t)=>{let n=this.nullableCSType(t);this.emitLine(`public `,n,` `,e,`;`)}),this.ensureBlankLine();let i=Array.from(r).map(t=>[this.nameForUnionMember(e,t),` == null`]);this.ensureBlankLine(),this.forEachUnionMember(e,r,`none`,null,(e,n)=>{let r=this.csType(n);this.emitExpressionMember([`public static implicit operator `,t,`(`,r,` `,e,`)`],[`new `,t,` { `,e,` = `,e,` }`])}),e.findMember(`null`)!==void 0&&this.emitExpressionMember(`public bool IsNull`,(0,n.arrayIntercalate)(` && `,i),!0)})}emitEnumDefinition(e,t){let n=[];this.forEachEnumCase(e,`none`,e=>{n.length>0&&n.push(`, `),n.push(e)}),this.emitDescription(this.descriptionForType(e)),this.emitLine(`public enum `,t,` { `,n,` };`)}emitExpressionMember(e,t,n=!1){this._csOptions.version===5?(this.emitLine(e),this.emitBlock(()=>{let e=[`return `,t,`;`];n?(this.emitLine(`get`),this.emitBlock(()=>this.emitLine(e))):this.emitLine(e)})):this.emitLine(e,` => `,t,`;`)}emitTypeSwitch(e,t,n,r,i){(0,c.assert)(!r||n,`Can only have return with block`);for(let a of e)this.emitLine(`if (`,t(a),`)`),n?this.emitBlock(()=>{i(a),r&&this.emitLine(`return;`)}):this.indent(()=>i(a))}emitUsing(e){this.emitLine(`using `,e,`;`)}emitUsings(){for(let e of[`System`,`System.Collections.Generic`])this.emitUsing(e)}emitRequiredHelpers(){}emitTypesAndSupport(){this.forEachObject(`leading-and-interposing`,(e,t)=>this.emitClassDefinition(e,t)),this.forEachEnum(`leading-and-interposing`,(e,t)=>this.emitEnumDefinition(e,t)),this.forEachUnion(`leading-and-interposing`,(e,t)=>this.emitUnionDefinition(e,t)),this.emitRequiredHelpers()}emitDefaultLeadingComments(){}emitDefaultFollowingComments(){}needNamespace(){return!0}emitSourceStructure(){this.leadingComments===void 0?this.emitDefaultLeadingComments():this.emitCommentLines(this.leadingComments),this.ensureBlankLine(),this.needNamespace()?(this.emitLine(`namespace `,this._csOptions.namespace),this.emitBlock(()=>{this.emitUsings(),this.emitTypesAndSupport()})):(this.emitUsings(),this.emitTypesAndSupport()),this.emitDefaultFollowingComments()}};e.CSharpRenderer=M,e.newtonsoftCSharpOptions=Object.assign({},e.cSharpOptions,{});var N=class extends M{constructor(e,t,n){super(e,t,n),this._options=n,this._enumExtensionsNames=new Map,this._needHelpers=n.features.helpers,this._needAttributes=n.features.attributes,this._needNamespaces=n.features.namespaces}forbiddenNamesForGlobalNamespace(){let e=[`Converter`,`JsonConverter`,`JsonSerializer`,`JsonWriter`,`JsonToken`,`Serialize`,`Newtonsoft`,`MetadataPropertyHandling`,`DateParseHandling`,`FromJson`,`Required`];return this._options.dense&&e.push(`J`,`R`,`N`),this._options.baseclass!==void 0&&e.push(this._options.baseclass),super.forbiddenNamesForGlobalNamespace().concat(e)}forbiddenForObjectProperties(e,t){let n=super.forbiddenForObjectProperties(e,t);return n.names=n.names.concat([`ToJson`,`FromJson`,`Required`]),n}makeNameForTransformation(e,t){if(t===void 0){let t=e.transformer;return t instanceof m.DecodingTransformer&&t.consumer!==void 0&&(t=t.consumer),new l.SimpleName([`${t.kind}_converter`],C,u.inferredNameOrder+30)}return new l.DependencyName(C,t.order+30,e=>`${e(t)}_converter`)}makeNamedTypeDependencyNames(e,t){if(!(e instanceof r.EnumType))return[];let n=new l.DependencyName(C,t.order+30,e=>`${e(t)}_extensions`);return this._enumExtensionsNames.set(t,n),[n]}emitUsings(){if(this._needAttributes||this._needHelpers){super.emitUsings(),this.ensureBlankLine();for(let e of[`System.Globalization`,`Newtonsoft.Json`,`Newtonsoft.Json.Converters`])this.emitUsing(e);this._options.dense&&(this.emitUsing([w,` = Newtonsoft.Json.JsonPropertyAttribute`]),this.emitUsing([T,` = Newtonsoft.Json.Required`]),this.emitUsing([E,` = Newtonsoft.Json.NullValueHandling`])),this._options.baseclass===`EntityData`&&this.emitUsing(`Microsoft.Azure.Mobile.Server`)}}baseclassForType(e){return this._options.baseclass}emitDefaultLeadingComments(){this._needHelpers&&(this.emitLine(`// <auto-generated />`),this.emitLine(`//`),this.emitLine(`// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do`,this.topLevels.size===1?``:` one of these`,`:`),this.emitLine(`//`),this.emitLine(`// using `,this._options.namespace,`;`),this.emitLine(`//`),this.forEachTopLevel(`none`,(e,t)=>{let n;n=e instanceof r.EnumType?[`JsonConvert.DeserializeObject<`,t,`>(jsonString)`]:[t,`.FromJson(jsonString)`],this.emitLine(`// var `,(0,o.modifySource)(s.camelCase,t),` = `,n,`;`)}))}converterForType(e){let t=(0,m.transformationForType)(e);if(t===void 0&&e instanceof r.UnionType){let n=(0,i.nullableFromUnion)(e);n!==null&&(e=n,t=(0,m.transformationForType)(e))}if(t!==void 0&&!x(t))return(0,c.defined)(this.nameForTransformation(e))}attributesForProperty(e,t,n,r){if(!this._needAttributes)return;let i=[],a=this._options.dense?w:`JsonProperty`,o=(0,s.utf16StringEscape)(r),c=(0,m.followTargetType)(e.type).isNullable,l=e.isOptional,u=this._options.dense?`R`:`Required`,d=this._options.dense?`N`:`NullValueHandling`,f=l&&!c?[`, NullValueHandling = `,d,`.Ignore`]:[],p;p=!this._options.checkRequired||l&&c?[f]:l&&!c?[`, Required = `,u,`.DisallowNull`,f]:!l&&c?[`, Required = `,u,`.AllowNull`]:[`, Required = `,u,`.Always`,f],i.push([`[`,a,`("`,o,`"`,p,`)]`]);let h=this.converterForType(e.type);return h!==void 0&&i.push([`[JsonConverter(typeof(`,h,`))]`]),i}blankLinesBetweenAttributes(){return this._needAttributes&&!this._options.dense}topLevelResultType(e){return e.kind===`any`||e.kind===`none`?`object`:this.csType(e)}emitFromJsonForTopLevel(e,t){if(e instanceof r.EnumType)return;let n,i,a=this.namedTypeToNameForTopLevel(e);a===void 0?(n=``,i=`class`):(n=`partial `,i=a instanceof r.ClassType?`class`:`struct`);let o=this.topLevelResultType(e);this.emitType(void 0,v.Public,[n,i],t,this.baseclassForType(e),()=>{this.emitExpressionMember([`public static `,o,` FromJson(string json)`],[`JsonConvert.DeserializeObject<`,o,`>(json, `,this._options.namespace,`.Converter.Settings)`])})}emitDecoderSwitch(e){this.emitLine(`switch (reader.TokenType)`),this.emitBlock(e)}emitTokenCase(e){this.emitLine(`case JsonToken.`,e,`:`)}emitThrow(e){this.emitLine(`throw new Exception(`,e,`);`)}deserializeTypeCode(e){return[`serializer.Deserialize<`,e,`>(reader)`]}serializeValueCode(e){return[`serializer.Serialize(writer, `,e,`)`]}emitSerializeClass(){this.emitType(void 0,v.Public,`static class`,`Serialize`,void 0,()=>{let e=new Set;this.forEachTopLevel(`none`,t=>{e.has(t)||(e.add(t),this.emitExpressionMember([`public static string ToJson(this `,this.topLevelResultType(t),` self)`],[`JsonConvert.SerializeObject(self, `,this._options.namespace,`.Converter.Settings)`]))})})}emitCanConvert(e){this.emitExpressionMember(`public override bool CanConvert(Type t)`,e)}emitReadJson(e){this.emitLine(`public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)`),this.emitBlock(e)}emitWriteJson(e,t){this.emitLine(`public override void WriteJson(JsonWriter writer, object `,e,`, JsonSerializer serializer)`),this.emitBlock(t)}converterObject(e){return[e,`.Singleton`]}emitConverterClass(){this.emitType(void 0,v.Internal,`static class`,[`Converter`],void 0,()=>{this.emitLine(`public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings`),this.emitBlock(()=>{this.emitLine(`MetadataPropertyHandling = MetadataPropertyHandling.Ignore,`),this.emitLine(`DateParseHandling = DateParseHandling.None,`),this.emitLine(`Converters =`),this.emitLine(`{`),this.indent(()=>{for(let[e,t]of this.typesWithNamedTransformations)x((0,c.defined)((0,m.transformationForType)(e)))&&this.emitLine(this.converterObject(t),`,`);this.emitLine(`new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }`)}),this.emitLine(`},`)},!0)})}emitDecoderTransformerCase(e,t,n,r,i){if(n!==void 0){for(let t of e)this.emitTokenCase(t);this.indent(()=>{this.emitDecodeTransformer(n,r,i,t)||this.emitLine(`break;`)})}}emitConsume(e,t,n,r){return t===void 0?(r(e),!0):this.emitTransformer(e,t,n,r)}emitDecodeTransformer(e,t,n,i=`value`){if(e instanceof m.DecodingTransformer){let r=e.sourceType,a=this.converterForType(t);if(a!==void 0){let e=this.csType(t);this.emitLine(`var converter = `,this.converterObject(a),`;`),this.emitLine(`var `,i,` = (`,e,`)converter.ReadJson(reader, typeof(`,e,`), null, serializer);`)}else if(r.kind!==`null`){let e=t.kind===`double`?t:r;this.emitLine(`var `,i,` = `,this.deserializeTypeCode(this.csType(e)),`;`)}return this.emitConsume(i,e.consumer,t,n)}if(e instanceof m.ArrayDecodingTransformer){if(!(t instanceof r.ArrayType))return(0,c.panic)(`Array decoding must produce an array type`);this.emitLine(`reader.Read();`),this.emitLine(`var `,i,` = new List<`,this.csType(t.items),`>();`),this.emitLine(`while (reader.TokenType != JsonToken.EndArray)`),this.emitBlock(()=>{this.emitDecodeTransformer(e.itemTransformer,e.itemTargetType,e=>this.emitLine(i,`.Add(`,e,`);`),`arrayItem`),this.emitLine(`reader.Read();`)});let a=i;return this._options.useList||(a=[a,`.ToArray()`]),n(a),!0}return e instanceof m.DecodingChoiceTransformer?(this.emitDecoderSwitch(()=>{let r=e.nullTransformer;r!==void 0&&(this.emitTokenCase(`Null`),this.indent(()=>{this.emitDecodeTransformer(r,t,n,`null`)||this.emitLine(`break`)})),this.emitDecoderTransformerCase([`Integer`],`integerValue`,e.integerTransformer,t,n),this.emitDecoderTransformerCase(e.integerTransformer===void 0?[`Integer`,`Float`]:[`Float`],`doubleValue`,e.doubleTransformer,t,n),this.emitDecoderTransformerCase([`Boolean`],`boolValue`,e.boolTransformer,t,n),this.emitDecoderTransformerCase([`String`,`Date`],`stringValue`,e.stringTransformer,t,n),this.emitDecoderTransformerCase([`StartObject`],`objectValue`,e.objectTransformer,t,n),this.emitDecoderTransformerCase([`StartArray`],`arrayValue`,e.arrayTransformer,t,n)}),!1):(0,c.panic)(`Unknown transformer`)}stringCaseValue(e,t){return e.kind===`string`?[`"`,(0,s.utf16StringEscape)(t),`"`]:e instanceof r.EnumType?[this.nameForNamedType(e),`.`,this.nameForEnumCase(e,t)]:(0,c.panic)(`Type ${e.kind} does not have string cases`)}emitTransformer(e,t,a,o){function s(e){return e===void 0?a:(0,m.followTargetType)(e.sourceType)}if(t instanceof m.ChoiceTransformer){let n=t.transformers;if(n.length>1&&n.every(e=>e instanceof m.StringMatchTransformer))return this.emitLine(`switch (`,e,`)`),this.emitBlock(()=>{for(let t of n){let n=t,r=this.stringCaseValue((0,m.followTargetType)(n.sourceType),n.stringCase);this.emitLine(`case `,r,`:`),this.indent(()=>{this.emitTransformer(e,n.transformer,a,o)||this.emitLine(`break;`)})}}),!1;for(let t of n)this.emitTransformer(e,t,a,o)}else if(t instanceof m.UnionMemberMatchTransformer){let n=t.memberType,r=(0,i.nullableFromUnion)(t.sourceType),s,c;r===null?n.kind===`null`?(s=[e,`.IsNull`],c=`null`):(c=[e,`.`,this.nameForUnionMember(t.sourceType,n)],s=[c,` != null`]):n.kind===`null`?(s=[e,` == null`],c=`null`):(s=[e,` != null`],c=e),n.kind!==`null`&&j(n)&&(c=[c,`.Value`]),this.emitLine(`if (`,s,`)`),this.emitBlock(()=>this.emitTransformer(c,t.transformer,a,o))}else if(t instanceof m.StringMatchTransformer){let n=this.stringCaseValue((0,m.followTargetType)(t.sourceType),t.stringCase);this.emitLine(`if (`,e,` == `,n,`)`),this.emitBlock(()=>this.emitTransformer(e,t.transformer,a,o))}else if(t instanceof m.EncodingTransformer){let n=this.converterForType(t.sourceType);return n===void 0?this.emitLine(this.serializeValueCode(e),`;`):(this.emitLine(`var converter = `,this.converterObject(n),`;`),this.emitLine(`converter.WriteJson(writer, `,e,`, serializer);`)),o([]),!0}else if(t instanceof m.ArrayEncodingTransformer){this.emitLine(`writer.WriteStartArray();`);let n=`arrayItem`;return this.emitLine(`foreach (var `,n,` in `,e,`)`),this.emitBlock(()=>{this.emitTransformer(n,t.itemTransformer,t.itemTargetType,()=>{})}),this.emitLine(`writer.WriteEndArray();`),o([]),!0}else if(t instanceof m.ParseStringTransformer){let n=t.consumer===void 0?a:t.consumer.sourceType;switch(n.kind){case`date-time`:this.emitLine(`DateTimeOffset dt;`),this.emitLine(`if (DateTimeOffset.TryParse(`,e,`, out dt))`),this.emitBlock(()=>this.emitConsume(`dt`,t.consumer,a,o));break;case`uuid`:this.emitLine(`Guid guid;`),this.emitLine(`if (Guid.TryParse(`,e,`, out guid))`),this.emitBlock(()=>this.emitConsume(`guid`,t.consumer,a,o));break;case`uri`:this.emitLine(`try`),this.emitBlock(()=>{this.emitLine(`var uri = new Uri(`,e,`);`),this.emitConsume(`uri`,t.consumer,a,o)}),this.emitLine(`catch (UriFormatException) {}`);break;case`integer`:this.emitLine(`long l;`),this.emitLine(`if (Int64.TryParse(`,e,`, out l))`),this.emitBlock(()=>this.emitConsume(`l`,t.consumer,a,o));break;case`bool`:this.emitLine(`bool b;`),this.emitLine(`if (Boolean.TryParse(`,e,`, out b))`),this.emitBlock(()=>this.emitConsume(`b`,t.consumer,a,o));break;default:return(0,c.panic)(`Parsing string to ${n.kind} not supported`)}}else if(t instanceof m.StringifyTransformer)switch(t.sourceType.kind){case`date-time`:return this.emitConsume([e,`.ToString("o", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`uuid`:return this.emitConsume([e,`.ToString("D", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`integer`:case`uri`:return this.emitConsume([e,`.ToString()`],t.consumer,a,o);case`bool`:return this.emitLine(`var boolString = `,e,` ? "true" : "false";`),this.emitConsume(`boolString`,t.consumer,a,o);default:return(0,c.panic)(`Stringifying ${t.sourceType.kind} not supported`)}else if(t instanceof m.StringProducerTransformer){let e=this.stringCaseValue(s(t.consumer),t.result);return this.emitConsume(e,t.consumer,a,o)}else if(t instanceof m.MinMaxLengthCheckTransformer){let r=t.minLength,i=t.maxLength,s=[];return r!==void 0&&s.push([e,`.Length >= `,r.toString()]),i!==void 0&&s.push([e,`.Length <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.MinMaxValueTransformer){let r=t.minimum,i=t.maximum,s=[];return r!==void 0&&s.push([e,` >= `,r.toString()]),i!==void 0&&s.push([e,` <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.UnionInstantiationTransformer){if(!(a instanceof r.UnionType))return(0,c.panic)(`Union instantiation transformer must produce a union type`);if((0,i.nullableFromUnion)(a)!==null)o(e);else{let n=this.nameForNamedType(a),r;r=t.sourceType.kind===`null`?` `:[` `,this.nameForUnionMember(a,t.sourceType),` = `,e,` `],o([`new `,n,` {`,r,`}`])}return!0}else return(0,c.panic)(`Unknown transformer`);return!1}emitTransformation(e,t){let n=(0,c.defined)((0,m.transformationForType)(t)),i=n.reverse,a=n.targetType,o=n.transformer;this.emitType(void 0,v.Internal,`class`,e,`JsonConverter`,()=>{let t=this.csType(a),n=[`t == typeof(`,t,`)`],s=j(a);s&&(n=[n,` || t == typeof(`,t,`?)`]),this.emitCanConvert(n),this.ensureBlankLine(),this.emitReadJson(()=>{s&&!(a instanceof r.UnionType)&&this.emitLine(`if (reader.TokenType == JsonToken.Null) return null;`),this.emitDecodeTransformer(o,a,e=>this.emitLine(`return `,e,`;`))||this.emitThrow([`"Cannot unmarshal type `,t,`"`])}),this.ensureBlankLine(),this.emitWriteJson(`untypedValue`,()=>{s&&!(a instanceof r.UnionType)&&(this.emitLine(`if (untypedValue == null)`),this.emitBlock(()=>{this.emitLine(`serializer.Serialize(writer, null);`),this.emitLine(`return;`)})),this.emitLine(`var value = (`,t,`)untypedValue;`),this.emitTransformer(`value`,i.transformer,i.targetType,()=>this.emitLine(`return;`))||this.emitThrow([`"Cannot marshal type `,t,`"`])}),this.ensureBlankLine(),this.emitLine(`public static readonly `,e,` Singleton = new `,e,`();`)})}emitRequiredHelpers(){this._needHelpers&&(this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitFromJsonForTopLevel(e,t)),this.ensureBlankLine(),this.emitSerializeClass()),(this._needHelpers||this._needAttributes&&(this.haveNamedUnions||this.haveEnums))&&(this.ensureBlankLine(),this.emitConverterClass(),this.forEachTransformation(`leading-and-interposing`,(e,t)=>this.emitTransformation(e,t)))}needNamespace(){return this._needNamespaces}};e.NewtonsoftCSharpRenderer=N,e.systemTextJsonCSharpOptions=Object.assign({},e.cSharpOptions,{});var P=class extends M{constructor(e,t,n){super(e,t,n),this._options=n,this._enumExtensionsNames=new Map,this._needHelpers=n.features.helpers,this._needAttributes=n.features.attributes,this._needNamespaces=n.features.namespaces}forbiddenNamesForGlobalNamespace(){let e=[`Converter`,`JsonConverter`,`JsonSerializer`,`JsonWriter`,`JsonToken`,`Serialize`,`JsonSerializerOptions`,`FromJson`,`Required`];return this._options.dense&&e.push(`J`,`R`,`N`),this._options.baseclass!==void 0&&e.push(this._options.baseclass),super.forbiddenNamesForGlobalNamespace().concat(e)}forbiddenForObjectProperties(e,t){let n=super.forbiddenForObjectProperties(e,t);return n.names=n.names.concat([`ToJson`,`FromJson`,`Required`]),n}makeNameForTransformation(e,t){if(t===void 0){let t=e.transformer;return t instanceof m.DecodingTransformer&&t.consumer!==void 0&&(t=t.consumer),new l.SimpleName([`${t.kind}_converter`],C,u.inferredNameOrder+30)}return new l.DependencyName(C,t.order+30,e=>`${e(t)}_converter`)}makeNamedTypeDependencyNames(e,t){if(!(e instanceof r.EnumType))return[];let n=new l.DependencyName(C,t.order+30,e=>`${e(t)}_extensions`);return this._enumExtensionsNames.set(t,n),[n]}emitUsings(){if(this._needAttributes||this._needHelpers){super.emitUsings(),this.ensureBlankLine();for(let e of[`System.Text.Json`,`System.Text.Json.Serialization`,`System.Globalization`])this.emitUsing(e);this._options.dense&&(this.emitUsing([w,` = System.Text.Json.Serialization.JsonPropertyNameAttribute`]),this.emitUsing([E,` = System.Text.Json.Serialization.JsonIgnoreCondition`])),this._options.baseclass===`EntityData`&&this.emitUsing(`Microsoft.Azure.Mobile.Server`)}}baseclassForType(e){return this._options.baseclass}emitDefaultFollowingComments(){this._needHelpers&&(this.emitLine(`#pragma warning restore CS8618`),this.emitLine(`#pragma warning restore CS8601`),this.emitLine(`#pragma warning restore CS8603`))}emitDefaultLeadingComments(){this._needHelpers&&(this.emitLine(`// <auto-generated />`),this.emitLine(`//`),this.emitLine(`// To parse this JSON data, add NuGet 'System.Text.Json' then do`,this.topLevels.size===1?``:` one of these`,`:`),this.emitLine(`//`),this.emitLine(`// using `,this._options.namespace,`;`),this.emitLine(`//`),this.forEachTopLevel(`none`,(e,t)=>{let n;n=e instanceof r.EnumType?[`JsonSerializer.Deserialize<`,t,`>(jsonString)`]:[t,`.FromJson(jsonString)`],this.emitLine(`// var `,(0,o.modifySource)(s.camelCase,t),` = `,n,`;`)}),this.emitLine(`#nullable enable`),this.emitLine(`#pragma warning disable CS8618`),this.emitLine(`#pragma warning disable CS8601`),this.emitLine(`#pragma warning disable CS8603`))}converterForType(e){let t=(0,m.transformationForType)(e);if(t===void 0&&e instanceof r.UnionType){let n=(0,i.nullableFromUnion)(e);n!==null&&(e=n,t=(0,m.transformationForType)(e))}if(t!==void 0&&!x(t))return(0,c.defined)(this.nameForTransformation(e))}attributesForProperty(e,t,n,r){if(!this._needAttributes)return;let i=[],a=this._options.dense?w:`JsonPropertyName`,o=(0,s.utf16StringEscape)(r),c=(0,m.followTargetType)(e.type).isNullable;e.isOptional&&!c&&i.push([`[`,`JsonIgnore`,`(Condition = JsonIgnoreCondition.WhenWritingNull)]`]),i.push([`[`,a,`("`,o,`")]`]);let l=this.converterForType(e.type);return l!==void 0&&i.push([`[JsonConverter(typeof(`,l,`))]`]),i}blankLinesBetweenAttributes(){return this._needAttributes&&!this._options.dense}topLevelResultType(e){return e.kind===`any`||e.kind===`none`?`object`:this.csType(e)}emitFromJsonForTopLevel(e,t){if(e instanceof r.EnumType)return;let n,i,a=this.namedTypeToNameForTopLevel(e);a===void 0?(n=``,i=`class`):(n=`partial `,i=a instanceof r.ClassType?`class`:`struct`);let o=this.topLevelResultType(e);this.emitType(void 0,v.Public,[n,i],t,this.baseclassForType(e),()=>{this.emitExpressionMember([`public static `,o,` FromJson(string json)`],[`JsonSerializer.Deserialize<`,o,`>(json, `,this._options.namespace,`.Converter.Settings)`])})}emitDecoderSwitch(e){this.emitLine(`switch (reader.TokenType)`),this.emitBlock(e)}emitTokenCase(e){this.emitLine(`case JsonTokenType.`,e,`:`)}emitThrow(e){this.emitLine(`throw new Exception(`,e,`);`)}deserializeTypeCode(e){switch(e){case`bool`:return[`reader.GetBoolean()`];case`long`:return[`reader.GetInt64()`];case`decimal`:return[`reader.GetDecimal()`];case`double`:return[`reader.GetDouble()`];case`string`:return[`reader.GetString()`];default:return[`JsonSerializer.Deserialize<`,e,`>(ref reader, options)`]}}serializeValueCode(e){return e===`null`?[`writer.WriteNullValue()`]:[`JsonSerializer.Serialize(writer, `,e,`, options)`]}emitSerializeClass(){this.emitType(void 0,v.Public,`static class`,`Serialize`,void 0,()=>{let e=new Set;this.forEachTopLevel(`none`,t=>{e.has(t)||(e.add(t),this.emitExpressionMember([`public static string ToJson(this `,this.topLevelResultType(t),` self)`],[`JsonSerializer.Serialize(self, `,this._options.namespace,`.Converter.Settings)`]))})})}emitCanConvert(e){this.emitExpressionMember(`public override bool CanConvert(Type t)`,e)}emitReadJson(e,t){this.emitLine(`public override `,t,` Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)`),this.emitBlock(e)}emitWriteJson(e,t,n){this.emitLine(`public override void Write(Utf8JsonWriter writer, `,n,` `,e,`, JsonSerializerOptions options)`),this.emitBlock(t)}converterObject(e){return[e,`.Singleton`]}emitConverterClass(){this.emitType(void 0,v.Internal,`static class`,[`Converter`],void 0,()=>{this.emitLine(`public static readonly JsonSerializerOptions Settings = new(JsonSerializerDefaults.General)`),this.emitBlock(()=>{this.emitLine(`Converters =`),this.emitLine(`{`),this.indent(()=>{for(let[e,t]of this.typesWithNamedTransformations)x((0,c.defined)((0,m.transformationForType)(e)))&&this.emitLine(this.converterObject(t),`,`);this.emitLine(`new DateOnlyConverter(),`),this.emitLine(`new TimeOnlyConverter(),`),this.emitLine(`IsoDateTimeOffsetConverter.Singleton`)}),this.emitLine(`},`)},!0)})}emitDecoderTransformerCase(e,t,n,r,i){if(n!==void 0){for(let t of e)this.emitTokenCase(t);this.indent(()=>{this.emitDecodeTransformer(n,r,i,t)||this.emitLine(`break;`)})}}emitConsume(e,t,n,r){return t===void 0?(r(e),!0):this.emitTransformer(e,t,n,r)}emitDecodeTransformer(e,t,n,i=`value`){if(e instanceof m.DecodingTransformer){let r=e.sourceType,a=this.converterForType(t);if(a!==void 0){let e=this.csType(t);this.emitLine(`var converter = `,this.converterObject(a),`;`),this.emitLine(`var `,i,` = (`,e,`)converter.ReadJson(reader, typeof(`,e,`), null, serializer);`)}else if(r.kind!==`null`){let e=t.kind===`double`?t:r;this.emitLine(`var `,i,` = `,this.deserializeTypeCode(this.csType(e)),`;`)}return this.emitConsume(i,e.consumer,t,n)}if(e instanceof m.ArrayDecodingTransformer){if(!(t instanceof r.ArrayType))return(0,c.panic)(`Array decoding must produce an array type`);this.emitLine(`reader.Read();`),this.emitLine(`var `,i,` = new List<`,this.csType(t.items),`>();`),this.emitLine(`while (reader.TokenType != JsonToken.EndArray)`),this.emitBlock(()=>{this.emitDecodeTransformer(e.itemTransformer,e.itemTargetType,e=>this.emitLine(i,`.Add(`,e,`);`),`arrayItem`),this.emitLine(`reader.Read();`)});let a=i;return this._options.useList||(a=[a,`.ToArray()`]),n(a),!0}return e instanceof m.DecodingChoiceTransformer?(this.emitDecoderSwitch(()=>{let r=e.nullTransformer;r!==void 0&&(this.emitTokenCase(`Null`),this.indent(()=>{this.emitDecodeTransformer(r,t,n,`null`)||this.emitLine(`break`)})),this.emitDecoderTransformerCase([`Number`],`integerValue`,e.integerTransformer,t,n),this.emitDecoderTransformerCase([`Number`],`doubleValue`,e.doubleTransformer,t,n),this.emitDecoderTransformerCase([`True`,`False`],`boolValue`,e.boolTransformer,t,n),this.emitDecoderTransformerCase([`String`],`stringValue`,e.stringTransformer,t,n),this.emitDecoderTransformerCase([`StartObject`],`objectValue`,e.objectTransformer,t,n),this.emitDecoderTransformerCase([`StartArray`],`arrayValue`,e.arrayTransformer,t,n)}),!1):(0,c.panic)(`Unknown transformer`)}stringCaseValue(e,t){return e.kind===`string`?[`"`,(0,s.utf16StringEscape)(t),`"`]:e instanceof r.EnumType?[this.nameForNamedType(e),`.`,this.nameForEnumCase(e,t)]:(0,c.panic)(`Type ${e.kind} does not have string cases`)}emitTransformer(e,t,a,o){function s(e){return e===void 0?a:(0,m.followTargetType)(e.sourceType)}if(t instanceof m.ChoiceTransformer){let n=t.transformers;if(n.length>1&&n.every(e=>e instanceof m.StringMatchTransformer))return this.emitLine(`switch (`,e,`)`),this.emitBlock(()=>{for(let t of n){let n=t,r=this.stringCaseValue((0,m.followTargetType)(n.sourceType),n.stringCase);this.emitLine(`case `,r,`:`),this.indent(()=>{this.emitTransformer(e,n.transformer,a,o)||this.emitLine(`break;`)})}}),!1;for(let t of n)this.emitTransformer(e,t,a,o)}else if(t instanceof m.UnionMemberMatchTransformer){let n=t.memberType,r=(0,i.nullableFromUnion)(t.sourceType),s,c;r===null?n.kind===`null`?(s=[e,`.IsNull`],c=`null`):(c=[e,`.`,this.nameForUnionMember(t.sourceType,n)],s=[c,` != null`]):n.kind===`null`?(s=[e,` == null`],c=`null`):(s=[e,` != null`],c=e),n.kind!==`null`&&j(n)&&(c=[c,`.Value`]),this.emitLine(`if (`,s,`)`),this.emitBlock(()=>this.emitTransformer(c,t.transformer,a,o))}else if(t instanceof m.StringMatchTransformer){let n=this.stringCaseValue((0,m.followTargetType)(t.sourceType),t.stringCase);this.emitLine(`if (`,e,` == `,n,`)`),this.emitBlock(()=>this.emitTransformer(e,t.transformer,a,o))}else if(t instanceof m.EncodingTransformer){let n=this.converterForType(t.sourceType);return n===void 0?this.emitLine(this.serializeValueCode(e),`;`):(this.emitLine(`var converter = `,this.converterObject(n),`;`),this.emitLine(`converter.WriteJson(writer, `,e,`, serializer);`)),o([]),!0}else if(t instanceof m.ArrayEncodingTransformer){this.emitLine(`writer.WriteStartArray();`);let n=`arrayItem`;return this.emitLine(`foreach (var `,n,` in `,e,`)`),this.emitBlock(()=>{this.emitTransformer(n,t.itemTransformer,t.itemTargetType,()=>{})}),this.emitLine(`writer.WriteEndArray();`),o([]),!0}else if(t instanceof m.ParseStringTransformer){let n=t.consumer===void 0?a:t.consumer.sourceType;switch(n.kind){case`date-time`:this.emitLine(`DateTimeOffset dt;`),this.emitLine(`if (DateTimeOffset.TryParse(`,e,`, out dt))`),this.emitBlock(()=>this.emitConsume(`dt`,t.consumer,a,o));break;case`uuid`:this.emitLine(`Guid guid;`),this.emitLine(`if (Guid.TryParse(`,e,`, out guid))`),this.emitBlock(()=>this.emitConsume(`guid`,t.consumer,a,o));break;case`uri`:this.emitLine(`try`),this.emitBlock(()=>{this.emitLine(`var uri = new Uri("about:blank");`),this.emitLine(`if (!string.IsNullOrEmpty(stringValue))`),this.emitBlock(()=>{this.emitLine(`uri = new Uri(`,e,`);`)}),this.emitConsume(`uri`,t.consumer,a,o)}),this.emitLine(`catch (UriFormatException) {}`);break;case`integer`:this.emitLine(`long l;`),this.emitLine(`if (Int64.TryParse(`,e,`, out l))`),this.emitBlock(()=>this.emitConsume(`l`,t.consumer,a,o));break;case`bool`:this.emitLine(`bool b;`),this.emitLine(`if (Boolean.TryParse(`,e,`, out b))`),this.emitBlock(()=>this.emitConsume(`b`,t.consumer,a,o));break;default:return(0,c.panic)(`Parsing string to ${n.kind} not supported`)}}else if(t instanceof m.StringifyTransformer)switch(t.sourceType.kind){case`date-time`:return this.emitConsume([e,`.ToString("o", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`uuid`:return this.emitConsume([e,`.ToString("D", System.Globalization.CultureInfo.InvariantCulture)`],t.consumer,a,o);case`integer`:case`uri`:return this.emitConsume([e,`.ToString()`],t.consumer,a,o);case`bool`:return this.emitLine(`var boolString = `,e,` ? "true" : "false";`),this.emitConsume(`boolString`,t.consumer,a,o);default:return(0,c.panic)(`Stringifying ${t.sourceType.kind} not supported`)}else if(t instanceof m.StringProducerTransformer){let e=this.stringCaseValue(s(t.consumer),t.result);return this.emitConsume(e,t.consumer,a,o)}else if(t instanceof m.MinMaxLengthCheckTransformer){let r=t.minLength,i=t.maxLength,s=[];return r!==void 0&&s.push([e,`.Length >= `,r.toString()]),i!==void 0&&s.push([e,`.Length <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.MinMaxValueTransformer){let r=t.minimum,i=t.maximum,s=[];return r!==void 0&&s.push([e,` >= `,r.toString()]),i!==void 0&&s.push([e,` <= `,i.toString()]),this.emitLine(`if (`,(0,n.arrayIntercalate)([` && `],s),`)`),this.emitBlock(()=>this.emitConsume(e,t.consumer,a,o)),!1}else if(t instanceof m.UnionInstantiationTransformer){if(!(a instanceof r.UnionType))return(0,c.panic)(`Union instantiation transformer must produce a union type`);if((0,i.nullableFromUnion)(a)!==null)o(e);else{let n=this.nameForNamedType(a),r;r=t.sourceType.kind===`null`?` `:[` `,this.nameForUnionMember(a,t.sourceType),` = `,e,` `],o([`new `,n,` {`,r,`}`])}return!0}else return(0,c.panic)(`Unknown transformer`);return!1}emitTransformation(e,t){let n=(0,c.defined)((0,m.transformationForType)(t)),r=n.reverse,i=n.targetType,a=n.transformer,o=this.csType(i);this.emitType(void 0,v.Internal,`class`,e,[`JsonConverter<`,o,`>`],()=>{let t=[`t == typeof(`,o,`)`];this.emitCanConvert(t),this.ensureBlankLine(),this.emitReadJson(()=>{this.emitDecodeTransformer(a,i,e=>this.emitLine(`return `,e,`;`))||this.emitThrow([`"Cannot unmarshal type `,o,`"`])},o),this.ensureBlankLine(),this.emitWriteJson(`value`,()=>{this.emitTransformer(`value`,r.transformer,r.targetType,()=>this.emitLine(`return;`))||this.emitThrow([`"Cannot marshal type `,o,`"`])},o),this.ensureBlankLine(),this.emitLine(`public static readonly `,e,` Singleton = new `,e,`();`)})}emitRequiredHelpers(){this._needHelpers&&(this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitFromJsonForTopLevel(e,t)),this.ensureBlankLine(),this.emitSerializeClass()),(this._needHelpers||this._needAttributes&&(this.haveNamedUnions||this.haveEnums))&&(this.ensureBlankLine(),this.emitConverterClass(),this.forEachTransformation(`leading-and-interposing`,(e,t)=>this.emitTransformation(e,t)),this.emitMultiline(`
126
126
  public class DateOnlyConverter : JsonConverter<DateOnly>
127
127
  {
128
128
  private readonly string serializationFormat;
@@ -507,7 +507,7 @@ function r(name${r}) {
507
507
  return { ref: name };
508
508
  }
509
509
  `),this.emitTypeMap()}}emitConvertModule(){this.ensureBlankLine(),this.emitMultiline(`// Converts JSON ${this._jsOptions.rawType===`json`?`strings`:`types`} to/from your types`),this._jsOptions.runtimeTypecheck&&this.emitMultiline(`// and asserts the results${this._jsOptions.rawType===`json`?` of JSON.parse`:``} at runtime`);let e=this.moduleLine;e===void 0?this.emitConvertModuleBody():this.emitBlock([e,` `],``,()=>this.emitConvertModuleBody())}emitTypes(){}emitUsageImportComment(){this.emitLine(`// const Convert = require("./file");`)}emitUsageComments(){this.emitMultiline(`// To parse this data:
510
- //`),this.emitUsageImportComment(),this.emitLine(`//`),this.forEachTopLevel(`none`,(e,t)=>{let n=(0,c.modifySource)(o.camelCase,t);this.emitLine(`// const `,n,` = Convert.to`,t,`(json);`)}),this._jsOptions.runtimeTypecheck&&(this.emitLine(`//`),this.emitLine(`// These functions will throw an error if the JSON doesn't`),this.emitLine(`// match the expected interface, even if the JSON is valid.`))}emitModuleExports(){this.ensureBlankLine(),this.emitBlock(`module.exports = `,`;`,()=>{this.forEachTopLevel(`none`,(e,t)=>{let n=this.serializerFunctionName(t),r=this.deserializerFunctionName(t);this.emitLine(`"`,n,`": `,n,`,`),this.emitLine(`"`,r,`": `,r,`,`)})})}emitSourceStructure(){this.leadingComments===void 0?this.emitUsageComments():this.emitCommentLines(this.leadingComments),this.emitTypes(),this.emitConvertModule(),this.emitConvertModuleHelpers(),this.emitModuleExports()}};e.JavaScriptRenderer=h})),Za=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JavaScriptPropTypesRenderer=e.JavaScriptPropTypesTargetLanguage=e.javaScriptPropTypesOptions=void 0;var t=Ha(),n=aa(),r=Ba(),i=Da(),o=oa(),s=xs(),c=fa(),l=Ya(),u=Xa(),d=Ja(),f=_a(),p=a(),m=Ea();e.javaScriptPropTypesOptions={acronymStyle:(0,o.acronymOption)(o.AcronymStyleOptions.Pascal),converters:(0,d.convertersOption)(),moduleSystem:new n.EnumOption(`module-system`,`Which module system to use`,[[`common-js`,!1],[`es6`,!0]],`es6`)},e.JavaScriptPropTypesTargetLanguage=class extends t.TargetLanguage{getOptions(){return[e.javaScriptPropTypesOptions.acronymStyle,e.javaScriptPropTypesOptions.converters]}constructor(e=`JavaScript PropTypes`,t=[`javascript-prop-types`],n=`js`){super(e,t,n)}makeRenderer(t,r){return new g(this,t,(0,n.getOptionValues)(e.javaScriptPropTypesOptions,r))}};var h=(0,i.funPrefixNamer)(`properties`,e=>e),g=class extends r.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._jsOptions=n}nameStyle(e,t){let n=(0,o.acronymStyle)(this._jsOptions.acronymStyle),r=(0,s.splitIntoWords)(e);return(0,s.combineWords)(r,u.legalizeName,t?s.firstUpperWordStyle:c.allLowerWordStyle,s.firstUpperWordStyle,t?e=>(0,s.capitalize)(n(e)):c.allLowerWordStyle,n,``,l.isES3IdentifierStart)}makeNamedTypeNamer(){return(0,i.funPrefixNamer)(`types`,e=>this.nameStyle(e,!0))}namerForObjectProperty(){return h}makeUnionMemberNamer(){return null}makeEnumCaseNamer(){return(0,i.funPrefixNamer)(`enum-cases`,e=>this.nameStyle(e,!1))}namedTypeToNameForTopLevel(e){return(0,f.directlyReachableSingleNamedType)(e)}makeNameForProperty(e,t,n,r,i){return super.makeNameForProperty(e,t,n,r,void 0)}typeMapTypeFor(e,t=!0){if([`class`,`object`,`enum`].indexOf(e.kind)>=0)return[`_`,this.nameForNamedType(e)];let n=(0,s.matchType)(e,e=>`PropTypes.any`,e=>`PropTypes.any`,e=>`PropTypes.bool`,e=>`PropTypes.number`,e=>`PropTypes.number`,e=>`PropTypes.string`,e=>[`PropTypes.arrayOf(`,this.typeMapTypeFor(e.items,!1),`)`],e=>(0,s.panic)(`Should already be handled.`),e=>`PropTypes.object`,e=>(0,s.panic)(`Should already be handled.`),e=>{let t=Array.from(e.getChildren()).map(e=>this.typeMapTypeFor(e,!1));return[`PropTypes.oneOfType([`,...(0,p.arrayIntercalate)(`, `,t),`])`]},e=>`PropTypes.string`);return t?[n]:n}typeMapTypeForProperty(e){return this.typeMapTypeFor(e.type)}importStatement(e,t){return this._jsOptions.moduleSystem?[`import `,e,` from `,t,`;`]:[`const `,e,` = require(`,t,`);`]}emitUsageComments(){this.emitCommentLines([`Example usage:`,``,this.importStatement(`{ MyShape }`,`./myShape.js`),``,`class MyComponent extends React.Component {`,` //`,`}`,``,`MyComponent.propTypes = {`,` input: MyShape`,`};`],`// `)}emitBlock(e,t,n){this.emitLine(e,`{`),this.indent(n),this.emitLine(`}`,t)}emitImports(){this.ensureBlankLine(),this.emitLine(this.importStatement(`PropTypes`,`"prop-types"`))}emitExport(e,t){this._jsOptions.moduleSystem?this.emitLine(`export const `,e,` = `,t,`;`):this.emitLine(`module.exports = exports = { `,e,`: `,t,` };`)}emitTypes(){this.ensureBlankLine(),this.forEachObject(`none`,(e,t)=>{this.emitLine(`let _`,t,`;`)}),this.forEachEnum(`none`,(e,t)=>{let n=[];this.forEachEnumCase(e,`none`,(e,t,r)=>{n.push(`'`),n.push(e),n.push(`'`),n.push(`, `)}),n.pop(),this.emitLine([`const _`,t,` = PropTypes.oneOfType([`,...n,`]);`])});let e=[],t=[],n=[];this.forEachObject(`none`,(e,r)=>{t.push(r),n.push(this.gatherSource(()=>this.emitObject(r,e)))}),t.forEach((r,i)=>{let a=0,o=n[i].filter(e=>e);for(let n=0;n<o.length;n++){let r=o[n];for(let n=0;n<e.length;n++){let i=e[n];t[i]===r&&(a=Math.max(a,i+1))}}e.splice(a,0,i)}),e.forEach(e=>this.emitGatheredSource(n[e])),this.forEachTopLevel(`none`,(e,t)=>{e instanceof m.PrimitiveType?(this.ensureBlankLine(),this.emitExport(t,this.typeMapTypeFor(e))):e.kind===`array`?(this.ensureBlankLine(),this.emitExport(t,[`PropTypes.arrayOf(`,this.typeMapTypeFor(e.items),`)`])):(this.ensureBlankLine(),this.emitExport(t,[`_`,t]))})}emitObject(e,t){this.ensureBlankLine(),this.emitLine(`_`,e,` = PropTypes.shape({`),this.indent(()=>{this.forEachClassProperty(t,`none`,(e,t,n)=>{this.emitLine(`"${(0,c.utf16StringEscape)(t)}"`,`: `,this.typeMapTypeForProperty(n),`,`)})}),this.emitLine(`});`)}emitSourceStructure(){this.leadingComments===void 0?this.emitUsageComments():this.emitCommentLines(this.leadingComments),this.emitImports(),this.emitTypes()}};e.JavaScriptPropTypesRenderer=g})),Qa=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FlowRenderer=e.FlowTargetLanguage=e.TypeScriptRenderer=e.TypeScriptFlowBaseRenderer=e.TypeScriptTargetLanguage=e.TypeScriptFlowBaseTargetLanguage=e.tsFlowOptions=void 0;var t=Ea(),n=_a(),r=fa(),i=Oa(),a=Da(),o=aa(),s=Xa(),c=Q(),l=Ya();e.tsFlowOptions=Object.assign({},s.javaScriptOptions,{justTypes:new o.BooleanOption(`just-types`,`Interfaces only`,!1),nicePropertyNames:new o.BooleanOption(`nice-property-names`,`Transform property names to be JavaScripty`,!1),declareUnions:new o.BooleanOption(`explicit-unions`,`Explicitly name unions`,!1),preferUnions:new o.BooleanOption(`prefer-unions`,`Use union type instead of enum`,!1),preferTypes:new o.BooleanOption(`prefer-types`,`Use types instead of interfaces`,!1)});var u={any:`: any`,anyArray:`: any[]`,anyMap:`: { [k: string]: any }`,string:`: string`,stringArray:`: string[]`,boolean:`: boolean`},d=class extends s.JavaScriptTargetLanguage{getOptions(){return[e.tsFlowOptions.justTypes,e.tsFlowOptions.nicePropertyNames,e.tsFlowOptions.declareUnions,e.tsFlowOptions.runtimeTypecheck,e.tsFlowOptions.runtimeTypecheckIgnoreUnknownProperties,e.tsFlowOptions.acronymStyle,e.tsFlowOptions.converters,e.tsFlowOptions.rawType,e.tsFlowOptions.preferUnions,e.tsFlowOptions.preferTypes]}get supportsOptionalClassProperties(){return!0}};e.TypeScriptFlowBaseTargetLanguage=d,e.TypeScriptTargetLanguage=class extends d{constructor(){super(`TypeScript`,[`typescript`,`ts`,`tsx`],`ts`)}makeRenderer(t,n){return new m(this,t,(0,o.getOptionValues)(e.tsFlowOptions,n))}};function f(e){let t=(0,r.utf16StringEscape)(e),n=`"${t}"`;return e.length===0?n:(0,l.isES3IdentifierStart)(e.codePointAt(0))&&t===e&&(0,s.legalizeName)(e)===e?e:n}var p=class extends s.JavaScriptRenderer{constructor(e,t,n){super(e,t,n),this._tsFlowOptions=n}namerForObjectProperty(){return this._tsFlowOptions.nicePropertyNames?(0,a.funPrefixNamer)(`properties`,e=>this.nameStyle(e,!1)):super.namerForObjectProperty()}sourceFor(e){return[`class`,`object`,`enum`].indexOf(e.kind)>=0?(0,i.singleWord)(this.nameForNamedType(e)):(0,n.matchType)(e,e=>(0,i.singleWord)(`any`),e=>(0,i.singleWord)(`null`),e=>(0,i.singleWord)(`boolean`),e=>(0,i.singleWord)(`number`),e=>(0,i.singleWord)(`number`),e=>(0,i.singleWord)(`string`),e=>{let n=this.sourceFor(e.items);return e.items instanceof t.UnionType&&!this._tsFlowOptions.declareUnions||e.items instanceof t.ArrayType?(0,i.singleWord)([`Array<`,n.source,`>`]):(0,i.singleWord)([(0,i.parenIfNeeded)(n),`[]`])},e=>(0,c.panic)(`We handled this above`),e=>(0,i.singleWord)([`{ [key: string]: `,this.sourceFor(e.values).source,` }`]),e=>(0,c.panic)(`We handled this above`),e=>{if(!this._tsFlowOptions.declareUnions||(0,n.nullableFromUnion)(e)!==null){let t=Array.from(e.getChildren()).map(e=>(0,i.parenIfNeeded)(this.sourceFor(e)));return(0,i.multiWord)(` | `,...t)}return(0,i.singleWord)(this.nameForNamedType(e))},e=>e.kind===`date-time`?(0,i.singleWord)(`Date`):(0,i.singleWord)(`string`))}emitClassBlockBody(e){this.emitPropertyTable(e,(e,t,n)=>{let r=n.type;return[[(0,i.modifySource)(f,e),n.isOptional?`?`:``,`: `],[this.sourceFor(r).source,`;`]]});let t=e.getAdditionalProperties();t&&this.emitTable([[`[property: string]`,`: `,this.sourceFor(t).source,`;`]])}emitClass(e,t){this.emitDescription(this.descriptionForType(e)),this.emitClassBlock(e,t)}emitUnion(e,t){if(!this._tsFlowOptions.declareUnions)return;this.emitDescription(this.descriptionForType(e));let n=(0,i.multiWord)(` | `,...Array.from(e.getChildren()).map(e=>(0,i.parenIfNeeded)(this.sourceFor(e))));this.emitLine(`export type `,t,` = `,n.source,`;`)}emitTypes(){this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClass(e,t),(e,t)=>this.emitEnum(e,t),(e,t)=>this.emitUnion(e,t))}emitUsageComments(){this._tsFlowOptions.justTypes||super.emitUsageComments()}deserializerFunctionLine(e,t){return[`function to`,t,`(json: `,this._tsFlowOptions.rawType===`json`?`string`:`any`,`): `,this.sourceFor(e).source]}serializerFunctionLine(e,t){let n=(0,i.modifySource)(r.camelCase,t),a=this._tsFlowOptions.rawType===`json`?`string`:`any`;return[`function `,n,`ToJson(value: `,this.sourceFor(e).source,`): `,a]}get moduleLine(){}get castFunctionLines(){return[`function cast<T>(val: any, typ: any): T`,`function uncast<T>(val: T, typ: any): any`]}get typeAnnotations(){throw Error(`not implemented`)}emitConvertModule(){this._tsFlowOptions.justTypes||super.emitConvertModule()}emitConvertModuleHelpers(){this._tsFlowOptions.justTypes||super.emitConvertModuleHelpers()}emitModuleExports(){this._tsFlowOptions.justTypes||super.emitModuleExports()}};e.TypeScriptFlowBaseRenderer=p;var m=class extends p{forbiddenNamesForGlobalNamespace(){return[`Array`,`Date`]}deserializerFunctionLine(e,t){return[`public static to`,t,`(json: `,this._tsFlowOptions.rawType===`json`?`string`:`any`,`): `,this.sourceFor(e).source]}serializerFunctionLine(e,t){let n=(0,i.modifySource)(r.camelCase,t),a=this._tsFlowOptions.rawType===`json`?`string`:`any`;return[`public static `,n,`ToJson(value: `,this.sourceFor(e).source,`): `,a]}get moduleLine(){return`export class Convert`}get typeAnnotations(){return Object.assign({never:`: never`},u)}emitModuleExports(){}emitUsageImportComment(){let e=[];this.forEachTopLevel(`none`,(t,n)=>{e.push(`, `,n)},n.isNamedType),this.emitLine(`// import { Convert`,e,` } from "./file";`)}emitEnum(e,t){if(this.emitDescription(this.descriptionForType(e)),this._tsFlowOptions.preferUnions){let n=``;e.cases.forEach(e=>{if(n===``){n+=`"${(0,r.utf16StringEscape)(e)}"`;return}n+=` | "${(0,r.utf16StringEscape)(e)}"`}),this.emitLine(`export type `,t,` = `,n,`;`)}else this.emitBlock([`export enum `,t,` `],``,()=>{this.forEachEnumCase(e,`none`,(e,t)=>{this.emitLine(e,` = "${(0,r.utf16StringEscape)(t)}",`)})})}emitClassBlock(e,t){this.emitBlock(this._tsFlowOptions.preferTypes?[`export type `,t,` = `]:[`export interface `,t,` `],``,()=>{this.emitClassBlockBody(e)})}};e.TypeScriptRenderer=m,e.FlowTargetLanguage=class extends d{constructor(){super(`Flow`,[`flow`],`js`)}makeRenderer(t,n){return new h(this,t,(0,o.getOptionValues)(e.tsFlowOptions,n))}};var h=class extends p{forbiddenNamesForGlobalNamespace(){return[`Class`,`Date`,`Object`,`String`,`Array`,`JSON`,`Error`]}get typeAnnotations(){return Object.assign({never:``},u)}emitEnum(e,t){this.emitDescription(this.descriptionForType(e));let n=[];this.forEachEnumCase(e,`none`,(e,t)=>{let i=n.length===0?` `:`| `;n.push([i,`"`,(0,r.utf16StringEscape)(t),`"`])}),(0,c.defined)(n[n.length-1]).push(`;`),this.emitLine(`export type `,t,` =`),this.indent(()=>{for(let e of n)this.emitLine(e)})}emitClassBlock(e,t){this.emitBlock([`export type `,t,` = `],`;`,()=>{this.emitClassBlockBody(e)})}emitSourceStructure(){this.emitLine(`// @flow`),this.ensureBlankLine(),super.emitSourceStructure()}};e.FlowRenderer=h})),$a=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SwiftRenderer=e.SwiftTargetLanguage=e.swiftOptions=void 0;var t=a(),n=Q(),r=Ha(),i=Ea(),o=_a(),s=Da(),c=aa(),l=Oa(),u=ka(),d=Ba(),f=fa(),p=Q(),m=Va(),h=oa(),g=4;e.swiftOptions={justTypes:new c.BooleanOption(`just-types`,`Plain types only`,!1),convenienceInitializers:new c.BooleanOption(`initializers`,`Generate initializers and mutators`,!0),explicitCodingKeys:new c.BooleanOption(`coding-keys`,`Explicit CodingKey values in Codable types`,!0),alamofire:new c.BooleanOption(`alamofire`,`Alamofire extensions`,!1),namedTypePrefix:new c.StringOption(`type-prefix`,`Prefix for type names`,`PREFIX`,``,`secondary`),useClasses:new c.EnumOption(`struct-or-class`,`Structs or classes`,[[`struct`,!1],[`class`,!0]]),mutableProperties:new c.BooleanOption(`mutable-properties`,`Use var instead of let for object properties`,!1),acronymStyle:(0,h.acronymOption)(h.AcronymStyleOptions.Pascal),dense:new c.EnumOption(`density`,`Code density`,[[`dense`,!0],[`normal`,!1]],`dense`,`secondary`),linux:new c.BooleanOption(`support-linux`,`Support Linux`,!1,`secondary`),objcSupport:new c.BooleanOption(`objective-c-support`,`Objects inherit from NSObject and @objcMembers is added to classes`,!1),optionalEnums:new c.BooleanOption(`optional-enums`,`If no matching case is found enum value is set to null`,!1),swift5Support:new c.BooleanOption(`swift-5-support`,`Renders output in a Swift 5 compatible mode`,!1),multiFileOutput:new c.BooleanOption(`multi-file-output`,`Renders each top-level object in its own Swift file`,!1),accessLevel:new c.EnumOption(`access-level`,`Access level`,[[`internal`,`internal`],[`public`,`public`]],`internal`,`secondary`),protocol:new c.EnumOption(`protocol`,`Make types implement protocol`,[[`none`,{equatable:!1,hashable:!1}],[`equatable`,{equatable:!0,hashable:!1}],[`hashable`,{equatable:!1,hashable:!0}]],`none`,`secondary`)};var _=/^\d+-\d+-\d+T\d+:\d+:\d+([zZ]|[+-]\d+(:\d+)?)$/,v=class extends m.DefaultDateTimeRecognizer{isDateTime(e){return e.match(_)!==null}};e.SwiftTargetLanguage=class extends r.TargetLanguage{constructor(){super(`Swift`,[`swift`,`swift4`],`swift`)}getOptions(){return[e.swiftOptions.justTypes,e.swiftOptions.useClasses,e.swiftOptions.dense,e.swiftOptions.convenienceInitializers,e.swiftOptions.explicitCodingKeys,e.swiftOptions.accessLevel,e.swiftOptions.alamofire,e.swiftOptions.linux,e.swiftOptions.namedTypePrefix,e.swiftOptions.protocol,e.swiftOptions.acronymStyle,e.swiftOptions.objcSupport,e.swiftOptions.optionalEnums,e.swiftOptions.swift5Support,e.swiftOptions.multiFileOutput,e.swiftOptions.mutableProperties]}get stringTypeMapping(){let e=new Map;return e.set(`date-time`,`date-time`),e}get supportsOptionalClassProperties(){return!0}get supportsUnionsWithBothNumberTypes(){return!0}makeRenderer(t,n){return new E(this,t,(0,c.getOptionValues)(e.swiftOptions,n))}get dateTimeRecognizer(){return new v}};var y=`await.associatedtype.class.deinit.enum.extension.fileprivate.func.import.init.inout.internal.let.open.operator.private.protocol.public.static.struct.subscript.typealias.var.break.case.continue.default.defer.do.else.fallthrough.for.guard.if.in.repeat.return.switch.where.while.as.Any.catch.false.is.nil.rethrows.super.self.Self.throw.throws.true.try._.associativity.convenience.dynamic.didSet.final.get.infix.indirect.lazy.left.mutating.nonmutating.optional.override.postfix.precedence.prefix.Protocol.required.right.set.Type.unowned.weak.willSet.String.Int.Double.Bool.Data.Date.URL.CommandLine.FileHandle.JSONSerialization.checkNull.removeNSNull.nilToNSNull.convertArray.convertOptional.convertDict.convertDouble.jsonString.jsonData`.split(`.`);function b(e){return(0,f.isLetterOrUnderscore)(e)||(0,f.isNumeric)(e)}function x(e){return b(e)&&!(0,f.isDigit)(e)}var S=(0,f.legalizeCharacters)(b);function C(e,t,n,r=f.allUpperWordStyle){let i=(0,f.splitIntoWords)(n),a=(0,f.combineWords)(i,S,t?f.firstUpperWordStyle:f.allLowerWordStyle,f.firstUpperWordStyle,t?f.allUpperWordStyle:f.allLowerWordStyle,r,``,x);return(0,f.addPrefixIfNecessary)(e,a)}function w(e){return`\\u{`+(0,f.intToHex)(e,0)+`}`}var T=(0,f.utf32ConcatMap)((0,f.escapeNonPrintableMapper)(f.isPrintable,w)),E=class extends d.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._options=n,this._needAny=!1,this._needNull=!1,this.emitSupportFunctions4=()=>{this.startFile(`JSONSchemaSupport`),this.emitLineOnce(`import Foundation`),this.forEachTopLevel(`leading`,(e,t)=>this.renderTopLevelAlias(e,t),e=>this.namedTypeToNameForTopLevel(e)===void 0),this._options.convenienceInitializers&&(this.ensureBlankLine(),this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitTopLevelMapAndArrayConvenienceInitializerExtensions(e,t))),(!this._options.justTypes&&this._options.convenienceInitializers||this._options.alamofire)&&(this.ensureBlankLine(),this.emitMark(`Helper functions for creating encoders and decoders`,!0),this.ensureBlankLine(),this.emitNewEncoderDecoder()),this._options.alamofire&&(this.ensureBlankLine(),this.emitMark(`Alamofire response handlers`,!0),this.ensureBlankLine(),this.emitAlamofireExtension()),(this._needAny||this._needNull)&&(this.ensureBlankLine(),this.emitMark(`Encode/decode helpers`,!0),this.ensureBlankLine(),this._options.objcSupport?this.emitLine(this.objcMembersDeclaration,this.accessLevel,`class JSONNull: NSObject, Codable {`):this.emitLine(this.accessLevel,`class JSONNull: Codable, Hashable {`),this.ensureBlankLine(),this.emitMultiline(` public static func == (lhs: JSONNull, rhs: JSONNull) -> Bool {
510
+ //`),this.emitUsageImportComment(),this.emitLine(`//`),this.forEachTopLevel(`none`,(e,t)=>{let n=(0,c.modifySource)(o.camelCase,t);this.emitLine(`// const `,n,` = Convert.to`,t,`(json);`)}),this._jsOptions.runtimeTypecheck&&(this.emitLine(`//`),this.emitLine(`// These functions will throw an error if the JSON doesn't`),this.emitLine(`// match the expected interface, even if the JSON is valid.`))}emitModuleExports(){this.ensureBlankLine(),this.emitBlock(`module.exports = `,`;`,()=>{this.forEachTopLevel(`none`,(e,t)=>{let n=this.serializerFunctionName(t),r=this.deserializerFunctionName(t);this.emitLine(`"`,n,`": `,n,`,`),this.emitLine(`"`,r,`": `,r,`,`)})})}emitSourceStructure(){this.leadingComments===void 0?this.emitUsageComments():this.emitCommentLines(this.leadingComments),this.emitTypes(),this.emitConvertModule(),this.emitConvertModuleHelpers(),this.emitModuleExports()}};e.JavaScriptRenderer=h})),Za=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JavaScriptPropTypesRenderer=e.JavaScriptPropTypesTargetLanguage=e.javaScriptPropTypesOptions=void 0;var t=Ha(),n=aa(),r=Ba(),i=Da(),o=oa(),s=bs(),c=fa(),l=Ya(),u=Xa(),d=Ja(),f=_a(),p=a(),m=Ea();e.javaScriptPropTypesOptions={acronymStyle:(0,o.acronymOption)(o.AcronymStyleOptions.Pascal),converters:(0,d.convertersOption)(),moduleSystem:new n.EnumOption(`module-system`,`Which module system to use`,[[`common-js`,!1],[`es6`,!0]],`es6`)},e.JavaScriptPropTypesTargetLanguage=class extends t.TargetLanguage{getOptions(){return[e.javaScriptPropTypesOptions.acronymStyle,e.javaScriptPropTypesOptions.converters]}constructor(e=`JavaScript PropTypes`,t=[`javascript-prop-types`],n=`js`){super(e,t,n)}makeRenderer(t,r){return new g(this,t,(0,n.getOptionValues)(e.javaScriptPropTypesOptions,r))}};var h=(0,i.funPrefixNamer)(`properties`,e=>e),g=class extends r.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._jsOptions=n}nameStyle(e,t){let n=(0,o.acronymStyle)(this._jsOptions.acronymStyle),r=(0,s.splitIntoWords)(e);return(0,s.combineWords)(r,u.legalizeName,t?s.firstUpperWordStyle:c.allLowerWordStyle,s.firstUpperWordStyle,t?e=>(0,s.capitalize)(n(e)):c.allLowerWordStyle,n,``,l.isES3IdentifierStart)}makeNamedTypeNamer(){return(0,i.funPrefixNamer)(`types`,e=>this.nameStyle(e,!0))}namerForObjectProperty(){return h}makeUnionMemberNamer(){return null}makeEnumCaseNamer(){return(0,i.funPrefixNamer)(`enum-cases`,e=>this.nameStyle(e,!1))}namedTypeToNameForTopLevel(e){return(0,f.directlyReachableSingleNamedType)(e)}makeNameForProperty(e,t,n,r,i){return super.makeNameForProperty(e,t,n,r,void 0)}typeMapTypeFor(e,t=!0){if([`class`,`object`,`enum`].indexOf(e.kind)>=0)return[`_`,this.nameForNamedType(e)];let n=(0,s.matchType)(e,e=>`PropTypes.any`,e=>`PropTypes.any`,e=>`PropTypes.bool`,e=>`PropTypes.number`,e=>`PropTypes.number`,e=>`PropTypes.string`,e=>[`PropTypes.arrayOf(`,this.typeMapTypeFor(e.items,!1),`)`],e=>(0,s.panic)(`Should already be handled.`),e=>`PropTypes.object`,e=>(0,s.panic)(`Should already be handled.`),e=>{let t=Array.from(e.getChildren()).map(e=>this.typeMapTypeFor(e,!1));return[`PropTypes.oneOfType([`,...(0,p.arrayIntercalate)(`, `,t),`])`]},e=>`PropTypes.string`);return t?[n]:n}typeMapTypeForProperty(e){return this.typeMapTypeFor(e.type)}importStatement(e,t){return this._jsOptions.moduleSystem?[`import `,e,` from `,t,`;`]:[`const `,e,` = require(`,t,`);`]}emitUsageComments(){this.emitCommentLines([`Example usage:`,``,this.importStatement(`{ MyShape }`,`./myShape.js`),``,`class MyComponent extends React.Component {`,` //`,`}`,``,`MyComponent.propTypes = {`,` input: MyShape`,`};`],`// `)}emitBlock(e,t,n){this.emitLine(e,`{`),this.indent(n),this.emitLine(`}`,t)}emitImports(){this.ensureBlankLine(),this.emitLine(this.importStatement(`PropTypes`,`"prop-types"`))}emitExport(e,t){this._jsOptions.moduleSystem?this.emitLine(`export const `,e,` = `,t,`;`):this.emitLine(`module.exports = exports = { `,e,`: `,t,` };`)}emitTypes(){this.ensureBlankLine(),this.forEachObject(`none`,(e,t)=>{this.emitLine(`let _`,t,`;`)}),this.forEachEnum(`none`,(e,t)=>{let n=[];this.forEachEnumCase(e,`none`,(e,t,r)=>{n.push(`'`),n.push(e),n.push(`'`),n.push(`, `)}),n.pop(),this.emitLine([`const _`,t,` = PropTypes.oneOfType([`,...n,`]);`])});let e=[],t=[],n=[];this.forEachObject(`none`,(e,r)=>{t.push(r),n.push(this.gatherSource(()=>this.emitObject(r,e)))}),t.forEach((r,i)=>{let a=0,o=n[i].filter(e=>e);for(let n=0;n<o.length;n++){let r=o[n];for(let n=0;n<e.length;n++){let i=e[n];t[i]===r&&(a=Math.max(a,i+1))}}e.splice(a,0,i)}),e.forEach(e=>this.emitGatheredSource(n[e])),this.forEachTopLevel(`none`,(e,t)=>{e instanceof m.PrimitiveType?(this.ensureBlankLine(),this.emitExport(t,this.typeMapTypeFor(e))):e.kind===`array`?(this.ensureBlankLine(),this.emitExport(t,[`PropTypes.arrayOf(`,this.typeMapTypeFor(e.items),`)`])):(this.ensureBlankLine(),this.emitExport(t,[`_`,t]))})}emitObject(e,t){this.ensureBlankLine(),this.emitLine(`_`,e,` = PropTypes.shape({`),this.indent(()=>{this.forEachClassProperty(t,`none`,(e,t,n)=>{this.emitLine(`"${(0,c.utf16StringEscape)(t)}"`,`: `,this.typeMapTypeForProperty(n),`,`)})}),this.emitLine(`});`)}emitSourceStructure(){this.leadingComments===void 0?this.emitUsageComments():this.emitCommentLines(this.leadingComments),this.emitImports(),this.emitTypes()}};e.JavaScriptPropTypesRenderer=g})),Qa=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FlowRenderer=e.FlowTargetLanguage=e.TypeScriptRenderer=e.TypeScriptFlowBaseRenderer=e.TypeScriptTargetLanguage=e.TypeScriptFlowBaseTargetLanguage=e.tsFlowOptions=void 0;var t=Ea(),n=_a(),r=fa(),i=Oa(),a=Da(),o=aa(),s=Xa(),c=Q(),l=Ya();e.tsFlowOptions=Object.assign({},s.javaScriptOptions,{justTypes:new o.BooleanOption(`just-types`,`Interfaces only`,!1),nicePropertyNames:new o.BooleanOption(`nice-property-names`,`Transform property names to be JavaScripty`,!1),declareUnions:new o.BooleanOption(`explicit-unions`,`Explicitly name unions`,!1),preferUnions:new o.BooleanOption(`prefer-unions`,`Use union type instead of enum`,!1),preferTypes:new o.BooleanOption(`prefer-types`,`Use types instead of interfaces`,!1)});var u={any:`: any`,anyArray:`: any[]`,anyMap:`: { [k: string]: any }`,string:`: string`,stringArray:`: string[]`,boolean:`: boolean`},d=class extends s.JavaScriptTargetLanguage{getOptions(){return[e.tsFlowOptions.justTypes,e.tsFlowOptions.nicePropertyNames,e.tsFlowOptions.declareUnions,e.tsFlowOptions.runtimeTypecheck,e.tsFlowOptions.runtimeTypecheckIgnoreUnknownProperties,e.tsFlowOptions.acronymStyle,e.tsFlowOptions.converters,e.tsFlowOptions.rawType,e.tsFlowOptions.preferUnions,e.tsFlowOptions.preferTypes]}get supportsOptionalClassProperties(){return!0}};e.TypeScriptFlowBaseTargetLanguage=d,e.TypeScriptTargetLanguage=class extends d{constructor(){super(`TypeScript`,[`typescript`,`ts`,`tsx`],`ts`)}makeRenderer(t,n){return new m(this,t,(0,o.getOptionValues)(e.tsFlowOptions,n))}};function f(e){let t=(0,r.utf16StringEscape)(e),n=`"${t}"`;return e.length===0?n:(0,l.isES3IdentifierStart)(e.codePointAt(0))&&t===e&&(0,s.legalizeName)(e)===e?e:n}var p=class extends s.JavaScriptRenderer{constructor(e,t,n){super(e,t,n),this._tsFlowOptions=n}namerForObjectProperty(){return this._tsFlowOptions.nicePropertyNames?(0,a.funPrefixNamer)(`properties`,e=>this.nameStyle(e,!1)):super.namerForObjectProperty()}sourceFor(e){return[`class`,`object`,`enum`].indexOf(e.kind)>=0?(0,i.singleWord)(this.nameForNamedType(e)):(0,n.matchType)(e,e=>(0,i.singleWord)(`any`),e=>(0,i.singleWord)(`null`),e=>(0,i.singleWord)(`boolean`),e=>(0,i.singleWord)(`number`),e=>(0,i.singleWord)(`number`),e=>(0,i.singleWord)(`string`),e=>{let n=this.sourceFor(e.items);return e.items instanceof t.UnionType&&!this._tsFlowOptions.declareUnions||e.items instanceof t.ArrayType?(0,i.singleWord)([`Array<`,n.source,`>`]):(0,i.singleWord)([(0,i.parenIfNeeded)(n),`[]`])},e=>(0,c.panic)(`We handled this above`),e=>(0,i.singleWord)([`{ [key: string]: `,this.sourceFor(e.values).source,` }`]),e=>(0,c.panic)(`We handled this above`),e=>{if(!this._tsFlowOptions.declareUnions||(0,n.nullableFromUnion)(e)!==null){let t=Array.from(e.getChildren()).map(e=>(0,i.parenIfNeeded)(this.sourceFor(e)));return(0,i.multiWord)(` | `,...t)}return(0,i.singleWord)(this.nameForNamedType(e))},e=>e.kind===`date-time`?(0,i.singleWord)(`Date`):(0,i.singleWord)(`string`))}emitClassBlockBody(e){this.emitPropertyTable(e,(e,t,n)=>{let r=n.type;return[[(0,i.modifySource)(f,e),n.isOptional?`?`:``,`: `],[this.sourceFor(r).source,`;`]]});let t=e.getAdditionalProperties();t&&this.emitTable([[`[property: string]`,`: `,this.sourceFor(t).source,`;`]])}emitClass(e,t){this.emitDescription(this.descriptionForType(e)),this.emitClassBlock(e,t)}emitUnion(e,t){if(!this._tsFlowOptions.declareUnions)return;this.emitDescription(this.descriptionForType(e));let n=(0,i.multiWord)(` | `,...Array.from(e.getChildren()).map(e=>(0,i.parenIfNeeded)(this.sourceFor(e))));this.emitLine(`export type `,t,` = `,n.source,`;`)}emitTypes(){this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClass(e,t),(e,t)=>this.emitEnum(e,t),(e,t)=>this.emitUnion(e,t))}emitUsageComments(){this._tsFlowOptions.justTypes||super.emitUsageComments()}deserializerFunctionLine(e,t){return[`function to`,t,`(json: `,this._tsFlowOptions.rawType===`json`?`string`:`any`,`): `,this.sourceFor(e).source]}serializerFunctionLine(e,t){let n=(0,i.modifySource)(r.camelCase,t),a=this._tsFlowOptions.rawType===`json`?`string`:`any`;return[`function `,n,`ToJson(value: `,this.sourceFor(e).source,`): `,a]}get moduleLine(){}get castFunctionLines(){return[`function cast<T>(val: any, typ: any): T`,`function uncast<T>(val: T, typ: any): any`]}get typeAnnotations(){throw Error(`not implemented`)}emitConvertModule(){this._tsFlowOptions.justTypes||super.emitConvertModule()}emitConvertModuleHelpers(){this._tsFlowOptions.justTypes||super.emitConvertModuleHelpers()}emitModuleExports(){this._tsFlowOptions.justTypes||super.emitModuleExports()}};e.TypeScriptFlowBaseRenderer=p;var m=class extends p{forbiddenNamesForGlobalNamespace(){return[`Array`,`Date`]}deserializerFunctionLine(e,t){return[`public static to`,t,`(json: `,this._tsFlowOptions.rawType===`json`?`string`:`any`,`): `,this.sourceFor(e).source]}serializerFunctionLine(e,t){let n=(0,i.modifySource)(r.camelCase,t),a=this._tsFlowOptions.rawType===`json`?`string`:`any`;return[`public static `,n,`ToJson(value: `,this.sourceFor(e).source,`): `,a]}get moduleLine(){return`export class Convert`}get typeAnnotations(){return Object.assign({never:`: never`},u)}emitModuleExports(){}emitUsageImportComment(){let e=[];this.forEachTopLevel(`none`,(t,n)=>{e.push(`, `,n)},n.isNamedType),this.emitLine(`// import { Convert`,e,` } from "./file";`)}emitEnum(e,t){if(this.emitDescription(this.descriptionForType(e)),this._tsFlowOptions.preferUnions){let n=``;e.cases.forEach(e=>{if(n===``){n+=`"${(0,r.utf16StringEscape)(e)}"`;return}n+=` | "${(0,r.utf16StringEscape)(e)}"`}),this.emitLine(`export type `,t,` = `,n,`;`)}else this.emitBlock([`export enum `,t,` `],``,()=>{this.forEachEnumCase(e,`none`,(e,t)=>{this.emitLine(e,` = "${(0,r.utf16StringEscape)(t)}",`)})})}emitClassBlock(e,t){this.emitBlock(this._tsFlowOptions.preferTypes?[`export type `,t,` = `]:[`export interface `,t,` `],``,()=>{this.emitClassBlockBody(e)})}};e.TypeScriptRenderer=m,e.FlowTargetLanguage=class extends d{constructor(){super(`Flow`,[`flow`],`js`)}makeRenderer(t,n){return new h(this,t,(0,o.getOptionValues)(e.tsFlowOptions,n))}};var h=class extends p{forbiddenNamesForGlobalNamespace(){return[`Class`,`Date`,`Object`,`String`,`Array`,`JSON`,`Error`]}get typeAnnotations(){return Object.assign({never:``},u)}emitEnum(e,t){this.emitDescription(this.descriptionForType(e));let n=[];this.forEachEnumCase(e,`none`,(e,t)=>{let i=n.length===0?` `:`| `;n.push([i,`"`,(0,r.utf16StringEscape)(t),`"`])}),(0,c.defined)(n[n.length-1]).push(`;`),this.emitLine(`export type `,t,` =`),this.indent(()=>{for(let e of n)this.emitLine(e)})}emitClassBlock(e,t){this.emitBlock([`export type `,t,` = `],`;`,()=>{this.emitClassBlockBody(e)})}emitSourceStructure(){this.emitLine(`// @flow`),this.ensureBlankLine(),super.emitSourceStructure()}};e.FlowRenderer=h})),$a=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SwiftRenderer=e.SwiftTargetLanguage=e.swiftOptions=void 0;var t=a(),n=Q(),r=Ha(),i=Ea(),o=_a(),s=Da(),c=aa(),l=Oa(),u=ka(),d=Ba(),f=fa(),p=Q(),m=Va(),h=oa(),g=4;e.swiftOptions={justTypes:new c.BooleanOption(`just-types`,`Plain types only`,!1),convenienceInitializers:new c.BooleanOption(`initializers`,`Generate initializers and mutators`,!0),explicitCodingKeys:new c.BooleanOption(`coding-keys`,`Explicit CodingKey values in Codable types`,!0),alamofire:new c.BooleanOption(`alamofire`,`Alamofire extensions`,!1),namedTypePrefix:new c.StringOption(`type-prefix`,`Prefix for type names`,`PREFIX`,``,`secondary`),useClasses:new c.EnumOption(`struct-or-class`,`Structs or classes`,[[`struct`,!1],[`class`,!0]]),mutableProperties:new c.BooleanOption(`mutable-properties`,`Use var instead of let for object properties`,!1),acronymStyle:(0,h.acronymOption)(h.AcronymStyleOptions.Pascal),dense:new c.EnumOption(`density`,`Code density`,[[`dense`,!0],[`normal`,!1]],`dense`,`secondary`),linux:new c.BooleanOption(`support-linux`,`Support Linux`,!1,`secondary`),objcSupport:new c.BooleanOption(`objective-c-support`,`Objects inherit from NSObject and @objcMembers is added to classes`,!1),optionalEnums:new c.BooleanOption(`optional-enums`,`If no matching case is found enum value is set to null`,!1),swift5Support:new c.BooleanOption(`swift-5-support`,`Renders output in a Swift 5 compatible mode`,!1),multiFileOutput:new c.BooleanOption(`multi-file-output`,`Renders each top-level object in its own Swift file`,!1),accessLevel:new c.EnumOption(`access-level`,`Access level`,[[`internal`,`internal`],[`public`,`public`]],`internal`,`secondary`),protocol:new c.EnumOption(`protocol`,`Make types implement protocol`,[[`none`,{equatable:!1,hashable:!1}],[`equatable`,{equatable:!0,hashable:!1}],[`hashable`,{equatable:!1,hashable:!0}]],`none`,`secondary`)};var _=/^\d+-\d+-\d+T\d+:\d+:\d+([zZ]|[+-]\d+(:\d+)?)$/,v=class extends m.DefaultDateTimeRecognizer{isDateTime(e){return e.match(_)!==null}};e.SwiftTargetLanguage=class extends r.TargetLanguage{constructor(){super(`Swift`,[`swift`,`swift4`],`swift`)}getOptions(){return[e.swiftOptions.justTypes,e.swiftOptions.useClasses,e.swiftOptions.dense,e.swiftOptions.convenienceInitializers,e.swiftOptions.explicitCodingKeys,e.swiftOptions.accessLevel,e.swiftOptions.alamofire,e.swiftOptions.linux,e.swiftOptions.namedTypePrefix,e.swiftOptions.protocol,e.swiftOptions.acronymStyle,e.swiftOptions.objcSupport,e.swiftOptions.optionalEnums,e.swiftOptions.swift5Support,e.swiftOptions.multiFileOutput,e.swiftOptions.mutableProperties]}get stringTypeMapping(){let e=new Map;return e.set(`date-time`,`date-time`),e}get supportsOptionalClassProperties(){return!0}get supportsUnionsWithBothNumberTypes(){return!0}makeRenderer(t,n){return new E(this,t,(0,c.getOptionValues)(e.swiftOptions,n))}get dateTimeRecognizer(){return new v}};var y=`await.associatedtype.class.deinit.enum.extension.fileprivate.func.import.init.inout.internal.let.open.operator.private.protocol.public.static.struct.subscript.typealias.var.break.case.continue.default.defer.do.else.fallthrough.for.guard.if.in.repeat.return.switch.where.while.as.Any.catch.false.is.nil.rethrows.super.self.Self.throw.throws.true.try._.associativity.convenience.dynamic.didSet.final.get.infix.indirect.lazy.left.mutating.nonmutating.optional.override.postfix.precedence.prefix.Protocol.required.right.set.Type.unowned.weak.willSet.String.Int.Double.Bool.Data.Date.URL.CommandLine.FileHandle.JSONSerialization.checkNull.removeNSNull.nilToNSNull.convertArray.convertOptional.convertDict.convertDouble.jsonString.jsonData`.split(`.`);function b(e){return(0,f.isLetterOrUnderscore)(e)||(0,f.isNumeric)(e)}function x(e){return b(e)&&!(0,f.isDigit)(e)}var S=(0,f.legalizeCharacters)(b);function C(e,t,n,r=f.allUpperWordStyle){let i=(0,f.splitIntoWords)(n),a=(0,f.combineWords)(i,S,t?f.firstUpperWordStyle:f.allLowerWordStyle,f.firstUpperWordStyle,t?f.allUpperWordStyle:f.allLowerWordStyle,r,``,x);return(0,f.addPrefixIfNecessary)(e,a)}function w(e){return`\\u{`+(0,f.intToHex)(e,0)+`}`}var T=(0,f.utf32ConcatMap)((0,f.escapeNonPrintableMapper)(f.isPrintable,w)),E=class extends d.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._options=n,this._needAny=!1,this._needNull=!1,this.emitSupportFunctions4=()=>{this.startFile(`JSONSchemaSupport`),this.emitLineOnce(`import Foundation`),this.forEachTopLevel(`leading`,(e,t)=>this.renderTopLevelAlias(e,t),e=>this.namedTypeToNameForTopLevel(e)===void 0),this._options.convenienceInitializers&&(this.ensureBlankLine(),this.forEachTopLevel(`leading-and-interposing`,(e,t)=>this.emitTopLevelMapAndArrayConvenienceInitializerExtensions(e,t))),(!this._options.justTypes&&this._options.convenienceInitializers||this._options.alamofire)&&(this.ensureBlankLine(),this.emitMark(`Helper functions for creating encoders and decoders`,!0),this.ensureBlankLine(),this.emitNewEncoderDecoder()),this._options.alamofire&&(this.ensureBlankLine(),this.emitMark(`Alamofire response handlers`,!0),this.ensureBlankLine(),this.emitAlamofireExtension()),(this._needAny||this._needNull)&&(this.ensureBlankLine(),this.emitMark(`Encode/decode helpers`,!0),this.ensureBlankLine(),this._options.objcSupport?this.emitLine(this.objcMembersDeclaration,this.accessLevel,`class JSONNull: NSObject, Codable {`):this.emitLine(this.accessLevel,`class JSONNull: Codable, Hashable {`),this.ensureBlankLine(),this.emitMultiline(` public static func == (lhs: JSONNull, rhs: JSONNull) -> Bool {
511
511
  return true
512
512
  }`),this._options.objcSupport===!1&&(this.ensureBlankLine(),this.emitMultiline(` public var hashValue: Int {
513
513
  return 0
@@ -858,11 +858,11 @@ makeNullableEncoder f m =
858
858
  return f(x)
859
859
  except:
860
860
  pass
861
- assert False`)}emitFromDatetimeConverter(){this.emitBlock([`def from_datetime(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withImport(`datetime`,`datetime`)),`:`],()=>{this._haveDateutil=!0,this.emitLine(`return dateutil.parser.parse(x)`)})}emitFromStringifiedBoolConverter(){this.emitBlock([`def from_stringified_bool(x`,this.typeHint(`: str`),`)`,this.typeHint(` -> bool`),`:`],()=>{this.emitBlock(`if x == "true":`,()=>this.emitLine(`return True`)),this.emitBlock(`if x == "false":`,()=>this.emitLine(`return False`)),this.emitLine(`assert False`)})}emitIsTypeConverter(){let e=this.typeVar();this.emitBlock([`def is_type(t`,this.typeHint(`: `,this.withTyping(`Type`),`[`,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,e),`:`],()=>{this.emitLine(`assert isinstance(x, t)`),this.emitLine(`return x`)})}emitConverter(e){switch(e){case`none`:return this.emitNoneConverter();case`bool`:return this.emitBoolConverter();case`int`:return this.emitIntConverter();case`from-float`:return this.emitFromFloatConverter();case`to-float`:return this.emitToFloatConverter();case`str`:return this.emitStrConverter();case`to-enum`:return this.emitToEnumConverter();case`list`:return this.emitListConverter();case`to-class`:return this.emitToClassConverter();case`dict`:return this.emitDictConverter();case`union`:return this.emitUnionConverter();case`from-datetime`:return this.emitFromDatetimeConverter();case`from-stringified-bool`:return this.emitFromStringifiedBoolConverter();case`is-type`:return this.emitIsTypeConverter();default:return(0,l.assertNever)(e)}}conv(e){this._deserializerFunctions.add(e);let t=e.replace(/-/g,`_`);return e.startsWith(`from-`)||e.startsWith(`to-`)||e.startsWith(`is-`)?t:[`from_`,t]}convFn(e,t){return E(t,{lambda:(0,u.singleWord)(this.conv(e)),value:void 0})}typeObject(e){let t=(0,d.matchType)(e,e=>void 0,e=>`type(None)`,e=>`bool`,e=>`int`,e=>`float`,e=>`str`,e=>`List`,e=>this.nameForNamedType(e),e=>`dict`,e=>this.nameForNamedType(e),e=>void 0,e=>{if(e.kind===`date-time`)return this.withImport(`datetime`,`datetime`);if(e.kind===`uuid`)return this.withImport(`uuid`,`UUID`)});return t===void 0?(0,l.panic)(`No type object for ${e.kind}`):t}transformer(e,t,n){let r=(e,t)=>e===void 0?t:this.transformer(t,e,n),i=(e,t)=>E(t,t=>[this.conv(`is-type`),`(`,this.typeObject(e),`, `,t,`)`]);if(t instanceof f.DecodingChoiceTransformer||t instanceof f.ChoiceTransformer){let r=t.transformers.map(e=>O(this.transformer(D,e,n)).source);return E(e,e=>[this.conv(`union`),`([`,(0,p.arrayIntercalate)(`, `,r),`], `,e,`)`])}if(t instanceof f.DecodingTransformer){let n=t.consumer;return r(n,this.deserializer(e,t.sourceType))}if(t instanceof f.EncodingTransformer)return this.serializer(e,t.sourceType);if(t instanceof f.UnionInstantiationTransformer)return e;if(t instanceof f.UnionMemberMatchTransformer){let n=t.transformer;return r(n,i(t.memberType,e))}if(t instanceof f.ParseStringTransformer){let i=t.consumer,a=i===void 0?n:i.sourceType,o;switch(a.kind){case`integer`:o=E(e,e=>[`int(`,e,`)`]);break;case`bool`:o=this.convFn(`from-stringified-bool`,e);break;case`enum`:o=this.deserializer(e,a);break;case`date-time`:o=this.convFn(`from-datetime`,e);break;case`uuid`:o=E(e,e=>[this.withImport(`uuid`,`UUID`),`(`,e,`)`]);break;default:return(0,l.panic)(`Parsing of ${a.kind} in a transformer is not supported`)}return r(i,o)}if(t instanceof f.StringifyTransformer){let n=t.consumer,i;switch(t.sourceType.kind){case`integer`:i=E(e,e=>[`str(`,e,`)`]);break;case`bool`:i=E(e,e=>[`str(`,e,`).lower()`]);break;case`enum`:i=this.serializer(e,t.sourceType);break;case`date-time`:i=E(e,e=>[e,`.isoformat()`]);break;case`uuid`:i=E(e,e=>[`str(`,e,`)`]);break;default:return(0,l.panic)(`Parsing of ${t.sourceType.kind} in a transformer is not supported`)}return r(n,i)}return(0,l.panic)(`Transformer ${t.kind} is not supported`)}deserializer(e,t){let n=(0,f.transformationForType)(t);return n===void 0?(0,d.matchType)(t,t=>e,t=>this.convFn(`none`,e),t=>this.convFn(`bool`,e),t=>this.convFn(`int`,e),t=>this.convFn(`from-float`,e),t=>this.convFn(`str`,e),t=>E(e,e=>[this.conv(`list`),`(`,O(this.deserializer(D,t.items)).source,`, `,e,`)`]),t=>E(e,{lambda:(0,u.singleWord)(this.nameForNamedType(t),`.from_dict`),value:void 0}),t=>E(e,e=>[this.conv(`dict`),`(`,O(this.deserializer(D,t.values)).source,`, `,e,`)`]),t=>E(e,{lambda:(0,u.singleWord)(this.nameForNamedType(t)),value:void 0}),t=>{let n=Array.from(t.members).map(e=>O(this.deserializer(D,e)).source);return E(e,e=>[this.conv(`union`),`([`,(0,p.arrayIntercalate)(`, `,n),`], `,e,`)`])},t=>t.kind===`date-time`?this.convFn(`from-datetime`,e):t.kind===`uuid`?E(e,e=>[this.withImport(`uuid`,`UUID`),`(`,e,`)`]):(0,l.panic)(`Transformed type ${t.kind} not supported`)):this.transformer(e,n.transformer,n.targetType)}serializer(e,t){let n=(0,f.transformationForType)(t);if(n!==void 0){let t=n.reverse;return this.transformer(e,t.transformer,t.targetType)}return(0,d.matchType)(t,t=>e,t=>this.convFn(`none`,e),t=>this.convFn(`bool`,e),t=>this.convFn(`int`,e),t=>this.convFn(`to-float`,e),t=>this.convFn(`str`,e),t=>E(e,e=>[this.conv(`list`),`(`,O(this.serializer(D,t.items)).source,`, `,e,`)`]),t=>E(e,e=>[this.conv(`to-class`),`(`,this.nameForNamedType(t),`, `,e,`)`]),t=>E(e,e=>[this.conv(`dict`),`(`,O(this.serializer(D,t.values)).source,`, `,e,`)`]),t=>E(e,e=>[this.conv(`to-enum`),`(`,this.nameForNamedType(t),`, `,e,`)`]),t=>{let n=Array.from(t.members).map(e=>O(this.serializer(D,e)).source);return E(e,e=>[this.conv(`union`),`([`,(0,p.arrayIntercalate)(`, `,n),`], `,e,`)`])},t=>t.kind===`date-time`?E(e,e=>[e,`.isoformat()`]):t.kind===`uuid`?E(e,e=>[`str(`,e,`)`]):(0,l.panic)(`Transformed type ${t.kind} not supported`))}emitClassMembers(e){super.emitClassMembers(e),this.ensureBlankLine();let t=this.nameForNamedType(e);this.emitLine(`@staticmethod`),this.emitBlock([`def from_dict(`,this.typingDecl(`obj`,`Any`),`)`,this.typeHint(` -> `,this.namedType(e)),`:`],()=>{let n=[];this.emitLine(`assert isinstance(obj, dict)`),this.forEachClassProperty(e,`none`,(e,t,r)=>{let i={value:[`obj.get(`,this.string(t),`)`]};this.emitLine(e,` = `,k(this.deserializer(i,r.type))),n.push(e)}),this.emitLine(`return `,t,`(`,(0,p.arrayIntercalate)(`, `,n),`)`)}),this.ensureBlankLine(),this.emitBlock([`def to_dict(self)`,this.typeHint(` -> dict`),`:`],()=>{this.emitLine(`result`,this.typeHint(`: dict`),` = {}`),this.forEachClassProperty(e,`none`,(e,t,n)=>{let r={value:[`self.`,e]};n.isOptional?this.emitBlock([`if self.`,e,` is not None:`],()=>{this.emitLine(`result[`,this.string(t),`] = `,k(this.serializer(r,n.type)))}):this.emitLine(`result[`,this.string(t),`] = `,k(this.serializer(r,n.type)))}),this.emitLine(`return result`)})}emitImports(){super.emitImports(),this._haveDateutil&&this.emitLine(`import dateutil.parser`),!(!this._haveTypeVar&&!this._haveEnumTypeVar)&&(this.ensureBlankLine(2),this._haveTypeVar&&this.emitTypeVar(this.typeVar(),[]),this._haveEnumTypeVar&&this.emitTypeVar(this.enumTypeVar(),[`, bound=`,this.withImport(`enum`,`Enum`)]))}emitSupportCode(){let e=Array.from(this._deserializerFunctions).map(e=>[e,e]);this.forEachWithBlankLines(e,[`interposing`,2],e=>{this.emitConverter(e)})}makeTopLevelDependencyNames(e,t){let n=new s.DependencyName(this._converterNamer,o.topLevelNameOrder,e=>`${e(t)}_from_dict`),r=new s.DependencyName(this._converterNamer,o.topLevelNameOrder,e=>`${e(t)}_to_dict`);return this._topLevelConverterNames.set(t,{fromDict:n,toDict:r}),[n,r]}emitDefaultLeadingComments(){this.ensureBlankLine(),this._haveDateutil&&this.emitCommentLines([`This code parses date/times, so please`,``,` pip install python-dateutil`,``]),this.emitCommentLines([`To use this code, make sure you`,``,` import json`,``,`and then, to convert JSON from a string, do`,``]),this.forEachTopLevel(`none`,(e,t)=>{let{fromDict:n}=(0,l.defined)(this._topLevelConverterNames.get(t));this.emitLine(this.commentLineStart,` result = `,n,`(json.loads(json_string))`)})}emitClosingCode(){this.forEachTopLevel([`interposing`,2],(e,t)=>{let{fromDict:n,toDict:r}=(0,l.defined)(this._topLevelConverterNames.get(t)),i=this.pythonType(e);this.emitBlock([`def `,n,`(`,this.typingDecl(`s`,`Any`),`)`,this.typeHint(` -> `,i),`:`],()=>{this.emitLine(`return `,k(this.deserializer({value:`s`},e)))}),this.ensureBlankLine(2),this.emitBlock([`def `,r,`(x`,this.typeHint(`: `,i),`)`,this.typingReturn(`Any`),`:`],()=>{this.emitLine(`return `,k(this.serializer({value:`x`},e)))})})}};e.JSONPythonRenderer=A})),lo=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PikeRenderer=e.PikeTargetLanguage=e.pikeOptions=void 0;var t=Ba(),n=Da(),r=Oa(),i=Ha(),a=Ea(),o=_a(),s=fa();e.pikeOptions={};var c=`auto.nomask.final.static.extern.private.local.public.protected.inline.optional.variant.void.mixed.array.__attribute__.__deprecated__.mapping.multiset.object.function.__func__.program.string.float.int.enum.typedef.if.do.for.while.else.foreach.catch.gauge.class.break.case.const.constant.continue.default.import.inherit.lambda.predef.return.sscanf.switch.typeof.global`.split(`.`),l=(0,s.legalizeCharacters)(s.isLetterOrUnderscoreOrDigit),u=(0,n.funPrefixNamer)(`enumNamer`,(0,s.makeNameStyle)(`upper-underscore`,l)),d=(0,n.funPrefixNamer)(`genericNamer`,(0,s.makeNameStyle)(`underscore`,l)),f=(0,n.funPrefixNamer)(`typeNamer`,(0,s.makeNameStyle)(`pascal`,l));e.PikeTargetLanguage=class extends i.TargetLanguage{constructor(){super(`Pike`,[`pike`,`pikelang`],`pmod`)}getOptions(){return[]}makeRenderer(e){return new p(this,e)}};var p=class extends t.ConvenienceRenderer{emitSourceStructure(){this.emitInformationComment(),this.ensureBlankLine(),this.forEachTopLevel(`leading`,(e,t)=>{this.emitTopLevelTypedef(e,t),this.ensureBlankLine(),this.emitTopLevelConverter(e,t),this.ensureBlankLine()},e=>this.namedTypeToNameForTopLevel(e)===void 0),this.ensureBlankLine(),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClassDefinition(e,t),(e,t)=>this.emitEnum(e,t),(e,t)=>this.emitUnion(e,t))}get enumCasesInGlobalNamespace(){return!0}makeEnumCaseNamer(){return u}makeNamedTypeNamer(){return f}makeUnionMemberNamer(){return d}namerForObjectProperty(){return d}forbiddenNamesForGlobalNamespace(){return[...c]}forbiddenForObjectProperties(e,t){return{names:[],includeGlobalForbidden:!0}}forbiddenForEnumCases(e,t){return{names:[],includeGlobalForbidden:!0}}forbiddenForUnionMembers(e,t){return{names:[],includeGlobalForbidden:!0}}sourceFor(e){return[`class`,`object`,`enum`].indexOf(e.kind)>=0?(0,r.singleWord)(this.nameForNamedType(e)):(0,o.matchType)(e,e=>(0,r.singleWord)(`mixed`),e=>(0,r.singleWord)(`mixed`),e=>(0,r.singleWord)(`bool`),e=>(0,r.singleWord)(`int`),e=>(0,r.singleWord)(`float`),e=>(0,r.singleWord)(`string`),e=>(0,r.singleWord)([`array(`,this.sourceFor(e.items).source,`)`]),e=>(0,r.singleWord)(this.nameForNamedType(e)),e=>{let t,n=e.values;return t=this.sourceFor(n).source,(0,r.singleWord)([`mapping(string:`,t,`)`])},e=>(0,r.singleWord)(`enum`),e=>{if((0,o.nullableFromUnion)(e)!==null){let t=Array.from(e.getChildren()).map(e=>(0,r.parenIfNeeded)(this.sourceFor(e)));return(0,r.multiWord)(`|`,...t)}return(0,r.singleWord)(this.nameForNamedType(e))})}emitClassDefinition(e,t){this.emitDescription(this.descriptionForType(e)),this.emitBlock([`class `,t],()=>{this.emitClassMembers(e),this.ensureBlankLine(),this.emitEncodingFunction(e)}),this.ensureBlankLine(),this.emitDecodingFunction(t,e)}emitEnum(e,t){this.emitBlock([e.kind,` `,t],()=>{let t=[];this.forEachEnumCase(e,`none`,(e,n)=>{t.push([[e,` = "`,(0,s.stringEscape)(n),`", `],[`// json: "`,n,`"`]])}),this.emitTable(t)})}emitUnion(e,t){if((0,o.nullableFromUnion)(e)!==null)return;this.emitDescription(this.descriptionForType(e));let[,n]=(0,o.removeNullFromUnion)(e),r=[];this.forEachUnionMember(e,n,`none`,null,(e,t)=>{let n=this.sourceFor(t).source;r.push([n])}),this.emitLine([`typedef `,r.map(e=>e.map(e=>this.sourcelikeToString(e))).join(`|`),` `,t,`;`]),this.ensureBlankLine(),this.emitBlock([t,` `,t,`_from_JSON(mixed json)`],()=>{this.emitLine([`return json;`])})}emitBlock(e,t,n=` {`,r=`}`){this.emitLine(e,n),this.indent(t),this.emitLine(r)}emitMappingBlock(e,t){this.emitBlock(e,t,`([`,`]);`)}emitClassMembers(e){let t=[];this.forEachClassProperty(e,`none`,(e,n,r)=>{let i=this.sourceFor(r.type).source;t.push([[i,` `],[e,`; `],[`// json: "`,n,`"`]])}),this.emitTable(t)}emitInformationComment(){this.emitCommentLines([`This source has been automatically generated by quicktype.`,`( https://github.com/quicktype/quicktype )`,``,`To use this code, simply import it into your project as a Pike module.`,"To JSON-encode your object, you can pass it to `Standards.JSON.encode`","or call `encode_json` on it.",``,"To decode a JSON string, first pass it to `Standards.JSON.decode`,","and then pass the result to `<YourClass>_from_JSON`.",`It will return an instance of <YourClass>.`,`Bear in mind that these functions have unexpected behavior,`,`and will likely throw an error, if the JSON string does not`,`match the expected interface, even if the JSON itself is valid.`],`// `)}emitTopLevelTypedef(e,t){this.emitLine(`typedef `,this.sourceFor(e).source,` `,t,`;`)}emitTopLevelConverter(e,t){this.emitBlock([t,` `,t,`_from_JSON(mixed json)`],()=>{if(e instanceof a.PrimitiveType)this.emitLine([`return json;`]);else if(e instanceof a.ArrayType)e.items instanceof a.PrimitiveType?this.emitLine([`return json;`]):this.emitLine([`return map(json, `,this.sourceFor(e.items).source,`_from_JSON);`]);else if(e instanceof a.MapType){let t=this.sourceFor(e.values).source;this.emitLine([`mapping(string:`,t,`) retval = ([]);`]);let n;n=e.values instanceof a.PrimitiveType?[`(`,t,`) v`]:[t,`_from_JSON(v)`],this.emitBlock([`foreach (json; string k; mixed v)`],()=>{this.emitLine([`retval[k] = `,n,`;`])}),this.emitLine([`return retval;`])}})}emitEncodingFunction(e){this.emitBlock([`string encode_json()`],()=>{this.emitMappingBlock([`mapping(string:mixed) json = `],()=>{this.forEachClassProperty(e,`none`,(e,t)=>{this.emitLine([`"`,(0,s.stringEscape)(t),`" : `,e,`,`])})}),this.ensureBlankLine(),this.emitLine([`return Standards.JSON.encode(json);`])})}emitDecodingFunction(e,t){this.emitBlock([e,` `,e,`_from_JSON(mixed json)`],()=>{this.emitLine([e,` retval = `,e,`();`]),this.ensureBlankLine(),this.forEachClassProperty(t,`none`,(e,t)=>{this.emitLine([`retval.`,e,` = json["`,(0,s.stringEscape)(t),`"];`])}),this.ensureBlankLine(),this.emitLine([`return retval;`])})}};e.PikeRenderer=p})),uo=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HaskellRenderer=e.HaskellTargetLanguage=e.haskellOptions=void 0;var t=a(),n=Ha(),r=aa(),i=_a(),o=Ba(),s=Da(),c=fa(),l=Oa();e.haskellOptions={justTypes:new r.BooleanOption(`just-types`,`Plain types only`,!1),useList:new r.EnumOption(`array-type`,`Use Array or List`,[[`array`,!1],[`list`,!0]]),moduleName:new r.StringOption(`module`,`Generated module name`,`NAME`,`QuickType`)},e.HaskellTargetLanguage=class extends n.TargetLanguage{constructor(){super(`Haskell`,[`haskell`],`haskell`)}getOptions(){return[e.haskellOptions.justTypes,e.haskellOptions.moduleName,e.haskellOptions.useList]}get supportsOptionalClassProperties(){return!0}get supportsUnionsWithBothNumberTypes(){return!0}makeRenderer(t,n){return new h(this,t,(0,r.getOptionValues)(e.haskellOptions,n))}};var u=`as.case.class.data.default.deriving.do.else.family.forall.foreign.hiding.if.import.in.infix.infixl.infixr.instance.let.of.mdo.module.newtype.proc.qualified.rec.then.type.where.id.Array.HashMap.Map.Maybe.Bool.Int.True.False.Enum.encode.decode.text.Text.Value.Object.Result.Series.Error`.split(`.`),d=(0,c.legalizeCharacters)(e=>(0,c.isAscii)(e)&&(0,c.isLetterOrUnderscoreOrDigit)(e));function f(e,t){let n=(0,c.splitIntoWords)(e);return(0,c.combineWords)(n,d,t?c.firstUpperWordStyle:c.allLowerWordStyle,c.firstUpperWordStyle,t?c.allUpperWordStyle:c.allLowerWordStyle,c.allUpperWordStyle,``,c.isLetterOrUnderscore)}var p=(0,s.funPrefixNamer)(`upper`,e=>f(e,!0)),m=(0,s.funPrefixNamer)(`lower`,e=>f(e,!1)),h=class extends o.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._options=n}forbiddenNamesForGlobalNamespace(){return u}makeNamedTypeNamer(){return p}namerForObjectProperty(){return m}forbiddenForObjectProperties(e,t){return{names:[],includeGlobalForbidden:!0}}makeUnionMemberNamer(){return p}get unionMembersInGlobalNamespace(){return!0}makeEnumCaseNamer(){return p}get enumCasesInGlobalNamespace(){return!0}proposeUnionMemberName(e,t,n,r){return`${super.proposeUnionMemberName(e,t,n,r)}_in_${r(t)}`}get commentLineStart(){return`-- `}emitDescriptionBlock(e){e.length===1?this.emitLine(`{-| `,e[0],` -}`):this.emitCommentLines(e,``,void 0,`-}`,`{-| `)}haskellType(e,t=!1){return(0,i.matchType)(e,e=>(0,l.multiWord)(` `,`Maybe`,`Text`),e=>(0,l.multiWord)(` `,`Maybe`,`Text`),e=>(0,l.singleWord)(`Bool`),e=>(0,l.singleWord)(`Int`),e=>(0,l.singleWord)(`Float`),e=>(0,l.singleWord)(`Text`),e=>this._options.useList?(0,l.multiWord)(``,`[`,(0,l.parenIfNeeded)(this.haskellType(e.items)),`]`):(0,l.multiWord)(` `,`Vector`,(0,l.parenIfNeeded)(this.haskellType(e.items))),e=>(0,l.singleWord)(this.nameForNamedType(e)),e=>(0,l.multiWord)(` `,`HashMap Text`,(0,l.parenIfNeeded)(this.haskellType(e.values))),e=>(0,l.singleWord)(this.nameForNamedType(e)),e=>{let n=(0,i.nullableFromUnion)(e);if(n!==null){let e=this.haskellType(n);return t?e:(0,l.multiWord)(` `,`Maybe`,(0,l.parenIfNeeded)(e))}return(0,l.singleWord)(this.nameForNamedType(e))})}haskellProperty(e){return e.isOptional?(0,l.multiWord)(` `,`Maybe`,(0,l.parenIfNeeded)(this.haskellType(e.type,!0))).source:this.haskellType(e.type).source}encoderNameForType(e){return(0,i.matchType)(e,e=>(0,l.singleWord)(`String`),e=>(0,l.singleWord)(`Null`),e=>(0,l.singleWord)(`Bool`),e=>(0,l.singleWord)(`Number`),e=>(0,l.singleWord)(`Number`),e=>(0,l.singleWord)(`String`),e=>(0,l.singleWord)(`Array`),e=>(0,l.singleWord)(`Object`),e=>(0,l.singleWord)(`Object`),e=>(0,l.singleWord)(`Object`),e=>(0,l.singleWord)(`Object`))}emitTopLevelDefinition(e,t){this.emitLine(`type `,t,` = `,this.haskellType(e).source)}emitClassDefinition(e,t){let n=this.descriptionForType(e);this.forEachClassProperty(e,`none`,(t,r)=>{let i=this.descriptionForClassProperty(e,r);i!==void 0&&(n===void 0?n=[]:n.push(``),n.push(`${this.sourcelikeToString(t)}:`),n.push(...i))}),this.emitDescription(n),this.emitLine(`data `,t,` = `,t),this.indent(()=>{let n=!0;this.forEachClassProperty(e,`none`,(e,r,i)=>{this.emitLine(n?`{ `:`, `,e,t,` :: `,this.haskellProperty(i)),n=!1}),n&&this.emitLine(`{`),this.emitLine(`} deriving (Show)`)})}emitEnumDefinition(e,t){this.emitDescription(this.descriptionForType(e)),this.emitLine(`data `,t),this.indent(()=>{let n=!0;this.forEachEnumCase(e,`none`,e=>{let r=n?`=`:`|`;this.emitLine(r,` `,e,t),n=!1}),this.emitLine(`deriving (Show)`)})}emitUnionDefinition(e,t){this.emitDescription(this.descriptionForType(e)),this.emitLine(`data `,t),this.indent(()=>{let t=!0;this.forEachUnionMember(e,null,`none`,null,(e,n)=>{let r=t?`=`:`|`;n.kind===`null`?this.emitLine(r,` `,e):this.emitLine(r,` `,e,` `,(0,l.parenIfNeeded)(this.haskellType(n))),t=!1}),this.emitLine(`deriving (Show)`)})}emitTopLevelFunctions(e){this.emitLine(`decodeTopLevel :: ByteString -> Maybe `,e),this.emitLine(`decodeTopLevel = decode`)}classPropertyLength(e){let t=0;return this.forEachClassProperty(e,`none`,()=>{t+=1}),t}emitClassEncoderInstance(e,t){let n=[];this.forEachClassProperty(e,`none`,e=>{n.push(` `),n.push(e),n.push(t)}),this.emitLine(`instance ToJSON `,t,` where`),this.indent(()=>{n.length===0?this.emitLine(`toJSON = \\_ -> emptyObject`):(this.emitLine(`toJSON (`,t,...n,`) =`),this.indent(()=>{this.emitLine(`object`);let n=!0;this.forEachClassProperty(e,`none`,(e,r)=>{this.emitLine(n?`[ `:`, `,`"`,(0,c.stringEscape)(r),`" .= `,e,t),n=!1}),n&&this.emitLine(`[`),this.emitLine(`]`)}))})}emitClassDecoderInstance(e,t){this.emitLine(`instance FromJSON `,t,` where`),this.indent(()=>{this.classPropertyLength(e)===0?this.emitLine(`parseJSON emptyObject = return `,t):(this.emitLine(`parseJSON (Object v) = `,t),this.indent(()=>{let t=!0;this.forEachClassProperty(e,`none`,(e,n,r)=>{let i=r.isOptional?`.:?`:`.:`;this.emitLine(t?`<$> `:`<*> `,`v `,i,` "`,(0,c.stringEscape)(n),`"`),t=!1})}))})}emitClassFunctions(e,t){this.emitClassEncoderInstance(e,t),this.ensureBlankLine(),this.emitClassDecoderInstance(e,t)}emitEnumEncoderInstance(e,t){this.emitLine(`instance ToJSON `,t,` where`),this.indent(()=>{this.forEachEnumCase(e,`none`,(e,n)=>{this.emitLine(`toJSON `,e,t,` = "`,(0,c.stringEscape)(n),`"`)})})}emitEnumDecoderInstance(e,t){this.emitLine(`instance FromJSON `,t,` where`),this.indent(()=>{this.emitLine(`parseJSON = withText "`,t,`" parseText`),this.indent(()=>{this.emitLine(`where`),this.indent(()=>{this.forEachEnumCase(e,`none`,(e,n)=>{this.emitLine(`parseText "`,(0,c.stringEscape)(n),`" = return `,e,t)})})})})}emitEnumFunctions(e,t){this.emitEnumEncoderInstance(e,t),this.ensureBlankLine(),this.emitEnumDecoderInstance(e,t)}emitUnionEncoderInstance(e,t){this.emitLine(`instance ToJSON `,t,` where`),this.indent(()=>{this.forEachUnionMember(e,null,`none`,null,(e,t)=>{t.kind===`null`?this.emitLine(`toJSON `,e,` = Null`):this.emitLine(`toJSON (`,e,` x) = toJSON x`)})})}emitUnionDecoderInstance(e,t){this.emitLine(`instance FromJSON `,t,` where`),this.indent(()=>{this.forEachUnionMember(e,null,`none`,null,(e,t)=>{t.kind===`null`?this.emitLine(`parseJSON Null = return `,e):this.emitLine(`parseJSON xs@(`,this.encoderNameForType(t).source,` _) = (fmap `,e,` . parseJSON) xs`)})})}emitUnionFunctions(e,t){this.emitUnionEncoderInstance(e,t),this.ensureBlankLine(),this.emitUnionDecoderInstance(e,t)}emitLanguageExtensions(e){this.emitLine(`{-# LANGUAGE ${e} #-}`)}emitSourceStructure(){let e=[];this.forEachTopLevel(`none`,(t,n)=>{e.push([n,` (..)`])}),this.forEachObject(`none`,(n,r)=>{(0,t.mapContains)(this.topLevels,n)||e.push([r,` (..)`])}),this.forEachEnum(`none`,(n,r)=>{(0,t.mapContains)(this.topLevels,n)||e.push([r,` (..)`])}),this.forEachUnion(`none`,(n,r)=>{(0,t.mapContains)(this.topLevels,n)||e.push([r,` (..)`])}),this.emitLanguageExtensions(`StrictData`),this.emitLanguageExtensions(`OverloadedStrings`),this._options.justTypes||(this.ensureBlankLine(),this.emitLine(`module `,this._options.moduleName),this.indent(()=>{for(let t=0;t<e.length;t++)this.emitLine(t===0?`(`:`,`,` `,e[t]);this.emitLine(`, decodeTopLevel`),this.emitLine(`) where`)}),this.ensureBlankLine(),this.emitMultiline(`import Data.Aeson
861
+ assert False`)}emitFromDatetimeConverter(){this.emitBlock([`def from_datetime(`,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,this.withImport(`datetime`,`datetime`)),`:`],()=>{this._haveDateutil=!0,this.emitLine(`return dateutil.parser.parse(x)`)})}emitFromStringifiedBoolConverter(){this.emitBlock([`def from_stringified_bool(x`,this.typeHint(`: str`),`)`,this.typeHint(` -> bool`),`:`],()=>{this.emitBlock(`if x == "true":`,()=>this.emitLine(`return True`)),this.emitBlock(`if x == "false":`,()=>this.emitLine(`return False`)),this.emitLine(`assert False`)})}emitIsTypeConverter(){let e=this.typeVar();this.emitBlock([`def is_type(t`,this.typeHint(`: `,this.withTyping(`Type`),`[`,e,`]`),`, `,this.typingDecl(`x`,`Any`),`)`,this.typeHint(` -> `,e),`:`],()=>{this.emitLine(`assert isinstance(x, t)`),this.emitLine(`return x`)})}emitConverter(e){switch(e){case`none`:return this.emitNoneConverter();case`bool`:return this.emitBoolConverter();case`int`:return this.emitIntConverter();case`from-float`:return this.emitFromFloatConverter();case`to-float`:return this.emitToFloatConverter();case`str`:return this.emitStrConverter();case`to-enum`:return this.emitToEnumConverter();case`list`:return this.emitListConverter();case`to-class`:return this.emitToClassConverter();case`dict`:return this.emitDictConverter();case`union`:return this.emitUnionConverter();case`from-datetime`:return this.emitFromDatetimeConverter();case`from-stringified-bool`:return this.emitFromStringifiedBoolConverter();case`is-type`:return this.emitIsTypeConverter();default:return(0,l.assertNever)(e)}}conv(e){this._deserializerFunctions.add(e);let t=e.replace(/-/g,`_`);return e.startsWith(`from-`)||e.startsWith(`to-`)||e.startsWith(`is-`)?t:[`from_`,t]}convFn(e,t){return E(t,{lambda:(0,u.singleWord)(this.conv(e)),value:void 0})}typeObject(e){let t=(0,d.matchType)(e,e=>void 0,e=>`type(None)`,e=>`bool`,e=>`int`,e=>`float`,e=>`str`,e=>`List`,e=>this.nameForNamedType(e),e=>`dict`,e=>this.nameForNamedType(e),e=>void 0,e=>{if(e.kind===`date-time`)return this.withImport(`datetime`,`datetime`);if(e.kind===`uuid`)return this.withImport(`uuid`,`UUID`)});return t===void 0?(0,l.panic)(`No type object for ${e.kind}`):t}transformer(e,t,n){let r=(e,t)=>e===void 0?t:this.transformer(t,e,n),i=(e,t)=>E(t,t=>[this.conv(`is-type`),`(`,this.typeObject(e),`, `,t,`)`]);if(t instanceof f.DecodingChoiceTransformer||t instanceof f.ChoiceTransformer){let r=t.transformers.map(e=>O(this.transformer(D,e,n)).source);return E(e,e=>[this.conv(`union`),`([`,(0,p.arrayIntercalate)(`, `,r),`], `,e,`)`])}if(t instanceof f.DecodingTransformer){let n=t.consumer;return r(n,this.deserializer(e,t.sourceType))}if(t instanceof f.EncodingTransformer)return this.serializer(e,t.sourceType);if(t instanceof f.UnionInstantiationTransformer)return e;if(t instanceof f.UnionMemberMatchTransformer){let n=t.transformer;return r(n,i(t.memberType,e))}if(t instanceof f.ParseStringTransformer){let i=t.consumer,a=i===void 0?n:i.sourceType,o;switch(a.kind){case`integer`:o=E(e,e=>[`int(`,e,`)`]);break;case`bool`:o=this.convFn(`from-stringified-bool`,e);break;case`enum`:o=this.deserializer(e,a);break;case`date-time`:o=this.convFn(`from-datetime`,e);break;case`uuid`:o=E(e,e=>[this.withImport(`uuid`,`UUID`),`(`,e,`)`]);break;default:return(0,l.panic)(`Parsing of ${a.kind} in a transformer is not supported`)}return r(i,o)}if(t instanceof f.StringifyTransformer){let n=t.consumer,i;switch(t.sourceType.kind){case`integer`:i=E(e,e=>[`str(`,e,`)`]);break;case`bool`:i=E(e,e=>[`str(`,e,`).lower()`]);break;case`enum`:i=this.serializer(e,t.sourceType);break;case`date-time`:i=E(e,e=>[e,`.isoformat()`]);break;case`uuid`:i=E(e,e=>[`str(`,e,`)`]);break;default:return(0,l.panic)(`Parsing of ${t.sourceType.kind} in a transformer is not supported`)}return r(n,i)}return(0,l.panic)(`Transformer ${t.kind} is not supported`)}deserializer(e,t){let n=(0,f.transformationForType)(t);return n===void 0?(0,d.matchType)(t,t=>e,t=>this.convFn(`none`,e),t=>this.convFn(`bool`,e),t=>this.convFn(`int`,e),t=>this.convFn(`from-float`,e),t=>this.convFn(`str`,e),t=>E(e,e=>[this.conv(`list`),`(`,O(this.deserializer(D,t.items)).source,`, `,e,`)`]),t=>E(e,{lambda:(0,u.singleWord)(this.nameForNamedType(t),`.from_dict`),value:void 0}),t=>E(e,e=>[this.conv(`dict`),`(`,O(this.deserializer(D,t.values)).source,`, `,e,`)`]),t=>E(e,{lambda:(0,u.singleWord)(this.nameForNamedType(t)),value:void 0}),t=>{let n=Array.from(t.members).map(e=>O(this.deserializer(D,e)).source);return E(e,e=>[this.conv(`union`),`([`,(0,p.arrayIntercalate)(`, `,n),`], `,e,`)`])},t=>t.kind===`date-time`?this.convFn(`from-datetime`,e):t.kind===`uuid`?E(e,e=>[this.withImport(`uuid`,`UUID`),`(`,e,`)`]):(0,l.panic)(`Transformed type ${t.kind} not supported`)):this.transformer(e,n.transformer,n.targetType)}serializer(e,t){let n=(0,f.transformationForType)(t);if(n!==void 0){let t=n.reverse;return this.transformer(e,t.transformer,t.targetType)}return(0,d.matchType)(t,t=>e,t=>this.convFn(`none`,e),t=>this.convFn(`bool`,e),t=>this.convFn(`int`,e),t=>this.convFn(`to-float`,e),t=>this.convFn(`str`,e),t=>E(e,e=>[this.conv(`list`),`(`,O(this.serializer(D,t.items)).source,`, `,e,`)`]),t=>E(e,e=>[this.conv(`to-class`),`(`,this.nameForNamedType(t),`, `,e,`)`]),t=>E(e,e=>[this.conv(`dict`),`(`,O(this.serializer(D,t.values)).source,`, `,e,`)`]),t=>E(e,e=>[this.conv(`to-enum`),`(`,this.nameForNamedType(t),`, `,e,`)`]),t=>{let n=Array.from(t.members).map(e=>O(this.serializer(D,e)).source);return E(e,e=>[this.conv(`union`),`([`,(0,p.arrayIntercalate)(`, `,n),`], `,e,`)`])},t=>t.kind===`date-time`?E(e,e=>[e,`.isoformat()`]):t.kind===`uuid`?E(e,e=>[`str(`,e,`)`]):(0,l.panic)(`Transformed type ${t.kind} not supported`))}emitClassMembers(e){super.emitClassMembers(e),this.ensureBlankLine();let t=this.nameForNamedType(e);this.emitLine(`@staticmethod`),this.emitBlock([`def from_dict(`,this.typingDecl(`obj`,`Any`),`)`,this.typeHint(` -> `,this.namedType(e)),`:`],()=>{let n=[];this.emitLine(`assert isinstance(obj, dict)`),this.forEachClassProperty(e,`none`,(e,t,r)=>{let i={value:[`obj.get(`,this.string(t),`)`]};this.emitLine(e,` = `,k(this.deserializer(i,r.type))),n.push(e)}),this.emitLine(`return `,t,`(`,(0,p.arrayIntercalate)(`, `,n),`)`)}),this.ensureBlankLine(),this.emitBlock([`def to_dict(self)`,this.typeHint(` -> dict`),`:`],()=>{this.emitLine(`result`,this.typeHint(`: dict`),` = {}`),this.forEachClassProperty(e,`none`,(e,t,n)=>{let r={value:[`self.`,e]};n.isOptional?this.emitBlock([`if self.`,e,` is not None:`],()=>{this.emitLine(`result[`,this.string(t),`] = `,k(this.serializer(r,n.type)))}):this.emitLine(`result[`,this.string(t),`] = `,k(this.serializer(r,n.type)))}),this.emitLine(`return result`)})}emitImports(){super.emitImports(),this._haveDateutil&&this.emitLine(`import dateutil.parser`),(this._haveTypeVar||this._haveEnumTypeVar)&&(this.ensureBlankLine(2),this._haveTypeVar&&this.emitTypeVar(this.typeVar(),[]),this._haveEnumTypeVar&&this.emitTypeVar(this.enumTypeVar(),[`, bound=`,this.withImport(`enum`,`Enum`)]))}emitSupportCode(){let e=Array.from(this._deserializerFunctions).map(e=>[e,e]);this.forEachWithBlankLines(e,[`interposing`,2],e=>{this.emitConverter(e)})}makeTopLevelDependencyNames(e,t){let n=new s.DependencyName(this._converterNamer,o.topLevelNameOrder,e=>`${e(t)}_from_dict`),r=new s.DependencyName(this._converterNamer,o.topLevelNameOrder,e=>`${e(t)}_to_dict`);return this._topLevelConverterNames.set(t,{fromDict:n,toDict:r}),[n,r]}emitDefaultLeadingComments(){this.ensureBlankLine(),this._haveDateutil&&this.emitCommentLines([`This code parses date/times, so please`,``,` pip install python-dateutil`,``]),this.emitCommentLines([`To use this code, make sure you`,``,` import json`,``,`and then, to convert JSON from a string, do`,``]),this.forEachTopLevel(`none`,(e,t)=>{let{fromDict:n}=(0,l.defined)(this._topLevelConverterNames.get(t));this.emitLine(this.commentLineStart,` result = `,n,`(json.loads(json_string))`)})}emitClosingCode(){this.forEachTopLevel([`interposing`,2],(e,t)=>{let{fromDict:n,toDict:r}=(0,l.defined)(this._topLevelConverterNames.get(t)),i=this.pythonType(e);this.emitBlock([`def `,n,`(`,this.typingDecl(`s`,`Any`),`)`,this.typeHint(` -> `,i),`:`],()=>{this.emitLine(`return `,k(this.deserializer({value:`s`},e)))}),this.ensureBlankLine(2),this.emitBlock([`def `,r,`(x`,this.typeHint(`: `,i),`)`,this.typingReturn(`Any`),`:`],()=>{this.emitLine(`return `,k(this.serializer({value:`x`},e)))})})}};e.JSONPythonRenderer=A})),lo=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PikeRenderer=e.PikeTargetLanguage=e.pikeOptions=void 0;var t=Ba(),n=Da(),r=Oa(),i=Ha(),a=Ea(),o=_a(),s=fa();e.pikeOptions={};var c=`auto.nomask.final.static.extern.private.local.public.protected.inline.optional.variant.void.mixed.array.__attribute__.__deprecated__.mapping.multiset.object.function.__func__.program.string.float.int.enum.typedef.if.do.for.while.else.foreach.catch.gauge.class.break.case.const.constant.continue.default.import.inherit.lambda.predef.return.sscanf.switch.typeof.global`.split(`.`),l=(0,s.legalizeCharacters)(s.isLetterOrUnderscoreOrDigit),u=(0,n.funPrefixNamer)(`enumNamer`,(0,s.makeNameStyle)(`upper-underscore`,l)),d=(0,n.funPrefixNamer)(`genericNamer`,(0,s.makeNameStyle)(`underscore`,l)),f=(0,n.funPrefixNamer)(`typeNamer`,(0,s.makeNameStyle)(`pascal`,l));e.PikeTargetLanguage=class extends i.TargetLanguage{constructor(){super(`Pike`,[`pike`,`pikelang`],`pmod`)}getOptions(){return[]}makeRenderer(e){return new p(this,e)}};var p=class extends t.ConvenienceRenderer{emitSourceStructure(){this.emitInformationComment(),this.ensureBlankLine(),this.forEachTopLevel(`leading`,(e,t)=>{this.emitTopLevelTypedef(e,t),this.ensureBlankLine(),this.emitTopLevelConverter(e,t),this.ensureBlankLine()},e=>this.namedTypeToNameForTopLevel(e)===void 0),this.ensureBlankLine(),this.forEachNamedType(`leading-and-interposing`,(e,t)=>this.emitClassDefinition(e,t),(e,t)=>this.emitEnum(e,t),(e,t)=>this.emitUnion(e,t))}get enumCasesInGlobalNamespace(){return!0}makeEnumCaseNamer(){return u}makeNamedTypeNamer(){return f}makeUnionMemberNamer(){return d}namerForObjectProperty(){return d}forbiddenNamesForGlobalNamespace(){return[...c]}forbiddenForObjectProperties(e,t){return{names:[],includeGlobalForbidden:!0}}forbiddenForEnumCases(e,t){return{names:[],includeGlobalForbidden:!0}}forbiddenForUnionMembers(e,t){return{names:[],includeGlobalForbidden:!0}}sourceFor(e){return[`class`,`object`,`enum`].indexOf(e.kind)>=0?(0,r.singleWord)(this.nameForNamedType(e)):(0,o.matchType)(e,e=>(0,r.singleWord)(`mixed`),e=>(0,r.singleWord)(`mixed`),e=>(0,r.singleWord)(`bool`),e=>(0,r.singleWord)(`int`),e=>(0,r.singleWord)(`float`),e=>(0,r.singleWord)(`string`),e=>(0,r.singleWord)([`array(`,this.sourceFor(e.items).source,`)`]),e=>(0,r.singleWord)(this.nameForNamedType(e)),e=>{let t,n=e.values;return t=this.sourceFor(n).source,(0,r.singleWord)([`mapping(string:`,t,`)`])},e=>(0,r.singleWord)(`enum`),e=>{if((0,o.nullableFromUnion)(e)!==null){let t=Array.from(e.getChildren()).map(e=>(0,r.parenIfNeeded)(this.sourceFor(e)));return(0,r.multiWord)(`|`,...t)}return(0,r.singleWord)(this.nameForNamedType(e))})}emitClassDefinition(e,t){this.emitDescription(this.descriptionForType(e)),this.emitBlock([`class `,t],()=>{this.emitClassMembers(e),this.ensureBlankLine(),this.emitEncodingFunction(e)}),this.ensureBlankLine(),this.emitDecodingFunction(t,e)}emitEnum(e,t){this.emitBlock([e.kind,` `,t],()=>{let t=[];this.forEachEnumCase(e,`none`,(e,n)=>{t.push([[e,` = "`,(0,s.stringEscape)(n),`", `],[`// json: "`,n,`"`]])}),this.emitTable(t)})}emitUnion(e,t){if((0,o.nullableFromUnion)(e)!==null)return;this.emitDescription(this.descriptionForType(e));let[,n]=(0,o.removeNullFromUnion)(e),r=[];this.forEachUnionMember(e,n,`none`,null,(e,t)=>{let n=this.sourceFor(t).source;r.push([n])}),this.emitLine([`typedef `,r.map(e=>e.map(e=>this.sourcelikeToString(e))).join(`|`),` `,t,`;`]),this.ensureBlankLine(),this.emitBlock([t,` `,t,`_from_JSON(mixed json)`],()=>{this.emitLine([`return json;`])})}emitBlock(e,t,n=` {`,r=`}`){this.emitLine(e,n),this.indent(t),this.emitLine(r)}emitMappingBlock(e,t){this.emitBlock(e,t,`([`,`]);`)}emitClassMembers(e){let t=[];this.forEachClassProperty(e,`none`,(e,n,r)=>{let i=this.sourceFor(r.type).source;t.push([[i,` `],[e,`; `],[`// json: "`,n,`"`]])}),this.emitTable(t)}emitInformationComment(){this.emitCommentLines([`This source has been automatically generated by quicktype.`,`( https://github.com/quicktype/quicktype )`,``,`To use this code, simply import it into your project as a Pike module.`,"To JSON-encode your object, you can pass it to `Standards.JSON.encode`","or call `encode_json` on it.",``,"To decode a JSON string, first pass it to `Standards.JSON.decode`,","and then pass the result to `<YourClass>_from_JSON`.",`It will return an instance of <YourClass>.`,`Bear in mind that these functions have unexpected behavior,`,`and will likely throw an error, if the JSON string does not`,`match the expected interface, even if the JSON itself is valid.`],`// `)}emitTopLevelTypedef(e,t){this.emitLine(`typedef `,this.sourceFor(e).source,` `,t,`;`)}emitTopLevelConverter(e,t){this.emitBlock([t,` `,t,`_from_JSON(mixed json)`],()=>{if(e instanceof a.PrimitiveType)this.emitLine([`return json;`]);else if(e instanceof a.ArrayType)e.items instanceof a.PrimitiveType?this.emitLine([`return json;`]):this.emitLine([`return map(json, `,this.sourceFor(e.items).source,`_from_JSON);`]);else if(e instanceof a.MapType){let t=this.sourceFor(e.values).source;this.emitLine([`mapping(string:`,t,`) retval = ([]);`]);let n;n=e.values instanceof a.PrimitiveType?[`(`,t,`) v`]:[t,`_from_JSON(v)`],this.emitBlock([`foreach (json; string k; mixed v)`],()=>{this.emitLine([`retval[k] = `,n,`;`])}),this.emitLine([`return retval;`])}})}emitEncodingFunction(e){this.emitBlock([`string encode_json()`],()=>{this.emitMappingBlock([`mapping(string:mixed) json = `],()=>{this.forEachClassProperty(e,`none`,(e,t)=>{this.emitLine([`"`,(0,s.stringEscape)(t),`" : `,e,`,`])})}),this.ensureBlankLine(),this.emitLine([`return Standards.JSON.encode(json);`])})}emitDecodingFunction(e,t){this.emitBlock([e,` `,e,`_from_JSON(mixed json)`],()=>{this.emitLine([e,` retval = `,e,`();`]),this.ensureBlankLine(),this.forEachClassProperty(t,`none`,(e,t)=>{this.emitLine([`retval.`,e,` = json["`,(0,s.stringEscape)(t),`"];`])}),this.ensureBlankLine(),this.emitLine([`return retval;`])})}};e.PikeRenderer=p})),uo=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HaskellRenderer=e.HaskellTargetLanguage=e.haskellOptions=void 0;var t=a(),n=Ha(),r=aa(),i=_a(),o=Ba(),s=Da(),c=fa(),l=Oa();e.haskellOptions={justTypes:new r.BooleanOption(`just-types`,`Plain types only`,!1),useList:new r.EnumOption(`array-type`,`Use Array or List`,[[`array`,!1],[`list`,!0]]),moduleName:new r.StringOption(`module`,`Generated module name`,`NAME`,`QuickType`)},e.HaskellTargetLanguage=class extends n.TargetLanguage{constructor(){super(`Haskell`,[`haskell`],`haskell`)}getOptions(){return[e.haskellOptions.justTypes,e.haskellOptions.moduleName,e.haskellOptions.useList]}get supportsOptionalClassProperties(){return!0}get supportsUnionsWithBothNumberTypes(){return!0}makeRenderer(t,n){return new h(this,t,(0,r.getOptionValues)(e.haskellOptions,n))}};var u=`as.case.class.data.default.deriving.do.else.family.forall.foreign.hiding.if.import.in.infix.infixl.infixr.instance.let.of.mdo.module.newtype.proc.qualified.rec.then.type.where.id.Array.HashMap.Map.Maybe.Bool.Int.True.False.Enum.encode.decode.text.Text.Value.Object.Result.Series.Error`.split(`.`),d=(0,c.legalizeCharacters)(e=>(0,c.isAscii)(e)&&(0,c.isLetterOrUnderscoreOrDigit)(e));function f(e,t){let n=(0,c.splitIntoWords)(e);return(0,c.combineWords)(n,d,t?c.firstUpperWordStyle:c.allLowerWordStyle,c.firstUpperWordStyle,t?c.allUpperWordStyle:c.allLowerWordStyle,c.allUpperWordStyle,``,c.isLetterOrUnderscore)}var p=(0,s.funPrefixNamer)(`upper`,e=>f(e,!0)),m=(0,s.funPrefixNamer)(`lower`,e=>f(e,!1)),h=class extends o.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._options=n}forbiddenNamesForGlobalNamespace(){return u}makeNamedTypeNamer(){return p}namerForObjectProperty(){return m}forbiddenForObjectProperties(e,t){return{names:[],includeGlobalForbidden:!0}}makeUnionMemberNamer(){return p}get unionMembersInGlobalNamespace(){return!0}makeEnumCaseNamer(){return p}get enumCasesInGlobalNamespace(){return!0}proposeUnionMemberName(e,t,n,r){return`${super.proposeUnionMemberName(e,t,n,r)}_in_${r(t)}`}get commentLineStart(){return`-- `}emitDescriptionBlock(e){e.length===1?this.emitLine(`{-| `,e[0],` -}`):this.emitCommentLines(e,``,void 0,`-}`,`{-| `)}haskellType(e,t=!1){return(0,i.matchType)(e,e=>(0,l.multiWord)(` `,`Maybe`,`Text`),e=>(0,l.multiWord)(` `,`Maybe`,`Text`),e=>(0,l.singleWord)(`Bool`),e=>(0,l.singleWord)(`Int`),e=>(0,l.singleWord)(`Float`),e=>(0,l.singleWord)(`Text`),e=>this._options.useList?(0,l.multiWord)(``,`[`,(0,l.parenIfNeeded)(this.haskellType(e.items)),`]`):(0,l.multiWord)(` `,`Vector`,(0,l.parenIfNeeded)(this.haskellType(e.items))),e=>(0,l.singleWord)(this.nameForNamedType(e)),e=>(0,l.multiWord)(` `,`HashMap Text`,(0,l.parenIfNeeded)(this.haskellType(e.values))),e=>(0,l.singleWord)(this.nameForNamedType(e)),e=>{let n=(0,i.nullableFromUnion)(e);if(n!==null){let e=this.haskellType(n);return t?e:(0,l.multiWord)(` `,`Maybe`,(0,l.parenIfNeeded)(e))}return(0,l.singleWord)(this.nameForNamedType(e))})}haskellProperty(e){return e.isOptional?(0,l.multiWord)(` `,`Maybe`,(0,l.parenIfNeeded)(this.haskellType(e.type,!0))).source:this.haskellType(e.type).source}encoderNameForType(e){return(0,i.matchType)(e,e=>(0,l.singleWord)(`String`),e=>(0,l.singleWord)(`Null`),e=>(0,l.singleWord)(`Bool`),e=>(0,l.singleWord)(`Number`),e=>(0,l.singleWord)(`Number`),e=>(0,l.singleWord)(`String`),e=>(0,l.singleWord)(`Array`),e=>(0,l.singleWord)(`Object`),e=>(0,l.singleWord)(`Object`),e=>(0,l.singleWord)(`Object`),e=>(0,l.singleWord)(`Object`))}emitTopLevelDefinition(e,t){this.emitLine(`type `,t,` = `,this.haskellType(e).source)}emitClassDefinition(e,t){let n=this.descriptionForType(e);this.forEachClassProperty(e,`none`,(t,r)=>{let i=this.descriptionForClassProperty(e,r);i!==void 0&&(n===void 0?n=[]:n.push(``),n.push(`${this.sourcelikeToString(t)}:`),n.push(...i))}),this.emitDescription(n),this.emitLine(`data `,t,` = `,t),this.indent(()=>{let n=!0;this.forEachClassProperty(e,`none`,(e,r,i)=>{this.emitLine(n?`{ `:`, `,e,t,` :: `,this.haskellProperty(i)),n=!1}),n&&this.emitLine(`{`),this.emitLine(`} deriving (Show)`)})}emitEnumDefinition(e,t){this.emitDescription(this.descriptionForType(e)),this.emitLine(`data `,t),this.indent(()=>{let n=!0;this.forEachEnumCase(e,`none`,e=>{let r=n?`=`:`|`;this.emitLine(r,` `,e,t),n=!1}),this.emitLine(`deriving (Show)`)})}emitUnionDefinition(e,t){this.emitDescription(this.descriptionForType(e)),this.emitLine(`data `,t),this.indent(()=>{let t=!0;this.forEachUnionMember(e,null,`none`,null,(e,n)=>{let r=t?`=`:`|`;n.kind===`null`?this.emitLine(r,` `,e):this.emitLine(r,` `,e,` `,(0,l.parenIfNeeded)(this.haskellType(n))),t=!1}),this.emitLine(`deriving (Show)`)})}emitTopLevelFunctions(e){this.emitLine(`decodeTopLevel :: ByteString -> Maybe `,e),this.emitLine(`decodeTopLevel = decode`)}classPropertyLength(e){let t=0;return this.forEachClassProperty(e,`none`,()=>{t+=1}),t}emitClassEncoderInstance(e,t){let n=[];this.forEachClassProperty(e,`none`,e=>{n.push(` `),n.push(e),n.push(t)}),this.emitLine(`instance ToJSON `,t,` where`),this.indent(()=>{n.length===0?this.emitLine(`toJSON = \\_ -> emptyObject`):(this.emitLine(`toJSON (`,t,...n,`) =`),this.indent(()=>{this.emitLine(`object`);let n=!0;this.forEachClassProperty(e,`none`,(e,r)=>{this.emitLine(n?`[ `:`, `,`"`,(0,c.stringEscape)(r),`" .= `,e,t),n=!1}),n&&this.emitLine(`[`),this.emitLine(`]`)}))})}emitClassDecoderInstance(e,t){this.emitLine(`instance FromJSON `,t,` where`),this.indent(()=>{this.classPropertyLength(e)===0?this.emitLine(`parseJSON emptyObject = return `,t):(this.emitLine(`parseJSON (Object v) = `,t),this.indent(()=>{let t=!0;this.forEachClassProperty(e,`none`,(e,n,r)=>{let i=r.isOptional?`.:?`:`.:`;this.emitLine(t?`<$> `:`<*> `,`v `,i,` "`,(0,c.stringEscape)(n),`"`),t=!1})}))})}emitClassFunctions(e,t){this.emitClassEncoderInstance(e,t),this.ensureBlankLine(),this.emitClassDecoderInstance(e,t)}emitEnumEncoderInstance(e,t){this.emitLine(`instance ToJSON `,t,` where`),this.indent(()=>{this.forEachEnumCase(e,`none`,(e,n)=>{this.emitLine(`toJSON `,e,t,` = "`,(0,c.stringEscape)(n),`"`)})})}emitEnumDecoderInstance(e,t){this.emitLine(`instance FromJSON `,t,` where`),this.indent(()=>{this.emitLine(`parseJSON = withText "`,t,`" parseText`),this.indent(()=>{this.emitLine(`where`),this.indent(()=>{this.forEachEnumCase(e,`none`,(e,n)=>{this.emitLine(`parseText "`,(0,c.stringEscape)(n),`" = return `,e,t)})})})})}emitEnumFunctions(e,t){this.emitEnumEncoderInstance(e,t),this.ensureBlankLine(),this.emitEnumDecoderInstance(e,t)}emitUnionEncoderInstance(e,t){this.emitLine(`instance ToJSON `,t,` where`),this.indent(()=>{this.forEachUnionMember(e,null,`none`,null,(e,t)=>{t.kind===`null`?this.emitLine(`toJSON `,e,` = Null`):this.emitLine(`toJSON (`,e,` x) = toJSON x`)})})}emitUnionDecoderInstance(e,t){this.emitLine(`instance FromJSON `,t,` where`),this.indent(()=>{this.forEachUnionMember(e,null,`none`,null,(e,t)=>{t.kind===`null`?this.emitLine(`parseJSON Null = return `,e):this.emitLine(`parseJSON xs@(`,this.encoderNameForType(t).source,` _) = (fmap `,e,` . parseJSON) xs`)})})}emitUnionFunctions(e,t){this.emitUnionEncoderInstance(e,t),this.ensureBlankLine(),this.emitUnionDecoderInstance(e,t)}emitLanguageExtensions(e){this.emitLine(`{-# LANGUAGE ${e} #-}`)}emitSourceStructure(){let e=[];this.forEachTopLevel(`none`,(t,n)=>{e.push([n,` (..)`])}),this.forEachObject(`none`,(n,r)=>{(0,t.mapContains)(this.topLevels,n)||e.push([r,` (..)`])}),this.forEachEnum(`none`,(n,r)=>{(0,t.mapContains)(this.topLevels,n)||e.push([r,` (..)`])}),this.forEachUnion(`none`,(n,r)=>{(0,t.mapContains)(this.topLevels,n)||e.push([r,` (..)`])}),this.emitLanguageExtensions(`StrictData`),this.emitLanguageExtensions(`OverloadedStrings`),this._options.justTypes||(this.ensureBlankLine(),this.emitLine(`module `,this._options.moduleName),this.indent(()=>{for(let t=0;t<e.length;t++)this.emitLine(t===0?`(`:`,`,` `,e[t]);this.emitLine(`, decodeTopLevel`),this.emitLine(`) where`)}),this.ensureBlankLine(),this.emitMultiline(`import Data.Aeson
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})),fo=i(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,S=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],C=`[object Arguments]`,w=`[object Array]`,T=`[object AsyncFunction]`,E=`[object Boolean]`,D=`[object Date]`,O=`[object DOMException]`,k=`[object Error]`,A=`[object Function]`,j=`[object GeneratorFunction]`,M=`[object Map]`,N=`[object Number]`,P=`[object Null]`,F=`[object Object]`,I=`[object Promise]`,L=`[object Proxy]`,R=`[object RegExp]`,z=`[object Set]`,B=`[object String]`,ee=`[object Symbol]`,te=`[object Undefined]`,ne=`[object WeakMap]`,V=`[object WeakSet]`,H=`[object ArrayBuffer]`,re=`[object DataView]`,ie=`[object Float32Array]`,U=`[object Float64Array]`,ae=`[object Int8Array]`,oe=`[object Int16Array]`,se=`[object Int32Array]`,ce=`[object Uint8Array]`,le=`[object Uint8ClampedArray]`,ue=`[object Uint16Array]`,de=`[object Uint32Array]`,fe=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,G=RegExp(me.source),K=RegExp(he.source),ge=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ye=/^\w*$/,be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(J.source),Y=/^\s+/,X=/\s/,Se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ce=/\{\n\/\* \[wrapped with (.+)\] \*/,we=/,? & /,Te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ee=/[()=,{}\[\]\/\s]/,De=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ke=/\w*$/,Ae=/^[-+]0x[0-9a-f]+$/i,je=/^0b[01]+$/i,Me=/^\[object .+?Constructor\]$/,Ne=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ie=/($^)/,Le=/['\n\r\u2028\u2029\\]/g,Re=`\\ud800-\\udfff`,ze=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Be=`\\u2700-\\u27bf`,Ve=`a-z\\xdf-\\xf6\\xf8-\\xff`,He=`\\xac\\xb1\\xd7\\xf7`,Ue=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,We=`\\u2000-\\u206f`,Ge=` \\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`,Ke=`A-Z\\xc0-\\xd6\\xd8-\\xde`,qe=`\\ufe0e\\ufe0f`,Je=He+Ue+We+Ge,Ye=`['’]`,Xe=`[`+Re+`]`,Ze=`[`+Je+`]`,Qe=`[`+ze+`]`,$e=`\\d+`,et=`[`+Be+`]`,tt=`[`+Ve+`]`,nt=`[^`+Re+Je+$e+Be+Ve+Ke+`]`,rt=`\\ud83c[\\udffb-\\udfff]`,it=`(?:`+Qe+`|`+rt+`)`,at=`[^`+Re+`]`,ot=`(?:\\ud83c[\\udde6-\\uddff]){2}`,st=`[\\ud800-\\udbff][\\udc00-\\udfff]`,ct=`[`+Ke+`]`,lt=`\\u200d`,ut=`(?:`+tt+`|`+nt+`)`,dt=`(?:`+ct+`|`+nt+`)`,ft=`(?:`+Ye+`(?:d|ll|m|re|s|t|ve))?`,pt=`(?:`+Ye+`(?:D|LL|M|RE|S|T|VE))?`,mt=it+`?`,ht=`[`+qe+`]?`,gt=`(?:`+lt+`(?:`+[at,ot,st].join(`|`)+`)`+ht+mt+`)*`,_t=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,vt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,yt=ht+mt+gt,bt=`(?:`+[et,ot,st].join(`|`)+`)`+yt,xt=`(?:`+[at+Qe+`?`,Qe,ot,st,Xe].join(`|`)+`)`,St=RegExp(Ye,`g`),Ct=RegExp(Qe,`g`),wt=RegExp(rt+`(?=`+rt+`)|`+xt+yt,`g`),Tt=RegExp([ct+`?`+tt+`+`+ft+`(?=`+[Ze,ct,`$`].join(`|`)+`)`,dt+`+`+pt+`(?=`+[Ze,ct+ut,`$`].join(`|`)+`)`,ct+`?`+ut+`+`+ft,ct+`+`+pt,vt,_t,$e,bt].join(`|`),`g`),Et=RegExp(`[`+lt+Re+ze+qe+`]`),Dt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=`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(`.`),kt=-1,At={};At[ie]=At[U]=At[ae]=At[oe]=At[se]=At[ce]=At[le]=At[ue]=At[de]=!0,At[C]=At[w]=At[H]=At[E]=At[re]=At[D]=At[k]=At[A]=At[M]=At[N]=At[F]=At[R]=At[z]=At[B]=At[ne]=!1;var jt={};jt[C]=jt[w]=jt[H]=jt[re]=jt[E]=jt[D]=jt[ie]=jt[U]=jt[ae]=jt[oe]=jt[se]=jt[M]=jt[N]=jt[F]=jt[R]=jt[z]=jt[B]=jt[ee]=jt[ce]=jt[le]=jt[ue]=jt[de]=!0,jt[k]=jt[A]=jt[ne]=!1;var Mt={À:`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`},Nt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Pt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Ft={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},It=parseFloat,Lt=parseInt,Rt=typeof global==`object`&&global&&global.Object===Object&&global,zt=typeof self==`object`&&self&&self.Object===Object&&self,Bt=Rt||zt||Function(`return this`)(),Vt=typeof e==`object`&&e&&!e.nodeType&&e,Ht=Vt&&typeof t==`object`&&t&&!t.nodeType&&t,Ut=Ht&&Ht.exports===Vt,Wt=Ut&&Rt.process,Gt=function(){try{return Ht&&Ht.require&&Ht.require(`util`).types||Wt&&Wt.binding&&Wt.binding(`util`)}catch{}}(),Kt=Gt&&Gt.isArrayBuffer,qt=Gt&&Gt.isDate,Jt=Gt&&Gt.isMap,Yt=Gt&&Gt.isRegExp,Xt=Gt&&Gt.isSet,Zt=Gt&&Gt.isTypedArray;function Qt(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 $t(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 en(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function tn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function nn(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 rn(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 an(e,t){return!!(e!=null&&e.length)&&_n(e,t,0)>-1}function on(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 sn(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 cn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function ln(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 un(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 dn(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 fn=xn(`length`);function pn(e){return e.split(``)}function mn(e){return e.match(Te)||[]}function hn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function gn(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 _n(e,t,n){return t===t?qn(e,t,n):gn(e,yn,n)}function vn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function yn(e){return e!==e}function bn(e,t){var n=e==null?0:e.length;return n?Tn(e,t)/n:v}function xn(e){return function(t){return t==null?n:t[e]}}function Sn(e){return function(t){return e==null?n:e[t]}}function Cn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function wn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Tn(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 En(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dn(e,t){return sn(t,function(t){return[t,e[t]]})}function On(e){return e&&e.slice(0,Zn(e)+1).replace(Y,``)}function kn(e){return function(t){return e(t)}}function An(e,t){return sn(t,function(t){return e[t]})}function jn(e,t){return e.has(t)}function Mn(e,t){for(var n=-1,r=e.length;++n<r&&_n(t,e[n],0)>-1;);return n}function Nn(e,t){for(var n=e.length;n--&&_n(t,e[n],0)>-1;);return n}function Pn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Fn=Sn(Mt),In=Sn(Nt);function Ln(e){return`\\`+Ft[e]}function Rn(e,t){return e==null?n:e[t]}function zn(e){return Et.test(e)}function Bn(e){return Dt.test(e)}function Vn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Un(e,t){return function(n){return e(t(n))}}function Wn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function qn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Jn(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function Yn(e){return zn(e)?$n(e):fn(e)}function Xn(e){return zn(e)?er(e):pn(e)}function Zn(e){for(var t=e.length;t--&&X.test(e.charAt(t)););return t}var Qn=Sn(Pt);function $n(e){for(var t=wt.lastIndex=0;wt.test(e);)++t;return t}function er(e){return e.match(wt)||[]}function tr(e){return e.match(Tt)||[]}var nr=(function e(t){t=t==null?Bt:nr.defaults(Bt.Object(),t,nr.pick(Bt,Ot));var X=t.Array,Te=t.Date,Re=t.Error,ze=t.Function,Be=t.Math,Ve=t.Object,He=t.RegExp,Ue=t.String,We=t.TypeError,Ge=X.prototype,Ke=ze.prototype,qe=Ve.prototype,Je=t[`__core-js_shared__`],Ye=Ke.toString,Xe=qe.hasOwnProperty,Ze=0,Qe=function(){var e=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),$e=qe.toString,et=Ye.call(Ve),tt=Bt._,nt=He(`^`+Ye.call(Xe).replace(J,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),rt=Ut?t.Buffer:n,it=t.Symbol,at=t.Uint8Array,ot=rt?rt.allocUnsafe:n,st=Un(Ve.getPrototypeOf,Ve),ct=Ve.create,lt=qe.propertyIsEnumerable,ut=Ge.splice,dt=it?it.isConcatSpreadable:n,ft=it?it.iterator:n,pt=it?it.toStringTag:n,mt=function(){try{var e=ko(Ve,`defineProperty`);return e({},``,{}),e}catch{}}(),ht=t.clearTimeout!==Bt.clearTimeout&&t.clearTimeout,gt=Te&&Te.now!==Bt.Date.now&&Te.now,_t=t.setTimeout!==Bt.setTimeout&&t.setTimeout,vt=Be.ceil,yt=Be.floor,bt=Ve.getOwnPropertySymbols,xt=rt?rt.isBuffer:n,wt=t.isFinite,Tt=Ge.join,Et=Un(Ve.keys,Ve),Dt=Be.max,Mt=Be.min,Nt=Te.now,Pt=t.parseInt,Ft=Be.random,Rt=Ge.reverse,zt=ko(t,`DataView`),Vt=ko(t,`Map`),Ht=ko(t,`Promise`),Wt=ko(t,`Set`),Gt=ko(t,`WeakMap`),fn=ko(Ve,`create`),pn=Gt&&new Gt,Sn={},qn=ms(zt),$n=ms(Vt),er=ms(Ht),rr=ms(Wt),ir=ms(Gt),ar=it?it.prototype:n,or=ar?ar.valueOf:n,sr=ar?ar.toString:n;function Z(e){if(su(e)&&!Wl(e)&&!(e instanceof dr)){if(e instanceof ur)return e;if(Xe.call(e,`__wrapped__`))return gs(e)}return new ur(e)}var cr=function(){function e(){}return function(t){if(!ou(t))return{};if(ct)return ct(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function lr(){}function ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}Z.templateSettings={escape:ge,evaluate:_e,interpolate:q,variable:``,imports:{_:Z}},Z.prototype=lr.prototype,Z.prototype.constructor=Z,ur.prototype=cr(lr.prototype),ur.prototype.constructor=ur;function dr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function fr(){var e=new dr(this.__wrapped__);return e.__actions__=Ba(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ba(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ba(this.__views__),e}function pr(){if(this.__filtered__){var e=new dr(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=Wl(e),r=t<0,i=n?e.length:0,a=Po(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=Mt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return xa(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==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}dr.prototype=cr(lr.prototype),dr.prototype.constructor=dr;function hr(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 gr(){this.__data__=fn?fn(null):{},this.size=0}function _r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function vr(e){var t=this.__data__;if(fn){var r=t[e];return r===i?n:r}return Xe.call(t,e)?t[e]:n}function yr(e){var t=this.__data__;return fn?t[e]!==n:Xe.call(t,e)}function br(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=fn&&t===n?i:t,this}hr.prototype.clear=gr,hr.prototype.delete=_r,hr.prototype.get=vr,hr.prototype.has=yr,hr.prototype.set=br;function xr(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 Sr(){this.__data__=[],this.size=0}function Cr(e){var t=this.__data__,n=Jr(t,e);return n<0?!1:(n==t.length-1?t.pop():ut.call(t,n,1),--this.size,!0)}function wr(e){var t=this.__data__,r=Jr(t,e);return r<0?n:t[r][1]}function Tr(e){return Jr(this.__data__,e)>-1}function Er(e,t){var n=this.__data__,r=Jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}xr.prototype.clear=Sr,xr.prototype.delete=Cr,xr.prototype.get=wr,xr.prototype.has=Tr,xr.prototype.set=Er;function Dr(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 Or(){this.size=0,this.__data__={hash:new hr,map:new(Vt||xr),string:new hr}}function kr(e){var t=Do(this,e).delete(e);return this.size-=+!!t,t}function Ar(e){return Do(this,e).get(e)}function jr(e){return Do(this,e).has(e)}function Mr(e,t){var n=Do(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Dr.prototype.clear=Or,Dr.prototype.delete=kr,Dr.prototype.get=Ar,Dr.prototype.has=jr,Dr.prototype.set=Mr;function Nr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Dr;++t<n;)this.add(e[t])}function Pr(e){return this.__data__.set(e,i),this}function Fr(e){return this.__data__.has(e)}Nr.prototype.add=Nr.prototype.push=Pr,Nr.prototype.has=Fr;function Ir(e){var t=this.__data__=new xr(e);this.size=t.size}function Lr(){this.__data__=new xr,this.size=0}function Rr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function zr(e){return this.__data__.get(e)}function Br(e){return this.__data__.has(e)}function Vr(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!Vt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dr(r)}return n.set(e,t),this.size=n.size,this}Ir.prototype.clear=Lr,Ir.prototype.delete=Rr,Ir.prototype.get=zr,Ir.prototype.has=Br,Ir.prototype.set=Vr;function Hr(e,t){var n=Wl(e),r=!n&&Ul(e),i=!n&&!r&&Yl(e),a=!n&&!r&&!i&&Su(e),o=n||r||i||a,s=o?En(e.length,Ue):[],c=s.length;for(var l in e)(t||Xe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ho(l,c)))&&s.push(l);return s}function Ur(e){var t=e.length;return t?e[ta(0,t-1)]:n}function Wr(e,t){return ds(Ba(e),ei(t,0,e.length))}function Gr(e){return ds(Ba(e))}function Kr(e,t,r){(r!==n&&!Bl(e[t],r)||r===n&&!(t in e))&&Qr(e,t,r)}function qr(e,t,r){var i=e[t];(!(Xe.call(e,t)&&Bl(i,r))||r===n&&!(t in e))&&Qr(e,t,r)}function Jr(e,t){for(var n=e.length;n--;)if(Bl(e[n][0],t))return n;return-1}function Yr(e,t,n,r){return oi(e,function(e,i,a){t(r,e,n(e),a)}),r}function Xr(e,t){return e&&Va(t,id(t),e)}function Zr(e,t){return e&&Va(t,ad(t),e)}function Qr(e,t,n){t==`__proto__`&&mt?mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $r(e,t){for(var r=-1,i=t.length,a=X(i),o=e==null;++r<i;)a[r]=o?n:Qu(e,t[r]);return a}function ei(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ti(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!ou(e))return e;var d=Wl(e);if(d){if(s=Lo(e),!c)return Ba(e,s)}else{var f=No(e),p=f==A||f==j;if(Yl(e))return Aa(e,c);if(f==F||f==C||p&&!a){if(s=l||p?{}:Ro(e),!c)return l?Ua(e,Zr(s,e)):Ha(e,Xr(s,e))}else{if(!jt[f])return a?e:{};s=zo(e,f,c)}}o||=new Ir;var m=o.get(e);if(m)return m;o.set(e,s),yu(e)?e.forEach(function(n){s.add(ti(n,t,r,n,e,o))}):cu(e)&&e.forEach(function(n,i){s.set(i,ti(n,t,r,i,e,o))});var h=d?n:(u?l?Co:So:l?ad:id)(e);return en(h||e,function(n,i){h&&(i=n,n=e[i]),qr(s,i,ti(n,t,r,i,e,o))}),s}function ni(e){var t=id(e);return function(n){return ri(n,e,t)}}function ri(e,t,r){var i=r.length;if(e==null)return!i;for(e=Ve(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 ii(e,t,i){if(typeof e!=`function`)throw new We(r);return ss(function(){e.apply(n,i)},t)}function ai(e,t,n,r){var i=-1,a=an,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=sn(t,kn(n))),r?(a=on,o=!1):t.length>=200&&(a=jn,o=!1,t=new Nr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var oi=Ka(hi),si=Ka(gi,!0);function ci(e,t){var n=!0;return oi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function li(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&&!xu(s):r(s,c)))var c=s,l=o}return l}function ui(e,t,r,i){var a=e.length;for(r=Au(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Au(i),i<0&&(i+=a),i=r>i?0:ju(i);r<i;)e[r++]=t;return e}function di(e,t){var n=[];return oi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function fi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Vo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?fi(s,t-1,n,r,i):cn(i,s):r||(i[i.length]=s)}return i}var pi=qa(),mi=qa(!0);function hi(e,t){return e&&pi(e,t,id)}function gi(e,t){return e&&mi(e,t,id)}function _i(e,t){return rn(t,function(t){return ru(e[t])})}function vi(e,t){t=Ea(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[ps(t[r++])];return r&&r==i?e:n}function yi(e,t,n){var r=t(e);return Wl(e)?r:cn(r,n(e))}function bi(e){return e==null?e===n?te:P:pt&&pt in Ve(e)?Ao(e):ts(e)}function xi(e,t){return e>t}function Si(e,t){return e!=null&&Xe.call(e,t)}function Ci(e,t){return e!=null&&t in Ve(e)}function wi(e,t,n){return e>=Mt(t,n)&&e<Dt(t,n)}function Ti(e,t,r){for(var i=r?on:an,a=e[0].length,o=e.length,s=o,c=X(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=sn(d,kn(t))),l=Mt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Nr(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?jn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?jn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Ei(e,t,n,r){return hi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Di(e,t,r){t=Ea(t,e),e=rs(e,t);var i=e==null?e:e[ps(Vs(t))];return i==null?n:Qt(i,e,r)}function Oi(e){return su(e)&&bi(e)==C}function ki(e){return su(e)&&bi(e)==H}function Ai(e){return su(e)&&bi(e)==D}function ji(e,t,n,r,i){return e===t?!0:e==null||t==null||!su(e)&&!su(t)?e!==e&&t!==t:Mi(e,t,n,r,ji,i)}function Mi(e,t,n,r,i,a){var o=Wl(e),s=Wl(t),c=o?w:No(e),l=s?w:No(t);c=c==C?F:c,l=l==C?F:l;var u=c==F,d=l==F,f=c==l;if(f&&Yl(e)){if(!Yl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Ir,o||Su(e)?vo(e,t,n,r,i,a):yo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&Xe.call(e,`__wrapped__`),m=d&&Xe.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Ir,i(h,g,n,r,a)}}return f?(a||=new Ir,bo(e,t,n,r,i,a)):!1}function Ni(e){return su(e)&&No(e)==M}function Pi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=Ve(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 Ir;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?ji(d,u,3,i,f):p))return!1}}return!0}function Fi(e){return!ou(e)||qo(e)?!1:(ru(e)?nt:Me).test(ms(e))}function Ii(e){return su(e)&&bi(e)==R}function Li(e){return su(e)&&No(e)==z}function Ri(e){return su(e)&&au(e.length)&&!!At[bi(e)]}function zi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?Wl(e)?Gi(e[0],e[1]):Wi(e):Ef(e)}function Bi(e){if(!Yo(e))return Et(e);var t=[];for(var n in Ve(e))Xe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Vi(e){if(!ou(e))return es(e);var t=Yo(e),n=[];for(var r in e)r==`constructor`&&(t||!Xe.call(e,r))||n.push(r);return n}function Hi(e,t){return e<t}function Ui(e,t){var n=-1,r=Kl(e)?X(e.length):[];return oi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Wi(e){var t=Oo(e);return t.length==1&&t[0][2]?Zo(t[0][0],t[0][1]):function(n){return n===e||Pi(n,e,t)}}function Gi(e,t){return Wo(e)&&Xo(t)?Zo(ps(e),t):function(r){var i=Qu(r,e);return i===n&&i===t?ed(r,e):ji(t,i,3)}}function Ki(e,t,r,i,a){e!==t&&pi(t,function(o,s){if(a||=new Ir,ou(o))qi(e,t,s,r,Ki,i,a);else{var c=i?i(as(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Kr(e,s,c)}},ad)}function qi(e,t,r,i,a,o,s){var c=as(e,r),l=as(t,r),u=s.get(l);if(u){Kr(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Wl(l),m=!p&&Yl(l),h=!p&&!m&&Su(l);d=l,p||m||h?Wl(c)?d=c:ql(c)?d=Ba(c):m?(f=!1,d=Aa(l,!0)):h?(f=!1,d=Fa(l,!0)):d=[]:gu(l)||Ul(l)?(d=c,Ul(c)?d=Nu(c):(!ou(c)||ru(c))&&(d=Ro(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Kr(e,r,d)}function Ji(e,t){var r=e.length;if(r)return t+=t<0?r:0,Ho(t,r)?e[t]:n}function Yi(e,t,n){t=t.length?sn(t,function(e){return Wl(e)?function(t){return vi(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=sn(t,kn($())),wn(Ui(e,function(e,n,i){return{criteria:sn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return La(e,t,n)})}function Xi(e,t){return Zi(e,t,function(t,n){return ed(e,n)})}function Zi(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=vi(e,o);n(s,o)&&oa(a,Ea(o,e),s)}return a}function Qi(e){return function(t){return vi(t,e)}}function $i(e,t,n,r){var i=r?vn:_n,a=-1,o=t.length,s=e;for(e===t&&(t=Ba(t)),n&&(s=sn(e,kn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&ut.call(s,c,1),ut.call(e,c,1);return e}function ea(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;Ho(i)?ut.call(e,i,1):va(e,i)}}return e}function ta(e,t){return e+yt(Ft()*(t-e+1))}function na(e,t,n,r){for(var i=-1,a=Dt(vt((t-e)/(n||1)),0),o=X(a);a--;)o[r?a:++i]=e,e+=n;return o}function Q(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=yt(t/2),t&&(e+=e);while(t);return n}function ra(e,t){return cs(ns(e,t,pf),e+``)}function ia(e){return Ur(Cd(e))}function aa(e,t){var n=Cd(e);return ds(n,ei(t,0,n.length))}function oa(e,t,r,i){if(!ou(e))return e;t=Ea(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ps(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=ou(d)?d:Ho(t[a+1])?[]:{})}qr(c,l,u),c=c[l]}return e}var sa=pn?function(e,t){return pn.set(e,t),e}:pf,ca=mt?function(e,t){return mt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function la(e){return ds(Cd(e))}function ua(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=X(i);++r<i;)a[r]=e[r+t];return a}function da(e,t){var n;return oi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function fa(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!xu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return pa(e,t,pf,n)}function pa(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=xu(t),u=t===n;a<o;){var d=yt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=xu(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 Mt(o,b)}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||!Bl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function ha(e){return typeof e==`number`?e:xu(e)?v:+e}function ga(e){if(typeof e==`string`)return e;if(Wl(e))return sn(e,ga)+``;if(xu(e))return sr?sr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function _a(e,t,n){var r=-1,i=an,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=on;else if(a>=200){var l=t?null:fo(e);if(l)return Gn(l);o=!1,i=jn,c=new Nr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function va(e,t){t=Ea(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=ps(t[n]);if(i===`__proto__`&&!Xe.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=rs(e,t);return a==null||delete a[ps(Vs(t))]}function ya(e,t,n,r){return oa(e,t,n(vi(e,t)),r)}function ba(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ua(e,r?0:a,r?a+1:i):ua(e,r?a+1:0,r?i:a)}function xa(e,t){var n=e;return n instanceof dr&&(n=n.value()),ln(t,function(e,t){return t.func.apply(t.thisArg,cn([e],t.args))},n)}function Sa(e,t,n){var r=e.length;if(r<2)return r?_a(e[0]):[];for(var i=-1,a=X(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=ai(a[i]||o,e[s],t,n));return _a(fi(a,1),t,n)}function Ca(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 wa(e){return ql(e)?e:[]}function Ta(e){return typeof e==`function`?e:pf}function Ea(e,t){return Wl(e)?e:Wo(e,t)?[e]:fs(Fu(e))}var Da=ra;function Oa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ua(e,t,r)}var ka=ht||function(e){return Bt.clearTimeout(e)};function Aa(e,t){if(t)return e.slice();var n=e.length,r=ot?ot(n):new e.constructor(n);return e.copy(r),r}function ja(e){var t=new e.constructor(e.byteLength);return new at(t).set(new at(e)),t}function Ma(e,t){var n=t?ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Na(e){var t=new e.constructor(e.source,ke.exec(e));return t.lastIndex=e.lastIndex,t}function Pa(e){return or?Ve(or.call(e)):{}}function Fa(e,t){var n=t?ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ia(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=xu(e),s=t!==n,c=t===null,l=t===t,u=xu(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 La(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ia(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ra(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Dt(a-o,0),u=X(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 za(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Dt(a-s,0),d=X(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 Ba(e,t){var n=-1,r=e.length;for(t||=X(r);++n<r;)t[n]=e[n];return t}function Va(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?Qr(r,c,l):qr(r,c,l)}return r}function Ha(e,t){return Va(e,jo(e),t)}function Ua(e,t){return Va(e,Mo(e),t)}function Wa(e,t){return function(n,r){var i=Wl(n)?$t:Yr,a=t?t():{};return i(n,e,$(r,2),a)}}function Ga(e){return ra(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&&Uo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=Ve(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ka(e,t){return function(n,r){if(n==null)return n;if(!Kl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ve(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function qa(e){return function(t,n,r){for(var i=-1,a=Ve(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 Ja(e,t,n){var r=t&o,i=Za(e);function a(){return(this&&this!==Bt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Ya(e){return function(t){t=Fu(t);var r=zn(t)?Xn(t):n,i=r?r[0]:t.charAt(0),a=r?Oa(r,1).join(``):t.slice(1);return i[e]()+a}}function Xa(e){return function(t){return ln(rf(Ad(t).replace(St,``)),e,``)}}function Za(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=cr(e.prototype),r=e.apply(n,t);return ou(r)?r:n}}function Qa(e,t,r){var i=Za(e);function a(){for(var o=arguments.length,s=X(o),c=o,l=Eo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Wn(s,l);return o-=u.length,o<r?lo(e,t,to,a.placeholder,n,s,u,n,n,r-o):Qt(this&&this!==Bt&&this instanceof a?i:e,this,s)}return a}function $a(e){return function(t,r,i){var a=Ve(t);if(!Kl(t)){var o=$(r,3);t=id(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 eo(e){return xo(function(t){var i=t.length,a=i,o=ur.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new We(r);if(o&&!l&&To(s)==`wrapper`)var l=new ur([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=To(s),m=d==`wrapper`?wo(s):n;l=m&&Ko(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[To(m[0])].apply(l,m[3]):s.length==1&&Ko(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Wl(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function to(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:Za(e);function C(){for(var n=arguments.length,o=X(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Eo(C),l=Pn(o,c);if(i&&(o=Ra(o,i,a,b)),u&&(o=za(o,u,d,b)),n-=l,b&&n<g){var f=Wn(o,c);return lo(e,t,to,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=is(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Bt&&this instanceof C&&(w=S||Za(w)),w.apply(m,o)}return C}function no(e,t){return function(n,r){return Ei(n,e,t(r),{})}}function ro(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=ga(r),i=ga(i)):(r=ha(r),i=ha(i)),a=e(r,i)}return a}}function io(e){return xo(function(t){return t=sn(t,kn($())),ra(function(n){var r=this;return e(t,function(e){return Qt(e,r,n)})})})}function ao(e,t){t=t===n?` `:ga(t);var r=t.length;if(r<2)return r?Q(t,e):t;var i=Q(t,vt(e/Yn(t)));return zn(t)?Oa(Xn(i),0,e).join(``):i.slice(0,e)}function oo(e,t,n,r){var i=t&o,a=Za(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=X(l+o),d=this&&this!==Bt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return Qt(d,i?n:this,u)}return s}function so(e){return function(t,r,i){return i&&typeof i!=`number`&&Uo(t,r,i)&&(r=i=n),t=ku(t),r===n?(r=t,t=0):r=ku(r),i=i===n?t<r?1:-1:ku(i),na(t,r,i,e)}}function co(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Mu(t),n=Mu(n)),e(t,n)}}function lo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Ko(e)&&os(S,x),S.placeholder=i,ls(S,e,t)}function uo(e){var t=Be[e];return function(e,n){if(e=Mu(e),n=n==null?0:Mt(Au(n),292),n&&wt(e)){var r=(Fu(e)+`e`).split(`e`);return r=(Fu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var fo=Wt&&1/Gn(new Wt([,-0]))[1]==h?function(e){return new Wt(e)}:xf;function po(e){return function(t){var n=No(t);return n==M?Hn(t):n==z?Kn(t):Dn(t,e(t))}}function mo(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new We(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:Dt(Au(m),0),h=h===n?h:Au(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:wo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&$o(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:Dt(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=Ja(e,t,i);else S=t==c||t==l?Qa(e,t,h):(t==u||t==(o|u))&&!f.length?oo(e,t,i,a):to.apply(n,x);return ls((b?sa:os)(S,x),e,t)}function ho(e,t,r,i){return e===n||Bl(e,qe[r])&&!Xe.call(i,r)?t:e}function go(e,t,r,i,a,o){return ou(e)&&ou(t)&&(o.set(t,e),Ki(e,t,n,go,o),o.delete(t)),e}function _o(e){return gu(e)?n:e}function vo(e,t,r,i,a,o){var s=r&1,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,m=r&2?new Nr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!dn(t,function(e,t){if(!jn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function yo(e,t,n,r,i,a,o){switch(n){case re:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case H:return!(e.byteLength!=t.byteLength||!a(new at(e),new at(t)));case E:case D:case N:return Bl(+e,+t);case k:return e.name==t.name&&e.message==t.message;case R:case B:return e==t+``;case M:var s=Hn;case z:var c=r&1;if(s||=Gn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=vo(s(e),s(t),r,i,a,o);return o.delete(e),u;case ee:if(or)return or.call(e)==or.call(t)}return!1}function bo(e,t,r,i,a,o){var s=r&1,c=So(e),l=c.length;if(l!=So(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:Xe.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function xo(e){return cs(ns(e,n,As),e+``)}function So(e){return yi(e,id,jo)}function Co(e){return yi(e,ad,Mo)}var wo=pn?function(e){return pn.get(e)}:xf;function To(e){for(var t=e.name+``,n=Sn[t],r=Xe.call(Sn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Eo(e){return(Xe.call(Z,`placeholder`)?Z:e).placeholder}function $(){var e=Z.iteratee||mf;return e=e===mf?zi:e,arguments.length?e(arguments[0],arguments[1]):e}function Do(e,t){var n=e.__data__;return Go(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Oo(e){for(var t=id(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Xo(i)]}return t}function ko(e,t){var r=Rn(e,t);return Fi(r)?r:n}function Ao(e){var t=Xe.call(e,pt),r=e[pt];try{e[pt]=n;var i=!0}catch{}var a=$e.call(e);return i&&(t?e[pt]=r:delete e[pt]),a}var jo=bt?function(e){return e==null?[]:(e=Ve(e),rn(bt(e),function(t){return lt.call(e,t)}))}:Af,Mo=bt?function(e){for(var t=[];e;)cn(t,jo(e)),e=st(e);return t}:Af,No=bi;(zt&&No(new zt(new ArrayBuffer(1)))!=re||Vt&&No(new Vt)!=M||Ht&&No(Ht.resolve())!=I||Wt&&No(new Wt)!=z||Gt&&No(new Gt)!=ne)&&(No=function(e){var t=bi(e),r=t==F?e.constructor:n,i=r?ms(r):``;if(i)switch(i){case qn:return re;case $n:return M;case er:return I;case rr:return z;case ir:return ne}return t});function Po(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=Mt(t,e+o);break;case`takeRight`:e=Dt(e,t-o)}}return{start:e,end:t}}function Fo(e){var t=e.match(Ce);return t?t[1].split(we):[]}function Io(e,t,n){t=Ea(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=ps(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&&au(i)&&Ho(o,i)&&(Wl(e)||Ul(e)))}function Lo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Xe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Ro(e){return typeof e.constructor==`function`&&!Yo(e)?cr(st(e)):{}}function zo(e,t,n){var r=e.constructor;switch(t){case H:return ja(e);case E:case D:return new r(+e);case re:return Ma(e,n);case ie:case U:case ae:case oe:case se:case ce:case le:case ue:case de:return Fa(e,n);case M:return new r;case N:case B:return new r(e);case R:return Na(e);case z:return new r;case ee:return Pa(e)}}function Bo(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(Se,`{
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})),fo=i(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,S=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],C=`[object Arguments]`,w=`[object Array]`,T=`[object AsyncFunction]`,E=`[object Boolean]`,D=`[object Date]`,O=`[object DOMException]`,k=`[object Error]`,A=`[object Function]`,j=`[object GeneratorFunction]`,M=`[object Map]`,N=`[object Number]`,P=`[object Null]`,F=`[object Object]`,I=`[object Promise]`,L=`[object Proxy]`,R=`[object RegExp]`,z=`[object Set]`,B=`[object String]`,ee=`[object Symbol]`,te=`[object Undefined]`,ne=`[object WeakMap]`,V=`[object WeakSet]`,H=`[object ArrayBuffer]`,re=`[object DataView]`,ie=`[object Float32Array]`,U=`[object Float64Array]`,ae=`[object Int8Array]`,oe=`[object Int16Array]`,se=`[object Int32Array]`,ce=`[object Uint8Array]`,le=`[object Uint8ClampedArray]`,ue=`[object Uint16Array]`,de=`[object Uint32Array]`,fe=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,G=RegExp(me.source),K=RegExp(he.source),ge=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ye=/^\w*$/,be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(J.source),Y=/^\s+/,X=/\s/,Se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ce=/\{\n\/\* \[wrapped with (.+)\] \*/,we=/,? & /,Te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ee=/[()=,{}\[\]\/\s]/,De=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ke=/\w*$/,Ae=/^[-+]0x[0-9a-f]+$/i,je=/^0b[01]+$/i,Me=/^\[object .+?Constructor\]$/,Ne=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ie=/($^)/,Le=/['\n\r\u2028\u2029\\]/g,Re=`\\ud800-\\udfff`,ze=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Be=`\\u2700-\\u27bf`,Ve=`a-z\\xdf-\\xf6\\xf8-\\xff`,He=`\\xac\\xb1\\xd7\\xf7`,Ue=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,We=`\\u2000-\\u206f`,Ge=` \\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`,Ke=`A-Z\\xc0-\\xd6\\xd8-\\xde`,qe=`\\ufe0e\\ufe0f`,Je=He+Ue+We+Ge,Ye=`['’]`,Xe=`[`+Re+`]`,Ze=`[`+Je+`]`,Qe=`[`+ze+`]`,$e=`\\d+`,et=`[`+Be+`]`,tt=`[`+Ve+`]`,nt=`[^`+Re+Je+$e+Be+Ve+Ke+`]`,rt=`\\ud83c[\\udffb-\\udfff]`,it=`(?:`+Qe+`|`+rt+`)`,at=`[^`+Re+`]`,ot=`(?:\\ud83c[\\udde6-\\uddff]){2}`,st=`[\\ud800-\\udbff][\\udc00-\\udfff]`,ct=`[`+Ke+`]`,lt=`\\u200d`,ut=`(?:`+tt+`|`+nt+`)`,dt=`(?:`+ct+`|`+nt+`)`,ft=`(?:`+Ye+`(?:d|ll|m|re|s|t|ve))?`,pt=`(?:`+Ye+`(?:D|LL|M|RE|S|T|VE))?`,mt=it+`?`,ht=`[`+qe+`]?`,gt=`(?:`+lt+`(?:`+[at,ot,st].join(`|`)+`)`+ht+mt+`)*`,_t=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,vt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,yt=ht+mt+gt,bt=`(?:`+[et,ot,st].join(`|`)+`)`+yt,xt=`(?:`+[at+Qe+`?`,Qe,ot,st,Xe].join(`|`)+`)`,St=RegExp(Ye,`g`),Ct=RegExp(Qe,`g`),wt=RegExp(rt+`(?=`+rt+`)|`+xt+yt,`g`),Tt=RegExp([ct+`?`+tt+`+`+ft+`(?=`+[Ze,ct,`$`].join(`|`)+`)`,dt+`+`+pt+`(?=`+[Ze,ct+ut,`$`].join(`|`)+`)`,ct+`?`+ut+`+`+ft,ct+`+`+pt,vt,_t,$e,bt].join(`|`),`g`),Et=RegExp(`[`+lt+Re+ze+qe+`]`),Dt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=`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(`.`),kt=-1,At={};At[ie]=At[U]=At[ae]=At[oe]=At[se]=At[ce]=At[le]=At[ue]=At[de]=!0,At[C]=At[w]=At[H]=At[E]=At[re]=At[D]=At[k]=At[A]=At[M]=At[N]=At[F]=At[R]=At[z]=At[B]=At[ne]=!1;var jt={};jt[C]=jt[w]=jt[H]=jt[re]=jt[E]=jt[D]=jt[ie]=jt[U]=jt[ae]=jt[oe]=jt[se]=jt[M]=jt[N]=jt[F]=jt[R]=jt[z]=jt[B]=jt[ee]=jt[ce]=jt[le]=jt[ue]=jt[de]=!0,jt[k]=jt[A]=jt[ne]=!1;var Mt={À:`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`},Nt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Pt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Ft={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},It=parseFloat,Lt=parseInt,Rt=typeof global==`object`&&global&&global.Object===Object&&global,zt=typeof self==`object`&&self&&self.Object===Object&&self,Bt=Rt||zt||Function(`return this`)(),Vt=typeof e==`object`&&e&&!e.nodeType&&e,Ht=Vt&&typeof t==`object`&&t&&!t.nodeType&&t,Ut=Ht&&Ht.exports===Vt,Wt=Ut&&Rt.process,Gt=function(){try{return Ht&&Ht.require&&Ht.require(`util`).types||Wt&&Wt.binding&&Wt.binding(`util`)}catch{}}(),Kt=Gt&&Gt.isArrayBuffer,qt=Gt&&Gt.isDate,Jt=Gt&&Gt.isMap,Yt=Gt&&Gt.isRegExp,Xt=Gt&&Gt.isSet,Zt=Gt&&Gt.isTypedArray;function Qt(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 $t(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 en(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function tn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function nn(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 rn(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 an(e,t){return!!(e!=null&&e.length)&&_n(e,t,0)>-1}function on(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 sn(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 cn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function ln(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 un(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 dn(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 fn=xn(`length`);function pn(e){return e.split(``)}function mn(e){return e.match(Te)||[]}function hn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function gn(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 _n(e,t,n){return t===t?qn(e,t,n):gn(e,yn,n)}function vn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function yn(e){return e!==e}function bn(e,t){var n=e==null?0:e.length;return n?Tn(e,t)/n:v}function xn(e){return function(t){return t==null?n:t[e]}}function Sn(e){return function(t){return e==null?n:e[t]}}function Cn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function wn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Tn(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 En(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dn(e,t){return sn(t,function(t){return[t,e[t]]})}function On(e){return e&&e.slice(0,Zn(e)+1).replace(Y,``)}function kn(e){return function(t){return e(t)}}function An(e,t){return sn(t,function(t){return e[t]})}function jn(e,t){return e.has(t)}function Mn(e,t){for(var n=-1,r=e.length;++n<r&&_n(t,e[n],0)>-1;);return n}function Nn(e,t){for(var n=e.length;n--&&_n(t,e[n],0)>-1;);return n}function Pn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Fn=Sn(Mt),In=Sn(Nt);function Ln(e){return`\\`+Ft[e]}function Rn(e,t){return e==null?n:e[t]}function zn(e){return Et.test(e)}function Bn(e){return Dt.test(e)}function Vn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Un(e,t){return function(n){return e(t(n))}}function Wn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function qn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Jn(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function Yn(e){return zn(e)?$n(e):fn(e)}function Xn(e){return zn(e)?er(e):pn(e)}function Zn(e){for(var t=e.length;t--&&X.test(e.charAt(t)););return t}var Qn=Sn(Pt);function $n(e){for(var t=wt.lastIndex=0;wt.test(e);)++t;return t}function er(e){return e.match(wt)||[]}function tr(e){return e.match(Tt)||[]}var nr=(function e(t){t=t==null?Bt:nr.defaults(Bt.Object(),t,nr.pick(Bt,Ot));var X=t.Array,Te=t.Date,Re=t.Error,ze=t.Function,Be=t.Math,Ve=t.Object,He=t.RegExp,Ue=t.String,We=t.TypeError,Ge=X.prototype,Ke=ze.prototype,qe=Ve.prototype,Je=t[`__core-js_shared__`],Ye=Ke.toString,Xe=qe.hasOwnProperty,Ze=0,Qe=function(){var e=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),$e=qe.toString,et=Ye.call(Ve),tt=Bt._,nt=He(`^`+Ye.call(Xe).replace(J,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),rt=Ut?t.Buffer:n,it=t.Symbol,at=t.Uint8Array,ot=rt?rt.allocUnsafe:n,st=Un(Ve.getPrototypeOf,Ve),ct=Ve.create,lt=qe.propertyIsEnumerable,ut=Ge.splice,dt=it?it.isConcatSpreadable:n,ft=it?it.iterator:n,pt=it?it.toStringTag:n,mt=function(){try{var e=ko(Ve,`defineProperty`);return e({},``,{}),e}catch{}}(),ht=t.clearTimeout!==Bt.clearTimeout&&t.clearTimeout,gt=Te&&Te.now!==Bt.Date.now&&Te.now,_t=t.setTimeout!==Bt.setTimeout&&t.setTimeout,vt=Be.ceil,yt=Be.floor,bt=Ve.getOwnPropertySymbols,xt=rt?rt.isBuffer:n,wt=t.isFinite,Tt=Ge.join,Et=Un(Ve.keys,Ve),Dt=Be.max,Mt=Be.min,Nt=Te.now,Pt=t.parseInt,Ft=Be.random,Rt=Ge.reverse,zt=ko(t,`DataView`),Vt=ko(t,`Map`),Ht=ko(t,`Promise`),Wt=ko(t,`Set`),Gt=ko(t,`WeakMap`),fn=ko(Ve,`create`),pn=Gt&&new Gt,Sn={},qn=ms(zt),$n=ms(Vt),er=ms(Ht),rr=ms(Wt),ir=ms(Gt),ar=it?it.prototype:n,or=ar?ar.valueOf:n,sr=ar?ar.toString:n;function Z(e){if(su(e)&&!Wl(e)&&!(e instanceof dr)){if(e instanceof ur)return e;if(Xe.call(e,`__wrapped__`))return gs(e)}return new ur(e)}var cr=function(){function e(){}return function(t){if(!ou(t))return{};if(ct)return ct(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function lr(){}function ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}Z.templateSettings={escape:ge,evaluate:_e,interpolate:q,variable:``,imports:{_:Z}},Z.prototype=lr.prototype,Z.prototype.constructor=Z,ur.prototype=cr(lr.prototype),ur.prototype.constructor=ur;function dr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function fr(){var e=new dr(this.__wrapped__);return e.__actions__=Ba(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ba(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ba(this.__views__),e}function pr(){if(this.__filtered__){var e=new dr(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=Wl(e),r=t<0,i=n?e.length:0,a=Po(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=Mt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return xa(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==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}dr.prototype=cr(lr.prototype),dr.prototype.constructor=dr;function hr(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 gr(){this.__data__=fn?fn(null):{},this.size=0}function _r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function vr(e){var t=this.__data__;if(fn){var r=t[e];return r===i?n:r}return Xe.call(t,e)?t[e]:n}function yr(e){var t=this.__data__;return fn?t[e]!==n:Xe.call(t,e)}function br(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=fn&&t===n?i:t,this}hr.prototype.clear=gr,hr.prototype.delete=_r,hr.prototype.get=vr,hr.prototype.has=yr,hr.prototype.set=br;function xr(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 Sr(){this.__data__=[],this.size=0}function Cr(e){var t=this.__data__,n=Jr(t,e);return n<0?!1:(n==t.length-1?t.pop():ut.call(t,n,1),--this.size,!0)}function wr(e){var t=this.__data__,r=Jr(t,e);return r<0?n:t[r][1]}function Tr(e){return Jr(this.__data__,e)>-1}function Er(e,t){var n=this.__data__,r=Jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}xr.prototype.clear=Sr,xr.prototype.delete=Cr,xr.prototype.get=wr,xr.prototype.has=Tr,xr.prototype.set=Er;function Dr(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 Or(){this.size=0,this.__data__={hash:new hr,map:new(Vt||xr),string:new hr}}function kr(e){var t=Do(this,e).delete(e);return this.size-=+!!t,t}function Ar(e){return Do(this,e).get(e)}function jr(e){return Do(this,e).has(e)}function Mr(e,t){var n=Do(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Dr.prototype.clear=Or,Dr.prototype.delete=kr,Dr.prototype.get=Ar,Dr.prototype.has=jr,Dr.prototype.set=Mr;function Nr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Dr;++t<n;)this.add(e[t])}function Pr(e){return this.__data__.set(e,i),this}function Fr(e){return this.__data__.has(e)}Nr.prototype.add=Nr.prototype.push=Pr,Nr.prototype.has=Fr;function Ir(e){var t=this.__data__=new xr(e);this.size=t.size}function Lr(){this.__data__=new xr,this.size=0}function Rr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function zr(e){return this.__data__.get(e)}function Br(e){return this.__data__.has(e)}function Vr(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!Vt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dr(r)}return n.set(e,t),this.size=n.size,this}Ir.prototype.clear=Lr,Ir.prototype.delete=Rr,Ir.prototype.get=zr,Ir.prototype.has=Br,Ir.prototype.set=Vr;function Hr(e,t){var n=Wl(e),r=!n&&Ul(e),i=!n&&!r&&Yl(e),a=!n&&!r&&!i&&Su(e),o=n||r||i||a,s=o?En(e.length,Ue):[],c=s.length;for(var l in e)(t||Xe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ho(l,c)))&&s.push(l);return s}function Ur(e){var t=e.length;return t?e[ta(0,t-1)]:n}function Wr(e,t){return ds(Ba(e),ei(t,0,e.length))}function Gr(e){return ds(Ba(e))}function Kr(e,t,r){(r!==n&&!Bl(e[t],r)||r===n&&!(t in e))&&Qr(e,t,r)}function qr(e,t,r){var i=e[t];(!(Xe.call(e,t)&&Bl(i,r))||r===n&&!(t in e))&&Qr(e,t,r)}function Jr(e,t){for(var n=e.length;n--;)if(Bl(e[n][0],t))return n;return-1}function Yr(e,t,n,r){return oi(e,function(e,i,a){t(r,e,n(e),a)}),r}function Xr(e,t){return e&&Va(t,id(t),e)}function Zr(e,t){return e&&Va(t,ad(t),e)}function Qr(e,t,n){t==`__proto__`&&mt?mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $r(e,t){for(var r=-1,i=t.length,a=X(i),o=e==null;++r<i;)a[r]=o?n:Qu(e,t[r]);return a}function ei(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ti(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!ou(e))return e;var d=Wl(e);if(d){if(s=Lo(e),!c)return Ba(e,s)}else{var f=No(e),p=f==A||f==j;if(Yl(e))return Aa(e,c);if(f==F||f==C||p&&!a){if(s=l||p?{}:Ro(e),!c)return l?Ua(e,Zr(s,e)):Ha(e,Xr(s,e))}else{if(!jt[f])return a?e:{};s=zo(e,f,c)}}o||=new Ir;var m=o.get(e);if(m)return m;o.set(e,s),yu(e)?e.forEach(function(n){s.add(ti(n,t,r,n,e,o))}):cu(e)&&e.forEach(function(n,i){s.set(i,ti(n,t,r,i,e,o))});var h=d?n:(u?l?Co:So:l?ad:id)(e);return en(h||e,function(n,i){h&&(i=n,n=e[i]),qr(s,i,ti(n,t,r,i,e,o))}),s}function ni(e){var t=id(e);return function(n){return ri(n,e,t)}}function ri(e,t,r){var i=r.length;if(e==null)return!i;for(e=Ve(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 ii(e,t,i){if(typeof e!=`function`)throw new We(r);return ss(function(){e.apply(n,i)},t)}function ai(e,t,n,r){var i=-1,a=an,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=sn(t,kn(n))),r?(a=on,o=!1):t.length>=200&&(a=jn,o=!1,t=new Nr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var oi=Ka(hi),si=Ka(gi,!0);function ci(e,t){var n=!0;return oi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function li(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&&!xu(s):r(s,c)))var c=s,l=o}return l}function ui(e,t,r,i){var a=e.length;for(r=Au(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Au(i),i<0&&(i+=a),i=r>i?0:ju(i);r<i;)e[r++]=t;return e}function di(e,t){var n=[];return oi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function fi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Vo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?fi(s,t-1,n,r,i):cn(i,s):r||(i[i.length]=s)}return i}var pi=qa(),mi=qa(!0);function hi(e,t){return e&&pi(e,t,id)}function gi(e,t){return e&&mi(e,t,id)}function _i(e,t){return rn(t,function(t){return ru(e[t])})}function vi(e,t){t=Ea(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[ps(t[r++])];return r&&r==i?e:n}function yi(e,t,n){var r=t(e);return Wl(e)?r:cn(r,n(e))}function bi(e){return e==null?e===n?te:P:pt&&pt in Ve(e)?Ao(e):ts(e)}function xi(e,t){return e>t}function Si(e,t){return e!=null&&Xe.call(e,t)}function Ci(e,t){return e!=null&&t in Ve(e)}function wi(e,t,n){return e>=Mt(t,n)&&e<Dt(t,n)}function Ti(e,t,r){for(var i=r?on:an,a=e[0].length,o=e.length,s=o,c=X(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=sn(d,kn(t))),l=Mt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Nr(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?jn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?jn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Ei(e,t,n,r){return hi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Di(e,t,r){t=Ea(t,e),e=rs(e,t);var i=e==null?e:e[ps(Vs(t))];return i==null?n:Qt(i,e,r)}function Oi(e){return su(e)&&bi(e)==C}function ki(e){return su(e)&&bi(e)==H}function Ai(e){return su(e)&&bi(e)==D}function ji(e,t,n,r,i){return e===t?!0:e==null||t==null||!su(e)&&!su(t)?e!==e&&t!==t:Mi(e,t,n,r,ji,i)}function Mi(e,t,n,r,i,a){var o=Wl(e),s=Wl(t),c=o?w:No(e),l=s?w:No(t);c=c==C?F:c,l=l==C?F:l;var u=c==F,d=l==F,f=c==l;if(f&&Yl(e)){if(!Yl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Ir,o||Su(e)?vo(e,t,n,r,i,a):yo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&Xe.call(e,`__wrapped__`),m=d&&Xe.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Ir,i(h,g,n,r,a)}}return f?(a||=new Ir,bo(e,t,n,r,i,a)):!1}function Ni(e){return su(e)&&No(e)==M}function Pi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=Ve(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 Ir;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?ji(d,u,3,i,f):p))return!1}}return!0}function Fi(e){return!ou(e)||qo(e)?!1:(ru(e)?nt:Me).test(ms(e))}function Ii(e){return su(e)&&bi(e)==R}function Li(e){return su(e)&&No(e)==z}function Ri(e){return su(e)&&au(e.length)&&!!At[bi(e)]}function zi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?Wl(e)?Gi(e[0],e[1]):Wi(e):Ef(e)}function Bi(e){if(!Yo(e))return Et(e);var t=[];for(var n in Ve(e))Xe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Vi(e){if(!ou(e))return es(e);var t=Yo(e),n=[];for(var r in e)(r!=`constructor`||!t&&Xe.call(e,r))&&n.push(r);return n}function Hi(e,t){return e<t}function Ui(e,t){var n=-1,r=Kl(e)?X(e.length):[];return oi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Wi(e){var t=Oo(e);return t.length==1&&t[0][2]?Zo(t[0][0],t[0][1]):function(n){return n===e||Pi(n,e,t)}}function Gi(e,t){return Wo(e)&&Xo(t)?Zo(ps(e),t):function(r){var i=Qu(r,e);return i===n&&i===t?ed(r,e):ji(t,i,3)}}function Ki(e,t,r,i,a){e!==t&&pi(t,function(o,s){if(a||=new Ir,ou(o))qi(e,t,s,r,Ki,i,a);else{var c=i?i(as(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Kr(e,s,c)}},ad)}function qi(e,t,r,i,a,o,s){var c=as(e,r),l=as(t,r),u=s.get(l);if(u){Kr(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Wl(l),m=!p&&Yl(l),h=!p&&!m&&Su(l);d=l,p||m||h?Wl(c)?d=c:ql(c)?d=Ba(c):m?(f=!1,d=Aa(l,!0)):h?(f=!1,d=Fa(l,!0)):d=[]:gu(l)||Ul(l)?(d=c,Ul(c)?d=Nu(c):(!ou(c)||ru(c))&&(d=Ro(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Kr(e,r,d)}function Ji(e,t){var r=e.length;if(r)return t+=t<0?r:0,Ho(t,r)?e[t]:n}function Yi(e,t,n){t=t.length?sn(t,function(e){return Wl(e)?function(t){return vi(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=sn(t,kn($())),wn(Ui(e,function(e,n,i){return{criteria:sn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return La(e,t,n)})}function Xi(e,t){return Zi(e,t,function(t,n){return ed(e,n)})}function Zi(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=vi(e,o);n(s,o)&&oa(a,Ea(o,e),s)}return a}function Qi(e){return function(t){return vi(t,e)}}function $i(e,t,n,r){var i=r?vn:_n,a=-1,o=t.length,s=e;for(e===t&&(t=Ba(t)),n&&(s=sn(e,kn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&ut.call(s,c,1),ut.call(e,c,1);return e}function ea(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;Ho(i)?ut.call(e,i,1):va(e,i)}}return e}function ta(e,t){return e+yt(Ft()*(t-e+1))}function na(e,t,n,r){for(var i=-1,a=Dt(vt((t-e)/(n||1)),0),o=X(a);a--;)o[r?a:++i]=e,e+=n;return o}function Q(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=yt(t/2),t&&(e+=e);while(t);return n}function ra(e,t){return cs(ns(e,t,pf),e+``)}function ia(e){return Ur(Cd(e))}function aa(e,t){var n=Cd(e);return ds(n,ei(t,0,n.length))}function oa(e,t,r,i){if(!ou(e))return e;t=Ea(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ps(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=ou(d)?d:Ho(t[a+1])?[]:{})}qr(c,l,u),c=c[l]}return e}var sa=pn?function(e,t){return pn.set(e,t),e}:pf,ca=mt?function(e,t){return mt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function la(e){return ds(Cd(e))}function ua(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=X(i);++r<i;)a[r]=e[r+t];return a}function da(e,t){var n;return oi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function fa(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!xu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return pa(e,t,pf,n)}function pa(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=xu(t),u=t===n;a<o;){var d=yt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=xu(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 Mt(o,b)}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||!Bl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function ha(e){return typeof e==`number`?e:xu(e)?v:+e}function ga(e){if(typeof e==`string`)return e;if(Wl(e))return sn(e,ga)+``;if(xu(e))return sr?sr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function _a(e,t,n){var r=-1,i=an,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=on;else if(a>=200){var l=t?null:fo(e);if(l)return Gn(l);o=!1,i=jn,c=new Nr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function va(e,t){t=Ea(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=ps(t[n]);if(i===`__proto__`&&!Xe.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=rs(e,t);return a==null||delete a[ps(Vs(t))]}function ya(e,t,n,r){return oa(e,t,n(vi(e,t)),r)}function ba(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ua(e,r?0:a,r?a+1:i):ua(e,r?a+1:0,r?i:a)}function xa(e,t){var n=e;return n instanceof dr&&(n=n.value()),ln(t,function(e,t){return t.func.apply(t.thisArg,cn([e],t.args))},n)}function Sa(e,t,n){var r=e.length;if(r<2)return r?_a(e[0]):[];for(var i=-1,a=X(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=ai(a[i]||o,e[s],t,n));return _a(fi(a,1),t,n)}function Ca(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 wa(e){return ql(e)?e:[]}function Ta(e){return typeof e==`function`?e:pf}function Ea(e,t){return Wl(e)?e:Wo(e,t)?[e]:fs(Fu(e))}var Da=ra;function Oa(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ua(e,t,r)}var ka=ht||function(e){return Bt.clearTimeout(e)};function Aa(e,t){if(t)return e.slice();var n=e.length,r=ot?ot(n):new e.constructor(n);return e.copy(r),r}function ja(e){var t=new e.constructor(e.byteLength);return new at(t).set(new at(e)),t}function Ma(e,t){var n=t?ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Na(e){var t=new e.constructor(e.source,ke.exec(e));return t.lastIndex=e.lastIndex,t}function Pa(e){return or?Ve(or.call(e)):{}}function Fa(e,t){var n=t?ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ia(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=xu(e),s=t!==n,c=t===null,l=t===t,u=xu(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 La(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ia(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ra(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Dt(a-o,0),u=X(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 za(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Dt(a-s,0),d=X(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 Ba(e,t){var n=-1,r=e.length;for(t||=X(r);++n<r;)t[n]=e[n];return t}function Va(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?Qr(r,c,l):qr(r,c,l)}return r}function Ha(e,t){return Va(e,jo(e),t)}function Ua(e,t){return Va(e,Mo(e),t)}function Wa(e,t){return function(n,r){var i=Wl(n)?$t:Yr,a=t?t():{};return i(n,e,$(r,2),a)}}function Ga(e){return ra(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&&Uo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=Ve(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ka(e,t){return function(n,r){if(n==null)return n;if(!Kl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ve(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function qa(e){return function(t,n,r){for(var i=-1,a=Ve(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 Ja(e,t,n){var r=t&o,i=Za(e);function a(){return(this&&this!==Bt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Ya(e){return function(t){t=Fu(t);var r=zn(t)?Xn(t):n,i=r?r[0]:t.charAt(0),a=r?Oa(r,1).join(``):t.slice(1);return i[e]()+a}}function Xa(e){return function(t){return ln(rf(Ad(t).replace(St,``)),e,``)}}function Za(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=cr(e.prototype),r=e.apply(n,t);return ou(r)?r:n}}function Qa(e,t,r){var i=Za(e);function a(){for(var o=arguments.length,s=X(o),c=o,l=Eo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Wn(s,l);return o-=u.length,o<r?lo(e,t,to,a.placeholder,n,s,u,n,n,r-o):Qt(this&&this!==Bt&&this instanceof a?i:e,this,s)}return a}function $a(e){return function(t,r,i){var a=Ve(t);if(!Kl(t)){var o=$(r,3);t=id(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 eo(e){return xo(function(t){var i=t.length,a=i,o=ur.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new We(r);if(o&&!l&&To(s)==`wrapper`)var l=new ur([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=To(s),m=d==`wrapper`?wo(s):n;l=m&&Ko(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[To(m[0])].apply(l,m[3]):s.length==1&&Ko(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Wl(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function to(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:Za(e);function C(){for(var n=arguments.length,o=X(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Eo(C),l=Pn(o,c);if(i&&(o=Ra(o,i,a,b)),u&&(o=za(o,u,d,b)),n-=l,b&&n<g){var f=Wn(o,c);return lo(e,t,to,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=is(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Bt&&this instanceof C&&(w=S||Za(w)),w.apply(m,o)}return C}function no(e,t){return function(n,r){return Ei(n,e,t(r),{})}}function ro(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=ga(r),i=ga(i)):(r=ha(r),i=ha(i)),a=e(r,i)}return a}}function io(e){return xo(function(t){return t=sn(t,kn($())),ra(function(n){var r=this;return e(t,function(e){return Qt(e,r,n)})})})}function ao(e,t){t=t===n?` `:ga(t);var r=t.length;if(r<2)return r?Q(t,e):t;var i=Q(t,vt(e/Yn(t)));return zn(t)?Oa(Xn(i),0,e).join(``):i.slice(0,e)}function oo(e,t,n,r){var i=t&o,a=Za(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=X(l+o),d=this&&this!==Bt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return Qt(d,i?n:this,u)}return s}function so(e){return function(t,r,i){return i&&typeof i!=`number`&&Uo(t,r,i)&&(r=i=n),t=ku(t),r===n?(r=t,t=0):r=ku(r),i=i===n?t<r?1:-1:ku(i),na(t,r,i,e)}}function co(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Mu(t),n=Mu(n)),e(t,n)}}function lo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Ko(e)&&os(S,x),S.placeholder=i,ls(S,e,t)}function uo(e){var t=Be[e];return function(e,n){if(e=Mu(e),n=n==null?0:Mt(Au(n),292),n&&wt(e)){var r=(Fu(e)+`e`).split(`e`);return r=(Fu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var fo=Wt&&1/Gn(new Wt([,-0]))[1]==h?function(e){return new Wt(e)}:xf;function po(e){return function(t){var n=No(t);return n==M?Hn(t):n==z?Kn(t):Dn(t,e(t))}}function mo(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new We(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:Dt(Au(m),0),h=h===n?h:Au(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:wo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&$o(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:Dt(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=Ja(e,t,i);else S=t==c||t==l?Qa(e,t,h):(t==u||t==(o|u))&&!f.length?oo(e,t,i,a):to.apply(n,x);return ls((b?sa:os)(S,x),e,t)}function ho(e,t,r,i){return e===n||Bl(e,qe[r])&&!Xe.call(i,r)?t:e}function go(e,t,r,i,a,o){return ou(e)&&ou(t)&&(o.set(t,e),Ki(e,t,n,go,o),o.delete(t)),e}function _o(e){return gu(e)?n:e}function vo(e,t,r,i,a,o){var s=r&1,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,m=r&2?new Nr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!dn(t,function(e,t){if(!jn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function yo(e,t,n,r,i,a,o){switch(n){case re:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case H:return!(e.byteLength!=t.byteLength||!a(new at(e),new at(t)));case E:case D:case N:return Bl(+e,+t);case k:return e.name==t.name&&e.message==t.message;case R:case B:return e==t+``;case M:var s=Hn;case z:var c=r&1;if(s||=Gn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=vo(s(e),s(t),r,i,a,o);return o.delete(e),u;case ee:if(or)return or.call(e)==or.call(t)}return!1}function bo(e,t,r,i,a,o){var s=r&1,c=So(e),l=c.length;if(l!=So(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:Xe.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function xo(e){return cs(ns(e,n,As),e+``)}function So(e){return yi(e,id,jo)}function Co(e){return yi(e,ad,Mo)}var wo=pn?function(e){return pn.get(e)}:xf;function To(e){for(var t=e.name+``,n=Sn[t],r=Xe.call(Sn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Eo(e){return(Xe.call(Z,`placeholder`)?Z:e).placeholder}function $(){var e=Z.iteratee||mf;return e=e===mf?zi:e,arguments.length?e(arguments[0],arguments[1]):e}function Do(e,t){var n=e.__data__;return Go(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Oo(e){for(var t=id(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Xo(i)]}return t}function ko(e,t){var r=Rn(e,t);return Fi(r)?r:n}function Ao(e){var t=Xe.call(e,pt),r=e[pt];try{e[pt]=n;var i=!0}catch{}var a=$e.call(e);return i&&(t?e[pt]=r:delete e[pt]),a}var jo=bt?function(e){return e==null?[]:(e=Ve(e),rn(bt(e),function(t){return lt.call(e,t)}))}:Af,Mo=bt?function(e){for(var t=[];e;)cn(t,jo(e)),e=st(e);return t}:Af,No=bi;(zt&&No(new zt(new ArrayBuffer(1)))!=re||Vt&&No(new Vt)!=M||Ht&&No(Ht.resolve())!=I||Wt&&No(new Wt)!=z||Gt&&No(new Gt)!=ne)&&(No=function(e){var t=bi(e),r=t==F?e.constructor:n,i=r?ms(r):``;if(i)switch(i){case qn:return re;case $n:return M;case er:return I;case rr:return z;case ir:return ne}return t});function Po(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=Mt(t,e+o);break;case`takeRight`:e=Dt(e,t-o)}}return{start:e,end:t}}function Fo(e){var t=e.match(Ce);return t?t[1].split(we):[]}function Io(e,t,n){t=Ea(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=ps(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&&au(i)&&Ho(o,i)&&(Wl(e)||Ul(e)))}function Lo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Xe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Ro(e){return typeof e.constructor==`function`&&!Yo(e)?cr(st(e)):{}}function zo(e,t,n){var r=e.constructor;switch(t){case H:return ja(e);case E:case D:return new r(+e);case re:return Ma(e,n);case ie:case U:case ae:case oe:case se:case ce:case le:case ue:case de:return Fa(e,n);case M:return new r;case N:case B:return new r(e);case R:return Na(e);case z:return new r;case ee:return Pa(e)}}function Bo(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(Se,`{
866
866
  /* [wrapped with `+t+`] */
867
867
  `)}function Vo(e){return Wl(e)||Ul(e)||!!(dt&&e&&e[dt])}function Ho(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Pe.test(e))&&e>-1&&e%1==0&&e<t}function Uo(e,t,n){if(!ou(n))return!1;var r=typeof t;return(r==`number`?Kl(n)&&Ho(t,n.length):r==`string`&&t in n)?Bl(n[t],e):!1}function Wo(e,t){if(Wl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||xu(e)?!0:ye.test(e)||!ve.test(e)||t!=null&&e in Ve(t)}function Go(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ko(e){var t=To(e),n=Z[t];if(typeof n!=`function`||!(t in dr.prototype))return!1;if(e===n)return!0;var r=wo(n);return!!r&&e===r[0]}function qo(e){return!!Qe&&Qe in e}var Jo=Je?ru:jf;function Yo(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||qe)}function Xo(e){return e===e&&!ou(e)}function Zo(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in Ve(r))}}function Qo(e){var t=Sl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function $o(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ra(m,d,t[4]):d,e[4]=m?Wn(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?za(m,d,t[6]):d,e[6]=m?Wn(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Mt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function es(e){var t=[];if(e!=null)for(var n in Ve(e))t.push(n);return t}function ts(e){return $e.call(e)}function ns(e,t,r){return t=Dt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Dt(n.length-t,0),o=X(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=X(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Qt(e,this,s)}}function rs(e,t){return t.length<2?e:vi(e,ua(t,0,-1))}function is(e,t){for(var r=e.length,i=Mt(t.length,r),a=Ba(e);i--;){var o=t[i];e[i]=Ho(o,r)?a[o]:n}return e}function as(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var os=us(sa),ss=_t||function(e,t){return Bt.setTimeout(e,t)},cs=us(ca);function ls(e,t,n){var r=t+``;return cs(e,Bo(r,hs(Fo(r),n)))}function us(e){var t=0,r=0;return function(){var i=Nt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ds(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ta(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var fs=Qo(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(be,function(e,n,r,i){t.push(r?i.replace(De,`$1`):n||e)}),t});function ps(e){if(typeof e==`string`||xu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ms(e){if(e!=null){try{return Ye.call(e)}catch{}try{return e+``}catch{}}return``}function hs(e,t){return en(S,function(n){var r=`_.`+n[0];t&n[1]&&!an(e,r)&&e.push(r)}),e.sort()}function gs(e){if(e instanceof dr)return e.clone();var t=new ur(e.__wrapped__,e.__chain__);return t.__actions__=Ba(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function _s(e,t,r){t=(r?Uo(e,t,r):t===n)?1:Dt(Au(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=X(vt(i/t));a<i;)s[o++]=ua(e,a,a+=t);return s}function vs(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 ys(){var e=arguments.length;if(!e)return[];for(var t=X(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return cn(Wl(n)?Ba(n):[n],fi(t,1))}var bs=ra(function(e,t){return ql(e)?ai(e,fi(t,1,ql,!0)):[]}),xs=ra(function(e,t){var r=Vs(t);return ql(r)&&(r=n),ql(e)?ai(e,fi(t,1,ql,!0),$(r,2)):[]}),Ss=ra(function(e,t){var r=Vs(t);return ql(r)&&(r=n),ql(e)?ai(e,fi(t,1,ql,!0),n,r):[]});function Cs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Au(t),ua(e,t<0?0:t,i)):[]}function ws(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Au(t),t=i-t,ua(e,0,t<0?0:t)):[]}function Ts(e,t){return e&&e.length?ba(e,$(t,3),!0,!0):[]}function Es(e,t){return e&&e.length?ba(e,$(t,3),!0):[]}function Ds(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Uo(e,t,n)&&(n=0,r=i),ui(e,t,n,r)):[]}function Os(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Au(n);return i<0&&(i=Dt(r+i,0)),gn(e,$(t,3),i)}function ks(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Au(r),a=r<0?Dt(i+a,0):Mt(a,i-1)),gn(e,$(t,3),a,!0)}function As(e){return e!=null&&e.length?fi(e,1):[]}function js(e){return e!=null&&e.length?fi(e,h):[]}function Ms(e,t){return e!=null&&e.length?(t=t===n?1:Au(t),fi(e,t)):[]}function Ns(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];Qr(r,i[0],i[1])}return r}function Ps(e){return e&&e.length?e[0]:n}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Au(n);return i<0&&(i=Dt(r+i,0)),_n(e,t,i)}function Is(e){return e!=null&&e.length?ua(e,0,-1):[]}var Ls=ra(function(e){var t=sn(e,wa);return t.length&&t[0]===e[0]?Ti(t):[]}),Rs=ra(function(e){var t=Vs(e),r=sn(e,wa);return t===Vs(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ti(r,$(t,2)):[]}),zs=ra(function(e){var t=Vs(e),r=sn(e,wa);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ti(r,n,t):[]});function Bs(e,t){return e==null?``:Tt.call(e,t)}function Vs(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Hs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Au(r),a=a<0?Dt(i+a,0):Mt(a,i-1)),t===t?Jn(e,t,a):gn(e,yn,a,!0)}function Us(e,t){return e&&e.length?Ji(e,Au(t)):n}var Ws=ra(Gs);function Gs(e,t){return e&&e.length&&t&&t.length?$i(e,t):e}function Ks(e,t,n){return e&&e.length&&t&&t.length?$i(e,t,$(n,2)):e}function qs(e,t,r){return e&&e.length&&t&&t.length?$i(e,t,n,r):e}var Js=xo(function(e,t){var n=e==null?0:e.length,r=$r(e,t);return ea(e,sn(t,function(e){return Ho(e,n)?+e:e}).sort(Ia)),r});function Ys(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 ea(e,i),n}function Xs(e){return e==null?e:Rt.call(e)}function Zs(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Uo(e,t,r)?(t=0,r=i):(t=t==null?0:Au(t),r=r===n?i:Au(r)),ua(e,t,r)):[]}function Qs(e,t){return fa(e,t)}function $s(e,t,n){return pa(e,t,$(n,2))}function ec(e,t){var n=e==null?0:e.length;if(n){var r=fa(e,t);if(r<n&&Bl(e[r],t))return r}return-1}function tc(e,t){return fa(e,t,!0)}function nc(e,t,n){return pa(e,t,$(n,2),!0)}function rc(e,t){if(e!=null&&e.length){var n=fa(e,t,!0)-1;if(Bl(e[n],t))return n}return-1}function ic(e){return e&&e.length?ma(e):[]}function ac(e,t){return e&&e.length?ma(e,$(t,2)):[]}function oc(e){var t=e==null?0:e.length;return t?ua(e,1,t):[]}function sc(e,t,r){return e&&e.length?(t=r||t===n?1:Au(t),ua(e,0,t<0?0:t)):[]}function cc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Au(t),t=i-t,ua(e,t<0?0:t,i)):[]}function lc(e,t){return e&&e.length?ba(e,$(t,3),!1,!0):[]}function uc(e,t){return e&&e.length?ba(e,$(t,3)):[]}var dc=ra(function(e){return _a(fi(e,1,ql,!0))}),fc=ra(function(e){var t=Vs(e);return ql(t)&&(t=n),_a(fi(e,1,ql,!0),$(t,2))}),pc=ra(function(e){var t=Vs(e);return t=typeof t==`function`?t:n,_a(fi(e,1,ql,!0),n,t)});function mc(e){return e&&e.length?_a(e):[]}function hc(e,t){return e&&e.length?_a(e,$(t,2)):[]}function gc(e,t){return t=typeof t==`function`?t:n,e&&e.length?_a(e,n,t):[]}function _c(e){if(!(e&&e.length))return[];var t=0;return e=rn(e,function(e){if(ql(e))return t=Dt(e.length,t),!0}),En(t,function(t){return sn(e,xn(t))})}function vc(e,t){if(!(e&&e.length))return[];var r=_c(e);return t==null?r:sn(r,function(e){return Qt(t,n,e)})}var yc=ra(function(e,t){return ql(e)?ai(e,t):[]}),bc=ra(function(e){return Sa(rn(e,ql))}),xc=ra(function(e){var t=Vs(e);return ql(t)&&(t=n),Sa(rn(e,ql),$(t,2))}),Sc=ra(function(e){var t=Vs(e);return t=typeof t==`function`?t:n,Sa(rn(e,ql),n,t)}),Cc=ra(_c);function wc(e,t){return Ca(e||[],t||[],qr)}function Tc(e,t){return Ca(e||[],t||[],oa)}var Ec=ra(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,vc(e,r)});function Dc(e){var t=Z(e);return t.__chain__=!0,t}function Oc(e,t){return t(e),e}function kc(e,t){return t(e)}var Ac=xo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return $r(t,e)};return t>1||this.__actions__.length||!(i instanceof dr)||!Ho(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:kc,args:[a],thisArg:n}),new ur(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function jc(){return Dc(this)}function Mc(){return new ur(this.value(),this.__chain__)}function Nc(){this.__values__===n&&(this.__values__=Ou(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Pc(){return this}function Fc(e){for(var t,r=this;r instanceof lr;){var i=gs(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 Ic(){var e=this.__wrapped__;if(e instanceof dr){var t=e;return this.__actions__.length&&(t=new dr(this)),t=t.reverse(),t.__actions__.push({func:kc,args:[Xs],thisArg:n}),new ur(t,this.__chain__)}return this.thru(Xs)}function Lc(){return xa(this.__wrapped__,this.__actions__)}var Rc=Wa(function(e,t,n){Xe.call(e,n)?++e[n]:Qr(e,n,1)});function zc(e,t,r){var i=Wl(e)?nn:ci;return r&&Uo(e,t,r)&&(t=n),i(e,$(t,3))}function Bc(e,t){return(Wl(e)?rn:di)(e,$(t,3))}var Vc=$a(Os),Hc=$a(ks);function Uc(e,t){return fi(Qc(e,t),1)}function Wc(e,t){return fi(Qc(e,t),h)}function Gc(e,t,r){return r=r===n?1:Au(r),fi(Qc(e,t),r)}function Kc(e,t){return(Wl(e)?en:oi)(e,$(t,3))}function qc(e,t){return(Wl(e)?tn:si)(e,$(t,3))}var Jc=Wa(function(e,t,n){Xe.call(e,n)?e[n].push(t):Qr(e,n,[t])});function Yc(e,t,n,r){e=Kl(e)?e:Cd(e),n=n&&!r?Au(n):0;var i=e.length;return n<0&&(n=Dt(i+n,0)),bu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&_n(e,t,n)>-1}var Xc=ra(function(e,t,n){var r=-1,i=typeof t==`function`,a=Kl(e)?X(e.length):[];return oi(e,function(e){a[++r]=i?Qt(t,e,n):Di(e,t,n)}),a}),Zc=Wa(function(e,t,n){Qr(e,n,t)});function Qc(e,t){return(Wl(e)?sn:Ui)(e,$(t,3))}function $c(e,t,r,i){return e==null?[]:(Wl(t)||(t=t==null?[]:[t]),r=i?n:r,Wl(r)||(r=r==null?[]:[r]),Yi(e,t,r))}var el=Wa(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function tl(e,t,n){var r=Wl(e)?ln:Cn,i=arguments.length<3;return r(e,$(t,4),n,i,oi)}function nl(e,t,n){var r=Wl(e)?un:Cn,i=arguments.length<3;return r(e,$(t,4),n,i,si)}function rl(e,t){return(Wl(e)?rn:di)(e,Cl($(t,3)))}function il(e){return(Wl(e)?Ur:ia)(e)}function al(e,t,r){return t=(r?Uo(e,t,r):t===n)?1:Au(t),(Wl(e)?Wr:aa)(e,t)}function ol(e){return(Wl(e)?Gr:la)(e)}function sl(e){if(e==null)return 0;if(Kl(e))return bu(e)?Yn(e):e.length;var t=No(e);return t==M||t==z?e.size:Bi(e).length}function cl(e,t,r){var i=Wl(e)?dn:da;return r&&Uo(e,t,r)&&(t=n),i(e,$(t,3))}var ll=ra(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Uo(e,t[0],t[1])?t=[]:n>2&&Uo(t[0],t[1],t[2])&&(t=[t[0]]),Yi(e,fi(t,1),[])}),ul=gt||function(){return Bt.Date.now()};function dl(e,t){if(typeof t!=`function`)throw new We(r);return e=Au(e),function(){if(--e<1)return t.apply(this,arguments)}}function fl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,mo(e,f,n,n,n,n,t)}function pl(e,t){var i;if(typeof t!=`function`)throw new We(r);return e=Au(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var ml=ra(function(e,t,n){var r=o;if(n.length){var i=Wn(n,Eo(ml));r|=u}return mo(e,r,t,n,i)}),hl=ra(function(e,t,n){var r=o|s;if(n.length){var i=Wn(n,Eo(hl));r|=u}return mo(t,r,e,n,i)});function gl(e,t,r){t=r?n:t;var i=mo(e,c,n,n,n,n,n,t);return i.placeholder=gl.placeholder,i}function _l(e,t,r){t=r?n:t;var i=mo(e,l,n,n,n,n,n,t);return i.placeholder=_l.placeholder,i}function vl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new We(r);t=Mu(t)||0,ou(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?Dt(Mu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ss(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Mt(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=ul();if(v(e))return b(e);l=ss(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&ka(l),d=0,a=u=o=l=n}function S(){return l===n?c:b(ul())}function C(){var e=ul(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return ka(l),l=ss(y,t),h(u)}return l===n&&(l=ss(y,t)),c}return C.cancel=x,C.flush=S,C}var yl=ra(function(e,t){return ii(e,1,t)}),bl=ra(function(e,t,n){return ii(e,Mu(t)||0,n)});function xl(e){return mo(e,m)}function Sl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new We(r);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(Sl.Cache||Dr),n}Sl.Cache=Dr;function Cl(e){if(typeof e!=`function`)throw new We(r);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 wl(e){return pl(2,e)}var Tl=Da(function(e,t){t=t.length==1&&Wl(t[0])?sn(t[0],kn($())):sn(fi(t,1),kn($()));var n=t.length;return ra(function(r){for(var i=-1,a=Mt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Qt(e,this,r)})}),El=ra(function(e,t){return mo(e,u,n,t,Wn(t,Eo(El)))}),Dl=ra(function(e,t){return mo(e,d,n,t,Wn(t,Eo(Dl)))}),Ol=xo(function(e,t){return mo(e,p,n,n,n,t)});function kl(e,t){if(typeof e!=`function`)throw new We(r);return t=t===n?t:Au(t),ra(e,t)}function Al(e,t){if(typeof e!=`function`)throw new We(r);return t=t==null?0:Dt(Au(t),0),ra(function(n){var r=n[t],i=Oa(n,0,t);return r&&cn(i,r),Qt(e,this,i)})}function jl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new We(r);return ou(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),vl(e,t,{leading:i,maxWait:t,trailing:a})}function Ml(e){return fl(e,1)}function Nl(e,t){return El(Ta(t),e)}function Pl(){if(!arguments.length)return[];var e=arguments[0];return Wl(e)?e:[e]}function Fl(e){return ti(e,4)}function Il(e,t){return t=typeof t==`function`?t:n,ti(e,4,t)}function Ll(e){return ti(e,5)}function Rl(e,t){return t=typeof t==`function`?t:n,ti(e,5,t)}function zl(e,t){return t==null||ri(e,t,id(t))}function Bl(e,t){return e===t||e!==e&&t!==t}var Vl=co(xi),Hl=co(function(e,t){return e>=t}),Ul=Oi(function(){return arguments}())?Oi:function(e){return su(e)&&Xe.call(e,`callee`)&&!lt.call(e,`callee`)},Wl=X.isArray,Gl=Kt?kn(Kt):ki;function Kl(e){return e!=null&&au(e.length)&&!ru(e)}function ql(e){return su(e)&&Kl(e)}function Jl(e){return e===!0||e===!1||su(e)&&bi(e)==E}var Yl=xt||jf,Xl=qt?kn(qt):Ai;function Zl(e){return su(e)&&e.nodeType===1&&!gu(e)}function Ql(e){if(e==null)return!0;if(Kl(e)&&(Wl(e)||typeof e==`string`||typeof e.splice==`function`||Yl(e)||Su(e)||Ul(e)))return!e.length;var t=No(e);if(t==M||t==z)return!e.size;if(Yo(e))return!Bi(e).length;for(var n in e)if(Xe.call(e,n))return!1;return!0}function $l(e,t){return ji(e,t)}function eu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?ji(e,t,n,r):!!i}function tu(e){if(!su(e))return!1;var t=bi(e);return t==k||t==O||typeof e.message==`string`&&typeof e.name==`string`&&!gu(e)}function nu(e){return typeof e==`number`&&wt(e)}function ru(e){if(!ou(e))return!1;var t=bi(e);return t==A||t==j||t==T||t==L}function iu(e){return typeof e==`number`&&e==Au(e)}function au(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function ou(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function su(e){return typeof e==`object`&&!!e}var cu=Jt?kn(Jt):Ni;function lu(e,t){return e===t||Pi(e,t,Oo(t))}function uu(e,t,r){return r=typeof r==`function`?r:n,Pi(e,t,Oo(t),r)}function du(e){return hu(e)&&e!=+e}function fu(e){if(Jo(e))throw new Re(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Fi(e)}function pu(e){return e===null}function mu(e){return e==null}function hu(e){return typeof e==`number`||su(e)&&bi(e)==N}function gu(e){if(!su(e)||bi(e)!=F)return!1;var t=st(e);if(t===null)return!0;var n=Xe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Ye.call(n)==et}var _u=Yt?kn(Yt):Ii;function vu(e){return iu(e)&&e>=-g&&e<=g}var yu=Xt?kn(Xt):Li;function bu(e){return typeof e==`string`||!Wl(e)&&su(e)&&bi(e)==B}function xu(e){return typeof e==`symbol`||su(e)&&bi(e)==ee}var Su=Zt?kn(Zt):Ri;function Cu(e){return e===n}function wu(e){return su(e)&&No(e)==ne}function Tu(e){return su(e)&&bi(e)==V}var Eu=co(Hi),Du=co(function(e,t){return e<=t});function Ou(e){if(!e)return[];if(Kl(e))return bu(e)?Xn(e):Ba(e);if(ft&&e[ft])return Vn(e[ft]());var t=No(e);return(t==M?Hn:t==z?Gn:Cd)(e)}function ku(e){return e?(e=Mu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Au(e){var t=ku(e),n=t%1;return t===t?n?t-n:t:0}function ju(e){return e?ei(Au(e),0,y):0}function Mu(e){if(typeof e==`number`)return e;if(xu(e))return v;if(ou(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ou(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=On(e);var n=je.test(e);return n||Ne.test(e)?Lt(e.slice(2),n?2:8):Ae.test(e)?v:+e}function Nu(e){return Va(e,ad(e))}function Pu(e){return e?ei(Au(e),-g,g):e===0?e:0}function Fu(e){return e==null?``:ga(e)}var Iu=Ga(function(e,t){if(Yo(t)||Kl(t)){Va(t,id(t),e);return}for(var n in t)Xe.call(t,n)&&qr(e,n,t[n])}),Lu=Ga(function(e,t){Va(t,ad(t),e)}),Ru=Ga(function(e,t,n,r){Va(t,ad(t),e,r)}),zu=Ga(function(e,t,n,r){Va(t,id(t),e,r)}),Bu=xo($r);function Vu(e,t){var n=cr(e);return t==null?n:Xr(n,t)}var Hu=ra(function(e,t){e=Ve(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Uo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Bl(d,qe[u])&&!Xe.call(e,u))&&(e[u]=o[u])}return e}),Uu=ra(function(e){return e.push(n,go),Qt(ld,n,e)});function Wu(e,t){return hn(e,$(t,3),hi)}function Gu(e,t){return hn(e,$(t,3),gi)}function Ku(e,t){return e==null?e:pi(e,$(t,3),ad)}function qu(e,t){return e==null?e:mi(e,$(t,3),ad)}function Ju(e,t){return e&&hi(e,$(t,3))}function Yu(e,t){return e&&gi(e,$(t,3))}function Xu(e){return e==null?[]:_i(e,id(e))}function Zu(e){return e==null?[]:_i(e,ad(e))}function Qu(e,t,r){var i=e==null?n:vi(e,t);return i===n?r:i}function $u(e,t){return e!=null&&Io(e,t,Si)}function ed(e,t){return e!=null&&Io(e,t,Ci)}var td=no(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=$e.call(t)),e[t]=n},lf(pf)),nd=no(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=$e.call(t)),Xe.call(e,t)?e[t].push(n):e[t]=[n]},$),rd=ra(Di);function id(e){return Kl(e)?Hr(e):Bi(e)}function ad(e){return Kl(e)?Hr(e,!0):Vi(e)}function od(e,t){var n={};return t=$(t,3),hi(e,function(e,r,i){Qr(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=$(t,3),hi(e,function(e,r,i){Qr(n,r,t(e,r,i))}),n}var cd=Ga(function(e,t,n){Ki(e,t,n)}),ld=Ga(function(e,t,n,r){Ki(e,t,n,r)}),ud=xo(function(e,t){var n={};if(e==null)return n;var r=!1;t=sn(t,function(t){return t=Ea(t,e),r||=t.length>1,t}),Va(e,Co(e),n),r&&(n=ti(n,7,_o));for(var i=t.length;i--;)va(n,t[i]);return n});function dd(e,t){return pd(e,Cl($(t)))}var fd=xo(function(e,t){return e==null?{}:Xi(e,t)});function pd(e,t){if(e==null)return{};var n=sn(Co(e),function(e){return[e]});return t=$(t),Zi(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Ea(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[ps(t[i])];o===n&&(i=a,o=r),e=ru(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:oa(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:oa(e,t,r,i)}var _d=po(id),vd=po(ad);function yd(e,t,n){var r=Wl(e),i=r||Yl(e)||Su(e);if(t=$(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:ou(e)&&ru(a)?cr(st(e)):{}}return(i?en:hi)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||va(e,t)}function xd(e,t,n){return e==null?e:ya(e,t,Ta(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ya(e,t,Ta(r),i)}function Cd(e){return e==null?[]:An(e,id(e))}function wd(e){return e==null?[]:An(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Mu(r),r=r===r?r:0),t!==n&&(t=Mu(t),t=t===t?t:0),ei(Mu(e),t,r)}function Ed(e,t,r){return t=ku(t),r===n?(r=t,t=0):r=ku(r),e=Mu(e),wi(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Uo(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=ku(e),t===n?(t=e,e=0):t=ku(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Ft();return Mt(e+a*(t-e+It(`1e-`+((a+``).length-1))),t)}return ta(e,t)}var Od=Xa(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Fu(e).toLowerCase())}function Ad(e){return e=Fu(e),e&&e.replace(Fe,Fn).replace(Ct,``)}function jd(e,t,r){e=Fu(e),t=ga(t);var i=e.length;r=r===n?i:ei(Au(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Fu(e),e&&K.test(e)?e.replace(he,In):e}function Nd(e){return e=Fu(e),e&&xe.test(e)?e.replace(J,`\\$&`):e}var Pd=Xa(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=Xa(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=Ya(`toLowerCase`);function Ld(e,t,n){e=Fu(e),t=Au(t);var r=t?Yn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ao(yt(i),n)+e+ao(vt(i),n)}function Rd(e,t,n){e=Fu(e),t=Au(t);var r=t?Yn(e):0;return t&&r<t?e+ao(t-r,n):e}function zd(e,t,n){e=Fu(e),t=Au(t);var r=t?Yn(e):0;return t&&r<t?ao(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,Pt(Fu(e).replace(Y,``),t||0)}function Vd(e,t,r){return t=(r?Uo(e,t,r):t===n)?1:Au(t),Q(Fu(e),t)}function Hd(){var e=arguments,t=Fu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=Xa(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Uo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Fu(e),e&&(typeof t==`string`||t!=null&&!_u(t))&&(t=ga(t),!t&&zn(e))?Oa(Xn(e),0,r):e.split(t,r)):[]}var Gd=Xa(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Fu(e),n=n==null?0:ei(Au(n),0,e.length),t=ga(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=Z.templateSettings;r&&Uo(e,t,r)&&(t=n),e=Fu(e),t=zu({},t,i,ho);var a=zu({},t.imports,i.imports,ho),o=id(a),s=An(a,o);en(o,function(e){if(Ee.test(e))throw new Re("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||Ie,f=`__p += '`,p=He((t.escape||Ie).source+`|`+d.source+`|`+(d===q?Oe:Ie).source+`|`+(t.evaluate||Ie).source+`|$`,`g`),m=`//# sourceURL=`+(Xe.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++kt+`]`)+`
868
868
  `;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(Le,Ln),n&&(c=!0,f+=`' +
@@ -881,7 +881,7 @@ __p += '`),r&&(f+=`' +
881
881
  function print() { __p += __j.call(arguments, '') }
882
882
  `:`;
883
883
  `)+f+`return __p
884
- }`;var g=af(function(){return ze(o,m+`return `+f).apply(n,s)});if(g.source=f,tu(g))throw g;return g}function Jd(e){return Fu(e).toLowerCase()}function Yd(e){return Fu(e).toUpperCase()}function Xd(e,t,r){if(e=Fu(e),e&&(r||t===n))return On(e);if(!e||!(t=ga(t)))return e;var i=Xn(e),a=Xn(t);return Oa(i,Mn(i,a),Nn(i,a)+1).join(``)}function Zd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.slice(0,Zn(e)+1);if(!e||!(t=ga(t)))return e;var i=Xn(e);return Oa(i,0,Nn(i,Xn(t))+1).join(``)}function Qd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.replace(Y,``);if(!e||!(t=ga(t)))return e;var i=Xn(e);return Oa(i,Mn(i,Xn(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(ou(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Au(t.length):r,i=`omission`in t?ga(t.omission):i}e=Fu(e);var o=e.length;if(zn(e)){var s=Xn(e);o=s.length}if(r>=o)return e;var c=r-Yn(i);if(c<1)return i;var l=s?Oa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),_u(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=He(a.source,Fu(ke.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(ga(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Fu(e),e&&G.test(e)?e.replace(me,Qn):e}var tf=Xa(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=Ya(`toUpperCase`);function rf(e,t,r){return e=Fu(e),t=r?n:t,t===n?Bn(e)?tr(e):mn(e):e.match(t)||[]}var af=ra(function(e,t){try{return Qt(e,n,t)}catch(e){return tu(e)?e:new Re(e)}}),of=xo(function(e,t){return en(t,function(t){t=ps(t),Qr(e,t,ml(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=$();return e=t?sn(e,function(e){if(typeof e[1]!=`function`)throw new We(r);return[n(e[0]),e[1]]}):[],ra(function(n){for(var r=-1;++r<t;){var i=e[r];if(Qt(i[0],this,n))return Qt(i[1],this,n)}})}function cf(e){return ni(ti(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=eo(),ff=eo(!0);function pf(e){return e}function mf(e){return zi(typeof e==`function`?e:ti(e,1))}function hf(e){return Wi(ti(e,1))}function gf(e,t){return Gi(e,ti(t,1))}var _f=ra(function(e,t){return function(n){return Di(n,e,t)}}),vf=ra(function(e,t){return function(n){return Di(e,n,t)}});function yf(e,t,n){var r=id(t),i=_i(t,r);n==null&&!(ou(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=_i(t,id(t)));var a=!(ou(n)&&`chain`in n)||!!n.chain,o=ru(e);return en(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ba(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,cn([this.value()],arguments))})}),e}function bf(){return Bt._===this&&(Bt._=tt),this}function xf(){}function Sf(e){return e=Au(e),ra(function(t){return Ji(t,e)})}var Cf=io(sn),wf=io(nn),Tf=io(dn);function Ef(e){return Wo(e)?xn(ps(e)):Qi(e)}function Df(e){return function(t){return e==null?n:vi(e,t)}}var Of=so(),kf=so(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Au(e),e<1||e>g)return[];var n=y,r=Mt(e,y);t=$(t),e-=y;for(var i=En(r,t);++n<e;)t(n);return i}function If(e){return Wl(e)?sn(e,ps):xu(e)?[e]:Ba(fs(Fu(e)))}function Lf(e){var t=++Ze;return Fu(e)+t}var Rf=ro(function(e,t){return e+t},0),zf=uo(`ceil`),Bf=ro(function(e,t){return e/t},1),Vf=uo(`floor`);function Hf(e){return e&&e.length?li(e,pf,xi):n}function Uf(e,t){return e&&e.length?li(e,$(t,2),xi):n}function Wf(e){return bn(e,pf)}function Gf(e,t){return bn(e,$(t,2))}function Kf(e){return e&&e.length?li(e,pf,Hi):n}function qf(e,t){return e&&e.length?li(e,$(t,2),Hi):n}var Jf=ro(function(e,t){return e*t},1),Yf=uo(`round`),Xf=ro(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Tn(e,pf):0}function Qf(e,t){return e&&e.length?Tn(e,$(t,2)):0}return Z.after=dl,Z.ary=fl,Z.assign=Iu,Z.assignIn=Lu,Z.assignInWith=Ru,Z.assignWith=zu,Z.at=Bu,Z.before=pl,Z.bind=ml,Z.bindAll=of,Z.bindKey=hl,Z.castArray=Pl,Z.chain=Dc,Z.chunk=_s,Z.compact=vs,Z.concat=ys,Z.cond=sf,Z.conforms=cf,Z.constant=lf,Z.countBy=Rc,Z.create=Vu,Z.curry=gl,Z.curryRight=_l,Z.debounce=vl,Z.defaults=Hu,Z.defaultsDeep=Uu,Z.defer=yl,Z.delay=bl,Z.difference=bs,Z.differenceBy=xs,Z.differenceWith=Ss,Z.drop=Cs,Z.dropRight=ws,Z.dropRightWhile=Ts,Z.dropWhile=Es,Z.fill=Ds,Z.filter=Bc,Z.flatMap=Uc,Z.flatMapDeep=Wc,Z.flatMapDepth=Gc,Z.flatten=As,Z.flattenDeep=js,Z.flattenDepth=Ms,Z.flip=xl,Z.flow=df,Z.flowRight=ff,Z.fromPairs=Ns,Z.functions=Xu,Z.functionsIn=Zu,Z.groupBy=Jc,Z.initial=Is,Z.intersection=Ls,Z.intersectionBy=Rs,Z.intersectionWith=zs,Z.invert=td,Z.invertBy=nd,Z.invokeMap=Xc,Z.iteratee=mf,Z.keyBy=Zc,Z.keys=id,Z.keysIn=ad,Z.map=Qc,Z.mapKeys=od,Z.mapValues=sd,Z.matches=hf,Z.matchesProperty=gf,Z.memoize=Sl,Z.merge=cd,Z.mergeWith=ld,Z.method=_f,Z.methodOf=vf,Z.mixin=yf,Z.negate=Cl,Z.nthArg=Sf,Z.omit=ud,Z.omitBy=dd,Z.once=wl,Z.orderBy=$c,Z.over=Cf,Z.overArgs=Tl,Z.overEvery=wf,Z.overSome=Tf,Z.partial=El,Z.partialRight=Dl,Z.partition=el,Z.pick=fd,Z.pickBy=pd,Z.property=Ef,Z.propertyOf=Df,Z.pull=Ws,Z.pullAll=Gs,Z.pullAllBy=Ks,Z.pullAllWith=qs,Z.pullAt=Js,Z.range=Of,Z.rangeRight=kf,Z.rearg=Ol,Z.reject=rl,Z.remove=Ys,Z.rest=kl,Z.reverse=Xs,Z.sampleSize=al,Z.set=hd,Z.setWith=gd,Z.shuffle=ol,Z.slice=Zs,Z.sortBy=ll,Z.sortedUniq=ic,Z.sortedUniqBy=ac,Z.split=Wd,Z.spread=Al,Z.tail=oc,Z.take=sc,Z.takeRight=cc,Z.takeRightWhile=lc,Z.takeWhile=uc,Z.tap=Oc,Z.throttle=jl,Z.thru=kc,Z.toArray=Ou,Z.toPairs=_d,Z.toPairsIn=vd,Z.toPath=If,Z.toPlainObject=Nu,Z.transform=yd,Z.unary=Ml,Z.union=dc,Z.unionBy=fc,Z.unionWith=pc,Z.uniq=mc,Z.uniqBy=hc,Z.uniqWith=gc,Z.unset=bd,Z.unzip=_c,Z.unzipWith=vc,Z.update=xd,Z.updateWith=Sd,Z.values=Cd,Z.valuesIn=wd,Z.without=yc,Z.words=rf,Z.wrap=Nl,Z.xor=bc,Z.xorBy=xc,Z.xorWith=Sc,Z.zip=Cc,Z.zipObject=wc,Z.zipObjectDeep=Tc,Z.zipWith=Ec,Z.entries=_d,Z.entriesIn=vd,Z.extend=Lu,Z.extendWith=Ru,yf(Z,Z),Z.add=Rf,Z.attempt=af,Z.camelCase=Od,Z.capitalize=kd,Z.ceil=zf,Z.clamp=Td,Z.clone=Fl,Z.cloneDeep=Ll,Z.cloneDeepWith=Rl,Z.cloneWith=Il,Z.conformsTo=zl,Z.deburr=Ad,Z.defaultTo=uf,Z.divide=Bf,Z.endsWith=jd,Z.eq=Bl,Z.escape=Md,Z.escapeRegExp=Nd,Z.every=zc,Z.find=Vc,Z.findIndex=Os,Z.findKey=Wu,Z.findLast=Hc,Z.findLastIndex=ks,Z.findLastKey=Gu,Z.floor=Vf,Z.forEach=Kc,Z.forEachRight=qc,Z.forIn=Ku,Z.forInRight=qu,Z.forOwn=Ju,Z.forOwnRight=Yu,Z.get=Qu,Z.gt=Vl,Z.gte=Hl,Z.has=$u,Z.hasIn=ed,Z.head=Ps,Z.identity=pf,Z.includes=Yc,Z.indexOf=Fs,Z.inRange=Ed,Z.invoke=rd,Z.isArguments=Ul,Z.isArray=Wl,Z.isArrayBuffer=Gl,Z.isArrayLike=Kl,Z.isArrayLikeObject=ql,Z.isBoolean=Jl,Z.isBuffer=Yl,Z.isDate=Xl,Z.isElement=Zl,Z.isEmpty=Ql,Z.isEqual=$l,Z.isEqualWith=eu,Z.isError=tu,Z.isFinite=nu,Z.isFunction=ru,Z.isInteger=iu,Z.isLength=au,Z.isMap=cu,Z.isMatch=lu,Z.isMatchWith=uu,Z.isNaN=du,Z.isNative=fu,Z.isNil=mu,Z.isNull=pu,Z.isNumber=hu,Z.isObject=ou,Z.isObjectLike=su,Z.isPlainObject=gu,Z.isRegExp=_u,Z.isSafeInteger=vu,Z.isSet=yu,Z.isString=bu,Z.isSymbol=xu,Z.isTypedArray=Su,Z.isUndefined=Cu,Z.isWeakMap=wu,Z.isWeakSet=Tu,Z.join=Bs,Z.kebabCase=Pd,Z.last=Vs,Z.lastIndexOf=Hs,Z.lowerCase=Fd,Z.lowerFirst=Id,Z.lt=Eu,Z.lte=Du,Z.max=Hf,Z.maxBy=Uf,Z.mean=Wf,Z.meanBy=Gf,Z.min=Kf,Z.minBy=qf,Z.stubArray=Af,Z.stubFalse=jf,Z.stubObject=Mf,Z.stubString=Nf,Z.stubTrue=Pf,Z.multiply=Jf,Z.nth=Us,Z.noConflict=bf,Z.noop=xf,Z.now=ul,Z.pad=Ld,Z.padEnd=Rd,Z.padStart=zd,Z.parseInt=Bd,Z.random=Dd,Z.reduce=tl,Z.reduceRight=nl,Z.repeat=Vd,Z.replace=Hd,Z.result=md,Z.round=Yf,Z.runInContext=e,Z.sample=il,Z.size=sl,Z.snakeCase=Ud,Z.some=cl,Z.sortedIndex=Qs,Z.sortedIndexBy=$s,Z.sortedIndexOf=ec,Z.sortedLastIndex=tc,Z.sortedLastIndexBy=nc,Z.sortedLastIndexOf=rc,Z.startCase=Gd,Z.startsWith=Kd,Z.subtract=Xf,Z.sum=Zf,Z.sumBy=Qf,Z.template=qd,Z.times=Ff,Z.toFinite=ku,Z.toInteger=Au,Z.toLength=ju,Z.toLower=Jd,Z.toNumber=Mu,Z.toSafeInteger=Pu,Z.toString=Fu,Z.toUpper=Yd,Z.trim=Xd,Z.trimEnd=Zd,Z.trimStart=Qd,Z.truncate=$d,Z.unescape=ef,Z.uniqueId=Lf,Z.upperCase=tf,Z.upperFirst=nf,Z.each=Kc,Z.eachRight=qc,Z.first=Ps,yf(Z,function(){var e={};return hi(Z,function(t,n){Xe.call(Z.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),Z.VERSION=`4.18.1`,en([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){Z[e].placeholder=Z}),en([`drop`,`take`],function(e,t){dr.prototype[e]=function(r){r=r===n?1:Dt(Au(r),0);var i=this.__filtered__&&!t?new dr(this):this.clone();return i.__filtered__?i.__takeCount__=Mt(r,i.__takeCount__):i.__views__.push({size:Mt(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},dr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),en([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;dr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:$(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),en([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);dr.prototype[e]=function(){return this[n](1).value()[0]}}),en([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);dr.prototype[e]=function(){return this.__filtered__?new dr(this):this[n](1)}}),dr.prototype.compact=function(){return this.filter(pf)},dr.prototype.find=function(e){return this.filter(e).head()},dr.prototype.findLast=function(e){return this.reverse().find(e)},dr.prototype.invokeMap=ra(function(e,t){return typeof e==`function`?new dr(this):this.map(function(n){return Di(n,e,t)})}),dr.prototype.reject=function(e){return this.filter(Cl($(e)))},dr.prototype.slice=function(e,t){e=Au(e);var r=this;return r.__filtered__&&(e>0||t<0)?new dr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Au(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},dr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},dr.prototype.toArray=function(){return this.take(y)},hi(dr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Z[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(Z.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof dr,l=s[0],u=c||Wl(t),d=function(e){var t=a.apply(Z,cn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new dr(this);var g=e.apply(t,s);return g.__actions__.push({func:kc,args:[d],thisArg:n}),new ur(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),en([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=Ge[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);Z.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Wl(i)?i:[],e)}return this[n](function(n){return t.apply(Wl(n)?n:[],e)})}}),hi(dr.prototype,function(e,t){var n=Z[t];if(n){var r=n.name+``;Xe.call(Sn,r)||(Sn[r]=[]),Sn[r].push({name:t,func:n})}}),Sn[to(n,s).name]=[{name:`wrapper`,func:n}],dr.prototype.clone=fr,dr.prototype.reverse=pr,dr.prototype.value=mr,Z.prototype.at=Ac,Z.prototype.chain=jc,Z.prototype.commit=Mc,Z.prototype.next=Nc,Z.prototype.plant=Fc,Z.prototype.reverse=Ic,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=Lc,Z.prototype.first=Z.prototype.head,ft&&(Z.prototype[ft]=Pc),Z})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Bt._=nr,define(function(){return nr})):Ht?((Ht.exports=nr)._=nr,Vt._=nr):Bt._=nr}).call(e)})),po=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.PhpRenderer=e.phpNameStyle=e.stringEscape=e.PhpTargetLanguage=e.phpOptions=void 0;var i=ka(),a=Ba(),o=Da(),s=aa(),c=Oa(),l=oa(),u=fa(),d=Q(),f=Ha(),p=_a(),m=r(fo());e.phpOptions={withGet:new s.BooleanOption(`with-get`,`Create Getter`,!0),fastGet:new s.BooleanOption(`fast-get`,`getter without validation`,!1),withSet:new s.BooleanOption(`with-set`,`Create Setter`,!1),withClosing:new s.BooleanOption(`with-closing`,`PHP Closing Tag`,!1),acronymStyle:(0,l.acronymOption)(l.AcronymStyleOptions.Pascal)},e.PhpTargetLanguage=class extends f.TargetLanguage{constructor(){super(`PHP`,[`php`],`php`)}getOptions(){return m.values(e.phpOptions)}get supportsUnionsWithBothNumberTypes(){return!0}makeRenderer(t,n){let r=(0,s.getOptionValues)(e.phpOptions,n);return new y(this,t,r)}get stringTypeMapping(){let e=new Map;return e.set(`date`,`date`),e.set(`time`,`time`),e.set(`uuid`,`uuid`),e.set(`date-time`,`date-time`),e}},e.stringEscape=(0,u.utf16ConcatMap)((0,u.escapeNonPrintableMapper)(u.isAscii,u.standardUnicodeHexEscape));function h(e){return e===95||(0,u.isAscii)(e)&&(0,u.isLetter)(e)}function g(e){return h(e)||(0,u.isAscii)(e)&&(0,u.isDigit)(e)}var _=(0,u.utf16LegalizeCharacters)(g);function v(e,t,n,r=u.allUpperWordStyle){let i=(0,u.splitIntoWords)(n);return(0,u.combineWords)(i,_,t?u.allUpperWordStyle:e?u.firstUpperWordStyle:u.allLowerWordStyle,t?u.allUpperWordStyle:u.firstUpperWordStyle,t||e?u.allUpperWordStyle:u.allLowerWordStyle,r,t?`_`:``,h)}e.phpNameStyle=v;var y=class extends a.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._options=n,this._gettersAndSettersForPropertyName=new Map,this._haveEmittedLeadingComments=!1,this._converterClassname=`Converter`,this._converterKeywords=[]}forbiddenForObjectProperties(e,t){return{names:[],includeGlobalForbidden:!0}}makeNamedTypeNamer(){return this.getNameStyling(`typeNamingFunction`)}namerForObjectProperty(){return this.getNameStyling(`propertyNamingFunction`)}makeUnionMemberNamer(){return this.getNameStyling(`propertyNamingFunction`)}makeEnumCaseNamer(){return this.getNameStyling(`enumCaseNamingFunction`)}unionNeedsName(e){return(0,p.nullableFromUnion)(e)===null}namedTypeToNameForTopLevel(e){return(0,p.directlyReachableSingleNamedType)(e)}makeNamesForPropertyGetterAndSetter(e,t,n,r,i){return{getter:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`get_${e(i)}`),setter:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`set_${e(i)}`),validate:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`validate_${e(i)}`),from:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`from_${e(i)}`),to:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`to_${e(i)}`),sample:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`sample_${e(i)}`)}}makePropertyDependencyNames(e,t,n,r,i){let a=this.makeNamesForPropertyGetterAndSetter(e,t,n,r,i);return this._gettersAndSettersForPropertyName.set(i,a),[a.getter,a.setter,a.validate,a.to,a.from,a.sample]}getNameStyling(e){return{typeNamingFunction:(0,o.funPrefixNamer)(`types`,e=>v(!0,!1,e,(0,l.acronymStyle)(this._options.acronymStyle))),propertyNamingFunction:(0,o.funPrefixNamer)(`properties`,e=>v(!1,!1,e,(0,l.acronymStyle)(this._options.acronymStyle))),enumCaseNamingFunction:(0,o.funPrefixNamer)(`enum-cases`,e=>v(!0,!0,e,(0,l.acronymStyle)(this._options.acronymStyle)))}[e]}startFile(e){this.ensureBlankLine(),!this._haveEmittedLeadingComments&&this.leadingComments!==void 0&&(this.emitCommentLines(this.leadingComments),this.ensureBlankLine(),this._haveEmittedLeadingComments=!0)}finishFile(){}emitFileHeader(e,t){this.startFile(e),this.emitLine(`// This is a autogenerated file:`,e),this.ensureBlankLine()}emitDescriptionBlock(e){this.emitCommentLines(e,` * `,`/**`,` */`)}emitBlock(e,t){this.emitLine(e,` {`),this.indent(t),this.emitLine(`}`)}phpType(e,t,n=!1,r=`?`,a=``){function o(e){return[n?r:``,e,n?a:``]}return(0,p.matchType)(t,e=>(0,c.maybeAnnotated)(n,i.anyTypeIssueAnnotation,`Object`),e=>(0,c.maybeAnnotated)(n,i.nullTypeIssueAnnotation,`Object`),e=>o(`bool`),e=>o(`int`),e=>o(`float`),e=>o(`string`),e=>o(`array`),e=>o(this.nameForNamedType(e)),e=>o(`stdClass`),e=>o(this.nameForNamedType(e)),e=>{let t=(0,p.nullableFromUnion)(e);return t===null?this.nameForNamedType(e):this.phpType(!0,t,!0,r,a)},e=>{if(e.kind===`time`)throw Error(`transformedStringType.kind === "time"`);if(e.kind===`date`)throw Error(`transformedStringType.kind === "date"`);if(e.kind===`date-time`)return`DateTime`;if(e.kind===`uuid`)throw Error(`transformedStringType.kind === "uuid"`);return`string`})}phpDocConvertType(e,t){return(0,p.matchType)(t,e=>`any`,e=>`null`,e=>`bool`,e=>`int`,e=>`float`,e=>`string`,t=>[this.phpDocConvertType(e,t.items),`[]`],e=>e.getCombinedName(),e=>`stdClass`,e=>this.nameForNamedType(e),t=>{let n=(0,p.nullableFromUnion)(t);if(n!==null)return[this.phpDocConvertType(e,n),`|null`];throw Error(`union are not supported`)},e=>{if(e.kind===`date-time`)return`DateTime`;throw Error(`transformedStringType.kind === "unknown"`)})}phpConvertType(e,t){return(0,p.matchType)(t,e=>`any`,e=>`null`,e=>`bool`,e=>`int`,e=>`float`,e=>`string`,e=>`array`,e=>`stdClass`,e=>`stdClass`,e=>`string`,t=>{let n=(0,p.nullableFromUnion)(t);if(n!==null)return[`?`,this.phpConvertType(e,n)];throw Error(`union are not supported`)},e=>{if(e.kind===`date-time`)return`string`;throw Error(`transformedStringType.kind === "unknown"`)})}phpToObjConvert(e,t,n,r){return(0,p.matchType)(t,e=>this.emitLine(...n,...r,`; /*any*/`),e=>this.emitLine(...n,...r,`; /*null*/`),e=>this.emitLine(...n,...r,`; /*bool*/`),e=>this.emitLine(...n,...r,`; /*int*/`),e=>this.emitLine(...n,...r,`; /*float*/`),e=>this.emitLine(...n,...r,`; /*string*/`),t=>{this.emitLine(...n,`array_map(function ($value) {`),this.indent(()=>{this.phpToObjConvert(e,t.items,[`return `],[`$value`])}),this.emitLine(`}, `,...r,`);`)},e=>this.emitLine(...n,...r,`->to(); `,`/*class*/`),t=>{this.emitBlock([`function to($my): stdClass`],()=>{this.emitLine(`$out = new stdClass();`),this.emitBlock([`foreach ($my as $k => $v)`],()=>{this.phpToObjConvert(e,t.values,[`$my->$k = `],[`$v`])}),this.emitLine(`return $out;`)}),this.emitLine(`return to(`,...r,`);`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::to(`,...r,`); `,`/*enum*/`),t=>{let i=(0,p.nullableFromUnion)(t);if(i!==null){this.emitLine(`if (!is_null(`,...r,`)) {`),this.indent(()=>this.phpToObjConvert(e,i,n,r)),this.emitLine(`} else {`),this.indent(()=>this.emitLine(...n,` null;`)),this.emitLine(`}`);return}throw Error(`union are not supported`)},e=>{if(e.kind===`date-time`){this.emitLine(...n,...r,`->format(DateTimeInterface::ISO8601);`);return}throw Error(`transformedStringType.kind === "unknown"`)})}transformDateTime(e,t,n){this.emitBlock([`if (!is_a(`,n,`, 'DateTime'))`],()=>this.emitLine(`throw new Exception('Attribute Error:`,e,`::`,t,`');`))}phpFromObjConvert(e,t,n,r){return(0,p.matchType)(t,e=>this.emitLine(...n,...r,`; /*any*/`),e=>this.emitLine(...n,...r,`; /*null*/`),e=>this.emitLine(...n,...r,`; /*bool*/`),e=>this.emitLine(...n,...r,`; /*int*/`),e=>this.emitLine(...n,...r,`; /*float*/`),e=>this.emitLine(...n,...r,`; /*string*/`),t=>{this.emitLine(...n,` array_map(function ($value) {`),this.indent(()=>{this.phpFromObjConvert(e,t.items,[`return `],[`$value`])}),this.emitLine(`}, `,...r,`);`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::from(`,...r,`); `,`/*class*/`),t=>{this.emitBlock([`function from($my): stdClass`],()=>{this.emitLine(`$out = new stdClass();`),this.emitBlock([`foreach ($my as $k => $v)`],()=>{this.phpFromObjConvert(e,t.values,[`$out->$k = `],[`$v`])}),this.emitLine(`return $out;`)}),this.emitLine(`return from(`,...r,`);`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::from(`,...r,`); `,`/*enum*/`),t=>{let i=(0,p.nullableFromUnion)(t);if(i!==null){this.emitLine(`if (!is_null(`,...r,`)) {`),this.indent(()=>this.phpFromObjConvert(e,i,n,r)),this.emitLine(`} else {`),this.indent(()=>this.emitLine(`return null;`)),this.emitLine(`}`);return}throw Error(`union are not supported`)},t=>{if(t.kind===`date-time`){this.emitLine(`$tmp = `,`DateTime::createFromFormat(DateTimeInterface::ISO8601, `,r,`);`),this.transformDateTime(e,``,[`$tmp`]),this.emitLine(`return $tmp;`);return}throw Error(`transformedStringType.kind === "unknown"`)})}phpSampleConvert(e,t,n,r,i,a){return(0,p.matchType)(t,t=>this.emitLine(...n,`'AnyType::`,e,`::`,r,`::`+i,`'`,a,`/*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,`null`,a,` /*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,`true`,a,` /*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,``+i,a,` /*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,``+(i+i/1e3),a,` /*`,``+i,`:`,r,`*/`),t=>this.emitLine(...n,`'`,e,`::`,r,`::`+i,`'`,a,` /*`,``+i,`:`,r,`*/`),t=>{this.emitLine(...n,` array(`),this.indent(()=>{this.phpSampleConvert(e,t.items,[],[],i,``)}),this.emitLine(`); /* `,``+i,`:`,r,`*/`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::sample()`,a,` /*`,``+i,`:`,r,`*/`),t=>{this.emitBlock([`function sample(): stdClass`],()=>{this.emitLine(`$out = new stdClass();`),this.phpSampleConvert(e,t.values,[`$out->{'`,e,`'} = `],r,i,`;`),this.emitLine(`return $out;`)}),this.emitLine(`return sample();`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::sample()`,a,` /*enum*/`),t=>{let o=(0,p.nullableFromUnion)(t);if(o!==null){this.phpSampleConvert(e,o,n,r,i,a);return}throw Error(`union are not supported:`+t)},e=>{if(e.kind===`date-time`){let e=m.pad(``+(1+i%31),2,`0`);this.emitLine(...n,`DateTime::createFromFormat(DateTimeInterface::ISO8601, '`,`2020-12-${e}T12:${e}:${e}+00:00`,`')`,a);return}throw Error(`transformedStringType.kind === "unknown"`)})}phpValidate(e,t,n,r){let i=(t,i=e)=>{this.emitBlock([`if (!`,t,`(`,r,`))`],()=>this.emitLine(`throw new Exception("Attribute Error:`,i,`::`,n,`");`))};return(0,p.matchType)(t,e=>i(`defined`),e=>i(`is_null`),e=>i(`is_bool`),e=>i(`is_integer`),e=>i(`is_float`),e=>i(`is_string`),t=>{i(`is_array`),this.emitLine(`array_walk(`,r,`, function(`,r,`_v) {`),this.indent(()=>{this.phpValidate(e,t.items,n,`${r}_v`)}),this.emitLine(`});`)},e=>{this.emitLine(r,`->validate();`)},t=>{this.emitLine(`foreach (`,r,` as $k => $v) {`),this.indent(()=>{this.phpValidate(e,t.values,n,`$v`)}),this.emitLine(`}`)},e=>{this.emitLine(this.phpType(!1,e),`::to(`,r,`);`)},t=>{let i=(0,p.nullableFromUnion)(t);if(i!==null){this.emitBlock([`if (!is_null(`,r,`))`],()=>{this.phpValidate(e,i,n,r)});return}throw Error(`not implemented`)},t=>{if(t.kind===`date-time`){this.transformDateTime(e,n,[r]);return}throw Error(`transformedStringType.kind === ${t.kind}`)})}emitFromMethod(e,t,n,r,i){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @param `,this.phpConvertType(n,t.type),` $value`),this.emitLine(` * @throws Exception`),this.emitLine(` * @return `,this.phpType(!1,t.type)),this.emitLine(` */`),this.emitBlock([`public static function `,e.from,`(`,this.phpConvertType(n,t.type),` $value): `,this.phpType(!1,t.type)],()=>{this.phpFromObjConvert(n,t.type,[`return `],[`$value`])})}emitToMethod(e,t,n,r,i){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @throws Exception`),this.emitLine(` * @return `,this.phpConvertType(n,t.type)),this.emitLine(` */`),this.emitBlock([`public function `,e.to,`(): `,this.phpConvertType(n,t.type)],()=>{this.emitBlock([`if (`,n,`::`,e.validate,`($this->`,r,`)) `],()=>{this.phpToObjConvert(n,t.type,[`return `],[`$this->`,r])}),this.emitLine(`throw new Exception('never get to this `,n,`::`,r,`');`)})}emitValidateMethod(e,t,n,r,i){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @param `,this.phpType(!1,t.type,!1,``,`|null`)),this.emitLine(` * @return bool`),this.emitLine(` * @throws Exception`),this.emitLine(` */`),this.emitBlock([`public static function `,e.validate,`(`,this.phpType(!1,t.type),` $value): bool`],()=>{this.phpValidate(n,t.type,r,`$value`),this.emitLine(`return true;`)})}emitGetMethod(e,t,n,r,i){if(this._options.withGet){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this._options.fastGet||this.emitLine(` * @throws Exception`);let a=this.phpType(!1,t.type);this.emitLine(` * @return `,a),this.emitLine(` */`),this.emitBlock([`public function `,e.getter,`(): `,a],()=>{this._options.fastGet?this.emitLine(`return $this->`,r,`;`):(this.emitBlock([`if (`,n,`::`,e.validate,`($this->`,r,`)) `],()=>{this.emitLine(`return $this->`,r,`;`)}),this.emitLine(`throw new Exception('never get to `,e.getter,` `,n,`::`,r,`');`))})}}emitSetMethod(e,t,n,r,i){this._options.withSet&&(this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @param `,this.phpType(!1,t.type,!1,``,`|null`)),this.emitLine(` * @throws Exception`),this.emitLine(` */`),this.emitBlock([`public function `,e.setter,`(`,this.phpType(!1,t.type),` $value)`],()=>{this.emitBlock([`if (`,n,`::`,e.validate,`($value)) `],()=>{this.emitLine(`$this->`,r,` = $value;`)})}))}emitSampleMethod(e,t,n,r,i,a){if(this._options.withGet){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`));let o=this.phpType(!1,t.type);this.emitLine(` * @return `,o),this.emitLine(` */`),this.emitBlock([`public static function `,e.sample,`(): `,o],()=>{this.phpSampleConvert(n,t.type,[`return `],[r],a,`;`)})}}emitClassDefinition(e,t){this.emitFileHeader(t,[]),this.emitBlock([`class `,t],()=>{this.forEachClassProperty(e,`none`,(e,t,n)=>{this.emitLine(`private `,this.phpType(!1,n.type),` $`,e,`; // json:`,t,` `,n.type.isNullable?`Optional`:`Required`)}),this.ensureBlankLine();let n=[],r=[],i=``;this.forEachClassProperty(e,`none`,(e,t,a)=>{r.push([i,this.phpType(!1,a.type),` $`,e]),i=`, `,n.push([` * @param `,this.phpType(!1,a.type,!1,``,`|null`),` $`,e,`
884
+ }`;var g=af(function(){return ze(o,m+`return `+f).apply(n,s)});if(g.source=f,tu(g))throw g;return g}function Jd(e){return Fu(e).toLowerCase()}function Yd(e){return Fu(e).toUpperCase()}function Xd(e,t,r){if(e=Fu(e),e&&(r||t===n))return On(e);if(!e||!(t=ga(t)))return e;var i=Xn(e),a=Xn(t);return Oa(i,Mn(i,a),Nn(i,a)+1).join(``)}function Zd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.slice(0,Zn(e)+1);if(!e||!(t=ga(t)))return e;var i=Xn(e);return Oa(i,0,Nn(i,Xn(t))+1).join(``)}function Qd(e,t,r){if(e=Fu(e),e&&(r||t===n))return e.replace(Y,``);if(!e||!(t=ga(t)))return e;var i=Xn(e);return Oa(i,Mn(i,Xn(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(ou(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Au(t.length):r,i=`omission`in t?ga(t.omission):i}e=Fu(e);var o=e.length;if(zn(e)){var s=Xn(e);o=s.length}if(r>=o)return e;var c=r-Yn(i);if(c<1)return i;var l=s?Oa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),_u(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=He(a.source,Fu(ke.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(ga(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Fu(e),e&&G.test(e)?e.replace(me,Qn):e}var tf=Xa(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=Ya(`toUpperCase`);function rf(e,t,r){return e=Fu(e),t=r?n:t,t===n?Bn(e)?tr(e):mn(e):e.match(t)||[]}var af=ra(function(e,t){try{return Qt(e,n,t)}catch(e){return tu(e)?e:new Re(e)}}),of=xo(function(e,t){return en(t,function(t){t=ps(t),Qr(e,t,ml(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=$();return e=t?sn(e,function(e){if(typeof e[1]!=`function`)throw new We(r);return[n(e[0]),e[1]]}):[],ra(function(n){for(var r=-1;++r<t;){var i=e[r];if(Qt(i[0],this,n))return Qt(i[1],this,n)}})}function cf(e){return ni(ti(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=eo(),ff=eo(!0);function pf(e){return e}function mf(e){return zi(typeof e==`function`?e:ti(e,1))}function hf(e){return Wi(ti(e,1))}function gf(e,t){return Gi(e,ti(t,1))}var _f=ra(function(e,t){return function(n){return Di(n,e,t)}}),vf=ra(function(e,t){return function(n){return Di(e,n,t)}});function yf(e,t,n){var r=id(t),i=_i(t,r);n==null&&(!ou(t)||!i.length&&r.length)&&(n=t,t=e,e=this,i=_i(t,id(t)));var a=!(ou(n)&&`chain`in n)||!!n.chain,o=ru(e);return en(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ba(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,cn([this.value()],arguments))})}),e}function bf(){return Bt._===this&&(Bt._=tt),this}function xf(){}function Sf(e){return e=Au(e),ra(function(t){return Ji(t,e)})}var Cf=io(sn),wf=io(nn),Tf=io(dn);function Ef(e){return Wo(e)?xn(ps(e)):Qi(e)}function Df(e){return function(t){return e==null?n:vi(e,t)}}var Of=so(),kf=so(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Au(e),e<1||e>g)return[];var n=y,r=Mt(e,y);t=$(t),e-=y;for(var i=En(r,t);++n<e;)t(n);return i}function If(e){return Wl(e)?sn(e,ps):xu(e)?[e]:Ba(fs(Fu(e)))}function Lf(e){var t=++Ze;return Fu(e)+t}var Rf=ro(function(e,t){return e+t},0),zf=uo(`ceil`),Bf=ro(function(e,t){return e/t},1),Vf=uo(`floor`);function Hf(e){return e&&e.length?li(e,pf,xi):n}function Uf(e,t){return e&&e.length?li(e,$(t,2),xi):n}function Wf(e){return bn(e,pf)}function Gf(e,t){return bn(e,$(t,2))}function Kf(e){return e&&e.length?li(e,pf,Hi):n}function qf(e,t){return e&&e.length?li(e,$(t,2),Hi):n}var Jf=ro(function(e,t){return e*t},1),Yf=uo(`round`),Xf=ro(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Tn(e,pf):0}function Qf(e,t){return e&&e.length?Tn(e,$(t,2)):0}return Z.after=dl,Z.ary=fl,Z.assign=Iu,Z.assignIn=Lu,Z.assignInWith=Ru,Z.assignWith=zu,Z.at=Bu,Z.before=pl,Z.bind=ml,Z.bindAll=of,Z.bindKey=hl,Z.castArray=Pl,Z.chain=Dc,Z.chunk=_s,Z.compact=vs,Z.concat=ys,Z.cond=sf,Z.conforms=cf,Z.constant=lf,Z.countBy=Rc,Z.create=Vu,Z.curry=gl,Z.curryRight=_l,Z.debounce=vl,Z.defaults=Hu,Z.defaultsDeep=Uu,Z.defer=yl,Z.delay=bl,Z.difference=bs,Z.differenceBy=xs,Z.differenceWith=Ss,Z.drop=Cs,Z.dropRight=ws,Z.dropRightWhile=Ts,Z.dropWhile=Es,Z.fill=Ds,Z.filter=Bc,Z.flatMap=Uc,Z.flatMapDeep=Wc,Z.flatMapDepth=Gc,Z.flatten=As,Z.flattenDeep=js,Z.flattenDepth=Ms,Z.flip=xl,Z.flow=df,Z.flowRight=ff,Z.fromPairs=Ns,Z.functions=Xu,Z.functionsIn=Zu,Z.groupBy=Jc,Z.initial=Is,Z.intersection=Ls,Z.intersectionBy=Rs,Z.intersectionWith=zs,Z.invert=td,Z.invertBy=nd,Z.invokeMap=Xc,Z.iteratee=mf,Z.keyBy=Zc,Z.keys=id,Z.keysIn=ad,Z.map=Qc,Z.mapKeys=od,Z.mapValues=sd,Z.matches=hf,Z.matchesProperty=gf,Z.memoize=Sl,Z.merge=cd,Z.mergeWith=ld,Z.method=_f,Z.methodOf=vf,Z.mixin=yf,Z.negate=Cl,Z.nthArg=Sf,Z.omit=ud,Z.omitBy=dd,Z.once=wl,Z.orderBy=$c,Z.over=Cf,Z.overArgs=Tl,Z.overEvery=wf,Z.overSome=Tf,Z.partial=El,Z.partialRight=Dl,Z.partition=el,Z.pick=fd,Z.pickBy=pd,Z.property=Ef,Z.propertyOf=Df,Z.pull=Ws,Z.pullAll=Gs,Z.pullAllBy=Ks,Z.pullAllWith=qs,Z.pullAt=Js,Z.range=Of,Z.rangeRight=kf,Z.rearg=Ol,Z.reject=rl,Z.remove=Ys,Z.rest=kl,Z.reverse=Xs,Z.sampleSize=al,Z.set=hd,Z.setWith=gd,Z.shuffle=ol,Z.slice=Zs,Z.sortBy=ll,Z.sortedUniq=ic,Z.sortedUniqBy=ac,Z.split=Wd,Z.spread=Al,Z.tail=oc,Z.take=sc,Z.takeRight=cc,Z.takeRightWhile=lc,Z.takeWhile=uc,Z.tap=Oc,Z.throttle=jl,Z.thru=kc,Z.toArray=Ou,Z.toPairs=_d,Z.toPairsIn=vd,Z.toPath=If,Z.toPlainObject=Nu,Z.transform=yd,Z.unary=Ml,Z.union=dc,Z.unionBy=fc,Z.unionWith=pc,Z.uniq=mc,Z.uniqBy=hc,Z.uniqWith=gc,Z.unset=bd,Z.unzip=_c,Z.unzipWith=vc,Z.update=xd,Z.updateWith=Sd,Z.values=Cd,Z.valuesIn=wd,Z.without=yc,Z.words=rf,Z.wrap=Nl,Z.xor=bc,Z.xorBy=xc,Z.xorWith=Sc,Z.zip=Cc,Z.zipObject=wc,Z.zipObjectDeep=Tc,Z.zipWith=Ec,Z.entries=_d,Z.entriesIn=vd,Z.extend=Lu,Z.extendWith=Ru,yf(Z,Z),Z.add=Rf,Z.attempt=af,Z.camelCase=Od,Z.capitalize=kd,Z.ceil=zf,Z.clamp=Td,Z.clone=Fl,Z.cloneDeep=Ll,Z.cloneDeepWith=Rl,Z.cloneWith=Il,Z.conformsTo=zl,Z.deburr=Ad,Z.defaultTo=uf,Z.divide=Bf,Z.endsWith=jd,Z.eq=Bl,Z.escape=Md,Z.escapeRegExp=Nd,Z.every=zc,Z.find=Vc,Z.findIndex=Os,Z.findKey=Wu,Z.findLast=Hc,Z.findLastIndex=ks,Z.findLastKey=Gu,Z.floor=Vf,Z.forEach=Kc,Z.forEachRight=qc,Z.forIn=Ku,Z.forInRight=qu,Z.forOwn=Ju,Z.forOwnRight=Yu,Z.get=Qu,Z.gt=Vl,Z.gte=Hl,Z.has=$u,Z.hasIn=ed,Z.head=Ps,Z.identity=pf,Z.includes=Yc,Z.indexOf=Fs,Z.inRange=Ed,Z.invoke=rd,Z.isArguments=Ul,Z.isArray=Wl,Z.isArrayBuffer=Gl,Z.isArrayLike=Kl,Z.isArrayLikeObject=ql,Z.isBoolean=Jl,Z.isBuffer=Yl,Z.isDate=Xl,Z.isElement=Zl,Z.isEmpty=Ql,Z.isEqual=$l,Z.isEqualWith=eu,Z.isError=tu,Z.isFinite=nu,Z.isFunction=ru,Z.isInteger=iu,Z.isLength=au,Z.isMap=cu,Z.isMatch=lu,Z.isMatchWith=uu,Z.isNaN=du,Z.isNative=fu,Z.isNil=mu,Z.isNull=pu,Z.isNumber=hu,Z.isObject=ou,Z.isObjectLike=su,Z.isPlainObject=gu,Z.isRegExp=_u,Z.isSafeInteger=vu,Z.isSet=yu,Z.isString=bu,Z.isSymbol=xu,Z.isTypedArray=Su,Z.isUndefined=Cu,Z.isWeakMap=wu,Z.isWeakSet=Tu,Z.join=Bs,Z.kebabCase=Pd,Z.last=Vs,Z.lastIndexOf=Hs,Z.lowerCase=Fd,Z.lowerFirst=Id,Z.lt=Eu,Z.lte=Du,Z.max=Hf,Z.maxBy=Uf,Z.mean=Wf,Z.meanBy=Gf,Z.min=Kf,Z.minBy=qf,Z.stubArray=Af,Z.stubFalse=jf,Z.stubObject=Mf,Z.stubString=Nf,Z.stubTrue=Pf,Z.multiply=Jf,Z.nth=Us,Z.noConflict=bf,Z.noop=xf,Z.now=ul,Z.pad=Ld,Z.padEnd=Rd,Z.padStart=zd,Z.parseInt=Bd,Z.random=Dd,Z.reduce=tl,Z.reduceRight=nl,Z.repeat=Vd,Z.replace=Hd,Z.result=md,Z.round=Yf,Z.runInContext=e,Z.sample=il,Z.size=sl,Z.snakeCase=Ud,Z.some=cl,Z.sortedIndex=Qs,Z.sortedIndexBy=$s,Z.sortedIndexOf=ec,Z.sortedLastIndex=tc,Z.sortedLastIndexBy=nc,Z.sortedLastIndexOf=rc,Z.startCase=Gd,Z.startsWith=Kd,Z.subtract=Xf,Z.sum=Zf,Z.sumBy=Qf,Z.template=qd,Z.times=Ff,Z.toFinite=ku,Z.toInteger=Au,Z.toLength=ju,Z.toLower=Jd,Z.toNumber=Mu,Z.toSafeInteger=Pu,Z.toString=Fu,Z.toUpper=Yd,Z.trim=Xd,Z.trimEnd=Zd,Z.trimStart=Qd,Z.truncate=$d,Z.unescape=ef,Z.uniqueId=Lf,Z.upperCase=tf,Z.upperFirst=nf,Z.each=Kc,Z.eachRight=qc,Z.first=Ps,yf(Z,function(){var e={};return hi(Z,function(t,n){Xe.call(Z.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),Z.VERSION=`4.18.1`,en([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){Z[e].placeholder=Z}),en([`drop`,`take`],function(e,t){dr.prototype[e]=function(r){r=r===n?1:Dt(Au(r),0);var i=this.__filtered__&&!t?new dr(this):this.clone();return i.__filtered__?i.__takeCount__=Mt(r,i.__takeCount__):i.__views__.push({size:Mt(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},dr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),en([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;dr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:$(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),en([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);dr.prototype[e]=function(){return this[n](1).value()[0]}}),en([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);dr.prototype[e]=function(){return this.__filtered__?new dr(this):this[n](1)}}),dr.prototype.compact=function(){return this.filter(pf)},dr.prototype.find=function(e){return this.filter(e).head()},dr.prototype.findLast=function(e){return this.reverse().find(e)},dr.prototype.invokeMap=ra(function(e,t){return typeof e==`function`?new dr(this):this.map(function(n){return Di(n,e,t)})}),dr.prototype.reject=function(e){return this.filter(Cl($(e)))},dr.prototype.slice=function(e,t){e=Au(e);var r=this;return r.__filtered__&&(e>0||t<0)?new dr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Au(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},dr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},dr.prototype.toArray=function(){return this.take(y)},hi(dr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Z[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(Z.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof dr,l=s[0],u=c||Wl(t),d=function(e){var t=a.apply(Z,cn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new dr(this);var g=e.apply(t,s);return g.__actions__.push({func:kc,args:[d],thisArg:n}),new ur(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),en([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=Ge[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);Z.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Wl(i)?i:[],e)}return this[n](function(n){return t.apply(Wl(n)?n:[],e)})}}),hi(dr.prototype,function(e,t){var n=Z[t];if(n){var r=n.name+``;Xe.call(Sn,r)||(Sn[r]=[]),Sn[r].push({name:t,func:n})}}),Sn[to(n,s).name]=[{name:`wrapper`,func:n}],dr.prototype.clone=fr,dr.prototype.reverse=pr,dr.prototype.value=mr,Z.prototype.at=Ac,Z.prototype.chain=jc,Z.prototype.commit=Mc,Z.prototype.next=Nc,Z.prototype.plant=Fc,Z.prototype.reverse=Ic,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=Lc,Z.prototype.first=Z.prototype.head,ft&&(Z.prototype[ft]=Pc),Z})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Bt._=nr,define(function(){return nr})):Ht?((Ht.exports=nr)._=nr,Vt._=nr):Bt._=nr}).call(e)})),po=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.PhpRenderer=e.phpNameStyle=e.stringEscape=e.PhpTargetLanguage=e.phpOptions=void 0;var i=ka(),a=Ba(),o=Da(),s=aa(),c=Oa(),l=oa(),u=fa(),d=Q(),f=Ha(),p=_a(),m=r(fo());e.phpOptions={withGet:new s.BooleanOption(`with-get`,`Create Getter`,!0),fastGet:new s.BooleanOption(`fast-get`,`getter without validation`,!1),withSet:new s.BooleanOption(`with-set`,`Create Setter`,!1),withClosing:new s.BooleanOption(`with-closing`,`PHP Closing Tag`,!1),acronymStyle:(0,l.acronymOption)(l.AcronymStyleOptions.Pascal)},e.PhpTargetLanguage=class extends f.TargetLanguage{constructor(){super(`PHP`,[`php`],`php`)}getOptions(){return m.values(e.phpOptions)}get supportsUnionsWithBothNumberTypes(){return!0}makeRenderer(t,n){let r=(0,s.getOptionValues)(e.phpOptions,n);return new y(this,t,r)}get stringTypeMapping(){let e=new Map;return e.set(`date`,`date`),e.set(`time`,`time`),e.set(`uuid`,`uuid`),e.set(`date-time`,`date-time`),e}},e.stringEscape=(0,u.utf16ConcatMap)((0,u.escapeNonPrintableMapper)(u.isAscii,u.standardUnicodeHexEscape));function h(e){return e===95||(0,u.isAscii)(e)&&(0,u.isLetter)(e)}function g(e){return h(e)||(0,u.isAscii)(e)&&(0,u.isDigit)(e)}var _=(0,u.utf16LegalizeCharacters)(g);function v(e,t,n,r=u.allUpperWordStyle){let i=(0,u.splitIntoWords)(n);return(0,u.combineWords)(i,_,t?u.allUpperWordStyle:e?u.firstUpperWordStyle:u.allLowerWordStyle,t?u.allUpperWordStyle:u.firstUpperWordStyle,t||e?u.allUpperWordStyle:u.allLowerWordStyle,r,t?`_`:``,h)}e.phpNameStyle=v;var y=class extends a.ConvenienceRenderer{constructor(e,t,n){super(e,t),this._options=n,this._gettersAndSettersForPropertyName=new Map,this._haveEmittedLeadingComments=!1,this._converterClassname=`Converter`,this._converterKeywords=[]}forbiddenForObjectProperties(e,t){return{names:[],includeGlobalForbidden:!0}}makeNamedTypeNamer(){return this.getNameStyling(`typeNamingFunction`)}namerForObjectProperty(){return this.getNameStyling(`propertyNamingFunction`)}makeUnionMemberNamer(){return this.getNameStyling(`propertyNamingFunction`)}makeEnumCaseNamer(){return this.getNameStyling(`enumCaseNamingFunction`)}unionNeedsName(e){return(0,p.nullableFromUnion)(e)===null}namedTypeToNameForTopLevel(e){return(0,p.directlyReachableSingleNamedType)(e)}makeNamesForPropertyGetterAndSetter(e,t,n,r,i){return{getter:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`get_${e(i)}`),setter:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`set_${e(i)}`),validate:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`validate_${e(i)}`),from:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`from_${e(i)}`),to:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`to_${e(i)}`),sample:new o.DependencyName(this.getNameStyling(`propertyNamingFunction`),i.order,e=>`sample_${e(i)}`)}}makePropertyDependencyNames(e,t,n,r,i){let a=this.makeNamesForPropertyGetterAndSetter(e,t,n,r,i);return this._gettersAndSettersForPropertyName.set(i,a),[a.getter,a.setter,a.validate,a.to,a.from,a.sample]}getNameStyling(e){return{typeNamingFunction:(0,o.funPrefixNamer)(`types`,e=>v(!0,!1,e,(0,l.acronymStyle)(this._options.acronymStyle))),propertyNamingFunction:(0,o.funPrefixNamer)(`properties`,e=>v(!1,!1,e,(0,l.acronymStyle)(this._options.acronymStyle))),enumCaseNamingFunction:(0,o.funPrefixNamer)(`enum-cases`,e=>v(!0,!0,e,(0,l.acronymStyle)(this._options.acronymStyle)))}[e]}startFile(e){this.ensureBlankLine(),!this._haveEmittedLeadingComments&&this.leadingComments!==void 0&&(this.emitCommentLines(this.leadingComments),this.ensureBlankLine(),this._haveEmittedLeadingComments=!0)}finishFile(){}emitFileHeader(e,t){this.startFile(e),this.emitLine(`// This is a autogenerated file:`,e),this.ensureBlankLine()}emitDescriptionBlock(e){this.emitCommentLines(e,` * `,`/**`,` */`)}emitBlock(e,t){this.emitLine(e,` {`),this.indent(t),this.emitLine(`}`)}phpType(e,t,n=!1,r=`?`,a=``){function o(e){return[n?r:``,e,n?a:``]}return(0,p.matchType)(t,e=>(0,c.maybeAnnotated)(n,i.anyTypeIssueAnnotation,`Object`),e=>(0,c.maybeAnnotated)(n,i.nullTypeIssueAnnotation,`Object`),e=>o(`bool`),e=>o(`int`),e=>o(`float`),e=>o(`string`),e=>o(`array`),e=>o(this.nameForNamedType(e)),e=>o(`stdClass`),e=>o(this.nameForNamedType(e)),e=>{let t=(0,p.nullableFromUnion)(e);return t===null?this.nameForNamedType(e):this.phpType(!0,t,!0,r,a)},e=>{if(e.kind===`time`)throw Error(`transformedStringType.kind === "time"`);if(e.kind===`date`)throw Error(`transformedStringType.kind === "date"`);if(e.kind===`date-time`)return`DateTime`;if(e.kind===`uuid`)throw Error(`transformedStringType.kind === "uuid"`);return`string`})}phpDocConvertType(e,t){return(0,p.matchType)(t,e=>`any`,e=>`null`,e=>`bool`,e=>`int`,e=>`float`,e=>`string`,t=>[this.phpDocConvertType(e,t.items),`[]`],e=>e.getCombinedName(),e=>`stdClass`,e=>this.nameForNamedType(e),t=>{let n=(0,p.nullableFromUnion)(t);if(n!==null)return[this.phpDocConvertType(e,n),`|null`];throw Error(`union are not supported`)},e=>{if(e.kind===`date-time`)return`DateTime`;throw Error(`transformedStringType.kind === "unknown"`)})}phpConvertType(e,t){return(0,p.matchType)(t,e=>`any`,e=>`null`,e=>`bool`,e=>`int`,e=>`float`,e=>`string`,e=>`array`,e=>`stdClass`,e=>`stdClass`,e=>`string`,t=>{let n=(0,p.nullableFromUnion)(t);if(n!==null)return[`?`,this.phpConvertType(e,n)];throw Error(`union are not supported`)},e=>{if(e.kind===`date-time`)return`string`;throw Error(`transformedStringType.kind === "unknown"`)})}phpToObjConvert(e,t,n,r){return(0,p.matchType)(t,e=>this.emitLine(...n,...r,`; /*any*/`),e=>this.emitLine(...n,...r,`; /*null*/`),e=>this.emitLine(...n,...r,`; /*bool*/`),e=>this.emitLine(...n,...r,`; /*int*/`),e=>this.emitLine(...n,...r,`; /*float*/`),e=>this.emitLine(...n,...r,`; /*string*/`),t=>{this.emitLine(...n,`array_map(function ($value) {`),this.indent(()=>{this.phpToObjConvert(e,t.items,[`return `],[`$value`])}),this.emitLine(`}, `,...r,`);`)},e=>this.emitLine(...n,...r,`->to(); `,`/*class*/`),t=>{this.emitBlock([`function to($my): stdClass`],()=>{this.emitLine(`$out = new stdClass();`),this.emitBlock([`foreach ($my as $k => $v)`],()=>{this.phpToObjConvert(e,t.values,[`$my->$k = `],[`$v`])}),this.emitLine(`return $out;`)}),this.emitLine(`return to(`,...r,`);`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::to(`,...r,`); `,`/*enum*/`),t=>{let i=(0,p.nullableFromUnion)(t);if(i!==null){this.emitLine(`if (!is_null(`,...r,`)) {`),this.indent(()=>this.phpToObjConvert(e,i,n,r)),this.emitLine(`} else {`),this.indent(()=>this.emitLine(...n,` null;`)),this.emitLine(`}`);return}throw Error(`union are not supported`)},e=>{if(e.kind===`date-time`){this.emitLine(...n,...r,`->format(DateTimeInterface::ISO8601);`);return}throw Error(`transformedStringType.kind === "unknown"`)})}transformDateTime(e,t,n){this.emitBlock([`if (!is_a(`,n,`, 'DateTime'))`],()=>this.emitLine(`throw new Exception('Attribute Error:`,e,`::`,t,`');`))}phpFromObjConvert(e,t,n,r){return(0,p.matchType)(t,e=>this.emitLine(...n,...r,`; /*any*/`),e=>this.emitLine(...n,...r,`; /*null*/`),e=>this.emitLine(...n,...r,`; /*bool*/`),e=>this.emitLine(...n,...r,`; /*int*/`),e=>this.emitLine(...n,...r,`; /*float*/`),e=>this.emitLine(...n,...r,`; /*string*/`),t=>{this.emitLine(...n,` array_map(function ($value) {`),this.indent(()=>{this.phpFromObjConvert(e,t.items,[`return `],[`$value`])}),this.emitLine(`}, `,...r,`);`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::from(`,...r,`); `,`/*class*/`),t=>{this.emitBlock([`function from($my): stdClass`],()=>{this.emitLine(`$out = new stdClass();`),this.emitBlock([`foreach ($my as $k => $v)`],()=>{this.phpFromObjConvert(e,t.values,[`$out->$k = `],[`$v`])}),this.emitLine(`return $out;`)}),this.emitLine(`return from(`,...r,`);`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::from(`,...r,`); `,`/*enum*/`),t=>{let i=(0,p.nullableFromUnion)(t);if(i!==null){this.emitLine(`if (!is_null(`,...r,`)) {`),this.indent(()=>this.phpFromObjConvert(e,i,n,r)),this.emitLine(`} else {`),this.indent(()=>this.emitLine(`return null;`)),this.emitLine(`}`);return}throw Error(`union are not supported`)},t=>{if(t.kind===`date-time`){this.emitLine(`$tmp = `,`DateTime::createFromFormat(DateTimeInterface::ISO8601, `,r,`);`),this.transformDateTime(e,``,[`$tmp`]),this.emitLine(`return $tmp;`);return}throw Error(`transformedStringType.kind === "unknown"`)})}phpSampleConvert(e,t,n,r,i,a){return(0,p.matchType)(t,t=>this.emitLine(...n,`'AnyType::`,e,`::`,r,`::`+i,`'`,a,`/*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,`null`,a,` /*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,`true`,a,` /*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,``+i,a,` /*`,``+i,`:`,r,`*/`),e=>this.emitLine(...n,``+(i+i/1e3),a,` /*`,``+i,`:`,r,`*/`),t=>this.emitLine(...n,`'`,e,`::`,r,`::`+i,`'`,a,` /*`,``+i,`:`,r,`*/`),t=>{this.emitLine(...n,` array(`),this.indent(()=>{this.phpSampleConvert(e,t.items,[],[],i,``)}),this.emitLine(`); /* `,``+i,`:`,r,`*/`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::sample()`,a,` /*`,``+i,`:`,r,`*/`),t=>{this.emitBlock([`function sample(): stdClass`],()=>{this.emitLine(`$out = new stdClass();`),this.phpSampleConvert(e,t.values,[`$out->{'`,e,`'} = `],r,i,`;`),this.emitLine(`return $out;`)}),this.emitLine(`return sample();`)},e=>this.emitLine(...n,this.nameForNamedType(e),`::sample()`,a,` /*enum*/`),t=>{let o=(0,p.nullableFromUnion)(t);if(o!==null){this.phpSampleConvert(e,o,n,r,i,a);return}throw Error(`union are not supported:`+t)},e=>{if(e.kind===`date-time`){let e=m.pad(``+(1+i%31),2,`0`);this.emitLine(...n,`DateTime::createFromFormat(DateTimeInterface::ISO8601, '`,`2020-12-${e}T12:${e}:${e}+00:00`,`')`,a);return}throw Error(`transformedStringType.kind === "unknown"`)})}phpValidate(e,t,n,r){let i=(t,i=e)=>{this.emitBlock([`if (!`,t,`(`,r,`))`],()=>this.emitLine(`throw new Exception("Attribute Error:`,i,`::`,n,`");`))};return(0,p.matchType)(t,e=>i(`defined`),e=>i(`is_null`),e=>i(`is_bool`),e=>i(`is_integer`),e=>i(`is_float`),e=>i(`is_string`),t=>{i(`is_array`),this.emitLine(`array_walk(`,r,`, function(`,r,`_v) {`),this.indent(()=>{this.phpValidate(e,t.items,n,`${r}_v`)}),this.emitLine(`});`)},e=>{this.emitLine(r,`->validate();`)},t=>{this.emitLine(`foreach (`,r,` as $k => $v) {`),this.indent(()=>{this.phpValidate(e,t.values,n,`$v`)}),this.emitLine(`}`)},e=>{this.emitLine(this.phpType(!1,e),`::to(`,r,`);`)},t=>{let i=(0,p.nullableFromUnion)(t);if(i!==null){this.emitBlock([`if (!is_null(`,r,`))`],()=>{this.phpValidate(e,i,n,r)});return}throw Error(`not implemented`)},t=>{if(t.kind===`date-time`){this.transformDateTime(e,n,[r]);return}throw Error(`transformedStringType.kind === ${t.kind}`)})}emitFromMethod(e,t,n,r,i){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @param `,this.phpConvertType(n,t.type),` $value`),this.emitLine(` * @throws Exception`),this.emitLine(` * @return `,this.phpType(!1,t.type)),this.emitLine(` */`),this.emitBlock([`public static function `,e.from,`(`,this.phpConvertType(n,t.type),` $value): `,this.phpType(!1,t.type)],()=>{this.phpFromObjConvert(n,t.type,[`return `],[`$value`])})}emitToMethod(e,t,n,r,i){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @throws Exception`),this.emitLine(` * @return `,this.phpConvertType(n,t.type)),this.emitLine(` */`),this.emitBlock([`public function `,e.to,`(): `,this.phpConvertType(n,t.type)],()=>{this.emitBlock([`if (`,n,`::`,e.validate,`($this->`,r,`)) `],()=>{this.phpToObjConvert(n,t.type,[`return `],[`$this->`,r])}),this.emitLine(`throw new Exception('never get to this `,n,`::`,r,`');`)})}emitValidateMethod(e,t,n,r,i){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @param `,this.phpType(!1,t.type,!1,``,`|null`)),this.emitLine(` * @return bool`),this.emitLine(` * @throws Exception`),this.emitLine(` */`),this.emitBlock([`public static function `,e.validate,`(`,this.phpType(!1,t.type),` $value): bool`],()=>{this.phpValidate(n,t.type,r,`$value`),this.emitLine(`return true;`)})}emitGetMethod(e,t,n,r,i){if(this._options.withGet){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this._options.fastGet||this.emitLine(` * @throws Exception`);let a=this.phpType(!1,t.type);this.emitLine(` * @return `,a),this.emitLine(` */`),this.emitBlock([`public function `,e.getter,`(): `,a],()=>{this._options.fastGet?this.emitLine(`return $this->`,r,`;`):(this.emitBlock([`if (`,n,`::`,e.validate,`($this->`,r,`)) `],()=>{this.emitLine(`return $this->`,r,`;`)}),this.emitLine(`throw new Exception('never get to `,e.getter,` `,n,`::`,r,`');`))})}}emitSetMethod(e,t,n,r,i){this._options.withSet&&(this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`)),this.emitLine(` * @param `,this.phpType(!1,t.type,!1,``,`|null`)),this.emitLine(` * @throws Exception`),this.emitLine(` */`),this.emitBlock([`public function `,e.setter,`(`,this.phpType(!1,t.type),` $value)`],()=>{this.emitBlock([`if (`,n,`::`,e.validate,`($value)) `],()=>{this.emitLine(`$this->`,r,` = $value;`)})}))}emitSampleMethod(e,t,n,r,i,a){if(this._options.withGet){this.emitLine(`/**`),i!==void 0&&(this.emitLine(` * `,i),this.emitLine(` *`));let o=this.phpType(!1,t.type);this.emitLine(` * @return `,o),this.emitLine(` */`),this.emitBlock([`public static function `,e.sample,`(): `,o],()=>{this.phpSampleConvert(n,t.type,[`return `],[r],a,`;`)})}}emitClassDefinition(e,t){this.emitFileHeader(t,[]),this.emitBlock([`class `,t],()=>{this.forEachClassProperty(e,`none`,(e,t,n)=>{this.emitLine(`private `,this.phpType(!1,n.type),` $`,e,`; // json:`,t,` `,n.type.isNullable?`Optional`:`Required`)}),this.ensureBlankLine();let n=[],r=[],i=``;this.forEachClassProperty(e,`none`,(e,t,a)=>{r.push([i,this.phpType(!1,a.type),` $`,e]),i=`, `,n.push([` * @param `,this.phpType(!1,a.type,!1,``,`|null`),` $`,e,`
885
885
  `])}),this.emitBlock([`/**
886
886
  `,...n,` */
887
887
  `,`public function __construct(`,...r,`)`],()=>{this.forEachClassProperty(e,`none`,e=>{this.emitLine(`$this->`,e,` = $`,e,`;`)})});let a=31;this.forEachClassProperty(e,`leading-and-interposing`,(n,r,i)=>{let o=this.descriptionForClassProperty(e,r),s=(0,d.defined)(this._gettersAndSettersForPropertyName.get(n));this.ensureBlankLine(),this.emitFromMethod(s,i,t,n,o),this.ensureBlankLine(),this.emitToMethod(s,i,t,n,o),this.ensureBlankLine(),this.emitValidateMethod(s,i,t,n,o),this.ensureBlankLine(),this.emitGetMethod(s,i,t,n,o),this.ensureBlankLine(),this.emitSetMethod(s,i,t,n,o),this.ensureBlankLine(),this.emitSampleMethod(s,i,t,n,o,a++)}),this.ensureBlankLine(),this.emitBlock([`/**
@@ -921,9 +921,9 @@ 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})),jo=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}})),Mo=i((e=>{var t=sa(),n=jo(),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(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(W(e,SharedArrayBuffer)||e&&W(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(W(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`||me(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(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(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(W(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)||W(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 F(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 I(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||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(W(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,me(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(me(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return pe(le(t,e.length-n),e,n,r)}function E(e,t,n,r){return pe(ue(t),e,n,r)}function D(e,t,n,r){return pe(fe(t),e,n,r)}function O(e,t,n,r){return pe(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 F(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+=he[e[r]];return i}function I(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 L(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||L(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||L(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||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(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||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t+this[++e]*256+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*256+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*256+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*256+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(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||L(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||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(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||L(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||L(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||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=this[e+4]+this[e+5]*256+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*256+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*256+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(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;R(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;R(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||R(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||R(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||R(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||R(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||R(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 z(e,t,n,r,i){U(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 B(e,t,n,r,i){U(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=G(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=G(function(e,t=0){return B(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);R(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);R(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||R(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||R(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||R(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||R(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||R(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=G(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=G(function(e,t=0){return B(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function ee(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function te(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return te(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return te(this,e,t,!1,n)};function ne(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ne(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 V={};function H(e,t,n){V[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}`}}}H(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),H(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),H(`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=re(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=re(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function re(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 ie(e,t,n){ae(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&oe(t,e.length-(n+1))}function U(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 V.ERR_OUT_OF_RANGE(`value`,i,e)}ie(r,i,a)}function ae(e,t){if(typeof e!=`number`)throw new V.ERR_INVALID_ARG_TYPE(t,`number`,e)}function oe(e,t,n){throw Math.floor(e)===e?t<0?new V.ERR_BUFFER_OUT_OF_BOUNDS:new V.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(ae(e,n),new V.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}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 pe(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 W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function me(e){return e!==e}var he=(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 G(e){return typeof BigInt>`u`?K:e}function K(){throw Error(`BigInt not supported`)}})),No=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}})),Po=i(((e,t)=>{var n=Mo(),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`)})),Fo=r({default:()=>Io}),Io,Lo=n((()=>{Io=Object.freeze(Object.create(null,{__mock__:{get:()=>!0}}))})),Ro=i(((e,t)=>{var{format:n,inspect:r,AggregateError:i}=Po(),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`}}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}})),zo=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}=No(),{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}}=Ro(),{normalizeEncoding:S}=Po(),{isAsyncFunction:C,isArrayBufferView:w}=Po().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 F(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 I=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 L(e,t){if(typeof e!=`boolean`)throw new v(t,`boolean`,e)}function R(e,t,n){return e==null||!d(e,t)?n:e[t]}var z=g((e,t,r=null)=>{let i=R(r,`allowArray`,!1),a=R(r,`allowFunction`,!1);if(!R(r,`nullable`,!1)&&e===null||!i&&n(e)||typeof e!=`object`&&(!a||typeof e!=`function`))throw new v(t,`Object`,e)}),B=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 ee(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 te=g((e,t=`buffer`)=>{if(!w(e))throw new v(t,[`Buffer`,`TypedArray`,`DataView`],e)});function ne(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 V(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 H=g((e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new v(t,`AbortSignal`,e)}),re=g((e,t)=>{if(typeof e!=`function`)throw new v(t,`Function`,e)}),ie=g((e,t)=>{if(typeof e!=`function`||C(e))throw new v(t,`Function`,e)}),U=g((e,t)=>{if(e!==void 0)throw new v(t,`undefined`,e)});function ae(e,t,n){if(!r(n,e))throw new v(t,`('${i(n,`|`)}')`,e)}t.exports={isInt32:E,isUint32:D,parseFileMode:A,validateArray:B,validateBoolean:L,validateBuffer:te,validateEncoding:ne,validateFunction:re,validateInt32:M,validateInteger:j,validateNumber:F,validateObject:z,validateOneOf:I,validatePlainFunction:ie,validatePort:V,validateSignalName:ee,validateString:P,validateUint32:N,validateUndefined:U,validateUnion:ae,validateAbortSignal:H}})),Bo=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}})),Vo=i(((e,t)=>{var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i}=No(),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)&&l(e)&&e.readable&&!v(e):null}function b(e){return typeof e?.writable==`boolean`?!m(e)&&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}})),Ho=i(((e,t)=>{var n=Bo(),{AbortError:r,codes:i}=Ro(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:c}=Po(),{validateAbortSignal:l,validateFunction:u,validateObject:d}=zo(),{Promise:f}=No(),{isClosed:p,isReadable:m,isReadableNodeStream:h,isReadableFinished:g,isReadableErrored:_,isWritable:v,isWritableNodeStream:y,isWritableFinished:b,isWritableErrored:x,isNodeStream:S,willEmitClose:C}=Vo();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)},F=t=>{i.call(e,t)},I=p(e),L=()=>{I=!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)},R=()=>{e.req.on(`finish`,M)};w(e)?(e.on(`complete`,M),A||e.on(`abort`,L),e.req?R():e.on(`request`,R)):E&&!D&&(e.on(`end`,k),e.on(`close`,k)),!A&&typeof e.aborted==`boolean`&&e.on(`aborted`,L),e.on(`end`,P),e.on(`finish`,M),t.error!==!1&&e.on(`error`,F),e.on(`close`,L),I?n.nextTick(L):D!=null&&D.errorEmitted||O!=null&&O.errorEmitted?A||n.nextTick(L):(!f&&(!A||m(e))&&(j||v(e)===!1)||!E&&(!A||v(e))&&(N||m(e)===!1)||O&&e.req&&e.aborted)&&n.nextTick(L);let z=()=>{i=T,e.removeListener(`aborted`,L),e.removeListener(`complete`,M),e.removeListener(`abort`,L),e.removeListener(`request`,R),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`,F),e.removeListener(`close`,L)};if(t.signal&&!I){let a=()=>{let n=i;z(),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 z}function D(e,t){return new f((n,r)=>{E(e,t,e=>{e?r(e):n()})})}t.exports=E,t.exports.finished=D})),Uo=i(((t,n)=>{var r=globalThis.AbortController||(Lo(),e(Fo)).AbortController,{codes:{ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Ro(),{validateAbortSignal:c,validateInteger:l,validateObject:u}=zo(),d=No().Symbol(`kWeak`),{finished:f}=Ho(),{ArrayPrototypePush:p,MathFloor:m,Number:h,NumberIsNaN:g,Promise:_,PromiseReject:v,PromisePrototypeThen:y,Symbol:b}=No(),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 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;e--<=0&&(yield n)}}.call(this)}function I(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:F,filter:k,flatMap:N,map:C,take:I},n.exports.promiseReturningOperators={every:E,forEach:O,reduce:j,toArray:M,some:T,find:D}})),Wo=i(((e,t)=>{var n=Bo(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Ro(),{Symbol:o}=No(),{kDestroyed:s,isDestroyed:c,isFinished:l,isServerRequest:u}=Vo(),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}})),Go=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)}})),Ko=i(((e,t)=>{var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=No(),{EventEmitter:i}=Go();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}})),qo=i(((e,t)=>{var{AbortError:n,codes:r}=Ro(),i=Ho(),{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}})),Jo=i(((e,t)=>{var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=No(),{Buffer:o}=Mo(),{inspect:s}=Po();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.head=this.length===1?this.tail=null: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,this.head=r.next?r.next: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,this.head=r.next?r.next: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})}}})),Yo=i(((e,t)=>{var{MathFloor:n,NumberIsInteger:r}=No(),{ERR_INVALID_ARG_VALUE:i}=Ro().codes;function a(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function o(e){return e?16:16384}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}})),Xo=i(((e,t)=>{var n=Mo(),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)}})),Zo=i((e=>{var t=Xo().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):``}})),Qo=i(((e,t)=>{var n=Bo(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=No(),{Buffer:o}=Mo(),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:c}=Ro().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})),$o=i(((e,t)=>{var n=Bo(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:c,ObjectSetPrototypeOf:l,Promise:u,SafeSet:d,SymbolAsyncIterator:f,Symbol:p}=No();t.exports=R,R.ReadableState=L;var{EventEmitter:m}=Go(),{Stream:h,prependListener:g}=Ko(),{Buffer:_}=Mo(),{addAbortSignal:v}=qo(),y=Ho(),b=Po().debuglog(`stream`,e=>{b=e}),x=Jo(),S=Wo(),{getHighWaterMark:C,getDefaultHighWaterMark:w}=Yo(),{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}}=Ro(),{validateObject:j}=zo(),M=p(`kPaused`),{StringDecoder:N}=Zo(),P=Qo();l(R.prototype,h.prototype),l(R,h);var F=()=>{},{errorOrDestroy:I}=S;function L(e,t,n){typeof n!=`boolean`&&(n=t instanceof ns()),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 R(e){if(!(this instanceof R))return new R(e);let t=this instanceof ns();this._readableState=new L(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&&ie(this,this._readableState)})}R.prototype.destroy=S.destroy,R.prototype._undestroy=S.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype[m.captureRejectionSymbol]=function(e){this.destroy(e)},R.prototype.push=function(e,t){return z(this,e,t,!1)},R.prototype.unshift=function(e,t){return z(this,e,t,!0)};function z(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)I(e,a);else if(t===null)i.reading=!1,V(e,i);else if(i.objectMode||t&&t.length>0){if(r){if(i.endEmitted)I(e,new A);else if(i.destroyed||i.errored)return!1;else B(e,i,t,!0)}else if(i.ended)I(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?B(e,i,t,!1):ie(e,i)):B(e,i,t,!1)}else r||(i.reading=!1,ie(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function B(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&&H(e)),ie(e,t)}R.prototype.isPaused=function(){let e=this._readableState;return e[M]===!0||e.flowing===!1},R.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 ee=1073741824;function te(e){if(e>ee)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 ne(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}R.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=te(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?W(this):H(this),null;if(e=ne(e,t),e===0&&t.ended)return t.length===0&&W(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){I(this,e)}t.sync=!1,t.reading||(e=ne(n,t))}let a;return a=e>0?pe(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&&W(this)),a!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(`data`,a)),a};function V(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?H(e):(t.needReadable=!1,t.emittedReadable=!0,re(e))}}function H(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(re,e))}function re(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 ie(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(U,e,t))}function U(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}R.prototype._read=function(e){throw new D(`_read()`)},R.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=ae(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?I(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 ae(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()}}R.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)},R.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?H(this):i.reading||n.nextTick(se,this)),r},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,t){let r=h.prototype.removeListener.call(this,e,t);return e===`readable`&&n.nextTick(oe,this),r},R.prototype.off=R.prototype.removeListener,R.prototype.removeAllListeners=function(e){let t=h.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&n.nextTick(oe,this),t};function oe(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)}R.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)}R.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;);}R.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=>{I(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},R.prototype[f]=function(){return de(this)},R.prototype.iterator=function(e){return e!==void 0&&j(e,`options`),de(this,e)};function de(e,t){typeof e.read!=`function`&&(e=R.wrap(e,{objectMode:!0}));let n=fe(e,t);return n.stream=e,n}async function*fe(e,t){let n=F;function r(t){this===e?(n(),n=F):n=t}e.on(`readable`,r);let i,a=y(e,{writable:!1},e=>{i=e?T(i,e):null,n(),n=F});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(R.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(L.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[M]!==!1},set(e){this[M]=!!e}}}),R._fromList=pe;function pe(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 W(e){let t=e._readableState;b(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(me,t,e))}function me(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(he,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&t.destroy()}}}function he(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}R.from=function(e,t){return P(R,e,t)};var G;function K(){return G===void 0&&(G={}),G}R.fromWeb=function(e,t){return K().newStreamReadableFromReadableStream(e,t)},R.toWeb=function(e,t){return K().newReadableStreamFromStreamReadable(e,t)},R.wrap=function(e,t){return new R({objectMode:e.readableObjectMode??e.objectMode??!0,...t,destroy(t,n){S.destroyer(e,t),n(t)}}).wrap(e)}})),es=i(((e,t)=>{var n=Bo(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:l,Symbol:u,SymbolHasInstance:d}=No();t.exports=N,N.WritableState=j;var{EventEmitter:f}=Go(),p=Ko().Stream,{Buffer:m}=Mo(),h=Wo(),{addAbortSignal:g}=qo(),{getHighWaterMark:_,getDefaultHighWaterMark:v}=Yo(),{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}=Ro().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 ns()),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=R.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 ns();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||te(this,e),re(this,e)})}o(N,d,{__proto__:null,value:function(e){return a(this,e)?!0:this===N&&e&&e._writableState instanceof j}}),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++,F(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||te(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 F(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 I(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 L(e,t,n,r){--t.pendingcb,r(n),ee(t),O(e,n)}function R(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(L,e,r,t,a):L(e,r,t,a)):(r.buffered.length>r.bufferedIndex&&te(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(z,r.afterWriteTickInfo)):B(e,r,1,a))}function z({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,B(e,t,n,r)}function B(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&&ee(t),re(e,t)}function ee(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 te(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,I(e,t,!0,t.length,a,``,i),M(t)}else{do{let{chunk:r,encoding:i,callback:o}=n[s];n[s++]=null,I(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,re(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 ne(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 V(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 ne(t)&&(t.prefinished=!0,e.emit(`prefinish`),t.pendingcb++,n.nextTick(ie,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}function H(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.finalCalled=!0,V(e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function re(e,t,r){ne(t)&&(H(e,t),t.pendingcb===0&&(r?(t.pendingcb++,n.nextTick((e,t)=>{ne(t)?ie(e,t):t.pendingcb--},e,t)):ne(t)&&(t.pendingcb++,ie(e,t))))}function ie(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 U=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(ee,r),U.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 ae;function oe(){return ae===void 0&&(ae={}),ae}N.fromWeb=function(e,t){return oe().newStreamWritableFromWritableStream(e,t)},N.toWeb=function(e){return oe().newWritableStreamFromStreamWritable(e)}})),ts=i(((t,n)=>{var r=Bo(),i=Mo(),{isReadable:a,isWritable:o,isIterable:s,isNodeStream:c,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:d}=Vo(),f=Ho(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:h}}=Ro(),{destroyer:g}=Wo(),_=ns(),v=$o(),{createDeferredPromise:y}=Po(),b=Qo(),x=globalThis.Blob||i.Blob,S=x===void 0?function(e){return!1}:function(e){return e instanceof x},C=globalThis.AbortController||(Lo(),e(Fo)).AbortController,{FunctionPrototypeCall:w}=No(),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}})),ns=i(((e,t)=>{var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=No();t.exports=c;var o=$o(),s=es();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||=ts(),d(e,`body`)}})),rs=i(((e,t)=>{var{ObjectSetPrototypeOf:n,Symbol:r}=No();t.exports=c;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Ro().codes,a=ns(),{getHighWaterMark:o}=Yo();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()}}})),is=i(((e,t)=>{var{ObjectSetPrototypeOf:n}=No();t.exports=i;var r=rs();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)}})),as=i(((t,n)=>{var r=Bo(),{ArrayIsArray:i,Promise:a,SymbolAsyncIterator:o}=No(),s=Ho(),{once:c}=Po(),l=Wo(),u=ns(),{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:_}=Ro(),{validateFunction:v,validateAbortSignal:y}=zo(),{isIterable:b,isReadable:x,isReadableNodeStream:S,isNodeStream:C}=Vo(),w=globalThis.AbortController||(Lo(),e(Fo)).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||=$o(),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||=is();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}})),os=i(((e,t)=>{var{pipeline:n}=as(),r=ns(),{destroyer:i}=Wo(),{isNodeStream:a,isReadable:o,isWritable:s}=Vo(),{AbortError:c,codes:{ERR_INVALID_ARG_VALUE:l,ERR_MISSING_ARGS:u}}=Ro();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}})),ss=i(((e,t)=>{var{ArrayPrototypePop:n,Promise:r}=No(),{isIterable:i,isNodeStream:a}=Vo(),{pipelineImpl:o}=as(),{finished:s}=Ho();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}})),cs=i(((e,t)=>{var{Buffer:n}=Mo(),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=No(),{promisify:{custom:o}}=Po(),{streamReturningOperators:s,promiseReturningOperators:c}=Uo(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=Ro(),u=os(),{pipeline:d}=as(),{destroyer:f}=Wo(),p=Ho(),m=ss(),h=Vo(),g=t.exports=Ko().Stream;g.isDisturbed=h.isDisturbed,g.isErrored=h.isErrored,g.isReadable=h.isReadable,g.Readable=$o();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=es(),g.Duplex=ns(),g.Transform=rs(),g.PassThrough=is(),g.pipeline=d;var{addAbortSignal:_}=qo();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)}})),ls=i(((e,t)=>{var n=cs(),r=ss(),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})),us=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=ls();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})),ds=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(us());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})),fs=i(((e,t)=>{t.exports={}})),ps=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})),ms=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}}})),hs=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&&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 _=ms();Object.defineProperty(e,"DefaultMap",{enumerable:!0,get:function(){return _.DefaultMap}})})),gs=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}})),_s=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()||``)};e.status=l.url.indexOf(`file://`)===0&&(d.status<200||d.status>599)?200: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})),vs=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(fs()),s=ps(),c=ds(),l=hs(),u=xs(),d=gs(),f=a(_s());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)}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})),ys=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=Ma(),r=xs(),i=vs();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)})}}})),bs=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})),jo=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}})),Mo=i((e=>{var t=sa(),n=jo(),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(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(W(e,SharedArrayBuffer)||e&&W(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(W(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`||me(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(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(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(W(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)||W(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 F(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 I(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||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(W(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,me(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=0;for(;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(me(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return pe(le(t,e.length-n),e,n,r)}function E(e,t,n,r){return pe(ue(t),e,n,r)}function D(e,t,n,r){return pe(fe(t),e,n,r)}function O(e,t,n,r){return pe(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 F(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+=he[e[r]];return i}function I(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 L(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||L(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||L(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||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(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||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t+this[++e]*256+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*256+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*256+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*256+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(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||L(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||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(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||L(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||L(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||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=this[e+4]+this[e+5]*256+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=G(function(e){e>>>=0,ae(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&oe(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*256+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*256+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(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;R(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;R(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||R(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||R(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||R(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||R(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||R(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 z(e,t,n,r,i){U(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 B(e,t,n,r,i){U(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=G(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=G(function(e,t=0){return B(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);R(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);R(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||R(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||R(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||R(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||R(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||R(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=G(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=G(function(e,t=0){return B(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function ee(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function te(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return te(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return te(this,e,t,!1,n)};function ne(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ne(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 V={};function H(e,t,n){V[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}`}}}H(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),H(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),H(`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=re(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=re(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function re(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 ie(e,t,n){ae(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&oe(t,e.length-(n+1))}function U(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 V.ERR_OUT_OF_RANGE(`value`,i,e)}ie(r,i,a)}function ae(e,t){if(typeof e!=`number`)throw new V.ERR_INVALID_ARG_TYPE(t,`number`,e)}function oe(e,t,n){throw Math.floor(e)===e?t<0?new V.ERR_BUFFER_OUT_OF_BOUNDS:new V.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(ae(e,n),new V.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}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 pe(e,t,n,r){let i=0;for(;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function me(e){return e!==e}var he=(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 G(e){return typeof BigInt>`u`?K:e}function K(){throw Error(`BigInt not supported`)}})),No=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}})),Po=i(((e,t)=>{var n=Mo(),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`)})),Fo=r({default:()=>Io}),Io,Lo=n((()=>{Io=Object.freeze(Object.create(null,{__mock__:{get:()=>!0}}))})),Ro=i(((e,t)=>{var{format:n,inspect:r,AggregateError:i}=Po(),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`}}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}})),zo=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}=No(),{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}}=Ro(),{normalizeEncoding:S}=Po(),{isAsyncFunction:C,isArrayBufferView:w}=Po().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 F(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 I=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 L(e,t){if(typeof e!=`boolean`)throw new v(t,`boolean`,e)}function R(e,t,n){return e==null||!d(e,t)?n:e[t]}var z=g((e,t,r=null)=>{let i=R(r,`allowArray`,!1),a=R(r,`allowFunction`,!1);if(!R(r,`nullable`,!1)&&e===null||!i&&n(e)||typeof e!=`object`&&(!a||typeof e!=`function`))throw new v(t,`Object`,e)}),B=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 ee(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 te=g((e,t=`buffer`)=>{if(!w(e))throw new v(t,[`Buffer`,`TypedArray`,`DataView`],e)});function ne(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 V(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 H=g((e,t)=>{if(e!==void 0&&(typeof e!=`object`||!e||!(`aborted`in e)))throw new v(t,`AbortSignal`,e)}),re=g((e,t)=>{if(typeof e!=`function`)throw new v(t,`Function`,e)}),ie=g((e,t)=>{if(typeof e!=`function`||C(e))throw new v(t,`Function`,e)}),U=g((e,t)=>{if(e!==void 0)throw new v(t,`undefined`,e)});function ae(e,t,n){if(!r(n,e))throw new v(t,`('${i(n,`|`)}')`,e)}t.exports={isInt32:E,isUint32:D,parseFileMode:A,validateArray:B,validateBoolean:L,validateBuffer:te,validateEncoding:ne,validateFunction:re,validateInt32:M,validateInteger:j,validateNumber:F,validateObject:z,validateOneOf:I,validatePlainFunction:ie,validatePort:V,validateSignalName:ee,validateString:P,validateUint32:N,validateUndefined:U,validateUnion:ae,validateAbortSignal:H}})),Bo=i(((e,t)=>{t.exports={}})),Vo=i(((e,t)=>{var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i}=No(),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)&&l(e)&&e.readable&&!v(e):null}function b(e){return typeof e?.writable==`boolean`?!m(e)&&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}})),Ho=i(((e,t)=>{var n=Bo(),{AbortError:r,codes:i}=Ro(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:o}=i,{kEmptyObject:s,once:c}=Po(),{validateAbortSignal:l,validateFunction:u,validateObject:d}=zo(),{Promise:f}=No(),{isClosed:p,isReadable:m,isReadableNodeStream:h,isReadableFinished:g,isReadableErrored:_,isWritable:v,isWritableNodeStream:y,isWritableFinished:b,isWritableErrored:x,isNodeStream:S,willEmitClose:C}=Vo();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)},F=t=>{i.call(e,t)},I=p(e),L=()=>{I=!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)},R=()=>{e.req.on(`finish`,M)};w(e)?(e.on(`complete`,M),A||e.on(`abort`,L),e.req?R():e.on(`request`,R)):E&&!D&&(e.on(`end`,k),e.on(`close`,k)),!A&&typeof e.aborted==`boolean`&&e.on(`aborted`,L),e.on(`end`,P),e.on(`finish`,M),t.error!==!1&&e.on(`error`,F),e.on(`close`,L),I?n.nextTick(L):D!=null&&D.errorEmitted||O!=null&&O.errorEmitted?A||n.nextTick(L):(!f&&(!A||m(e))&&(j||v(e)===!1)||!E&&(!A||v(e))&&(N||m(e)===!1)||O&&e.req&&e.aborted)&&n.nextTick(L);let z=()=>{i=T,e.removeListener(`aborted`,L),e.removeListener(`complete`,M),e.removeListener(`abort`,L),e.removeListener(`request`,R),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`,F),e.removeListener(`close`,L)};if(t.signal&&!I){let a=()=>{let n=i;z(),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 z}function D(e,t){return new f((n,r)=>{E(e,t,e=>{e?r(e):n()})})}t.exports=E,t.exports.finished=D})),Uo=i(((t,n)=>{var r=globalThis.AbortController||(Lo(),e(Fo)).AbortController,{codes:{ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:o},AbortError:s}=Ro(),{validateAbortSignal:c,validateInteger:l,validateObject:u}=zo(),d=No().Symbol(`kWeak`),{finished:f}=Ho(),{ArrayPrototypePush:p,MathFloor:m,Number:h,NumberIsNaN:g,Promise:_,PromiseReject:v,PromisePrototypeThen:y,Symbol:b}=No(),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 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;e--<=0&&(yield n)}}.call(this)}function I(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:F,filter:k,flatMap:N,map:C,take:I},n.exports.promiseReturningOperators={every:E,forEach:O,reduce:j,toArray:M,some:T,find:D}})),Wo=i(((e,t)=>{var n=Bo(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:a}=Ro(),{Symbol:o}=No(),{kDestroyed:s,isDestroyed:c,isFinished:l,isServerRequest:u}=Vo(),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}})),Go=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)}})),Ko=i(((e,t)=>{var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=No(),{EventEmitter:i}=Go();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}})),qo=i(((e,t)=>{var{AbortError:n,codes:r}=Ro(),i=Ho(),{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}})),Jo=i(((e,t)=>{var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:a}=No(),{Buffer:o}=Mo(),{inspect:s}=Po();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.head=this.length===1?this.tail=null: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,this.head=r.next?r.next: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,this.head=r.next?r.next: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})}}})),Yo=i(((e,t)=>{var{MathFloor:n,NumberIsInteger:r}=No(),{ERR_INVALID_ARG_VALUE:i}=Ro().codes;function a(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function o(e){return e?16:16384}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}})),Xo=i(((e,t)=>{var n=Mo(),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)}})),Zo=i((e=>{var t=Xo().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):``}})),Qo=i(((e,t)=>{var n=Bo(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:a}=No(),{Buffer:o}=Mo(),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:c}=Ro().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})),$o=i(((e,t)=>{var n=Bo(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:a,NumberParseInt:o,ObjectDefineProperties:s,ObjectKeys:c,ObjectSetPrototypeOf:l,Promise:u,SafeSet:d,SymbolAsyncIterator:f,Symbol:p}=No();t.exports=R,R.ReadableState=L;var{EventEmitter:m}=Go(),{Stream:h,prependListener:g}=Ko(),{Buffer:_}=Mo(),{addAbortSignal:v}=qo(),y=Ho(),b=Po().debuglog(`stream`,e=>{b=e}),x=Jo(),S=Wo(),{getHighWaterMark:C,getDefaultHighWaterMark:w}=Yo(),{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}}=Ro(),{validateObject:j}=zo(),M=p(`kPaused`),{StringDecoder:N}=Zo(),P=Qo();l(R.prototype,h.prototype),l(R,h);var F=()=>{},{errorOrDestroy:I}=S;function L(e,t,n){typeof n!=`boolean`&&(n=t instanceof ns()),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 R(e){if(!(this instanceof R))return new R(e);let t=this instanceof ns();this._readableState=new L(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&&ie(this,this._readableState)})}R.prototype.destroy=S.destroy,R.prototype._undestroy=S.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype[m.captureRejectionSymbol]=function(e){this.destroy(e)},R.prototype.push=function(e,t){return z(this,e,t,!1)},R.prototype.unshift=function(e,t){return z(this,e,t,!0)};function z(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)I(e,a);else if(t===null)i.reading=!1,V(e,i);else if(i.objectMode||t&&t.length>0){if(r){if(i.endEmitted)I(e,new A);else if(i.destroyed||i.errored)return!1;else B(e,i,t,!0)}else if(i.ended)I(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?B(e,i,t,!1):ie(e,i)):B(e,i,t,!1)}else r||(i.reading=!1,ie(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function B(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&&H(e)),ie(e,t)}R.prototype.isPaused=function(){let e=this._readableState;return e[M]===!0||e.flowing===!1},R.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 ee=1073741824;function te(e){if(e>ee)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 ne(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}R.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=te(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?W(this):H(this),null;if(e=ne(e,t),e===0&&t.ended)return t.length===0&&W(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){I(this,e)}t.sync=!1,t.reading||(e=ne(n,t))}let a;return a=e>0?pe(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&&W(this)),a!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit(`data`,a)),a};function V(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?H(e):(t.needReadable=!1,t.emittedReadable=!0,re(e))}}function H(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(re,e))}function re(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 ie(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(U,e,t))}function U(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}R.prototype._read=function(e){throw new D(`_read()`)},R.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=ae(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?I(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 ae(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()}}R.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)},R.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?H(this):i.reading||n.nextTick(se,this)),r},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,t){let r=h.prototype.removeListener.call(this,e,t);return e===`readable`&&n.nextTick(oe,this),r},R.prototype.off=R.prototype.removeListener,R.prototype.removeAllListeners=function(e){let t=h.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&n.nextTick(oe,this),t};function oe(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)}R.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)}R.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;);}R.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=>{I(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},R.prototype[f]=function(){return de(this)},R.prototype.iterator=function(e){return e!==void 0&&j(e,`options`),de(this,e)};function de(e,t){typeof e.read!=`function`&&(e=R.wrap(e,{objectMode:!0}));let n=fe(e,t);return n.stream=e,n}async function*fe(e,t){let n=F;function r(t){this===e?(n(),n=F):n=t}e.on(`readable`,r);let i,a=y(e,{writable:!1},e=>{i=e?T(i,e):null,n(),n=F});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(R.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(L.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[M]!==!1},set(e){this[M]=!!e}}}),R._fromList=pe;function pe(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 W(e){let t=e._readableState;b(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(me,t,e))}function me(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(he,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&t.destroy()}}}function he(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}R.from=function(e,t){return P(R,e,t)};var G;function K(){return G===void 0&&(G={}),G}R.fromWeb=function(e,t){return K().newStreamReadableFromReadableStream(e,t)},R.toWeb=function(e,t){return K().newReadableStreamFromStreamReadable(e,t)},R.wrap=function(e,t){return new R({objectMode:e.readableObjectMode??e.objectMode??!0,...t,destroy(t,n){S.destroyer(e,t),n(t)}}).wrap(e)}})),es=i(((e,t)=>{var n=Bo(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:o,ObjectDefineProperties:s,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:l,Symbol:u,SymbolHasInstance:d}=No();t.exports=N,N.WritableState=j;var{EventEmitter:f}=Go(),p=Ko().Stream,{Buffer:m}=Mo(),h=Wo(),{addAbortSignal:g}=qo(),{getHighWaterMark:_,getDefaultHighWaterMark:v}=Yo(),{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}=Ro().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 ns()),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=R.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 ns();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||te(this,e),re(this,e)})}o(N,d,{__proto__:null,value:function(e){return a(this,e)?!0:this===N&&e&&e._writableState instanceof j}}),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++,F(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||te(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 F(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 I(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 L(e,t,n,r){--t.pendingcb,r(n),ee(t),O(e,n)}function R(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(L,e,r,t,a):L(e,r,t,a)):(r.buffered.length>r.bufferedIndex&&te(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(z,r.afterWriteTickInfo)):B(e,r,1,a))}function z({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,B(e,t,n,r)}function B(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&&ee(t),re(e,t)}function ee(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 te(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,I(e,t,!0,t.length,a,``,i),M(t)}else{do{let{chunk:r,encoding:i,callback:o}=n[s];n[s++]=null,I(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,re(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 ne(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 V(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 ne(t)&&(t.prefinished=!0,e.emit(`prefinish`),t.pendingcb++,n.nextTick(ie,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}function H(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.finalCalled=!0,V(e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function re(e,t,r){ne(t)&&(H(e,t),t.pendingcb===0&&(r?(t.pendingcb++,n.nextTick((e,t)=>{ne(t)?ie(e,t):t.pendingcb--},e,t)):ne(t)&&(t.pendingcb++,ie(e,t))))}function ie(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 U=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(ee,r),U.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 ae;function oe(){return ae===void 0&&(ae={}),ae}N.fromWeb=function(e,t){return oe().newStreamWritableFromWritableStream(e,t)},N.toWeb=function(e){return oe().newWritableStreamFromStreamWritable(e)}})),ts=i(((t,n)=>{var r=Bo(),i=Mo(),{isReadable:a,isWritable:o,isIterable:s,isNodeStream:c,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:d}=Vo(),f=Ho(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:h}}=Ro(),{destroyer:g}=Wo(),_=ns(),v=$o(),{createDeferredPromise:y}=Po(),b=Qo(),x=globalThis.Blob||i.Blob,S=x===void 0?function(e){return!1}:function(e){return e instanceof x},C=globalThis.AbortController||(Lo(),e(Fo)).AbortController,{FunctionPrototypeCall:w}=No(),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}})),ns=i(((e,t)=>{var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:a}=No();t.exports=c;var o=$o(),s=es();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||=ts(),d(e,`body`)}})),rs=i(((e,t)=>{var{ObjectSetPrototypeOf:n,Symbol:r}=No();t.exports=c;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Ro().codes,a=ns(),{getHighWaterMark:o}=Yo();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()}}})),is=i(((e,t)=>{var{ObjectSetPrototypeOf:n}=No();t.exports=i;var r=rs();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)}})),as=i(((t,n)=>{var r=Bo(),{ArrayIsArray:i,Promise:a,SymbolAsyncIterator:o}=No(),s=Ho(),{once:c}=Po(),l=Wo(),u=ns(),{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:_}=Ro(),{validateFunction:v,validateAbortSignal:y}=zo(),{isIterable:b,isReadable:x,isReadableNodeStream:S,isNodeStream:C}=Vo(),w=globalThis.AbortController||(Lo(),e(Fo)).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||=$o(),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||=is();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}})),os=i(((e,t)=>{var{pipeline:n}=as(),r=ns(),{destroyer:i}=Wo(),{isNodeStream:a,isReadable:o,isWritable:s}=Vo(),{AbortError:c,codes:{ERR_INVALID_ARG_VALUE:l,ERR_MISSING_ARGS:u}}=Ro();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}})),ss=i(((e,t)=>{var{ArrayPrototypePop:n,Promise:r}=No(),{isIterable:i,isNodeStream:a}=Vo(),{pipelineImpl:o}=as(),{finished:s}=Ho();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}})),cs=i(((e,t)=>{var{Buffer:n}=Mo(),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:a}=No(),{promisify:{custom:o}}=Po(),{streamReturningOperators:s,promiseReturningOperators:c}=Uo(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=Ro(),u=os(),{pipeline:d}=as(),{destroyer:f}=Wo(),p=Ho(),m=ss(),h=Vo(),g=t.exports=Ko().Stream;g.isDisturbed=h.isDisturbed,g.isErrored=h.isErrored,g.isReadable=h.isReadable,g.Readable=$o();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=es(),g.Duplex=ns(),g.Transform=rs(),g.PassThrough=is(),g.pipeline=d;var{addAbortSignal:_}=qo();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)}})),ls=i(((e,t)=>{var n=cs(),r=ss(),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})),us=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=ls();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})),ds=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(us());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})),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&&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()||``)};e.status=l.url.indexOf(`file://`)===0&&(d.status<200||d.status>599)?200: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(Bo()),s=fs(),c=ds(),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)}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=Ma(),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
 
929
- `).trim(),c;return s!==``&&(c=s),{sources:i,description:c}}e.sourcesFromPostmanCollection=r})),xs=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ClassType=e.ArrayType=e.PrimitiveType=e.Type=e.messageAssert=e.messageError=e.QuickTypeError=e.trainMarkovChain=e.isLetterOrDigit=e.legalizeCharacters=e.allUpperWordStyle=e.firstUpperWordStyle=e.combineWords=e.capitalize=e.splitIntoWords=e.inflateBase64=e.checkArray=e.checkStringMap=e.parseJSON=e.assertNever=e.defined=e.assert=e.panic=e.IssueAnnotationData=e.Namer=e.funPrefixNamer=e.Name=e.parenIfNeeded=e.singleWord=e.modifySource=e.languageNamed=e.defaultTargetLanguages=e.TargetLanguage=e.getOptionValues=e.Option=e.Ref=e.JSONSchemaInput=e.jsonInputForTargetLanguage=e.JSONInput=e.InputData=e.CompressedJSON=e.inferenceFlagsObject=e.defaultInferenceFlags=e.inferenceFlagNames=e.inferenceFlags=e.combineRenderResults=e.quicktype=e.quicktypeMultiFileSync=e.quicktypeMultiFile=e.getTargetLanguage=void 0,e.TypeScriptRenderer=e.TypeScriptTargetLanguage=e.javaScriptPropTypesOptions=e.JavaScriptPropTypesRenderer=e.JavaScriptPropTypesTargetLanguage=e.javaScriptOptions=e.JavaScriptRenderer=e.JavaScriptTargetLanguage=e.javaOptions=e.JavaRenderer=e.JavaTargetLanguage=e.objcOptions=e.ObjectiveCRenderer=e.ObjectiveCTargetLanguage=e.goOptions=e.GoRenderer=e.GoTargetLanguage=e.pythonOptions=e.PythonRenderer=e.PythonTargetLanguage=e.CSharpRenderer=e.cSharpOptions=e.CSharpTargetLanguage=e.cPlusPlusOptions=e.CPlusPlusRenderer=e.CPlusPlusTargetLanguage=e.uriTypeAttributeKind=e.ConvenienceRenderer=e.nullableFromUnion=e.matchType=e.removeNullFromUnion=e.StringTypes=e.namesTypeAttributeKind=e.makeNamesTypeAttributes=e.TypeNames=e.emptyTypeAttributes=e.TypeAttributeKind=e.derefTypeRef=e.TypeBuilder=e.sourcesFromPostmanCollection=e.JSONSchemaStore=e.FetchingJSONSchemaStore=e.readFromFileOrURL=e.readableFromFileOrURL=e.getStream=e.ObjectType=e.UnionType=e.MapType=e.EnumType=e.ClassProperty=void 0,e.dartOptions=e.DartRenderer=e.DartTargetLanguage=e.haskellOptions=e.HaskellRenderer=e.HaskellTargetLanguage=e.CrystalRenderer=e.CrystalTargetLanguage=e.rubyOptions=e.RubyRenderer=e.RubyTargetLanguage=e.rustOptions=e.RustRenderer=e.RustTargetLanguage=e.JSONSchemaRenderer=e.JSONSchemaTargetLanguage=e.elmOptions=e.ElmRenderer=e.ElmTargetLanguage=e.kotlinOptions=e.KotlinRenderer=e.KotlinTargetLanguage=e.swiftOptions=e.SwiftRenderer=e.SwiftTargetLanguage=e.tsFlowOptions=e.FlowRenderer=e.FlowTargetLanguage=void 0;var t=Ao();Object.defineProperty(e,"getTargetLanguage",{enumerable:!0,get:function(){return t.getTargetLanguage}}),Object.defineProperty(e,"quicktypeMultiFile",{enumerable:!0,get:function(){return t.quicktypeMultiFile}}),Object.defineProperty(e,"quicktypeMultiFileSync",{enumerable:!0,get:function(){return t.quicktypeMultiFileSync}}),Object.defineProperty(e,"quicktype",{enumerable:!0,get:function(){return t.quicktype}}),Object.defineProperty(e,"combineRenderResults",{enumerable:!0,get:function(){return t.combineRenderResults}}),Object.defineProperty(e,"inferenceFlags",{enumerable:!0,get:function(){return t.inferenceFlags}}),Object.defineProperty(e,"inferenceFlagNames",{enumerable:!0,get:function(){return t.inferenceFlagNames}}),Object.defineProperty(e,"defaultInferenceFlags",{enumerable:!0,get:function(){return t.defaultInferenceFlags}}),Object.defineProperty(e,"inferenceFlagsObject",{enumerable:!0,get:function(){return t.inferenceFlagsObject}});var n=Eo();Object.defineProperty(e,"CompressedJSON",{enumerable:!0,get:function(){return n.CompressedJSON}});var r=Do();Object.defineProperty(e,"InputData",{enumerable:!0,get:function(){return r.InputData}}),Object.defineProperty(e,"JSONInput",{enumerable:!0,get:function(){return r.JSONInput}}),Object.defineProperty(e,"jsonInputForTargetLanguage",{enumerable:!0,get:function(){return r.jsonInputForTargetLanguage}});var i=Ia();Object.defineProperty(e,"JSONSchemaInput",{enumerable:!0,get:function(){return i.JSONSchemaInput}});var a=Ia();Object.defineProperty(e,"Ref",{enumerable:!0,get:function(){return a.Ref}});var o=aa();Object.defineProperty(e,"Option",{enumerable:!0,get:function(){return o.Option}}),Object.defineProperty(e,"getOptionValues",{enumerable:!0,get:function(){return o.getOptionValues}});var s=Ha();Object.defineProperty(e,"TargetLanguage",{enumerable:!0,get:function(){return s.TargetLanguage}});var c=mo();Object.defineProperty(e,"defaultTargetLanguages",{enumerable:!0,get:function(){return c.all}}),Object.defineProperty(e,"languageNamed",{enumerable:!0,get:function(){return c.languageNamed}});var l=Oa();Object.defineProperty(e,"modifySource",{enumerable:!0,get:function(){return l.modifySource}}),Object.defineProperty(e,"singleWord",{enumerable:!0,get:function(){return l.singleWord}}),Object.defineProperty(e,"parenIfNeeded",{enumerable:!0,get:function(){return l.parenIfNeeded}});var u=Da();Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"funPrefixNamer",{enumerable:!0,get:function(){return u.funPrefixNamer}}),Object.defineProperty(e,"Namer",{enumerable:!0,get:function(){return u.Namer}});var d=ka();Object.defineProperty(e,"IssueAnnotationData",{enumerable:!0,get:function(){return d.IssueAnnotationData}});var f=Q();Object.defineProperty(e,"panic",{enumerable:!0,get:function(){return f.panic}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return f.assert}}),Object.defineProperty(e,"defined",{enumerable:!0,get:function(){return f.defined}}),Object.defineProperty(e,"assertNever",{enumerable:!0,get:function(){return f.assertNever}}),Object.defineProperty(e,"parseJSON",{enumerable:!0,get:function(){return f.parseJSON}}),Object.defineProperty(e,"checkStringMap",{enumerable:!0,get:function(){return f.checkStringMap}}),Object.defineProperty(e,"checkArray",{enumerable:!0,get:function(){return f.checkArray}}),Object.defineProperty(e,"inflateBase64",{enumerable:!0,get:function(){return f.inflateBase64}});var p=fa();Object.defineProperty(e,"splitIntoWords",{enumerable:!0,get:function(){return p.splitIntoWords}}),Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return p.capitalize}}),Object.defineProperty(e,"combineWords",{enumerable:!0,get:function(){return p.combineWords}}),Object.defineProperty(e,"firstUpperWordStyle",{enumerable:!0,get:function(){return p.firstUpperWordStyle}}),Object.defineProperty(e,"allUpperWordStyle",{enumerable:!0,get:function(){return p.allUpperWordStyle}}),Object.defineProperty(e,"legalizeCharacters",{enumerable:!0,get:function(){return p.legalizeCharacters}}),Object.defineProperty(e,"isLetterOrDigit",{enumerable:!0,get:function(){return p.isLetterOrDigit}});var m=yo();Object.defineProperty(e,"trainMarkovChain",{enumerable:!0,get:function(){return m.train}});var h=C();Object.defineProperty(e,"QuickTypeError",{enumerable:!0,get:function(){return h.QuickTypeError}}),Object.defineProperty(e,"messageError",{enumerable:!0,get:function(){return h.messageError}}),Object.defineProperty(e,"messageAssert",{enumerable:!0,get:function(){return h.messageAssert}});var g=Ea();Object.defineProperty(e,"Type",{enumerable:!0,get:function(){return g.Type}}),Object.defineProperty(e,"PrimitiveType",{enumerable:!0,get:function(){return g.PrimitiveType}}),Object.defineProperty(e,"ArrayType",{enumerable:!0,get:function(){return g.ArrayType}}),Object.defineProperty(e,"ClassType",{enumerable:!0,get:function(){return g.ClassType}}),Object.defineProperty(e,"ClassProperty",{enumerable:!0,get:function(){return g.ClassProperty}}),Object.defineProperty(e,"EnumType",{enumerable:!0,get:function(){return g.EnumType}}),Object.defineProperty(e,"MapType",{enumerable:!0,get:function(){return g.MapType}}),Object.defineProperty(e,"UnionType",{enumerable:!0,get:function(){return g.UnionType}}),Object.defineProperty(e,"ObjectType",{enumerable:!0,get:function(){return g.ObjectType}});var _=ds();Object.defineProperty(e,"getStream",{enumerable:!0,get:function(){return _.getStream}});var v=vs();Object.defineProperty(e,"readableFromFileOrURL",{enumerable:!0,get:function(){return v.readableFromFileOrURL}}),Object.defineProperty(e,"readFromFileOrURL",{enumerable:!0,get:function(){return v.readFromFileOrURL}});var y=ys();Object.defineProperty(e,"FetchingJSONSchemaStore",{enumerable:!0,get:function(){return y.FetchingJSONSchemaStore}});var b=Ma();Object.defineProperty(e,"JSONSchemaStore",{enumerable:!0,get:function(){return b.JSONSchemaStore}});var x=bs();Object.defineProperty(e,"sourcesFromPostmanCollection",{enumerable:!0,get:function(){return x.sourcesFromPostmanCollection}});var S=ha();Object.defineProperty(e,"TypeBuilder",{enumerable:!0,get:function(){return S.TypeBuilder}});var w=ba();Object.defineProperty(e,"derefTypeRef",{enumerable:!0,get:function(){return w.derefTypeRef}});var T=ia();Object.defineProperty(e,"TypeAttributeKind",{enumerable:!0,get:function(){return T.TypeAttributeKind}}),Object.defineProperty(e,"emptyTypeAttributes",{enumerable:!0,get:function(){return T.emptyTypeAttributes}});var E=ma();Object.defineProperty(e,"TypeNames",{enumerable:!0,get:function(){return E.TypeNames}}),Object.defineProperty(e,"makeNamesTypeAttributes",{enumerable:!0,get:function(){return E.makeNamesTypeAttributes}}),Object.defineProperty(e,"namesTypeAttributeKind",{enumerable:!0,get:function(){return E.namesTypeAttributeKind}});var D=ga();Object.defineProperty(e,"StringTypes",{enumerable:!0,get:function(){return D.StringTypes}});var O=_a();Object.defineProperty(e,"removeNullFromUnion",{enumerable:!0,get:function(){return O.removeNullFromUnion}}),Object.defineProperty(e,"matchType",{enumerable:!0,get:function(){return O.matchType}}),Object.defineProperty(e,"nullableFromUnion",{enumerable:!0,get:function(){return O.nullableFromUnion}});var k=Ba();Object.defineProperty(e,"ConvenienceRenderer",{enumerable:!0,get:function(){return k.ConvenienceRenderer}});var A=Ta();Object.defineProperty(e,"uriTypeAttributeKind",{enumerable:!0,get:function(){return A.uriTypeAttributeKind}});var j=Ga();Object.defineProperty(e,"CPlusPlusTargetLanguage",{enumerable:!0,get:function(){return j.CPlusPlusTargetLanguage}}),Object.defineProperty(e,"CPlusPlusRenderer",{enumerable:!0,get:function(){return j.CPlusPlusRenderer}}),Object.defineProperty(e,"cPlusPlusOptions",{enumerable:!0,get:function(){return j.cPlusPlusOptions}});var M=Ua();Object.defineProperty(e,"CSharpTargetLanguage",{enumerable:!0,get:function(){return M.CSharpTargetLanguage}}),Object.defineProperty(e,"cSharpOptions",{enumerable:!0,get:function(){return M.cSharpOptions}}),Object.defineProperty(e,"CSharpRenderer",{enumerable:!0,get:function(){return M.CSharpRenderer}});var N=co();Object.defineProperty(e,"PythonTargetLanguage",{enumerable:!0,get:function(){return N.PythonTargetLanguage}}),Object.defineProperty(e,"PythonRenderer",{enumerable:!0,get:function(){return N.PythonRenderer}}),Object.defineProperty(e,"pythonOptions",{enumerable:!0,get:function(){return N.pythonOptions}});var P=Wa();Object.defineProperty(e,"GoTargetLanguage",{enumerable:!0,get:function(){return P.GoTargetLanguage}}),Object.defineProperty(e,"GoRenderer",{enumerable:!0,get:function(){return P.GoRenderer}}),Object.defineProperty(e,"goOptions",{enumerable:!0,get:function(){return P.goOptions}});var F=Ka();Object.defineProperty(e,"ObjectiveCTargetLanguage",{enumerable:!0,get:function(){return F.ObjectiveCTargetLanguage}}),Object.defineProperty(e,"ObjectiveCRenderer",{enumerable:!0,get:function(){return F.ObjectiveCRenderer}}),Object.defineProperty(e,"objcOptions",{enumerable:!0,get:function(){return F.objcOptions}});var I=qa();Object.defineProperty(e,"JavaTargetLanguage",{enumerable:!0,get:function(){return I.JavaTargetLanguage}}),Object.defineProperty(e,"JavaRenderer",{enumerable:!0,get:function(){return I.JavaRenderer}}),Object.defineProperty(e,"javaOptions",{enumerable:!0,get:function(){return I.javaOptions}});var L=Xa();Object.defineProperty(e,"JavaScriptTargetLanguage",{enumerable:!0,get:function(){return L.JavaScriptTargetLanguage}}),Object.defineProperty(e,"JavaScriptRenderer",{enumerable:!0,get:function(){return L.JavaScriptRenderer}}),Object.defineProperty(e,"javaScriptOptions",{enumerable:!0,get:function(){return L.javaScriptOptions}});var R=Za();Object.defineProperty(e,"JavaScriptPropTypesTargetLanguage",{enumerable:!0,get:function(){return R.JavaScriptPropTypesTargetLanguage}}),Object.defineProperty(e,"JavaScriptPropTypesRenderer",{enumerable:!0,get:function(){return R.JavaScriptPropTypesRenderer}}),Object.defineProperty(e,"javaScriptPropTypesOptions",{enumerable:!0,get:function(){return R.javaScriptPropTypesOptions}});var z=Qa();Object.defineProperty(e,"TypeScriptTargetLanguage",{enumerable:!0,get:function(){return z.TypeScriptTargetLanguage}}),Object.defineProperty(e,"TypeScriptRenderer",{enumerable:!0,get:function(){return z.TypeScriptRenderer}}),Object.defineProperty(e,"FlowTargetLanguage",{enumerable:!0,get:function(){return z.FlowTargetLanguage}}),Object.defineProperty(e,"FlowRenderer",{enumerable:!0,get:function(){return z.FlowRenderer}}),Object.defineProperty(e,"tsFlowOptions",{enumerable:!0,get:function(){return z.tsFlowOptions}});var B=$a();Object.defineProperty(e,"SwiftTargetLanguage",{enumerable:!0,get:function(){return B.SwiftTargetLanguage}}),Object.defineProperty(e,"SwiftRenderer",{enumerable:!0,get:function(){return B.SwiftRenderer}}),Object.defineProperty(e,"swiftOptions",{enumerable:!0,get:function(){return B.swiftOptions}});var ee=eo();Object.defineProperty(e,"KotlinTargetLanguage",{enumerable:!0,get:function(){return ee.KotlinTargetLanguage}}),Object.defineProperty(e,"KotlinRenderer",{enumerable:!0,get:function(){return ee.KotlinRenderer}}),Object.defineProperty(e,"kotlinOptions",{enumerable:!0,get:function(){return ee.kotlinOptions}});var te=to();Object.defineProperty(e,"ElmTargetLanguage",{enumerable:!0,get:function(){return te.ElmTargetLanguage}}),Object.defineProperty(e,"ElmRenderer",{enumerable:!0,get:function(){return te.ElmRenderer}}),Object.defineProperty(e,"elmOptions",{enumerable:!0,get:function(){return te.elmOptions}});var ne=no();Object.defineProperty(e,"JSONSchemaTargetLanguage",{enumerable:!0,get:function(){return ne.JSONSchemaTargetLanguage}}),Object.defineProperty(e,"JSONSchemaRenderer",{enumerable:!0,get:function(){return ne.JSONSchemaRenderer}});var V=ro();Object.defineProperty(e,"RustTargetLanguage",{enumerable:!0,get:function(){return V.RustTargetLanguage}}),Object.defineProperty(e,"RustRenderer",{enumerable:!0,get:function(){return V.RustRenderer}}),Object.defineProperty(e,"rustOptions",{enumerable:!0,get:function(){return V.rustOptions}});var H=oo();Object.defineProperty(e,"RubyTargetLanguage",{enumerable:!0,get:function(){return H.RubyTargetLanguage}}),Object.defineProperty(e,"RubyRenderer",{enumerable:!0,get:function(){return H.RubyRenderer}}),Object.defineProperty(e,"rubyOptions",{enumerable:!0,get:function(){return H.rubyOptions}});var re=io();Object.defineProperty(e,"CrystalTargetLanguage",{enumerable:!0,get:function(){return re.CrystalTargetLanguage}}),Object.defineProperty(e,"CrystalRenderer",{enumerable:!0,get:function(){return re.CrystalRenderer}});var ie=uo();Object.defineProperty(e,"HaskellTargetLanguage",{enumerable:!0,get:function(){return ie.HaskellTargetLanguage}}),Object.defineProperty(e,"HaskellRenderer",{enumerable:!0,get:function(){return ie.HaskellRenderer}}),Object.defineProperty(e,"haskellOptions",{enumerable:!0,get:function(){return ie.haskellOptions}});var U=so();Object.defineProperty(e,"DartTargetLanguage",{enumerable:!0,get:function(){return U.DartTargetLanguage}}),Object.defineProperty(e,"DartRenderer",{enumerable:!0,get:function(){return U.DartRenderer}}),Object.defineProperty(e,"dartOptions",{enumerable:!0,get:function(){return U.dartOptions}})}));export{mo as n,xs as t};
929
+ `).trim(),c;return s!==``&&(c=s),{sources:i,description:c}}e.sourcesFromPostmanCollection=r})),bs=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ClassType=e.ArrayType=e.PrimitiveType=e.Type=e.messageAssert=e.messageError=e.QuickTypeError=e.trainMarkovChain=e.isLetterOrDigit=e.legalizeCharacters=e.allUpperWordStyle=e.firstUpperWordStyle=e.combineWords=e.capitalize=e.splitIntoWords=e.inflateBase64=e.checkArray=e.checkStringMap=e.parseJSON=e.assertNever=e.defined=e.assert=e.panic=e.IssueAnnotationData=e.Namer=e.funPrefixNamer=e.Name=e.parenIfNeeded=e.singleWord=e.modifySource=e.languageNamed=e.defaultTargetLanguages=e.TargetLanguage=e.getOptionValues=e.Option=e.Ref=e.JSONSchemaInput=e.jsonInputForTargetLanguage=e.JSONInput=e.InputData=e.CompressedJSON=e.inferenceFlagsObject=e.defaultInferenceFlags=e.inferenceFlagNames=e.inferenceFlags=e.combineRenderResults=e.quicktype=e.quicktypeMultiFileSync=e.quicktypeMultiFile=e.getTargetLanguage=void 0,e.TypeScriptRenderer=e.TypeScriptTargetLanguage=e.javaScriptPropTypesOptions=e.JavaScriptPropTypesRenderer=e.JavaScriptPropTypesTargetLanguage=e.javaScriptOptions=e.JavaScriptRenderer=e.JavaScriptTargetLanguage=e.javaOptions=e.JavaRenderer=e.JavaTargetLanguage=e.objcOptions=e.ObjectiveCRenderer=e.ObjectiveCTargetLanguage=e.goOptions=e.GoRenderer=e.GoTargetLanguage=e.pythonOptions=e.PythonRenderer=e.PythonTargetLanguage=e.CSharpRenderer=e.cSharpOptions=e.CSharpTargetLanguage=e.cPlusPlusOptions=e.CPlusPlusRenderer=e.CPlusPlusTargetLanguage=e.uriTypeAttributeKind=e.ConvenienceRenderer=e.nullableFromUnion=e.matchType=e.removeNullFromUnion=e.StringTypes=e.namesTypeAttributeKind=e.makeNamesTypeAttributes=e.TypeNames=e.emptyTypeAttributes=e.TypeAttributeKind=e.derefTypeRef=e.TypeBuilder=e.sourcesFromPostmanCollection=e.JSONSchemaStore=e.FetchingJSONSchemaStore=e.readFromFileOrURL=e.readableFromFileOrURL=e.getStream=e.ObjectType=e.UnionType=e.MapType=e.EnumType=e.ClassProperty=void 0,e.dartOptions=e.DartRenderer=e.DartTargetLanguage=e.haskellOptions=e.HaskellRenderer=e.HaskellTargetLanguage=e.CrystalRenderer=e.CrystalTargetLanguage=e.rubyOptions=e.RubyRenderer=e.RubyTargetLanguage=e.rustOptions=e.RustRenderer=e.RustTargetLanguage=e.JSONSchemaRenderer=e.JSONSchemaTargetLanguage=e.elmOptions=e.ElmRenderer=e.ElmTargetLanguage=e.kotlinOptions=e.KotlinRenderer=e.KotlinTargetLanguage=e.swiftOptions=e.SwiftRenderer=e.SwiftTargetLanguage=e.tsFlowOptions=e.FlowRenderer=e.FlowTargetLanguage=void 0;var t=Ao();Object.defineProperty(e,"getTargetLanguage",{enumerable:!0,get:function(){return t.getTargetLanguage}}),Object.defineProperty(e,"quicktypeMultiFile",{enumerable:!0,get:function(){return t.quicktypeMultiFile}}),Object.defineProperty(e,"quicktypeMultiFileSync",{enumerable:!0,get:function(){return t.quicktypeMultiFileSync}}),Object.defineProperty(e,"quicktype",{enumerable:!0,get:function(){return t.quicktype}}),Object.defineProperty(e,"combineRenderResults",{enumerable:!0,get:function(){return t.combineRenderResults}}),Object.defineProperty(e,"inferenceFlags",{enumerable:!0,get:function(){return t.inferenceFlags}}),Object.defineProperty(e,"inferenceFlagNames",{enumerable:!0,get:function(){return t.inferenceFlagNames}}),Object.defineProperty(e,"defaultInferenceFlags",{enumerable:!0,get:function(){return t.defaultInferenceFlags}}),Object.defineProperty(e,"inferenceFlagsObject",{enumerable:!0,get:function(){return t.inferenceFlagsObject}});var n=Eo();Object.defineProperty(e,"CompressedJSON",{enumerable:!0,get:function(){return n.CompressedJSON}});var r=Do();Object.defineProperty(e,"InputData",{enumerable:!0,get:function(){return r.InputData}}),Object.defineProperty(e,"JSONInput",{enumerable:!0,get:function(){return r.JSONInput}}),Object.defineProperty(e,"jsonInputForTargetLanguage",{enumerable:!0,get:function(){return r.jsonInputForTargetLanguage}});var i=Ia();Object.defineProperty(e,"JSONSchemaInput",{enumerable:!0,get:function(){return i.JSONSchemaInput}});var a=Ia();Object.defineProperty(e,"Ref",{enumerable:!0,get:function(){return a.Ref}});var o=aa();Object.defineProperty(e,"Option",{enumerable:!0,get:function(){return o.Option}}),Object.defineProperty(e,"getOptionValues",{enumerable:!0,get:function(){return o.getOptionValues}});var s=Ha();Object.defineProperty(e,"TargetLanguage",{enumerable:!0,get:function(){return s.TargetLanguage}});var c=mo();Object.defineProperty(e,"defaultTargetLanguages",{enumerable:!0,get:function(){return c.all}}),Object.defineProperty(e,"languageNamed",{enumerable:!0,get:function(){return c.languageNamed}});var l=Oa();Object.defineProperty(e,"modifySource",{enumerable:!0,get:function(){return l.modifySource}}),Object.defineProperty(e,"singleWord",{enumerable:!0,get:function(){return l.singleWord}}),Object.defineProperty(e,"parenIfNeeded",{enumerable:!0,get:function(){return l.parenIfNeeded}});var u=Da();Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"funPrefixNamer",{enumerable:!0,get:function(){return u.funPrefixNamer}}),Object.defineProperty(e,"Namer",{enumerable:!0,get:function(){return u.Namer}});var d=ka();Object.defineProperty(e,"IssueAnnotationData",{enumerable:!0,get:function(){return d.IssueAnnotationData}});var f=Q();Object.defineProperty(e,"panic",{enumerable:!0,get:function(){return f.panic}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return f.assert}}),Object.defineProperty(e,"defined",{enumerable:!0,get:function(){return f.defined}}),Object.defineProperty(e,"assertNever",{enumerable:!0,get:function(){return f.assertNever}}),Object.defineProperty(e,"parseJSON",{enumerable:!0,get:function(){return f.parseJSON}}),Object.defineProperty(e,"checkStringMap",{enumerable:!0,get:function(){return f.checkStringMap}}),Object.defineProperty(e,"checkArray",{enumerable:!0,get:function(){return f.checkArray}}),Object.defineProperty(e,"inflateBase64",{enumerable:!0,get:function(){return f.inflateBase64}});var p=fa();Object.defineProperty(e,"splitIntoWords",{enumerable:!0,get:function(){return p.splitIntoWords}}),Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return p.capitalize}}),Object.defineProperty(e,"combineWords",{enumerable:!0,get:function(){return p.combineWords}}),Object.defineProperty(e,"firstUpperWordStyle",{enumerable:!0,get:function(){return p.firstUpperWordStyle}}),Object.defineProperty(e,"allUpperWordStyle",{enumerable:!0,get:function(){return p.allUpperWordStyle}}),Object.defineProperty(e,"legalizeCharacters",{enumerable:!0,get:function(){return p.legalizeCharacters}}),Object.defineProperty(e,"isLetterOrDigit",{enumerable:!0,get:function(){return p.isLetterOrDigit}});var m=yo();Object.defineProperty(e,"trainMarkovChain",{enumerable:!0,get:function(){return m.train}});var h=C();Object.defineProperty(e,"QuickTypeError",{enumerable:!0,get:function(){return h.QuickTypeError}}),Object.defineProperty(e,"messageError",{enumerable:!0,get:function(){return h.messageError}}),Object.defineProperty(e,"messageAssert",{enumerable:!0,get:function(){return h.messageAssert}});var g=Ea();Object.defineProperty(e,"Type",{enumerable:!0,get:function(){return g.Type}}),Object.defineProperty(e,"PrimitiveType",{enumerable:!0,get:function(){return g.PrimitiveType}}),Object.defineProperty(e,"ArrayType",{enumerable:!0,get:function(){return g.ArrayType}}),Object.defineProperty(e,"ClassType",{enumerable:!0,get:function(){return g.ClassType}}),Object.defineProperty(e,"ClassProperty",{enumerable:!0,get:function(){return g.ClassProperty}}),Object.defineProperty(e,"EnumType",{enumerable:!0,get:function(){return g.EnumType}}),Object.defineProperty(e,"MapType",{enumerable:!0,get:function(){return g.MapType}}),Object.defineProperty(e,"UnionType",{enumerable:!0,get:function(){return g.UnionType}}),Object.defineProperty(e,"ObjectType",{enumerable:!0,get:function(){return g.ObjectType}});var _=ds();Object.defineProperty(e,"getStream",{enumerable:!0,get:function(){return _.getStream}});var v=_s();Object.defineProperty(e,"readableFromFileOrURL",{enumerable:!0,get:function(){return v.readableFromFileOrURL}}),Object.defineProperty(e,"readFromFileOrURL",{enumerable:!0,get:function(){return v.readFromFileOrURL}});var y=vs();Object.defineProperty(e,"FetchingJSONSchemaStore",{enumerable:!0,get:function(){return y.FetchingJSONSchemaStore}});var b=Ma();Object.defineProperty(e,"JSONSchemaStore",{enumerable:!0,get:function(){return b.JSONSchemaStore}});var x=ys();Object.defineProperty(e,"sourcesFromPostmanCollection",{enumerable:!0,get:function(){return x.sourcesFromPostmanCollection}});var S=ha();Object.defineProperty(e,"TypeBuilder",{enumerable:!0,get:function(){return S.TypeBuilder}});var w=ba();Object.defineProperty(e,"derefTypeRef",{enumerable:!0,get:function(){return w.derefTypeRef}});var T=ia();Object.defineProperty(e,"TypeAttributeKind",{enumerable:!0,get:function(){return T.TypeAttributeKind}}),Object.defineProperty(e,"emptyTypeAttributes",{enumerable:!0,get:function(){return T.emptyTypeAttributes}});var E=ma();Object.defineProperty(e,"TypeNames",{enumerable:!0,get:function(){return E.TypeNames}}),Object.defineProperty(e,"makeNamesTypeAttributes",{enumerable:!0,get:function(){return E.makeNamesTypeAttributes}}),Object.defineProperty(e,"namesTypeAttributeKind",{enumerable:!0,get:function(){return E.namesTypeAttributeKind}});var D=ga();Object.defineProperty(e,"StringTypes",{enumerable:!0,get:function(){return D.StringTypes}});var O=_a();Object.defineProperty(e,"removeNullFromUnion",{enumerable:!0,get:function(){return O.removeNullFromUnion}}),Object.defineProperty(e,"matchType",{enumerable:!0,get:function(){return O.matchType}}),Object.defineProperty(e,"nullableFromUnion",{enumerable:!0,get:function(){return O.nullableFromUnion}});var k=Ba();Object.defineProperty(e,"ConvenienceRenderer",{enumerable:!0,get:function(){return k.ConvenienceRenderer}});var A=Ta();Object.defineProperty(e,"uriTypeAttributeKind",{enumerable:!0,get:function(){return A.uriTypeAttributeKind}});var j=Ga();Object.defineProperty(e,"CPlusPlusTargetLanguage",{enumerable:!0,get:function(){return j.CPlusPlusTargetLanguage}}),Object.defineProperty(e,"CPlusPlusRenderer",{enumerable:!0,get:function(){return j.CPlusPlusRenderer}}),Object.defineProperty(e,"cPlusPlusOptions",{enumerable:!0,get:function(){return j.cPlusPlusOptions}});var M=Ua();Object.defineProperty(e,"CSharpTargetLanguage",{enumerable:!0,get:function(){return M.CSharpTargetLanguage}}),Object.defineProperty(e,"cSharpOptions",{enumerable:!0,get:function(){return M.cSharpOptions}}),Object.defineProperty(e,"CSharpRenderer",{enumerable:!0,get:function(){return M.CSharpRenderer}});var N=co();Object.defineProperty(e,"PythonTargetLanguage",{enumerable:!0,get:function(){return N.PythonTargetLanguage}}),Object.defineProperty(e,"PythonRenderer",{enumerable:!0,get:function(){return N.PythonRenderer}}),Object.defineProperty(e,"pythonOptions",{enumerable:!0,get:function(){return N.pythonOptions}});var P=Wa();Object.defineProperty(e,"GoTargetLanguage",{enumerable:!0,get:function(){return P.GoTargetLanguage}}),Object.defineProperty(e,"GoRenderer",{enumerable:!0,get:function(){return P.GoRenderer}}),Object.defineProperty(e,"goOptions",{enumerable:!0,get:function(){return P.goOptions}});var F=Ka();Object.defineProperty(e,"ObjectiveCTargetLanguage",{enumerable:!0,get:function(){return F.ObjectiveCTargetLanguage}}),Object.defineProperty(e,"ObjectiveCRenderer",{enumerable:!0,get:function(){return F.ObjectiveCRenderer}}),Object.defineProperty(e,"objcOptions",{enumerable:!0,get:function(){return F.objcOptions}});var I=qa();Object.defineProperty(e,"JavaTargetLanguage",{enumerable:!0,get:function(){return I.JavaTargetLanguage}}),Object.defineProperty(e,"JavaRenderer",{enumerable:!0,get:function(){return I.JavaRenderer}}),Object.defineProperty(e,"javaOptions",{enumerable:!0,get:function(){return I.javaOptions}});var L=Xa();Object.defineProperty(e,"JavaScriptTargetLanguage",{enumerable:!0,get:function(){return L.JavaScriptTargetLanguage}}),Object.defineProperty(e,"JavaScriptRenderer",{enumerable:!0,get:function(){return L.JavaScriptRenderer}}),Object.defineProperty(e,"javaScriptOptions",{enumerable:!0,get:function(){return L.javaScriptOptions}});var R=Za();Object.defineProperty(e,"JavaScriptPropTypesTargetLanguage",{enumerable:!0,get:function(){return R.JavaScriptPropTypesTargetLanguage}}),Object.defineProperty(e,"JavaScriptPropTypesRenderer",{enumerable:!0,get:function(){return R.JavaScriptPropTypesRenderer}}),Object.defineProperty(e,"javaScriptPropTypesOptions",{enumerable:!0,get:function(){return R.javaScriptPropTypesOptions}});var z=Qa();Object.defineProperty(e,"TypeScriptTargetLanguage",{enumerable:!0,get:function(){return z.TypeScriptTargetLanguage}}),Object.defineProperty(e,"TypeScriptRenderer",{enumerable:!0,get:function(){return z.TypeScriptRenderer}}),Object.defineProperty(e,"FlowTargetLanguage",{enumerable:!0,get:function(){return z.FlowTargetLanguage}}),Object.defineProperty(e,"FlowRenderer",{enumerable:!0,get:function(){return z.FlowRenderer}}),Object.defineProperty(e,"tsFlowOptions",{enumerable:!0,get:function(){return z.tsFlowOptions}});var B=$a();Object.defineProperty(e,"SwiftTargetLanguage",{enumerable:!0,get:function(){return B.SwiftTargetLanguage}}),Object.defineProperty(e,"SwiftRenderer",{enumerable:!0,get:function(){return B.SwiftRenderer}}),Object.defineProperty(e,"swiftOptions",{enumerable:!0,get:function(){return B.swiftOptions}});var ee=eo();Object.defineProperty(e,"KotlinTargetLanguage",{enumerable:!0,get:function(){return ee.KotlinTargetLanguage}}),Object.defineProperty(e,"KotlinRenderer",{enumerable:!0,get:function(){return ee.KotlinRenderer}}),Object.defineProperty(e,"kotlinOptions",{enumerable:!0,get:function(){return ee.kotlinOptions}});var te=to();Object.defineProperty(e,"ElmTargetLanguage",{enumerable:!0,get:function(){return te.ElmTargetLanguage}}),Object.defineProperty(e,"ElmRenderer",{enumerable:!0,get:function(){return te.ElmRenderer}}),Object.defineProperty(e,"elmOptions",{enumerable:!0,get:function(){return te.elmOptions}});var ne=no();Object.defineProperty(e,"JSONSchemaTargetLanguage",{enumerable:!0,get:function(){return ne.JSONSchemaTargetLanguage}}),Object.defineProperty(e,"JSONSchemaRenderer",{enumerable:!0,get:function(){return ne.JSONSchemaRenderer}});var V=ro();Object.defineProperty(e,"RustTargetLanguage",{enumerable:!0,get:function(){return V.RustTargetLanguage}}),Object.defineProperty(e,"RustRenderer",{enumerable:!0,get:function(){return V.RustRenderer}}),Object.defineProperty(e,"rustOptions",{enumerable:!0,get:function(){return V.rustOptions}});var H=oo();Object.defineProperty(e,"RubyTargetLanguage",{enumerable:!0,get:function(){return H.RubyTargetLanguage}}),Object.defineProperty(e,"RubyRenderer",{enumerable:!0,get:function(){return H.RubyRenderer}}),Object.defineProperty(e,"rubyOptions",{enumerable:!0,get:function(){return H.rubyOptions}});var re=io();Object.defineProperty(e,"CrystalTargetLanguage",{enumerable:!0,get:function(){return re.CrystalTargetLanguage}}),Object.defineProperty(e,"CrystalRenderer",{enumerable:!0,get:function(){return re.CrystalRenderer}});var ie=uo();Object.defineProperty(e,"HaskellTargetLanguage",{enumerable:!0,get:function(){return ie.HaskellTargetLanguage}}),Object.defineProperty(e,"HaskellRenderer",{enumerable:!0,get:function(){return ie.HaskellRenderer}}),Object.defineProperty(e,"haskellOptions",{enumerable:!0,get:function(){return ie.haskellOptions}});var U=so();Object.defineProperty(e,"DartTargetLanguage",{enumerable:!0,get:function(){return U.DartTargetLanguage}}),Object.defineProperty(e,"DartRenderer",{enumerable:!0,get:function(){return U.DartRenderer}}),Object.defineProperty(e,"dartOptions",{enumerable:!0,get:function(){return U.dartOptions}})}));export{mo as n,bs as t};