Files
misode.github.io/assets/vendor.1d52f60f.js
2021-12-01 05:38:09 +00:00

38 lines
711 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,s=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&a(e,r,t[r]);if(n)for(var r of n(t))o.call(t,r)&&a(e,r,t[r]);return e},c=(e,n)=>t(e,r(n)),l=e=>"symbol"==typeof e?e:e+"";const u={};var d,p,m,h,f={},_=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(e,t){for(var r in t)e[r]=t[r];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var n,i,o,a=arguments,s={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(r=[r],o=3;o<arguments.length;o++)r.push(a[o]);if(null!=r&&(s.children=r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return x(e,s,n,i,null)}function x(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++d.__v:i};return null!=d.vnode&&d.vnode(o),o}function N(e){return e.children}function w(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?k(e):null}function O(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return O(e)}}function S(e){(!e.__d&&(e.__d=!0)&&p.push(e)&&!D.__r++||h!==d.debounceRendering)&&((h=d.debounceRendering)||m)(D)}function D(){for(var e;D.__r=p.length;)e=p.sort((function(e,t){return e.__v.__b-t.__v.__b})),p=[],e.some((function(e){var t,r,n,i,o,a;e.__d&&(o=(i=(t=e).__v).__e,(a=t.__P)&&(r=[],(n=b({},i)).__v=i.__v+1,I(a,i,n,t.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,r,null==o?k(i):o,i.__h),P(r,i),i.__e!=o&&O(i)))}))}function A(e,t,r,n,i,o,a,s,c,l){var u,d,p,m,h,g,b,y=n&&n.__k||_,v=y.length;for(r.__k=[],u=0;u<t.length;u++)if(null!=(m=r.__k[u]=null==(m=t[u])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?x(null,m,null,null,m):Array.isArray(m)?x(N,{children:m},null,null,null):m.__b>0?x(m.type,m.props,m.key,null,m.__v):m)){if(m.__=r,m.__b=r.__b+1,null===(p=y[u])||p&&m.key==p.key&&m.type===p.type)y[u]=void 0;else for(d=0;d<v;d++){if((p=y[d])&&m.key==p.key&&m.type===p.type){y[d]=void 0;break}p=null}I(e,m,p=p||f,i,o,a,s,c,l),h=m.__e,(d=m.ref)&&p.ref!=d&&(b||(b=[]),p.ref&&b.push(p.ref,null,m),b.push(d,m.__c||h,m)),null!=h?(null==g&&(g=h),"function"==typeof m.type&&null!=m.__k&&m.__k===p.__k?m.__d=c=C(m,c,e):c=F(e,m,p,y,h,c),l||"option"!==r.type?"function"==typeof r.type&&(r.__d=c):e.value=""):c&&p.__e==c&&c.parentNode!=e&&(c=k(p))}for(r.__e=g,u=v;u--;)null!=y[u]&&("function"==typeof r.type&&null!=y[u].__e&&y[u].__e==r.__d&&(r.__d=k(n,u+1)),R(y[u],y[u]));if(b)for(u=0;u<b.length;u++)L(b[u],b[++u],b[++u])}function C(e,t,r){var n,i;for(n=0;n<e.__k.length;n++)(i=e.__k[n])&&(i.__=e,t="function"==typeof i.type?C(i,t,r):F(r,i,i,e.__k,i.__e,t));return t}function E(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,t)})):t.push(e)),t}function F(e,t,r,n,i,o){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==r||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,c=0;(s=s.nextSibling)&&c<n.length;c+=2)if(s==i)break e;e.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function B(e,t,r){"-"===t[0]?e.setProperty(t,r):e[t]=null==r?"":"number"!=typeof r||g.test(t)?r:r+"px"}function M(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||B(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||B(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?T:j,o):e.removeEventListener(t,o?T:j,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(a){}"function"==typeof r||(null!=r&&(!1!==r||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,r):e.removeAttribute(t))}}function j(e){this.l[e.type+!1](d.event?d.event(e):e)}function T(e){this.l[e.type+!0](d.event?d.event(e):e)}function I(e,t,r,n,i,o,a,s,c){var l,u,p,m,h,g,v,x,k,O,S,D=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(c=r.__h,s=t.__e=r.__e,t.__h=null,o=[s]),(l=d.__b)&&l(t);try{e:if("function"==typeof D){if(x=t.props,k=(l=D.contextType)&&n[l.__c],O=l?k?k.props.value:l.__:n,r.__c?v=(u=t.__c=r.__c).__=u.__E:("prototype"in D&&D.prototype.render?t.__c=u=new D(x,O):(t.__c=u=new w(x,O),u.constructor=D,u.render=z),k&&k.sub(u),u.props=x,u.state||(u.state={}),u.context=O,u.__n=n,p=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=D.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=b({},u.__s)),b(u.__s,D.getDerivedStateFromProps(x,u.__s))),m=u.props,h=u.state,p)null==D.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==D.getDerivedStateFromProps&&x!==m&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(x,O),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(x,u.__s,O)||t.__v===r.__v){u.props=x,u.state=u.__s,t.__v!==r.__v&&(u.__d=!1),u.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(x,u.__s,O),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(m,h,g)}))}u.context=O,u.props=x,u.state=u.__s,(l=d.__r)&&l(t),u.__d=!1,u.__v=t,u.__P=e,l=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(n=b(b({},n),u.getChildContext())),p||null==u.getSnapshotBeforeUpdate||(g=u.getSnapshotBeforeUpdate(m,h)),S=null!=l&&l.type===N&&null==l.key?l.props.children:l,A(e,Array.isArray(S)?S:[S],t,r,n,i,o,a,s,c),u.base=t.__e,t.__h=null,u.__h.length&&a.push(u),v&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,o,a,s){var c,l,u,d,p=r.props,m=t.props,h=t.type,g=0;if("svg"===h&&(i=!0),null!=o)for(;g<o.length;g++)if((c=o[g])&&(c===e||(h?c.localName==h:3==c.nodeType))){e=c,o[g]=null;break}if(null==e){if(null===h)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,m.is&&m),o=null,s=!1}if(null===h)p===m||s&&e.data===m||(e.data=m);else{if(o=o&&_.slice.call(e.childNodes),l=(p=r.props||f).dangerouslySetInnerHTML,u=m.dangerouslySetInnerHTML,!s){if(null!=o)for(p={},d=0;d<e.attributes.length;d++)p[e.attributes[d].name]=e.attributes[d].value;(u||l)&&(u&&(l&&u.__html==l.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,r,n,i){var o;for(o in r)"children"===o||"key"===o||o in t||M(e,o,null,r[o],n);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===t[o]||M(e,o,t[o],r[o],n)}(e,m,p,i,s),u)t.__k=[];else if(g=t.props.children,A(e,Array.isArray(g)?g:[g],t,r,n,i&&"foreignObject"!==h,o,a,e.firstChild,s),null!=o)for(g=o.length;g--;)null!=o[g]&&y(o[g]);s||("value"in m&&void 0!==(g=m.value)&&(g!==e.value||"progress"===h&&!g)&&M(e,"value",g,p.value,!1),"checked"in m&&void 0!==(g=m.checked)&&g!==e.checked&&M(e,"checked",g,p.checked,!1))}return e}(r.__e,t,r,n,i,o,a,c);(l=d.diffed)&&l(t)}catch(C){t.__v=null,(c||null!=o)&&(t.__e=s,t.__h=!!c,o[o.indexOf(s)]=null),d.__e(C,t,r)}}function P(e,t){d.__c&&d.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){d.__e(r,t.__v)}}))}function L(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(n){d.__e(n,r)}}function R(e,t,r){var n,i,o;if(d.unmount&&d.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||L(n,null,t)),r||"function"==typeof e.type||(r=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){d.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&R(n[o],t,r);null!=i&&y(i)}function z(e,t,r){return this.constructor(e,r)}function U(e,t,r){var n,i,o;d.__&&d.__(e,t),i=(n="function"==typeof r)?null:r&&r.__k||t.__k,o=[],I(t,e=(!n&&r||t).__k=v(N,null,[e]),i||f,f,void 0!==t.ownerSVGElement,!n&&r?[r]:i?null:t.firstChild?_.slice.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n),P(o,e)}d={__e:function(e,t){for(var r,n,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((n=r.constructor)&&null!=n.getDerivedStateFromError&&(r.setState(n.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e},__v:0},w.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},r),this.props)),e&&b(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),S(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},w.prototype.render=N,p=[],m="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0;var $={};function X(e,t){for(var r in t)e[r]=t[r];return e}function J(e,t,r){var n,i=/(?:\?([^#]*))?(#.*)?$/,o=e.match(i),a={};if(o&&o[1])for(var s=o[1].split("&"),c=0;c<s.length;c++){var l=s[c].split("=");a[decodeURIComponent(l[0])]=decodeURIComponent(l.slice(1).join("="))}e=W(e.replace(i,"")),t=W(t||"");for(var u=Math.max(e.length,t.length),d=0;d<u;d++)if(t[d]&&":"===t[d].charAt(0)){var p=t[d].replace(/(^:|[+*?]+$)/g,""),m=(t[d].match(/[+*?]+$/)||$)[0]||"",h=~m.indexOf("+"),f=~m.indexOf("*"),_=e[d]||"";if(!_&&!f&&(m.indexOf("?")<0||h)){n=!1;break}if(a[p]=decodeURIComponent(_),h||f){a[p]=e.slice(d).map(decodeURIComponent).join("/");break}}else if(t[d]!==e[d]){n=!1;break}return(!0===r.default||!1!==n)&&a}function q(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function H(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,W(t).map(Z).join(""));var t}(e),e.props}function W(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function Z(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}var G=null,K=[],Y=[],V={};function Q(){var e;return""+((e=G&&G.location?G.location:G&&G.getCurrentLocation?G.getCurrentLocation():"undefined"!=typeof location?location:V).pathname||"")+(e.search||"")}function ee(e,t){return void 0===t&&(t=!1),"string"!=typeof e&&e.url&&(t=e.replace,e=e.url),function(e){for(var t=K.length;t--;)if(K[t].canRoute(e))return!0;return!1}(e)&&function(e,t){void 0===t&&(t="push"),G&&G[t]?G[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}(e,t?"replace":"push"),te(e)}function te(e){for(var t=!1,r=0;r<K.length;r++)!0===K[r].routeTo(e)&&(t=!0);for(var n=Y.length;n--;)Y[n](e);return t}function re(e){if(e&&e.getAttribute){var t=e.getAttribute("href"),r=e.getAttribute("target");if(t&&t.match(/^\//g)&&(!r||r.match(/^_?self$/i)))return ee(t)}}function ne(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button))return re(e.currentTarget||e.target||this),ie(e)}function ie(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault()),!1}function oe(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button)){var t=e.target;do{if("A"===String(t.nodeName).toUpperCase()&&t.getAttribute("href")){if(t.hasAttribute("native"))return;if(re(t))return ie(e)}}while(t=t.parentNode)}}var ae=!1;var se=function(e){function t(t){e.call(this,t),t.history&&(G=t.history),this.state={url:t.url||Q()},ae||("function"==typeof addEventListener&&(G||addEventListener("popstate",(function(){te(Q())})),addEventListener("click",oe)),ae=!0)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.shouldComponentUpdate=function(e){return!0!==e.static||(e.url!==this.props.url||e.onChange!==this.props.onChange)},t.prototype.canRoute=function(e){var t=E(this.props.children);return this.getMatchingChildren(t,e,!1).length>0},t.prototype.routeTo=function(e){this.setState({url:e});var t=this.canRoute(e);return this.updating||this.forceUpdate(),t},t.prototype.componentWillMount=function(){K.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;G&&(this.unlisten=G.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),K.splice(K.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(e,t,r){return e.filter(H).sort(q).map((function(e){var n=J(t,e.props.path,e.props);if(n){if(!1!==r){var i={url:t,matches:n};return X(i,n),delete i.ref,delete i.key,function(e,t,r){var n,i,o,a=arguments,s=b({},e.props);for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(r=[r],o=3;o<arguments.length;o++)r.push(a[o]);return null!=r&&(s.children=r),x(e.type,s,n||e.key,i||e.ref,null)}(e,i)}return e}})).filter(Boolean)},t.prototype.render=function(e,t){var r=e.children,n=e.onChange,i=t.url,o=this.getMatchingChildren(E(r),i,!0),a=o[0]||null,s=this.previousUrl;return i!==s&&(this.previousUrl=i,"function"==typeof n&&n({router:this,url:i,previous:s,active:o,current:a})),a},t}(w),ce=function(e){return v("a",X({onClick:ne},e))};se.subscribers=Y,se.getCurrentUrl=Q,se.route=ee,se.Router=se,se.Route=function(e){return v(e.component,e)},se.Link=ce,se.exec=J;var le,ue,de,pe=0,me=[],he=d.__b,fe=d.__r,_e=d.diffed,ge=d.__c,be=d.unmount;function ye(e,t){d.__h&&d.__h(ue,e,pe||t),pe=0;var r=ue.__H||(ue.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ve(e){return pe=1,function(e,t,r){var n=ye(le++,2);return n.t=e,n.__c||(n.__=[r?r(t):Fe(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=ue),n.__}(Fe,e)}function xe(e,t){var r=ye(le++,3);!d.__s&&Ee(r.__H,t)&&(r.__=e,r.__H=t,ue.__H.__h.push(r))}function Ne(e){return pe=5,we((function(){return{current:e}}),[])}function we(e,t){var r=ye(le++,7);return Ee(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ke(e,t){return pe=8,we((function(){return e}),t)}function Oe(e){var t=ye(le++,10),r=ve();return t.__=e,ue.componentDidCatch||(ue.componentDidCatch=function(e){t.__&&t.__(e),r[1](e)}),[r[0],function(){r[1](void 0)}]}function Se(){me.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Ae),e.__H.__h.forEach(Ce),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}})),me=[]}d.__b=function(e){ue=null,he&&he(e)},d.__r=function(e){fe&&fe(e),le=0;var t=(ue=e.__c).__H;t&&(t.__h.forEach(Ae),t.__h.forEach(Ce),t.__h=[])},d.diffed=function(e){_e&&_e(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==me.push(t)&&de===d.requestAnimationFrame||((de=d.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),De&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);De&&(t=requestAnimationFrame(r))})(Se)),ue=void 0},d.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ae),e.__h=e.__h.filter((function(e){return!e.__||Ce(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],d.__e(r,e.__v)}})),ge&&ge(e,t)},d.unmount=function(e){be&&be(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Ae)}catch(r){d.__e(r,t.__v)}};var De="function"==typeof requestAnimationFrame;function Ae(e){var t=ue;"function"==typeof e.__c&&e.__c(),ue=t}function Ce(e){var t=ue;e.__c=e.__(),ue=t}function Ee(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function Fe(e,t){return"function"==typeof t?t(e):t}var Be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Me={},je={},Te={};Object.defineProperty(Te,"__esModule",{value:!0}),Te.ModelPath=Te.Path=Te.relativePath=void 0,Te.relativePath=function(e,t){return t.reduce(((e,t)=>"pop"===t?e.pop():e.push(t.push)),e)};class Ie{constructor(e,t){this.modelArr=null!=e?e:[],this.contextArr=null!=t?t:[]}last(){return this.modelArr[this.modelArr.length-1]}slice(e,t){return new Ie(this.modelArr.slice(e,t),this.contextArr)}shift(){return new Ie(this.modelArr.slice(1),this.contextArr)}pop(){return new Ie(this.modelArr.slice(0,-1),this.contextArr)}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new Ie([...this.modelArr,e],[...this.contextArr])}contextPush(e){if("number"==typeof e)return this.copy();const t=e.startsWith("minecraft:")?e.slice(10):e;return new Ie([...this.modelArr],[...this.contextArr,t])}copy(){return new Ie([...this.modelArr],[...this.contextArr])}getArray(){return this.modelArr}withModel(e){return new Pe(e,this)}getContext(){return this.contextArr}equals(e){return e.modelArr.length===this.modelArr.length&&e.modelArr.every(((e,t)=>e===this.modelArr[t]))}startsWith(e){return!(this.modelArr.length<e.modelArr.length)&&e.modelArr.every(((e,t)=>e===this.modelArr[t]))}endsWith(e){const t=this.modelArr.length-e.modelArr.length;return!(t<0)&&e.modelArr.every(((e,r)=>e===this.modelArr[t+r]))}toString(){return this.modelArr.map((e=>"string"==typeof e?`.${e}`:`[${e}]`)).join("").replace(/^\./,"")}forEach(e,t){return this.modelArr.forEach(e,t)}}Te.Path=Ie;class Pe extends Ie{constructor(e,t){super(null==t?void 0:t.modelArr,null==t?void 0:t.contextArr),this.model=e}getModel(){return this.model}get(){var e;return null===(e=this.model)||void 0===e?void 0:e.get(this)}set(e){var t;null===(t=this.model)||void 0===t||t.set(this,e)}slice(e,t){return new Pe(this.model,super.slice(e,t))}shift(){return new Pe(this.model,super.shift())}pop(){return new Pe(this.model,super.pop())}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new Pe(this.model,super.modelPush(e))}contextPush(e){return new Pe(this.model,super.contextPush(e))}copy(){return new Pe(this.model,super.copy())}}Te.ModelPath=Pe;var Le={};Object.defineProperty(Le,"__esModule",{value:!0}),Le.Errors=void 0;class Re{constructor(){this.errors=[]}add(e,t,...r){return this.errors.push({path:e,error:t,params:r}),!1}get(e,t=!1){return t?this.errors.filter((t=>t.path.equals(e))):this.errors.filter((t=>t.path.startsWith(e)))}getAll(){return this.errors}clear(){this.errors=[]}count(){return this.errors.length}*[Symbol.iterator](){for(const e of this.errors)yield e}}Le.Errors=Re;var ze={};function Ue(e){return e.replace(/(\\|")/g,"\\$1")}Object.defineProperty(ze,"__esModule",{value:!0}),ze.hexId=ze.quoteString=ze.escapeString=void 0,ze.escapeString=Ue,ze.quoteString=function(e){return`"${Ue(e)}"`};const $e=e=>("0"+e.toString(16)).substr(-2);ze.hexId=function(e=12){var t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,$e).join("")},Object.defineProperty(je,"__esModule",{value:!0}),je.DataModel=void 0;const Xe=Te,Je=Le,qe=ze;class He{constructor(e,t){var r,n,i,o;this.historyMax=null!==(r=null==t?void 0:t.historyMax)&&void 0!==r?r:50,this.verbose=null!==(n=null==t?void 0:t.verbose)&&void 0!==n&&n,this.wrapLists=null!==(i=null==t?void 0:t.wrapLists)&&void 0!==i&&i,this.schema=e;const a=null!==(o=null==t?void 0:t.initialData)&&void 0!==o?o:e.default();this.data=this.wrapLists?He.wrapLists(a):a,this.listeners=[],this.errors=new Je.Errors,this.history=[JSON.stringify(this.data)],this.historyIndex=0}addListener(e){this.listeners.push(e)}removeListener(e){const t=this.listeners.indexOf(e);t>-1&&this.listeners.splice(t,1)}invalidate(){const e=JSON.stringify(this.data);this.history[this.historyIndex]!==e&&(this.historyIndex+=1,this.history.splice(this.historyIndex,this.historyMax,e),this.history.length>this.historyMax&&(this.history.splice(0,1),this.historyIndex-=1)),this.silentInvalidate()}silentInvalidate(){this.listeners.forEach((e=>{e.invalidated&&e.invalidated(this),e.errors&&e.errors(this.errors)}))}reset(e,t){this.data=e,this.validate(t),this.invalidate()}get(e){let t=this.data;return e.forEach((e=>{if(void 0===t)return t;t=this.wrapLists&&"number"==typeof e?t[e].node:t[e]})),t}set(e,t,r){if(0===e.getArray().length)return void this.reset(t,!0);let n=this.data;e.pop().forEach((e=>{void 0!==n[e]&&"string"!=typeof n[e]&&"number"!=typeof n[e]||(this.wrapLists&&"number"==typeof e?n[e]={node:{},id:qe.hexId()}:n[e]={}),n=this.wrapLists&&"number"==typeof e?n[e].node:n[e]})),null!==n&&(void 0===t||"number"==typeof t&&isNaN(t)?"number"==typeof e.last()?n.splice(e.last(),1):delete n[e.last()]:this.wrapLists&&"number"==typeof e.last()?n[e.last()]={node:t,id:qe.hexId()}:n[e.last()]=t,r||(this.verbose&&console.log("Set",e.toString(),JSON.stringify(t)),this.validate(!0),this.invalidate()))}undo(){this.historyIndex>0&&(this.historyIndex-=1,this.data=JSON.parse(this.history[this.historyIndex]),this.validate(!1),this.silentInvalidate())}redo(){this.historyIndex<this.history.length-1&&(this.historyIndex+=1,this.data=JSON.parse(this.history[this.historyIndex]),this.validate(!1),this.silentInvalidate())}validate(e){var t;const r=(new Xe.Path).withModel(this);this.errors.clear(),this.data=null!==(t=this.schema.validate(r,this.data,this.errors,{loose:e,wrapLists:this.wrapLists}))&&void 0!==t?t:{}}error(e,t,...r){const n=new Je.Errors;n.add(e,t,r),this.listeners.forEach((e=>{e.errors&&e.errors(n)}))}static wrapLists(e){if(Array.isArray(e)){const t=e.map((e=>({node:this.wrapLists(e),id:qe.hexId()})));for(const r of Object.getOwnPropertySymbols(e))t[r]=e[r];return t}if("object"==typeof e&&null!==e){const t={};Object.entries(e).map((([e,r])=>{t[e]=this.wrapLists(r)}));for(const r of Object.getOwnPropertySymbols(e))t[r]=e[r];return t}return e}static unwrapLists(e){if(Array.isArray(e)){const t=e.map((e=>this.unwrapLists(e.node)));for(const r of Object.getOwnPropertySymbols(e))t[r]=e[r];return t}if("object"==typeof e&&null!==e){const t={};Object.entries(e).map((([e,r])=>{t[e]=this.unwrapLists(r)}));for(const r of Object.getOwnPropertySymbols(e))t[r]=e[r];return t}return e}}je.DataModel=He;var We,Ze={};We=Ze,Object.defineProperty(We,"__esModule",{value:!0}),We.Keep=We.Opt=We.Has=We.Mod=We.Base=void 0,We.Base={type:()=>"base",category:()=>{},default:()=>{},enabled:()=>!0,keep:()=>!1,optional:()=>!1,navigate(){return this},pathPush:e=>e,suggest:()=>[],validate:(e,t)=>t,validationOption:()=>{},hook(e,t,...r){return e.base({node:this},t,...r)},canUpdate:()=>!1,update:()=>[]},We.Mod=(e,t)=>s(s({},e),"function"==typeof t?t(e):t),We.Has=(e,t)=>We.Mod(t,{enabled:t=>void 0!==t.push(e).get()}),We.Opt=function(e){return c(s({},e),{optional:()=>!0})},We.Keep=function(e){return c(s({},e),{keep:()=>!0})};var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.BooleanNode=void 0;const Ke=je,Ye=Ze;Ge.BooleanNode=()=>c(s({},Ye.Base),{type:()=>"boolean",default:()=>!1,suggest:()=>["false","true"],validate(e,t,r,n){return n.loose&&"boolean"!=typeof t&&(t=n.wrapLists?Ke.DataModel.wrapLists(this.default()):this.default()),"boolean"==typeof t&&void 0!==t||r.add(e,"error.expected_boolean"),t},hook(e,t,...r){var n;return(null!==(n=e.boolean)&&void 0!==n?n:e.base).call(e,{node:this},t,...r)}});var Ve={},Qe={};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.ListNode=void 0;const et=je,tt=Ze;Qe.ListNode=(e,t)=>{var r,n;const i=null!==(r=null==t?void 0:t.minLength)&&void 0!==r?r:0,o=null!==(n=null==t?void 0:t.maxLength)&&void 0!==n?n:1/0,a=(null==t?void 0:t.minLength)&&(null==t?void 0:t.maxLength);return c(s({},tt.Base),{type:()=>"list",default:()=>(null==t?void 0:t.minLength)?[...Array(i)].map((t=>e.default())):[],navigate(t,r){const n=r+1;return t.getArray().length<=n?this:e.navigate(t,n)},pathPush:(e,t)=>e.push(parseInt(t.toString())).contextPush("entry"),validate(t,r,n,s){if(s.loose&&!Array.isArray(r)&&(r=s.wrapLists?et.DataModel.wrapLists(this.default()):this.default()),!Array.isArray(r))return n.add(t,"error.expected_list"),r;a&&(r.length<i||r.length>o)?i===o?n.add(t,"error.invalid_list_range.exact",r.length,i):n.add(t,"error.invalid_list_range.between",r.length,i,o):r.length<i?n.add(t,"error.invalid_list_range.smaller",r.length,i):r.length>o&&n.add(t,"error.invalid_list_range.larger",r.length,o);const c=r.map(((r,i)=>{const o=e.validate(t.push(i),s.wrapLists?r.node:r,n,s);return s.wrapLists?{node:o,id:r.id}:o}));for(const e of Object.getOwnPropertySymbols(r))c[e]=r[e];return c},hook(r,n,...i){var o;return(null!==(o=r.list)&&void 0!==o?o:r.base).call(r,{node:this,children:e,config:null!=t?t:{}},n,...i)}})};var rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.SwitchNode=void 0;const nt=Ze;rt.SwitchNode=e=>c(s({},nt.Base),{type(e){return this.activeCase(e,!0).node.type(e)},category(e){return this.activeCase(e,!0).node.category(e)},default:()=>e[0].node.default(),navigate(e,t){var r;const n=t+1;return null===(r=this.activeCase(e.slice(0,n)))||void 0===r?void 0:r.node.navigate(e,t)},pathPush(e,t){var r,n;return null!==(n=null===(r=this.activeCase(e))||void 0===r?void 0:r.node.pathPush(e,t))&&void 0!==n?n:e},suggest(t,r){var n,i;return null!==(i=null===(n=this.activeCase(t))||void 0===n?void 0:n.node.suggest(t,r))&&void 0!==i?i:e.filter((e=>e.match(t))).map((e=>e.node.suggest(t,r))).reduce(((e,t)=>e.concat(t)))},validate(e,t,r,n){let i=this.activeCase(e);return void 0===i?t:i.node.validate(e,t,r,n)},validationOption(e){var t;return null===(t=this.activeCase(e))||void 0===t?void 0:t.node.validationOption(e)},activeCase(t,r){const n=(e,t)=>{var r,n;return(null!==(r=t.priority)&&void 0!==r?r:0)-(null!==(n=e.priority)&&void 0!==n?n:0)},i=e.filter((e=>e.match(t))).sort(n);return r&&0===i.length?e.sort(n)[0]:i.length>0?i[0]:void 0},hook(e,t,...r){return this.activeCase(t,!0).node.hook(e,t,...r)}}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectOrPreset=e.StringOrList=e.ObjectOrList=e.ChoiceNode=void 0;const t=Qe,r=rt;e.ChoiceNode=(e,t)=>{const n=r.SwitchNode(e.map((e=>({type:e.type,priority:e.priority,match:t=>((e,t)=>{if(e.match)return e.match(t);switch(e.type){case"list":return Array.isArray(t);case"object":return"object"==typeof t&&!Array.isArray(t);default:return typeof t===e.type}})(e,t.get()),node:e.node}))));return c(s({},n),{validate(e,t,r,i){let o=n.activeCase(e,!0);return o.node.optional()?t:o.node.validate(e,t,r,i)},hook(r,i,...o){var a;return(null!==(a=r.choice)&&void 0!==a?a:r.base).call(r,{node:this,choices:e,config:null!=t?t:{},switchNode:n},i,...o)}})};const n=r=>(n,i)=>e.ChoiceNode([{type:r,node:n,change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:n.default()}},{type:"list",node:t.ListNode(n),change:e=>e?[e]:[]}],i);e.ObjectOrList=n("object"),e.StringOrList=n("string"),e.ObjectOrPreset=(t,r,n)=>e.ChoiceNode([{type:"string",priority:1,node:t,change:e=>Object.keys(n)[0]},{type:"object",node:r,change:e=>{var t;return null!==(t=n[e])&&void 0!==t?t:n[Object.keys(n)[0]]}}])}(Ve);var it={};Object.defineProperty(it,"__esModule",{value:!0}),it.MapNode=void 0;const ot=Ze,at=je;it.MapNode=(e,t,r)=>c(s({},ot.Base),{type:()=>"map",default:()=>({}),navigate(e,r){const n=r+1;return e.getArray().length<=n?this:t.navigate(e,n)},pathPush:(e,t)=>e.modelPush(t),suggest:t=>e.suggest(t,""),validate(r,n,i,o){if(o.loose&&"object"!=typeof n&&(n=o.wrapLists?at.DataModel.wrapLists(this.default()):this.default()),null===n||"object"!=typeof n)return i.add(r,"error.expected_object"),n;const a={};Object.keys(n).forEach((s=>{e.validate(r,s,i,o),a[s]=t.validate(r.push(s),n[s],i,o)}));for(const e of Object.getOwnPropertySymbols(n))a[e]=n[e];return a},validationOption(t){var n;return null!==(n=null==r?void 0:r.validation)&&void 0!==n?n:e.validationOption(t.push(""))},hook(n,i,...o){var a;return(null!==(a=n.map)&&void 0!==a?a:n.base).call(n,{node:this,keys:e,children:t,config:null!=r?r:{}},i,...o)}});var st={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberEnum=e.NumberNode=void 0;const t=Me,r=je,n=Ze;e.NumberNode=e=>{var t,i,o;const a=!!(null==e?void 0:e.color)||null!==(t=null==e?void 0:e.integer)&&void 0!==t&&t,l=(null==e?void 0:e.color)?0:null!==(i=null==e?void 0:e.min)&&void 0!==i?i:-1/0,u=(null==e?void 0:e.color)?16777215:null!==(o=null==e?void 0:e.max)&&void 0!==o?o:1/0,d=void 0!==(null==e?void 0:e.min)&&void 0!==(null==e?void 0:e.max);return c(s({},n.Base),{type:()=>"number",default:()=>l>0?l:0,validate(e,t,n,i){return i.loose&&"number"!=typeof t&&(t=i.wrapLists?r.DataModel.wrapLists(this.default()):this.default()),"number"!=typeof t?n.add(e,"error.expected_number"):a&&!Number.isInteger(t)?n.add(e,"error.expected_integer"):d&&(t<l||t>u)?n.add(e,"error.invalid_number_range.between",t,l,u):t<l?n.add(e,"error.invalid_number_range.smaller",t,l):t>u&&n.add(e,"error.invalid_number_range.larger",t,u),t},hook(t,r,...n){var i;return(null!==(i=t.number)&&void 0!==i?i:t.base).call(t,{node:this,integer:a,min:l,max:u,between:d,config:null!=e?e:{}},r,...n)}})},e.NumberEnum=({integer:r,values:n})=>t.Mod(e.NumberNode({integer:r}),(e=>({validate:(t,r,i,o)=>(r=e.validate(t,r,i,o),n.includes(r)||i.add(t,"error.invalid_number_enum",n.join(", ")),r)})))}(st);var ct={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=e.Case=e.Switch=void 0;const t=Ze,r=Te,a=Le,u=ze,d=je;e.Switch=Symbol("switch"),e.Case=Symbol("case"),e.ObjectNode=(p,m)=>{var h,f;const _=p,{[h=e.Switch]:g,[f=e.Case]:b}=_,y=((e,t)=>{var r={};for(var a in e)i.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&n)for(var a of n(e))t.indexOf(a)<0&&o.call(e,a)&&(r[a]=e[a]);return r})(_,[l(h),l(f)]),v=e=>{if(void 0===g)return y;const t=r.relativePath(e,g).get(),n=b[t];return s(s({},y),n)},x=(e,t)=>{var n;const i=g?r.relativePath(e,g).get():void 0,o=g&&null!==(n=b[i])&&void 0!==n?n:{},a=Object.keys(o),s=(null==m?void 0:m.context)?new r.ModelPath(e.getModel(),new r.Path(e.getArray(),[m.context])):e;return(!(null==m?void 0:m.disableSwitchContext)&&i&&a.includes(t)?s.contextPush(i):s).push(t)};return c(s({},t.Base),{type:()=>"object",category:()=>null==m?void 0:m.category,default:()=>({}),keep(){return this.optional()},navigate(e,t){const r=t+1,n=e.getArray();if(n.length<=r)return this;const i=v(e.slice(0,r))[n[r]];return null==i?void 0:i.navigate(e,r)},pathPush:(e,t)=>x(e,t.toString()),suggest(e,t){const r=v(e),n=Object.keys("object"==typeof t?t:{});return Object.keys(r).filter((t=>r[t].enabled(e))).filter((e=>!n.includes(e))).map(u.quoteString)},validate(e,t,n,i){if(i.loose&&"object"!=typeof t&&(t=i.wrapLists?d.DataModel.wrapLists(this.default()):this.default()),"object"!=typeof t||null===t)return n.add(e,"error.expected_object"),t;let o=y;if(g){const n=r.relativePath(e,g);let c=n.get();if(e.equals(n.pop())){const r=n.last();c=y[r].validate(e.push(r),t[r],new a.Errors,i)}o=s(s({},o),b[c])}const c=Object.keys(o),l=c.filter((e=>!o[e].optional())),u=new Set([...l,...Object.keys(t)]),p={};u.forEach((r=>{if(c.includes(r)){if(!o[r].enabled(e))return;const a=o[r].validate(e.push(r),t[r],n,i);!o[r].keep()&&o[r].optional()&&(void 0===a||Array.isArray(a)&&0===a.length||a.constructor===Object&&0===Object.keys(a).length)?delete p[r]:(p[r]=a,e.getModel().set(e.push(r),a,!0))}else p[r]=t[r]}));for(const r of Object.getOwnPropertySymbols(t))p[r]=t[r];return p},hook(e,t,...r){var n;return(null!==(n=e.object)&&void 0!==n?n:e.base).call(e,{node:this,fields:y,config:null!=m?m:{},filter:g,cases:b,getActiveFields:v,getChildModelPath:x},t,...r)}})}}(ct);var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.Reference=void 0,lt.Reference=(e,t)=>({type(r){return e.get(t).type.bind(this)(r)},category(r){return e.get(t).category.bind(this)(r)},default(){return e.get(t).default.bind(this)()},transform:(r,n)=>e.get(t).transform(r,n),enabled(r){return e.get(t).enabled.bind(this)(r)},keep(){return e.get(t).keep.bind(this)()},optional(){return e.get(t).optional.bind(this)()},navigate(r,n){return e.get(t).navigate.bind(this)(r,n)},pathPush(r,n){return e.get(t).pathPush.bind(this)(r,n)},suggest(r,n){return e.get(t).suggest.bind(this)(r,n)},validate(r,n,i,o){return e.get(t).validate.bind(this)(r,n,i,o)},validationOption(r){return e.get(t).validationOption.bind(this)(r)},hook(r,n,...i){return e.get(t).hook.bind(this)(r,n,...i)},activeCase(r,n){return e.get(t).activeCase.bind(this)(r,n)},canUpdate(r,n){return e.get(t).canUpdate.bind(this)(r,n)},update(r,n){return e.get(t).update.bind(this)(r,n)}});var ut={};Object.defineProperty(ut,"__esModule",{value:!0}),ut.StringNode=void 0;const dt=Ze,pt=ze,mt=je,ht=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.enum)},ft=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.validator)};ut.StringNode=(e,t)=>{const r=ht(t)?"string"==typeof t.enum?()=>{var r;return null!==(r=null==e?void 0:e.get(t.enum))&&void 0!==r?r:[]}:()=>t.enum:"resource"===(null==t?void 0:t.validator)?"string"==typeof t.params.pool?t.params.pool.startsWith("$")?()=>{var r;return null!==(r=null==e?void 0:e.get(t.params.pool.slice(1)))&&void 0!==r?r:[]}:()=>{var r;return null!==(r=null==e?void 0:e.get(t.params.pool))&&void 0!==r?r:[]}:()=>t.params.pool:()=>[];return c(s({},dt.Base),{type:()=>"string",default:()=>"",validate(e,n,i,o){if(o.loose&&"string"!=typeof n&&(n=(o.wrapLists?mt.DataModel.wrapLists(this.default()):this.default())||void 0),"string"!=typeof n)return i.add(e,"error.expected_string"),n;if(ft(t)&&("resource"===t.validator&&n.length>0&&!n.includes(":")&&(n="#"===n[0]?"#minecraft:"+n.slice(1):"minecraft:"+n),"resource"===t.validator&&("string"==typeof t.params.pool&&t.params.pool.startsWith("$")||t.params.allowTag&&"#"===n[0]||t.params.isDefinition||t.params.allowUnknown)))return n;if(ht(t)&&t.additional)return n;const a=r();return a.length>0&&!a.includes(n)&&i.add(e,"error.invalid_enum_option",n),n},suggest:()=>r().map(pt.quoteString),validationOption:()=>ft(t)?t:void 0,hook(e,n,...i){var o;return(null!==(o=e.string)&&void 0!==o?o:e.base).call(e,{node:this,getValues:r,config:t},n,...i)}})};var _t={};Object.defineProperty(_t,"__esModule",{value:!0});var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.CollectionRegistry=gt.SchemaRegistry=void 0;gt.SchemaRegistry=class{constructor(){this.registry={}}register(e,t){this.registry[e]=t}get(e){const t=this.registry[e];return void 0===t&&console.error(`Tried to access schema "${e}", but that doesn't exist.`),t}};gt.CollectionRegistry=class{constructor(){this.registry={}}register(e,t){this.registry[e]=t}get(e){const t=this.registry[e];return void 0===t&&console.warn(`Tried to access collection "${e}", but that doesn't exist.`),null!=t?t:[]}};var bt={};Object.defineProperty(bt,"__esModule",{value:!0}),function(e){var t=Be&&Be.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Be&&Be.__exportStar||function(e,r){for(var n in e)"default"===n||r.hasOwnProperty(n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(je,e),r(Te,e),r(Le,e),r(Ze,e),r(Ge,e),r(Ve,e),r(Qe,e),r(it,e),r(st,e),r(ct,e),r(lt,e),r(ut,e),r(rt,e),r(_t,e),r(gt,e),r(bt,e)}(Me);function yt(e){let t=e.length;for(;--t>=0;)e[t]=0}const vt=new Uint8Array([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]),xt=new Uint8Array([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]),Nt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),wt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kt=new Array(576);yt(kt);const Ot=new Array(60);yt(Ot);const St=new Array(512);yt(St);const Dt=new Array(256);yt(Dt);const At=new Array(29);yt(At);const Ct=new Array(30);function Et(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let Ft,Bt,Mt;function jt(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}yt(Ct);const Tt=e=>e<256?St[e]:St[256+(e>>>7)],It=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Pt=(e,t,r)=>{e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,It(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},Lt=(e,t,r)=>{Pt(e,r[2*t],r[2*t+1])},Rt=(e,t)=>{let r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1},zt=(e,t,r)=>{const n=new Array(16);let i,o,a=0;for(i=1;i<=15;i++)n[i]=a=a+r[i-1]<<1;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=Rt(n[t]++,t))}},Ut=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},$t=e=>{e.bi_valid>8?It(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Xt=(e,t,r,n)=>{const i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},Jt=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Xt(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Xt(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},qt=(e,t,r)=>{let n,i,o,a,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?Lt(e,i,t):(o=Dt[i],Lt(e,o+256+1,t),a=vt[o],0!==a&&(i-=At[o],Pt(e,i,a)),n--,o=Tt(n),Lt(e,o,r),a=xt[o],0!==a&&(n-=Ct[o],Pt(e,n,a)))}while(s<e.last_lit);Lt(e,256,t)},Ht=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let a,s,c,l=-1;for(e.heap_len=0,e.heap_max=573,a=0;a<o;a++)0!==r[2*a]?(e.heap[++e.heap_len]=l=a,e.depth[a]=0):r[2*a+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,r[2*c]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=n[2*c+1]);for(t.max_code=l,a=e.heap_len>>1;a>=1;a--)Jt(e,r,a);c=o;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Jt(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,r[2*c]=r[2*a]+r[2*s],e.depth[c]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,r[2*a+1]=r[2*s+1]=c,e.heap[1]=c++,Jt(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,d,p,m,h,f=0;for(p=0;p<=15;p++)e.bl_count[p]=0;for(r[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)u=e.heap[l],p=r[2*r[2*u+1]+1]+1,p>c&&(p=c,f++),r[2*u+1]=p,u>n||(e.bl_count[p]++,m=0,u>=s&&(m=a[u-s]),h=r[2*u],e.opt_len+=h*(p+m),o&&(e.static_len+=h*(i[2*u+1]+m)));if(0!==f){do{for(p=c-1;0===e.bl_count[p];)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[c]--,f-=2}while(f>0);for(p=c;0!==p;p--)for(u=e.bl_count[p];0!==u;)d=e.heap[--l],d>n||(r[2*d+1]!==p&&(e.opt_len+=(p-r[2*d+1])*r[2*d],r[2*d+1]=p),u--)}})(e,t),zt(r,l,e.bl_count)},Wt=(e,t,r)=>{let n,i,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<c&&i===a||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(c=138,l=3):i===a?(c=6,l=3):(c=7,l=4))},Zt=(e,t,r)=>{let n,i,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<c&&i===a)){if(s<l)do{Lt(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Lt(e,i,e.bl_tree),s--),Lt(e,16,e.bl_tree),Pt(e,s-3,2)):s<=10?(Lt(e,17,e.bl_tree),Pt(e,s-3,3)):(Lt(e,18,e.bl_tree),Pt(e,s-11,7));s=0,o=i,0===a?(c=138,l=3):i===a?(c=6,l=3):(c=7,l=4)}};let Gt=!1;const Kt=(e,t,r,n)=>{Pt(e,0+(n?1:0),3),((e,t,r,n)=>{$t(e),n&&(It(e,r),It(e,~r)),e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r})(e,t,r,!0)};var Yt={_tr_init:e=>{Gt||((()=>{let e,t,r,n,i;const o=new Array(16);for(r=0,n=0;n<28;n++)for(At[n]=r,e=0;e<1<<vt[n];e++)Dt[r++]=n;for(Dt[r-1]=n,i=0,n=0;n<16;n++)for(Ct[n]=i,e=0;e<1<<xt[n];e++)St[i++]=n;for(i>>=7;n<30;n++)for(Ct[n]=i<<7,e=0;e<1<<xt[n]-7;e++)St[256+i++]=n;for(t=0;t<=15;t++)o[t]=0;for(e=0;e<=143;)kt[2*e+1]=8,e++,o[8]++;for(;e<=255;)kt[2*e+1]=9,e++,o[9]++;for(;e<=279;)kt[2*e+1]=7,e++,o[7]++;for(;e<=287;)kt[2*e+1]=8,e++,o[8]++;for(zt(kt,287,o),e=0;e<30;e++)Ot[2*e+1]=5,Ot[2*e]=Rt(e,5);Ft=new Et(kt,vt,257,286,15),Bt=new Et(Ot,xt,0,30,15),Mt=new Et(new Array(0),Nt,0,19,7)})(),Gt=!0),e.l_desc=new jt(e.dyn_ltree,Ft),e.d_desc=new jt(e.dyn_dtree,Bt),e.bl_desc=new jt(e.bl_tree,Mt),e.bi_buf=0,e.bi_valid=0,Ut(e)},_tr_stored_block:Kt,_tr_flush_block:(e,t,r,n)=>{let i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),Ht(e,e.l_desc),Ht(e,e.d_desc),a=(e=>{let t;for(Wt(e,e.dyn_ltree,e.l_desc.max_code),Wt(e,e.dyn_dtree,e.d_desc.max_code),Ht(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*wt[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?Kt(e,t,r,n):4===e.strategy||o===i?(Pt(e,2+(n?1:0),3),qt(e,kt,Ot)):(Pt(e,4+(n?1:0),3),((e,t,r,n)=>{let i;for(Pt(e,t-257,5),Pt(e,r-1,5),Pt(e,n-4,4),i=0;i<n;i++)Pt(e,e.bl_tree[2*wt[i]+1],3);Zt(e,e.dyn_ltree,t-1),Zt(e,e.dyn_dtree,r-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),qt(e,e.dyn_ltree,e.dyn_dtree)),Ut(e),n&&$t(e)},_tr_tally:(e,t,r)=>(e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(Dt[r]+256+1)]++,e.dyn_dtree[2*Tt(t)]++),e.last_lit===e.lit_bufsize-1),_tr_align:e=>{Pt(e,2,3),Lt(e,256,kt),(e=>{16===e.bi_valid?(It(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var Vt=(e,t,r,n)=>{let i=65535&e|0,o=e>>>16&65535|0,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{i=i+t[n++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};const Qt=new Uint32Array((()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t})());var er=(e,t,r,n)=>{const i=Qt,o=n+r;e^=-1;for(let a=n;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e},tr={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"},rr={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_MEM_ERROR:-4,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};const{_tr_init:nr,_tr_stored_block:ir,_tr_flush_block:or,_tr_tally:ar,_tr_align:sr}=Yt,{Z_NO_FLUSH:cr,Z_PARTIAL_FLUSH:lr,Z_FULL_FLUSH:ur,Z_FINISH:dr,Z_BLOCK:pr,Z_OK:mr,Z_STREAM_END:hr,Z_STREAM_ERROR:fr,Z_DATA_ERROR:_r,Z_BUF_ERROR:gr,Z_DEFAULT_COMPRESSION:br,Z_FILTERED:yr,Z_HUFFMAN_ONLY:vr,Z_RLE:xr,Z_FIXED:Nr,Z_DEFAULT_STRATEGY:wr,Z_UNKNOWN:kr,Z_DEFLATED:Or}=rr,Sr=(e,t)=>(e.msg=tr[t],t),Dr=e=>(e<<1)-(e>4?9:0),Ar=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let Cr=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask;const Er=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))},Fr=(e,t)=>{or(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Er(e.strm)},Br=(e,t)=>{e.pending_buf[e.pending++]=t},Mr=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},jr=(e,t,r,n)=>{let i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),1===e.state.wrap?e.adler=Vt(e.adler,t,i,r):2===e.state.wrap&&(e.adler=er(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},Tr=(e,t)=>{let r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,u=e.w_mask,d=e.prev,p=e.strstart+258;let m=l[o+a-1],h=l[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,l[r+a]===h&&l[r+a-1]===m&&l[r]===l[o]&&l[++r]===l[o+1]){o+=2,r++;do{}while(l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&o<p);if(n=258-(p-o),o=p-258,n>a){if(e.match_start=t,a=n,n>=s)break;m=l[o+a-1],h=l[o+a]}}}while((t=d[t&u])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead},Ir=e=>{const t=e.w_size;let r,n,i,o,a;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-262)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do{i=e.head[--r],e.head[r]=i>=t?i-t:0}while(--n);n=t,r=n;do{i=e.prev[--r],e.prev[r]=i>=t?i-t:0}while(--n);o+=t}if(0===e.strm.avail_in)break;if(n=jr(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=Cr(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=Cr(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},Pr=(e,t)=>{let r,n;for(;;){if(e.lookahead<262){if(Ir(e),e.lookahead<262&&t===cr)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=Cr(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=Tr(e,r)),e.match_length>=3)if(n=ar(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Cr(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Cr(e,e.ins_h,e.window[e.strstart+1]);else n=ar(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Fr(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===dr?(Fr(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Fr(e,!1),0===e.strm.avail_out)?1:2},Lr=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<262){if(Ir(e),e.lookahead<262&&t===cr)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=Cr(e,e.ins_h,e.window[e.strstart+3-1]),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=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=Tr(e,r),e.match_length<=5&&(e.strategy===yr||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=ar(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=Cr(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(Fr(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(n=ar(e,0,e.window[e.strstart-1]),n&&Fr(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=ar(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===dr?(Fr(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Fr(e,!1),0===e.strm.avail_out)?1:2};function Rr(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}const zr=[new Rr(0,0,0,0,((e,t)=>{let r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ir(e),0===e.lookahead&&t===cr)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Fr(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(Fr(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===dr?(Fr(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Fr(e,!1),e.strm.avail_out),1)})),new Rr(4,4,8,4,Pr),new Rr(4,5,16,8,Pr),new Rr(4,6,32,32,Pr),new Rr(4,4,16,16,Lr),new Rr(8,16,32,32,Lr),new Rr(8,16,128,128,Lr),new Rr(8,32,128,256,Lr),new Rr(32,128,258,1024,Lr),new Rr(32,258,258,4096,Lr)];function Ur(){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=Or,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ar(this.dyn_ltree),Ar(this.dyn_dtree),Ar(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ar(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ar(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}const $r=e=>{if(!e||!e.state)return Sr(e,fr);e.total_in=e.total_out=0,e.data_type=kr;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=cr,nr(t),mr},Xr=e=>{const t=$r(e);var r;return t===mr&&((r=e.state).window_size=2*r.w_size,Ar(r.head),r.max_lazy_match=zr[r.level].max_lazy,r.good_match=zr[r.level].good_length,r.nice_match=zr[r.level].nice_length,r.max_chain_length=zr[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),t},Jr=(e,t,r,n,i,o)=>{if(!e)return fr;let a=1;if(t===br&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||r!==Or||n<8||n>15||t<0||t>9||o<0||o>Nr)return Sr(e,fr);8===n&&(n=9);const s=new Ur;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=r,Xr(e)};var qr={deflateInit:(e,t)=>Jr(e,t,Or,15,8,wr),deflateInit2:Jr,deflateReset:Xr,deflateResetKeep:$r,deflateSetHeader:(e,t)=>e&&e.state?2!==e.state.wrap?fr:(e.state.gzhead=t,mr):fr,deflate:(e,t)=>{let r,n;if(!e||!e.state||t>pr||t<0)return e?Sr(e,fr):fr;const i=e.state;if(!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==dr)return Sr(e,0===e.avail_out?gr:fr);i.strm=e;const o=i.last_flush;if(i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,Br(i,31),Br(i,139),Br(i,8),i.gzhead?(Br(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Br(i,255&i.gzhead.time),Br(i,i.gzhead.time>>8&255),Br(i,i.gzhead.time>>16&255),Br(i,i.gzhead.time>>24&255),Br(i,9===i.level?2:i.strategy>=vr||i.level<2?4:0),Br(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Br(i,255&i.gzhead.extra.length),Br(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=er(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(Br(i,0),Br(i,0),Br(i,0),Br(i,0),Br(i,0),Br(i,9===i.level?2:i.strategy>=vr||i.level<2?4:0),Br(i,3),i.status=113);else{let t=Or+(i.w_bits-8<<4)<<8,r=-1;r=i.strategy>=vr||i.level<2?0:i.level<6?1:6===i.level?2:3,t|=r<<6,0!==i.strstart&&(t|=32),t+=31-t%31,i.status=113,Mr(i,t),0!==i.strstart&&(Mr(i,e.adler>>>16),Mr(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>r&&(e.adler=er(e.adler,i.pending_buf,i.pending-r,r)),Er(e),r=i.pending,i.pending!==i.pending_buf_size));)Br(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(e.adler=er(e.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=er(e.adler,i.pending_buf,i.pending-r,r)),Er(e),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,Br(i,n)}while(0!==n);i.gzhead.hcrc&&i.pending>r&&(e.adler=er(e.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=er(e.adler,i.pending_buf,i.pending-r,r)),Er(e),r=i.pending,i.pending===i.pending_buf_size)){n=1;break}n=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,Br(i,n)}while(0!==n);i.gzhead.hcrc&&i.pending>r&&(e.adler=er(e.adler,i.pending_buf,i.pending-r,r)),0===n&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Er(e),i.pending+2<=i.pending_buf_size&&(Br(i,255&e.adler),Br(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(Er(e),0===e.avail_out)return i.last_flush=-1,mr}else if(0===e.avail_in&&Dr(t)<=Dr(o)&&t!==dr)return Sr(e,gr);if(666===i.status&&0!==e.avail_in)return Sr(e,gr);if(0!==e.avail_in||0!==i.lookahead||t!==cr&&666!==i.status){let r=i.strategy===vr?((e,t)=>{let r;for(;;){if(0===e.lookahead&&(Ir(e),0===e.lookahead)){if(t===cr)return 1;break}if(e.match_length=0,r=ar(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Fr(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===dr?(Fr(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Fr(e,!1),0===e.strm.avail_out)?1:2})(i,t):i.strategy===xr?((e,t)=>{let r,n,i,o;const a=e.window;for(;;){if(e.lookahead<=258){if(Ir(e),e.lookahead<=258&&t===cr)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=e.strstart+258;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=258-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=ar(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ar(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Fr(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===dr?(Fr(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Fr(e,!1),0===e.strm.avail_out)?1:2})(i,t):zr[i.level].func(i,t);if(3!==r&&4!==r||(i.status=666),1===r||3===r)return 0===e.avail_out&&(i.last_flush=-1),mr;if(2===r&&(t===lr?sr(i):t!==pr&&(ir(i,0,0,!1),t===ur&&(Ar(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),Er(e),0===e.avail_out))return i.last_flush=-1,mr}return t!==dr?mr:i.wrap<=0?hr:(2===i.wrap?(Br(i,255&e.adler),Br(i,e.adler>>8&255),Br(i,e.adler>>16&255),Br(i,e.adler>>24&255),Br(i,255&e.total_in),Br(i,e.total_in>>8&255),Br(i,e.total_in>>16&255),Br(i,e.total_in>>24&255)):(Mr(i,e.adler>>>16),Mr(i,65535&e.adler)),Er(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?mr:hr)},deflateEnd:e=>{if(!e||!e.state)return fr;const t=e.state.status;return 42!==t&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?Sr(e,fr):(e.state=null,113===t?Sr(e,_r):mr)},deflateSetDictionary:(e,t)=>{let r=t.length;if(!e||!e.state)return fr;const n=e.state,i=n.wrap;if(2===i||1===i&&42!==n.status||n.lookahead)return fr;if(1===i&&(e.adler=Vt(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){0===i&&(Ar(n.head),n.strstart=0,n.block_start=0,n.insert=0);let e=new Uint8Array(n.w_size);e.set(t.subarray(r-n.w_size,r),0),t=e,r=n.w_size}const o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,Ir(n);n.lookahead>=3;){let e=n.strstart,t=n.lookahead-2;do{n.ins_h=Cr(n,n.ins_h,n.window[e+3-1]),n.prev[e&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=e,e++}while(--t);n.strstart=e,n.lookahead=2,Ir(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,n.wrap=i,mr},deflateInfo:"pako deflate (from Nodeca project)"};const Hr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Wr=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(const t in r)Hr(r,t)&&(e[t]=r[t])}}return e},Zr=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,o=e.length;n<o;n++){let t=e[n];r.set(t,i),i+=t.length}return r};let Gr=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(kb){Gr=!1}const Kr=new Uint8Array(256);for(let Sb=0;Sb<256;Sb++)Kr[Sb]=Sb>=252?6:Sb>=248?5:Sb>=240?4:Sb>=224?3:Sb>=192?2:1;Kr[254]=Kr[254]=1;var Yr=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,r,n,i,o,a=e.length,s=0;for(i=0;i<a;i++)r=e.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=e.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)r=e.charCodeAt(i),55296==(64512&r)&&i+1<a&&(n=e.charCodeAt(i+1),56320==(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t},Vr=(e,t)=>{const r=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let n,i;const o=new Array(2*r);for(i=0,n=0;n<r;){let t=e[n++];if(t<128){o[i++]=t;continue}let a=Kr[t];if(a>4)o[i++]=65533,n+=a-1;else{for(t&=2===a?31:3===a?15:7;a>1&&n<r;)t=t<<6|63&e[n++],a--;a>1?o[i++]=65533:t<65536?o[i++]=t:(t-=65536,o[i++]=55296|t>>10&1023,o[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Gr)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r})(o,i)},Qr=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let r=t-1;for(;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+Kr[e[r]]>t?r:t};var en=function(){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};const tn=Object.prototype.toString,{Z_NO_FLUSH:rn,Z_SYNC_FLUSH:nn,Z_FULL_FLUSH:on,Z_FINISH:an,Z_OK:sn,Z_STREAM_END:cn,Z_DEFAULT_COMPRESSION:ln,Z_DEFAULT_STRATEGY:un,Z_DEFLATED:dn}=rr;function pn(e){this.options=Wr({level:ln,method:dn,chunkSize:16384,windowBits:15,memLevel:8,strategy:un},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new en,this.strm.avail_out=0;let r=qr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==sn)throw new Error(tr[r]);if(t.header&&qr.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Yr(t.dictionary):"[object ArrayBuffer]"===tn.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=qr.deflateSetDictionary(this.strm,e),r!==sn)throw new Error(tr[r]);this._dict_set=!0}}pn.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?an:rn,"string"==typeof e?r.input=Yr(e):"[object ArrayBuffer]"===tn.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(o===nn||o===on)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=qr.deflate(r,o),i===cn)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=qr.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===sn;if(0!==r.avail_out){if(o>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pn.prototype.onData=function(e){this.chunks.push(e)},pn.prototype.onEnd=function(e){e===sn&&(this.result=Zr(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var mn=function(e,t){let r,n,i,o,a,s,c,l,u,d,p,m,h,f,_,g,b,y,v,x,N,w,k,O;const S=e.state;r=e.next_in,k=e.input,n=r+(e.avail_in-5),i=e.next_out,O=e.output,o=i-(t-e.avail_out),a=i+(e.avail_out-257),s=S.dmax,c=S.wsize,l=S.whave,u=S.wnext,d=S.window,p=S.hold,m=S.bits,h=S.lencode,f=S.distcode,_=(1<<S.lenbits)-1,g=(1<<S.distbits)-1;e:do{m<15&&(p+=k[r++]<<m,m+=8,p+=k[r++]<<m,m+=8),b=h[p&_];t:for(;;){if(y=b>>>24,p>>>=y,m-=y,y=b>>>16&255,0===y)O[i++]=65535&b;else{if(!(16&y)){if(0==(64&y)){b=h[(65535&b)+(p&(1<<y)-1)];continue t}if(32&y){S.mode=12;break e}e.msg="invalid literal/length code",S.mode=30;break e}v=65535&b,y&=15,y&&(m<y&&(p+=k[r++]<<m,m+=8),v+=p&(1<<y)-1,p>>>=y,m-=y),m<15&&(p+=k[r++]<<m,m+=8,p+=k[r++]<<m,m+=8),b=f[p&g];r:for(;;){if(y=b>>>24,p>>>=y,m-=y,y=b>>>16&255,!(16&y)){if(0==(64&y)){b=f[(65535&b)+(p&(1<<y)-1)];continue r}e.msg="invalid distance code",S.mode=30;break e}if(x=65535&b,y&=15,m<y&&(p+=k[r++]<<m,m+=8,m<y&&(p+=k[r++]<<m,m+=8)),x+=p&(1<<y)-1,x>s){e.msg="invalid distance too far back",S.mode=30;break e}if(p>>>=y,m-=y,y=i-o,x>y){if(y=x-y,y>l&&S.sane){e.msg="invalid distance too far back",S.mode=30;break e}if(N=0,w=d,0===u){if(N+=c-y,y<v){v-=y;do{O[i++]=d[N++]}while(--y);N=i-x,w=O}}else if(u<y){if(N+=c+u-y,y-=u,y<v){v-=y;do{O[i++]=d[N++]}while(--y);if(N=0,u<v){y=u,v-=y;do{O[i++]=d[N++]}while(--y);N=i-x,w=O}}}else if(N+=u-y,y<v){v-=y;do{O[i++]=d[N++]}while(--y);N=i-x,w=O}for(;v>2;)O[i++]=w[N++],O[i++]=w[N++],O[i++]=w[N++],v-=3;v&&(O[i++]=w[N++],v>1&&(O[i++]=w[N++]))}else{N=i-x;do{O[i++]=O[N++],O[i++]=O[N++],O[i++]=O[N++],v-=3}while(v>2);v&&(O[i++]=O[N++],v>1&&(O[i++]=O[N++]))}break}}break}}while(r<n&&i<a);v=m>>3,r-=v,m-=v<<3,p&=(1<<m)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=i<a?a-i+257:257-(i-a),S.hold=p,S.bits=m};const hn=new Uint16Array([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]),fn=new Uint8Array([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]),_n=new Uint16Array([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]),gn=new Uint8Array([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]);var bn=(e,t,r,n,i,o,a,s)=>{const c=s.bits;let l,u,d,p,m,h,f=0,_=0,g=0,b=0,y=0,v=0,x=0,N=0,w=0,k=0,O=null,S=0;const D=new Uint16Array(16),A=new Uint16Array(16);let C,E,F,B=null,M=0;for(f=0;f<=15;f++)D[f]=0;for(_=0;_<n;_++)D[t[r+_]]++;for(y=c,b=15;b>=1&&0===D[b];b--);if(y>b&&(y=b),0===b)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(g=1;g<b&&0===D[g];g++);for(y<g&&(y=g),N=1,f=1;f<=15;f++)if(N<<=1,N-=D[f],N<0)return-1;if(N>0&&(0===e||1!==b))return-1;for(A[1]=0,f=1;f<15;f++)A[f+1]=A[f]+D[f];for(_=0;_<n;_++)0!==t[r+_]&&(a[A[t[r+_]]++]=_);if(0===e?(O=B=a,h=19):1===e?(O=hn,S-=257,B=fn,M-=257,h=256):(O=_n,B=gn,h=-1),k=0,_=0,f=g,m=o,v=y,x=0,d=-1,w=1<<y,p=w-1,1===e&&w>852||2===e&&w>592)return 1;for(;;){C=f-x,a[_]<h?(E=0,F=a[_]):a[_]>h?(E=B[M+a[_]],F=O[S+a[_]]):(E=96,F=0),l=1<<f-x,u=1<<v,g=u;do{u-=l,i[m+(k>>x)+u]=C<<24|E<<16|F|0}while(0!==u);for(l=1<<f-1;k&l;)l>>=1;if(0!==l?(k&=l-1,k+=l):k=0,_++,0==--D[f]){if(f===b)break;f=t[r+a[_]]}if(f>y&&(k&p)!==d){for(0===x&&(x=y),m+=g,v=f-x,N=1<<v;v+x<b&&(N-=D[v+x],!(N<=0));)v++,N<<=1;if(w+=1<<v,1===e&&w>852||2===e&&w>592)return 1;d=k&p,i[d]=y<<24|v<<16|m-o|0}}return 0!==k&&(i[m+k]=f-x<<24|64<<16|0),s.bits=y,0};const{Z_FINISH:yn,Z_BLOCK:vn,Z_TREES:xn,Z_OK:Nn,Z_STREAM_END:wn,Z_NEED_DICT:kn,Z_STREAM_ERROR:On,Z_DATA_ERROR:Sn,Z_MEM_ERROR:Dn,Z_BUF_ERROR:An,Z_DEFLATED:Cn}=rr,En=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Fn(){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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Bn=e=>{if(!e||!e.state)return On;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Nn},Mn=e=>{if(!e||!e.state)return On;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Bn(e)},jn=(e,t)=>{let r;if(!e||!e.state)return On;const n=e.state;return t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?On:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Mn(e))},Tn=(e,t)=>{if(!e)return On;const r=new Fn;e.state=r,r.window=null;const n=jn(e,t);return n!==Nn&&(e.state=null),n};let In,Pn,Ln=!0;const Rn=e=>{if(Ln){In=new Int32Array(512),Pn=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(bn(1,e.lens,0,288,In,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;bn(2,e.lens,0,32,Pn,0,e.work,{bits:5}),Ln=!1}e.lencode=In,e.lenbits=9,e.distcode=Pn,e.distbits=5},zn=(e,t,r,n)=>{let i;const o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),o.window.set(t.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(t.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var Un={inflateReset:Mn,inflateReset2:jn,inflateResetKeep:Bn,inflateInit:e=>Tn(e,15),inflateInit2:Tn,inflate:(e,t)=>{let r,n,i,o,a,s,c,l,u,d,p,m,h,f,_,g,b,y,v,x,N,w,k=0;const O=new Uint8Array(4);let S,D;const A=new Uint8Array([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&&0!==e.avail_in)return On;r=e.state,12===r.mode&&(r.mode=13),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,d=s,p=c,w=Nn;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;u<16;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(2&r.wrap&&35615===l){r.check=0,O[0]=255&l,O[1]=l>>>8&255,r.check=er(r.check,O,2,0),l=0,u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=30;break}if((15&l)!==Cn){e.msg="unknown compression method",r.mode=30;break}if(l>>>=4,u-=4,N=8+(15&l),0===r.wbits)r.wbits=N;else if(N>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<r.wbits,e.adler=r.check=1,r.mode=512&l?10:12,l=0,u=0;break;case 2:for(;u<16;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(r.flags=l,(255&r.flags)!==Cn){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(O[0]=255&l,O[1]=l>>>8&255,r.check=er(r.check,O,2,0)),l=0,u=0,r.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}r.head&&(r.head.time=l),512&r.flags&&(O[0]=255&l,O[1]=l>>>8&255,O[2]=l>>>16&255,O[3]=l>>>24&255,r.check=er(r.check,O,4,0)),l=0,u=0,r.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(O[0]=255&l,O[1]=l>>>8&255,r.check=er(r.check,O,2,0)),l=0,u=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(O[0]=255&l,O[1]=l>>>8&255,r.check=er(r.check,O,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(m=r.length,m>s&&(m=s),m&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(o,o+m),N)),512&r.flags&&(r.check=er(r.check,n,m,o)),s-=m,o+=m,r.length-=m),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;m=0;do{N=n[o+m++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&m<s);if(512&r.flags&&(r.check=er(r.check,n,m,o)),s-=m,o+=m,N)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;m=0;do{N=n[o+m++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&m<s);if(512&r.flags&&(r.check=er(r.check,n,m,o)),s-=m,o+=m,N)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;u<16;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(l!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}l=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;u<32;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}e.adler=r.check=En(l),l=0,u=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,kn;e.adler=r.check=1,r.mode=12;case 12:if(t===vn||t===xn)break e;case 13:if(r.last){l>>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}switch(r.last=1&l,l>>>=1,u-=1,3&l){case 0:r.mode=14;break;case 1:if(Rn(r),r.mode=20,t===xn){l>>>=2,u-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}l>>>=2,u-=2;break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,u=0,r.mode=15,t===xn)break e;case 15:r.mode=16;case 16:if(m=r.length,m){if(m>s&&(m=s),m>c&&(m=c),0===m)break e;i.set(n.subarray(o,o+m),a),s-=m,o+=m,c-=m,a+=m,r.length-=m;break}r.mode=12;break;case 17:for(;u<14;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(r.nlen=257+(31&l),l>>>=5,u-=5,r.ndist=1+(31&l),l>>>=5,u-=5,r.ncode=4+(15&l),l>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}r.lens[A[r.have++]]=7&l,l>>>=3,u-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},w=bn(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,w){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;k=r.lencode[l&(1<<r.lenbits)-1],_=k>>>24,g=k>>>16&255,b=65535&k,!(_<=u);){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(b<16)l>>>=_,u-=_,r.lens[r.have++]=b;else{if(16===b){for(D=_+2;u<D;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(l>>>=_,u-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}N=r.lens[r.have-1],m=3+(3&l),l>>>=2,u-=2}else if(17===b){for(D=_+3;u<D;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,N=0,m=3+(7&l),l>>>=3,u-=3}else{for(D=_+7;u<D;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,N=0,m=11+(127&l),l>>>=7,u-=7}if(r.have+m>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;m--;)r.lens[r.have++]=N}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},w=bn(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,w){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},w=bn(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,w){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,t===xn)break e;case 20:r.mode=21;case 21:if(s>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,mn(e,p),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;k=r.lencode[l&(1<<r.lenbits)-1],_=k>>>24,g=k>>>16&255,b=65535&k,!(_<=u);){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(g&&0==(240&g)){for(y=_,v=g,x=b;k=r.lencode[x+((l&(1<<y+v)-1)>>y)],_=k>>>24,g=k>>>16&255,b=65535&k,!(y+_<=u);){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}l>>>=y,u-=y,r.back+=y}if(l>>>=_,u-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(D=r.extra;u<D;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;k=r.distcode[l&(1<<r.distbits)-1],_=k>>>24,g=k>>>16&255,b=65535&k,!(_<=u);){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(0==(240&g)){for(y=_,v=g,x=b;k=r.distcode[x+((l&(1<<y+v)-1)>>y)],_=k>>>24,g=k>>>16&255,b=65535&k,!(y+_<=u);){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}l>>>=y,u-=y,r.back+=y}if(l>>>=_,u-=_,r.back+=_,64&g){e.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(D=r.extra;u<D;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===c)break e;if(m=p-c,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}m>r.wnext?(m-=r.wnext,h=r.wsize-m):h=r.wnext-m,m>r.length&&(m=r.length),f=r.window}else f=i,h=a-r.offset,m=r.length;m>c&&(m=c),c-=m,r.length-=m;do{i[a++]=f[h++]}while(--m);0===r.length&&(r.mode=21);break;case 26:if(0===c)break e;i[a++]=r.length,c--,r.mode=21;break;case 27:if(r.wrap){for(;u<32;){if(0===s)break e;s--,l|=n[o++]<<u,u+=8}if(p-=c,e.total_out+=p,r.total+=p,p&&(e.adler=r.check=r.flags?er(r.check,i,p,a-p):Vt(r.check,i,p,a-p)),p=c,(r.flags?l:En(l))!==r.check){e.msg="incorrect data check",r.mode=30;break}l=0,u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;u<32;){if(0===s)break e;s--,l+=n[o++]<<u,u+=8}if(l!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}l=0,u=0}r.mode=29;case 29:w=wn;break e;case 30:w=Sn;break e;case 31:return Dn;case 32:default:return On}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,(r.wsize||p!==e.avail_out&&r.mode<30&&(r.mode<27||t!==yn))&&zn(e,e.output,e.next_out,p-e.avail_out),d-=e.avail_in,p-=e.avail_out,e.total_in+=d,e.total_out+=p,r.total+=p,r.wrap&&p&&(e.adler=r.check=r.flags?er(r.check,i,p,e.next_out-p):Vt(r.check,i,p,e.next_out-p)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===d&&0===p||t===yn)&&w===Nn&&(w=An),w},inflateEnd:e=>{if(!e||!e.state)return On;let t=e.state;return t.window&&(t.window=null),e.state=null,Nn},inflateGetHeader:(e,t)=>{if(!e||!e.state)return On;const r=e.state;return 0==(2&r.wrap)?On:(r.head=t,t.done=!1,Nn)},inflateSetDictionary:(e,t)=>{const r=t.length;let n,i,o;return e&&e.state?(n=e.state,0!==n.wrap&&11!==n.mode?On:11===n.mode&&(i=1,i=Vt(i,t,r,0),i!==n.check)?Sn:(o=zn(e,t,r,r),o?(n.mode=31,Dn):(n.havedict=1,Nn))):On},inflateInfo:"pako inflate (from Nodeca project)"};var $n=function(){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};const Xn=Object.prototype.toString,{Z_NO_FLUSH:Jn,Z_FINISH:qn,Z_OK:Hn,Z_STREAM_END:Wn,Z_NEED_DICT:Zn,Z_STREAM_ERROR:Gn,Z_DATA_ERROR:Kn,Z_MEM_ERROR:Yn}=rr;function Vn(e){this.options=Wr({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new en,this.strm.avail_out=0;let r=Un.inflateInit2(this.strm,t.windowBits);if(r!==Hn)throw new Error(tr[r]);if(this.header=new $n,Un.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Yr(t.dictionary):"[object ArrayBuffer]"===Xn.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Un.inflateSetDictionary(this.strm,t.dictionary),r!==Hn)))throw new Error(tr[r])}Vn.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=t===~~t?t:!0===t?qn:Jn,"[object ArrayBuffer]"===Xn.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),o=Un.inflate(r,a),o===Zn&&i&&(o=Un.inflateSetDictionary(r,i),o===Hn?o=Un.inflate(r,a):o===Kn&&(o=Zn));r.avail_in>0&&o===Wn&&r.state.wrap>0&&0!==e[r.next_in];)Un.inflateReset(r),o=Un.inflate(r,a);switch(o){case Gn:case Kn:case Zn:case Yn:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||o===Wn))if("string"===this.options.to){let e=Qr(r.output,r.next_out),t=r.next_out-e,i=Vr(r.output,e);r.next_out=t,r.avail_out=n-t,t&&r.output.set(r.output.subarray(e,e+t),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(o!==Hn||0!==s){if(o===Wn)return o=Un.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},Vn.prototype.onData=function(e){this.chunks.push(e)},Vn.prototype.onEnd=function(e){e===Hn&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Zr(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Qn,ei,ti={exports:{}},ri={exports:{}};Qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&ei.rotl(e,8)|4278255360&ei.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=ei.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var n=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?t.push(Qn.charAt(n>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,n=0;r<e.length;n=++r%4)0!=n&&t.push((Qn.indexOf(e.charAt(r-1))&Math.pow(2,-2*n+8)-1)<<2*n|Qn.indexOf(e.charAt(r))>>>6-2*n);return t}},ri.exports=ei;var ni={utf8:{stringToBytes:function(e){return ni.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ni.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}},ii=ni,oi=function(e){return null!=e&&(ai(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ai(e.slice(0,0))}(e)||!!e._isBuffer)};function ai(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}!function(){var e=ri.exports,t=ii.utf8,r=oi,n=ii.bin,i=function(o,a){o.constructor==String?o=a&&"binary"===a.encoding?n.stringToBytes(o):t.stringToBytes(o):r(o)?o=Array.prototype.slice.call(o,0):Array.isArray(o)||o.constructor===Uint8Array||(o=o.toString());for(var s=e.bytesToWords(o),c=8*o.length,l=1732584193,u=-271733879,d=-1732584194,p=271733878,m=0;m<s.length;m++)s[m]=16711935&(s[m]<<8|s[m]>>>24)|4278255360&(s[m]<<24|s[m]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var h=i._ff,f=i._gg,_=i._hh,g=i._ii;for(m=0;m<s.length;m+=16){var b=l,y=u,v=d,x=p;l=h(l,u,d,p,s[m+0],7,-680876936),p=h(p,l,u,d,s[m+1],12,-389564586),d=h(d,p,l,u,s[m+2],17,606105819),u=h(u,d,p,l,s[m+3],22,-1044525330),l=h(l,u,d,p,s[m+4],7,-176418897),p=h(p,l,u,d,s[m+5],12,1200080426),d=h(d,p,l,u,s[m+6],17,-1473231341),u=h(u,d,p,l,s[m+7],22,-45705983),l=h(l,u,d,p,s[m+8],7,1770035416),p=h(p,l,u,d,s[m+9],12,-1958414417),d=h(d,p,l,u,s[m+10],17,-42063),u=h(u,d,p,l,s[m+11],22,-1990404162),l=h(l,u,d,p,s[m+12],7,1804603682),p=h(p,l,u,d,s[m+13],12,-40341101),d=h(d,p,l,u,s[m+14],17,-1502002290),l=f(l,u=h(u,d,p,l,s[m+15],22,1236535329),d,p,s[m+1],5,-165796510),p=f(p,l,u,d,s[m+6],9,-1069501632),d=f(d,p,l,u,s[m+11],14,643717713),u=f(u,d,p,l,s[m+0],20,-373897302),l=f(l,u,d,p,s[m+5],5,-701558691),p=f(p,l,u,d,s[m+10],9,38016083),d=f(d,p,l,u,s[m+15],14,-660478335),u=f(u,d,p,l,s[m+4],20,-405537848),l=f(l,u,d,p,s[m+9],5,568446438),p=f(p,l,u,d,s[m+14],9,-1019803690),d=f(d,p,l,u,s[m+3],14,-187363961),u=f(u,d,p,l,s[m+8],20,1163531501),l=f(l,u,d,p,s[m+13],5,-1444681467),p=f(p,l,u,d,s[m+2],9,-51403784),d=f(d,p,l,u,s[m+7],14,1735328473),l=_(l,u=f(u,d,p,l,s[m+12],20,-1926607734),d,p,s[m+5],4,-378558),p=_(p,l,u,d,s[m+8],11,-2022574463),d=_(d,p,l,u,s[m+11],16,1839030562),u=_(u,d,p,l,s[m+14],23,-35309556),l=_(l,u,d,p,s[m+1],4,-1530992060),p=_(p,l,u,d,s[m+4],11,1272893353),d=_(d,p,l,u,s[m+7],16,-155497632),u=_(u,d,p,l,s[m+10],23,-1094730640),l=_(l,u,d,p,s[m+13],4,681279174),p=_(p,l,u,d,s[m+0],11,-358537222),d=_(d,p,l,u,s[m+3],16,-722521979),u=_(u,d,p,l,s[m+6],23,76029189),l=_(l,u,d,p,s[m+9],4,-640364487),p=_(p,l,u,d,s[m+12],11,-421815835),d=_(d,p,l,u,s[m+15],16,530742520),l=g(l,u=_(u,d,p,l,s[m+2],23,-995338651),d,p,s[m+0],6,-198630844),p=g(p,l,u,d,s[m+7],10,1126891415),d=g(d,p,l,u,s[m+14],15,-1416354905),u=g(u,d,p,l,s[m+5],21,-57434055),l=g(l,u,d,p,s[m+12],6,1700485571),p=g(p,l,u,d,s[m+3],10,-1894986606),d=g(d,p,l,u,s[m+10],15,-1051523),u=g(u,d,p,l,s[m+1],21,-2054922799),l=g(l,u,d,p,s[m+8],6,1873313359),p=g(p,l,u,d,s[m+15],10,-30611744),d=g(d,p,l,u,s[m+6],15,-1560198380),u=g(u,d,p,l,s[m+13],21,1309151649),l=g(l,u,d,p,s[m+4],6,-145523070),p=g(p,l,u,d,s[m+11],10,-1120210379),d=g(d,p,l,u,s[m+2],15,718787259),u=g(u,d,p,l,s[m+9],21,-343485551),l=l+b>>>0,u=u+y>>>0,d=d+v>>>0,p=p+x>>>0}return e.endian([l,u,d,p])};i._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},i._blocksize=16,i._digestsize=16,ti.exports=function(t,r){if(null==t)throw new Error("Illegal argument "+t);var o=e.wordsToBytes(i(t,r));return r&&r.asBytes?o:r&&r.asString?n.bytesToString(o):e.bytesToHex(o)}}();var si,ci,li=ti.exports;(ci=si||(si={})).UP="up",ci.DOWN="down",ci.NORTH="north",ci.EAST="east",ci.SOUTH="south",ci.WEST="west";const ui={[si.UP]:[0,1,0],[si.DOWN]:[0,-1,0],[si.NORTH]:[0,0,-1],[si.EAST]:[1,0,0],[si.SOUTH]:[0,0,1],[si.WEST]:[-1,0,0]};var di,pi,mi,hi,fi,_i,gi,bi,yi,vi,xi,Ni,wi,ki,Oi,Si;function Di(e,t,r){if(!e[t])throw new Error(`Missing ${t} tag`);if(e[t].type!==r)throw new Error(`Expected ${t} to be of type ${r}, but found ${e[t].type}`);return e[t].value}!function(e){e.ALL=[e.UP,e.DOWN,e.NORTH,e.EAST,e.SOUTH,e.WEST],e.normal=function(e){return ui[e]}}(si||(si={})),function(e){e.create=function(e,t,r){return[e,t,r]},e.offset=function(e,t,r,n){return[e[0]+t,e[1]+r,e[2]+n]},e.towards=function(t,r){return e.offset(t,...si.normal(r))}}(di||(di={})),function(e){function t(e){return"object"==typeof e&&null!==e?e:void 0}e.readNumber=function(e){return"number"==typeof e?e:void 0},e.readInt=function(e){return"number"==typeof e?Math.floor(e):void 0},e.readString=function(e){return"string"==typeof e?e:void 0},e.readBoolean=function(e){return"boolean"==typeof e?e:void 0},e.readObject=t,e.readArray=function(e,t){if(Array.isArray(e))return e.map((e=>t(e)))},e.readMap=function(e,r){var n;const i=null!==(n=t(e))&&void 0!==n?n:{};return Object.fromEntries(Object.entries(i).map((([e,t])=>[e,r(t)])))},e.compose=function(e,t,r){const n=t(e);return n?r(n):void 0}}(pi||(pi={}));class Ai{constructor(e,t={}){this.name=e,this.properties=t}getName(){return this.name}getProperties(){return this.properties}getProperty(e){return this.properties[e]}isFluid(){return"minecraft:water"===this.name||"minecraft:lava"===this.name}equals(e){return this.name===e.name&&Object.keys(this.properties).every((t=>e.properties[t]===this.properties[t]))}toString(){return 0===Object.keys(this.properties).length?this.name:`${this.name}[${Object.entries(this.properties).map((([e,t])=>e+"="+t)).join(",")}]`}static fromNbt(e){const t=Di(e.value,"Name","string"),r=function(e,t){try{return e()}catch(r){return t}}((()=>Di(e.value,"Properties","compound")),{}),n=Object.keys(r).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:Di(r,t,"string")})),{});return new Ai(t,n)}static fromJson(e){var t,r;const n=null!==(t=pi.readObject(e))&&void 0!==t?t:{},i=null!==(r=pi.readString(n.Name))&&void 0!==r?r:"minecraft:stone",o=pi.readMap(n.Properties,(e=>{var t;return null!==(t=pi.readString(e))&&void 0!==t?t:""}));return new Ai(i,o)}}Ai.AIR=new Ai("minecraft:air");class Ci{constructor(e){this.minY=e,this.storage=Array(Ci.SIZE),this.palette=[Ai.AIR]}get minBlockY(){return this.minY<<4}index(e,t,r){return(e<<8)+(t<<4)+r}getBlockState(e,t,r){var n;const i=this.storage[this.index(e,t,r)];return null!==(n=this.palette[i])&&void 0!==n?n:Ai.AIR}setBlockState(e,t,r,n){let i=this.palette.findIndex((e=>e.equals(n)));-1===i&&(i=this.palette.length,this.palette.push(n)),this.storage[this.index(e,t,r)]=i}}Ci.WIDTH=16,Ci.SIZE=Ci.WIDTH*Ci.WIDTH*Ci.WIDTH;class Ei{constructor(e,t,r){this.minY=e,this.height=t,this.pos=r,this.sections=Array(this.sectionsCount).fill(null)}get maxY(){return this.minY+this.height}get minSection(){return this.minY>>4}get maxSection(){return 1+(this.maxY-1>>4)}get sectionsCount(){return this.maxSection-this.minSection}getSectionIndex(e){return(e>>4)-this.minSection}getBlockState(e){var t;const[r,n,i]=e,o=this.sections[this.getSectionIndex(n)];return null!==(t=null==o?void 0:o.getBlockState(15&r,15&n,15&i))&&void 0!==t?t:Ai.AIR}setBlockState(e,t){const[r,n,i]=e,o=this.getSectionIndex(n);let a=this.sections[o];if(null===a){if(t.equals(Ai.AIR))return;a=this.getOrCreateSection(o)}a.setBlockState(15&r,15&n,15&i,t)}getOrCreateSection(e){return null==this.sections[e]&&(this.sections[e]=new Ci(this.minSection+e)),this.sections[e]}}function Fi(e){return e*e}function Bi(e,t,r){return Math.max(t,Math.min(r,e))}function Mi(e,t,r){return t+e*(r-t)}function ji(e,t,r,n,i,o){return Mi(t,Mi(e,r,n),Mi(e,i,o))}function Ti(e,t,r){return r<0?e:r>1?t:Mi(r,e,t)}function Ii(e){return e*e*e*(e*(6*e-15)+10)}!function(e){e.create=function(e,t){return[e,t]},e.fromBlockPos=function(e){return[e[0]>>4,e[2]>>4]},e.fromLong=function(e){return[4294967295&Number(e),Number(e>>BigInt(32))]},e.minBlockX=function(e){return e[0]<<4},e.minBlockZ=function(e){return e[1]<<4},e.maxBlockX=function(e){return e[0]<<19},e.maxBlockZ=function(e){return e[1]<<19}}(mi||(mi={}));class Pi{constructor(e){this.seed=BigInt(0),this.setSeed(e)}fork(){return new Pi(this.nextLong())}setSeed(e){this.seed=e^Pi.MULTIPLIER&Pi.MODULUS_MASK}advance(){this.seed=this.seed*Pi.MULTIPLIER+Pi.INCREMENT&Pi.MODULUS_MASK}consume(e){for(let t=0;t<e;t+=1)this.advance()}next(e){this.advance();const t=Number(this.seed>>BigInt(Pi.MODULUS_BITS-e));return t>2147483647?t-4294967296:t}nextInt(e){if(void 0===e)return this.next(32);if(0==(e&e-1))return Number(BigInt(e)*BigInt(this.next(31))>>BigInt(31));let t,r;for(;(t=this.next(31))-(r=t%e)+(e-1)<0;);return r}nextLong(){return(BigInt(this.next(32))<<BigInt(32))+BigInt(this.next(32))}nextFloat(){return this.next(24)*Pi.FLOAT_MULTIPLIER}nextDouble(){const e=this.next(30);return this.advance(),e*Pi.DOUBLE_MULTIPLIER}}Pi.MODULUS_BITS=48,Pi.MODULUS_MASK=BigInt("281474976710655"),Pi.MULTIPLIER=BigInt("25214903917"),Pi.INCREMENT=BigInt("11"),Pi.FLOAT_MULTIPLIER=1/Math.pow(2,24),Pi.DOUBLE_MULTIPLIER=1/Math.pow(2,30);class Li{constructor(e){this.seed=[BigInt(0),BigInt(0)],this.seed=e}static create(e){return new Li(Li.upgradeSeedTo128bit(e))}static mixStafford13(e){return((e=((e=(e^e>>BigInt(30))*BigInt("-4658895280553007687")&BigInt("0xFFFFFFFFFFFFFFFF"))^e>>BigInt(27))*BigInt("-7723592293110705685")&BigInt("0xFFFFFFFFFFFFFFFF"))^e>>BigInt(31))&BigInt("0xFFFFFFFFFFFFFFFF")}static upgradeSeedTo128bit(e){e<0&&(e+=BigInt("0x10000000000000000"));const t=e^Li.SILVER_RATIO_64,r=t+Li.GOLDEN_RATIO_64&BigInt("0xFFFFFFFFFFFFFFFF");return[Li.mixStafford13(t),Li.mixStafford13(r)]}static rotateLeft(e,t){return e<<t&BigInt("0xFFFFFFFFFFFFFFFF")|e>>BigInt(64)-t}setSeed(e){this.seed=Li.upgradeSeedTo128bit(e)}fork(){return new Li([this.next(),this.next()])}static getSeed(e,t,r){let n=e*BigInt(3129871)^r*BigInt(116129781)^t;return n=n*n*BigInt(42317861)+n*BigInt(11),n>>BigInt(16)}forkAt(e,t,r){const n=Li.getSeed(e,t,r)^this.seed[0];return new Li([n,this.seed[1]])}static LongfromBytes(e,t,r,n,i,o,a,s){return BigInt(e)<<BigInt(56)|BigInt(t)<<BigInt(48)|BigInt(r)<<BigInt(40)|BigInt(n)<<BigInt(32)|BigInt(i)<<BigInt(24)|BigInt(o)<<BigInt(16)|BigInt(a)<<BigInt(8)|BigInt(s)}forkWithHashOf(e){const t=li(e,{asBytes:!0}),r=Li.LongfromBytes(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),n=Li.LongfromBytes(t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]);return new Li([r^this.seed[0],n^this.seed[1]])}next(){const e=this.seed[0];let t=this.seed[1];const r=Li.rotateLeft(e+t&BigInt("0xFFFFFFFFFFFFFFFF"),BigInt(17))+e&BigInt("0xFFFFFFFFFFFFFFFF");return t^=e,this.seed=[Li.rotateLeft(e,BigInt(49))^t^t<<BigInt(21)&BigInt("0xFFFFFFFFFFFFFFFF"),Li.rotateLeft(t,BigInt(28))],r}nextLong(){let e=this.next();return e>BigInt("0x8000000000000000")&&(e-=BigInt("0x10000000000000000")),e}consume(e){let t=this.seed[0],r=this.seed[1];for(let n=0;n<e;n+=1)r^=t,t=Li.rotateLeft(t,BigInt(49))^r^r<<BigInt(21),r=Li.rotateLeft(r,BigInt(28));this.seed=[t,r]}nextBits(e){return this.next()>>BigInt(64-e)}nextInt(e){let t=this.next()&BigInt(4294967295);if(e){const r=BigInt(e);let n=t*r,i=n&BigInt(4294967295);if(i<r){const e=((~r&BigInt(4294967295))+BigInt(1))%r;for(;i<e;)t=this.next()&BigInt(4294967295),n=t*r,i=n&BigInt(4294967295)}const o=n>>BigInt(32);return Number(o)}{let e=Number(t);return e>=2147483648&&(e-=4294967296),e}}nextFloat(){return Number(this.nextBits(24))*Li.FLOAT_MULTIPLIER}nextDouble(){return Number(this.nextBits(53))*Li.DOUBLE_MULTIPLIER}parityConfigString(){return"seedLo: "+this.seed[0]+", seedHi: "+this.seed[1]}}Li.SILVER_RATIO_64=BigInt("7640891576956012809"),Li.GOLDEN_RATIO_64=BigInt("-7046029254386353131"),Li.FLOAT_MULTIPLIER=1/Math.pow(2,24),Li.DOUBLE_MULTIPLIER=11102230246251565e-32;class Ri{constructor(e){this.xo=256*e.nextDouble(),this.yo=256*e.nextDouble(),this.zo=256*e.nextDouble(),this.p=Array(256);for(let t=0;t<256;t+=1)this.p[t]=t;for(let t=0;t<256;t+=1){const r=e.nextInt(256-t),n=this.p[t];this.p[t]=this.p[t+r],this.p[t+r]=n}}sample2D(e,t){let r,n,i;const o=(e+t)*Ri.F2,a=Math.floor(e+o),s=e-(a-(r=(a+(n=Math.floor(t+o)))*Ri.G2));let c,l;s>(i=t-(n-r))?(c=1,l=0):(c=0,l=1);const u=s-c+Ri.G2,d=i-l+Ri.G2,p=s-1+2*Ri.G2,m=i-1+2*Ri.G2,h=255&a,f=255&n,_=this.P(h+this.P(f))%12,g=this.P(h+c+this.P(f+l))%12,b=this.P(h+1+this.P(f+1))%12;return 70*(this.getCornerNoise3D(_,s,i,0,.5)+this.getCornerNoise3D(g,u,d,0,.5)+this.getCornerNoise3D(b,p,m,0,.5))}sample(e,t,r){const n=.3333333333333333*(e+t+r),i=Math.floor(e+n),o=Math.floor(t+n),a=Math.floor(r+n),s=.16666666666666666*(i+o+a),c=e-(i-s),l=t-(o-s),u=r-(a-s);let d,p,m,h,f,_;c>=l?l>=u?(d=1,p=0,m=0,h=1,f=1,_=0):c>=u?(d=1,p=0,m=0,h=1,f=0,_=1):(d=0,p=0,m=1,h=1,f=0,_=1):l<u?(d=0,p=0,m=1,h=0,f=1,_=1):c<u?(d=0,p=1,m=0,h=0,f=1,_=1):(d=0,p=1,m=0,h=1,f=1,_=0);const g=c-d+.16666666666666666,b=l-p+.16666666666666666,y=u-m+.16666666666666666,v=c-h+.3333333333333333,x=l-f+.3333333333333333,N=u-_+.3333333333333333,w=c-.5,k=l-.5,O=u-.5,S=255&i,D=255&o,A=255&a,C=this.P(S+this.P(D+this.P(A)))%12,E=this.P(S+d+this.P(D+p+this.P(A+m)))%12,F=this.P(S+h+this.P(D+f+this.P(A+_)))%12,B=this.P(S+1+this.P(D+1+this.P(A+1)))%12;return 32*(this.getCornerNoise3D(C,c,l,u,.6)+this.getCornerNoise3D(E,g,b,y,.6)+this.getCornerNoise3D(F,v,x,N,.6)+this.getCornerNoise3D(B,w,k,O,.6))}P(e){return this.p[255&e]}getCornerNoise3D(e,t,r,n,i){let o,a=i-t*t-r*r-n*n;return a<0?o=0:(a*=a,o=a*a*Ri.gradDot(e,t,r,n)),o}static gradDot(e,t,r,n){const i=Ri.GRADIENT[15&e];return i[0]*t+i[1]*r+i[2]*n}}Ri.GRADIENT=[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1],[1,1,0],[0,-1,1],[-1,1,0],[0,-1,-1]],Ri.F2=.5*(Math.sqrt(3)-1),Ri.G2=(3-Math.sqrt(3))/6;class zi{constructor(e){this.xo=256*e.nextDouble(),this.yo=256*e.nextDouble(),this.zo=256*e.nextDouble(),this.p=Array(256);for(let t=0;t<256;t+=1)this.p[t]=t>127?t-256:t;for(let t=0;t<256;t+=1){const r=e.nextInt(256-t),n=this.p[t];this.p[t]=this.p[t+r],this.p[t+r]=n}}sample(e,t,r,n=0,i=0){const o=e+this.xo,a=t+this.yo,s=r+this.zo,c=Math.floor(o),l=Math.floor(a),u=Math.floor(s),d=o-c,p=a-l,m=s-u;let h=0;if(0!==n){const e=i>=0&&i<p?i:p;h=Math.floor(e/n+1e-7)*n}return this.sampleAndLerp(c,l,u,d,p-h,m,p)}sampleAndLerp(e,t,r,n,i,o,a){const s=this.P(e),c=this.P(e+1),l=this.P(s+t),u=this.P(s+t+1),d=this.P(c+t),p=this.P(c+t+1),m=Ri.gradDot(this.P(l+r),n,i,o),h=Ri.gradDot(this.P(d+r),n-1,i,o),f=Ri.gradDot(this.P(u+r),n,i-1,o),_=Ri.gradDot(this.P(p+r),n-1,i-1,o),g=Ri.gradDot(this.P(l+r+1),n,i,o-1),b=Ri.gradDot(this.P(d+r+1),n-1,i,o-1),y=Ri.gradDot(this.P(u+r+1),n,i-1,o-1),v=Ri.gradDot(this.P(p+r+1),n-1,i-1,o-1);return function(e,t,r,n,i,o,a,s,c,l,u){return Mi(r,ji(e,t,n,i,o,a),ji(e,t,s,c,l,u))}(Ii(n),Ii(a),Ii(o),m,h,f,_,g,b,y,v)}P(e){return 255&this.p[255&e]}}class Ui{constructor(e,t,r){if(e instanceof Li){const n=e.fork();this.noiseLevels=Array(r.length);for(let e=0;e<r.length;e++)if(0!==r[e]){const r=t+e;this.noiseLevels[e]=new zi(n.forkWithHashOf("octave_"+r))}}else{if(1-t<r.length)throw new Error("Positive octaves are not allowed when using LegacyRandom");this.noiseLevels=Array(r.length);for(let n=-t;n>=0;n-=1)n<r.length&&0!==r[n]?this.noiseLevels[n]=new zi(e):e.consume(262)}this.amplitudes=r,this.lowestFreqInputFactor=Math.pow(2,t),this.lowestFreqValueFactor=Math.pow(2,r.length-1)/(Math.pow(2,r.length)-1)}sample(e,t,r,n=0,i=0,o=!1){let a=0,s=this.lowestFreqInputFactor,c=this.lowestFreqValueFactor;for(let l=0;l<this.noiseLevels.length;l+=1){const u=this.noiseLevels[l];u&&(a+=this.amplitudes[l]*c*u.sample(Ui.wrap(e*s),o?-u.yo:Ui.wrap(t*s),Ui.wrap(r*s),n*s,i*s)),s*=2,c/=2}return a}getOctaveNoise(e){return this.noiseLevels[this.noiseLevels.length-1-e]}static wrap(e){return e-33554432*Math.floor(e/33554432+.5)}}class $i{constructor(e,t,r,n){this.cellWidth=r,this.cellHeight=n,this.minLimitNoise=new Ui(e,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.maxLimitNoise=new Ui(e,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.mainNoise=new Ui(e,-7,[1,1,1,1,1,0,0,0]),this.xzScale=684.412*t.xzScale,this.yScale=684.412*t.yScale,this.xzMainScale=this.xzScale/t.xzFactor,this.yMainScale=this.yScale/t.yFactor}sample(e,t,r){let n;e=Math.floor(e/this.cellWidth),t=Math.floor(t/this.cellHeight),r=Math.floor(r/this.cellWidth);let i=0,o=1;for(let c=0;c<8;c+=1){if(n=this.mainNoise.getOctaveNoise(c),n){const a=this.xzMainScale*o,s=this.yMainScale*o,c=Ui.wrap(e*a),l=Ui.wrap(t*s),u=Ui.wrap(r*a);i+=n.sample(c,l,u,s,t*s)/o}o/=2}i=(i/10+1)/2,o=1;let a=0,s=0;for(let c=0;c<16;c+=1){const l=this.xzScale*o,u=this.yScale*o,d=Ui.wrap(e*l),p=Ui.wrap(t*u),m=Ui.wrap(r*l);i<1&&(n=this.minLimitNoise.getOctaveNoise(c))&&(a+=n.sample(d,p,m,u,t*u)/o),i>0&&(n=this.maxLimitNoise.getOctaveNoise(c))&&(s+=n.sample(d,p,m,u,t*u)/o),o/=2}return Ti(a/512,s/512,i)/128}}(hi||(hi={})).fromJson=function(e){var t,r,n,i,o;const a=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return{xzScale:null!==(r=pi.readNumber(a.xz_scale))&&void 0!==r?r:1,yScale:null!==(n=pi.readNumber(a.y_scale))&&void 0!==n?n:1,xzFactor:null!==(i=pi.readNumber(a.xz_factor))&&void 0!==i?i:80,yFactor:null!==(o=pi.readNumber(a.y_factor))&&void 0!==o?o:80}};class Xi{constructor(e,{firstOctave:t,amplitudes:r}){this.first=new Ui(e,t,r),this.second=new Ui(e,t,r);let n=1/0,i=-1/0;for(let a=0;a<r.length;a+=1)0!==r[a]&&(n=Math.min(n,a),i=Math.max(i,a));const o=.1*(1+1/(i-n+1));this.valueFactor=1/6/o}sample(e,t,r){const n=e*Xi.INPUT_FACTOR,i=t*Xi.INPUT_FACTOR,o=r*Xi.INPUT_FACTOR;return(this.first.sample(e,t,r)+this.second.sample(n,i,o))*this.valueFactor}}Xi.INPUT_FACTOR=1.0181268882175227,(fi||(fi={})).fromJson=function(e){var t,r,n;const i=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return{firstOctave:null!==(r=pi.readInt(i.firstOctave))&&void 0!==r?r:0,amplitudes:null!==(n=pi.readArray(i.amplitudes,(e=>{var t;return null!==(t=pi.readNumber(e))&&void 0!==t?t:0})))&&void 0!==n?n:[]}},function(e){e.fromJson=function(t,r){var n,i,o,a;if("number"==typeof t)return new Ji(t);const s=null!==(n=pi.readObject(t))&&void 0!==n?n:{},c=new qi(r(s.coordinate)),l=null!==(i=pi.readArray(s.points,(e=>{var t;return null!==(t=pi.readObject(e))&&void 0!==t?t:{}})))&&void 0!==i?i:[];if(0===l.length)return new Ji(0);for(const u of l){const t=null!==(o=pi.readNumber(u.location))&&void 0!==o?o:0,n=e.fromJson(u.value,r),i=null!==(a=pi.readNumber(u.derivative))&&void 0!==a?a:0;c.addPoint(t,n,i)}return c}}(_i||(_i={}));class Ji{constructor(e){this.value=e}apply(){return this.value}toJson(){return this.value}}class qi{constructor(e,t=[],r=[],n=[]){this.coordinate=e,this.locations=t,this.values=r,this.derivatives=n}apply(e){const t=this.coordinate.apply(e),r=function(e,t,r){let n=t-e;for(;n>0;){const t=Math.floor(n/2),i=e+t;r(i)?n=t:(e=i+1,n-=t+1)}return e}(0,this.locations.length,(e=>t<this.locations[e]))-1,n=this.locations.length-1;if(r<0)return this.values[0].apply(e)+this.derivatives[0]*(t-this.locations[0]);if(r===n)return this.values[n].apply(e)+this.derivatives[n]*(t-this.locations[n]);const i=this.locations[r],o=this.locations[r+1],a=this.derivatives[r],s=this.derivatives[r+1],c=(t-i)/(o-i),l=this.values[r].apply(e),u=this.values[r+1].apply(e),d=a*(o-i)-(u-l),p=-s*(o-i)+(u-l);return Mi(c,l,u)+c*(1-c)*Mi(c,d,p)}addPoint(e,t,r=0){return this.locations.push(e),this.values.push("number"==typeof t?new Ji(t):t),this.derivatives.push(r),this}toJson(){return{coordinate:this.coordinate.toJson(),points:this.locations.map(((e,t)=>({location:e,value:this.values[t].toJson(),derivative:this.derivatives[t]})))}}}(gi||(gi={})).rotate=function(e,t,r){let{up:n,down:i,north:o,east:a,south:s,west:c}=e;switch(r){case 90:[o,a,s,c]=[a,s,c,o];break;case 180:[o,a,s,c]=[s,c,o,a];break;case 270:[o,a,s,c]=[c,o,a,s]}switch(t){case 90:[n,o,i,s]=[o,i,s,n];break;case 180:[n,o,i,s]=[i,s,n,o];break;case 270:[n,o,i,s]=[s,n,o,i]}return{up:n,down:i,north:o,east:a,south:s,west:c}},function(e){function t(e,t){return"number"==typeof e?new r(e,null!=t?t:e):e}e.target=function(e,t,r,n,o,a){return new i(e,t,r,n,o,a)},e.parameters=function(e,r,i,o,a,s,c){return new n(t(e),t(r),t(i),t(o),t(a),t(s),c)},e.param=t;class r{constructor(e,t){this.min=e,this.max=t}distance(e){const t=("number"==typeof e?e:e.min)-this.max,r=this.min-("number"==typeof e?e:e.max);return t>0?t:Math.max(r,0)}union(e){return new r(Math.min(this.min,e.min),Math.max(this.max,e.max))}static fromJson(e){var t;if("number"==typeof e)return new r(e,e);const[n,i]=null!==(t=pi.readArray(e,(e=>pi.readNumber(e))))&&void 0!==t?t:[];return new r(null!=n?n:0,null!=i?i:0)}}e.Param=r;class n{constructor(e,t,r,n,i,o,a){this.temperature=e,this.humidity=t,this.continentalness=r,this.erosion=n,this.depth=i,this.weirdness=o,this.offset=a}fittness(e){return Fi(this.temperature.distance(e.temperature))+Fi(this.humidity.distance(e.humidity))+Fi(this.continentalness.distance(e.continentalness))+Fi(this.erosion.distance(e.erosion))+Fi(this.depth.distance(e.depth))+Fi(this.weirdness.distance(e.weirdness))+Fi(this.offset-e.offset)}space(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,new r(this.offset,this.offset)]}static fromJson(e){var t,i;const o=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return new n(r.fromJson(o.temperature),r.fromJson(o.humidity),r.fromJson(o.continentalness),r.fromJson(o.erosion),r.fromJson(o.depth),r.fromJson(o.weirdness),null!==(i=pi.readInt(o.offset))&&void 0!==i?i:0)}}e.ParamPoint=n;class i{constructor(e,t,r,n,i,o){this.temperature=e,this.humidity=t,this.continentalness=r,this.erosion=n,this.depth=i,this.weirdness=o}get offset(){return 0}toArray(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,this.offset]}}e.TargetPoint=i,e.Parameters=class{constructor(e){this.things=e,this.index=new o(e)}find(e){return this.index.search(e,((e,t)=>e.distance(t)))}};class o{constructor(e){this.root=o.build(e.map((([e,t])=>new c(e,t))))}static build(e){if(1===e.length)return e[0];if(e.length<=o.CHILDREN_PER_NODE){const t=e.map((e=>{let t=0;for(let r=0;r<7;r+=1){const n=e.space[r];t+=Math.abs((n.min+n.max)/2)}return{key:t,node:e}})).sort(((e,t)=>e.key-t.key)).map((({node:e})=>e));return new s(t)}let t=1/0,r=-1,n=[];for(let i=0;i<7;++i){e=o.sort(e,i,!1),n=o.bucketize(e);let a=0;for(const e of n)a+=o.area(e.space);t>a&&(t=a,r=i)}return e=o.sort(e,r,!1),n=o.bucketize(e),n=o.sort(n,r,!0),new s(n.map((e=>o.build(e.children))))}static sort(e,t,r){return e.map((e=>{const n=e.space[t],i=(n.min+n.max)/2;return{key:r?Math.abs(i):i,node:e}})).sort(((e,t)=>e.key-t.key)).map((({node:e})=>e))}static bucketize(e){const t=[];let r=[];const n=Math.pow(10,Math.floor(Math.log(e.length-.01)/Math.log(10)));for(const i of e)r.push(i),r.length<n||(t.push(new s(r)),r=[]);return 0!==r.length&&t.push(new s(r)),t}static area(e){let t=0;for(const r of e)t+=Math.abs(r.max-r.min);return t}search(e,t){return this.root.search(e.toArray(),t).thing()}}o.CHILDREN_PER_NODE=10,e.RTree=o;class a{constructor(e){this.space=e}distance(e){let t=0;for(let r=0;r<7;r+=1)t+=Fi(this.space[r].distance(e[r]));return t}}e.RNode=a;class s extends a{constructor(e){super(s.buildSpace(e)),this.children=e}static buildSpace(e){let t=[...Array(7)].map((()=>new r(1/0,-1/0)));for(const r of e)t=[...Array(7)].map(((e,n)=>t[n].union(r.space[n])));return t}search(e,t){let r=1/0,n=null;for(const i of this.children){const o=t(i,e);if(r<=o)continue;const a=i.search(e,t),s=i==a?o:t(a,e);r<=s||(r=s,n=a)}return n}}e.RSubTree=s;class c extends a{constructor(e,t){super(e.space()),this.thing=t}search(){return this}}e.RLeaf=c}(bi||(bi={}));class Hi{constructor(e){this.biome=e}getBiome(){return this.biome}static fromJson(e){var t,r;const n=null!==(t=pi.readObject(e))&&void 0!==t?t:{},i=null!==(r=pi.readString(n.biome))&&void 0!==r?r:"minecraft:the_void";return new Hi(i)}}class Wi{constructor(e,t,r){this.offsetSampler=e,this.factorSampler=t,this.jaggednessSampler=r}static extractor(e){return{apply:t=>t[e],toJson:()=>e}}static fromJson(e){var t;const r=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return new Wi(_i.fromJson(r.offset,this.EXTRACTOR),_i.fromJson(r.factor,this.EXTRACTOR),_i.fromJson(r.jaggedness,this.EXTRACTOR))}toJson(){return{offset:this.offsetSampler.toJson(),factor:this.factorSampler.toJson(),jaggedness:this.jaggednessSampler.toJson()}}offset(e){return this.offsetSampler.apply(e)+Wi.GLOBAL_OFFSET}factor(e){return this.factorSampler.apply(e)}jaggedness(e){return this.jaggednessSampler.apply(e)}static point(e,t,r){return{continents:e,erosion:t,weirdness:r,ridges:this.peaksAndValleys(r)}}static peaksAndValleys(e){return 3*-(Math.abs(Math.abs(e)-.6666667)-.33333334)}static overworld(){const e=this.buildErosionOffsetSpline(-.05,0,0,.1,0,-.03,!1,!1),t=this.buildErosionOffsetSpline(-.1,.03,.1,.1,.01,-.03,!1,!1),r=this.buildErosionOffsetSpline(-.1,.03,.1,.7,.01,-.03,!0,!0),n=this.buildErosionOffsetSpline(.3,.03,.1,1,.01,.01,!0,!0),i=new qi(this.CONTINENTS).addPoint(-1.1,.044).addPoint(-1.02,-.2222).addPoint(-.51,-.2222).addPoint(-.44,-.12).addPoint(-.18,-.12).addPoint(-.16,e).addPoint(-.15,e).addPoint(-.1,t).addPoint(.25,r).addPoint(1,n),o=new qi(this.CONTINENTS).addPoint(-.19,3.95).addPoint(-.15,this.getErosionFactor(6.25,!0)).addPoint(-.1,this.getErosionFactor(5.47,!0)).addPoint(.03,this.getErosionFactor(5.08,!0)).addPoint(.06,this.getErosionFactor(4.69,!1)),a=new qi(this.CONTINENTS).addPoint(.11,0).addPoint(.03,this.buildErosionJaggednessSpline(1,.5,0,0)).addPoint(.65,this.buildErosionJaggednessSpline(1,1,1,0));return new Wi(i,o,a)}static getErosionFactor(e,t){const r=new qi(this.WEIRDNESS).addPoint(-.2,6.3).addPoint(.2,e),n=new qi(this.EROSION).addPoint(-.6,r).addPoint(-.5,new qi(this.WEIRDNESS).addPoint(-.05,6.3).addPoint(.05,2.67)).addPoint(-.35,r).addPoint(-.25,r).addPoint(-.1,new qi(this.WEIRDNESS).addPoint(-.05,2.67).addPoint(.05,6.3)).addPoint(.03,r);if(t){const t=new qi(this.WEIRDNESS).addPoint(0,e).addPoint(.1,.625),r=new qi(this.RIDGES).addPoint(-.9,e).addPoint(-.69,t);n.addPoint(.35,e).addPoint(.45,r).addPoint(.55,r).addPoint(.62,e)}else{const t=new qi(this.RIDGES).addPoint(-.7,r).addPoint(-.15,1.37),i=new qi(this.RIDGES).addPoint(.45,r).addPoint(.7,1.56);n.addPoint(.05,i).addPoint(.4,i).addPoint(.45,t).addPoint(.55,t).addPoint(.58,e)}return n}static buildErosionOffsetSpline(e,t,r,n,i,o,a,s){const c=this.buildMountainRidgeSplineWithPoints(Mi(n,.6,1.5),s),l=this.buildMountainRidgeSplineWithPoints(Mi(n,.6,1),s),u=this.buildMountainRidgeSplineWithPoints(n,s),d=this.ridgeSpline(e-.15,.5*n,Mi(.5,.5,.5)*n,.5*n,.6*n,.5),p=this.ridgeSpline(e,i*n,t*n,.5*n,.6*n,.5),m=this.ridgeSpline(e,i,i,t,r,.5),h=this.ridgeSpline(e,i,i,t,r,.5),f=new qi(this.RIDGES).addPoint(-1,e).addPoint(-.4,m).addPoint(0,r+.07),_=this.ridgeSpline(-.02,o,o,t,r,0),g=new qi(this.EROSION).addPoint(-.85,c).addPoint(-.7,l).addPoint(-.4,u).addPoint(-.35,d).addPoint(-.1,p).addPoint(.2,m);return a&&g.addPoint(.4,h).addPoint(.45,f).addPoint(.55,f).addPoint(.58,h),g.addPoint(.7,_),g}static buildMountainRidgeSplineWithPoints(e,t){const r=new qi(this.RIDGES),n=this.mountainContinentalness(-1,e,-.7),i=this.mountainContinentalness(1,e,-.7),o=this.calculateMountainRidgeZeroContinentalnessPoint(e);if(-.65<o&&o<1){const t=this.mountainContinentalness(-.65,e,-.7),a=this.mountainContinentalness(-.75,e,-.7),s=this.calculateSlope(n,a,-1,-.75);r.addPoint(-1,n,s),r.addPoint(-.75,a),r.addPoint(-.65,t);const c=this.mountainContinentalness(o,e,-.7),l=this.calculateSlope(c,i,o,1);r.addPoint(o-.01,c),r.addPoint(o,c,l),r.addPoint(1,i,l)}else{const e=this.calculateSlope(n,i,-1,1);t?(r.addPoint(-1,Math.max(.2,n)),r.addPoint(0,Mi(.5,n,i),e)):r.addPoint(-1,n,e),r.addPoint(1,i,e)}return r}static mountainContinentalness(e,t,r){const n=.46082947*(e+1.17)*(1-.5*(1-t))-.5*(1-t);return e<r?Math.max(n,-.2222):Math.max(n,0)}static calculateMountainRidgeZeroContinentalnessPoint(e){return.5*(1-e)/(.46082947*(1-.5*(1-e)))-1.17}static calculateSlope(e,t,r,n){return(t-e)/(n-r)}static ridgeSpline(e,t,r,n,i,o){const a=Math.max(.5*(t-e),o),s=5*(r-t);return new qi(this.RIDGES).addPoint(-1,e,a).addPoint(-.4,t,Math.min(a,s)).addPoint(0,r,s).addPoint(.4,n,2*(n-r)).addPoint(1,i,.7*(i-n))}static buildErosionJaggednessSpline(e,t,r,n){const i=this.buildRidgeJaggednessSpline(e,r),o=this.buildRidgeJaggednessSpline(t,n);return new qi(this.EROSION).addPoint(-1,i).addPoint(-.78,o).addPoint(-.5775,o).addPoint(-.375,0)}static buildRidgeJaggednessSpline(e,t){const r=Wi.peaksAndValleys(.4),n=(r+Wi.peaksAndValleys(.56666666))/2;return new qi(this.RIDGES).addPoint(r,0).addPoint(n,t>0?this.buildWeirdnessJaggednessSpline(t):0).addPoint(1,e>0?this.buildWeirdnessJaggednessSpline(e):0)}static buildWeirdnessJaggednessSpline(e){return new qi(Wi.WEIRDNESS).addPoint(-.01,.63*e).addPoint(.01,.3*e)}}Wi.GLOBAL_OFFSET=-.50375,Wi.EXTRACTOR=e=>{var t;const r=null!==(t=pi.readString(e))&&void 0!==t?t:"continents";return Wi.extractor(r)},Wi.CONTINENTS=Wi.extractor("continents"),Wi.EROSION=Wi.extractor("erosion"),Wi.WEIRDNESS=Wi.extractor("weirdness"),Wi.RIDGES=Wi.extractor("ridges"),(yi||(yi={})).fromList=function(e){return(t,r,n,i)=>{for(const o of e){const e=o(t,r,n,i);if(e)return e}return null}},function(e){function t(e){return e.ySize<<2}e.fromJson=function(e){var t,r,n,i,o,a,s,c;const l=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return{minY:null!==(r=pi.readInt(l.min_y))&&void 0!==r?r:0,height:null!==(n=pi.readInt(l.height))&&void 0!==n?n:256,xzSize:null!==(i=pi.readInt(l.size_horizontal))&&void 0!==i?i:1,ySize:null!==(o=pi.readInt(l.size_vertical))&&void 0!==o?o:1,sampling:hi.fromJson(l.sampling),topSlide:xi.fromJson(l.top_slide),bottomSlide:xi.fromJson(l.bottom_slide),terrainShaper:Wi.fromJson(l.terrain_shaper),islandNoiseOverride:null!==(a=pi.readBoolean(l.island_noise_override))&&void 0!==a&&a,isAmplified:null!==(s=pi.readBoolean(l.amplified))&&void 0!==s&&s,hasLargeBiomes:null!==(c=pi.readBoolean(l.large_biomes))&&void 0!==c&&c}},e.cellHeight=t,e.cellWidth=function(e){return e.xzSize<<2},e.cellCountY=function(e){return e.height/t(e)},e.minCellY=function(e){return Math.floor(e.minY/t(e))}}(vi||(vi={})),function(e){e.fromJson=function(e){var t,r,n,i;const o=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return{target:null!==(r=pi.readNumber(o.target))&&void 0!==r?r:0,size:null!==(n=pi.readInt(o.size))&&void 0!==n?n:0,offset:null!==(i=pi.readInt(o.offset))&&void 0!==i?i:0}},e.apply=function(e,t,r){if(e.size<=0)return t;const n=(r-e.offset)/e.size;return Ti(e.target,t,n)}}(xi||(xi={}));class Zi{constructor(e,t){this.chunk=e,this.filler=t,this.noise000=0,this.noise001=0,this.noise100=0,this.noise101=0,this.noise010=0,this.noise011=0,this.noise110=0,this.noise111=0,this.valueXZ00=0,this.valueXZ10=0,this.valueXZ01=0,this.valueXZ11=0,this.valueZ0=0,this.valueZ1=0,this.value=0,this.slice0=Zi.allocateSlice(e.cellCountY,e.cellCountXZ),this.slice1=Zi.allocateSlice(e.cellCountY,e.cellCountXZ)}static allocateSlice(e,t){const r=Array(t+1);for(let n=0;n<t+1;n+=1)r[n]=Array(e+1);return r}initializeForFirstCellX(){this.fillSlice(this.slice0,this.chunk.firstCellX)}advanceCellX(e){this.fillSlice(this.slice1,this.chunk.firstCellX+e+1)}fillSlice(e,t){const r=vi.cellWidth(this.chunk.settings.noise),n=vi.cellHeight(this.chunk.settings.noise),i=t*r;for(let o=0;o<this.chunk.cellCountXZ+1;o+=1){const t=(this.chunk.firstCellZ+o)*r;for(let r=0;r<this.chunk.cellCountY+1;r+=1){const a=(this.chunk.cellCountNoiseMinY+r)*n;e[o][r]=this.filler(i,a,t)}}}selectCellYZ(e,t){this.noise000=this.slice0[t][e],this.noise001=this.slice0[t+1][e],this.noise100=this.slice1[t][e],this.noise101=this.slice1[t+1][e],this.noise010=this.slice0[t][e+1],this.noise011=this.slice0[t+1][e+1],this.noise110=this.slice1[t][e+1],this.noise111=this.slice1[t+1][e+1]}updateForY(e){this.valueXZ00=Mi(e,this.noise000,this.noise010),this.valueXZ10=Mi(e,this.noise100,this.noise110),this.valueXZ01=Mi(e,this.noise001,this.noise011),this.valueXZ11=Mi(e,this.noise101,this.noise111)}updateForX(e){this.valueZ0=Mi(e,this.valueXZ00,this.valueXZ10),this.valueZ1=Mi(e,this.valueXZ01,this.valueXZ11)}updateForZ(e){this.value=Mi(e,this.valueZ0,this.valueZ1)}sample(){return this.value}swapSlices(){[this.slice0,this.slice1]=[this.slice1,this.slice0]}}class Gi{constructor(e,t,r,n,i,o,a,s){this.cellCountXZ=e,this.cellCountY=t,this.cellCountNoiseMinY=r,this.settings=s;const c=vi.cellWidth(s.noise);this.firstCellX=Math.floor(i/c),this.firstCellZ=Math.floor(o/c),this.firstNoiseX=i>>2,this.firstNoiseZ=o>>2,this.interpolators=[];const l=e*c>>2;this.noiseData=Array(l+1);for(let u=0;u<=l;u+=1){const e=this.firstNoiseX+u;this.noiseData[u]=Array(l+1);for(let t=0;t<=l;t+=1){const r=this.firstNoiseZ+t;this.noiseData[u][t]=n.noiseData(e,r)}}this.baseNoise=n.makeBaseNoiseFiller(this,a)}getNoiseData(e,t){return this.noiseData[e-this.firstNoiseX][t-this.firstNoiseZ]}createNoiseInterpolator(e){const t=new Zi(this,e);return this.interpolators.push(t),t}initializeForFirstCellX(){this.interpolators.forEach((e=>e.initializeForFirstCellX()))}advanceCellX(e){this.interpolators.forEach((t=>t.advanceCellX(e)))}selectCellYZ(e,t){this.interpolators.forEach((r=>r.selectCellYZ(e,t)))}updateForY(e){this.interpolators.forEach((t=>t.updateForY(e)))}updateForX(e){this.interpolators.forEach((t=>t.updateForX(e)))}updateForZ(e){this.interpolators.forEach((t=>t.updateForZ(e)))}swapSlices(){this.interpolators.forEach((e=>e.swapSlices()))}updateNoiseAndGenerateBaseState(e,t,r){return this.baseNoise(e,t,r)}}(Ni||(Ni={})).create=function(e,t,r){return{offset:e,factor:t,jaggedness:r}};class Ki{constructor(e,t,r,n=!1){if(this.settings=e,n){const n=new Pi(t);this.blendedNoise=new $i(n.fork(),e.sampling,vi.cellWidth(e),vi.cellHeight(e)),n.consume(8),this.temperatureNoise=new Xi(new Pi(t),r.temperature),this.humidityNoise=new Xi(new Pi(t+BigInt(1)),r.humidity),this.continentalnessNoise=new Xi(new Pi(t+BigInt(2)),r.continentalness),this.erosionNoise=new Xi(new Pi(t+BigInt(3)),r.erosion),this.weirdnessNoise=new Xi(new Pi(t+BigInt(4)),r.weirdness),this.offsetNoise=new Xi(new Pi(t+BigInt(5)),r.shift),this.jaggedNoise=new Xi(n.fork(),{firstOctave:-16,amplitudes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]})}else{const n=Li.create(t).fork();this.blendedNoise=new $i(n.forkWithHashOf("minecraft:terrain"),e.sampling,vi.cellWidth(e),vi.cellHeight(e)),this.temperatureNoise=new Xi(n.forkWithHashOf("minecraft:temperature"),r.temperature),this.humidityNoise=new Xi(n.forkWithHashOf("minecraft:vegetation"),r.humidity),this.continentalnessNoise=new Xi(n.forkWithHashOf("minecraft:continentalness"),r.continentalness),this.erosionNoise=new Xi(n.forkWithHashOf("minecraft:erosion"),r.erosion),this.weirdnessNoise=new Xi(n.forkWithHashOf("minecraft:ridge"),r.weirdness),this.offsetNoise=new Xi(n.forkWithHashOf("minecraft:offset"),r.shift),this.jaggedNoise=new Xi(n.forkWithHashOf("minecraft:jagged"),{firstOctave:-16,amplitudes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]})}this.shaper=e.terrainShaper,this.baseNoise=e=>{const t=e.createNoiseInterpolator(((t,r,n)=>this.calculateBaseNoise(t,r,n,e.getNoiseData(t>>2,n>>2).terrainInfo)));return()=>t.sample()}}noiseData(e,t){const r=e+this.getOffset(e,0,t),n=t+this.getOffset(t,e,0),i=this.getContinentalness(r,n),o=this.getErosion(r,n),a=this.getWeirdness(r,n),s=this.terrainInfo(i,o,a);return wi.create(r,n,i,o,a,s)}sample(e,t,r){return this.target(e,t,r,this.noiseData(e,r))}target(e,t,r,n){const i=n.shiftedX,o=t+this.getOffset(t,r,e),a=n.shiftedZ,s=this.getTemperature(i,o,a),c=this.getHumidity(i,o,a),l=this.computeDimensionDensity(t<<2,n.terrainInfo);return bi.target(s,c,n.continentalness,n.erosion,l,n.weirdness)}terrainInfo(e,t,r){const n=Wi.point(e,t,r),i=this.shaper.offset(n),o=this.shaper.factor(n),a=this.shaper.jaggedness(n);return Ni.create(i,o,a)}getOffset(e,t,r){return 4*this.offsetNoise.sample(e,t,r)}getTemperature(e,t,r){return this.temperatureNoise.sample(e,t,r)}getHumidity(e,t,r){return this.humidityNoise.sample(e,t,r)}getContinentalness(e,t){return this.continentalnessNoise.sample(e,0,t)}getErosion(e,t){return this.erosionNoise.sample(e,0,t)}getWeirdness(e,t){return this.weirdnessNoise.sample(e,0,t)}makeBaseNoiseFiller(e,t){const r=this.baseNoise(e);return(e,n,i)=>{let o=r();return o=Bi(.64*o,-1,1),o=o/2-o*o*o/24,o+=t(e,n,i),o>0?null:Ai.AIR}}calculateBaseNoise(e,t,r,n){let i=this.blendedNoise.sample(e,t,r);if(n){const o=this.sampleJaggedNoise(n.jaggedness,e,r),a=this.computeDimensionDensity(t,n),s=n.factor*(o+a);i+=s>0?4*s:s}return i=Bi(i,-64,64),i=this.applySlide(i,t/vi.cellHeight(this.settings)),i=Bi(i,-64,64),i}sampleJaggedNoise(e,t,r){if(0===e)return 0;const n=this.jaggedNoise.sample(1500*t,0,1500*r);return n>0?e*n:e/2*n}computeDimensionDensity(e,t){return 1-e/128+t.offset}applySlide(e,t){const r=t-vi.minCellY(this.settings);return e=xi.apply(this.settings.topSlide,e,vi.cellCountY(this.settings)-r),xi.apply(this.settings.bottomSlide,e,r)}}(wi||(wi={})).create=function(e,t,r,n,i,o){return{shiftedX:e,shiftedZ:t,continentalness:r,weirdness:n,erosion:i,terrainInfo:o}};class Yi{constructor(e,t,r){this.biomeSource=t,this.settings=r,this.sampler=new Ki(r.noise,e,r.octaves,r.legacyRandomSource),this.materialRule=yi.fromList([(e,t,r,n)=>e.updateNoiseAndGenerateBaseState(t,r,n)])}fill(e){var t;const r=Math.max(e.minY,this.settings.noise.minY),n=Math.min(e.maxY,this.settings.noise.minY+this.settings.noise.height),i=vi.cellWidth(this.settings.noise),o=vi.cellHeight(this.settings.noise),a=Math.floor(16/i),s=Math.floor(r/o),c=Math.floor((n-r)/o),l=mi.minBlockX(e.pos),u=mi.minBlockZ(e.pos),d=new Gi(a,c,s,this.sampler,l,u,(()=>0),this.settings);d.initializeForFirstCellX();for(let p=0;p<a;p+=1){d.advanceCellX(p);for(let r=0;r<a;r+=1){let n=e.getOrCreateSection(e.sectionsCount-1);for(let a=c-1;a>=0;a-=1){d.selectCellYZ(a,r);for(let c=o-1;c>=0;c-=1){const m=(s+a)*o+c,h=15&m,f=e.getSectionIndex(m);e.getSectionIndex(n.minBlockY)!==f&&(n=e.getOrCreateSection(f));const _=c/o;d.updateForY(_);for(let e=0;e<i;e+=1){const o=l+p*i+e,a=15&o,s=e/i;d.updateForX(s);for(let e=0;e<i;e+=1){const s=u+r*i+e,c=15&s,l=e/i;d.updateForZ(l);let p=null!==(t=this.materialRule(d,o,m,s))&&void 0!==t?t:this.settings.defaultBlock;if(p.equals(Ai.AIR)){if(!(m<this.settings.seaLevel))continue;p=this.settings.defaultFluid}n.setBlockState(a,h,c,p)}}}}}d.swapSlices()}}}let Vi;(ki||(ki={})).fromJson=function(e){var t,r,n,i,o,a,s,c,l,u,d;const p=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return{structures:Oi.fromJson(p.structures),noise:vi.fromJson(p.noise),octaves:Si.fromJson(p.octaves),defaultBlock:Ai.fromJson(p.default_block),defaultFluid:Ai.fromJson(p.default_fluid),bedrockRoofPosition:null!==(r=pi.readInt(p.bedrock_roof_position))&&void 0!==r?r:0,bedrockFloorPosition:null!==(n=pi.readInt(p.bedrock_floor_position))&&void 0!==n?n:0,seaLevel:null!==(i=pi.readInt(p.sea_level))&&void 0!==i?i:0,disableMobGeneration:null!==(o=pi.readBoolean(p.disable_mob_generation))&&void 0!==o&&o,aquifersEnabled:null!==(a=pi.readBoolean(p.aquifers_enabled))&&void 0!==a&&a,noiseCavesEnabled:null!==(s=pi.readBoolean(p.noise_caves_enabled))&&void 0!==s&&s,deepslateEnabled:null!==(c=pi.readBoolean(p.deepslate_enabled))&&void 0!==c&&c,oreVeinsEnabled:null!==(l=pi.readBoolean(p.ore_veins_enabled))&&void 0!==l&&l,noodleCavesEnabled:null!==(u=pi.readBoolean(p.noodle_caves_enabled))&&void 0!==u&&u,legacyRandomSource:null!==(d=pi.readBoolean(p.legacy_random_source))&&void 0!==d&&d}},(Oi||(Oi={})).fromJson=function(e){var t;const r=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return{stronghold:pi.compose(r.stronghold,pi.readObject,(e=>{var t,r,n;return{distance:null!==(t=pi.readInt(e.distance))&&void 0!==t?t:0,spread:null!==(r=pi.readInt(e.spread))&&void 0!==r?r:0,count:null!==(n=pi.readInt(e.count))&&void 0!==n?n:0}})),structures:pi.readMap(r.structures,(e=>{var t,r,n,i,o;return r=null!==(t=pi.readObject(e))&&void 0!==t?t:{},{spacing:null!==(n=pi.readInt(r.spacing))&&void 0!==n?n:0,separation:null!==(i=pi.readInt(r.separation))&&void 0!==i?i:0,salt:null!==(o=pi.readInt(r.salt))&&void 0!==o?o:0}}))}},(Si||(Si={})).fromJson=function(e){var t;const r=null!==(t=pi.readObject(e))&&void 0!==t?t:{};return{temperature:fi.fromJson(r.temperature),humidity:fi.fromJson(r.humidity),continentalness:fi.fromJson(r.continentalness),erosion:fi.fromJson(r.erosion),weirdness:fi.fromJson(r.weirdness),shift:fi.fromJson(r.shift)}};let Qi=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Qi.decode();let eo=null;function to(e,t){return Qi.decode((null!==eo&&eo.buffer===Vi.memory.buffer||(eo=new Uint8Array(Vi.memory.buffer)),eo).subarray(e,e+t))}const ro=new Uint32Array(2),no=new BigInt64Array(ro.buffer);let io=null;function oo(){return null!==io&&io.buffer===Vi.memory.buffer||(io=new Int32Array(Vi.memory.buffer)),io}let ao=null;function so(){return null!==ao&&ao.buffer===Vi.memory.buffer||(ao=new Float64Array(Vi.memory.buffer)),ao}let co=0;function lo(e,t){const r=t(8*e.length);return so().set(e,r/8),co=e.length,r}let uo=null;function po(e,t){const r=t(4*e.length);return(null!==uo&&uo.buffer===Vi.memory.buffer||(uo=new Uint32Array(Vi.memory.buffer)),uo).set(e,r/4),co=e.length,r}function mo(e,t,r,n,i,o,a,s,c,l,u,d,p,m){var h=lo(e,Vi.__wbindgen_malloc),f=co,_=lo(t,Vi.__wbindgen_malloc),g=co,b=lo(r,Vi.__wbindgen_malloc),y=co,v=lo(n,Vi.__wbindgen_malloc),x=co,N=lo(i,Vi.__wbindgen_malloc),w=co,k=lo(o,Vi.__wbindgen_malloc),O=co,S=lo(a,Vi.__wbindgen_malloc),D=co,A=lo(s,Vi.__wbindgen_malloc),C=co,E=lo(c,Vi.__wbindgen_malloc),F=co,B=lo(l,Vi.__wbindgen_malloc),M=co,j=lo(u,Vi.__wbindgen_malloc),T=co,I=lo(d,Vi.__wbindgen_malloc),P=co,L=lo(p,Vi.__wbindgen_malloc),R=co,z=po(m,Vi.__wbindgen_malloc),U=co,$=Vi.biome_parameters(h,f,_,g,b,y,v,x,N,w,k,O,S,D,A,C,E,F,B,M,j,T,I,P,L,R,z,U);return bo.__wrap($)}function ho(e,t,r,n,i,o,a,s,c,l,u,d,p){no[0]=e;const m=ro[0],h=ro[1];var f=lo(r,Vi.__wbindgen_malloc),_=co,g=lo(i,Vi.__wbindgen_malloc),b=co,y=lo(a,Vi.__wbindgen_malloc),v=co,x=lo(c,Vi.__wbindgen_malloc),N=co,w=lo(u,Vi.__wbindgen_malloc),k=co,O=lo(p,Vi.__wbindgen_malloc),S=co,D=Vi.climate_sampler(m,h,t,f,_,n,g,b,o,y,v,s,x,N,l,w,k,d,O,S);return yo.__wrap(D)}function fo(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}function _o(e,t,r,n,i,o,a,s,c,l,u){try{const h=Vi.__wbindgen_add_to_stack_pointer(-16);fo(e,bo),fo(t,yo),Vi.multi_noise(h,e.ptr,t.ptr,r,n,i,o,a,s,c,l,u);var d=oo()[h/4+0],p=oo()[h/4+1],m=function(e,t){return oo().subarray(e/4,e/4+t)}(d,p).slice();return Vi.__wbindgen_free(d,4*p),m}finally{Vi.__wbindgen_add_to_stack_pointer(16)}}function go(e,t,r,n,i,o,a,s,c,l){try{const m=Vi.__wbindgen_add_to_stack_pointer(-16);fo(e,yo),Vi.climate_noise(m,e.ptr,t,r,n,i,o,a,s,c,l);var u=oo()[m/4+0],d=oo()[m/4+1],p=function(e,t){return so().subarray(e/8,e/8+t)}(u,d).slice();return Vi.__wbindgen_free(u,8*d),p}finally{Vi.__wbindgen_add_to_stack_pointer(16)}}class bo{static __wrap(e){const t=Object.create(bo.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();Vi.__wbg_parameterlist_free(e)}}class yo{static __wrap(e){const t=Object.create(yo.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();Vi.__wbg_sampler_free(e)}}async function vo(e){void 0===e&&(e=new URL("deepslate_rs_bg.wasm",u.url));const t={wbg:{}};t.wbg.__wbindgen_throw=function(e,t){throw new Error(to(e,t))},("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:n}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if("application/wasm"==e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}(await e,t);return Vi=r.exports,vo.__wbindgen_wasm_module=n,Vi}var xo="/assets/deepslate_rs_bg.4990c219.wasm",No=function(e){return(e=e||{}).circles?function(e){var t=[],r=[];return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return n(i,e);if(i instanceof Map)return new Map(n(Array.from(i),e));if(i instanceof Set)return new Set(n(Array.from(i),e));var o={};for(var a in t.push(i),r.push(o),i){var s=i[a];if("object"!=typeof s||null===s)o[a]=s;else if(s instanceof Date)o[a]=new Date(s);else if(s instanceof Map)o[a]=new Map(n(Array.from(s),e));else if(s instanceof Set)o[a]=new Set(n(Array.from(s),e));else if(ArrayBuffer.isView(s))o[a]=wo(s);else{var c=t.indexOf(s);o[a]=-1!==c?r[c]:e(s)}}return t.pop(),r.pop(),o}:function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return n(i,e);if(i instanceof Map)return new Map(n(Array.from(i),e));if(i instanceof Set)return new Set(n(Array.from(i),e));var o={};for(var a in t.push(i),r.push(o),i)if(!1!==Object.hasOwnProperty.call(i,a)){var s=i[a];if("object"!=typeof s||null===s)o[a]=s;else if(s instanceof Date)o[a]=new Date(s);else if(s instanceof Map)o[a]=new Map(n(Array.from(s),e));else if(s instanceof Set)o[a]=new Set(n(Array.from(s),e));else if(ArrayBuffer.isView(s))o[a]=wo(s);else{var c=t.indexOf(s);o[a]=-1!==c?r[c]:e(s)}}return t.pop(),r.pop(),o};function n(e,n){for(var i=Object.keys(e),o=new Array(i.length),a=0;a<i.length;a++){var s=i[a],c=e[s];if("object"!=typeof c||null===c)o[s]=c;else if(c instanceof Date)o[s]=new Date(c);else if(ArrayBuffer.isView(c))o[s]=wo(c);else{var l=t.indexOf(c);o[s]=-1!==l?r[l]:n(c)}}return o}}(e):e.proto?function e(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return t(r,e);if(r instanceof Map)return new Map(t(Array.from(r),e));if(r instanceof Set)return new Set(t(Array.from(r),e));var n={};for(var i in r){var o=r[i];"object"!=typeof o||null===o?n[i]=o:o instanceof Date?n[i]=new Date(o):o instanceof Map?n[i]=new Map(t(Array.from(o),e)):o instanceof Set?n[i]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?n[i]=wo(o):n[i]=e(o)}return n}:function e(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return t(r,e);if(r instanceof Map)return new Map(t(Array.from(r),e));if(r instanceof Set)return new Set(t(Array.from(r),e));var n={};for(var i in r)if(!1!==Object.hasOwnProperty.call(r,i)){var o=r[i];"object"!=typeof o||null===o?n[i]=o:o instanceof Date?n[i]=new Date(o):o instanceof Map?n[i]=new Map(t(Array.from(o),e)):o instanceof Set?n[i]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?n[i]=wo(o):n[i]=e(o)}return n};function t(e,t){for(var r=Object.keys(e),n=new Array(r.length),i=0;i<r.length;i++){var o=r[i],a=e[o];"object"!=typeof a||null===a?n[o]=a:a instanceof Date?n[o]=new Date(a):ArrayBuffer.isView(a)?n[o]=wo(a):n[o]=t(a)}return n}};function wo(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}var ko={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.initCollections=void 0,Oo.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_hurt_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:shot_crossbow","minecraft:safely_harvest_honey","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:summoned_entity","minecraft:tame_animal","minecraft:tick","minecraft:used_ender_eye","minecraft:used_totem","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("loot_pool_entry_type",["minecraft:empty","minecraft:item","minecraft:tag","minecraft:loot_table","minecraft:alternatives","minecraft:sequence","minecraft:group","minecraft:dynamic"]),e.register("loot_condition_type",["minecraft:alternative","minecraft:inverted","minecraft:reference","minecraft:entity_properties","minecraft:block_state_property","minecraft:match_tool","minecraft:damage_source_properties","minecraft:location_check","minecraft:weather_check","minecraft:time_check","minecraft:entity_scores","minecraft:random_chance","minecraft:random_chance_with_looting","minecraft:table_bonus","minecraft:killed_by_player","minecraft:survives_explosion"]),e.register("loot_function_type",["minecraft:set_count","minecraft:set_damage","minecraft:set_name","minecraft:set_lore","minecraft:set_nbt","minecraft:set_attributes","minecraft:set_contents","minecraft:enchant_randomly","minecraft:enchant_with_levels","minecraft:looting_enchant","minecraft:limit_count","minecraft:furnace_smelt","minecraft:explosion_decay","minecraft:fill_player_head","minecraft:copy_name","minecraft:copy_nbt","minecraft:copy_state","minecraft:apply_bonus","minecraft:exploration_map","minecraft:set_stew_effect"]),e.register("attribute",["generic.maxHealth","generic.followRange","generic.knockbackResistance","generic.movementSpeed","generic.attackDamage","generic.armor","generic.armorToughness","generic.attackSpeed","generic.luck","horse.jumpStrength","generic.attackKnockback","generic.flyingSpeed","zombie.spawnReinforcements"]),e.register("structure_feature",["pillager_outpost","mineshaft","mansion","jungle_pyramid","desert_pyramid","igloo","shipwreck","swamp_hut","stronghold","monument","ocean_ruin","fortress","endcity","buried_treasure","village"]),e.register("dimension",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("entity_source",["this","direct_killer","killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"])};var So={},Do={},Ao={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.Range=e.ConditionCases=void 0;const t=Me;e.initCommonSchemas=function(r,n){const i=t.StringNode.bind(void 0,n),o=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),r.register("fluid_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(i(),i()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),r.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0})),{default:()=>[0,0,0]})),e.Range=e=>t.ChoiceNode([...(null==e?void 0:e.forceRange)?[]:[{type:"number",node:t.NumberNode(e),change:e=>{var t,r,n;return void 0===e?0:null!==(n=null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:e.n)&&void 0!==n?n:0}}],{type:"object",priority:-1,node:t.ObjectNode({min:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e)),max:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e))},{context:"range"}),change:e=>({min:"number"==typeof e?e:void 0===e?1:e.n,max:"number"==typeof e?e:void 0===e?1:e.n})},...(null==e?void 0:e.allowBinomial)?[{type:"binomial",node:t.ObjectNode({type:i({enum:["minecraft:binomial"]}),n:t.NumberNode({integer:!0,min:0}),p:t.NumberNode({min:0,max:1})},{context:"range"}),match:e=>void 0!==e&&"minecraft:binomial"===e.type,change:e=>{var t,r;return{type:"minecraft:binomial",n:"number"==typeof e?e:void 0===e?1:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:1,p:.5}}}]:[]],{choiceContext:"range"}),e.ConditionCases={"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:o("damage_source_predicate")},"minecraft:entity_properties":{entity:i({enum:"entity_source"}),predicate:o("entity_predicate")},"minecraft:entity_scores":{entity:i({enum:"entity_source"}),scores:t.MapNode(i({validator:"objective"}),e.Range({forceRange:!0,bounds:!0}))},"minecraft:inverted":{term:o("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:o("location_predicate")},"minecraft:match_tool":{predicate:o("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:reference":{name:i({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:e.Range(),period:t.Opt(t.NumberNode())},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}}}}(Ao);var Co={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initPredicatesSchemas=e.LocationFields=void 0;const t=Me,r=Ao;e.initPredicatesSchemas=function(n,i){const o=t.Reference.bind(void 0,n),a=t.StringNode.bind(void 0,i),s=t.ChoiceNode([{type:"string",node:a(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:t.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:!0})),max:t.Opt(t.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:t.BooleanNode(),change:e=>"true"===e||1===e}]);n.register("item_predicate",t.ObjectNode({item:t.Opt(a({validator:"resource",params:{pool:"item"}})),tag:t.Opt(a({validator:"resource",params:{pool:"$tag/item"}})),count:t.Opt(r.Range()),durability:t.Opt(r.Range()),potion:t.Opt(a({validator:"resource",params:{pool:"potion"}})),nbt:t.Opt(a({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:t.Opt(t.ListNode(o("enchantment_predicate")))},{context:"item"})),n.register("enchantment_predicate",t.ObjectNode({enchantment:t.Opt(a({validator:"resource",params:{pool:"enchantment"}})),levels:t.Opt(r.Range())},{context:"enchantment"})),n.register("block_predicate",t.ObjectNode({block:t.Opt(a({validator:"resource",params:{pool:"block"}})),tag:t.Opt(a({validator:"resource",params:{pool:"$tag/block"}})),nbt:t.Opt(a({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:t.Opt(t.MapNode(a(),s,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),n.register("fluid_predicate",t.ObjectNode({fluid:t.Opt(a({validator:"resource",params:{pool:"fluid"}})),tag:t.Opt(a({validator:"resource",params:{pool:"$tag/fluid"}})),state:t.Opt(t.MapNode(a(),s))},{context:"fluid"})),e.LocationFields={position:t.Opt(t.ObjectNode({x:t.Opt(r.Range()),y:t.Opt(r.Range()),z:t.Opt(r.Range())})),biome:t.Opt(a({enum:"biome"})),feature:t.Opt(a({enum:"structure_feature"})),dimension:t.Opt(a({enum:"dimension"})),light:t.Opt(t.ObjectNode({light:t.Opt(r.Range({integer:!0,min:0,max:15}))})),block:t.Opt(o("block_predicate")),fluid:t.Opt(o("fluid_predicate"))},n.register("location_predicate",t.ObjectNode(e.LocationFields,{context:"location"})),n.register("statistic_predicate",t.ObjectNode({type:a({validator:"resource",params:{pool:"stat_type"}}),stat:a(),value:r.Range(),[t.Switch]:[{push:"type"}],[t.Case]:{"minecraft:mined":{stat:a({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:a({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:a({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:a({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:a({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:a({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:a({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:a({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:a({validator:"resource",params:{pool:"custom_stat"}})}}})),n.register("player_predicate",t.ObjectNode({gamemode:t.Opt(a({enum:"gamemode"})),level:t.Opt(r.Range()),advancements:t.Opt(t.MapNode(a({validator:"resource",params:{pool:"$advancement"}}),t.ChoiceNode([{type:"boolean",node:t.BooleanNode(),change:e=>!0},{type:"object",node:t.MapNode(a(),t.BooleanNode())}]))),recipes:t.Opt(t.MapNode(a({validator:"resource",params:{pool:"$recipe"}}),t.BooleanNode())),stats:t.Opt(t.ListNode(o("statistic_predicate")))},{context:"player"})),n.register("status_effect_predicate",t.ObjectNode({amplifier:t.Opt(r.Range()),duration:t.Opt(r.Range()),ambient:t.Opt(t.BooleanNode()),visible:t.Opt(t.BooleanNode())},{context:"status_effect"})),n.register("distance_predicate",t.ObjectNode({x:t.Opt(r.Range()),y:t.Opt(r.Range()),z:t.Opt(r.Range()),absolute:t.Opt(r.Range()),horizontal:t.Opt(r.Range())},{context:"distance"})),n.register("entity_predicate",t.ObjectNode({type:t.Opt(a({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:t.Opt(a({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:t.Opt(a({validator:"team"})),location:t.Opt(o("location_predicate")),distance:t.Opt(o("distance_predicate")),flags:t.Opt(t.ObjectNode({is_on_fire:t.Opt(t.BooleanNode()),is_sneaking:t.Opt(t.BooleanNode()),is_sprinting:t.Opt(t.BooleanNode()),is_swimming:t.Opt(t.BooleanNode()),is_baby:t.Opt(t.BooleanNode())})),equipment:t.Opt(t.MapNode(a({enum:"slot"}),o("item_predicate"))),player:t.Opt(o("player_predicate")),effects:t.Opt(t.MapNode(a({validator:"resource",params:{pool:"mob_effect"}}),o("status_effect_predicate")))},{context:"entity"})),n.register("damage_source_predicate",t.ObjectNode({is_explosion:t.Opt(t.BooleanNode()),is_fire:t.Opt(t.BooleanNode()),is_magic:t.Opt(t.BooleanNode()),is_projectile:t.Opt(t.BooleanNode()),is_lightning:t.Opt(t.BooleanNode()),bypasses_armor:t.Opt(t.BooleanNode()),bypasses_invulnerability:t.Opt(t.BooleanNode()),bypasses_magic:t.Opt(t.BooleanNode()),source_entity:t.Opt(o("entity_predicate")),direct_entity:t.Opt(o("entity_predicate"))},{context:"damage_source"})),n.register("damage_predicate",t.ObjectNode({dealt:t.Opt(r.Range()),taken:t.Opt(r.Range()),blocked:t.Opt(t.BooleanNode()),source_entity:t.Opt(o("entity_predicate")),type:t.Opt(o("damage_source_predicate"))},{context:"damage"}))}}(Co),Object.defineProperty(Do,"__esModule",{value:!0}),Do.initAdvancementSchemas=void 0;const Eo=Me,Fo=Ao,Bo=Co;Do.initAdvancementSchemas=function(e,t){const r=Eo.Reference.bind(void 0,e),n=Eo.StringNode.bind(void 0,t);e.register("advancement",Eo.Mod(Eo.ObjectNode({display:Eo.Opt(Eo.Mod(Eo.ObjectNode({icon:Eo.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),nbt:Eo.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:Eo.Opt(n()),frame:Eo.Opt(n({enum:["task","challenge","goal"]})),show_toast:Eo.Opt(Eo.BooleanNode()),announce_to_chat:Eo.Opt(Eo.BooleanNode()),hidden:Eo.Opt(Eo.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:Eo.Opt(n({validator:"resource",params:{pool:"$advancement"}})),criteria:Eo.MapNode(n(),r("advancement_criteria")),requirements:Eo.Opt(Eo.ListNode(Eo.ListNode(n()))),rewards:Eo.Opt(Eo.ObjectNode({function:Eo.Opt(n({validator:"resource",params:{pool:"$function"}})),loot:Eo.Opt(Eo.ListNode(n({validator:"resource",params:{pool:"$loot_table"}}))),recipes:Eo.Opt(Eo.ListNode(n({validator:"resource",params:{pool:"$recipe"}}))),experience:Eo.Opt(Eo.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",Eo.ObjectNode({trigger:n({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:Eo.Opt(Eo.ObjectNode({[Eo.Switch]:["pop",{push:"trigger"}],[Eo.Case]:{"minecraft:bee_nest_destroyed":{block:Eo.Opt(n({validator:"resource",params:{pool:"block"}})),num_bees_inside:Eo.Opt(Eo.NumberNode({integer:!0})),item:Eo.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:Eo.Opt(r("entity_predicate")),partner:Eo.Opt(r("entity_predicate")),child:Eo.Opt(r("entity_predicate"))},"minecraft:brewed_potion":{potion:Eo.Opt(n({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:Eo.Opt(n({enum:"dimension"})),to:Eo.Opt(n({enum:"dimension"}))},"minecraft:channeled_lightning":{victims:Eo.Opt(Eo.ListNode(Eo.Opt(r("entity_predicate"))))},"minecraft:construct_beacon":{level:Eo.Opt(Fo.Range())},"minecraft:consume_item":{item:Eo.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:Eo.Opt(r("entity_predicate")),zombie:Eo.Opt(r("entity_predicate"))},"minecraft:effects_changed":{effects:Eo.Opt(Eo.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},"minecraft:enter_block":{block:Eo.Opt(n({validator:"resource",params:{pool:"block"}})),state:Eo.Opt(Eo.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:Eo.Opt(Fo.Range()),item:Eo.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:Eo.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:Eo.Opt(r("entity_predicate")),killing_blow:Eo.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:Eo.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:Eo.Opt(r("entity_predicate")),item:Eo.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":Bo.LocationFields,"minecraft:inventory_changed":{slots:Eo.Opt(Eo.ObjectNode({empty:Eo.Opt(Fo.Range()),occupied:Eo.Opt(Fo.Range()),full:Eo.Opt(Fo.Range())})),items:Eo.Opt(Eo.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:Eo.Opt(Fo.Range()),durability:Eo.Opt(Fo.Range()),item:Eo.Opt(r("item_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:Eo.Opt(Fo.Range()),victims:Eo.Opt(Eo.ListNode(Eo.Opt(r("entity_predicate"))))},"minecraft:levitation":{distance:Eo.Opt(Fo.Range()),duration:Eo.Opt(Fo.Range())},"minecraft:location":Bo.LocationFields,"minecraft:nether_travel":{distance:Eo.Opt(Fo.Range()),entered:Eo.Opt(r("location_predicate")),exited:Eo.Opt(r("location_predicate"))},"minecraft:placed_block":{block:Eo.Opt(n({validator:"resource",params:{pool:"block"}})),state:Eo.Opt(Eo.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:Eo.Opt(r("item_predicate")),location:Eo.Opt(r("location_predicate"))},"minecraft:player_hurt_entity":{damage:Eo.Opt(r("damage_predicate")),entity:Eo.Opt(r("entity_predicate"))},"minecraft:player_killed_entity":{entity:Eo.Opt(r("entity_predicate")),killing_blow:Eo.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:n({validator:"resource",params:{pool:"$recipe"}})},"minecraft:safely_harvest_honey":{block:Eo.Opt(Eo.ObjectNode({block:Eo.Opt(n({validator:"resource",params:{pool:"block"}})),tag:Eo.Opt(n({validator:"resource",params:{pool:"$tag/block"}}))})),item:Eo.Opt(r("item_predicate"))},"minecraft:slept_in_bed":Bo.LocationFields,"minecraft:slide_down_block":{block:Eo.Opt(n({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:Eo.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:Eo.Opt(r("entity_predicate"))},"minecraft:tame_animal":{entity:Eo.Opt(r("entity_predicate"))},"minecraft:used_ender_eye":{distance:Eo.Opt(Fo.Range())},"minecraft:used_totem":{item:Eo.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:Eo.Opt(r("entity_predicate")),item:Eo.Opt(r("item_predicate"))},"minecraft:voluntary_exile":Bo.LocationFields}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.initConditionSchemas=void 0;const jo=Me,To=Ao;Mo.initConditionSchemas=function(e,t){const r=jo.Reference.bind(void 0,e),n=jo.StringNode.bind(void 0,t);e.register("predicate",jo.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",jo.Mod(jo.ObjectNode({condition:n({validator:"resource",params:{pool:"loot_condition_type"}}),[jo.Switch]:[{push:"condition"}],[jo.Case]:To.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Io={},Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.LootFunctions=Po.LootConditions=Po.LootCopySources=Po.LootEntitySources=Po.LootTableTypes=void 0,Po.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),Po.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Po.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Po.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),Po.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(Io,"__esModule",{value:!0}),Io.initLootTableSchemas=void 0;const Lo=Me,Ro=Po,zo=Ao;Io.initLootTableSchemas=function(e,t){const r=Lo.Reference.bind(void 0,e),n=Lo.StringNode.bind(void 0,t),i={conditions:Lo.Opt(Lo.ListNode(r("loot_condition")))},o=s({functions:Lo.Opt(Lo.ListNode(r("loot_function")))},i);function a(e,r,n){const i=[],o=n=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>n.includes(e)))}));for(const[t,{allows:a,requires:s}]of Ro.LootTableTypes){const e=[...a,...s];i.push({match:e=>e.getModel().get(new Lo.Path(["type"]))===t,node:n(o(e))})}return i.push({match:e=>!0,node:n(r)}),Lo.SwitchNode(i)}const l=a(Ro.LootConditions,"loot_condition_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),u=a(Ro.LootFunctions,"loot_function_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),d=a(Ro.LootEntitySources,"entity_source",(e=>n({enum:e}))),p=a(Ro.LootCopySources,"copy_source",(e=>n({enum:e})));e.register("loot_table",Lo.Mod(Lo.ObjectNode({type:Lo.Opt(n({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Lo.Opt(Lo.ListNode(Lo.Mod(Lo.ObjectNode(s({rolls:zo.Range({allowBinomial:!0,integer:!0}),bonus_rolls:Lo.Opt(zo.Range({integer:!0})),entries:Lo.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Lo.Opt(Lo.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const m={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",Lo.Mod(Lo.ObjectNode({type:n({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Lo.Opt(Lo.Mod(Lo.NumberNode({integer:!0,min:1}),m)),quality:Lo.Opt(Lo.Mod(Lo.NumberNode({integer:!0}),m)),[Lo.Switch]:[{push:"type"}],[Lo.Case]:{"minecraft:alternatives":s({children:Lo.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:n()},o),"minecraft:group":s({children:Lo.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:n({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:n({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:Lo.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:n({validator:"resource",params:{pool:"$tag/item"}}),expand:Lo.Opt(Lo.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Lo.Mod(Lo.ObjectNode({function:u,[Lo.Switch]:[{push:"function"}],[Lo.Case]:(()=>{const e={"minecraft:apply_bonus":{enchantment:n({validator:"resource",params:{pool:"enchantment"}}),formula:n({validator:"resource",params:{pool:t.get("loot_table_apply_bonus_formula")}}),parameters:Lo.Mod(Lo.ObjectNode({bonusMultiplier:Lo.Mod(Lo.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:Lo.Mod(Lo.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:Lo.Mod(Lo.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},"minecraft:copy_name":{source:p},"minecraft:copy_nbt":{source:p,ops:Lo.ListNode(Lo.ObjectNode({source:n({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:n({validator:"nbt_path",params:{category:"minecraft:item"}}),op:n({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:n({validator:"resource",params:{pool:"block"}}),properties:Lo.ListNode(n({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:Lo.Opt(Lo.ListNode(n({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:zo.Range({allowBinomial:!0}),treasure:Lo.Opt(Lo.BooleanNode())},"minecraft:exploration_map":{destination:Lo.Opt(n({enum:"structure_feature"})),decoration:Lo.Opt(n({enum:"map_decoration"})),zoom:Lo.Opt(Lo.NumberNode({integer:!0})),search_radius:Lo.Opt(Lo.NumberNode({integer:!0})),skip_existing_chunks:Lo.Opt(Lo.BooleanNode())},"minecraft:fill_player_head":{entity:d},"minecraft:limit_count":{limit:zo.Range({bounds:!0})},"minecraft:looting_enchant":{count:zo.Range({bounds:!0}),limit:Lo.Opt(Lo.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:Lo.ListNode(r("attribute_modifier"))},"minecraft:set_contents":{entries:Lo.ListNode(r("loot_entry"))},"minecraft:set_count":{count:zo.Range({allowBinomial:!0})},"minecraft:set_damage":{damage:zo.Range({forceRange:!0})},"minecraft:set_loot_table":{name:n({validator:"resource",params:{pool:"$loot_table"}}),seed:Lo.Opt(Lo.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:Lo.Opt(d),lore:Lo.ListNode(r("text_component")),replace:Lo.Opt(Lo.BooleanNode())},"minecraft:set_name":{entity:Lo.Opt(d),name:Lo.Opt(r("text_component"))},"minecraft:set_nbt":{tag:n({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:Lo.Opt(Lo.ListNode(Lo.ObjectNode({type:n({validator:"resource",params:{pool:"mob_effect"}}),duration:zo.Range()})))}},o={};return t.get("loot_function_type").forEach((t=>{o[t]=s(s({},e[t]),i)})),o})()},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Lo.Mod(Lo.ObjectNode({condition:l,[Lo.Switch]:[{push:"condition"}],[Lo.Case]:c(s({},zo.ConditionCases),{"minecraft:entity_properties":{entity:d,predicate:r("entity_predicate")},"minecraft:entity_scores":{entity:d,scores:Lo.MapNode(n({validator:"objective"}),zo.Range({bounds:!0}))}})},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Lo.Mod(Lo.ObjectNode({attribute:n({validator:"resource",params:{pool:"attribute"}}),name:n(),amount:zo.Range({bounds:!0}),operation:n({enum:["addition","multiply_base","multiply_total"]}),slot:Lo.StringOrList(n({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.initPackMcmetaSchemas=void 0;const $o=Me;Uo.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",$o.Mod($o.ObjectNode({pack:$o.Mod($o.ObjectNode({pack_format:$o.Mod($o.NumberNode({integer:!0,min:5,max:5}),{default:()=>5}),description:$o.Reference(e,"text_component")}),{default:()=>({pack_format:5,description:""})})}),{default:()=>({pack:{pack_format:5,description:""}})}))};var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.initRecipeSchemas=void 0;const Jo=Me;Xo.initRecipeSchemas=function(e,t){const r=Jo.Reference.bind(void 0,e),n=Jo.StringNode.bind(void 0,t);e.register("recipe",Jo.Mod(Jo.ObjectNode({type:n({validator:"resource",params:{pool:"recipe_serializer"}}),[Jo.Switch]:[{push:"type"}],[Jo.Case]:{"minecraft:crafting_shaped":{group:Jo.Opt(n({enum:"recipe_group",additional:!0})),pattern:Jo.ListNode(n()),key:Jo.MapNode(n(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Jo.Opt(n()),ingredients:Jo.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Jo.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Jo.Opt(Jo.NumberNode()),cookingtime:Jo.Opt(Jo.Mod(Jo.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Jo.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Jo.Opt(Jo.NumberNode()),cookingtime:Jo.Opt(Jo.Mod(Jo.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Jo.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Jo.Opt(Jo.NumberNode()),cookingtime:Jo.Opt(Jo.Mod(Jo.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Jo.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Jo.Opt(Jo.NumberNode()),cookingtime:Jo.Opt(Jo.Mod(Jo.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Jo.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),count:Jo.NumberNode({integer:!0})},"minecraft:smithing":{group:Jo.Opt(n()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Jo.Mod(Jo.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Jo.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Jo.Mod(Jo.ObjectNode({item:Jo.Opt(n({validator:"resource",params:{pool:"item"}})),tag:Jo.Opt(n({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Jo.Mod(Jo.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),count:Jo.Opt(Jo.Mod(Jo.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.initTagsSchemas=void 0;const Ho=Me;qo.initTagsSchemas=function(e,t){const r=Ho.StringNode.bind(void 0,t),n=e=>Ho.Mod(Ho.ObjectNode({replace:Ho.Opt(Ho.BooleanNode()),values:Ho.ListNode(Ho.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Ho.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Ho.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",n("block")),e.register("entity_type_tag",n("entity_type")),e.register("fluid_tag",n("fluid")),e.register("function_tag",n("$function")),e.register("item_tag",n("item"))};var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.initTextComponentSchemas=void 0;const Zo=Me;Wo.initTextComponentSchemas=function(e,t){const r=Zo.Reference.bind(void 0,e),n=Zo.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",Zo.Mod(Zo.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:n(),change:i},{type:"number",node:Zo.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:Zo.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={bold:Zo.Opt(Zo.BooleanNode()),italic:Zo.Opt(Zo.BooleanNode()),underlined:Zo.Opt(Zo.BooleanNode()),strikethrough:Zo.Opt(Zo.BooleanNode()),obfuscated:Zo.Opt(Zo.BooleanNode()),insertion:Zo.Opt(n()),clickEvent:Zo.Opt(Zo.ObjectNode({action:n({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[Zo.Switch]:[{push:"action"}],[Zo.Case]:{change_page:{value:n()},copy_to_clipboard:{value:n()},open_file:{value:n()},open_url:{value:n()},run_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:Zo.Opt(Zo.ObjectNode({action:n({enum:["show_text","show_item","show_entity"]}),[Zo.Switch]:[{push:"action"}],[Zo.Case]:{show_text:{value:Zo.Opt(r("text_component"))},show_item:{value:Zo.Opt(n({validator:"nbt",params:{module:"util::InventoryItem"}}))},show_entity:{value:Zo.Opt(Zo.ObjectNode({name:Zo.Opt(n()),type:Zo.Opt(n()),id:Zo.Opt(n())}))}}})),extra:Zo.Opt(r("text_component_list"))};e.register("text_component_object",Zo.Mod(Zo.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:Zo.ObjectNode(s({text:n()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:Zo.ObjectNode(s({translate:n(),with:Zo.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:Zo.ObjectNode(s({score:Zo.ObjectNode({name:n({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:n({validator:"objective"}),value:Zo.Opt(n())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:Zo.ObjectNode(s({selector:n({validator:"entity",params:{amount:"multiple",type:"entities"}})},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:Zo.ObjectNode(s({keybind:n({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:Zo.ObjectNode(s({nbt:n({validator:"nbt_path"}),block:Zo.Opt(n({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:Zo.Opt(n({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:Zo.Opt(n({validator:"resource",params:{pool:"$storage"}})),interpret:Zo.Opt(Zo.BooleanNode())},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",Zo.Mod(Zo.ListNode(r("text_component")),{default:()=>[{text:""}]}))},Object.defineProperty(So,"__esModule",{value:!0}),So.initSchemas=void 0;const Go=Do,Ko=Ao,Yo=Mo,Vo=Io,Qo=Uo,ea=Co,ta=Xo,ra=qo,na=Wo;So.initSchemas=function(e,t){Ko.initCommonSchemas(e,t),ea.initPredicatesSchemas(e,t),Go.initAdvancementSchemas(e,t),Yo.initConditionSchemas(e,t),Vo.initLootTableSchemas(e,t),Qo.initPackMcmetaSchemas(e,t),ta.initRecipeSchemas(e,t),ra.initTagsSchemas(e,t),na.initTextComponentSchemas(e,t)};var ia=Be&&Be.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),oa=Be&&Be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aa=Be&&Be.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&ia(t,e,r);return oa(t,e),t};Object.defineProperty(ko,"__esModule",{value:!0});var sa=ko.getSchemas=ko.getCollections=void 0;const ca=Me,la=Oo,ua=So;var da=ko.lootContext=aa(Po);var pa=ko.getCollections=function(){const e=new ca.CollectionRegistry;return la.initCollections(e),e};sa=ko.getSchemas=function(e){const t=new ca.SchemaRegistry;return ua.initSchemas(t,e),t};var ma=Object.freeze(Object.assign(Object.create(null),ko,{[Symbol.toStringTag]:"Module",get getSchemas(){return sa},get getCollections(){return pa},lootContext:da,default:ko})),ha={},fa={};Object.defineProperty(fa,"__esModule",{value:!0}),fa.initCollections=void 0,fa.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:item_used_on_block","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_generates_container_loot","minecraft:player_hurt_entity","minecraft:player_interacted_with_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:shot_crossbow","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:summoned_entity","minecraft:tame_animal","minecraft:target_hit","minecraft:tick","minecraft:thrown_item_picked_up_by_entity","minecraft:used_ender_eye","minecraft:used_totem","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("dimension",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("dimension_type",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("worldgen/noise_settings",["minecraft:overworld","minecraft:nether","minecraft:end","minecraft:amplified","minecraft:caves","minecraft:floating_islands"]),e.register("entity_source",["this","direct_killer","killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("map_feature",["bastion_remnant","buried_treasure","desert_pyramid","endcity","fortress","igloo","jungle_pyramid","mansion","mineshaft","monument","nether_fossil","ocean_ruin","pillager_outpost","ruined_portal","shipwreck","stronghold","swamp_hut","village"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("worldgen/configured_feature",["minecraft:acacia","minecraft:bamboo_light","minecraft:bamboo_vegetation","minecraft:bamboo","minecraft:basalt_blobs","minecraft:basalt_pillar","minecraft:birch_bees_0002","minecraft:birch_bees_002","minecraft:birch_bees_005","minecraft:birch_other","minecraft:birch_tall","minecraft:birch","minecraft:blackstone_blobs","minecraft:blue_ice","minecraft:bonus_chest","minecraft:brown_mushroom_giant","minecraft:brown_mushroom_nether","minecraft:brown_mushroom_normal","minecraft:brown_mushroom_swamp","minecraft:brown_mushroom_taiga","minecraft:chorus_plant","minecraft:crimson_forest_vegetation","minecraft:crimson_fungi_planted","minecraft:crimson_fungi","minecraft:dark_forest_vegetation_brown","minecraft:dark_forest_vegetation_red","minecraft:dark_oak","minecraft:delta","minecraft:desert_well","minecraft:disk_clay","minecraft:disk_gravel","minecraft:disk_sand","minecraft:end_gateway_delayed","minecraft:end_gateway","minecraft:end_island_decorated","minecraft:end_island","minecraft:end_spike","minecraft:fancy_oak_bees_0002","minecraft:fancy_oak_bees_002","minecraft:fancy_oak_bees_005","minecraft:fancy_oak","minecraft:flower_default","minecraft:flower_forest","minecraft:flower_plain_decorated","minecraft:flower_plain","minecraft:flower_swamp","minecraft:flower_warm","minecraft:forest_flower_trees","minecraft:forest_flower_vegetation_common","minecraft:forest_flower_vegetation","minecraft:forest_rock","minecraft:fossil","minecraft:freeze_top_layer","minecraft:glowstone_extra","minecraft:glowstone","minecraft:huge_brown_mushroom","minecraft:huge_red_mushroom","minecraft:ice_patch","minecraft:ice_spike","minecraft:iceberg_blue","minecraft:iceberg_packed","minecraft:jungle_bush","minecraft:jungle_tree_no_vine","minecraft:jungle_tree","minecraft:kelp_cold","minecraft:kelp_warm","minecraft:lake_lava","minecraft:lake_water","minecraft:large_basalt_columns","minecraft:mega_jungle_tree","minecraft:mega_pine","minecraft:mega_spruce","minecraft:monster_room","minecraft:mushroom_field_vegetation","minecraft:nether_sprouts","minecraft:oak_badlands","minecraft:oak_bees_0002","minecraft:oak_bees_002","minecraft:oak_bees_005","minecraft:oak","minecraft:ore_andesite","minecraft:ore_blackstone","minecraft:ore_coal","minecraft:ore_debris_large","minecraft:ore_debris_small","minecraft:ore_diamond","minecraft:ore_diorite","minecraft:ore_dirt","minecraft:ore_emerald","minecraft:ore_gold_deltas","minecraft:ore_gold_extra","minecraft:ore_gold_nether","minecraft:ore_gold","minecraft:ore_granite","minecraft:ore_gravel_nether","minecraft:ore_gravel","minecraft:ore_infested","minecraft:ore_iron","minecraft:ore_lapis","minecraft:ore_magma","minecraft:ore_quartz_deltas","minecraft:ore_quartz_nether","minecraft:ore_redstone","minecraft:ore_soul_sand","minecraft:patch_berry_bush","minecraft:patch_berry_decorated","minecraft:patch_berry_sparse","minecraft:patch_brown_mushroom","minecraft:patch_cactus_decorated","minecraft:patch_cactus_desert","minecraft:patch_cactus","minecraft:patch_crimson_roots","minecraft:patch_dead_bush_2","minecraft:patch_dead_bush_badlands","minecraft:patch_dead_bush","minecraft:patch_fire","minecraft:patch_grass_badlands","minecraft:patch_grass_forest","minecraft:patch_grass_jungle","minecraft:patch_grass_normal","minecraft:patch_grass_plain","minecraft:patch_grass_savanna","minecraft:patch_grass_taiga_2","minecraft:patch_grass_taiga","minecraft:patch_large_fern","minecraft:patch_melon","minecraft:patch_pumpkin","minecraft:patch_red_mushroom","minecraft:patch_soul_fire","minecraft:patch_sugar_cane_badlands","minecraft:patch_sugar_cane_desert","minecraft:patch_sugar_cane_swamp","minecraft:patch_sugar_cane","minecraft:patch_sunflower","minecraft:patch_taiga_grass","minecraft:patch_tall_grass_2","minecraft:patch_tall_grass","minecraft:patch_waterlilly","minecraft:pile_hay","minecraft:pile_ice","minecraft:pile_melon","minecraft:pile_pumpkin","minecraft:pile_snow","minecraft:pine","minecraft:plain_vegetation","minecraft:red_mushroom_giant","minecraft:red_mushroom_nether","minecraft:red_mushroom_normal","minecraft:red_mushroom_swamp","minecraft:red_mushroom_taiga","minecraft:sea_pickle","minecraft:seagrass_cold","minecraft:seagrass_deep_cold","minecraft:seagrass_deep_warm","minecraft:seagrass_deep","minecraft:seagrass_normal","minecraft:seagrass_river","minecraft:seagrass_simple","minecraft:seagrass_swamp","minecraft:seagrass_warm","minecraft:small_basalt_columns","minecraft:spring_closed_double","minecraft:spring_closed","minecraft:spring_delta","minecraft:spring_lava_double","minecraft:spring_lava","minecraft:spring_open","minecraft:spring_water","minecraft:spruce_snowy","minecraft:spruce","minecraft:super_birch_bees_0002","minecraft:swamp_tree","minecraft:taiga_vegetation","minecraft:trees_birch","minecraft:trees_giant_spruce","minecraft:trees_giant","minecraft:trees_jungle_edge","minecraft:trees_jungle","minecraft:trees_mountain_edge","minecraft:trees_mountain","minecraft:trees_savanna","minecraft:trees_shattered_savanna","minecraft:trees_water","minecraft:twisting_vines","minecraft:vines","minecraft:void_start_platform","minecraft:warm_ocean_vegetation","minecraft:warped_forest_vegetation","minecraft:warped_fungi_planted","minecraft:warped_fungi","minecraft:weeping_vines"]),e.register("worldgen/configured_structure_feature",["minecraft:bastion_remnant","minecraft:buried_treasure","minecraft:desert_pyramid","minecraft:end_city","minecraft:fortress","minecraft:igloo","minecraft:jungle_pyramid","minecraft:mansion","minecraft:mineshaft_mesa","minecraft:mineshaft","minecraft:monument","minecraft:nether_fossil","minecraft:ocean_ruin_cold","minecraft:ocean_ruin_warm","minecraft:pillager_outpost","minecraft:ruined_portal_desert","minecraft:ruined_portal_jungle","minecraft:ruined_portal_mountain","minecraft:ruined_portal_nether","minecraft:ruined_portal_ocean","minecraft:ruined_portal_swamp","minecraft:ruined_portal","minecraft:shipwreck_beached","minecraft:shipwreck","minecraft:stronghold","minecraft:swamp_hut","minecraft:village_desert","minecraft:village_plains","minecraft:village_savanna","minecraft:village_snowy","minecraft:village_taiga"]),e.register("worldgen/configured_surface_builder",["minecraft:badlands","minecraft:basalt_deltas","minecraft:crimson_forest","minecraft:desert","minecraft:end","minecraft:eroded_badlands","minecraft:frozen_ocean","minecraft:full_sand","minecraft:giant_tree_taiga","minecraft:grass","minecraft:gravelly_mountain","minecraft:ice_spikes","minecraft:mountain","minecraft:mycelium","minecraft:nether","minecraft:nope","minecraft:ocean_sand","minecraft:shattered_savanna","minecraft:soul_sand_valley","minecraft:stone","minecraft:swamp","minecraft:warped_forest","minecraft:wooded_badlands"]),e.register("biome_category",["beach","desert","extreme_hills","forest","icy","jungle","mesa","mushroom","nether","none","ocean","plains","river","savanna","swamp","taiga","the_end"]),e.register("heightmap_type",["MOTION_BLOCKING","MOTION_BLOCKING_NO_LEAVES","OCEAN_FLOOR","OCEAN_FLOOR_WG","WORLD_SURFACE","WORLD_SURFACE_WG"]),e.register("generation_step",["air","liquid"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"])};var _a={},ga={},ba={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.UniformInt=e.Range=e.NoiseSettingsPresets=e.DefaultNoiseSettings=e.DimensionTypePresets=e.DefaultDimensionType=e.ConditionCases=void 0;const t=Me;e.DefaultDimensionType={ultrawarm:!1,natural:!0,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!0,has_raids:!0,has_skylight:!0,has_ceiling:!1,coordinate_scale:1,ambient_light:0,logical_height:256,infiniburn:"minecraft:infiniburn_overworld"},e.DefaultNoiseSettings={name:"minecraft:overworld",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise:{density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,size_horizontal:1,size_vertical:2,height:256,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},e.initCommonSchemas=function(r,n){const i=t.StringNode.bind(void 0,n),o=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),r.register("fluid_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(i(),i()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),r.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]})),e.Range=e=>t.ChoiceNode([...(null==e?void 0:e.forceRange)?[]:[{type:"number",node:t.NumberNode(e),change:e=>{var t,r,n;return void 0===e?0:null!==(n=null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:e.n)&&void 0!==n?n:0}}],{type:"object",priority:-1,node:t.ObjectNode({min:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e)),max:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e))},{context:"range"}),change:e=>({min:"number"==typeof e?e:void 0===e?1:e.n,max:"number"==typeof e?e:void 0===e?1:e.n})},...(null==e?void 0:e.allowBinomial)?[{type:"binomial",node:t.ObjectNode({type:i({enum:["minecraft:binomial"]}),n:t.NumberNode({integer:!0,min:0}),p:t.NumberNode({min:0,max:1})},{context:"range"}),match:e=>void 0!==e&&"minecraft:binomial"===e.type,change:e=>{var t,r;return{type:"minecraft:binomial",n:"number"==typeof e?e:void 0===e?1:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:1,p:.5}}}]:[]],{choiceContext:"range"}),e.UniformInt=e=>t.ChoiceNode([{type:"number",node:t.NumberNode({integer:!0,min:null==e?void 0:e.min,max:null==e?void 0:e.max}),change:e=>e.base},{type:"object",node:t.ObjectNode({base:t.NumberNode({integer:!0,min:null==e?void 0:e.min,max:null==e?void 0:e.max}),spread:t.NumberNode({integer:!0,min:0,max:null==e?void 0:e.maxSpread})}),change:e=>({base:e,spread:0})}],{context:"uniform_int"}),e.ConditionCases={"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:o("damage_source_predicate")},"minecraft:entity_properties":{entity:i({enum:"entity_source"}),predicate:o("entity_predicate")},"minecraft:entity_scores":{entity:i({enum:"entity_source"}),scores:t.MapNode(i({validator:"objective"}),e.Range({forceRange:!0}))},"minecraft:inverted":{term:o("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:o("location_predicate")},"minecraft:match_tool":{predicate:o("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:reference":{name:i({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:e.Range(),period:t.Opt(t.NumberNode())},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}},e.DimensionTypePresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$dimension_type"}}),r,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"minecraft:infiniburn_nether"},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"minecraft:infiniburn_end"}}),e.NoiseSettingsPresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),r,{"minecraft:overworld":e.DefaultNoiseSettings,"minecraft:nether":{name:"minecraft:nether",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise:{density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,height:128,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:netherrack"},default_fluid:{Name:"minecraft:lava",Properties:{level:"0"}}},"minecraft:end":{name:"minecraft:end",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise:{density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,height:128,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"}},"minecraft:amplified":{name:"minecraft:amplified",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise:{density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,amplified:!0,size_horizontal:1,size_vertical:2,height:256,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:caves":{name:"minecraft:caves",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise:{density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,height:128,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:floating_islands":{name:"minecraft:floating_islands",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise:{density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,height:128,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}}})}}(ba),Object.defineProperty(ga,"__esModule",{value:!0}),ga.initAdvancementSchemas=void 0;const ya=Me,va=ba;ga.initAdvancementSchemas=function(e,t){const r=ya.Reference.bind(void 0,e),n=ya.StringNode.bind(void 0,t),i=ya.ChoiceNode([{type:"object",node:ya.Opt(r("entity_predicate")),change:e=>{var t,r;return null!==(r=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==r?r:{}}},{type:"list",node:ya.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",ya.Mod(ya.ObjectNode({display:ya.Opt(ya.Mod(ya.ObjectNode({icon:ya.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),nbt:ya.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:ya.Opt(n()),frame:ya.Opt(n({enum:["task","challenge","goal"]})),show_toast:ya.Opt(ya.BooleanNode()),announce_to_chat:ya.Opt(ya.BooleanNode()),hidden:ya.Opt(ya.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:ya.Opt(n({validator:"resource",params:{pool:"$advancement"}})),criteria:ya.MapNode(n(),r("advancement_criteria")),requirements:ya.Opt(ya.ListNode(ya.ListNode(n()))),rewards:ya.Opt(ya.ObjectNode({function:ya.Opt(n({validator:"resource",params:{pool:"$function"}})),loot:ya.Opt(ya.ListNode(n({validator:"resource",params:{pool:"$loot_table"}}))),recipes:ya.Opt(ya.ListNode(n({validator:"resource",params:{pool:"$recipe"}}))),experience:ya.Opt(ya.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",ya.ObjectNode({trigger:n({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:ya.Opt(ya.ObjectNode({player:ya.Mod(i,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[ya.Switch]:["pop",{push:"trigger"}],[ya.Case]:{"minecraft:bee_nest_destroyed":{block:ya.Opt(n({validator:"resource",params:{pool:"block"}})),num_bees_inside:ya.Opt(ya.NumberNode({integer:!0})),item:ya.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:i,partner:i,child:i},"minecraft:brewed_potion":{potion:ya.Opt(n({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:ya.Opt(n({validator:"resource",params:{pool:"$dimension"}})),to:ya.Opt(n({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:ya.Opt(ya.ListNode(i))},"minecraft:construct_beacon":{level:ya.Opt(va.Range())},"minecraft:consume_item":{item:ya.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:i,zombie:i},"minecraft:effects_changed":{effects:ya.Opt(ya.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},"minecraft:enter_block":{block:ya.Opt(n({validator:"resource",params:{pool:"block"}})),state:ya.Opt(ya.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:ya.Opt(va.Range()),item:ya.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:ya.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:i,killing_blow:ya.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:ya.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:i,item:ya.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:ya.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:ya.Opt(ya.ObjectNode({empty:ya.Opt(va.Range()),occupied:ya.Opt(va.Range()),full:ya.Opt(va.Range())})),items:ya.Opt(ya.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:ya.Opt(va.Range()),durability:ya.Opt(va.Range()),item:ya.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:ya.Opt(r("item_predicate")),location:ya.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:ya.Opt(va.Range()),victims:ya.Opt(ya.ListNode(i))},"minecraft:levitation":{distance:ya.Opt(va.Range()),duration:ya.Opt(va.Range())},"minecraft:location":{location:ya.Opt(r("location_predicate"))},"minecraft:nether_travel":{distance:ya.Opt(va.Range()),entered:ya.Opt(r("location_predicate")),exited:ya.Opt(r("location_predicate"))},"minecraft:placed_block":{block:ya.Opt(n({validator:"resource",params:{pool:"block"}})),state:ya.Opt(ya.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:ya.Opt(r("item_predicate")),location:ya.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:n({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:ya.Opt(r("damage_predicate")),entity:i},"minecraft:player_interacted_with_entity":{item:ya.Opt(r("item_predicate")),entity:i},"minecraft:player_killed_entity":{entity:i,killing_blow:ya.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:n({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:ya.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:ya.Opt(n({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:ya.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:i},"minecraft:tame_animal":{entity:i},"minecraft:target_hit":{projectile:i,shooter:i,signal_strength:ya.Opt(va.Range({integer:!0}))},"minecraft:thrown_item_picked_up_by_entity":{entity:ya.Opt(r("entity_predicate")),item:ya.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:ya.Opt(va.Range())},"minecraft:used_totem":{item:ya.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:ya.Opt(r("entity_predicate")),item:ya.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:r("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var xa={};Object.defineProperty(xa,"__esModule",{value:!0}),xa.initConditionSchemas=void 0;const Na=Me,wa=ba;xa.initConditionSchemas=function(e,t){const r=Na.Reference.bind(void 0,e),n=Na.StringNode.bind(void 0,t);e.register("predicate",Na.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",Na.Mod(Na.ObjectNode({condition:n({validator:"resource",params:{pool:"loot_condition_type"}}),[Na.Switch]:[{push:"condition"}],[Na.Case]:wa.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var ka={};Object.defineProperty(ka,"__esModule",{value:!0}),ka.initDimensionSchemas=void 0;const Oa=Me,Sa=ba;ka.initDimensionSchemas=function(e,t){const r=Oa.Reference.bind(void 0,e),n=Oa.StringNode.bind(void 0,t),i=e=>Oa.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",Oa.Mod(Oa.ObjectNode({type:Sa.DimensionTypePresets(r("dimension_type")),generator:Oa.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Oa.Switch]:[{push:"type"}],[Oa.Case]:{"minecraft:noise":{seed:Oa.NumberNode({integer:!0}),settings:Sa.NoiseSettingsPresets(r("noise_settings")),biome_source:Oa.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Oa.Switch]:[{push:"type"}],[Oa.Case]:{"minecraft:fixed":{biome:n({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:Oa.NumberNode({integer:!0}),preset:Oa.Opt(n({enum:["nether"]})),altitude_noise:i(r("generator_biome_noise")),temperature_noise:i(r("generator_biome_noise")),humidity_noise:i(r("generator_biome_noise")),weirdness_noise:i(r("generator_biome_noise")),biomes:i(Oa.Mod(Oa.ListNode(r("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:Oa.Opt(Oa.NumberNode({integer:!0,min:0,max:62})),biomes:Oa.ListNode(n({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Oa.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:Oa.NumberNode({integer:!0}),large_biomes:Oa.Opt(Oa.BooleanNode()),legacy_biome_init_layer:Oa.Opt(Oa.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Oa.ObjectNode({biome:Oa.Opt(n({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Oa.Opt(Oa.BooleanNode()),features:Oa.Opt(Oa.BooleanNode()),layers:Oa.ListNode(r("generator_layer")),structures:r("generator_structures")})}}},{disableSwitchContext:!0})},{category:"pool",context:"dimension"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:fixed",seed:e,biome:"minecraft:plains"},settings:"minecraft:overworld"}}}})),e.register("generator_biome",Oa.Mod(Oa.ObjectNode({biome:n({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Oa.ObjectNode({altitude:Oa.NumberNode(),temperature:Oa.NumberNode(),humidity:Oa.NumberNode(),weirdness:Oa.NumberNode(),offset:Oa.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",Oa.Mod(Oa.ObjectNode({firstOctave:Oa.NumberNode({integer:!0}),amplitudes:Oa.ListNode(Oa.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var Da={};Object.defineProperty(Da,"__esModule",{value:!0}),Da.initDimensionTypeSchemas=void 0;const Aa=Me,Ca=ba;Da.initDimensionTypeSchemas=function(e,t){const r=Aa.StringNode.bind(void 0,t);e.register("dimension_type",Aa.Mod(Aa.ObjectNode({name:Aa.Mod(r({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:Aa.BooleanNode(),natural:Aa.BooleanNode(),piglin_safe:Aa.BooleanNode(),respawn_anchor_works:Aa.BooleanNode(),bed_works:Aa.BooleanNode(),has_raids:Aa.BooleanNode(),has_skylight:Aa.BooleanNode(),has_ceiling:Aa.BooleanNode(),coordinate_scale:Aa.NumberNode({min:1e-5,max:3e7}),ambient_light:Aa.NumberNode(),fixed_time:Aa.Opt(Aa.NumberNode({integer:!0})),logical_height:Aa.NumberNode({integer:!0,min:0,max:256}),effects:Aa.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}})},{context:"dimension_type"}),{default:()=>Ca.DefaultDimensionType}))};var Ea={},Fa={};Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.LootFunctions=Fa.LootConditions=Fa.LootCopySources=Fa.LootEntitySources=Fa.LootTableTypes=void 0,Fa.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),Fa.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Fa.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Fa.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),Fa.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.initLootTableSchemas=void 0;const Ba=Me,Ma=Fa,ja=ba;Ea.initLootTableSchemas=function(e,t){const r=Ba.Reference.bind(void 0,e),n=Ba.StringNode.bind(void 0,t),i={conditions:Ba.Opt(Ba.ListNode(r("loot_condition")))},o=s({functions:Ba.Opt(Ba.ListNode(r("loot_function")))},i);function a(e,r,n){const i=[],o=n=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>n.includes(e)))}));for(const[t,{allows:a,requires:s}]of Ma.LootTableTypes){const e=[...a,...s];i.push({match:e=>e.getModel().get(new Ba.Path(["type"]))===t,node:n(o(e))})}return i.push({match:e=>!0,node:n(r)}),Ba.SwitchNode(i)}const l=a(Ma.LootConditions,"loot_condition_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),u=a(Ma.LootFunctions,"loot_function_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),d=a(Ma.LootEntitySources,"entity_source",(e=>n({enum:e}))),p=a(Ma.LootCopySources,"copy_source",(e=>n({enum:e})));e.register("loot_table",Ba.Mod(Ba.ObjectNode({type:Ba.Opt(n({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Ba.Opt(Ba.ListNode(Ba.Mod(Ba.ObjectNode(s({rolls:ja.Range({allowBinomial:!0,integer:!0}),bonus_rolls:Ba.Opt(ja.Range({integer:!0})),entries:Ba.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Ba.Opt(Ba.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const m={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",Ba.Mod(Ba.ObjectNode({type:n({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Ba.Opt(Ba.Mod(Ba.NumberNode({integer:!0,min:1}),m)),quality:Ba.Opt(Ba.Mod(Ba.NumberNode({integer:!0}),m)),[Ba.Switch]:[{push:"type"}],[Ba.Case]:{"minecraft:alternatives":s({children:Ba.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:n()},o),"minecraft:group":s({children:Ba.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:n({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:n({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:Ba.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:n({validator:"resource",params:{pool:"$tag/item"}}),expand:Ba.Opt(Ba.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Ba.Mod(Ba.ObjectNode({function:u,[Ba.Switch]:[{push:"function"}],[Ba.Case]:(()=>{const e={"minecraft:apply_bonus":{enchantment:n({validator:"resource",params:{pool:"enchantment"}}),formula:n({validator:"resource",params:{pool:t.get("loot_table_apply_bonus_formula")}}),parameters:Ba.Mod(Ba.ObjectNode({bonusMultiplier:Ba.Mod(Ba.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:Ba.Mod(Ba.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:Ba.Mod(Ba.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},"minecraft:copy_name":{source:p},"minecraft:copy_nbt":{source:p,ops:Ba.ListNode(Ba.ObjectNode({source:n({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:n({validator:"nbt_path",params:{category:"minecraft:item"}}),op:n({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:n({validator:"resource",params:{pool:"block"}}),properties:Ba.ListNode(n({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:Ba.Opt(Ba.ListNode(n({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:ja.Range({allowBinomial:!0}),treasure:Ba.Opt(Ba.BooleanNode())},"minecraft:exploration_map":{destination:Ba.Opt(n({enum:"map_feature"})),decoration:Ba.Opt(n({enum:"map_decoration"})),zoom:Ba.Opt(Ba.NumberNode({integer:!0})),search_radius:Ba.Opt(Ba.NumberNode({integer:!0})),skip_existing_chunks:Ba.Opt(Ba.BooleanNode())},"minecraft:fill_player_head":{entity:d},"minecraft:limit_count":{limit:ja.Range({bounds:!0})},"minecraft:looting_enchant":{count:ja.Range({bounds:!0}),limit:Ba.Opt(Ba.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:Ba.ListNode(r("attribute_modifier"))},"minecraft:set_contents":{entries:Ba.ListNode(r("loot_entry"))},"minecraft:set_count":{count:ja.Range({allowBinomial:!0})},"minecraft:set_damage":{damage:ja.Range({forceRange:!0})},"minecraft:set_loot_table":{name:n({validator:"resource",params:{pool:"$loot_table"}}),seed:Ba.Opt(Ba.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:Ba.Opt(d),lore:Ba.ListNode(r("text_component")),replace:Ba.Opt(Ba.BooleanNode())},"minecraft:set_name":{entity:Ba.Opt(d),name:Ba.Opt(r("text_component"))},"minecraft:set_nbt":{tag:n({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:Ba.Opt(Ba.ListNode(Ba.ObjectNode({type:n({validator:"resource",params:{pool:"mob_effect"}}),duration:ja.Range()})))}},o={};return t.get("loot_function_type").forEach((t=>{o[t]=s(s({},e[t]),i)})),o})()},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Ba.Mod(Ba.ObjectNode({condition:l,[Ba.Switch]:[{push:"condition"}],[Ba.Case]:c(s({},ja.ConditionCases),{"minecraft:entity_properties":{entity:d,predicate:r("entity_predicate")},"minecraft:entity_scores":{entity:d,scores:Ba.MapNode(n({validator:"objective"}),ja.Range({bounds:!0}))}})},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Ba.Mod(Ba.ObjectNode({attribute:n({validator:"resource",params:{pool:"attribute"}}),name:n(),amount:ja.Range({bounds:!0}),operation:n({enum:["addition","multiply_base","multiply_total"]}),slot:Ba.StringOrList(n({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.initPackMcmetaSchemas=void 0;const Ia=Me;Ta.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",Ia.Mod(Ia.ObjectNode({pack:Ia.Mod(Ia.ObjectNode({pack_format:Ia.Mod(Ia.NumberNode({integer:!0,min:6,max:6}),{default:()=>6}),description:Ia.Reference(e,"text_component")}),{default:()=>({pack_format:6,description:""})})}),{default:()=>({pack:{pack_format:6,description:""}})}))};var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.initPredicatesSchemas=void 0;const La=Me,Ra=ba;Pa.initPredicatesSchemas=function(e,t){const r=La.Reference.bind(void 0,e),n=La.StringNode.bind(void 0,t),i=La.ChoiceNode([{type:"string",node:n(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:La.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:La.ObjectNode({min:La.Opt(La.NumberNode({integer:!0})),max:La.Opt(La.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:La.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",La.ObjectNode({item:La.Opt(n({validator:"resource",params:{pool:"item"}})),tag:La.Opt(n({validator:"resource",params:{pool:"$tag/item"}})),count:La.Opt(Ra.Range()),durability:La.Opt(Ra.Range()),potion:La.Opt(n({validator:"resource",params:{pool:"potion"}})),nbt:La.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:La.Opt(La.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",La.ObjectNode({enchantment:La.Opt(n({validator:"resource",params:{pool:"enchantment"}})),levels:La.Opt(Ra.Range())},{context:"enchantment"})),e.register("block_predicate",La.ObjectNode({block:La.Opt(n({validator:"resource",params:{pool:"block"}})),tag:La.Opt(n({validator:"resource",params:{pool:"$tag/block"}})),nbt:La.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:La.Opt(La.MapNode(n(),i,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",La.ObjectNode({fluid:La.Opt(n({validator:"resource",params:{pool:"fluid"}})),tag:La.Opt(n({validator:"resource",params:{pool:"$tag/fluid"}})),state:La.Opt(La.MapNode(n(),i))},{context:"fluid"})),e.register("location_predicate",La.ObjectNode({position:La.Opt(La.ObjectNode({x:La.Opt(Ra.Range()),y:La.Opt(Ra.Range()),z:La.Opt(Ra.Range())})),biome:La.Opt(n({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:La.Opt(n({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:La.Opt(n({validator:"resource",params:{pool:"$dimension"}})),light:La.Opt(La.ObjectNode({light:La.Opt(Ra.Range({integer:!0,min:0,max:15}))})),smokey:La.Opt(La.BooleanNode()),block:La.Opt(r("block_predicate")),fluid:La.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",La.ObjectNode({type:n({validator:"resource",params:{pool:"stat_type"}}),stat:n(),value:Ra.Range(),[La.Switch]:[{push:"type"}],[La.Case]:{"minecraft:mined":{stat:n({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:n({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",La.ObjectNode({gamemode:La.Opt(n({enum:"gamemode"})),level:La.Opt(Ra.Range()),advancements:La.Opt(La.MapNode(n({validator:"resource",params:{pool:"$advancement"}}),La.ChoiceNode([{type:"boolean",node:La.BooleanNode(),change:e=>!0},{type:"object",node:La.MapNode(n(),La.BooleanNode())}]))),recipes:La.Opt(La.MapNode(n({validator:"resource",params:{pool:"$recipe"}}),La.BooleanNode())),stats:La.Opt(La.ListNode(r("statistic_predicate")))},{context:"player"})),e.register("status_effect_predicate",La.ObjectNode({amplifier:La.Opt(Ra.Range()),duration:La.Opt(Ra.Range()),ambient:La.Opt(La.BooleanNode()),visible:La.Opt(La.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",La.ObjectNode({x:La.Opt(Ra.Range()),y:La.Opt(Ra.Range()),z:La.Opt(Ra.Range()),absolute:La.Opt(Ra.Range()),horizontal:La.Opt(Ra.Range())},{context:"distance"})),e.register("entity_predicate",La.ObjectNode({type:La.Opt(n({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:La.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:La.Opt(n({validator:"team"})),location:La.Opt(r("location_predicate")),distance:La.Opt(r("distance_predicate")),flags:La.Opt(La.ObjectNode({is_on_fire:La.Opt(La.BooleanNode()),is_sneaking:La.Opt(La.BooleanNode()),is_sprinting:La.Opt(La.BooleanNode()),is_swimming:La.Opt(La.BooleanNode()),is_baby:La.Opt(La.BooleanNode())})),equipment:La.Opt(La.MapNode(n({enum:"slot"}),r("item_predicate"))),vehicle:La.Opt(r("entity_predicate")),targeted_entity:La.Opt(r("entity_predicate")),player:La.Opt(r("player_predicate")),fishing_hook:La.Opt(La.ObjectNode({in_open_water:La.Opt(La.BooleanNode())})),effects:La.Opt(La.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",La.ObjectNode({is_explosion:La.Opt(La.BooleanNode()),is_fire:La.Opt(La.BooleanNode()),is_magic:La.Opt(La.BooleanNode()),is_projectile:La.Opt(La.BooleanNode()),is_lightning:La.Opt(La.BooleanNode()),bypasses_armor:La.Opt(La.BooleanNode()),bypasses_invulnerability:La.Opt(La.BooleanNode()),bypasses_magic:La.Opt(La.BooleanNode()),source_entity:La.Opt(r("entity_predicate")),direct_entity:La.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",La.ObjectNode({dealt:La.Opt(Ra.Range()),taken:La.Opt(Ra.Range()),blocked:La.Opt(La.BooleanNode()),source_entity:La.Opt(r("entity_predicate")),type:La.Opt(r("damage_source_predicate"))},{context:"damage"}))};var za={};Object.defineProperty(za,"__esModule",{value:!0}),za.initRecipeSchemas=void 0;const Ua=Me;za.initRecipeSchemas=function(e,t){const r=Ua.Reference.bind(void 0,e),n=Ua.StringNode.bind(void 0,t);e.register("recipe",Ua.Mod(Ua.ObjectNode({type:n({validator:"resource",params:{pool:"recipe_serializer"}}),[Ua.Switch]:[{push:"type"}],[Ua.Case]:{"minecraft:crafting_shaped":{group:Ua.Opt(n({enum:"recipe_group",additional:!0})),pattern:Ua.ListNode(n()),key:Ua.MapNode(n(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Ua.Opt(n()),ingredients:Ua.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Ua.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Ua.Opt(Ua.NumberNode()),cookingtime:Ua.Opt(Ua.Mod(Ua.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Ua.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Ua.Opt(Ua.NumberNode()),cookingtime:Ua.Opt(Ua.Mod(Ua.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Ua.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Ua.Opt(Ua.NumberNode()),cookingtime:Ua.Opt(Ua.Mod(Ua.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Ua.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Ua.Opt(Ua.NumberNode()),cookingtime:Ua.Opt(Ua.Mod(Ua.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Ua.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),count:Ua.NumberNode({integer:!0})},"minecraft:smithing":{group:Ua.Opt(n()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Ua.Mod(Ua.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Ua.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Ua.Mod(Ua.ObjectNode({item:Ua.Opt(n({validator:"resource",params:{pool:"item"}})),tag:Ua.Opt(n({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Ua.Mod(Ua.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),count:Ua.Opt(Ua.Mod(Ua.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var $a={};Object.defineProperty($a,"__esModule",{value:!0}),$a.initTagsSchemas=void 0;const Xa=Me;$a.initTagsSchemas=function(e,t){const r=Xa.StringNode.bind(void 0,t),n=e=>Xa.Mod(Xa.ObjectNode({replace:Xa.Opt(Xa.BooleanNode()),values:Xa.ListNode(Xa.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Xa.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Xa.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",n("block")),e.register("entity_type_tag",n("entity_type")),e.register("fluid_tag",n("fluid")),e.register("function_tag",n("$function")),e.register("item_tag",n("item"))};var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.initTextComponentSchemas=void 0;const qa=Me;Ja.initTextComponentSchemas=function(e,t){const r=qa.Reference.bind(void 0,e),n=qa.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",qa.Mod(qa.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:n(),change:i},{type:"number",node:qa.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:qa.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:qa.Opt(n()),font:qa.Opt(n()),bold:qa.Opt(qa.BooleanNode()),italic:qa.Opt(qa.BooleanNode()),underlined:qa.Opt(qa.BooleanNode()),strikethrough:qa.Opt(qa.BooleanNode()),obfuscated:qa.Opt(qa.BooleanNode()),insertion:qa.Opt(n()),clickEvent:qa.Opt(qa.ObjectNode({action:n({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[qa.Switch]:[{push:"action"}],[qa.Case]:{change_page:{value:n()},copy_to_clipboard:{value:n()},open_file:{value:n()},open_url:{value:n()},run_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:qa.Opt(qa.ObjectNode({action:n({enum:["show_text","show_item","show_entity"]}),[qa.Switch]:[{push:"action"}],[qa.Case]:{show_text:{value:qa.Opt(r("text_component")),contents:qa.Opt(r("text_component"))},show_item:{value:qa.Opt(n({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:qa.Opt(qa.ObjectNode({id:n({validator:"resource",params:{pool:"item"}}),count:qa.Opt(qa.NumberNode({integer:!0})),tag:qa.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:qa.Opt(qa.ObjectNode({name:qa.Opt(n()),type:qa.Opt(n()),id:qa.Opt(n())})),contents:qa.Opt(qa.Mod(qa.ObjectNode({name:qa.Opt(r("text_component")),type:n({validator:"resource",params:{pool:"entity_type"}}),id:n({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:qa.Opt(r("text_component_list"))};e.register("text_component_object",qa.Mod(qa.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:qa.ObjectNode(s({text:n()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:qa.ObjectNode(s({translate:n(),with:qa.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:qa.ObjectNode(s({score:qa.ObjectNode({name:n({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:n({validator:"objective"}),value:qa.Opt(n())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:qa.ObjectNode(s({selector:n({validator:"entity",params:{amount:"multiple",type:"entities"}})},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:qa.ObjectNode(s({keybind:n({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:qa.ObjectNode(s({nbt:n({validator:"nbt_path"}),block:qa.Opt(n({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:qa.Opt(n({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:qa.Opt(n({validator:"resource",params:{pool:"$storage"}})),interpret:qa.Opt(qa.BooleanNode())},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",qa.Mod(qa.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var Ha={},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.initBiomeSchemas=void 0;const Za=Me;Wa.initBiomeSchemas=function(e,t){const r=Za.StringNode.bind(void 0,t);e.register("biome",Za.Mod(Za.ObjectNode({surface_builder:r({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:Za.NumberNode(),scale:Za.NumberNode(),temperature:Za.NumberNode(),downfall:Za.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:Za.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),player_spawn_friendly:Za.Opt(Za.BooleanNode()),creature_spawn_probability:Za.Opt(Za.NumberNode({min:0,max:1})),effects:Za.ObjectNode({sky_color:Za.NumberNode({color:!0}),fog_color:Za.NumberNode({color:!0}),water_color:Za.NumberNode({color:!0}),water_fog_color:Za.NumberNode({color:!0}),grass_color:Za.Opt(Za.NumberNode({color:!0})),foliage_color:Za.Opt(Za.NumberNode({color:!0})),grass_color_modifier:Za.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:Za.Opt(r()),mood_sound:Za.Opt(Za.ObjectNode({sound:r(),tick_delay:Za.NumberNode({integer:!0}),block_search_extent:Za.NumberNode({integer:!0}),offset:Za.NumberNode()})),additions_sound:Za.Opt(Za.ObjectNode({sound:r(),tick_chance:Za.NumberNode({min:0,max:1})})),music:Za.Opt(Za.ObjectNode({sound:r(),min_delay:Za.NumberNode({integer:!0,min:0}),max_delay:Za.NumberNode({integer:!0,min:0}),replace_current_music:Za.BooleanNode()})),particle:Za.Opt(Za.ObjectNode({options:Za.ObjectNode({type:r()}),probability:Za.NumberNode({min:0,max:1})}))}),starts:Za.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:Za.MapNode(r({enum:["water_ambient","ambient","misc","water_creature","creature","monster"]}),Za.Mod(Za.ListNode(Za.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:Za.NumberNode({integer:!0}),minCount:Za.NumberNode({integer:!0}),maxCount:Za.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:Za.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),Za.Mod(Za.ObjectNode({energy_budget:Za.NumberNode(),charge:Za.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:Za.MapNode(r({enum:["air","liquid"]}),Za.Mod(Za.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:Za.ListNode(Za.Mod(Za.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_feature"}})),{category:()=>"predicate"}),{maxLength:10})},{context:"biome"}),{default:()=>({surface_builder:"minecraft:grass",depth:.125,scale:.05,temperature:.8,downfall:.4,precipitation:"rain",category:"plains",effects:{sky_color:7907327,fog_color:12638463,water_color:4159204,water_fog_color:329011}})}))};var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.initCarverSchemas=void 0;const Ka=Me;Ga.initCarverSchemas=function(e,t){const r=Ka.StringNode.bind(void 0,t);e.register("configured_carver",Ka.Mod(Ka.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/carver"}}),config:Ka.ObjectNode({probability:Ka.NumberNode({min:0,max:1})})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.initDecoratorSchemas=void 0;const Va=Me,Qa=ba;Ya.initDecoratorSchemas=function(e,t){const r=Va.Reference.bind(void 0,e),n=Va.StringNode.bind(void 0,t),i={maximum:Va.NumberNode({integer:!0}),bottom_offset:Va.NumberNode({integer:!0}),top_offset:Va.NumberNode({integer:!0})},o={chance:Va.NumberNode({integer:!0,min:0})},a={count:Qa.UniformInt({min:-10,max:128,maxSpread:128})};e.register("configured_decorator",Va.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/decorator"}}),config:Va.ObjectNode({[Va.Switch]:["pop",{push:"type"}],[Va.Case]:{"minecraft:carving_mask":{step:n({enum:"generation_step"}),probability:Va.NumberNode({min:0,max:1})},"minecraft:chance":o,"minecraft:count":a,"minecraft:count_extra":{count:Va.NumberNode({integer:!0}),extra_count:Va.NumberNode({integer:!0}),extra_chance:Va.NumberNode({min:0,max:1})},"minecraft:count_multilayer":a,"minecraft:count_noise":{noise_level:Va.NumberNode(),below_noise:Va.NumberNode({integer:!0}),above_noise:Va.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:Va.NumberNode({integer:!0}),noise_factor:Va.NumberNode(),noise_offset:Va.Opt(Va.NumberNode())},"minecraft:decorated":{outer:r("configured_decorator"),inner:r("configured_decorator")},"minecraft:depth_average":{baseline:Va.NumberNode({integer:!0}),spread:Va.NumberNode({integer:!0})},"minecraft:fire":a,"minecraft:glowstone":a,"minecraft:lava_lake":o,"minecraft:range":i,"minecraft:range_biased":i,"minecraft:range_very_biased":i,"minecraft:water_lake":o}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var es={},ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.initProcessorListSchemas=void 0;const rs=Me;ts.initProcessorListSchemas=function(e,t){const r=rs.Reference.bind(void 0,e),n=rs.StringNode.bind(void 0,t);e.register("processor_list",rs.Mod(rs.ObjectNode({processors:rs.ListNode(r("processor"))},{context:"processor_list"}),{default:()=>({processors:[{processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]}]})})),e.register("processor",rs.Mod(rs.ObjectNode({processor_type:n({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[rs.Switch]:[{push:"processor_type"}],[rs.Case]:{"minecraft:block_age":{mossiness:rs.NumberNode()},"minecraft:block_ignore":{blocks:rs.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:rs.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:n({enum:"heightmap_type"}),offset:rs.NumberNode({integer:!0})},"minecraft:rule":{rules:rs.ListNode(r("processor_rule"))}}},{category:"function",context:"processor"}),{default:()=>({processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]})})),e.register("processor_rule",rs.Mod(rs.ObjectNode({position_predicate:rs.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:rs.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:block"}}}))},{category:"predicate",context:"processor_rule"}),{default:()=>({location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}})}));const i={min_dist:rs.NumberNode({min:0,max:255,integer:!0}),max_dist:rs.NumberNode({min:0,max:255,integer:!0}),min_chance:rs.NumberNode({min:0,max:1}),max_chance:rs.NumberNode({min:0,max:1})};e.register("pos_rule_test",rs.ObjectNode({predicate_type:n({validator:"resource",params:{pool:"pos_rule_test"}}),[rs.Switch]:[{push:"predicate_type"}],[rs.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:n({enum:["x","y","z"]})},i),"minecraft:linear_pos":i}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",rs.ObjectNode({predicate_type:n({validator:"resource",params:{pool:"rule_test"}}),[rs.Switch]:[{push:"predicate_type"}],[rs.Case]:{"minecraft:block_match":{block:n({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:n({validator:"resource",params:{pool:"block"}}),probability:rs.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:rs.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:n({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(es,"__esModule",{value:!0}),es.initFeatureSchemas=void 0;const ns=Me,is=ba;es.initFeatureSchemas=function(e,t){const r=ns.Reference.bind(void 0,e),n=ns.StringNode.bind(void 0,t),i={can_replace:ns.BooleanNode(),project:ns.BooleanNode(),need_water:ns.BooleanNode(),xspread:ns.NumberNode({integer:!0}),yspread:ns.NumberNode({integer:!0}),zspread:ns.NumberNode({integer:!0}),tries:ns.NumberNode({integer:!0}),state_provider:r("block_state_provider"),block_placer:r("block_placer"),whitelist:ns.ListNode(r("block_state")),blacklist:ns.ListNode(r("block_state"))},o={state:r("block_state"),radius:is.UniformInt({min:0,max:4,maxSpread:4}),half_height:ns.NumberNode({integer:!0,min:0,max:4}),targets:ns.ListNode(r("block_state"))},a={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:ns.Opt(ns.NumberNode({integer:!0}))},s={state:r("block_state"),size:ns.NumberNode({integer:!0,min:0,max:64}),target:r("rule_test")},c={count:is.UniformInt({min:-10,max:128,maxSpread:128})},l=ns.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"});e.register("configured_feature",ns.Mod(ns.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/feature"}}),config:ns.ObjectNode({[ns.Switch]:["pop",{push:"type"}],[ns.Case]:{"minecraft:bamboo":{probability:ns.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:is.UniformInt({min:0,max:2,maxSpread:1}),height:is.UniformInt({min:1,max:5,maxSpread:5})},"minecraft:block_pile":{state_provider:r("block_state_provider")},"minecraft:decorated":{decorator:r("configured_decorator"),feature:l},"minecraft:delta_feature":{contents:r("block_state"),rim:r("block_state"),size:is.UniformInt({min:0,max:8,maxSpread:8}),rim_size:is.UniformInt({min:0,max:8,maxSpread:8})},"minecraft:disk":o,"minecraft:emerald_ore":{state:r("block_state"),target:r("block_state")},"minecraft:end_gateway":{exact:ns.BooleanNode(),exit:ns.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:ns.Opt(ns.BooleanNode()),crystal_beam_target:ns.Opt(r("block_pos")),spikes:ns.ListNode(ns.ObjectNode({centerX:ns.Opt(ns.NumberNode({integer:!0})),centerZ:ns.Opt(ns.NumberNode({integer:!0})),radius:ns.Opt(ns.NumberNode({integer:!0})),height:ns.Opt(ns.NumberNode({integer:!0})),guarded:ns.Opt(ns.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:ns.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":i,"minecraft:forest_rock":{state:r("block_state")},"minecraft:huge_brown_mushroom":a,"minecraft:huge_fungus":{hat_state:r("block_state"),decor_state:r("block_state"),stem_state:r("block_state"),valid_base_block:r("block_state"),planted:ns.Opt(ns.BooleanNode())},"minecraft:huge_red_mushroom":a,"minecraft:ice_patch":o,"minecraft:iceberg":{state:r("block_state")},"minecraft:lake":{state:r("block_state")},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider")},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:is.UniformInt()},"minecraft:no_bonemeal_flower":i,"minecraft:no_surface_ore":s,"minecraft:ore":s,"minecraft:random_patch":i,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:ns.ListNode(ns.ObjectNode({chance:ns.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:sea_pickle":c,"minecraft:seagrass":{probability:ns.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state"),place_on:ns.ListNode(r("block_state")),place_in:ns.ListNode(r("block_state")),place_under:ns.ListNode(r("block_state"))},"minecraft:simple_random_selector":{features:ns.ListNode(l)},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:ns.NumberNode({integer:!0}),hole_count:ns.NumberNode({integer:!0}),requires_block_below:ns.BooleanNode(),valid_blocks:ns.ListNode(n({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{max_water_depth:ns.NumberNode({integer:!0}),ignore_vines:ns.BooleanNode(),heightmap:n({enum:"heightmap_type"}),minimum_size:r("feature_size"),trunk_provider:r("block_state_provider"),leaves_provider:r("block_state_provider"),trunk_placer:ns.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:ns.NumberNode({integer:!0,min:0,max:32}),height_rand_a:ns.NumberNode({integer:!0,min:0,max:24}),height_rand_b:ns.NumberNode({integer:!0,min:0,max:24})},{context:"trunk_placer"}),foliage_placer:ns.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:is.UniformInt({min:0,max:8,maxSpread:8}),offset:is.UniformInt({min:0,max:8,maxSpread:8}),[ns.Switch]:[{push:"type"}],[ns.Case]:{"minecraft:blob_foliage_placer":{height:ns.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:ns.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:ns.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:ns.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:is.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:pine_foliage_placer":{height:is.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:spruce_foliage_placer":{trunk_height:is.UniformInt({min:0,max:16,maxSpread:8})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:ns.ListNode(ns.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[ns.Switch]:[{push:"type"}],[ns.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:ns.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:ns.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))}}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:decorated",config:{decorator:{type:"minecraft:count",config:{count:4}},feature:{type:"minecraft:tree",config:{max_water_depth:0,ignore_vines:!0,minimum_size:{},trunk_placer:{base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{radius:2,offset:0,height:3}}}}})})),e.register("feature_size",ns.Mod(ns.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:ns.Opt(ns.NumberNode({min:0,max:80})),[ns.Switch]:[{push:"type"}],[ns.Case]:{"minecraft:two_layers_feature_size":{limit:ns.Opt(ns.NumberNode({integer:!0,min:0,max:81})),lower_size:ns.Opt(ns.NumberNode({integer:!0,min:0,max:16})),upper_size:ns.Opt(ns.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:ns.Opt(ns.NumberNode({integer:!0,min:0,max:80})),upper_limit:ns.Opt(ns.NumberNode({integer:!0,min:0,max:80})),lower_size:ns.Opt(ns.NumberNode({integer:!0,min:0,max:16})),middle_size:ns.Opt(ns.NumberNode({integer:!0,min:0,max:16})),upper_size:ns.Opt(ns.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",ns.Mod(ns.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[ns.Switch]:[{push:"type"}],[ns.Case]:{"minecraft:rotated_block_provider":{state:r("block_state")},"minecraft:simple_state_provider":{state:r("block_state")},"minecraft:weighted_state_provider":{entries:ns.ListNode(ns.Mod(ns.ObjectNode({weight:ns.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),e.register("block_placer",ns.Mod(ns.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[ns.Switch]:[{push:"type"}],[ns.Case]:{"minecraft:column_placer":{min_size:ns.NumberNode({integer:!0}),extra_size:ns.NumberNode({integer:!0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var os={};Object.defineProperty(os,"__esModule",{value:!0}),os.initNoiseSettingsSchemas=void 0;const as=Me,ss=ba;os.initNoiseSettingsSchemas=function(e,t){const r=as.Reference.bind(void 0,e),n=as.StringNode.bind(void 0,t);e.register("noise_settings",as.Mod(as.ObjectNode({name:as.Mod(n({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:as.NumberNode({integer:!0}),bedrock_floor_position:as.NumberNode({integer:!0}),sea_level:as.NumberNode({integer:!0}),disable_mob_generation:as.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:as.ObjectNode({height:as.NumberNode({integer:!0}),density_factor:as.NumberNode(),density_offset:as.NumberNode(),size_horizontal:as.NumberNode({integer:!0}),size_vertical:as.NumberNode({integer:!0}),simplex_surface_noise:as.BooleanNode(),random_density_offset:as.Opt(as.BooleanNode()),island_noise_override:as.Opt(as.BooleanNode()),amplified:as.Opt(as.BooleanNode()),sampling:as.ObjectNode({xz_scale:as.NumberNode(),y_scale:as.NumberNode(),xz_factor:as.NumberNode(),y_factor:as.NumberNode()}),bottom_slide:as.ObjectNode({target:as.NumberNode({integer:!0}),size:as.NumberNode({integer:!0}),offset:as.NumberNode({integer:!0})}),top_slide:as.ObjectNode({target:as.NumberNode({integer:!0}),size:as.NumberNode({integer:!0}),offset:as.NumberNode({integer:!0})})}),structures:r("generator_structures")},{context:"noise_settings"}),{default:()=>ss.DefaultNoiseSettings})),e.register("generator_structures",as.ObjectNode({stronghold:as.Opt(as.ObjectNode({distance:as.NumberNode({integer:!0,min:0,max:1023}),spread:as.NumberNode({integer:!0,min:0,max:1023}),count:as.NumberNode({integer:!0,min:1,max:4095})})),structures:as.MapNode(n({validator:"resource",params:{pool:"worldgen/structure_feature"}}),as.Mod(as.ObjectNode({spacing:as.NumberNode({integer:!0,min:0,max:4096}),separation:as.Mod(as.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,n,i)=>(t.pop().push("spacing").get()<=r&&n.add(t,"error.separation_smaller_spacing"),e.validate(t,r,n,i))}))),salt:as.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",as.Mod(as.ObjectNode({block:n({validator:"resource",params:{pool:"block"}}),height:as.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var cs={};Object.defineProperty(cs,"__esModule",{value:!0}),cs.initStructureFeatureSchemas=void 0;const ls=Me;cs.initStructureFeatureSchemas=function(e,t){const r=ls.StringNode.bind(void 0,t),n={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:ls.NumberNode({integer:!0})};e.register("configured_structure_feature",ls.Mod(ls.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:ls.ObjectNode({[ls.Switch]:["pop",{push:"type"}],[ls.Case]:{"minecraft:bastion_remnant":n,"minecraft:buried_treasure":{probability:ls.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:ls.NumberNode({min:0,max:1})},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:ls.NumberNode({min:0,max:1}),cluster_probability:ls.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":n,"minecraft:ruined_portal":{portal_type:r({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:ls.Opt(ls.BooleanNode())},"minecraft:village":n}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var us={};Object.defineProperty(us,"__esModule",{value:!0}),us.initSurfaceBuilderSchemas=void 0;const ds=Me;us.initSurfaceBuilderSchemas=function(e,t){const r=ds.StringNode.bind(void 0,t),n=ds.Reference.bind(void 0,e);e.register("configured_surface_builder",ds.Mod(ds.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:ds.ObjectNode({top_material:n("block_state"),under_material:n("block_state"),underwater_material:n("block_state")},{context:"surface_builder"})},{context:"surface_builder"}),{default:()=>({type:"minecraft:default",config:{top_material:{Name:"minecraft:grass_block",Properties:{snowy:"false"}},under_material:{Name:"minecraft:dirt"},underwater_material:{Name:"minecraft:gravel"}}})}))};var ps={};Object.defineProperty(ps,"__esModule",{value:!0}),ps.initTemplatePoolSchemas=void 0;const ms=Me;ps.initTemplatePoolSchemas=function(e,t){const r=ms.Reference.bind(void 0,e),n=ms.StringNode.bind(void 0,t),i=ms.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:r("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]);e.register("template_pool",ms.Mod(ms.ObjectNode({name:n(),fallback:n(),elements:ms.ListNode(r("template_weighted_element"))},{context:"template_pool"}),{default:()=>({fallback:"minecraft:empty",elements:[{weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}}]})})),e.register("template_weighted_element",ms.Mod(ms.ObjectNode({weight:ms.NumberNode({integer:!0,min:1}),element:r("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",ms.Mod(ms.ObjectNode({element_type:n({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:n({enum:["rigid","terrain_matching"]}),[ms.Switch]:[{push:"element_type"}],[ms.Case]:{"minecraft:feature_pool_element":{feature:n({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},"minecraft:legacy_single_pool_element":{location:n({validator:"resource",params:{pool:"$structure"}}),processors:i},"minecraft:list_pool_element":{elements:ms.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:n({validator:"resource",params:{pool:"$structure"}}),processors:i}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.initWorldgenSchemas=void 0;const hs=Wa,fs=Ga,_s=Ya,gs=es,bs=os,ys=ts,vs=cs,xs=us,Ns=ps;Ha.initWorldgenSchemas=function(e,t){hs.initBiomeSchemas(e,t),fs.initCarverSchemas(e,t),_s.initDecoratorSchemas(e,t),gs.initFeatureSchemas(e,t),bs.initNoiseSettingsSchemas(e,t),ys.initProcessorListSchemas(e,t),vs.initStructureFeatureSchemas(e,t),xs.initSurfaceBuilderSchemas(e,t),Ns.initTemplatePoolSchemas(e,t)};var ws={};Object.defineProperty(ws,"__esModule",{value:!0}),ws.initWorldSettingsSchemas=void 0;const ks=Me;ws.initWorldSettingsSchemas=function(e,t){const r=ks.Reference.bind(void 0,e),n=ks.StringNode.bind(void 0,t);e.register("world_settings",ks.Mod(ks.ObjectNode({generate_features:ks.BooleanNode(),bonus_chest:ks.BooleanNode(),seed:ks.NumberNode({integer:!0}),dimensions:ks.MapNode(n({validator:"resource",params:{pool:"$dimension"}}),r("dimension"))},{context:"world_settings"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{generate_features:!0,bonus_chest:!1,seed:e,dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:vanilla_layered",seed:e},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",seed:e,humidity_noise:{firstOctave:-7,amplitudes:[1,1]},altitude_noise:{firstOctave:-7,amplitudes:[1,1]},weirdness_noise:{firstOctave:-7,amplitudes:[1,1]},temperature_noise:{firstOctave:-7,amplitudes:[1,1]},biomes:[{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:0},biome:"minecraft:nether_wastes"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:-.5},biome:"minecraft:soul_sand_valley"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:.4,humidity:0},biome:"minecraft:crimson_forest"},{parameters:{altitude:0,weirdness:0,offset:.375,temperature:0,humidity:.5},biome:"minecraft:warped_forest"},{parameters:{altitude:0,weirdness:0,offset:.175,temperature:-.5,humidity:0},biome:"minecraft:basalt_deltas"}]},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:the_end",seed:e},settings:"minecraft:end"}}}}}}))},Object.defineProperty(_a,"__esModule",{value:!0}),_a.initSchemas=void 0;const Os=ga,Ss=ba,Ds=xa,As=ka,Cs=Da,Es=Ea,Fs=Ta,Bs=Pa,Ms=za,js=$a,Ts=Ja,Is=Ha,Ps=ws;_a.initSchemas=function(e,t){Ss.initCommonSchemas(e,t),Os.initAdvancementSchemas(e,t),Ds.initConditionSchemas(e,t),Cs.initDimensionTypeSchemas(e,t),As.initDimensionSchemas(e,t),Es.initLootTableSchemas(e,t),Fs.initPackMcmetaSchemas(e,t),Bs.initPredicatesSchemas(e,t),Ms.initRecipeSchemas(e,t),js.initTagsSchemas(e,t),Ts.initTextComponentSchemas(e,t),Is.initWorldgenSchemas(e,t),Ps.initWorldSettingsSchemas(e,t)};var Ls=Be&&Be.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),Rs=Be&&Be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),zs=Be&&Be.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&Ls(t,e,r);return Rs(t,e),t};Object.defineProperty(ha,"__esModule",{value:!0});var Us=ha.getSchemas=ha.getCollections=void 0;const $s=Me,Xs=fa,Js=_a;var qs=ha.lootContext=zs(Fa);var Hs=ha.getCollections=function(){const e=new $s.CollectionRegistry;return Xs.initCollections(e),e};Us=ha.getSchemas=function(e){const t=new $s.SchemaRegistry;return Js.initSchemas(t,e),t};var Ws=Object.freeze(Object.assign(Object.create(null),ha,{[Symbol.toStringTag]:"Module",get getSchemas(){return Us},get getCollections(){return Hs},lootContext:qs,default:ha})),Zs={},Gs={};Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.initCollections=void 0,Gs.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:item_used_on_block","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:lightning_strike","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_generates_container_loot","minecraft:player_hurt_entity","minecraft:player_interacted_with_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:shot_crossbow","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:started_riding","minecraft:summoned_entity","minecraft:tame_animal","minecraft:target_hit","minecraft:tick","minecraft:thrown_item_picked_up_by_entity","minecraft:used_ender_eye","minecraft:used_totem","minecraft:using_item","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("dimension",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("dimension_type",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("worldgen/noise_settings",["minecraft:overworld","minecraft:nether","minecraft:end","minecraft:amplified","minecraft:caves","minecraft:floating_islands"]),e.register("entity_source",["this","killer","direct_killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("map_feature",["bastion_remnant","buried_treasure","desert_pyramid","endcity","fortress","igloo","jungle_pyramid","mansion","mineshaft","monument","nether_fossil","ocean_ruin","pillager_outpost","ruined_portal","shipwreck","stronghold","swamp_hut","village"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("worldgen/configured_feature",["minecraft:acacia","minecraft:bamboo_light","minecraft:bamboo_vegetation","minecraft:bamboo","minecraft:basalt_blobs","minecraft:basalt_pillar","minecraft:birch_bees_0002","minecraft:birch_bees_002","minecraft:birch_bees_005","minecraft:birch_other","minecraft:birch_tall","minecraft:birch","minecraft:blackstone_blobs","minecraft:blue_ice","minecraft:bonus_chest","minecraft:brown_mushroom_giant","minecraft:brown_mushroom_nether","minecraft:brown_mushroom_normal","minecraft:brown_mushroom_swamp","minecraft:brown_mushroom_taiga","minecraft:chorus_plant","minecraft:crimson_forest_vegetation","minecraft:crimson_fungi_planted","minecraft:crimson_fungi","minecraft:dark_forest_vegetation_brown","minecraft:dark_forest_vegetation_red","minecraft:dark_oak","minecraft:delta","minecraft:desert_well","minecraft:disk_clay","minecraft:disk_gravel","minecraft:disk_sand","minecraft:end_gateway_delayed","minecraft:end_gateway","minecraft:end_island_decorated","minecraft:end_island","minecraft:end_spike","minecraft:fancy_oak_bees_0002","minecraft:fancy_oak_bees_002","minecraft:fancy_oak_bees_005","minecraft:fancy_oak","minecraft:flower_default","minecraft:flower_forest","minecraft:flower_plain_decorated","minecraft:flower_plain","minecraft:flower_swamp","minecraft:flower_warm","minecraft:forest_flower_trees","minecraft:forest_flower_vegetation_common","minecraft:forest_flower_vegetation","minecraft:forest_rock","minecraft:fossil","minecraft:freeze_top_layer","minecraft:glowstone_extra","minecraft:glowstone","minecraft:huge_brown_mushroom","minecraft:huge_red_mushroom","minecraft:ice_patch","minecraft:ice_spike","minecraft:iceberg_blue","minecraft:iceberg_packed","minecraft:jungle_bush","minecraft:jungle_tree_no_vine","minecraft:jungle_tree","minecraft:kelp_cold","minecraft:kelp_warm","minecraft:lake_lava","minecraft:lake_water","minecraft:large_basalt_columns","minecraft:mega_jungle_tree","minecraft:mega_pine","minecraft:mega_spruce","minecraft:monster_room","minecraft:mushroom_field_vegetation","minecraft:nether_sprouts","minecraft:oak_badlands","minecraft:oak_bees_0002","minecraft:oak_bees_002","minecraft:oak_bees_005","minecraft:oak","minecraft:ore_andesite","minecraft:ore_blackstone","minecraft:ore_coal","minecraft:ore_debris_large","minecraft:ore_debris_small","minecraft:ore_diamond","minecraft:ore_diorite","minecraft:ore_dirt","minecraft:ore_emerald","minecraft:ore_gold_deltas","minecraft:ore_gold_extra","minecraft:ore_gold_nether","minecraft:ore_gold","minecraft:ore_granite","minecraft:ore_gravel_nether","minecraft:ore_gravel","minecraft:ore_infested","minecraft:ore_iron","minecraft:ore_lapis","minecraft:ore_magma","minecraft:ore_quartz_deltas","minecraft:ore_quartz_nether","minecraft:ore_redstone","minecraft:ore_soul_sand","minecraft:patch_berry_bush","minecraft:patch_berry_decorated","minecraft:patch_berry_sparse","minecraft:patch_brown_mushroom","minecraft:patch_cactus_decorated","minecraft:patch_cactus_desert","minecraft:patch_cactus","minecraft:patch_crimson_roots","minecraft:patch_dead_bush_2","minecraft:patch_dead_bush_badlands","minecraft:patch_dead_bush","minecraft:patch_fire","minecraft:patch_grass_badlands","minecraft:patch_grass_forest","minecraft:patch_grass_jungle","minecraft:patch_grass_normal","minecraft:patch_grass_plain","minecraft:patch_grass_savanna","minecraft:patch_grass_taiga_2","minecraft:patch_grass_taiga","minecraft:patch_large_fern","minecraft:patch_melon","minecraft:patch_pumpkin","minecraft:patch_red_mushroom","minecraft:patch_soul_fire","minecraft:patch_sugar_cane_badlands","minecraft:patch_sugar_cane_desert","minecraft:patch_sugar_cane_swamp","minecraft:patch_sugar_cane","minecraft:patch_sunflower","minecraft:patch_taiga_grass","minecraft:patch_tall_grass_2","minecraft:patch_tall_grass","minecraft:patch_waterlilly","minecraft:pile_hay","minecraft:pile_ice","minecraft:pile_melon","minecraft:pile_pumpkin","minecraft:pile_snow","minecraft:pine","minecraft:plain_vegetation","minecraft:red_mushroom_giant","minecraft:red_mushroom_nether","minecraft:red_mushroom_normal","minecraft:red_mushroom_swamp","minecraft:red_mushroom_taiga","minecraft:sea_pickle","minecraft:seagrass_cold","minecraft:seagrass_deep_cold","minecraft:seagrass_deep_warm","minecraft:seagrass_deep","minecraft:seagrass_normal","minecraft:seagrass_river","minecraft:seagrass_simple","minecraft:seagrass_swamp","minecraft:seagrass_warm","minecraft:small_basalt_columns","minecraft:spring_closed_double","minecraft:spring_closed","minecraft:spring_delta","minecraft:spring_lava_double","minecraft:spring_lava","minecraft:spring_open","minecraft:spring_water","minecraft:spruce_snowy","minecraft:spruce","minecraft:super_birch_bees_0002","minecraft:swamp_tree","minecraft:taiga_vegetation","minecraft:trees_birch","minecraft:trees_giant_spruce","minecraft:trees_giant","minecraft:trees_jungle_edge","minecraft:trees_jungle","minecraft:trees_mountain_edge","minecraft:trees_mountain","minecraft:trees_savanna","minecraft:trees_shattered_savanna","minecraft:trees_water","minecraft:twisting_vines","minecraft:vines","minecraft:void_start_platform","minecraft:warm_ocean_vegetation","minecraft:warped_forest_vegetation","minecraft:warped_fungi_planted","minecraft:warped_fungi","minecraft:weeping_vines"]),e.register("worldgen/configured_structure_feature",["minecraft:bastion_remnant","minecraft:buried_treasure","minecraft:desert_pyramid","minecraft:end_city","minecraft:fortress","minecraft:igloo","minecraft:jungle_pyramid","minecraft:mansion","minecraft:mineshaft_mesa","minecraft:mineshaft","minecraft:monument","minecraft:nether_fossil","minecraft:ocean_ruin_cold","minecraft:ocean_ruin_warm","minecraft:pillager_outpost","minecraft:ruined_portal_desert","minecraft:ruined_portal_jungle","minecraft:ruined_portal_mountain","minecraft:ruined_portal_nether","minecraft:ruined_portal_ocean","minecraft:ruined_portal_swamp","minecraft:ruined_portal","minecraft:shipwreck_beached","minecraft:shipwreck","minecraft:stronghold","minecraft:swamp_hut","minecraft:village_desert","minecraft:village_plains","minecraft:village_savanna","minecraft:village_snowy","minecraft:village_taiga"]),e.register("worldgen/configured_surface_builder",["minecraft:badlands","minecraft:basalt_deltas","minecraft:crimson_forest","minecraft:desert","minecraft:end","minecraft:eroded_badlands","minecraft:frozen_ocean","minecraft:full_sand","minecraft:giant_tree_taiga","minecraft:grass","minecraft:gravelly_mountain","minecraft:ice_spikes","minecraft:mountain","minecraft:mycelium","minecraft:nether","minecraft:nope","minecraft:ocean_sand","minecraft:shattered_savanna","minecraft:soul_sand_valley","minecraft:stone","minecraft:swamp","minecraft:warped_forest","minecraft:wooded_badlands"]),e.register("biome_category",["beach","desert","extreme_hills","forest","icy","jungle","mesa","mushroom","nether","none","ocean","plains","river","savanna","swamp","taiga","the_end","underground"]),e.register("heightmap_type",["MOTION_BLOCKING","MOTION_BLOCKING_NO_LEAVES","OCEAN_FLOOR","OCEAN_FLOOR_WG","WORLD_SURFACE","WORLD_SURFACE_WG"]),e.register("generation_step",["air","liquid"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"]),e.register("banner_pattern",["base","square_bottom_left","square_bottom_right","square_top_left","square_top_right","stripe_bottom","stripe_top","stripe_left","stripe_right","stripe_center","stripe_middle","stripe_downright","stripe_downleft","small_stripes","cross","straight_cross","triangle_bottom","triangle_top","triangles_bottom","triangles_top","diagonal_left","diagonal_up_right","diagonal_up_left","diagonal_right","circle","rhombus","half_vertical","half_horizontal","half_vertical_right","half_horizontal_bottom","border","curly_border","gradient","gradient_up","bricks","globe","creeper","skull","flower","mojang","piglin"]),e.register("dye_color",["white","orange","magenta","light_blue","yellow","lime","pink","gray","light_gray","cyan","purple","blue","brown","green","red","black"])};var Ks={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.initAdvancementSchemas=void 0;const Vs=Me;Ys.initAdvancementSchemas=function(e,t){const r=Vs.Reference.bind(void 0,e),n=Vs.StringNode.bind(void 0,t),i=Vs.ChoiceNode([{type:"object",node:Vs.Opt(r("entity_predicate")),change:e=>{var t,r;return null!==(r=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==r?r:{}}},{type:"list",node:Vs.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",Vs.Mod(Vs.ObjectNode({display:Vs.Opt(Vs.Mod(Vs.ObjectNode({icon:Vs.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),nbt:Vs.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:Vs.Opt(n()),frame:Vs.Opt(n({enum:["task","challenge","goal"]})),show_toast:Vs.Opt(Vs.BooleanNode()),announce_to_chat:Vs.Opt(Vs.BooleanNode()),hidden:Vs.Opt(Vs.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:Vs.Opt(n({validator:"resource",params:{pool:"$advancement"}})),criteria:Vs.MapNode(n(),r("advancement_criteria")),requirements:Vs.Opt(Vs.ListNode(Vs.ListNode(n()))),rewards:Vs.Opt(Vs.ObjectNode({function:Vs.Opt(n({validator:"resource",params:{pool:"$function"}})),loot:Vs.Opt(Vs.ListNode(n({validator:"resource",params:{pool:"$loot_table"}}))),recipes:Vs.Opt(Vs.ListNode(n({validator:"resource",params:{pool:"$recipe"}}))),experience:Vs.Opt(Vs.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",Vs.ObjectNode({trigger:n({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:Vs.Opt(Vs.ObjectNode({player:Vs.Mod(i,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[Vs.Switch]:["pop",{push:"trigger"}],[Vs.Case]:{"minecraft:bee_nest_destroyed":{block:Vs.Opt(n({validator:"resource",params:{pool:"block"}})),num_bees_inside:Vs.Opt(Vs.NumberNode({integer:!0})),item:Vs.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:i,partner:i,child:i},"minecraft:brewed_potion":{potion:Vs.Opt(n({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:Vs.Opt(n({validator:"resource",params:{pool:"$dimension"}})),to:Vs.Opt(n({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:Vs.Opt(Vs.ListNode(i))},"minecraft:construct_beacon":{level:r("int_bounds")},"minecraft:consume_item":{item:Vs.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:i,zombie:i},"minecraft:effects_changed":{effects:Vs.Opt(Vs.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),Vs.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds")}))),source:Vs.Opt(i)},"minecraft:enter_block":{block:Vs.Opt(n({validator:"resource",params:{pool:"block"}})),state:Vs.Opt(Vs.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:r("int_bounds"),item:Vs.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:Vs.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:i,killing_blow:Vs.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:Vs.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:i,item:Vs.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:Vs.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:Vs.Opt(Vs.ObjectNode({empty:r("int_bounds"),occupied:r("int_bounds"),full:r("int_bounds")})),items:Vs.Opt(Vs.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:r("int_bounds"),durability:r("int_bounds"),item:Vs.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:Vs.Opt(r("item_predicate")),location:Vs.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:r("int_bounds"),victims:Vs.Opt(Vs.ListNode(i))},"minecraft:levitation":{distance:r("distance_predicate"),duration:r("int_bounds")},"minecraft:lightning_strike":{lightning:i,bystander:i},"minecraft:location":{location:Vs.Opt(r("location_predicate"))},"minecraft:nether_travel":{distance:r("distance_predicate"),entered:Vs.Opt(r("location_predicate")),exited:Vs.Opt(r("location_predicate"))},"minecraft:placed_block":{block:Vs.Opt(n({validator:"resource",params:{pool:"block"}})),state:Vs.Opt(Vs.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:Vs.Opt(r("item_predicate")),location:Vs.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:n({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:Vs.Opt(r("damage_predicate")),entity:i},"minecraft:player_interacted_with_entity":{item:Vs.Opt(r("item_predicate")),entity:i},"minecraft:player_killed_entity":{entity:i,killing_blow:Vs.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:n({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:Vs.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:Vs.Opt(n({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:Vs.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:i},"minecraft:tame_animal":{entity:i},"minecraft:target_hit":{projectile:i,shooter:i,signal_strength:r("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:Vs.Opt(r("entity_predicate")),item:Vs.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:r("float_bounds")},"minecraft:used_totem":{item:Vs.Opt(r("item_predicate"))},"minecraft:using_item":{item:Vs.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:Vs.Opt(r("entity_predicate")),item:Vs.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:r("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Qs={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.IntProvider=e.FloatProvider=e.NoiseSettingsPresets=e.DefaultNoiseSettings=e.DimensionTypePresets=e.DefaultDimensionType=e.FunctionCases=e.ConditionCases=void 0;const t=Me;e.DefaultDimensionType={ultrawarm:!1,natural:!0,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!0,has_raids:!0,has_skylight:!0,has_ceiling:!1,coordinate_scale:1,ambient_light:0,logical_height:256,infiniburn:"minecraft:infiniburn_overworld",min_y:0,height:256},e.DefaultNoiseSettings={name:"minecraft:overworld",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise_caves_enabled:!0,aquifers_enabled:!0,deepslate_enabled:!0,noise:{min_y:0,height:256,density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},e.initCommonSchemas=function(r,n){const i=t.StringNode.bind(void 0,n),o=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),r.register("fluid_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(i(),i()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),r.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]}));const a=e=>t.Opt(t.ChoiceNode([{type:"number",node:t.NumberNode({integer:e}),change:e=>{var t,r;return void 0===e?0:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:0}},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:e})),max:t.Opt(t.NumberNode({integer:e}))},{context:"range"}),change:e=>({min:null!=e?e:0,max:null!=e?e:0})}]));r.register("int_bounds",a(!0)),r.register("float_bounds",a()),r.register("int_range",t.ChoiceNode([{type:"object",node:t.ObjectNode({min:t.Opt(o("number_provider")),max:t.Opt(o("number_provider"))})},{type:"number",node:t.NumberNode({integer:!0})}],{context:"range"}));const c=(e,r,n,o,a,c,l)=>{let u={};a&&Object.keys(l[a]).forEach((e=>{u[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const d=t.ObjectNode(s({type:t.Mod(t.Opt(i({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},u),{context:c,disableSwitchContext:!0}),p=[{type:r,node:l[o][n]}];return a&&p.push({type:"object",priority:-1,node:d}),Object.keys(l).forEach((e=>{p.push({type:e,match:t=>{var r;if("minecraft:"+(null===(r=null==t?void 0:t.type)||void 0===r?void 0:r.replace(/^minecraft:/,""))===e)return!0;const n=t?Object.keys(t):[];return"object"==typeof t&&(0===(null==n?void 0:n.length)||1===(null==n?void 0:n.length)&&"type"===(null==n?void 0:n[0]))},node:d,change:t=>({type:e})})})),t.ChoiceNode(p,{context:c,choiceContext:`${c}.type`})};r.register("number_provider",c("loot_number_provider_type","number","value","minecraft:constant","minecraft:uniform","number_provider",{"minecraft:constant":{value:t.NumberNode()},"minecraft:uniform":{min:o("number_provider"),max:o("number_provider")},"minecraft:binomial":{n:o("number_provider"),p:o("number_provider")},"minecraft:score":{target:o("scoreboard_name_provider"),score:i({validator:"objective"}),scale:t.Opt(t.NumberNode())}})),r.register("scoreboard_name_provider",c("loot_score_provider_type","string","target","minecraft:context",null,"score_provider",{"minecraft:fixed":{name:i({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(i({enum:"entity_source"}),{default:()=>"this"})}})),r.register("nbt_provider",c("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:i({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(i({enum:"copy_source"}),{default:()=>"this"})}})),e.FloatProvider=e=>c("float_provider_type","number","value","minecraft:constant",null,"float_provider",{"minecraft:constant":{value:t.NumberNode(e)},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(e),max_exclusive:t.NumberNode(e)})},"minecraft:clamped_normal":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),mean:t.NumberNode(),deviation:t.NumberNode()})},"minecraft:trapezoid":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),plateau:t.NumberNode()})}}),r.register("float_provider",e.FloatProvider()),e.IntProvider=e=>c("int_provider_type","number","value","minecraft:constant",null,"int_provider",{"minecraft:constant":{value:t.NumberNode(s({integer:!0},e))},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(s({integer:!0},e)),max_inclusive:t.NumberNode(s({integer:!0},e))})},"minecraft:biased_to_bottom":{value:t.ObjectNode({min_inclusive:t.NumberNode(s({integer:!0},e)),max_inclusive:t.NumberNode(s({integer:!0},e))})},"minecraft:clamped":{value:t.ObjectNode({min_inclusive:t.NumberNode(s({integer:!0},e)),max_inclusive:t.NumberNode(s({integer:!0},e)),source:o("int_provider")})}}),r.register("int_provider",e.IntProvider()),r.register("vertical_anchor",t.ChoiceNode(["absolute","above_bottom","below_top"].map((e=>({type:e,match:t=>void 0!==(null==t?void 0:t[e]),change:t=>{var r,n,i;return{[e]:null!==(i=null!==(n=null!==(r=t.absolute)&&void 0!==r?r:t.above_bottom)&&void 0!==n?n:t.below_top)&&void 0!==i?i:0}},node:t.ObjectNode({[e]:t.NumberNode({integer:!0,min:-2048,max:2047})})}))),{context:"vertical_anchor"})),r.register("height_provider",c("height_provider_type","number","value","minecraft:constant",null,"height_provider",{"minecraft:constant":{value:o("vertical_anchor")},"minecraft:uniform":{min_inclusive:o("vertical_anchor"),max_inclusive:o("vertical_anchor")},"minecraft:biased_to_bottom":{min_inclusive:o("vertical_anchor"),max_inclusive:o("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:very_biased_to_bottom":{min_inclusive:o("vertical_anchor"),max_inclusive:o("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:trapezoid":{min_inclusive:o("vertical_anchor"),max_inclusive:o("vertical_anchor"),plateau:t.Opt(t.NumberNode({integer:!0}))}})),e.ConditionCases=(e=i({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:o("damage_source_predicate")},"minecraft:entity_properties":{entity:e,predicate:o("entity_predicate")},"minecraft:entity_scores":{entity:e,scores:t.MapNode(i({validator:"objective"}),o("int_range"))},"minecraft:inverted":{term:o("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:o("location_predicate")},"minecraft:match_tool":{predicate:o("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:reference":{name:i({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:o("int_range"),period:t.Opt(t.NumberNode({integer:!0}))},"minecraft:value_check":{value:o("number_provider"),range:o("int_range")},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}}),e.FunctionCases=(e,r=i({enum:"copy_source"}),a=i({enum:"entity_source"}))=>{const c={"minecraft:apply_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),formula:i({validator:"resource",params:{pool:n.get("loot_table_apply_bonus_formula")}}),parameters:t.Mod(t.ObjectNode({bonusMultiplier:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},"minecraft:copy_name":{source:r},"minecraft:copy_nbt":{source:o("nbt_provider"),ops:t.ListNode(t.ObjectNode({source:i({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:i({validator:"nbt_path",params:{category:"minecraft:item"}}),op:i({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.ListNode(i({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(i({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:o("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(i({enum:"map_feature"})),decoration:t.Opt(i({enum:"map_decoration"})),zoom:t.Opt(t.NumberNode({integer:!0})),search_radius:t.Opt(t.NumberNode({integer:!0})),skip_existing_chunks:t.Opt(t.BooleanNode())},"minecraft:fill_player_head":{entity:a},"minecraft:limit_count":{limit:o("int_range")},"minecraft:looting_enchant":{count:o("number_provider"),limit:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:t.ListNode(o("attribute_modifier"))},"minecraft:set_banner_pattern":{patterns:t.ListNode(t.ObjectNode({pattern:i({enum:"banner_pattern"}),color:i({enum:"dye_color"})})),append:t.Opt(t.BooleanNode())},"minecraft:set_contents":{entries:t.ListNode(o("loot_entry"))},"minecraft:set_count":{count:o("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_damage":{damage:o("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_enchantments":{enchantments:t.MapNode(i({validator:"resource",params:{pool:"enchantment"}}),o("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{name:i({validator:"resource",params:{pool:"$loot_table"}}),seed:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:t.Opt(a),lore:t.ListNode(o("text_component")),replace:t.Opt(t.BooleanNode())},"minecraft:set_name":{entity:t.Opt(a),name:t.Opt(o("text_component"))},"minecraft:set_nbt":{tag:i({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:i({validator:"resource",params:{pool:"mob_effect"}}),duration:o("number_provider")})))}},l={};return n.get("loot_function_type").forEach((t=>{l[t]=s(s({},c[t]),e)})),l},e.DimensionTypePresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$dimension_type"}}),r,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"minecraft:infiniburn_nether",min_y:0,height:256},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"minecraft:infiniburn_end",min_y:0,height:256}}),e.NoiseSettingsPresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),r,{"minecraft:overworld":e.DefaultNoiseSettings,"minecraft:nether":{name:"minecraft:nether",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:netherrack"},default_fluid:{Name:"minecraft:lava",Properties:{level:"0"}}},"minecraft:end":{name:"minecraft:end",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"}},"minecraft:amplified":{name:"minecraft:amplified",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise_caves_enabled:!0,aquifers_enabled:!0,deepslate_enabled:!0,noise:{min_y:0,height:256,density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,amplified:!0,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:caves":{name:"minecraft:caves",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:floating_islands":{name:"minecraft:floating_islands",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}}})}}(Qs);var ec={};Object.defineProperty(ec,"__esModule",{value:!0}),ec.initConditionSchemas=void 0;const tc=Me,rc=Qs;ec.initConditionSchemas=function(e,t){const r=tc.Reference.bind(void 0,e),n=tc.StringNode.bind(void 0,t);e.register("predicate",tc.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",tc.Mod(tc.ObjectNode({condition:n({validator:"resource",params:{pool:"loot_condition_type"}}),[tc.Switch]:[{push:"condition"}],[tc.Case]:rc.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var nc={};Object.defineProperty(nc,"__esModule",{value:!0}),nc.initDimensionSchemas=void 0;const ic=Me,oc=Qs;nc.initDimensionSchemas=function(e,t){const r=ic.Reference.bind(void 0,e),n=ic.StringNode.bind(void 0,t),i=e=>ic.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",ic.Mod(ic.ObjectNode({type:oc.DimensionTypePresets(r("dimension_type")),generator:ic.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[ic.Switch]:[{push:"type"}],[ic.Case]:{"minecraft:noise":{seed:ic.NumberNode({integer:!0}),settings:oc.NoiseSettingsPresets(r("noise_settings")),biome_source:ic.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/biome_source"}}),[ic.Switch]:[{push:"type"}],[ic.Case]:{"minecraft:fixed":{biome:n({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:ic.NumberNode({integer:!0}),preset:ic.Opt(n({enum:["nether"]})),altitude_noise:i(r("generator_biome_noise")),temperature_noise:i(r("generator_biome_noise")),humidity_noise:i(r("generator_biome_noise")),weirdness_noise:i(r("generator_biome_noise")),biomes:i(ic.Mod(ic.ListNode(r("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:ic.Opt(ic.NumberNode({integer:!0,min:0,max:62})),biomes:ic.ListNode(n({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:ic.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:ic.NumberNode({integer:!0}),large_biomes:ic.Opt(ic.BooleanNode()),legacy_biome_init_layer:ic.Opt(ic.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:ic.ObjectNode({biome:ic.Opt(n({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:ic.Opt(ic.BooleanNode()),features:ic.Opt(ic.BooleanNode()),layers:ic.ListNode(r("generator_layer")),structures:r("generator_structures")})}}},{disableSwitchContext:!0})},{category:"pool",context:"dimension"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:fixed",seed:e,biome:"minecraft:plains"},settings:"minecraft:overworld"}}}})),e.register("generator_biome",ic.Mod(ic.ObjectNode({biome:n({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:ic.ObjectNode({altitude:ic.NumberNode(),temperature:ic.NumberNode(),humidity:ic.NumberNode(),weirdness:ic.NumberNode(),offset:ic.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",ic.Mod(ic.ObjectNode({firstOctave:ic.NumberNode({integer:!0}),amplitudes:ic.ListNode(ic.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var ac={};Object.defineProperty(ac,"__esModule",{value:!0}),ac.initDimensionTypeSchemas=void 0;const sc=Me,cc=Qs;ac.initDimensionTypeSchemas=function(e,t){const r=sc.StringNode.bind(void 0,t);e.register("dimension_type",sc.Mod(sc.ObjectNode({name:sc.Mod(r({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:sc.BooleanNode(),natural:sc.BooleanNode(),piglin_safe:sc.BooleanNode(),respawn_anchor_works:sc.BooleanNode(),bed_works:sc.BooleanNode(),has_raids:sc.BooleanNode(),has_skylight:sc.BooleanNode(),has_ceiling:sc.BooleanNode(),coordinate_scale:sc.NumberNode({min:1e-5,max:3e7}),ambient_light:sc.NumberNode(),fixed_time:sc.Opt(sc.NumberNode({integer:!0})),logical_height:sc.NumberNode({integer:!0,min:0,max:4096}),effects:sc.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}}),min_y:sc.NumberNode({integer:!0,min:-2048,max:2047}),height:sc.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>cc.DefaultDimensionType,validate:(t,r,n,i)=>((null==(r=e.validate(t,r,n,i))?void 0:r.min_y)+(null==r?void 0:r.height)>2047&&n.add(t.push("height"),"error.min_y_plus_height",2047),(null==r?void 0:r.logical_height)>(null==r?void 0:r.height)&&n.add(t.push("logical_height"),"error.logical_height"),(null==r?void 0:r.height)%16!=0&&n.add(t.push("height"),"error.height_multiple",16),(null==r?void 0:r.min_y)%16!=0&&n.add(t.push("min_y"),"error.min_y_multiple",16),r)}))))};var lc={};Object.defineProperty(lc,"__esModule",{value:!0}),lc.initItemModifierSchemas=void 0;const uc=Me,dc=Qs;lc.initItemModifierSchemas=function(e,t){const r=uc.Reference.bind(void 0,e),n=uc.StringNode.bind(void 0,t);e.register("item_modifier",uc.ObjectOrList(r("function"),{choiceContext:"function"}));const i={conditions:uc.Opt(uc.ListNode(r("condition")))};e.register("function",uc.Mod(uc.ObjectNode({function:n({validator:"resource",params:{pool:"loot_function_type"}}),[uc.Switch]:[{push:"function"}],[uc.Case]:dc.FunctionCases(i)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var pc={},mc={};Object.defineProperty(mc,"__esModule",{value:!0}),mc.LootFunctions=mc.LootConditions=mc.LootCopySources=mc.LootEntitySources=mc.LootTableTypes=void 0,mc.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),mc.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),mc.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),mc.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),mc.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_banner_pattern",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(pc,"__esModule",{value:!0}),pc.initLootTableSchemas=void 0;const hc=Me,fc=mc,_c=Qs;pc.initLootTableSchemas=function(e,t){const r=hc.Reference.bind(void 0,e),n=hc.StringNode.bind(void 0,t),i={conditions:hc.Opt(hc.ListNode(r("loot_condition")))},o=s({functions:hc.Opt(hc.ListNode(r("loot_function")))},i);function a(e,r,n){const i=[],o=n=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>n.includes(e)))}));for(const[t,{allows:a,requires:s}]of fc.LootTableTypes){const e=[...a,...s];i.push({match:e=>e.getModel().get(new hc.Path(["type"]))===t,node:n(o(e))})}return i.push({match:e=>!0,node:n(r)}),hc.SwitchNode(i)}const c=a(fc.LootConditions,"loot_condition_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(fc.LootFunctions,"loot_function_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),u=a(fc.LootEntitySources,"entity_source",(e=>n({enum:e}))),d=a(fc.LootCopySources,"copy_source",(e=>n({enum:e})));e.register("loot_table",hc.Mod(hc.ObjectNode({type:hc.Opt(n({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:hc.Opt(hc.ListNode(hc.Mod(hc.ObjectNode(s({rolls:r("number_provider"),bonus_rolls:hc.Opt(r("number_provider")),entries:hc.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:hc.Opt(hc.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const p={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",hc.Mod(hc.ObjectNode({type:n({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:hc.Opt(hc.Mod(hc.NumberNode({integer:!0,min:1}),p)),quality:hc.Opt(hc.Mod(hc.NumberNode({integer:!0}),p)),[hc.Switch]:[{push:"type"}],[hc.Case]:{"minecraft:alternatives":s({children:hc.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:n()},o),"minecraft:group":s({children:hc.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:n({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:n({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:hc.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:n({validator:"resource",params:{pool:"$tag/item"}}),expand:hc.Opt(hc.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",hc.Mod(hc.ObjectNode({function:l,[hc.Switch]:[{push:"function"}],[hc.Case]:_c.FunctionCases(i,d,u)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",hc.Mod(hc.ObjectNode({condition:c,[hc.Switch]:[{push:"condition"}],[hc.Case]:_c.ConditionCases(u)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",hc.Mod(hc.ObjectNode({attribute:n({validator:"resource",params:{pool:"attribute"}}),name:n(),amount:r("number_provider"),operation:n({enum:["addition","multiply_base","multiply_total"]}),slot:hc.StringOrList(n({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var gc={};Object.defineProperty(gc,"__esModule",{value:!0}),gc.initPackMcmetaSchemas=void 0;const bc=Me;gc.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",bc.Mod(bc.ObjectNode({pack:bc.Mod(bc.ObjectNode({pack_format:bc.Mod(bc.NumberNode({integer:!0,min:7,max:7}),{default:()=>7,canUpdate:(e,t)=>7!==t,update:()=>[{name:"pack_format",params:[7],newValue:7}]}),description:bc.Reference(e,"text_component")}),{default:()=>({pack_format:7,description:""})})}),{default:()=>({pack:{pack_format:7,description:""}})}))};var yc={};Object.defineProperty(yc,"__esModule",{value:!0}),yc.initPredicatesSchemas=void 0;const vc=Me;yc.initPredicatesSchemas=function(e,t){const r=vc.Reference.bind(void 0,e),n=vc.StringNode.bind(void 0,t),i=vc.ChoiceNode([{type:"string",node:n(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:vc.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:vc.ObjectNode({min:vc.Opt(vc.NumberNode({integer:!0})),max:vc.Opt(vc.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:vc.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",vc.ObjectNode({items:vc.Opt(vc.ListNode(n({validator:"resource",params:{pool:"item"}}))),tag:vc.Opt(n({validator:"resource",params:{pool:"$tag/item"}})),count:r("int_bounds"),durability:r("int_bounds"),potion:vc.Opt(n({validator:"resource",params:{pool:"potion"}})),nbt:vc.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:vc.Opt(vc.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",vc.ObjectNode({enchantment:vc.Opt(n({validator:"resource",params:{pool:"enchantment"}})),levels:r("int_bounds")},{context:"enchantment"})),e.register("block_predicate",vc.ObjectNode({blocks:vc.Opt(vc.ListNode(n({validator:"resource",params:{pool:"block"}}))),tag:vc.Opt(n({validator:"resource",params:{pool:"$tag/block"}})),nbt:vc.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:vc.Opt(vc.MapNode(n(),i,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",vc.ObjectNode({fluid:vc.Opt(n({validator:"resource",params:{pool:"fluid"}})),tag:vc.Opt(n({validator:"resource",params:{pool:"$tag/fluid"}})),state:vc.Opt(vc.MapNode(n(),i))},{context:"fluid"})),e.register("location_predicate",vc.ObjectNode({position:vc.Opt(vc.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds")})),biome:vc.Opt(n({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:vc.Opt(n({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:vc.Opt(n({validator:"resource",params:{pool:"$dimension"}})),light:vc.Opt(vc.ObjectNode({light:r("int_bounds")})),smokey:vc.Opt(vc.BooleanNode()),block:vc.Opt(r("block_predicate")),fluid:vc.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",vc.ObjectNode({type:n({validator:"resource",params:{pool:"stat_type"}}),stat:n(),value:r("int_bounds"),[vc.Switch]:[{push:"type"}],[vc.Case]:{"minecraft:mined":{stat:n({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:n({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",vc.ObjectNode({gamemode:vc.Opt(n({enum:"gamemode"})),level:r("int_bounds"),advancements:vc.Opt(vc.MapNode(n({validator:"resource",params:{pool:"$advancement"}}),vc.ChoiceNode([{type:"boolean",node:vc.BooleanNode(),change:e=>!0},{type:"object",node:vc.MapNode(n(),vc.BooleanNode())}]))),recipes:vc.Opt(vc.MapNode(n({validator:"resource",params:{pool:"$recipe"}}),vc.BooleanNode())),stats:vc.Opt(vc.ListNode(r("statistic_predicate"))),looking_at:vc.Opt(r("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",vc.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds"),ambient:vc.Opt(vc.BooleanNode()),visible:vc.Opt(vc.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",vc.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds"),absolute:r("float_bounds"),horizontal:r("float_bounds")},{context:"distance"})),e.register("entity_predicate",vc.ObjectNode({type:vc.Opt(n({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:vc.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:vc.Opt(n({validator:"team"})),location:vc.Opt(r("location_predicate")),stepping_on:vc.Opt(r("location_predicate")),distance:vc.Opt(r("distance_predicate")),flags:vc.Opt(vc.ObjectNode({is_on_fire:vc.Opt(vc.BooleanNode()),is_sneaking:vc.Opt(vc.BooleanNode()),is_sprinting:vc.Opt(vc.BooleanNode()),is_swimming:vc.Opt(vc.BooleanNode()),is_baby:vc.Opt(vc.BooleanNode())})),equipment:vc.Opt(vc.MapNode(n({enum:"slot"}),r("item_predicate"))),player:vc.Opt(r("player_predicate")),vehicle:vc.Opt(r("entity_predicate")),passenger:vc.Opt(r("entity_predicate")),targeted_entity:vc.Opt(r("entity_predicate")),lightning_bolt:vc.Opt(vc.ObjectNode({blocks_set_on_fire:vc.Opt(r("int_bounds")),entity_struck:vc.Opt(r("entity_predicate"))})),fishing_hook:vc.Opt(vc.ObjectNode({in_open_water:vc.Opt(vc.BooleanNode())})),effects:vc.Opt(vc.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",vc.ObjectNode({is_explosion:vc.Opt(vc.BooleanNode()),is_fire:vc.Opt(vc.BooleanNode()),is_magic:vc.Opt(vc.BooleanNode()),is_projectile:vc.Opt(vc.BooleanNode()),is_lightning:vc.Opt(vc.BooleanNode()),bypasses_armor:vc.Opt(vc.BooleanNode()),bypasses_invulnerability:vc.Opt(vc.BooleanNode()),bypasses_magic:vc.Opt(vc.BooleanNode()),source_entity:vc.Opt(r("entity_predicate")),direct_entity:vc.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",vc.ObjectNode({dealt:r("float_bounds"),taken:r("float_bounds"),blocked:vc.Opt(vc.BooleanNode()),source_entity:vc.Opt(r("entity_predicate")),type:vc.Opt(r("damage_source_predicate"))},{context:"damage"}))};var xc={};Object.defineProperty(xc,"__esModule",{value:!0}),xc.initRecipeSchemas=void 0;const Nc=Me;xc.initRecipeSchemas=function(e,t){const r=Nc.Reference.bind(void 0,e),n=Nc.StringNode.bind(void 0,t);e.register("recipe",Nc.Mod(Nc.ObjectNode({type:n({validator:"resource",params:{pool:"recipe_serializer"}}),[Nc.Switch]:[{push:"type"}],[Nc.Case]:{"minecraft:crafting_shaped":{group:Nc.Opt(n({enum:"recipe_group",additional:!0})),pattern:Nc.ListNode(n()),key:Nc.MapNode(n(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Nc.Opt(n()),ingredients:Nc.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Nc.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Nc.Opt(Nc.NumberNode()),cookingtime:Nc.Opt(Nc.Mod(Nc.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Nc.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Nc.Opt(Nc.NumberNode()),cookingtime:Nc.Opt(Nc.Mod(Nc.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Nc.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Nc.Opt(Nc.NumberNode()),cookingtime:Nc.Opt(Nc.Mod(Nc.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Nc.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:Nc.Opt(Nc.NumberNode()),cookingtime:Nc.Opt(Nc.Mod(Nc.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Nc.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),count:Nc.NumberNode({integer:!0})},"minecraft:smithing":{group:Nc.Opt(n()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Nc.Mod(Nc.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Nc.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Nc.Mod(Nc.ObjectNode({item:Nc.Opt(n({validator:"resource",params:{pool:"item"}})),tag:Nc.Opt(n({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Nc.Mod(Nc.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),count:Nc.Opt(Nc.Mod(Nc.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var wc={};Object.defineProperty(wc,"__esModule",{value:!0}),wc.initTagsSchemas=void 0;const kc=Me;wc.initTagsSchemas=function(e,t){const r=kc.StringNode.bind(void 0,t),n=e=>kc.Mod(kc.ObjectNode({replace:kc.Opt(kc.BooleanNode()),values:kc.ListNode(kc.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:kc.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:kc.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",n("block")),e.register("entity_type_tag",n("entity_type")),e.register("fluid_tag",n("fluid")),e.register("function_tag",n("$function")),e.register("game_event_tag",n("game_event")),e.register("item_tag",n("item"))};var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.initTextComponentSchemas=void 0;const Sc=Me;Oc.initTextComponentSchemas=function(e,t){const r=Sc.Reference.bind(void 0,e),n=Sc.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",Sc.Mod(Sc.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:n(),change:i},{type:"number",node:Sc.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:Sc.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:Sc.Opt(n()),font:Sc.Opt(n()),bold:Sc.Opt(Sc.BooleanNode()),italic:Sc.Opt(Sc.BooleanNode()),underlined:Sc.Opt(Sc.BooleanNode()),strikethrough:Sc.Opt(Sc.BooleanNode()),obfuscated:Sc.Opt(Sc.BooleanNode()),insertion:Sc.Opt(n()),clickEvent:Sc.Opt(Sc.ObjectNode({action:n({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[Sc.Switch]:[{push:"action"}],[Sc.Case]:{change_page:{value:n()},copy_to_clipboard:{value:n()},open_file:{value:n()},open_url:{value:n()},run_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:Sc.Opt(Sc.ObjectNode({action:n({enum:["show_text","show_item","show_entity"]}),[Sc.Switch]:[{push:"action"}],[Sc.Case]:{show_text:{value:Sc.Opt(r("text_component")),contents:Sc.Opt(r("text_component"))},show_item:{value:Sc.Opt(n({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:Sc.Opt(Sc.ObjectNode({id:n({validator:"resource",params:{pool:"item"}}),count:Sc.Opt(Sc.NumberNode({integer:!0})),tag:Sc.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:Sc.Opt(Sc.ObjectNode({name:Sc.Opt(n()),type:Sc.Opt(n()),id:Sc.Opt(n())})),contents:Sc.Opt(Sc.Mod(Sc.ObjectNode({name:Sc.Opt(r("text_component")),type:n({validator:"resource",params:{pool:"entity_type"}}),id:n({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:Sc.Opt(r("text_component_list"))};e.register("text_component_object",Sc.Mod(Sc.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:Sc.ObjectNode(s({text:n()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:Sc.ObjectNode(s({translate:n(),with:Sc.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:Sc.ObjectNode(s({score:Sc.ObjectNode({name:n({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:n({validator:"objective"}),value:Sc.Opt(n())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:Sc.ObjectNode(s({selector:n({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:Sc.Opt(r("text_component"))},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:Sc.ObjectNode(s({keybind:n({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:Sc.ObjectNode(s({nbt:n({validator:"nbt_path"}),block:Sc.Opt(n({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:Sc.Opt(n({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:Sc.Opt(n({validator:"resource",params:{pool:"$storage"}})),interpret:Sc.Opt(Sc.BooleanNode()),separator:Sc.Opt(r("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",Sc.Mod(Sc.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var Dc={},Ac={};Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.initBiomeSchemas=void 0;const Cc=Me;Ac.initBiomeSchemas=function(e,t){const r=Cc.StringNode.bind(void 0,t);e.register("biome",Cc.Mod(Cc.ObjectNode({surface_builder:r({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:Cc.NumberNode(),scale:Cc.NumberNode(),temperature:Cc.NumberNode(),downfall:Cc.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:Cc.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),player_spawn_friendly:Cc.Opt(Cc.BooleanNode()),creature_spawn_probability:Cc.Opt(Cc.NumberNode({min:0,max:1})),effects:Cc.ObjectNode({sky_color:Cc.NumberNode({color:!0}),fog_color:Cc.NumberNode({color:!0}),water_color:Cc.NumberNode({color:!0}),water_fog_color:Cc.NumberNode({color:!0}),grass_color:Cc.Opt(Cc.NumberNode({color:!0})),foliage_color:Cc.Opt(Cc.NumberNode({color:!0})),grass_color_modifier:Cc.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:Cc.Opt(r()),mood_sound:Cc.Opt(Cc.ObjectNode({sound:r(),tick_delay:Cc.NumberNode({integer:!0}),block_search_extent:Cc.NumberNode({integer:!0}),offset:Cc.NumberNode()})),additions_sound:Cc.Opt(Cc.ObjectNode({sound:r(),tick_chance:Cc.NumberNode({min:0,max:1})})),music:Cc.Opt(Cc.ObjectNode({sound:r(),min_delay:Cc.NumberNode({integer:!0,min:0}),max_delay:Cc.NumberNode({integer:!0,min:0}),replace_current_music:Cc.BooleanNode()})),particle:Cc.Opt(Cc.ObjectNode({options:Cc.ObjectNode({type:r()}),probability:Cc.NumberNode({min:0,max:1})}))}),starts:Cc.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:Cc.MapNode(r({enum:["monster","creature","ambient","underground_water_creature","water_creature","water_ambient","misc"]}),Cc.Mod(Cc.ListNode(Cc.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:Cc.NumberNode({integer:!0}),minCount:Cc.NumberNode({integer:!0}),maxCount:Cc.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:Cc.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),Cc.Mod(Cc.ObjectNode({energy_budget:Cc.NumberNode(),charge:Cc.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:Cc.MapNode(r({enum:["air","liquid"]}),Cc.Mod(Cc.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:Cc.ListNode(Cc.Mod(Cc.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_feature"}})),{category:()=>"predicate"}),{maxLength:10})},{context:"biome"}),{default:()=>({surface_builder:"minecraft:grass",depth:.125,scale:.05,temperature:.8,downfall:.4,precipitation:"rain",category:"plains",effects:{sky_color:7907327,fog_color:12638463,water_color:4159204,water_fog_color:329011}})}))};var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.initCarverSchemas=void 0;const Fc=Me,Bc=Qs;Ec.initCarverSchemas=function(e,t){const r=Fc.Reference.bind(void 0,e),n=Fc.StringNode.bind(void 0,t),i={vertical_rotation:Bc.FloatProvider(),shape:Fc.ObjectNode({distance_factor:Bc.FloatProvider(),thickness:Bc.FloatProvider(),width_smoothness:Fc.NumberNode({integer:!0,min:0}),horizontal_radius_factor:Bc.FloatProvider(),vertical_radius_default_factor:Fc.NumberNode(),vertical_radius_center_factor:Fc.NumberNode()})},o={horizontal_radius_multiplier:Bc.FloatProvider(),vertical_radius_multiplier:Bc.FloatProvider(),floor_level:Bc.FloatProvider({min:-1,max:1})};e.register("configured_carver",Fc.Mod(Fc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/carver"}}),config:Fc.ObjectNode({probability:Fc.NumberNode({min:0,max:1}),y:r("height_provider"),yScale:Bc.FloatProvider(),lava_level:r("vertical_anchor"),aquifers_enabled:Fc.BooleanNode(),debug_settings:Fc.Opt(Fc.ObjectNode({debug_mode:Fc.Opt(Fc.BooleanNode()),air_state:Fc.Opt(r("block_state")),water_state:Fc.Opt(r("block_state")),lava_state:Fc.Opt(r("block_state")),barrier_state:Fc.Opt(r("block_state"))})),[Fc.Switch]:["pop",{push:"type"}],[Fc.Case]:{"minecraft:canyon":i,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.initDecoratorSchemas=void 0;const jc=Me,Tc=Qs;Mc.initDecoratorSchemas=function(e,t){const r=jc.Reference.bind(void 0,e),n=jc.StringNode.bind(void 0,t),i={count:Tc.IntProvider({min:0,max:256})};e.register("configured_decorator",jc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/decorator"}}),config:jc.ObjectNode({[jc.Switch]:["pop",{push:"type"}],[jc.Case]:{"minecraft:carving_mask":{step:n({enum:"generation_step"})},"minecraft:cave_surface":{surface:n({enum:["floor","ceiling"]}),floor_to_ceiling_search_range:jc.NumberNode({integer:!0})},"minecraft:chance":{chance:jc.NumberNode({integer:!0,min:0})},"minecraft:count":i,"minecraft:count_extra":{count:jc.NumberNode({integer:!0,min:0}),extra_count:jc.NumberNode({integer:!0,min:0}),extra_chance:jc.NumberNode({min:0,max:1})},"minecraft:count_multilayer":i,"minecraft:count_noise":{noise_level:jc.NumberNode(),below_noise:jc.NumberNode({integer:!0}),above_noise:jc.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:jc.NumberNode({integer:!0}),noise_factor:jc.NumberNode(),noise_offset:jc.Opt(jc.NumberNode())},"minecraft:decorated":{outer:r("configured_decorator"),inner:r("configured_decorator")},"minecraft:heightmap":{heightmap:n({enum:"heightmap_type"})},"minecraft:heightmap_spread_double":{heightmap:n({enum:"heightmap_type"})},"minecraft:lava_lake":{chance:jc.NumberNode({integer:!0,min:0})},"minecraft:range":{height:r("height_provider")},"minecraft:water_depth_threshold":{max_water_depth:jc.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var Ic={},Pc={};Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.initProcessorListSchemas=Pc.Processors=void 0;const Lc=Me;Pc.initProcessorListSchemas=function(e,t){const r=Lc.Reference.bind(void 0,e),n=Lc.StringNode.bind(void 0,t);Pc.Processors=Lc.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:r("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]),e.register("processor_list",Lc.Mod(Lc.ObjectNode({processors:Lc.ListNode(r("processor"))},{context:"processor_list"}),{default:()=>({processors:[{processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]}]})})),e.register("processor",Lc.Mod(Lc.ObjectNode({processor_type:n({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[Lc.Switch]:[{push:"processor_type"}],[Lc.Case]:{"minecraft:block_age":{mossiness:Lc.NumberNode()},"minecraft:block_ignore":{blocks:Lc.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:Lc.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:n({enum:"heightmap_type"}),offset:Lc.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:n({validator:"resource",params:{pool:"$tag/block"}})},"minecraft:rule":{rules:Lc.ListNode(r("processor_rule"))}}},{category:"function",context:"processor"}),{default:()=>({processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]})})),e.register("processor_rule",Lc.Mod(Lc.ObjectNode({position_predicate:Lc.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:Lc.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:block"}}}))},{category:"predicate",context:"processor_rule"}),{default:()=>({location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}})}));const i={min_dist:Lc.Opt(Lc.NumberNode({min:0,max:255,integer:!0})),max_dist:Lc.Opt(Lc.NumberNode({min:0,max:255,integer:!0})),min_chance:Lc.Opt(Lc.NumberNode({min:0,max:1})),max_chance:Lc.Opt(Lc.NumberNode({min:0,max:1}))};e.register("pos_rule_test",Lc.ObjectNode({predicate_type:n({validator:"resource",params:{pool:"pos_rule_test"}}),[Lc.Switch]:[{push:"predicate_type"}],[Lc.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:n({enum:["x","y","z"]})},i),"minecraft:linear_pos":i}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",Lc.ObjectNode({predicate_type:n({validator:"resource",params:{pool:"rule_test"}}),[Lc.Switch]:[{push:"predicate_type"}],[Lc.Case]:{"minecraft:block_match":{block:n({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:n({validator:"resource",params:{pool:"block"}}),probability:Lc.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:Lc.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:n({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.initFeatureSchemas=void 0;const Rc=Me,zc=Qs,Uc=Pc;Ic.initFeatureSchemas=function(e,t){const r=Rc.Reference.bind(void 0,e),n=Rc.StringNode.bind(void 0,t),i={can_replace:Rc.Opt(Rc.BooleanNode()),project:Rc.Opt(Rc.BooleanNode()),need_water:Rc.Opt(Rc.BooleanNode()),xspread:Rc.Opt(Rc.NumberNode({integer:!0,min:0})),yspread:Rc.Opt(Rc.NumberNode({integer:!0,min:0})),zspread:Rc.Opt(Rc.NumberNode({integer:!0,min:0})),tries:Rc.Opt(Rc.NumberNode({integer:!0,min:1})),state_provider:r("block_state_provider"),block_placer:r("block_placer"),whitelist:Rc.ListNode(r("block_state")),blacklist:Rc.ListNode(r("block_state"))},o={state:r("block_state"),radius:zc.IntProvider({min:0,max:8}),half_height:Rc.NumberNode({integer:!0,min:0,max:4}),targets:Rc.ListNode(r("block_state"))},a={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:Rc.Opt(Rc.NumberNode({integer:!0}))},s=Rc.ObjectNode({target:r("rule_test"),state:r("block_state")}),c={size:Rc.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:Rc.NumberNode({min:0,max:1}),targets:Rc.ListNode(s)},l=Rc.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"}),u={surface:n({enum:["floor","ceiling"]}),depth:zc.IntProvider({min:1,max:128}),vertical_range:Rc.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:Rc.NumberNode({min:0,max:1}),extra_edge_column_chance:Rc.NumberNode({min:0,max:1}),vegetation_chance:Rc.NumberNode({min:0,max:1}),xz_radius:zc.IntProvider(),replaceable:n({validator:"resource",params:{pool:"$tag/block"}}),ground_state:r("block_state_provider"),vegetation_feature:l};e.register("configured_feature",Rc.Mod(Rc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/feature"}}),config:Rc.ObjectNode({[Rc.Switch]:["pop",{push:"type"}],[Rc.Case]:{"minecraft:bamboo":{probability:Rc.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:zc.IntProvider({min:0,max:3}),height:zc.IntProvider({min:1,max:10})},"minecraft:block_pile":{state_provider:r("block_state_provider")},"minecraft:decorated":{decorator:r("configured_decorator"),feature:l},"minecraft:decorated_flower":{decorator:r("configured_decorator"),feature:l},"minecraft:delta_feature":{contents:r("block_state"),rim:r("block_state"),size:zc.IntProvider({min:0,max:16}),rim_size:zc.IntProvider({min:0,max:16})},"minecraft:disk":o,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:Rc.NumberNode({integer:!0,min:1,max:512}),height:zc.IntProvider({min:0,max:128}),radius:zc.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:Rc.NumberNode({integer:!0,min:0,max:64}),height_deviation:Rc.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:zc.IntProvider({min:0,max:128}),density:zc.FloatProvider({min:0,max:2}),wetness:zc.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:Rc.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:Rc.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:Rc.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:Rc.BooleanNode(),exit:Rc.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:Rc.Opt(Rc.BooleanNode()),crystal_beam_target:Rc.Opt(r("block_pos")),spikes:Rc.ListNode(Rc.ObjectNode({centerX:Rc.Opt(Rc.NumberNode({integer:!0})),centerZ:Rc.Opt(Rc.NumberNode({integer:!0})),radius:Rc.Opt(Rc.NumberNode({integer:!0})),height:Rc.Opt(Rc.NumberNode({integer:!0})),guarded:Rc.Opt(Rc.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:Rc.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":i,"minecraft:forest_rock":{state:r("block_state")},"minecraft:fossil":{max_empty_corners_allowed:Rc.NumberNode({integer:!0,min:0,max:7}),fossil_structures:Rc.ListNode(n({validator:"resource",params:{pool:"$structure"}})),overlay_structures:Rc.ListNode(n({validator:"resource",params:{pool:"$structure"}})),fossil_processors:Uc.Processors,overlay_processors:Uc.Processors},"minecraft:geode":{blocks:Rc.ObjectNode({filling_provider:r("block_state_provider"),inner_layer_provider:r("block_state_provider"),alternate_inner_layer_provider:r("block_state_provider"),middle_layer_provider:r("block_state_provider"),outer_layer_provider:r("block_state_provider"),inner_placements:Rc.ListNode(r("block_state")),cannot_replace:n({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:n({validator:"resource",params:{pool:"$tag/block"}})}),layers:Rc.ObjectNode({filling:Rc.Opt(Rc.NumberNode({min:.01,max:50})),inner_layer:Rc.Opt(Rc.NumberNode({min:.01,max:50})),middle_layer:Rc.Opt(Rc.NumberNode({min:.01,max:50})),outer_layer:Rc.Opt(Rc.NumberNode({min:.01,max:50}))}),crack:Rc.ObjectNode({generate_crack_chance:Rc.Opt(Rc.NumberNode({min:0,max:1})),base_crack_size:Rc.Opt(Rc.NumberNode({min:0,max:5})),crack_point_offset:Rc.Opt(Rc.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:Rc.Opt(Rc.NumberNode({min:0,max:1})),use_potential_placements_chance:Rc.Opt(Rc.NumberNode({min:0,max:1})),use_alternate_layer0_chance:Rc.Opt(Rc.NumberNode({min:0,max:1})),placements_require_layer0_alternate:Rc.Opt(Rc.BooleanNode()),outer_wall_distance:Rc.Opt(zc.IntProvider({min:1,max:20})),distribution_points:Rc.Opt(zc.IntProvider({min:1,max:20})),point_offset:Rc.Opt(zc.IntProvider({min:0,max:10})),min_gen_offset:Rc.Opt(Rc.NumberNode({integer:!0})),max_gen_offset:Rc.Opt(Rc.NumberNode({integer:!0})),invalid_blocks_threshold:Rc.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:Rc.Opt(Rc.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:Rc.Opt(Rc.NumberNode({min:0,max:1})),can_place_on_floor:Rc.Opt(Rc.BooleanNode()),can_place_on_ceiling:Rc.Opt(Rc.BooleanNode()),can_place_on_wall:Rc.Opt(Rc.BooleanNode()),can_be_placed_on:Rc.ListNode(r("block_state"))},"minecraft:growing_plant":{direction:n({enum:["up","down","north","east","south","west"]}),allow_water:Rc.BooleanNode(),height_distribution:Rc.ListNode(Rc.ObjectNode({weight:Rc.NumberNode({integer:!0}),data:zc.IntProvider()})),body_provider:r("block_state_provider"),head_provider:r("block_state_provider")},"minecraft:huge_brown_mushroom":a,"minecraft:huge_fungus":{hat_state:r("block_state"),decor_state:r("block_state"),stem_state:r("block_state"),valid_base_block:r("block_state"),planted:Rc.Opt(Rc.BooleanNode())},"minecraft:huge_red_mushroom":a,"minecraft:ice_patch":o,"minecraft:iceberg":{state:r("block_state")},"minecraft:lake":{state:r("block_state")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:Rc.Opt(Rc.NumberNode({integer:!0,min:1,max:512})),column_radius:zc.IntProvider({min:0,max:60}),height_scale:zc.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:Rc.NumberNode({min:0,max:1}),stalactite_bluntness:zc.FloatProvider({min:.1,max:10}),stalagmite_bluntness:zc.FloatProvider({min:.1,max:10}),wind_speed:zc.FloatProvider({min:0,max:2}),min_radius_for_wind:Rc.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:Rc.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider")},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:zc.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":i,"minecraft:ore":c,"minecraft:random_patch":i,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:Rc.ListNode(Rc.ObjectNode({chance:Rc.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:replace_single_block":{targets:Rc.ListNode(s)},"minecraft:root_system":{required_vertical_space_for_tree:Rc.NumberNode({integer:!0,min:1,max:64}),root_radius:Rc.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:Rc.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:Rc.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:Rc.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:Rc.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:Rc.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:Rc.NumberNode({integer:!0,min:1,max:64}),root_replaceable:n({validator:"resource",params:{pool:"$tag/block"}}),root_state_provider:r("block_state_provider"),hanging_root_state_provider:r("block_state_provider"),feature:l},"minecraft:scattered_ore":c,"minecraft:sea_pickle":{count:zc.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:Rc.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state_provider"),place_on:Rc.Opt(Rc.ListNode(r("block_state"))),place_in:Rc.Opt(Rc.ListNode(r("block_state"))),place_under:Rc.Opt(Rc.ListNode(r("block_state")))},"minecraft:simple_random_selector":{features:Rc.ListNode(l)},"minecraft:small_dripstone":{max_placements:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:100})),empty_space_search_radius:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:20})),max_offset_from_origin:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:20})),chance_of_taller_dripstone:Rc.Opt(Rc.NumberNode({min:0,max:1}))},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:Rc.NumberNode({integer:!0}),hole_count:Rc.NumberNode({integer:!0}),requires_block_below:Rc.BooleanNode(),valid_blocks:Rc.ListNode(n({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:Rc.Opt(Rc.BooleanNode()),force_dirt:Rc.Opt(Rc.BooleanNode()),minimum_size:r("feature_size"),dirt_provider:r("block_state_provider"),sapling_provider:r("block_state_provider"),trunk_provider:r("block_state_provider"),foliage_provider:r("block_state_provider"),trunk_placer:Rc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:Rc.NumberNode({integer:!0,min:0,max:32}),height_rand_a:Rc.NumberNode({integer:!0,min:0,max:24}),height_rand_b:Rc.NumberNode({integer:!0,min:0,max:24}),[Rc.Switch]:[{push:"type"}],[Rc.Case]:{"minecraft:bending_trunk_placer":{bend_length:zc.IntProvider({min:1,max:64}),min_height_for_leaves:Rc.Opt(Rc.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:Rc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:zc.IntProvider({min:0,max:16}),offset:zc.IntProvider({min:0,max:16}),[Rc.Switch]:[{push:"type"}],[Rc.Case]:{"minecraft:blob_foliage_placer":{height:Rc.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:Rc.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:Rc.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:Rc.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:zc.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:zc.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:zc.IntProvider({min:1,max:512}),leaf_placement_attempts:Rc.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:zc.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:Rc.ListNode(Rc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[Rc.Switch]:[{push:"type"}],[Rc.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:Rc.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:Rc.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:underwater_magma":{floor_search_range:Rc.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:Rc.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:Rc.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":u,"minecraft:waterlogged_vegetation_patch":u}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:decorated",config:{decorator:{type:"minecraft:count",config:{count:4}},feature:{type:"minecraft:tree",config:{max_water_depth:0,ignore_vines:!0,minimum_size:{},trunk_placer:{base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{radius:2,offset:0,height:3}}}}})})),e.register("feature_size",Rc.Mod(Rc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:Rc.Opt(Rc.NumberNode({min:0,max:80})),[Rc.Switch]:[{push:"type"}],[Rc.Case]:{"minecraft:two_layers_feature_size":{limit:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:81})),lower_size:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:16})),upper_size:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:80})),upper_limit:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:80})),lower_size:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:16})),middle_size:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:16})),upper_size:Rc.Opt(Rc.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",Rc.Mod(Rc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[Rc.Switch]:[{push:"type"}],[Rc.Case]:{"minecraft:randomized_int_state_provider":{property:n(),values:zc.IntProvider(),source:r("block_state_provider")},"minecraft:rotated_block_provider":{state:r("block_state")},"minecraft:simple_state_provider":{state:r("block_state")},"minecraft:weighted_state_provider":{entries:Rc.ListNode(Rc.Mod(Rc.ObjectNode({weight:Rc.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),e.register("block_placer",Rc.Mod(Rc.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[Rc.Switch]:[{push:"type"}],[Rc.Case]:{"minecraft:column_placer":{size:zc.IntProvider({min:0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var $c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.initNoiseSettingsSchemas=void 0;const Xc=Me,Jc=Qs;$c.initNoiseSettingsSchemas=function(e,t){const r=Xc.Reference.bind(void 0,e),n=Xc.StringNode.bind(void 0,t);e.register("noise_settings",Xc.Mod(Xc.ObjectNode({name:Xc.Mod(n({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:Xc.NumberNode({integer:!0}),bedrock_floor_position:Xc.NumberNode({integer:!0}),sea_level:Xc.NumberNode({integer:!0}),min_surface_level:Xc.NumberNode({integer:!0}),disable_mob_generation:Xc.BooleanNode(),noise_caves_enabled:Xc.BooleanNode(),noodle_caves_enabled:Xc.BooleanNode(),aquifers_enabled:Xc.BooleanNode(),deepslate_enabled:Xc.BooleanNode(),ore_veins_enabled:Xc.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:Xc.ObjectNode({min_y:Xc.NumberNode({integer:!0,min:-2048,max:2047}),height:Xc.NumberNode({integer:!0,min:0,max:4096}),density_factor:Xc.NumberNode(),density_offset:Xc.NumberNode(),size_horizontal:Xc.NumberNode({integer:!0}),size_vertical:Xc.NumberNode({integer:!0}),simplex_surface_noise:Xc.BooleanNode(),random_density_offset:Xc.Opt(Xc.BooleanNode()),island_noise_override:Xc.Opt(Xc.BooleanNode()),amplified:Xc.Opt(Xc.BooleanNode()),sampling:Xc.ObjectNode({xz_scale:Xc.NumberNode(),y_scale:Xc.NumberNode(),xz_factor:Xc.NumberNode(),y_factor:Xc.NumberNode()}),bottom_slide:Xc.ObjectNode({target:Xc.NumberNode({integer:!0}),size:Xc.NumberNode({integer:!0,min:0}),offset:Xc.NumberNode({integer:!0})}),top_slide:Xc.ObjectNode({target:Xc.NumberNode({integer:!0}),size:Xc.NumberNode({integer:!0,min:0}),offset:Xc.NumberNode({integer:!0})})}),structures:r("generator_structures")},{context:"noise_settings"}),(e=>({default:()=>Jc.DefaultNoiseSettings,validate:(t,r,n,i)=>{var o,a,s,c;return(null===(o=null==(r=e.validate(t,r,n,i))?void 0:r.noise)||void 0===o?void 0:o.min_y)+(null===(a=null==r?void 0:r.noise)||void 0===a?void 0:a.height)>2047&&n.add(t.push("noise").push("height"),"error.min_y_plus_height",2047),(null===(s=null==r?void 0:r.noise)||void 0===s?void 0:s.height)%16!=0&&n.add(t.push("noise").push("height"),"error.height_multiple",16),(null===(c=null==r?void 0:r.noise)||void 0===c?void 0:c.min_y)%16!=0&&n.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),r}})))),e.register("generator_structures",Xc.ObjectNode({stronghold:Xc.Opt(Xc.ObjectNode({distance:Xc.NumberNode({integer:!0,min:0,max:1023}),spread:Xc.NumberNode({integer:!0,min:0,max:1023}),count:Xc.NumberNode({integer:!0,min:1,max:4095})})),structures:Xc.MapNode(n({validator:"resource",params:{pool:"worldgen/structure_feature"}}),Xc.Mod(Xc.ObjectNode({spacing:Xc.NumberNode({integer:!0,min:0,max:4096}),separation:Xc.Mod(Xc.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,n,i)=>(t.pop().push("spacing").get()<=r&&n.add(t,"error.separation_smaller_spacing"),e.validate(t,r,n,i))}))),salt:Xc.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",Xc.Mod(Xc.ObjectNode({block:n({validator:"resource",params:{pool:"block"}}),height:Xc.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var qc={};Object.defineProperty(qc,"__esModule",{value:!0}),qc.initStructureFeatureSchemas=void 0;const Hc=Me;qc.initStructureFeatureSchemas=function(e,t){const r=Hc.StringNode.bind(void 0,t),n=Hc.Reference.bind(void 0,e),i={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:Hc.NumberNode({integer:!0})};e.register("configured_structure_feature",Hc.Mod(Hc.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:Hc.ObjectNode({[Hc.Switch]:["pop",{push:"type"}],[Hc.Case]:{"minecraft:bastion_remnant":i,"minecraft:buried_treasure":{probability:Hc.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:Hc.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:n("height_provider")},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:Hc.NumberNode({min:0,max:1}),cluster_probability:Hc.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":i,"minecraft:ruined_portal":{portal_type:r({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:Hc.Opt(Hc.BooleanNode())},"minecraft:village":i}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.initSurfaceBuilderSchemas=void 0;const Zc=Me;Wc.initSurfaceBuilderSchemas=function(e,t){const r=Zc.StringNode.bind(void 0,t),n=Zc.Reference.bind(void 0,e);e.register("configured_surface_builder",Zc.Mod(Zc.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:Zc.ObjectNode({top_material:n("block_state"),under_material:n("block_state"),underwater_material:n("block_state")},{context:"surface_builder"})},{context:"surface_builder"}),{default:()=>({type:"minecraft:default",config:{top_material:{Name:"minecraft:grass_block",Properties:{snowy:"false"}},under_material:{Name:"minecraft:dirt"},underwater_material:{Name:"minecraft:gravel"}}})}))};var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.initTemplatePoolSchemas=void 0;const Kc=Me,Yc=Pc;Gc.initTemplatePoolSchemas=function(e,t){const r=Kc.Reference.bind(void 0,e),n=Kc.StringNode.bind(void 0,t);e.register("template_pool",Kc.Mod(Kc.ObjectNode({name:n(),fallback:n(),elements:Kc.ListNode(r("template_weighted_element"))},{context:"template_pool"}),{default:()=>({fallback:"minecraft:empty",elements:[{weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}}]})})),e.register("template_weighted_element",Kc.Mod(Kc.ObjectNode({weight:Kc.NumberNode({integer:!0,min:1}),element:r("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",Kc.Mod(Kc.ObjectNode({element_type:n({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:n({enum:["rigid","terrain_matching"]}),[Kc.Switch]:[{push:"element_type"}],[Kc.Case]:{"minecraft:feature_pool_element":{feature:n({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},"minecraft:legacy_single_pool_element":{location:n({validator:"resource",params:{pool:"$structure"}}),processors:Yc.Processors},"minecraft:list_pool_element":{elements:Kc.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:n({validator:"resource",params:{pool:"$structure"}}),processors:Yc.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.initWorldgenSchemas=void 0;const Vc=Ac,Qc=Ec,el=Mc,tl=Ic,rl=$c,nl=Pc,il=qc,ol=Wc,al=Gc;Dc.initWorldgenSchemas=function(e,t){nl.initProcessorListSchemas(e,t),Vc.initBiomeSchemas(e,t),Qc.initCarverSchemas(e,t),el.initDecoratorSchemas(e,t),tl.initFeatureSchemas(e,t),rl.initNoiseSettingsSchemas(e,t),il.initStructureFeatureSchemas(e,t),ol.initSurfaceBuilderSchemas(e,t),al.initTemplatePoolSchemas(e,t)};var sl={};Object.defineProperty(sl,"__esModule",{value:!0}),sl.initWorldSettingsSchemas=void 0;const cl=Me;sl.initWorldSettingsSchemas=function(e,t){const r=cl.Reference.bind(void 0,e),n=cl.StringNode.bind(void 0,t);e.register("world_settings",cl.Mod(cl.ObjectNode({generate_features:cl.BooleanNode(),bonus_chest:cl.BooleanNode(),seed:cl.NumberNode({integer:!0}),dimensions:cl.MapNode(n({validator:"resource",params:{pool:"$dimension"}}),r("dimension"))},{context:"world_settings"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{generate_features:!0,bonus_chest:!1,seed:e,dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:vanilla_layered",seed:e},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",seed:e,humidity_noise:{firstOctave:-7,amplitudes:[1,1]},altitude_noise:{firstOctave:-7,amplitudes:[1,1]},weirdness_noise:{firstOctave:-7,amplitudes:[1,1]},temperature_noise:{firstOctave:-7,amplitudes:[1,1]},biomes:[{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:0},biome:"minecraft:nether_wastes"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:-.5},biome:"minecraft:soul_sand_valley"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:.4,humidity:0},biome:"minecraft:crimson_forest"},{parameters:{altitude:0,weirdness:0,offset:.375,temperature:0,humidity:.5},biome:"minecraft:warped_forest"},{parameters:{altitude:0,weirdness:0,offset:.175,temperature:-.5,humidity:0},biome:"minecraft:basalt_deltas"}]},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:the_end",seed:e},settings:"minecraft:end"}}}}}}))},Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.initSchemas=void 0;const ll=Ys,ul=Qs,dl=ec,pl=nc,ml=ac,hl=lc,fl=pc,_l=gc,gl=yc,bl=xc,yl=wc,vl=Oc,xl=Dc,Nl=sl;Ks.initSchemas=function(e,t){ul.initCommonSchemas(e,t),ll.initAdvancementSchemas(e,t),dl.initConditionSchemas(e,t),ml.initDimensionTypeSchemas(e,t),pl.initDimensionSchemas(e,t),hl.initItemModifierSchemas(e,t),fl.initLootTableSchemas(e,t),_l.initPackMcmetaSchemas(e,t),gl.initPredicatesSchemas(e,t),bl.initRecipeSchemas(e,t),yl.initTagsSchemas(e,t),vl.initTextComponentSchemas(e,t),xl.initWorldgenSchemas(e,t),Nl.initWorldSettingsSchemas(e,t)};var wl=Be&&Be.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),kl=Be&&Be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ol=Be&&Be.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&wl(t,e,r);return kl(t,e),t};Object.defineProperty(Zs,"__esModule",{value:!0});var Sl=Zs.getSchemas=Zs.getCollections=void 0;const Dl=Me,Al=Gs,Cl=Ks;var El=Zs.lootContext=Ol(mc);var Fl=Zs.getCollections=function(){const e=new Dl.CollectionRegistry;return Al.initCollections(e),e};Sl=Zs.getSchemas=function(e){const t=new Dl.SchemaRegistry;return Cl.initSchemas(t,e),t};var Bl=Object.freeze(Object.assign(Object.create(null),Zs,{[Symbol.toStringTag]:"Module",get getSchemas(){return Sl},get getCollections(){return Fl},lootContext:El,default:Zs})),Ml={},jl={};Object.defineProperty(jl,"__esModule",{value:!0}),jl.initCollections=void 0,jl.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:fall_from_height","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:item_used_on_block","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:lightning_strike","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_generates_container_loot","minecraft:player_hurt_entity","minecraft:player_interacted_with_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:ride_entity_in_lava","minecraft:shot_crossbow","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:started_riding","minecraft:summoned_entity","minecraft:tame_animal","minecraft:target_hit","minecraft:tick","minecraft:thrown_item_picked_up_by_entity","minecraft:used_ender_eye","minecraft:used_totem","minecraft:using_item","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("entity_source",["this","killer","direct_killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("map_feature",["bastion_remnant","buried_treasure","desert_pyramid","endcity","fortress","igloo","jungle_pyramid","mansion","mineshaft","monument","nether_fossil","ocean_ruin","pillager_outpost","ruined_portal","shipwreck","stronghold","swamp_hut","village"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("biome_category",["beach","desert","extreme_hills","forest","icy","jungle","mesa","mountain","mushroom","nether","none","ocean","plains","river","savanna","swamp","taiga","the_end","underground"]),e.register("heightmap_type",["MOTION_BLOCKING","MOTION_BLOCKING_NO_LEAVES","OCEAN_FLOOR","OCEAN_FLOOR_WG","WORLD_SURFACE","WORLD_SURFACE_WG"]),e.register("generation_step",["air","liquid"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"]),e.register("banner_pattern",["base","square_bottom_left","square_bottom_right","square_top_left","square_top_right","stripe_bottom","stripe_top","stripe_left","stripe_right","stripe_center","stripe_middle","stripe_downright","stripe_downleft","small_stripes","cross","straight_cross","triangle_bottom","triangle_top","triangles_bottom","triangles_top","diagonal_left","diagonal_up_right","diagonal_up_left","diagonal_right","circle","rhombus","half_vertical","half_horizontal","half_vertical_right","half_horizontal_bottom","border","curly_border","gradient","gradient_up","bricks","globe","creeper","skull","flower","mojang","piglin"]),e.register("dye_color",["white","orange","magenta","light_blue","yellow","lime","pink","gray","light_gray","cyan","purple","blue","brown","green","red","black"]),e.register("cave_surface",["floor","ceiling"]),e.register("direction",["down","up","north","east","south","west"]),e.register("axis",["x","y","z"]),e.register("display_position",["firstperson_righthand","firstperson_lefthand","thirdperson_righthand","thirdperson_lefthand","gui","head","ground","fixed"]),e.register("gui_light",["front","side"]),e.register("item_model_predicates",["angle","blocking","broken","cast","charged","cooldown","custom_model_data","damage","damaged","firework","lefthanded","pull","pulling","throwing","time"])};var Tl={},Il={};Object.defineProperty(Il,"__esModule",{value:!0}),Il.initAdvancementSchemas=void 0;const Pl=Me;Il.initAdvancementSchemas=function(e,t){const r=Pl.Reference.bind(void 0,e),n=Pl.StringNode.bind(void 0,t),i=Pl.ChoiceNode([{type:"object",node:Pl.Opt(r("entity_predicate")),change:e=>{var t,r;return null!==(r=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==r?r:{}}},{type:"list",node:Pl.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",Pl.Mod(Pl.ObjectNode({display:Pl.Opt(Pl.Mod(Pl.ObjectNode({icon:Pl.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),nbt:Pl.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:Pl.Opt(n()),frame:Pl.Opt(n({enum:["task","challenge","goal"]})),show_toast:Pl.Opt(Pl.BooleanNode()),announce_to_chat:Pl.Opt(Pl.BooleanNode()),hidden:Pl.Opt(Pl.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:Pl.Opt(n({validator:"resource",params:{pool:"$advancement"}})),criteria:Pl.MapNode(n(),r("advancement_criteria")),requirements:Pl.Opt(Pl.ListNode(Pl.ListNode(n()))),rewards:Pl.Opt(Pl.ObjectNode({function:Pl.Opt(n({validator:"resource",params:{pool:"$function"}})),loot:Pl.Opt(Pl.ListNode(n({validator:"resource",params:{pool:"$loot_table"}}))),recipes:Pl.Opt(Pl.ListNode(n({validator:"resource",params:{pool:"$recipe"}}))),experience:Pl.Opt(Pl.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",Pl.ObjectNode({trigger:n({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:Pl.Opt(Pl.ObjectNode({player:Pl.Mod(i,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[Pl.Switch]:["pop",{push:"trigger"}],[Pl.Case]:{"minecraft:bee_nest_destroyed":{block:Pl.Opt(n({validator:"resource",params:{pool:"block"}})),num_bees_inside:Pl.Opt(Pl.NumberNode({integer:!0})),item:Pl.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:i,partner:i,child:i},"minecraft:brewed_potion":{potion:Pl.Opt(n({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:Pl.Opt(n({validator:"resource",params:{pool:"$dimension"}})),to:Pl.Opt(n({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:Pl.Opt(Pl.ListNode(i))},"minecraft:construct_beacon":{level:r("int_bounds")},"minecraft:consume_item":{item:Pl.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:i,zombie:i},"minecraft:effects_changed":{effects:Pl.Opt(Pl.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),Pl.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds")}))),source:Pl.Opt(i)},"minecraft:enter_block":{block:Pl.Opt(n({validator:"resource",params:{pool:"block"}})),state:Pl.Opt(Pl.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:r("int_bounds"),item:Pl.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:Pl.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:i,killing_blow:Pl.Opt(r("damage_source_predicate"))},"minecraft:fall_from_height":{start_position:Pl.Opt(r("location_predicate")),distance:Pl.Opt(r("distance_predicate"))},"minecraft:filled_bucket":{item:Pl.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:i,item:Pl.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:Pl.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:Pl.Opt(Pl.ObjectNode({empty:r("int_bounds"),occupied:r("int_bounds"),full:r("int_bounds")})),items:Pl.Opt(Pl.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:r("int_bounds"),durability:r("int_bounds"),item:Pl.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:Pl.Opt(r("item_predicate")),location:Pl.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:r("int_bounds"),victims:Pl.Opt(Pl.ListNode(i))},"minecraft:levitation":{distance:Pl.Opt(r("distance_predicate")),duration:r("int_bounds")},"minecraft:lightning_strike":{lightning:i,bystander:i},"minecraft:location":{location:Pl.Opt(r("location_predicate"))},"minecraft:nether_travel":{start_position:Pl.Opt(r("location_predicate")),distance:Pl.Opt(r("distance_predicate"))},"minecraft:placed_block":{block:Pl.Opt(n({validator:"resource",params:{pool:"block"}})),state:Pl.Opt(Pl.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:Pl.Opt(r("item_predicate")),location:Pl.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:n({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:Pl.Opt(r("damage_predicate")),entity:i},"minecraft:player_interacted_with_entity":{item:Pl.Opt(r("item_predicate")),entity:i},"minecraft:player_killed_entity":{entity:i,killing_blow:Pl.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:n({validator:"resource",params:{pool:"$recipe"}})},"minecraft:ride_entity_in_lava":{start_position:Pl.Opt(r("location_predicate")),distance:Pl.Opt(r("distance_predicate"))},"minecraft:slept_in_bed":{location:Pl.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:Pl.Opt(n({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:Pl.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:i},"minecraft:tame_animal":{entity:i},"minecraft:target_hit":{projectile:i,shooter:i,signal_strength:r("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:Pl.Opt(r("entity_predicate")),item:Pl.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:Pl.Opt(r("float_bounds"))},"minecraft:used_totem":{item:Pl.Opt(r("item_predicate"))},"minecraft:using_item":{item:Pl.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:Pl.Opt(r("entity_predicate")),item:Pl.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:Pl.Opt(r("location_predicate"))}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Ll={},Rl={};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.initModelSchemas=void 0;const zl=Me;Rl.initModelSchemas=function(e,t){zl.Reference.bind(void 0,e);const r=zl.StringNode.bind(void 0,t),n=(e,t,r)=>zl.ListNode(zl.NumberNode({min:t,max:r}),{minLength:e,maxLength:e}),i=zl.ChoiceNode([{type:"alias",match:e=>"string"==typeof e&&e.startsWith("#"),node:r(),change:e=>"string"==typeof e?`#${e}`:"#0"},{type:"reference",match:e=>"string"==typeof e,node:r({validator:"resource",params:{pool:"$texture"}}),change:e=>"string"==typeof e?e.replace(/^#/,""):""}],{choiceContext:"texture"});e.register("model",zl.Mod(zl.ObjectNode({parent:r({validator:"resource",params:{pool:"$model"}}),ambientocclusion:zl.Opt(zl.BooleanNode()),gui_light:zl.Opt(r({enum:"gui_light"})),textures:zl.Opt(zl.MapNode(r(),i)),elements:zl.Opt(zl.ListNode(zl.ObjectNode({from:n(3,-16,32),to:n(3,-16,32),rotation:zl.Opt(zl.ObjectNode({origin:n(3),axis:r({enum:"axis"}),angle:zl.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:zl.Opt(zl.BooleanNode())})),shade:zl.Opt(zl.BooleanNode()),faces:zl.MapNode(r({enum:"direction"}),zl.ObjectNode({texture:i,uv:zl.Opt(n(4)),cullface:zl.Opt(r({enum:"direction"})),rotation:zl.Opt(zl.NumberNode({integer:!0})),tintindex:zl.Opt(zl.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:zl.Opt(zl.MapNode(r({enum:"display_position"}),zl.ObjectNode({rotation:n(3),translation:n(3,-80,80),scale:n(3,-4,4)},{context:"item_transform"}))),overrides:zl.Opt(zl.ListNode(zl.ObjectNode({predicate:zl.MapNode(r({enum:"item_model_predicates"}),zl.NumberNode()),model:r({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.initBlockDefinitionSchemas=void 0;const $l=Me;Ul.initBlockDefinitionSchemas=function(e,t){const r=$l.Reference.bind(void 0,e),n=$l.StringNode.bind(void 0,t);e.register("block_definition",$l.Mod($l.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:$l.ObjectNode({variants:$l.MapNode(n(),r("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:$l.ObjectNode({multipart:$l.ListNode($l.ObjectNode({when:$l.Opt(r("multipart_condition")),apply:r("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const i={model:n({validator:"resource",params:{pool:"$model"}}),x:$l.Opt($l.NumberEnum({integer:!0,values:[0,90,180,270]})),y:$l.Opt($l.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:$l.Opt($l.BooleanNode())};e.register("model_variant",$l.ChoiceNode([{type:"object",node:$l.ObjectNode(i),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:$l.ListNode($l.ObjectNode(c(s({},i),{weight:$l.Opt($l.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",$l.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:$l.MapNode(n(),n()),change:e=>"object"==typeof e&&Array.isArray(null==e?void 0:e.OR)&&e.OR.length>0?e.OR[0]:{}},{type:"or",match:e=>"object"==typeof e&&void 0!==(null==e?void 0:e.OR),node:$l.ObjectNode({OR:$l.ListNode(r("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.initAssetsSchemas=void 0;const Xl=Rl,Jl=Ul;Ll.initAssetsSchemas=function(e,t){Jl.initBlockDefinitionSchemas(e,t),Xl.initModelSchemas(e,t)};var ql={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.InclusiveRange=e.IntProvider=e.FloatProvider=e.NoiseSettingsPresets=e.DefaultNoiseSettings=e.DimensionTypePresets=e.DefaultDimensionType=e.FunctionCases=e.ConditionCases=void 0;const t=Me;e.DefaultDimensionType={ultrawarm:!1,natural:!0,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!0,has_raids:!0,has_skylight:!0,has_ceiling:!1,coordinate_scale:1,ambient_light:0,logical_height:256,infiniburn:"minecraft:infiniburn_overworld",min_y:0,height:256};const r={"minecraft:igloo":{spacing:32,separation:8,salt:14357618},"minecraft:mansion":{spacing:80,separation:20,salt:10387319},"minecraft:jungle_pyramid":{spacing:32,separation:8,salt:14357619},"minecraft:nether_fossil":{spacing:2,separation:1,salt:14357921},"minecraft:stronghold":{spacing:1,separation:0,salt:0},"minecraft:shipwreck":{spacing:24,separation:4,salt:165745295},"minecraft:mineshaft":{spacing:1,separation:0,salt:0},"minecraft:desert_pyramid":{spacing:32,separation:8,salt:14357617},"minecraft:ruined_portal":{spacing:40,separation:15,salt:34222645},"minecraft:fortress":{spacing:27,separation:4,salt:30084232},"minecraft:pillager_outpost":{spacing:32,separation:8,salt:165745296},"minecraft:village":{spacing:32,separation:8,salt:10387312},"minecraft:endcity":{spacing:20,separation:11,salt:10387313},"minecraft:buried_treasure":{spacing:1,separation:0,salt:0},"minecraft:ocean_ruin":{spacing:20,separation:8,salt:14357621},"minecraft:bastion_remnant":{spacing:27,separation:4,salt:30084232},"minecraft:swamp_hut":{spacing:32,separation:8,salt:14357620},"minecraft:monument":{spacing:32,separation:5,salt:10387313}};e.DefaultNoiseSettings={bedrock_roof_position:-2147483648,bedrock_floor_position:0,sea_level:63,noise_caves_enabled:!0,deepslate_enabled:!0,ore_veins_enabled:!0,noodle_caves_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:-64,height:384,size_horizontal:1,size_vertical:2,density_factor:1,density_offset:-.51875,top_slide:{target:-.078125,size:2,offset:8},bottom_slide:{target:.1171875,size:3,offset:0},sampling:{xz_scale:.9999999814507745,y_scale:.9999999814507745,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:0,jaggedness:0}},surface_rule:{type:"minecraft:sequence",sequence:[]},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}},e.initCommonSchemas=function(n,i){const o=t.StringNode.bind(void 0,i),a=t.Reference.bind(void 0,n);n.register("block_state",t.Mod(t.ObjectNode({Name:o({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),n.register("fluid_state",t.Mod(t.ObjectNode({Name:o({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(o(),o()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),n.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]}));const c=e=>t.Opt(t.ChoiceNode([{type:"number",node:t.NumberNode({integer:e}),change:e=>{var t,r;return void 0===e?0:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:0}},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:e})),max:t.Opt(t.NumberNode({integer:e}))},{context:"range"}),change:e=>({min:null!=e?e:0,max:null!=e?e:0})}]));n.register("int_bounds",c(!0)),n.register("float_bounds",c()),n.register("int_range",t.ChoiceNode([{type:"object",node:t.ObjectNode({min:t.Opt(a("number_provider")),max:t.Opt(a("number_provider"))})},{type:"number",node:t.NumberNode({integer:!0})}],{context:"range"}));const l=(e,r,n,i,a,c,l)=>{let u={};a&&Object.keys(l[a]).forEach((e=>{u[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const d=t.ObjectNode(s({type:t.Mod(t.Opt(o({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},u),{context:c,disableSwitchContext:!0}),p=[{type:r,node:l[i][n]}];return a&&p.push({type:"object",priority:-1,node:d}),Object.keys(l).forEach((e=>{p.push({type:e,match:t=>{var r;if("minecraft:"+(null===(r=null==t?void 0:t.type)||void 0===r?void 0:r.replace(/^minecraft:/,""))===e)return!0;const n=t?Object.keys(t):[];return"object"==typeof t&&(0===(null==n?void 0:n.length)||1===(null==n?void 0:n.length)&&"type"===(null==n?void 0:n[0]))},node:d,change:t=>({type:e})})})),t.ChoiceNode(p,{context:c,choiceContext:`${c}.type`})};n.register("number_provider",l("loot_number_provider_type","number","value","minecraft:constant","minecraft:uniform","number_provider",{"minecraft:constant":{value:t.NumberNode()},"minecraft:uniform":{min:a("number_provider"),max:a("number_provider")},"minecraft:binomial":{n:a("number_provider"),p:a("number_provider")},"minecraft:score":{target:a("scoreboard_name_provider"),score:o({validator:"objective"}),scale:t.Opt(t.NumberNode())}})),n.register("scoreboard_name_provider",l("loot_score_provider_type","string","target","minecraft:context",null,"score_provider",{"minecraft:fixed":{name:o({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(o({enum:"entity_source"}),{default:()=>"this"})}})),n.register("nbt_provider",l("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:o({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(o({enum:"copy_source"}),{default:()=>"this"})}})),e.FloatProvider=e=>l("float_provider_type","number","value","minecraft:constant",null,"float_provider",{"minecraft:constant":{value:t.NumberNode(e)},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(e),max_exclusive:t.NumberNode(e)})},"minecraft:clamped_normal":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),mean:t.NumberNode(),deviation:t.NumberNode()})},"minecraft:trapezoid":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),plateau:t.NumberNode()})}}),n.register("float_provider",e.FloatProvider()),e.IntProvider=e=>l("int_provider_type","number","value","minecraft:constant",null,"int_provider",{"minecraft:constant":{value:t.NumberNode(s({integer:!0},e))},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(s({integer:!0},e)),max_inclusive:t.NumberNode(s({integer:!0},e))})},"minecraft:biased_to_bottom":{value:t.ObjectNode({min_inclusive:t.NumberNode(s({integer:!0},e)),max_inclusive:t.NumberNode(s({integer:!0},e))})},"minecraft:clamped":{value:t.ObjectNode({min_inclusive:t.NumberNode(s({integer:!0},e)),max_inclusive:t.NumberNode(s({integer:!0},e)),source:a("int_provider")})},"minecraft:clamped_normal":{value:t.ObjectNode({min_inclusive:t.NumberNode(s({integer:!0},e)),max_inclusive:t.NumberNode(s({integer:!0},e)),mean:t.NumberNode(),deviation:t.NumberNode()})},"minecraft:weighted_list":{distribution:t.ListNode(t.ObjectNode({weight:t.NumberNode({integer:!0}),data:a("int_provider")}))}}),n.register("int_provider",e.IntProvider()),n.register("vertical_anchor",t.ChoiceNode(["absolute","above_bottom","below_top"].map((e=>({type:e,match:t=>void 0!==(null==t?void 0:t[e]),change:t=>{var r,n,i;return{[e]:null!==(i=null!==(n=null!==(r=t.absolute)&&void 0!==r?r:t.above_bottom)&&void 0!==n?n:t.below_top)&&void 0!==i?i:0}},node:t.ObjectNode({[e]:t.NumberNode({integer:!0,min:-2048,max:2047})})}))),{context:"vertical_anchor"})),n.register("height_provider",l("height_provider_type","number","value","minecraft:constant",null,"height_provider",{"minecraft:constant":{value:a("vertical_anchor")},"minecraft:uniform":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor")},"minecraft:biased_to_bottom":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:very_biased_to_bottom":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:trapezoid":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor"),plateau:t.Opt(t.NumberNode({integer:!0}))}})),e.InclusiveRange=e=>t.ObjectNode({min_inclusive:t.NumberNode(e),max_inclusive:t.NumberNode(e)},{context:"range"}),n.register("noise_parameters",t.Mod(t.ObjectNode({firstOctave:t.NumberNode({integer:!0}),amplitudes:t.ListNode(t.NumberNode())},{context:"noise_parameters"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})})),e.ConditionCases=(e=o({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(a("condition"))},"minecraft:block_state_property":{block:o({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:a("damage_source_predicate")},"minecraft:entity_properties":{entity:e,predicate:a("entity_predicate")},"minecraft:entity_scores":{entity:e,scores:t.MapNode(o({validator:"objective"}),a("int_range"))},"minecraft:inverted":{term:a("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:a("location_predicate")},"minecraft:match_tool":{predicate:a("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:reference":{name:o({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:o({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:a("int_range"),period:t.Opt(t.NumberNode({integer:!0}))},"minecraft:value_check":{value:a("number_provider"),range:a("int_range")},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}}),e.FunctionCases=(e,r=o({enum:"copy_source"}),n=o({enum:"entity_source"}))=>{const c={"minecraft:apply_bonus":{enchantment:o({validator:"resource",params:{pool:"enchantment"}}),formula:o({validator:"resource",params:{pool:i.get("loot_table_apply_bonus_formula")}}),parameters:t.Mod(t.ObjectNode({bonusMultiplier:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},"minecraft:copy_name":{source:r},"minecraft:copy_nbt":{source:a("nbt_provider"),ops:t.ListNode(t.ObjectNode({source:o({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:o({validator:"nbt_path",params:{category:"minecraft:item"}}),op:o({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:o({validator:"resource",params:{pool:"block"}}),properties:t.ListNode(o({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(o({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:a("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(o({enum:"map_feature"})),decoration:t.Opt(o({enum:"map_decoration"})),zoom:t.Opt(t.NumberNode({integer:!0})),search_radius:t.Opt(t.NumberNode({integer:!0})),skip_existing_chunks:t.Opt(t.BooleanNode())},"minecraft:fill_player_head":{entity:n},"minecraft:limit_count":{limit:a("int_range")},"minecraft:looting_enchant":{count:a("number_provider"),limit:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:t.ListNode(a("attribute_modifier"))},"minecraft:set_banner_pattern":{patterns:t.ListNode(t.ObjectNode({pattern:o({enum:"banner_pattern"}),color:o({enum:"dye_color"})})),append:t.Opt(t.BooleanNode())},"minecraft:set_contents":{type:o({validator:"resource",params:{pool:"block_entity_type"}}),entries:t.ListNode(a("loot_entry"))},"minecraft:set_count":{count:a("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_damage":{damage:a("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_enchantments":{enchantments:t.MapNode(o({validator:"resource",params:{pool:"enchantment"}}),a("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{type:o({validator:"resource",params:{pool:"block_entity_type"}}),name:o({validator:"resource",params:{pool:"$loot_table"}}),seed:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:t.Opt(n),lore:t.ListNode(a("text_component")),replace:t.Opt(t.BooleanNode())},"minecraft:set_name":{entity:t.Opt(n),name:t.Opt(a("text_component"))},"minecraft:set_nbt":{tag:o({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_potion":{id:o({validator:"resource",params:{pool:"potion"}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:o({validator:"resource",params:{pool:"mob_effect"}}),duration:a("number_provider")})))}},l={};return i.get("loot_function_type").forEach((t=>{l[t]=s(s({},c[t]),e)})),l},e.DimensionTypePresets=r=>t.ObjectOrPreset(o({validator:"resource",params:{pool:"$dimension_type"}}),r,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"minecraft:infiniburn_nether",min_y:0,height:256},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"minecraft:infiniburn_end",min_y:0,height:256}}),e.NoiseSettingsPresets=n=>t.ObjectOrPreset(o({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),n,{"minecraft:overworld":e.DefaultNoiseSettings,"minecraft:nether":{bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:netherrack"},default_fluid:{Properties:{level:"0"},Name:"minecraft:lava"},noise:{min_y:0,height:128,size_horizontal:1,size_vertical:2,density_factor:0,density_offset:-.030078125,top_slide:{target:.9375,size:3,offset:0},bottom_slide:{target:2.5,size:4,offset:-1},sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},terrain_shaper:{offset:0,factor:0,jaggedness:0}},surface_rule:{type:"minecraft:sequence",sequence:[]},structures:{structures:r}},"minecraft:end":{bedrock_roof_position:-2147483648,bedrock_floor_position:-2147483648,sea_level:0,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"},noise:{min_y:0,height:128,size_horizontal:2,size_vertical:1,density_factor:0,density_offset:0,island_noise_override:!0,top_slide:{target:-23.4375,size:64,offset:-46},bottom_slide:{target:-.234375,size:7,offset:1},sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:1,jaggedness:0}},surface_rule:{type:"minecraft:sequence",sequence:[]},structures:{structures:r}},"minecraft:amplified":{bedrock_roof_position:-2147483648,bedrock_floor_position:0,sea_level:63,noise_caves_enabled:!0,deepslate_enabled:!0,ore_veins_enabled:!0,noodle_caves_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:-64,height:384,size_horizontal:1,size_vertical:2,density_factor:1,density_offset:-.51875,amplified:!0,top_slide:{target:-.078125,size:2,offset:8},bottom_slide:{target:.1171875,size:3,offset:0},sampling:{xz_scale:.9999999814507745,y_scale:.9999999814507745,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:0,jaggedness:0}},surface_rule:{type:"minecraft:sequence",sequence:[]},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}},"minecraft:caves":{bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:0,height:128,size_horizontal:1,size_vertical:2,density_factor:0,density_offset:-.030078125,top_slide:{target:.9375,size:3,offset:0},bottom_slide:{target:2.5,size:4,offset:-1},sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},terrain_shaper:{offset:0,factor:0,jaggedness:0}},surface_rule:{type:"minecraft:sequence",sequence:[]},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}},"minecraft:floating_islands":{bedrock_roof_position:-2147483648,bedrock_floor_position:-2147483648,sea_level:0,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:0,height:128,size_horizontal:2,size_vertical:1,density_factor:0,density_offset:0,island_noise_override:!0,top_slide:{target:-23.4375,size:64,offset:-46},bottom_slide:{target:-.234375,size:7,offset:1},sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},terrain_shaper:{offset:0,factor:1,jaggedness:0}},surface_rule:{type:"minecraft:sequence",sequence:[]},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}}})}}(ql);var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.initConditionSchemas=void 0;const Wl=Me,Zl=ql;Hl.initConditionSchemas=function(e,t){const r=Wl.Reference.bind(void 0,e),n=Wl.StringNode.bind(void 0,t);e.register("predicate",Wl.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",Wl.Mod(Wl.ObjectNode({condition:n({validator:"resource",params:{pool:"loot_condition_type"}}),[Wl.Switch]:[{push:"condition"}],[Wl.Case]:Zl.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.initDimensionSchemas=void 0;const Kl=Me,Yl=ql;Gl.initDimensionSchemas=function(e,t){const r=Kl.Reference.bind(void 0,e),n=Kl.StringNode.bind(void 0,t);e.register("dimension",Kl.Mod(Kl.ObjectNode({type:Yl.DimensionTypePresets(r("dimension_type")),generator:Kl.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Kl.Switch]:[{push:"type"}],[Kl.Case]:{"minecraft:noise":{seed:Kl.NumberNode({integer:!0}),settings:Yl.NoiseSettingsPresets(r("noise_settings")),biome_source:Kl.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Kl.Switch]:[{push:"type"}],[Kl.Case]:{"minecraft:fixed":{biome:n({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{preset:Kl.Opt(n({validator:"resource",params:{pool:["minecraft:overworld","minecraft:nether"]}})),biomes:Kl.Mod(Kl.ListNode(r("generator_biome")),{enabled:e=>void 0===e.push("preset").get(),default:()=>[{biome:"minecraft:plains"}]})},"minecraft:checkerboard":{scale:Kl.Opt(Kl.NumberNode({integer:!0,min:0,max:62})),biomes:Kl.ListNode(n({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Kl.NumberNode({integer:!0})}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Kl.ObjectNode({biome:Kl.Opt(n({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Kl.Opt(Kl.BooleanNode()),features:Kl.Opt(Kl.BooleanNode()),layers:Kl.ListNode(r("generator_layer")),structures:r("generator_structures")})}}},{disableSwitchContext:!0})},{category:"pool",context:"dimension"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:fixed",seed:e,biome:"minecraft:plains"},settings:"minecraft:overworld"}}}}));const i=Kl.ChoiceNode([{type:"number",node:Kl.NumberNode({min:-2,max:2}),change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:0}},{type:"list",node:Kl.ListNode(Kl.NumberNode({min:-2,max:2}),{minLength:2,maxLength:2}),change:e=>[null!=e?e:0,null!=e?e:0]}]);e.register("generator_biome",Kl.Mod(Kl.ObjectNode({biome:n({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Kl.ObjectNode({temperature:i,humidity:i,continentalness:i,erosion:i,weirdness:i,depth:i,offset:Kl.NumberNode({min:0,max:1})})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})}))};var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.initDimensionTypeSchemas=void 0;const Ql=Me,eu=ql;Vl.initDimensionTypeSchemas=function(e,t){const r=Ql.StringNode.bind(void 0,t);e.register("dimension_type",Ql.Mod(Ql.ObjectNode({ultrawarm:Ql.BooleanNode(),natural:Ql.BooleanNode(),piglin_safe:Ql.BooleanNode(),respawn_anchor_works:Ql.BooleanNode(),bed_works:Ql.BooleanNode(),has_raids:Ql.BooleanNode(),has_skylight:Ql.BooleanNode(),has_ceiling:Ql.BooleanNode(),coordinate_scale:Ql.NumberNode({min:1e-5,max:3e7}),ambient_light:Ql.NumberNode(),fixed_time:Ql.Opt(Ql.NumberNode({integer:!0})),logical_height:Ql.NumberNode({integer:!0,min:0,max:4096}),effects:Ql.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}}),min_y:Ql.NumberNode({integer:!0,min:-2048,max:2047}),height:Ql.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>eu.DefaultDimensionType,validate:(t,r,n,i)=>((null==(r=e.validate(t,r,n,i))?void 0:r.min_y)+(null==r?void 0:r.height)>2047&&n.add(t.push("height"),"error.min_y_plus_height",2047),(null==r?void 0:r.logical_height)>(null==r?void 0:r.height)&&n.add(t.push("logical_height"),"error.logical_height"),(null==r?void 0:r.height)%16!=0&&n.add(t.push("height"),"error.height_multiple",16),(null==r?void 0:r.min_y)%16!=0&&n.add(t.push("min_y"),"error.min_y_multiple",16),r)}))))};var tu={};Object.defineProperty(tu,"__esModule",{value:!0}),tu.initItemModifierSchemas=void 0;const ru=Me,nu=ql;tu.initItemModifierSchemas=function(e,t){const r=ru.Reference.bind(void 0,e),n=ru.StringNode.bind(void 0,t);e.register("item_modifier",ru.ObjectOrList(r("function"),{choiceContext:"function"}));const i={conditions:ru.Opt(ru.ListNode(r("condition")))};e.register("function",ru.Mod(ru.ObjectNode({function:n({validator:"resource",params:{pool:"loot_function_type"}}),[ru.Switch]:[{push:"function"}],[ru.Case]:nu.FunctionCases(i)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var iu={},ou={};Object.defineProperty(ou,"__esModule",{value:!0}),ou.LootFunctions=ou.LootConditions=ou.LootCopySources=ou.LootEntitySources=ou.LootTableTypes=void 0,ou.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),ou.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),ou.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),ou.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),ou.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_banner_pattern",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(iu,"__esModule",{value:!0}),iu.initLootTableSchemas=void 0;const au=Me,su=ou,cu=ql;iu.initLootTableSchemas=function(e,t){const r=au.Reference.bind(void 0,e),n=au.StringNode.bind(void 0,t),i={conditions:au.Opt(au.ListNode(r("loot_condition")))},o=s({functions:au.Opt(au.ListNode(r("loot_function")))},i);function a(e,r,n){const i=[],o=n=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>n.includes(e)))}));for(const[t,{allows:a,requires:s}]of su.LootTableTypes){const e=[...a,...s];i.push({match:e=>e.getModel().get(new au.Path(["type"]))===t,node:n(o(e))})}return i.push({match:e=>!0,node:n(r)}),au.SwitchNode(i)}const c=a(su.LootConditions,"loot_condition_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(su.LootFunctions,"loot_function_type",(e=>n({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),u=a(su.LootEntitySources,"entity_source",(e=>n({enum:e}))),d=a(su.LootCopySources,"copy_source",(e=>n({enum:e})));e.register("loot_table",au.Mod(au.ObjectNode({type:au.Opt(n({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:au.Opt(au.ListNode(au.Mod(au.ObjectNode(s({rolls:r("number_provider"),bonus_rolls:au.Opt(r("number_provider")),entries:au.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:au.Opt(au.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const p={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",au.Mod(au.ObjectNode({type:n({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:au.Opt(au.Mod(au.NumberNode({integer:!0,min:1}),p)),quality:au.Opt(au.Mod(au.NumberNode({integer:!0}),p)),[au.Switch]:[{push:"type"}],[au.Case]:{"minecraft:alternatives":s({children:au.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:n()},o),"minecraft:group":s({children:au.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:n({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:n({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:au.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:n({validator:"resource",params:{pool:"$tag/item"}}),expand:au.Opt(au.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",au.Mod(au.ObjectNode({function:l,[au.Switch]:[{push:"function"}],[au.Case]:cu.FunctionCases(i,d,u)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",au.Mod(au.ObjectNode({condition:c,[au.Switch]:[{push:"condition"}],[au.Case]:cu.ConditionCases(u)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",au.Mod(au.ObjectNode({attribute:n({validator:"resource",params:{pool:"attribute"}}),name:n(),amount:r("number_provider"),operation:n({enum:["addition","multiply_base","multiply_total"]}),slot:au.StringOrList(n({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var lu={};Object.defineProperty(lu,"__esModule",{value:!0}),lu.initPackMcmetaSchemas=void 0;const uu=Me;lu.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",uu.Mod(uu.ObjectNode({pack:uu.Mod(uu.ObjectNode({pack_format:uu.Mod(uu.NumberNode({integer:!0,min:8,max:8}),{default:()=>8,canUpdate:(e,t)=>8!==t,update:()=>[{name:"pack_format",params:[8],newValue:8}]}),description:uu.Reference(e,"text_component")}),{default:()=>({pack_format:8,description:""})})}),{default:()=>({pack:{pack_format:8,description:""}})}))};var du={};Object.defineProperty(du,"__esModule",{value:!0}),du.initPredicatesSchemas=void 0;const pu=Me;du.initPredicatesSchemas=function(e,t){const r=pu.Reference.bind(void 0,e),n=pu.StringNode.bind(void 0,t),i=pu.ChoiceNode([{type:"string",node:n(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:pu.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:pu.ObjectNode({min:pu.Opt(pu.NumberNode({integer:!0})),max:pu.Opt(pu.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:pu.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",pu.ObjectNode({items:pu.Opt(pu.ListNode(n({validator:"resource",params:{pool:"item"}}))),tag:pu.Opt(n({validator:"resource",params:{pool:"$tag/item"}})),count:r("int_bounds"),durability:r("int_bounds"),potion:pu.Opt(n({validator:"resource",params:{pool:"potion"}})),nbt:pu.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:pu.Opt(pu.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",pu.ObjectNode({enchantment:pu.Opt(n({validator:"resource",params:{pool:"enchantment"}})),levels:r("int_bounds")},{context:"enchantment"})),e.register("block_predicate",pu.ObjectNode({blocks:pu.Opt(pu.ListNode(n({validator:"resource",params:{pool:"block"}}))),tag:pu.Opt(n({validator:"resource",params:{pool:"$tag/block"}})),nbt:pu.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:pu.Opt(pu.MapNode(n(),i,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",pu.ObjectNode({fluid:pu.Opt(n({validator:"resource",params:{pool:"fluid"}})),tag:pu.Opt(n({validator:"resource",params:{pool:"$tag/fluid"}})),state:pu.Opt(pu.MapNode(n(),i))},{context:"fluid"})),e.register("location_predicate",pu.ObjectNode({position:pu.Opt(pu.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds")})),biome:pu.Opt(n({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:pu.Opt(n({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:pu.Opt(n({validator:"resource",params:{pool:"$dimension"}})),light:pu.Opt(pu.ObjectNode({light:r("int_bounds")})),smokey:pu.Opt(pu.BooleanNode()),block:pu.Opt(r("block_predicate")),fluid:pu.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",pu.ObjectNode({type:n({validator:"resource",params:{pool:"stat_type"}}),stat:n(),value:r("int_bounds"),[pu.Switch]:[{push:"type"}],[pu.Case]:{"minecraft:mined":{stat:n({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:n({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",pu.ObjectNode({gamemode:pu.Opt(n({enum:"gamemode"})),level:r("int_bounds"),advancements:pu.Opt(pu.MapNode(n({validator:"resource",params:{pool:"$advancement"}}),pu.ChoiceNode([{type:"boolean",node:pu.BooleanNode(),change:e=>!0},{type:"object",node:pu.MapNode(n(),pu.BooleanNode())}]))),recipes:pu.Opt(pu.MapNode(n({validator:"resource",params:{pool:"$recipe"}}),pu.BooleanNode())),stats:pu.Opt(pu.ListNode(r("statistic_predicate"))),looking_at:pu.Opt(r("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",pu.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds"),ambient:pu.Opt(pu.BooleanNode()),visible:pu.Opt(pu.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",pu.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds"),absolute:r("float_bounds"),horizontal:r("float_bounds")},{context:"distance"})),e.register("entity_predicate",pu.ObjectNode({type:pu.Opt(n({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:pu.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:pu.Opt(n({validator:"team"})),location:pu.Opt(r("location_predicate")),stepping_on:pu.Opt(r("location_predicate")),distance:pu.Opt(r("distance_predicate")),flags:pu.Opt(pu.ObjectNode({is_on_fire:pu.Opt(pu.BooleanNode()),is_sneaking:pu.Opt(pu.BooleanNode()),is_sprinting:pu.Opt(pu.BooleanNode()),is_swimming:pu.Opt(pu.BooleanNode()),is_baby:pu.Opt(pu.BooleanNode())})),equipment:pu.Opt(pu.MapNode(n({enum:"slot"}),r("item_predicate"))),player:pu.Opt(r("player_predicate")),vehicle:pu.Opt(r("entity_predicate")),passenger:pu.Opt(r("entity_predicate")),targeted_entity:pu.Opt(r("entity_predicate")),lightning_bolt:pu.Opt(pu.ObjectNode({blocks_set_on_fire:pu.Opt(r("int_bounds")),entity_struck:pu.Opt(r("entity_predicate"))})),fishing_hook:pu.Opt(pu.ObjectNode({in_open_water:pu.Opt(pu.BooleanNode())})),effects:pu.Opt(pu.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",pu.ObjectNode({is_explosion:pu.Opt(pu.BooleanNode()),is_fire:pu.Opt(pu.BooleanNode()),is_magic:pu.Opt(pu.BooleanNode()),is_projectile:pu.Opt(pu.BooleanNode()),is_lightning:pu.Opt(pu.BooleanNode()),bypasses_armor:pu.Opt(pu.BooleanNode()),bypasses_invulnerability:pu.Opt(pu.BooleanNode()),bypasses_magic:pu.Opt(pu.BooleanNode()),source_entity:pu.Opt(r("entity_predicate")),direct_entity:pu.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",pu.ObjectNode({dealt:r("float_bounds"),taken:r("float_bounds"),blocked:pu.Opt(pu.BooleanNode()),source_entity:pu.Opt(r("entity_predicate")),type:pu.Opt(r("damage_source_predicate"))},{context:"damage"}))};var mu={};Object.defineProperty(mu,"__esModule",{value:!0}),mu.initRecipeSchemas=void 0;const hu=Me;mu.initRecipeSchemas=function(e,t){const r=hu.Reference.bind(void 0,e),n=hu.StringNode.bind(void 0,t);e.register("recipe",hu.Mod(hu.ObjectNode({type:n({validator:"resource",params:{pool:"recipe_serializer"}}),[hu.Switch]:[{push:"type"}],[hu.Case]:{"minecraft:crafting_shaped":{group:hu.Opt(n({enum:"recipe_group",additional:!0})),pattern:hu.ListNode(n()),key:hu.MapNode(n(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:hu.Opt(n()),ingredients:hu.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:hu.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:hu.Opt(hu.NumberNode()),cookingtime:hu.Opt(hu.Mod(hu.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:hu.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:hu.Opt(hu.NumberNode()),cookingtime:hu.Opt(hu.Mod(hu.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:hu.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:hu.Opt(hu.NumberNode()),cookingtime:hu.Opt(hu.Mod(hu.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:hu.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),experience:hu.Opt(hu.NumberNode()),cookingtime:hu.Opt(hu.Mod(hu.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:hu.Opt(n()),ingredient:r("recipe_ingredient"),result:n({validator:"resource",params:{pool:"item"}}),count:hu.NumberNode({integer:!0})},"minecraft:smithing":{group:hu.Opt(n()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe",disableSwitchContext:!0}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",hu.Mod(hu.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:hu.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",hu.Mod(hu.ObjectNode({item:hu.Opt(n({validator:"resource",params:{pool:"item"}})),tag:hu.Opt(n({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",hu.Mod(hu.ObjectNode({item:n({validator:"resource",params:{pool:"item"}}),count:hu.Opt(hu.Mod(hu.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var fu={};Object.defineProperty(fu,"__esModule",{value:!0}),fu.initTagsSchemas=void 0;const _u=Me;fu.initTagsSchemas=function(e,t){const r=_u.StringNode.bind(void 0,t),n=e=>_u.Mod(_u.ObjectNode({replace:_u.Opt(_u.BooleanNode()),values:_u.ListNode(_u.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:_u.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:_u.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",n("block")),e.register("entity_type_tag",n("entity_type")),e.register("fluid_tag",n("fluid")),e.register("function_tag",n("$function")),e.register("game_event_tag",n("game_event")),e.register("item_tag",n("item"))};var gu={};Object.defineProperty(gu,"__esModule",{value:!0}),gu.initTextComponentSchemas=void 0;const bu=Me;gu.initTextComponentSchemas=function(e,t){const r=bu.Reference.bind(void 0,e),n=bu.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",bu.Mod(bu.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:n(),change:i},{type:"number",node:bu.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:bu.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:bu.Opt(n()),font:bu.Opt(n()),bold:bu.Opt(bu.BooleanNode()),italic:bu.Opt(bu.BooleanNode()),underlined:bu.Opt(bu.BooleanNode()),strikethrough:bu.Opt(bu.BooleanNode()),obfuscated:bu.Opt(bu.BooleanNode()),insertion:bu.Opt(n()),clickEvent:bu.Opt(bu.ObjectNode({action:n({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[bu.Switch]:[{push:"action"}],[bu.Case]:{change_page:{value:n()},copy_to_clipboard:{value:n()},open_file:{value:n()},open_url:{value:n()},run_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:n({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:bu.Opt(bu.ObjectNode({action:n({enum:["show_text","show_item","show_entity"]}),[bu.Switch]:[{push:"action"}],[bu.Case]:{show_text:{value:bu.Opt(r("text_component")),contents:bu.Opt(r("text_component"))},show_item:{value:bu.Opt(n({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:bu.Opt(bu.ObjectNode({id:n({validator:"resource",params:{pool:"item"}}),count:bu.Opt(bu.NumberNode({integer:!0})),tag:bu.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:bu.Opt(bu.ObjectNode({name:bu.Opt(n()),type:bu.Opt(n()),id:bu.Opt(n())})),contents:bu.Opt(bu.Mod(bu.ObjectNode({name:bu.Opt(r("text_component")),type:n({validator:"resource",params:{pool:"entity_type"}}),id:n({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:bu.Opt(r("text_component_list"))};e.register("text_component_object",bu.Mod(bu.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:bu.ObjectNode(s({text:n()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:bu.ObjectNode(s({translate:n(),with:bu.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:bu.ObjectNode(s({score:bu.ObjectNode({name:n({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:n({validator:"objective"}),value:bu.Opt(n())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:bu.ObjectNode(s({selector:n({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:bu.Opt(r("text_component"))},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:bu.ObjectNode(s({keybind:n({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:bu.ObjectNode(s({nbt:n({validator:"nbt_path"}),block:bu.Opt(n({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:bu.Opt(n({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:bu.Opt(n({validator:"resource",params:{pool:"$storage"}})),interpret:bu.Opt(bu.BooleanNode()),separator:bu.Opt(r("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",bu.Mod(bu.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var yu={},vu={};Object.defineProperty(vu,"__esModule",{value:!0}),vu.initBiomeSchemas=void 0;const xu=Me;vu.initBiomeSchemas=function(e,t){const r=xu.StringNode.bind(void 0,t);e.register("biome",xu.Mod(xu.ObjectNode({temperature:xu.NumberNode(),downfall:xu.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:xu.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),creature_spawn_probability:xu.Opt(xu.NumberNode({min:0,max:1})),effects:xu.ObjectNode({sky_color:xu.NumberNode({color:!0}),fog_color:xu.NumberNode({color:!0}),water_color:xu.NumberNode({color:!0}),water_fog_color:xu.NumberNode({color:!0}),grass_color:xu.Opt(xu.NumberNode({color:!0})),foliage_color:xu.Opt(xu.NumberNode({color:!0})),grass_color_modifier:xu.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:xu.Opt(r()),mood_sound:xu.Opt(xu.ObjectNode({sound:r(),tick_delay:xu.NumberNode({integer:!0}),block_search_extent:xu.NumberNode({integer:!0}),offset:xu.NumberNode()})),additions_sound:xu.Opt(xu.ObjectNode({sound:r(),tick_chance:xu.NumberNode({min:0,max:1})})),music:xu.Opt(xu.ObjectNode({sound:r(),min_delay:xu.NumberNode({integer:!0,min:0}),max_delay:xu.NumberNode({integer:!0,min:0}),replace_current_music:xu.BooleanNode()})),particle:xu.Opt(xu.ObjectNode({options:xu.ObjectNode({type:r()}),probability:xu.NumberNode({min:0,max:1})}))}),spawners:xu.MapNode(r({enum:["monster","creature","ambient","axolotls","underground_water_creature","water_creature","water_ambient","misc"]}),xu.Mod(xu.ListNode(xu.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:xu.NumberNode({integer:!0}),minCount:xu.NumberNode({integer:!0}),maxCount:xu.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:xu.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),xu.Mod(xu.ObjectNode({energy_budget:xu.NumberNode(),charge:xu.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:xu.MapNode(r({enum:["air","liquid"]}),xu.Mod(xu.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:xu.ListNode(xu.Mod(xu.ListNode(r({validator:"resource",params:{pool:"$worldgen/placed_feature"}})),{category:()=>"predicate"}),{maxLength:11})},{context:"biome"}),{default:()=>({temperature:.8,downfall:.4,precipitation:"rain",category:"plains",effects:{sky_color:7907327,fog_color:12638463,water_color:4159204,water_fog_color:329011}})}))};var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.initCarverSchemas=void 0;const wu=Me,ku=ql;Nu.initCarverSchemas=function(e,t){const r=wu.Reference.bind(void 0,e),n=wu.StringNode.bind(void 0,t),i={vertical_rotation:ku.FloatProvider(),shape:wu.ObjectNode({distance_factor:ku.FloatProvider(),thickness:ku.FloatProvider(),width_smoothness:wu.NumberNode({integer:!0,min:0}),horizontal_radius_factor:ku.FloatProvider(),vertical_radius_default_factor:wu.NumberNode(),vertical_radius_center_factor:wu.NumberNode()})},o={horizontal_radius_multiplier:ku.FloatProvider(),vertical_radius_multiplier:ku.FloatProvider(),floor_level:ku.FloatProvider({min:-1,max:1})};e.register("configured_carver",wu.Mod(wu.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/carver"}}),config:wu.ObjectNode({probability:wu.NumberNode({min:0,max:1}),y:r("height_provider"),yScale:ku.FloatProvider(),lava_level:r("vertical_anchor"),debug_settings:wu.Opt(wu.ObjectNode({debug_mode:wu.Opt(wu.BooleanNode()),air_state:wu.Opt(r("block_state")),water_state:wu.Opt(r("block_state")),lava_state:wu.Opt(r("block_state")),barrier_state:wu.Opt(r("block_state"))})),[wu.Switch]:["pop",{push:"type"}],[wu.Case]:{"minecraft:canyon":i,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.initDecoratorSchemas=void 0;const Su=Me,Du=ql;Ou.initDecoratorSchemas=function(e,t){const r=Su.Reference.bind(void 0,e),n=Su.StringNode.bind(void 0,t);e.register("decorator",Su.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/placement_modifier_type"}}),[Su.Switch]:[{push:"type"}],[Su.Case]:{"minecraft:block_predicate_filter":{predicate:r("block_predicate_worldgen")},"minecraft:carving_mask":{step:n({enum:"generation_step"})},"minecraft:rarity_filter":{chance:Su.NumberNode({integer:!0,min:0})},"minecraft:count":{count:Du.IntProvider({min:0,max:256})},"minecraft:count_on_every_layer":{count:Du.IntProvider({min:0,max:256})},"minecraft:noise_threshold_count":{noise_level:Su.NumberNode(),below_noise:Su.NumberNode({integer:!0}),above_noise:Su.NumberNode({integer:!0})},"minecraft:noise_based_count":{noise_to_count_ratio:Su.NumberNode({integer:!0}),noise_factor:Su.NumberNode(),noise_offset:Su.Opt(Su.NumberNode())},"minecraft:environment_scan":{direction_of_search:n({enum:["up","down"]}),max_steps:Su.NumberNode({integer:!0,min:1,max:32}),target_condition:r("block_predicate_worldgen"),allowed_search_condition:Su.Opt(r("block_predicate_worldgen"))},"minecraft:heightmap":{heightmap:n({enum:"heightmap_type"})},"minecraft:height_range":{height:r("height_provider")},"minecraft:random_offset":{xz_spread:Du.IntProvider({min:-16,max:16}),y_spread:Du.IntProvider({min:-16,max:16})},"minecraft:surface_relative_threshold_filter":{heightmap:n({enum:"heightmap_type"}),min_inclusive:Su.Opt(Su.NumberNode({integer:!0})),max_inclusive:Su.Opt(Su.NumberNode({integer:!0}))},"minecraft:surface_water_depth_filter":{max_water_depth:Su.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"}))};var Au={},Cu={};Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.initProcessorListSchemas=Cu.Processors=void 0;const Eu=Me;Cu.initProcessorListSchemas=function(e,t){const r=Eu.Reference.bind(void 0,e),n=Eu.StringNode.bind(void 0,t);Cu.Processors=Eu.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:r("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]),e.register("processor_list",Eu.Mod(Eu.ObjectNode({processors:Eu.ListNode(r("processor"))},{context:"processor_list"}),{default:()=>({processors:[{processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]}]})})),e.register("processor",Eu.Mod(Eu.ObjectNode({processor_type:n({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[Eu.Switch]:[{push:"processor_type"}],[Eu.Case]:{"minecraft:block_age":{mossiness:Eu.NumberNode()},"minecraft:block_ignore":{blocks:Eu.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:Eu.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:n({enum:"heightmap_type"}),offset:Eu.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:n({validator:"resource",params:{pool:"$tag/block"}})},"minecraft:rule":{rules:Eu.ListNode(r("processor_rule"))}}},{category:"function",context:"processor"}),{default:()=>({processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]})})),e.register("processor_rule",Eu.Mod(Eu.ObjectNode({position_predicate:Eu.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:Eu.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:block"}}}))},{category:"predicate",context:"processor_rule"}),{default:()=>({location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}})}));const i={min_dist:Eu.Opt(Eu.NumberNode({min:0,max:255,integer:!0})),max_dist:Eu.Opt(Eu.NumberNode({min:0,max:255,integer:!0})),min_chance:Eu.Opt(Eu.NumberNode({min:0,max:1})),max_chance:Eu.Opt(Eu.NumberNode({min:0,max:1}))};e.register("pos_rule_test",Eu.ObjectNode({predicate_type:n({validator:"resource",params:{pool:"pos_rule_test"}}),[Eu.Switch]:[{push:"predicate_type"}],[Eu.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:n({enum:["x","y","z"]})},i),"minecraft:linear_pos":i}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",Eu.ObjectNode({predicate_type:n({validator:"resource",params:{pool:"rule_test"}}),[Eu.Switch]:[{push:"predicate_type"}],[Eu.Case]:{"minecraft:block_match":{block:n({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:n({validator:"resource",params:{pool:"block"}}),probability:Eu.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:Eu.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:n({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(Au,"__esModule",{value:!0}),Au.initFeatureSchemas=void 0;const Fu=Me,Bu=ql,Mu=Cu;Au.initFeatureSchemas=function(e,t){const r=Fu.Reference.bind(void 0,e),n=Fu.StringNode.bind(void 0,t),i=Fu.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"}),o=Fu.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},{type:"object",node:r("placed_feature")}],{choiceContext:"placed_feature"}),a={tries:Fu.Opt(Fu.NumberNode({integer:!0,min:1})),xz_spread:Fu.Opt(Fu.NumberNode({integer:!0,min:0})),y_spread:Fu.Opt(Fu.NumberNode({integer:!0,min:0})),feature:o},l={state:r("block_state"),radius:Bu.IntProvider({min:0,max:8}),half_height:Fu.NumberNode({integer:!0,min:0,max:4}),targets:Fu.ListNode(r("block_state"))},u={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:Fu.Opt(Fu.NumberNode({integer:!0}))},d=Fu.ObjectNode({target:r("rule_test"),state:r("block_state")}),p={size:Fu.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:Fu.NumberNode({min:0,max:1}),targets:Fu.ListNode(d)},m={surface:n({enum:"cave_surface"}),depth:Bu.IntProvider({min:1,max:128}),vertical_range:Fu.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:Fu.NumberNode({min:0,max:1}),extra_edge_column_chance:Fu.NumberNode({min:0,max:1}),vegetation_chance:Fu.NumberNode({min:0,max:1}),xz_radius:Bu.IntProvider(),replaceable:n({validator:"resource",params:{pool:"$tag/block"}}),ground_state:r("block_state_provider"),vegetation_feature:o};e.register("configured_feature",Fu.Mod(Fu.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/feature"}}),config:Fu.ObjectNode({[Fu.Switch]:["pop",{push:"type"}],[Fu.Case]:{"minecraft:bamboo":{probability:Fu.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:Bu.IntProvider({min:0,max:3}),height:Bu.IntProvider({min:1,max:10})},"minecraft:block_column":{direction:n({enum:["up","down","north","east","south","west"]}),allowed_placement:r("block_predicate_worldgen"),prioritize_tip:Fu.BooleanNode(),layers:Fu.ListNode(Fu.ObjectNode({height:Bu.IntProvider({min:0}),provider:r("block_state_provider")}))},"minecraft:block_pile":{state_provider:r("block_state_provider")},"minecraft:delta_feature":{contents:r("block_state"),rim:r("block_state"),size:Bu.IntProvider({min:0,max:16}),rim_size:Bu.IntProvider({min:0,max:16})},"minecraft:disk":l,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:Fu.NumberNode({integer:!0,min:1,max:512}),height:Bu.IntProvider({min:0,max:128}),radius:Bu.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:Fu.NumberNode({integer:!0,min:0,max:64}),height_deviation:Fu.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:Bu.IntProvider({min:0,max:128}),density:Bu.FloatProvider({min:0,max:2}),wetness:Bu.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:Fu.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:Fu.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:Fu.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:Fu.BooleanNode(),exit:Fu.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:Fu.Opt(Fu.BooleanNode()),crystal_beam_target:Fu.Opt(r("block_pos")),spikes:Fu.ListNode(Fu.ObjectNode({centerX:Fu.Opt(Fu.NumberNode({integer:!0})),centerZ:Fu.Opt(Fu.NumberNode({integer:!0})),radius:Fu.Opt(Fu.NumberNode({integer:!0})),height:Fu.Opt(Fu.NumberNode({integer:!0})),guarded:Fu.Opt(Fu.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:Fu.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":a,"minecraft:forest_rock":{state:r("block_state")},"minecraft:fossil":{max_empty_corners_allowed:Fu.NumberNode({integer:!0,min:0,max:7}),fossil_structures:Fu.ListNode(n({validator:"resource",params:{pool:"$structure"}})),overlay_structures:Fu.ListNode(n({validator:"resource",params:{pool:"$structure"}})),fossil_processors:Mu.Processors,overlay_processors:Mu.Processors},"minecraft:geode":{blocks:Fu.ObjectNode({filling_provider:r("block_state_provider"),inner_layer_provider:r("block_state_provider"),alternate_inner_layer_provider:r("block_state_provider"),middle_layer_provider:r("block_state_provider"),outer_layer_provider:r("block_state_provider"),inner_placements:Fu.ListNode(r("block_state")),cannot_replace:n({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:n({validator:"resource",params:{pool:"$tag/block"}})}),layers:Fu.ObjectNode({filling:Fu.Opt(Fu.NumberNode({min:.01,max:50})),inner_layer:Fu.Opt(Fu.NumberNode({min:.01,max:50})),middle_layer:Fu.Opt(Fu.NumberNode({min:.01,max:50})),outer_layer:Fu.Opt(Fu.NumberNode({min:.01,max:50}))}),crack:Fu.ObjectNode({generate_crack_chance:Fu.Opt(Fu.NumberNode({min:0,max:1})),base_crack_size:Fu.Opt(Fu.NumberNode({min:0,max:5})),crack_point_offset:Fu.Opt(Fu.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:Fu.Opt(Fu.NumberNode({min:0,max:1})),use_potential_placements_chance:Fu.Opt(Fu.NumberNode({min:0,max:1})),use_alternate_layer0_chance:Fu.Opt(Fu.NumberNode({min:0,max:1})),placements_require_layer0_alternate:Fu.Opt(Fu.BooleanNode()),outer_wall_distance:Fu.Opt(Bu.IntProvider({min:1,max:20})),distribution_points:Fu.Opt(Bu.IntProvider({min:1,max:20})),point_offset:Fu.Opt(Bu.IntProvider({min:0,max:10})),min_gen_offset:Fu.Opt(Fu.NumberNode({integer:!0})),max_gen_offset:Fu.Opt(Fu.NumberNode({integer:!0})),invalid_blocks_threshold:Fu.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:Fu.Opt(Fu.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:Fu.Opt(Fu.NumberNode({min:0,max:1})),can_place_on_floor:Fu.Opt(Fu.BooleanNode()),can_place_on_ceiling:Fu.Opt(Fu.BooleanNode()),can_place_on_wall:Fu.Opt(Fu.BooleanNode()),can_be_placed_on:Fu.ListNode(n({validator:"resource",params:{pool:"block"}}))},"minecraft:huge_brown_mushroom":u,"minecraft:huge_fungus":{hat_state:r("block_state"),decor_state:r("block_state"),stem_state:r("block_state"),valid_base_block:r("block_state"),planted:Fu.Opt(Fu.BooleanNode())},"minecraft:huge_red_mushroom":u,"minecraft:ice_patch":l,"minecraft:iceberg":{state:r("block_state")},"minecraft:lake":{fluid:r("block_state_provider"),barrier:r("block_state_provider")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:Fu.Opt(Fu.NumberNode({integer:!0,min:1,max:512})),column_radius:Bu.IntProvider({min:0,max:60}),height_scale:Bu.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:Fu.NumberNode({min:0,max:1}),stalactite_bluntness:Bu.FloatProvider({min:.1,max:10}),stalagmite_bluntness:Bu.FloatProvider({min:.1,max:10}),wind_speed:Bu.FloatProvider({min:0,max:2}),min_radius_for_wind:Fu.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:Fu.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider"),spread_width:Fu.NumberNode({integer:!0,min:1}),spread_height:Fu.NumberNode({integer:!0,min:1})},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:Bu.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":a,"minecraft:ore":p,"minecraft:pointed_dripstone":{chance_of_taller_dripstone:Fu.Opt(Fu.NumberNode({min:0,max:1})),chance_of_directional_spread:Fu.Opt(Fu.NumberNode({min:0,max:1})),chance_of_spread_radius2:Fu.Opt(Fu.NumberNode({min:0,max:1})),chance_of_spread_radius3:Fu.Opt(Fu.NumberNode({min:0,max:1}))},"minecraft:random_patch":a,"minecraft:random_boolean_selector":{feature_false:o,feature_true:o},"minecraft:random_selector":{features:Fu.ListNode(Fu.ObjectNode({chance:Fu.NumberNode({min:0,max:1}),feature:o})),default:o},"minecraft:replace_single_block":{targets:Fu.ListNode(d)},"minecraft:root_system":{required_vertical_space_for_tree:Fu.NumberNode({integer:!0,min:1,max:64}),root_radius:Fu.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:Fu.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:Fu.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:Fu.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:Fu.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:Fu.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:Fu.NumberNode({integer:!0,min:1,max:64}),root_replaceable:n({validator:"resource",params:{pool:"$tag/block"}}),root_state_provider:r("block_state_provider"),hanging_root_state_provider:r("block_state_provider"),allowed_tree_position:r("block_predicate_worldgen"),feature:o},"minecraft:scattered_ore":p,"minecraft:sea_pickle":{count:Bu.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:Fu.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state_provider")},"minecraft:simple_random_selector":{features:Fu.ListNode(o)},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:Fu.NumberNode({integer:!0}),hole_count:Fu.NumberNode({integer:!0}),requires_block_below:Fu.BooleanNode(),valid_blocks:Fu.ListNode(n({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:Fu.Opt(Fu.BooleanNode()),force_dirt:Fu.Opt(Fu.BooleanNode()),minimum_size:r("feature_size"),dirt_provider:r("block_state_provider"),trunk_provider:r("block_state_provider"),foliage_provider:r("block_state_provider"),trunk_placer:Fu.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:Fu.NumberNode({integer:!0,min:0,max:32}),height_rand_a:Fu.NumberNode({integer:!0,min:0,max:24}),height_rand_b:Fu.NumberNode({integer:!0,min:0,max:24}),[Fu.Switch]:[{push:"type"}],[Fu.Case]:{"minecraft:bending_trunk_placer":{bend_length:Bu.IntProvider({min:1,max:64}),min_height_for_leaves:Fu.Opt(Fu.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:Fu.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:Bu.IntProvider({min:0,max:16}),offset:Bu.IntProvider({min:0,max:16}),[Fu.Switch]:[{push:"type"}],[Fu.Case]:{"minecraft:blob_foliage_placer":{height:Fu.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:Fu.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:Fu.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:Fu.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:Bu.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:Bu.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:Bu.IntProvider({min:1,max:512}),leaf_placement_attempts:Fu.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:Bu.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:Fu.ListNode(Fu.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[Fu.Switch]:[{push:"type"}],[Fu.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:Fu.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:Fu.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:twisting_vines":{spread_width:Fu.NumberNode({integer:!0,min:1}),spread_height:Fu.NumberNode({integer:!0,min:1}),max_height:Fu.NumberNode({integer:!0,min:1})},"minecraft:underwater_magma":{floor_search_range:Fu.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:Fu.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:Fu.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":m,"minecraft:waterlogged_vegetation_patch":m}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:tree",config:{minimum_size:{type:"minecraft:two_layers_feature_size"},trunk_placer:{type:"minecraft:straight_trunk_placer",base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{type:"minecraft:blob_foliage_placer",radius:2,offset:0,height:3}}})})),e.register("placed_feature",Fu.Mod(Fu.ObjectNode({feature:i,placement:Fu.ListNode(r("decorator"))},{context:"placed_feature"}),{default:()=>({feature:"minecraft:oak",placement:[{type:"minecraft:count",count:4},{type:"minecraft:in_square"},{type:"minecraft:heightmap",heightmap:"OCEAN_FLOOR"}]})})),e.register("feature_size",Fu.Mod(Fu.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:Fu.Opt(Fu.NumberNode({min:0,max:80})),[Fu.Switch]:[{push:"type"}],[Fu.Case]:{"minecraft:two_layers_feature_size":{limit:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:81})),lower_size:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:16})),upper_size:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:80})),upper_limit:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:80})),lower_size:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:16})),middle_size:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:16})),upper_size:Fu.Opt(Fu.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})}));const h={seed:Fu.NumberNode({integer:!0}),noise:r("noise_parameters"),scale:Fu.Mod(Fu.NumberNode({min:Number.MIN_VALUE}),{default:()=>1})};e.register("block_state_provider",Fu.Mod(Fu.ObjectNode({type:n({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[Fu.Switch]:[{push:"type"}],[Fu.Case]:{"minecraft:dual_noise_provider":c(s({},h),{variety:Bu.InclusiveRange({integer:!0,min:1,max:64}),slow_noise:r("noise_parameters"),slow_scale:Fu.Mod(Fu.NumberNode({min:Number.MIN_VALUE}),{default:()=>1}),states:Fu.ListNode(r("block_state"))}),"minecraft:noise_threshold_provider":c(s({},h),{threshold:Fu.NumberNode({min:-1,max:1}),high_chance:Fu.NumberNode({min:0,max:1}),default_state:r("block_state"),low_states:Fu.ListNode(r("block_state")),high_states:Fu.ListNode(r("block_state"))}),"minecraft:noise_provider":c(s({},h),{states:Fu.ListNode(r("block_state"))}),"minecraft:randomized_int_state_provider":{property:n(),values:Bu.IntProvider(),source:r("block_state_provider")},"minecraft:rotated_block_provider":{state:r("block_state")},"minecraft:simple_state_provider":{state:r("block_state")},"minecraft:weighted_state_provider":{entries:Fu.ListNode(Fu.Mod(Fu.ObjectNode({weight:Fu.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})}));const f={offset:Fu.Opt(Fu.ListNode(Fu.NumberNode({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))};e.register("block_predicate_worldgen",Fu.Mod(Fu.ObjectNode({type:n({validator:"resource",params:{pool:"block_predicate_type"}}),[Fu.Switch]:[{push:"type"}],[Fu.Case]:{"minecraft:all_of":{predicates:Fu.ListNode(r("block_predicate_worldgen"))},"minecraft:any_of":{predicates:Fu.ListNode(r("block_predicate_worldgen"))},"minecraft:has_sturdy_face":c(s({},f),{direction:n({enum:"direction"})}),"minecraft:inside_world_bounds":s({},f),"minecraft:matching_block_tag":c(s({},f),{tag:n({validator:"resource",params:{pool:"$tag/block"}})}),"minecraft:matching_blocks":c(s({},f),{blocks:Fu.ListNode(n({validator:"resource",params:{pool:"block"}}))}),"minecraft:matching_fluids":c(s({},f),{fluids:Fu.ListNode(n({validator:"resource",params:{pool:"fluid"}}))}),"minecraft:not":{predicate:r("block_predicate_worldgen")},"minecraft:would_survive":c(s({},f),{state:r("block_state")})}},{context:"block_predicate"}),{default:()=>({type:"minecraft:true"})}))};var ju={};Object.defineProperty(ju,"__esModule",{value:!0}),ju.initNoiseSettingsSchemas=void 0;const Tu=Me,Iu=ql;ju.initNoiseSettingsSchemas=function(e,t){const r=Tu.Reference.bind(void 0,e),n=Tu.StringNode.bind(void 0,t);e.register("noise_settings",Tu.Mod(Tu.ObjectNode({sea_level:Tu.NumberNode({integer:!0}),disable_mob_generation:Tu.BooleanNode(),noise_caves_enabled:Tu.BooleanNode(),noodle_caves_enabled:Tu.BooleanNode(),aquifers_enabled:Tu.BooleanNode(),ore_veins_enabled:Tu.BooleanNode(),legacy_random_source:Tu.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:Tu.ObjectNode({min_y:Tu.NumberNode({integer:!0,min:-2048,max:2047}),height:Tu.NumberNode({integer:!0,min:0,max:4096}),size_horizontal:Tu.NumberNode({integer:!0}),size_vertical:Tu.NumberNode({integer:!0}),island_noise_override:Tu.Opt(Tu.BooleanNode()),amplified:Tu.Opt(Tu.BooleanNode()),large_biomes:Tu.Opt(Tu.BooleanNode()),sampling:Tu.ObjectNode({xz_scale:Tu.NumberNode(),y_scale:Tu.NumberNode(),xz_factor:Tu.NumberNode(),y_factor:Tu.NumberNode()}),bottom_slide:r("noise_slider"),top_slide:r("noise_slider"),terrain_shaper:r("terrain_shaper")}),surface_rule:r("material_rule"),structures:r("generator_structures")},{context:"noise_settings"}),(e=>({default:()=>Iu.DefaultNoiseSettings,validate:(t,r,n,i)=>{var o,a,s,c;return(null===(o=null==(r=e.validate(t,r,n,i))?void 0:r.noise)||void 0===o?void 0:o.min_y)+(null===(a=null==r?void 0:r.noise)||void 0===a?void 0:a.height)>2047&&n.add(t.push("noise").push("height"),"error.min_y_plus_height",2047),(null===(s=null==r?void 0:r.noise)||void 0===s?void 0:s.height)%16!=0&&n.add(t.push("noise").push("height"),"error.height_multiple",16),(null===(c=null==r?void 0:r.noise)||void 0===c?void 0:c.min_y)%16!=0&&n.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),r}})))),e.register("noise_slider",Tu.ObjectNode({target:Tu.NumberNode(),size:Tu.NumberNode({integer:!0,min:0}),offset:Tu.NumberNode({integer:!0})})),e.register("generator_structures",Tu.ObjectNode({stronghold:Tu.Opt(Tu.ObjectNode({distance:Tu.NumberNode({integer:!0,min:0,max:1023}),spread:Tu.NumberNode({integer:!0,min:0,max:1023}),count:Tu.NumberNode({integer:!0,min:1,max:4095})})),structures:Tu.MapNode(n({validator:"resource",params:{pool:"worldgen/structure_feature"}}),Tu.Mod(Tu.ObjectNode({spacing:Tu.NumberNode({integer:!0,min:0,max:4096}),separation:Tu.Mod(Tu.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,n,i)=>(t.pop().push("spacing").get()<=r&&n.add(t,"error.separation_smaller_spacing"),e.validate(t,r,n,i))}))),salt:Tu.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",Tu.Mod(Tu.ObjectNode({block:n({validator:"resource",params:{pool:"block"}}),height:Tu.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})})),e.register("terrain_shaper",Tu.Mod(Tu.ObjectNode({offset:r("terrain_spline"),factor:r("terrain_spline"),jaggedness:r("terrain_spline")},{context:"terrain_shaper"}),{default:()=>({offset:0,factor:0,jaggedness:0})})),e.register("terrain_spline",Tu.Mod(Tu.ChoiceNode([{type:"number",node:Tu.NumberNode()},{type:"object",node:Tu.ObjectNode({coordinate:Tu.Mod(n({enum:["continents","erosion","weirdness","ridges"]}),{default:()=>"continents"}),points:Tu.ListNode(Tu.ObjectNode({location:Tu.NumberNode(),derivative:Tu.NumberNode(),value:r("terrain_spline")}))},{category:"function"})}],{context:"terrain_spline",choiceContext:"terrain_spline"}),{default:()=>0}))};var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.initStructureFeatureSchemas=void 0;const Lu=Me;Pu.initStructureFeatureSchemas=function(e,t){const r=Lu.StringNode.bind(void 0,t),n=Lu.Reference.bind(void 0,e),i={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:Lu.NumberNode({integer:!0})};e.register("configured_structure_feature",Lu.Mod(Lu.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:Lu.ObjectNode({[Lu.Switch]:["pop",{push:"type"}],[Lu.Case]:{"minecraft:bastion_remnant":i,"minecraft:buried_treasure":{probability:Lu.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:Lu.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:n("height_provider")},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:Lu.NumberNode({min:0,max:1}),cluster_probability:Lu.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":i,"minecraft:ruined_portal":{portal_type:r({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:Lu.Opt(Lu.BooleanNode())},"minecraft:village":i}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.initSurfaceRuleSchemas=void 0;const zu=Me;Ru.initSurfaceRuleSchemas=function(e,t){const r=zu.StringNode.bind(void 0,t),n=zu.Reference.bind(void 0,e);e.register("material_rule",zu.Mod(zu.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/material_rule"}}),[zu.Switch]:[{push:"type"}],[zu.Case]:{"minecraft:block":{result_state:n("block_state")},"minecraft:condition":{if_true:n("material_condition"),then_run:n("material_rule")},"minecraft:sequence":{sequence:zu.ListNode(n("material_rule"))}}},{context:"material_rule",category:"pool"}),{default:()=>({type:"minecraft:block",result_state:{Name:"minecraft:stone"}})})),e.register("material_condition",zu.Mod(zu.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/material_condition"}}),[zu.Switch]:[{push:"type"}],[zu.Case]:{"minecraft:biome":{biome_is:zu.ListNode(r({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:noise_threshold":{noise:r({validator:"resource",params:{pool:"$worldgen/noise"}}),min_threshold:zu.NumberNode(),max_threshold:zu.NumberNode()},"minecraft:not":{invert:n("material_condition")},"minecraft:stone_depth":{offset:zu.NumberNode({integer:!0}),surface_type:r({enum:"cave_surface"}),add_surface_depth:zu.BooleanNode(),add_surface_secondary_depth:zu.BooleanNode()},"minecraft:vertical_gradient":{random_name:r(),true_at_and_below:n("vertical_anchor"),false_at_and_above:n("vertical_anchor")},"minecraft:water":{offset:zu.NumberNode({integer:!0}),surface_depth_multiplier:zu.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:zu.BooleanNode()},"minecraft:y_above":{anchor:n("vertical_anchor"),surface_depth_multiplier:zu.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:zu.BooleanNode()}}},{context:"material_condition"}),{default:()=>({type:"minecraft:biome",is_biome:"minecraft:plains"})}))};var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.initTemplatePoolSchemas=void 0;const $u=Me,Xu=Cu;Uu.initTemplatePoolSchemas=function(e,t){const r=$u.Reference.bind(void 0,e),n=$u.StringNode.bind(void 0,t);e.register("template_pool",$u.Mod($u.ObjectNode({fallback:n(),elements:$u.ListNode(r("template_weighted_element"))},{context:"template_pool"}),{default:()=>({fallback:"minecraft:empty",elements:[{weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}}]})})),e.register("template_weighted_element",$u.Mod($u.ObjectNode({weight:$u.NumberNode({integer:!0,min:1}),element:r("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",$u.Mod($u.ObjectNode({element_type:n({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:n({enum:["rigid","terrain_matching"]}),[$u.Switch]:[{push:"element_type"}],[$u.Case]:{"minecraft:feature_pool_element":{feature:n({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},"minecraft:legacy_single_pool_element":{location:n({validator:"resource",params:{pool:"$structure"}}),processors:Xu.Processors},"minecraft:list_pool_element":{elements:$u.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:n({validator:"resource",params:{pool:"$structure"}}),processors:Xu.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(yu,"__esModule",{value:!0}),yu.initWorldgenSchemas=void 0;const Ju=vu,qu=Nu,Hu=Ou,Wu=Au,Zu=ju,Gu=Cu,Ku=Pu,Yu=Ru,Vu=Uu;yu.initWorldgenSchemas=function(e,t){Gu.initProcessorListSchemas(e,t),Ju.initBiomeSchemas(e,t),qu.initCarverSchemas(e,t),Hu.initDecoratorSchemas(e,t),Wu.initFeatureSchemas(e,t),Zu.initNoiseSettingsSchemas(e,t),Ku.initStructureFeatureSchemas(e,t),Yu.initSurfaceRuleSchemas(e,t),Vu.initTemplatePoolSchemas(e,t)};var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.initWorldSettingsSchemas=void 0;const ed=Me;Qu.initWorldSettingsSchemas=function(e,t){const r=ed.Reference.bind(void 0,e),n=ed.StringNode.bind(void 0,t);e.register("world_settings",ed.Mod(ed.ObjectNode({generate_features:ed.BooleanNode(),bonus_chest:ed.BooleanNode(),seed:ed.NumberNode({integer:!0}),dimensions:ed.MapNode(n({validator:"resource",params:{pool:"$dimension"}}),r("dimension"))},{context:"world_settings"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{generate_features:!0,bonus_chest:!1,seed:e,dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:vanilla_layered",seed:e},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",seed:e,humidity_noise:{firstOctave:-7,amplitudes:[1,1]},altitude_noise:{firstOctave:-7,amplitudes:[1,1]},weirdness_noise:{firstOctave:-7,amplitudes:[1,1]},temperature_noise:{firstOctave:-7,amplitudes:[1,1]},biomes:[{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:0},biome:"minecraft:nether_wastes"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:-.5},biome:"minecraft:soul_sand_valley"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:.4,humidity:0},biome:"minecraft:crimson_forest"},{parameters:{altitude:0,weirdness:0,offset:.375,temperature:0,humidity:.5},biome:"minecraft:warped_forest"},{parameters:{altitude:0,weirdness:0,offset:.175,temperature:-.5,humidity:0},biome:"minecraft:basalt_deltas"}]},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:the_end",seed:e},settings:"minecraft:end"}}}}}}))},Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.initSchemas=void 0;const td=Il,rd=Ll,nd=ql,id=Hl,od=Gl,ad=Vl,sd=tu,cd=iu,ld=lu,ud=du,dd=mu,pd=fu,md=gu,hd=yu,fd=Qu;Tl.initSchemas=function(e,t){nd.initCommonSchemas(e,t),td.initAdvancementSchemas(e,t),rd.initAssetsSchemas(e,t),id.initConditionSchemas(e,t),ad.initDimensionTypeSchemas(e,t),od.initDimensionSchemas(e,t),sd.initItemModifierSchemas(e,t),cd.initLootTableSchemas(e,t),ld.initPackMcmetaSchemas(e,t),ud.initPredicatesSchemas(e,t),dd.initRecipeSchemas(e,t),pd.initTagsSchemas(e,t),md.initTextComponentSchemas(e,t),hd.initWorldgenSchemas(e,t),fd.initWorldSettingsSchemas(e,t)};var _d=Be&&Be.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),gd=Be&&Be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),bd=Be&&Be.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&_d(t,e,r);return gd(t,e),t};Object.defineProperty(Ml,"__esModule",{value:!0});var yd=Ml.getSchemas=Ml.getCollections=void 0;const vd=Me,xd=jl,Nd=Tl;var wd=Ml.lootContext=bd(ou);var kd=Ml.getCollections=function(){const e=new vd.CollectionRegistry;return xd.initCollections(e),e};yd=Ml.getSchemas=function(e){const t=new vd.SchemaRegistry;return Nd.initSchemas(t,e),t};var Od=Object.freeze(Object.assign(Object.create(null),Ml,{[Symbol.toStringTag]:"Module",get getSchemas(){return yd},get getCollections(){return kd},lootContext:wd,default:Ml})),Sd={exports:{}};Sd.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(3),o=r(8),a=r(15);function s(e,t,r){var a=null,s=function(e,t){r&&r(e,t),a&&a.visit(e,t)},c="function"==typeof r?s:null,l=!1;if(t){l="boolean"==typeof t.comment&&t.comment;var u="boolean"==typeof t.attachComment&&t.attachComment;(l||u)&&((a=new n.CommentHandler).attach=u,t.comment=!0,c=s)}var d,p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),d=t&&"boolean"==typeof t.jsx&&t.jsx?new i.JSXParser(e,t,c):new o.Parser(e,t,c);var m=p?d.parseModule():d.parseScript();return l&&a&&(m.comments=a.comments),d.config.tokens&&(m.tokens=d.tokens),d.config.tolerant&&(m.errors=d.errorHandler.errors),m}t.parse=s,t.parseModule=function(e,t,r){var n=t||{};return n.sourceType="module",s(e,n,r)},t.parseScript=function(e,t,r){var n=t||{};return n.sourceType="script",s(e,n,r)},t.tokenize=function(e,t,r){var n,i=new a.Tokenizer(e,t);n=[];try{for(;;){var o=i.getNextToken();if(!o)break;r&&(o=r(o)),n.push(o)}}catch(s){i.errorHandler.tolerate(s)}return i.errorHandler.tolerant&&(n.errors=i.errors()),n};var c=r(2);t.Syntax=c.Syntax,t.version="4.0.1"},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===n.Syntax.BlockStatement&&0===e.body.length){for(var r=[],i=this.leading.length-1;i>=0;--i){var o=this.leading[i];t.end.offset>=o.start&&(r.unshift(o.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}r.length&&(e.innerComments=r)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var r=this.trailing.length-1;r>=0;--r){var n=this.trailing[r];n.start>=e.end.offset&&t.unshift(n.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var o=i.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,r=[];this.stack.length>0&&(o=this.stack[this.stack.length-1])&&o.start>=e.start.offset;)t=o.node,this.stack.pop();if(t){for(var n=(t.leadingComments?t.leadingComments.length:0)-1;n>=0;--n){var i=t.leadingComments[n];i.range[1]<=e.start.offset&&(r.unshift(i),t.leadingComments.splice(n,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,r}for(n=this.leading.length-1;n>=0;--n){var o;(o=this.leading[n]).start<=e.start.offset&&(r.unshift(o.comment),this.leading.splice(n,1))}return r},e.prototype.visitNode=function(e,t){if(!(e.type===n.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var r=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),r.length>0&&(e.trailingComments=r),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var r="L"===e.type[0]?"Line":"Block",n={type:r,value:e.value};if(e.range&&(n.range=e.range),e.loc&&(n.loc=e.loc),this.comments.push(n),this.attach){var i={comment:{type:r,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=r,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,r){var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),a=r(5),s=r(6),c=r(7),l=r(8),u=r(13),d=r(14);function p(e){var t;switch(e.type){case s.JSXSyntax.JSXIdentifier:t=e.name;break;case s.JSXSyntax.JSXNamespacedName:var r=e;t=p(r.namespace)+":"+p(r.name);break;case s.JSXSyntax.JSXMemberExpression:var n=e;t=p(n.object)+"."+p(n.property)}return t}u.TokenName[100]="JSXIdentifier",u.TokenName[101]="JSXText";var m=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return i(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",r=!0,n=!1,i=!1,a=!1;!this.scanner.eof()&&r&&!n;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(n=";"===s,t+=s,++this.scanner.index,!n)switch(t.length){case 2:i="#"===s;break;case 3:i&&(r=(a="x"===s)||o.Character.isDecimalDigit(s.charCodeAt(0)),i=i&&!a);break;default:r=(r=r&&!(i&&!o.Character.isDecimalDigit(s.charCodeAt(0))))&&!(a&&!o.Character.isHexDigit(s.charCodeAt(0)))}}if(r&&n&&t.length>2){var c=t.substr(1,t.length-2);i&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):a&&c.length>2?t=String.fromCharCode(parseInt("0"+c.substr(1),16)):i||a||!d.XHTMLEntities[c]||(t=d.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:s=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,r=this.scanner.source[this.scanner.index++],n="";!this.scanner.eof()&&(c=this.scanner.source[this.scanner.index++])!==r;)n+="&"===c?this.scanXHTMLEntity(r):c;return{type:8,value:n,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var i=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),s=46===i&&46===a?"...":".";return t=this.scanner.index,this.scanner.index+=s.length,{type:7,value:s,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(o.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var c=this.scanner.source.charCodeAt(this.scanner.index);if(o.Character.isIdentifierPart(c)&&92!==c)++this.scanner.index;else{if(45!==c)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var r=this.scanner.source[this.scanner.index];if("{"===r||"<"===r)break;++this.scanner.index,t+=r,o.Character.isLineTerminator(r.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===r&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var n={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(n)),n},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=t;this.expectJSX(":");var n=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(r,n))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(i,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=r;this.expectJSX(":");var i=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(n,i))}else e=r;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var r=this.getTokenRaw(t);return this.finalize(e,new c.Literal(t.value,r))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),r=null;return this.matchJSX("=")&&(this.expectJSX("="),r=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,r))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),r=this.parseJSXAttributes(),n=this.matchJSX("/");return n&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,n,r))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var r=this.parseJSXElementName(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(r,i,n))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),r=this.nextJSXText();if(r.start<r.end){var n=this.getTokenRaw(r),i=this.finalize(t,new a.JSXText(r.value,n));e.push(i)}if("{"!==this.scanner.source[this.scanner.index])break;var o=this.parseJSXExpressionContainer();e.push(o)}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var r=this.createJSXChildNode(),n=this.parseJSXBoundaryElement();if(n.type===s.JSXSyntax.JSXOpeningElement){var i=n;if(i.selfClosing){var o=this.finalize(r,new a.JSXElement(i,[],null));e.children.push(o)}else t.push(e),e={node:r,opening:i,closing:null,children:[]}}if(n.type===s.JSXSyntax.JSXClosingElement){e.closing=n;var c=p(e.opening.name);if(c!==p(e.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",c),!(t.length>0))break;o=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(o),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),r=[],n=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:n,children:r});r=i.children,n=i.closing}return this.finalize(e,new a.JSXElement(t,r,n))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(l.Parser);t.JSXParser=m},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&r.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&r.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),i=function(e){this.type=n.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=i;var o=function(e,t,r){this.type=n.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=r};t.JSXElement=o;var a=function(){this.type=n.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=a;var s=function(e){this.type=n.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=s;var c=function(e){this.type=n.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=c;var l=function(e,t){this.type=n.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=l;var u=function(e,t){this.type=n.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=u;var d=function(e,t){this.type=n.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=d;var p=function(e,t,r){this.type=n.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=r};t.JSXOpeningElement=p;var m=function(e){this.type=n.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=m;var h=function(e,t){this.type=n.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=h},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=function(e){this.type=n.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=i;var o=function(e){this.type=n.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=o;var a=function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!1};t.ArrowFunctionExpression=a;var s=function(e,t,r){this.type=n.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=r};t.AssignmentExpression=s;var c=function(e,t){this.type=n.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=c;var l=function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!0};t.AsyncArrowFunctionExpression=l;var u=function(e,t,r){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=u;var d=function(e,t,r){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=d;var p=function(e){this.type=n.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var m=function(e,t,r){var i="||"===e||"&&"===e;this.type=i?n.Syntax.LogicalExpression:n.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=r};t.BinaryExpression=m;var h=function(e){this.type=n.Syntax.BlockStatement,this.body=e};t.BlockStatement=h;var f=function(e){this.type=n.Syntax.BreakStatement,this.label=e};t.BreakStatement=f;var _=function(e,t){this.type=n.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=_;var g=function(e,t){this.type=n.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=g;var b=function(e){this.type=n.Syntax.ClassBody,this.body=e};t.ClassBody=b;var y=function(e,t,r){this.type=n.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=r};t.ClassDeclaration=y;var v=function(e,t,r){this.type=n.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=r};t.ClassExpression=v;var x=function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=x;var N=function(e,t,r){this.type=n.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=r};t.ConditionalExpression=N;var w=function(e){this.type=n.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=w;var k=function(){this.type=n.Syntax.DebuggerStatement};t.DebuggerStatement=k;var O=function(e,t){this.type=n.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=O;var S=function(e,t){this.type=n.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=S;var D=function(){this.type=n.Syntax.EmptyStatement};t.EmptyStatement=D;var A=function(e){this.type=n.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=A;var C=function(e){this.type=n.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=C;var E=function(e,t,r){this.type=n.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=r};t.ExportNamedDeclaration=E;var F=function(e,t){this.type=n.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=F;var B=function(e){this.type=n.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=B;var M=function(e,t,r){this.type=n.Syntax.ForInStatement,this.left=e,this.right=t,this.body=r,this.each=!1};t.ForInStatement=M;var j=function(e,t,r){this.type=n.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=r};t.ForOfStatement=j;var T=function(e,t,r,i){this.type=n.Syntax.ForStatement,this.init=e,this.test=t,this.update=r,this.body=i};t.ForStatement=T;var I=function(e,t,r,i){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=i,this.expression=!1,this.async=!1};t.FunctionDeclaration=I;var P=function(e,t,r,i){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=i,this.expression=!1,this.async=!1};t.FunctionExpression=P;var L=function(e){this.type=n.Syntax.Identifier,this.name=e};t.Identifier=L;var R=function(e,t,r){this.type=n.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=r};t.IfStatement=R;var z=function(e,t){this.type=n.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=z;var U=function(e){this.type=n.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var $=function(e){this.type=n.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=$;var X=function(e,t){this.type=n.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=X;var J=function(e,t){this.type=n.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=J;var q=function(e,t){this.type=n.Syntax.Literal,this.value=e,this.raw=t};t.Literal=q;var H=function(e,t){this.type=n.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=H;var W=function(e,t,r,i,o){this.type=n.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=r,this.kind=i,this.static=o};t.MethodDefinition=W;var Z=function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=Z;var G=function(e,t){this.type=n.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=G;var K=function(e){this.type=n.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=K;var Y=function(e){this.type=n.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=Y;var V=function(e,t,r,i,o,a){this.type=n.Syntax.Property,this.key=t,this.computed=r,this.value=i,this.kind=e,this.method=o,this.shorthand=a};t.Property=V;var Q=function(e,t,r,i){this.type=n.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:r,flags:i}};t.RegexLiteral=Q;var ee=function(e){this.type=n.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=n.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var re=function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=re;var ne=function(e){this.type=n.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=ne;var ie=function(e){this.type=n.Syntax.SpreadElement,this.argument=e};t.SpreadElement=ie;var oe=function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=oe;var ae=function(){this.type=n.Syntax.Super};t.Super=ae;var se=function(e,t){this.type=n.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=se;var ce=function(e,t){this.type=n.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=ce;var le=function(e,t){this.type=n.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=le;var ue=function(e,t){this.type=n.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=ue;var de=function(e,t){this.type=n.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=de;var pe=function(){this.type=n.Syntax.ThisExpression};t.ThisExpression=pe;var me=function(e){this.type=n.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=me;var he=function(e,t,r){this.type=n.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=r};t.TryStatement=he;var fe=function(e,t){this.type=n.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=fe;var _e=function(e,t,r){this.type=n.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=r};t.UpdateExpression=_e;var ge=function(e,t){this.type=n.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ge;var be=function(e,t){this.type=n.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=be;var ye=function(e,t){this.type=n.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=ye;var ve=function(e,t){this.type=n.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=ve;var xe=function(e,t){this.type=n.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=xe},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(10),o=r(11),a=r(7),s=r(12),c=r(2),l=r(13),u="ArrowParameterPlaceHolder",d=function(){function e(e,t,r){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=r,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new s.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),o=e.replace(/%(\d)/g,(function(e,t){return n.assert(t<i.length,"Message reference must be in range"),i[t]})),a=this.lastMarker.index,s=this.lastMarker.line,c=this.lastMarker.column+1;throw this.errorHandler.createError(a,s,c,o)},e.prototype.tolerateError=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),o=e.replace(/%(\d)/g,(function(e,t){return n.assert(t<i.length,"Message reference must be in range"),i[t]})),a=this.lastMarker.index,s=this.scanner.lineNumber,c=this.lastMarker.column+1;this.errorHandler.tolerateError(a,s,c,o)},e.prototype.unexpectedTokenError=function(e,t){var r,n=t||o.Messages.UnexpectedToken;if(e?(t||(n=2===e.type?o.Messages.UnexpectedEOS:3===e.type?o.Messages.UnexpectedIdentifier:6===e.type?o.Messages.UnexpectedNumber:8===e.type?o.Messages.UnexpectedString:10===e.type?o.Messages.UnexpectedTemplate:o.Messages.UnexpectedToken,4===e.type&&(this.scanner.isFutureReservedWord(e.value)?n=o.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(n=o.Messages.StrictReservedWord))),r=e.value):r="ILLEGAL",n=n.replace("%0",r),e&&"number"==typeof e.lineNumber){var i=e.start,a=e.lineNumber,s=this.lastMarker.index-this.lastMarker.column,c=e.start-s+1;return this.errorHandler.createError(i,a,c,n)}return i=this.lastMarker.index,a=this.lastMarker.line,c=this.lastMarker.column+1,this.errorHandler.createError(i,a,c,n)},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(this.config.comment){var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var r=e[t],n=void 0;n={type:r.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(r.slice[0],r.slice[1])},this.config.range&&(n.range=r.range),this.config.loc&&(n.loc=r.loc);var i={start:{line:r.loc.start.line,column:r.loc.start.column,offset:r.range[0]},end:{line:r.loc.end.line,column:r.loc.end.column,offset:r.range[1]}};this.delegate(n,i)}}else this.scanner.scanComments()},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:l.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===e.type){var r=e.pattern,n=e.flags;t.regex={pattern:r,flags:n}}return t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&3===t.type&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&2!==t.type&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){void 0===t&&(t=0);var r=e.start-e.lineStart,n=e.lineNumber;return r<0&&(r+=t,n--),{index:e.start,line:n,column:r}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var r={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,r)}return t},e.prototype.expect=function(e){var t=this.nextToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;7===e.type&&","===e.value?this.nextToken():7===e.type&&";"===e.value?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,o.Messages.UnexpectedToken)}else this.expect(",")},e.prototype.expectKeyword=function(e){var t=this.nextToken();4===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.match=function(e){return 7===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return 4===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return 3===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var e=this.lookahead.value;return"="===e||"*="===e||"**="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=r,this.context.firstCoverInitializedNameError=n,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&r,this.context.firstCoverInitializedNameError=n||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,r,n=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(n,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,o.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.Literal(t.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.Literal("true"===t.value,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.Literal(null,r));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),r=this.getTokenRaw(t),e=this.finalize(n,new a.RegexLiteral(t.regex,r,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(n,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(n,new a.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new a.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var r=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(r)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new a.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,r=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var n=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=r,n},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,n,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,r=this.context.await;this.context.allowYield=!1,this.context.await=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.context.await=r,this.finalize(e,new a.AsyncFunctionExpression(null,n.params,i))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),r=this.nextToken();switch(r.type){case 8:case 6:this.context.strict&&r.octal&&this.tolerateUnexpectedToken(r,o.Messages.StrictOctalLiteral);var n=this.getTokenRaw(r);e=this.finalize(t,new a.Literal(r.value,n));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new a.Identifier(r.value));break;case 7:"["===r.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(r);break;default:e=this.throwUnexpectedToken(r)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===c.Syntax.Identifier&&e.name===t||e.type===c.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,r=this.createNode(),n=this.lookahead,i=null,s=null,c=!1,l=!1,u=!1,d=!1;if(3===n.type){var p=n.value;this.nextToken(),c=this.match("["),i=(d=!(this.hasLineTerminator||"async"!==p||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(r,new a.Identifier(p))}else this.match("*")?this.nextToken():(c=this.match("["),i=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===n.type&&!d&&"get"===n.value&&m)t="get",c=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(3===n.type&&!d&&"set"===n.value&&m)t="set",c=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(7===n.type&&"*"===n.value&&m)t="init",c=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0;else if(i||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!d)!c&&this.isPropertyKey(i,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(3===n.type)if(p=this.finalize(r,new a.Identifier(n.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),u=!0;var h=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(r,new a.AssignmentPattern(p,h))}else u=!0,s=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(r,new a.Property(t,i,c,s,l,u))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],r={value:!1};!this.match("}");)t.push(this.parseObjectProperty(r)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new a.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){n.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),r=t.value,i=t.cooked;return this.finalize(e,new a.TemplateElement({raw:r,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),r=t.value,n=t.cooked;return this.finalize(e,new a.TemplateElement({raw:r,cooked:n},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],r=[],n=this.parseTemplateHead();for(r.push(n);!n.tail;)t.push(this.parseExpression()),n=this.parseTemplateElement(),r.push(n);return this.finalize(e,new a.TemplateLiteral(r,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:e.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case c.Syntax.ArrayExpression:e.type=c.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)null!==e.elements[t]&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case c.Syntax.ObjectExpression:for(e.type=c.Syntax.ObjectPattern,t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case c.Syntax.AssignmentExpression:e.type=c.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left)}},e.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:u,params:[],async:!1};else{var t=this.lookahead,r=[];if(this.match("..."))e=this.parseRestElement(r),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:u,params:[e],async:!1};else{var n=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o<i.length;o++)this.reinterpretExpressionAsPattern(i[o]);n=!0,e={type:u,params:i,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.push(this.parseRestElement(r)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o<i.length;o++)this.reinterpretExpressionAsPattern(i[o]);n=!0,e={type:u,params:i,async:!1}}else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(n)break}n||(e=this.finalize(this.startNode(t),new a.SequenceExpression(i)))}if(!n){if(this.expect(")"),this.match("=>")&&(e.type===c.Syntax.Identifier&&"yield"===e.name&&(n=!0,e={type:u,params:[e],async:!1}),!n)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===c.Syntax.SequenceExpression)for(o=0;o<e.expressions.length;o++)this.reinterpretExpressionAsPattern(e.expressions[o]);else this.reinterpretExpressionAsPattern(e);var s=e.type===c.Syntax.SequenceExpression?e.expressions:[e];e={type:u,params:s,async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.isIdentifierName=function(e){return 3===e.type||4===e.type||1===e.type||5===e.type},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new a.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e,t=this.createNode(),r=this.parseIdentifierName();if(n.assert("new"===r.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var i=this.parseIdentifierName();e=new a.MetaProperty(r,i)}else this.throwUnexpectedToken(this.lookahead);else{var o=this.isolateCoverGrammar(this.parseLeftHandSideExpression),s=this.match("(")?this.parseArguments():[];e=new a.NewExpression(o,s),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(t,e)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e,t=this.lookahead,r=this.matchContextualKeyword("async"),n=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(e=this.createNode(),this.nextToken(),e=this.finalize(e,new a.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):e=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();e=this.finalize(this.startNode(t),new a.StaticMemberExpression(e,i))}else if(this.match("(")){var o=r&&t.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var s=o?this.parseAsyncArguments():this.parseArguments();if(e=this.finalize(this.startNode(t),new a.CallExpression(e,s)),o&&this.match("=>")){for(var c=0;c<s.length;++c)this.reinterpretExpressionAsPattern(s[c]);e={type:u,params:s,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),i=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),e=this.finalize(this.startNode(t),new a.ComputedMemberExpression(e,i));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var l=this.parseTemplateLiteral();e=this.finalize(this.startNode(t),new a.TaggedTemplateExpression(e,l))}return this.context.allowIn=n,e},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(e,new a.Super)},e.prototype.parseLeftHandSideExpression=function(){n.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var r=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new a.ComputedMemberExpression(t,r))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),r=this.parseIdentifierName(),t=this.finalize(e,new a.StaticMemberExpression(t,r));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var i=this.parseTemplateLiteral();t=this.finalize(e,new a.TaggedTemplateExpression(t,i))}return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var r=this.startNode(t),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment);var i=!0;e=this.finalize(r,new a.UpdateExpression(n.value,e,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(o.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var s=this.nextToken().value;i=!1,e=this.finalize(this.startNode(t),new a.UpdateExpression(s,e,i))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new a.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new a.UnaryExpression(r.value,e)),this.context.strict&&"delete"===e.operator&&e.argument.type===c.Syntax.Identifier&&this.tolerateError(o.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==c.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=t,n=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new a.BinaryExpression("**",r,n))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return 7===e.type?this.operatorPrecedence[t]||0:4===e.type&&("instanceof"===t||this.context.allowIn&&"in"===t)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),r=this.lookahead,n=this.binaryPrecedence(r);if(n>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],o=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[o,r.value,s],l=[n];!((n=this.binaryPrecedence(this.lookahead))<=0);){for(;c.length>2&&n<=l[l.length-1];){s=c.pop();var u=c.pop();l.pop(),o=c.pop(),i.pop();var d=this.startNode(i[i.length-1]);c.push(this.finalize(d,new a.BinaryExpression(u,o,s)))}c.push(this.nextToken().value),l.push(n),i.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=c.length-1;t=c[p];for(var m=i.pop();p>1;){var h=i.pop(),f=m&&m.lineStart;d=this.startNode(h,f),u=c[p-1],t=this.finalize(d,new a.BinaryExpression(u,c[p-2],t)),p-=2,m=h}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var r=this.context.allowIn;this.context.allowIn=!0;var n=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=r,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,n,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case c.Syntax.Identifier:this.validateParam(e,t,t.name);break;case c.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case c.Syntax.ArrayPattern:for(var r=0;r<t.elements.length;r++)null!==t.elements[r]&&this.checkPatternParam(e,t.elements[r]);break;case c.Syntax.ObjectPattern:for(r=0;r<t.properties.length;r++)this.checkPatternParam(e,t.properties[r].value)}e.simple=e.simple&&t instanceof a.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t,r=[e],n=!1;switch(e.type){case c.Syntax.Identifier:break;case u:r=e.params,n=e.async;break;default:return null}t={simple:!0,paramSet:{}};for(var i=0;i<r.length;++i)(a=r[i]).type===c.Syntax.AssignmentPattern?a.right.type===c.Syntax.YieldExpression&&(a.right.argument&&this.throwUnexpectedToken(this.lookahead),a.right.type=c.Syntax.Identifier,a.right.name="yield",delete a.right.argument,delete a.right.delegate):n&&a.type===c.Syntax.Identifier&&"await"===a.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(t,a),r[i]=a;if(this.context.strict||!this.context.allowYield)for(i=0;i<r.length;++i){var a;(a=r[i]).type===c.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(t.message===o.Messages.StrictParamDupe){var s=this.context.strict?t.stricted:t.firstRestricted;this.throwUnexpectedToken(s,t.message)}return{simple:t.simple,params:r,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,r=t;if(e=this.parseConditionalExpression(),3===r.type&&r.lineNumber===this.lookahead.lineNumber&&"async"===r.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var n=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(n),e={type:u,params:[n],async:!0}}if(e.type===u||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,d=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var p=this.context.allowYield,m=this.context.await;this.context.allowYield=!0,this.context.await=i;var h=this.startNode(t);this.expect("=>");var f=void 0;if(this.match("{")){var _=this.context.allowIn;this.context.allowIn=!0,f=this.parseFunctionSourceElements(),this.context.allowIn=_}else f=this.isolateCoverGrammar(this.parseAssignmentExpression);var g=f.type!==c.Syntax.BlockStatement;this.context.strict&&s.firstRestricted&&this.throwUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),e=i?this.finalize(h,new a.AsyncArrowFunctionExpression(s.params,f,g)):this.finalize(h,new a.ArrowFunctionExpression(s.params,f,g)),this.context.strict=l,this.context.allowStrictDirective=d,this.context.allowYield=p,this.context.await=m}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(o.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===c.Syntax.Identifier){var b=e;this.scanner.isRestrictedWord(b.name)&&this.tolerateUnexpectedToken(r,o.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(b.name)&&this.tolerateUnexpectedToken(r,o.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var y=(r=this.nextToken()).value,v=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new a.AssignmentExpression(y,e,v)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var r=[];for(r.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new a.SequenceExpression(r))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,o.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new a.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var r=this.createNode(),n=this.parsePattern([],e);this.context.strict&&n.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(o.Messages.StrictVarName);var i=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&n.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(r,new a.VariableDeclarator(n,i))},e.prototype.parseBindingList=function(e,t){for(var r=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),r.push(this.parseLexicalBinding(e,t));return r},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),r=this.nextToken().value;n.assert("let"===r||"const"===r,"Lexical declaration must be either let or const");var i=this.parseBindingList(r,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(i,r))},e.prototype.parseBindingRestElement=function(e,t){var r=this.createNode();this.expect("...");var n=this.parsePattern(e,t);return this.finalize(r,new a.RestElement(n))},e.prototype.parseArrayPattern=function(e,t){var r=this.createNode();this.expect("[");for(var n=[];!this.match("]");)if(this.match(","))this.nextToken(),n.push(null);else{if(this.match("...")){n.push(this.parseBindingRestElement(e,t));break}n.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(r,new a.ArrayPattern(n))},e.prototype.parsePropertyPattern=function(e,t){var r,n,i=this.createNode(),o=!1,s=!1;if(3===this.lookahead.type){var c=this.lookahead;r=this.parseVariableIdentifier();var l=this.finalize(i,new a.Identifier(c.value));if(this.match("=")){e.push(c),s=!0,this.nextToken();var u=this.parseAssignmentExpression();n=this.finalize(this.startNode(c),new a.AssignmentPattern(l,u))}else this.match(":")?(this.expect(":"),n=this.parsePatternWithDefault(e,t)):(e.push(c),s=!0,n=l)}else o=this.match("["),r=this.parseObjectPropertyKey(),this.expect(":"),n=this.parsePatternWithDefault(e,t);return this.finalize(i,new a.Property("init",r,o,n,!1,s))},e.prototype.parseObjectPattern=function(e,t){var r=this.createNode(),n=[];for(this.expect("{");!this.match("}");)n.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(r,new a.ObjectPattern(n))},e.prototype.parsePattern=function(e,t){var r;return this.match("[")?r=this.parseArrayPattern(e,t):this.match("{")?r=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,o.Messages.LetInLexicalBinding),e.push(this.lookahead),r=this.parseVariableIdentifier(t)),r},e.prototype.parsePatternWithDefault=function(e,t){var r=this.lookahead,n=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,n=this.finalize(this.startNode(r),new a.AssignmentPattern(n,o))}return n},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),r=this.nextToken();return 4===r.type&&"yield"===r.value?this.context.strict?this.tolerateUnexpectedToken(r,o.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(r):3!==r.type?this.context.strict&&4===r.type&&this.scanner.isStrictModeReservedWord(r.value)?this.tolerateUnexpectedToken(r,o.Messages.StrictReservedWord):(this.context.strict||"let"!==r.value||"var"!==e)&&this.throwUnexpectedToken(r):(this.context.isModule||this.context.await)&&3===r.type&&"await"===r.value&&this.tolerateUnexpectedToken(r),this.finalize(t,new a.Identifier(r.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),r=this.parsePattern([],"var");this.context.strict&&r.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictVarName);var n=null;return this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type===c.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(r,n))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},r=[];for(r.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),r.push(this.parseVariableDeclaration(t));return r},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new a.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new a.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(o.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),r=null;this.expectKeyword("if"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),r=this.parseIfClause())),this.finalize(t,new a.IfStatement(n,e,r))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var r=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new a.DoWhileStatement(r,n))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var n=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=n}return this.finalize(t,new a.WhileStatement(r,e))},e.prototype.parseForStatement=function(){var e,t,r,n=null,i=null,s=null,l=!0,u=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){n=this.createNode(),this.nextToken();var d=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=d,1===p.length&&this.matchKeyword("in")){var m=p[0];m.init&&(m.id.type===c.Syntax.ArrayPattern||m.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(o.Messages.ForInOfLoopInitializer,"for-in"),n=this.finalize(n,new a.VariableDeclaration(p,"var")),this.nextToken(),e=n,t=this.parseExpression(),n=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new a.VariableDeclaration(p,"var")),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,l=!1):(n=this.finalize(n,new a.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){n=this.createNode();var h=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(d=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(h,{inFor:!0}),this.context.allowIn=d,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(n=this.finalize(n,new a.VariableDeclaration(p,h)),this.nextToken(),e=n,t=this.parseExpression(),n=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new a.VariableDeclaration(p,h)),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,l=!1):(this.consumeSemicolon(),n=this.finalize(n,new a.VariableDeclaration(p,h)))):(n=this.finalize(n,new a.Identifier(h)),this.nextToken(),e=n,t=this.parseExpression(),n=null)}else{var f=this.lookahead;if(d=this.context.allowIn,this.context.allowIn=!1,n=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=d,this.matchKeyword("in"))this.context.isAssignmentTarget&&n.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseExpression(),n=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&n.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseAssignmentExpression(),n=null,l=!1;else{if(this.match(",")){for(var _=[n];this.match(",");)this.nextToken(),_.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(f),new a.SequenceExpression(_))}this.expect(";")}}if(void 0===e&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(s=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),r=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var g=this.context.inIteration;this.context.inIteration=!0,r=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=g}return void 0===e?this.finalize(u,new a.ForStatement(n,i,s,r)):l?this.finalize(u,new a.ForInStatement(e,t,r)):this.finalize(u,new a.ForOfStatement(e,t,r))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier();t=r;var n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(o.Messages.UnknownLabel,r.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(o.Messages.IllegalContinue),this.finalize(e,new a.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier(),n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(o.Messages.UnknownLabel,r.name),t=r}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(o.Messages.IllegalBreak),this.finalize(e,new a.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(o.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(o.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new a.WithStatement(r,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var r=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)r.push(this.parseStatementListItem());return this.finalize(t,new a.SwitchCase(e,r))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var r=this.context.inSwitch;this.context.inSwitch=!0;var n=[],i=!1;for(this.expect("{");!this.match("}");){var s=this.parseSwitchCase();null===s.test&&(i&&this.throwError(o.Messages.MultipleDefaultsInSwitch),i=!0),n.push(s)}return this.expect("}"),this.context.inSwitch=r,this.finalize(e,new a.SwitchStatement(t,n))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),r=this.parseExpression();if(r.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var n=r,i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(o.Messages.Redeclaration,"Label",n.name),this.context.labelSet[i]=!0;var s=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),s=this.parseClassDeclaration();else if(this.matchKeyword("function")){var l=this.lookahead,u=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,o.Messages.StrictFunction):u.generator&&this.tolerateUnexpectedToken(l,o.Messages.GeneratorInLegacyContext),s=u}else s=this.parseStatement();delete this.context.labelSet[i],e=new a.LabeledStatement(n,s)}else this.consumeSemicolon(),e=new a.ExpressionStatement(r);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(o.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new a.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],r=this.parsePattern(t),n={},i=0;i<t.length;i++){var s="$"+t[i].value;Object.prototype.hasOwnProperty.call(n,s)&&this.tolerateError(o.Messages.DuplicateBinding,t[i].value),n[s]=!0}this.context.strict&&r.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(o.Messages.StrictCatchVariable),this.expect(")");var l=this.parseBlock();return this.finalize(e,new a.CatchClause(r,l))},e.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),r=this.matchKeyword("catch")?this.parseCatchClause():null,n=this.matchKeyword("finally")?this.parseFinallyClause():null;return r||n||this.throwError(o.Messages.NoCatchOrFinally),this.finalize(e,new a.TryStatement(t,r,n))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new a.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e="{"===t?this.parseBlock():"("===t?this.parseExpressionStatement():";"===t?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement()}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),r=this.context.labelSet,n=this.context.inIteration,i=this.context.inSwitch,o=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=r,this.context.inIteration=n,this.context.inSwitch=i,this.context.inFunctionBody=o,this.finalize(e,new a.BlockStatement(t))},e.prototype.validateParam=function(e,t,r){var n="$"+r;this.context.strict?(this.scanner.isRestrictedWord(r)&&(e.stricted=t,e.message=o.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,n)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(r)?(e.firstRestricted=t,e.message=o.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(r)?(e.firstRestricted=t,e.message=o.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,n)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(e.paramSet,n,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[n]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var r=this.parsePattern(e);return this.match("=")&&this.throwError(o.Messages.DefaultRestParameter),this.match(")")||this.throwError(o.Messages.ParameterAfterRestParameter),this.finalize(t,new a.RestElement(r))},e.prototype.parseFormalParameter=function(e){for(var t=[],r=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),n=0;n<t.length;n++)this.validateParam(e,t[n],t[n].value);e.simple=e.simple&&r instanceof a.Identifier,e.params.push(r)},e.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(t),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var r=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===r.lineNumber&&4===r.type&&"function"===r.value}return e},e.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),r=this.matchContextualKeyword("async");r&&this.nextToken(),this.expectKeyword("function");var n,i=!r&&this.match("*");i&&this.nextToken();var s=null,c=null;if(!e||!this.match("(")){var l=this.lookahead;s=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(c=l,n=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(c=l,n=o.Messages.StrictReservedWord)}var u=this.context.await,d=this.context.allowYield;this.context.await=r,this.context.allowYield=!i;var p=this.parseFormalParameters(c),m=p.params,h=p.stricted;c=p.firstRestricted,p.message&&(n=p.message);var f=this.context.strict,_=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&c&&this.throwUnexpectedToken(c,n),this.context.strict&&h&&this.tolerateUnexpectedToken(h,n),this.context.strict=f,this.context.allowStrictDirective=_,this.context.await=u,this.context.allowYield=d,r?this.finalize(t,new a.AsyncFunctionDeclaration(s,m,g)):this.finalize(t,new a.FunctionDeclaration(s,m,g,i))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var r,n=!t&&this.match("*");n&&this.nextToken();var i,s=null,c=this.context.await,l=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!n,!this.match("(")){var u=this.lookahead;s=this.context.strict||n||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(u.value)&&this.tolerateUnexpectedToken(u,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(u.value)?(i=u,r=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(u.value)&&(i=u,r=o.Messages.StrictReservedWord)}var d=this.parseFormalParameters(i),p=d.params,m=d.stricted;i=d.firstRestricted,d.message&&(r=d.message);var h=this.context.strict,f=this.context.allowStrictDirective;this.context.allowStrictDirective=d.simple;var _=this.parseFunctionSourceElements();return this.context.strict&&i&&this.throwUnexpectedToken(i,r),this.context.strict&&m&&this.tolerateUnexpectedToken(m,r),this.context.strict=h,this.context.allowStrictDirective=f,this.context.await=c,this.context.allowYield=l,t?this.finalize(e,new a.AsyncFunctionExpression(s,p,_)):this.finalize(e,new a.FunctionExpression(s,p,_,n))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),r=this.parseExpression(),n=r.type===c.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,n?new a.Directive(r,n):new a.ExpressionStatement(r))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var r=this.lookahead;if(8!==r.type)break;var n=this.parseDirective();t.push(n);var i=n.directive;if("string"!=typeof i)break;"use strict"===i?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,o.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(r,o.Messages.IllegalLanguageModeDirective)):!e&&r.octal&&(e=r)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===e.value}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();r.params.length>0&&this.tolerateError(o.Messages.BadGetterArity);var n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,n,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();1!==r.params.length?this.tolerateError(o.Messages.BadSetterArity):r.params[0]instanceof a.RestElement&&this.tolerateError(o.Messages.BadSetterRestParameter);var n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,n,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,n,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,r=!1;if(!this.hasLineTerminator){var n=this.context.allowYield;this.context.allowYield=!1,(r=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=n}return this.finalize(e,new a.YieldExpression(t,r))},e.prototype.parseClassElement=function(e){var t=this.lookahead,r=this.createNode(),n="",i=null,s=null,c=!1,l=!1,u=!1,d=!1;if(this.match("*"))this.nextToken();else if(c=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,u=!0,c=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(d=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,o.Messages.ConstructorIsAsync))}var m=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&m?(n="get",c=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):"set"===t.value&&m&&(n="set",c=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):7===t.type&&"*"===t.value&&m&&(n="init",c=this.match("["),i=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0),!n&&i&&this.match("(")&&(n="init",s=d?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),n||this.throwUnexpectedToken(this.lookahead),"init"===n&&(n="method"),c||(u&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!u&&this.isPropertyKey(i,"constructor")&&(("method"!==n||!l||s&&s.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,n="constructor")),this.finalize(r,new a.MethodDefinition(i,c,s,n,u))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new a.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),r=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=r,this.finalize(t,new a.ClassDeclaration(n,i,o))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=3===this.lookahead.type?this.parseVariableIdentifier():null,n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(r,n,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new a.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(o.Messages.InvalidModuleSpecifier);var t=this.nextToken(),r=this.getTokenRaw(t);return this.finalize(e,new a.Literal(t.value,r))},e.prototype.parseImportSpecifier=function(){var e,t,r=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(r,new a.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new a.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(o.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new a.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var r=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?r=r.concat(this.parseNamedImports()):this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(r.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.match("{")?r=r.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var n=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new a.ImportDeclaration(r,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),r=t;return this.matchContextualKeyword("as")&&(this.nextToken(),r=this.parseIdentifierName()),this.finalize(e,new a.ExportSpecifier(t,r))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(o.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var r=this.parseFunctionDeclaration(!0);e=this.finalize(t,new a.ExportDefaultDeclaration(r))}else this.matchKeyword("class")?(r=this.parseClassDeclaration(!0),e=this.finalize(t,new a.ExportDefaultDeclaration(r))):this.matchContextualKeyword("async")?(r=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new a.ExportDefaultDeclaration(r))):(this.matchContextualKeyword("from")&&this.throwError(o.Messages.UnexpectedToken,this.lookahead.value),r=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new a.ExportDefaultDeclaration(r)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var n=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(i))}else if(4===this.lookahead.type){switch(r=void 0,this.lookahead.value){case"let":case"const":r=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":r=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new a.ExportNamedDeclaration(r,[],null))}else if(this.matchAsyncFunction())r=this.parseFunctionDeclaration(),e=this.finalize(t,new a.ExportNamedDeclaration(r,[],null));else{var s=[],c=null,l=!1;for(this.expect("{");!this.match("}");)l=l||this.matchKeyword("default"),s.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),c=this.parseModuleSpecifier(),this.consumeSemicolon()):l?(n=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.throwError(n,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,s,c))}return e},e}();t.Parser=d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var r=new Error(e);try{throw r}catch(n){Object.create&&Object.defineProperty&&(r=Object.create(n),Object.defineProperty(r,"column",{value:t}))}return r},e.prototype.createError=function(e,t,r,n){var i="Line "+t+": "+n,o=this.constructError(i,r);return o.index=e,o.lineNumber=t,o.description=n,o},e.prototype.throwError=function(e,t,r,n){throw this.createError(e,t,r,n)},e.prototype.tolerateError=function(e,t,r,n){var i=this.createError(e,t,r,n);if(!this.tolerant)throw i;this.recordError(i)},e}();t.ErrorHandler=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(4),o=r(11);function a(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function s(e){return"01234567".indexOf(e)}var c=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=o.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,r,n=[];for(this.trackComment&&(n=[],t=this.index-e,r={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(o)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var a={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:r};n.push(a)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,n}}return this.trackComment&&(r.end={line:this.lineNumber,column:this.index-this.lineStart},a={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:r},n.push(a)),n},e.prototype.skipMultiLineComment=function(){var e,t,r=[];for(this.trackComment&&(r=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(n))13===n&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===n){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};r.push(o)}return r}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},r.push(o)),this.tolerateUnexpectedToken(),r},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(r))++this.index;else if(i.Character.isLineTerminator(r))++this.index,13===r&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===r)if(47===(r=this.source.charCodeAt(this.index+1))){this.index+=2;var n=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(n)),t=!0}else{if(42!==r)break;this.index+=2,n=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(n))}else if(t&&45===r){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,n=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(n))}else{if(60!==r||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,n=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(n))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var r=this.source.charCodeAt(e+1);r>=56320&&r<=57343&&(t=1024*(t-55296)+r-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,r=0,n=0;n<t;++n){if(this.eof()||!i.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;r=16*r+a(this.source[this.index++])}return String.fromCharCode(r)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for("}"===e&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],i.Character.isHexDigit(e.charCodeAt(0)));)t=16*t+a(e);return(t>1114111||"}"!==e)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!i.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),r=i.Character.fromCodePoint(t);for(this.index+=r.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),r=e);!this.eof()&&(t=this.codePointAt(this.index),i.Character.isIdentifierPart(t));)r+=e=i.Character.fromCodePoint(t),this.index+=e.length,92===t&&(r=r.substr(0,r.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),r+=e);return r},e.prototype.octalToDecimal=function(e){var t="0"!==e,r=s(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,r=8*r+s(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(r=8*r+s(this.source[this.index++]))),{code:r,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,r=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===r.length?3:this.isKeyword(r)?4:"null"===r?5:"true"===r||"false"===r?1:3)&&t+r.length!==this.index){var n=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=n}return{type:e,value:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,r="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)r+=this.source[this.index++];return 0===r.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(t)||i.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(r,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var r="",n=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(n=!0,r="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];return n||0!==r.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(r,8),octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if("8"===t||"9"===t)return!1;if(!i.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];n.assert(i.Character.isDecimalDigit(t.charCodeAt(0))||"."===t,"Numeric literal must start with a decimal digit or a decimal point");var r="";if("."!==t){if(r=this.source[this.index++],t=this.source[this.index],"0"===r){if("x"===t||"X"===t)return++this.index,this.scanHexLiteral(e);if("b"===t||"B"===t)return++this.index,this.scanBinaryLiteral(e);if("o"===t||"O"===t)return this.scanOctalLiteral(t,e);if(t&&i.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];t=this.source[this.index]}if("."===t){for(r+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];t=this.source[this.index]}if("e"===t||"E"===t)if(r+=this.source[this.index++],"+"!==(t=this.source[this.index])&&"-"!==t||(r+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(r),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];n.assert("'"===t||'"'===t,"String literal must starts with a quote"),++this.index;for(var r=!1,a="";!this.eof();){var s=this.source[this.index++];if(s===t){t="";break}if("\\"===s)if((s=this.source[this.index++])&&i.Character.isLineTerminator(s.charCodeAt(0)))++this.lineNumber,"\r"===s&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(s){case"u":if("{"===this.source[this.index])++this.index,a+=this.scanUnicodeCodePointEscape();else{var c=this.scanHexEscape(s);null===c&&this.throwUnexpectedToken(),a+=c}break;case"x":var l=this.scanHexEscape(s);null===l&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),a+=l;break;case"n":a+="\n";break;case"r":a+="\r";break;case"t":a+="\t";break;case"b":a+="\b";break;case"f":a+="\f";break;case"v":a+="\v";break;case"8":case"9":a+=s,this.tolerateUnexpectedToken();break;default:if(s&&i.Character.isOctalDigit(s.charCodeAt(0))){var u=this.octalToDecimal(s);r=u.octal||r,a+=String.fromCharCode(u.code)}else a+=s}else{if(i.Character.isLineTerminator(s.charCodeAt(0)))break;a+=s}}return""!==t&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:a,octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e="",t=!1,r=this.index,n="`"===this.source[r],a=!1,s=2;for(++this.index;!this.eof();){var c=this.source[this.index++];if("`"===c){s=1,a=!0,t=!0;break}if("$"===c){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,t=!0;break}e+=c}else if("\\"===c)if(c=this.source[this.index++],i.Character.isLineTerminator(c.charCodeAt(0)))++this.lineNumber,"\r"===c&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(c){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"u":if("{"===this.source[this.index])++this.index,e+=this.scanUnicodeCodePointEscape();else{var l=this.index,u=this.scanHexEscape(c);null!==u?e+=u:(this.index=l,e+=c)}break;case"x":var d=this.scanHexEscape(c);null===d&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),e+=d;break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:"0"===c?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),e+="\0"):i.Character.isOctalDigit(c.charCodeAt(0))?this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral):e+=c}else i.Character.isLineTerminator(c.charCodeAt(0))?(++this.lineNumber,"\r"===c&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,e+="\n"):e+=c}return t||this.throwUnexpectedToken(),n||this.curlyStack.pop(),{type:10,value:this.source.slice(r+1,this.index-s),cooked:e,head:n,tail:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:r,end:this.index}},e.prototype.testRegExp=function(e,t){var r=e,n=this;t.indexOf("u")>=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,r){var i=parseInt(t||r,16);return i>1114111&&n.throwUnexpectedToken(o.Messages.InvalidRegExp),i<=65535?String.fromCharCode(i):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(r)}catch(i){this.throwUnexpectedToken(o.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(a){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];n.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],r=!1,a=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);else if(r)"]"===e&&(r=!1);else{if("/"===e){a=!0;break}"["===e&&(r=!0)}return a||this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!i.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var r=this.index,n=this.scanHexEscape("u");if(null!==n)for(e+=n;r<this.index;++r)this.source[r];else this.index=r,e+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return e},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),r=this.scanRegExpFlags();return{type:9,value:"",pattern:t,flags:r,regex:this.testRegExp(t,r),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(e)?this.scanIdentifier():40===e||41===e||59===e?this.scanPunctuator():39===e||34===e?this.scanStringLiteral():46===e?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(e)?this.scanNumericLiteral():96===e||125===e&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():e>=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=c},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:"",emsp:"",thinsp:"",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"",mdash:"—",lsquo:"",rsquo:"",sbquo:"",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"",Prime:"″",lsaquo:"",rsaquo:"",oline:"‾",frasl:"",euro:"€",image:"",weierp:"℘",real:"",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"",lowast:"",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"",cap:"∩",cup:"",int:"∫",there4:"∴",sim:"",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(10),i=r(12),o=r(13),a=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var r=this.values[this.paren-1];t="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(n=this.values[this.curly-4])&&!this.beforeFunctionExpression(n);else if("function"===this.values[this.curly-4]){var n;t=!(n=this.values[this.curly-5])||!this.beforeFunctionExpression(n)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),s=function(){function e(e,t){this.errorHandler=new n.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new a}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var r=e[t],n=this.scanner.source.slice(r.slice[0],r.slice[1]),i={type:r.multiLine?"BlockComment":"LineComment",value:n};this.trackRange&&(i.range=r.range),this.trackLoc&&(i.loc=r.loc),this.buffer.push(i)}if(!this.scanner.eof()){var a=void 0;this.trackLoc&&(a={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var s="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(s);var c={type:o.TokenName[s.type],value:this.scanner.source.slice(s.start,s.end)};if(this.trackRange&&(c.range=[s.start,s.end]),this.trackLoc&&(a.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},c.loc=a),9===s.type){var l=s.pattern,u=s.flags;c.regex={pattern:l,flags:u}}this.buffer.push(c)}}return this.buffer.shift()},e}();t.Tokenizer=s}]);for(var Dd={},Ad={},Cd={byteLength:function(e){var t=Id(e),r=t[0],n=t[1];return 3*(r+n)/4-n},toByteArray:function(e){var t,r,n=Id(e),i=n[0],o=n[1],a=new Bd(function(e,t,r){return 3*(t+r)/4-r}(0,i,o)),s=0,c=o>0?i-4:i;for(r=0;r<c;r+=4)t=Fd[e.charCodeAt(r)]<<18|Fd[e.charCodeAt(r+1)]<<12|Fd[e.charCodeAt(r+2)]<<6|Fd[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=Fd[e.charCodeAt(r)]<<2|Fd[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=Fd[e.charCodeAt(r)]<<10|Fd[e.charCodeAt(r+1)]<<4|Fd[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},fromByteArray:function(e){for(var t,r=e.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push(Pd(e,a,a+o>s?s:a+o));1===n?(t=e[r-1],i.push(Ed[t>>2]+Ed[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(Ed[t>>10]+Ed[t>>4&63]+Ed[t<<2&63]+"="));return i.join("")}},Ed=[],Fd=[],Bd="undefined"!=typeof Uint8Array?Uint8Array:Array,Md="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jd=0,Td=Md.length;jd<Td;++jd)Ed[jd]=Md[jd],Fd[Md.charCodeAt(jd)]=jd;function Id(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function Pd(e,t,r){for(var n,i,o=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(Ed[(i=n)>>18&63]+Ed[i>>12&63]+Ed[i>>6&63]+Ed[63&i]);return o.join("")}Fd["-".charCodeAt(0)]=62,Fd["_".charCodeAt(0)]=63;var Ld={};
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Rd(e){return Object.prototype.toString.call(e)}Ld.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?i-1:0,p=r?-1:1,m=e[t+d];for(d+=p,o=m&(1<<-u)-1,m>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,n),o-=l}return(m?-1:1)*a*Math.pow(2,o-n)},Ld.write=function(e,t,r,n,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:o-1,h=n?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+m]=255&s,m+=h,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+m]=255&a,m+=h,a/=256,l-=8);e[r+m-h]|=128*f},
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
function(e){const t=Cd,r=Ld,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=o(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new 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))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);const i=function(e){if(a.isBuffer(e)){const t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Z(e.length)?o(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),o(e<0?0:0|p(e))}function u(e){const t=e.length<0?0:0|p(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,a.prototype),n}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function m(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(i)return n?-1:J(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return-1}function b(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(Z(n))return a;e[r+a]=n}return a}function y(e,t,r,n){return H(J(t,e.length-r),e,r,n)}function v(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return H(q(t),e,r,n)}function N(e,t,r,n){return H(function(e,t){let r,n,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function w(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function k(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(W(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.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}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=a.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(W(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},a.byteLength=m,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)f(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(W(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const c=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let a=0;a<c;++a)if(l[a]!==u[a]){o=l[a],s=u[a];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":case"latin1":case"binary":return v(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function S(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function D(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=G[e[o]];return i}function C(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function E(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function B(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function M(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(e,t,n,i,o){return t=+t,n>>>=0,o||j(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function I(e,t,n,i,o){return t=+t,n>>>=0,o||j(e,0,n,8),r.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),a.prototype.readBigUInt64BE=K((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=K((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),a.prototype.readBigInt64BE=K((function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){F(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){F(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=K((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=K((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);F(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);F(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||F(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]=255&e,t+4},a.prototype.writeBigInt64LE=K((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=K((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=a.isBuffer(e)?e:a.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const P={};function L(e,t,r){P[e]=class extends r{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}`}}}function R(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new P.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||$(t,e.length-(r+1))}(n,i,o)}function U(e,t){if("number"!=typeof e)throw new P.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,r){if(Math.floor(e)!==e)throw U(e,r),new P.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new P.ERR_BUFFER_OUT_OF_BOUNDS;throw new P.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}L("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),L("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),L("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=R(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=R(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const X=/[^+/0-9A-Za-z-_]/g;function J(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const G=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function K(e){return"undefined"==typeof BigInt?Y:e}function Y(){throw new Error("BigInt not supported")}}(Ad),Dd.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Rd(e)},Dd.isBoolean=function(e){return"boolean"==typeof e},Dd.isNull=function(e){return null===e},Dd.isNullOrUndefined=function(e){return null==e},Dd.isNumber=function(e){return"number"==typeof e},Dd.isString=function(e){return"string"==typeof e},Dd.isSymbol=function(e){return"symbol"==typeof e},Dd.isUndefined=function(e){return void 0===e},Dd.isRegExp=function(e){return"[object RegExp]"===Rd(e)},Dd.isObject=function(e){return"object"==typeof e&&null!==e},Dd.isDate=function(e){return"[object Date]"===Rd(e)},Dd.isError=function(e){return"[object Error]"===Rd(e)||e instanceof Error},Dd.isFunction=function(e){return"function"==typeof e},Dd.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},Dd.isBuffer=Ad.Buffer.isBuffer;const zd=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];let Ud;const $d=e=>e<1e5?e<100?e<10?0:1:e<1e4?e<1e3?2:3:4:e<1e7?e<1e6?5:6:e<1e9?e<1e8?7:8:9;function Xd(e,t){if(e===t)return 0;if(~~e===e&&~~t===t){if(0===e||0===t)return e<t?-1:1;if(e<0||t<0){if(t>=0)return-1;if(e>=0)return 1;e=-e,t=-t}const r=$d(e),n=$d(t);let i=0;return r<n?(e*=zd[n-r-1],t/=10,i=-1):r>n&&(t*=zd[r-n-1],e/=10,i=1),e===t?i:e<t?-1:1}const r=String(e),n=String(t);return r===n?0:r<n?-1:1}function Jd(e,t,r,n){let i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;qd(e,t,i),qd(Ud,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function qd(e,t,r){for(r--;t<r;){const n=e[t];e[t++]=e[r],e[r--]=n}}function Hd(e,t,r,n,i){for(n===t&&n++;n<r;n++){const r=e[n],o=Ud[n];let a=t,s=n;for(;a<s;){const t=a+s>>>1;i(r,e[t])<0?s=t:a=t+1}let c=n-a;switch(c){case 3:e[a+3]=e[a+2],Ud[a+3]=Ud[a+2];case 2:e[a+2]=e[a+1],Ud[a+2]=Ud[a+1];case 1:e[a+1]=e[a],Ud[a+1]=Ud[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],Ud[a+c]=Ud[a+c-1],c--}e[a]=r,Ud[a]=o}}function Wd(e,t,r,n,i,o){let a=0,s=0,c=1;if(o(e,t[r+i])>0){for(s=n-i;c<s&&o(e,t[r+i+c])>0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}else{for(s=i+1;c<s&&o(e,t[r+i-c])<=0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);const n=a;a=i-c,c=i-n}for(a++;a<c;){const n=a+(c-a>>>1);o(e,t[r+n])>0?a=n+1:c=n}return c}function Zd(e,t,r,n,i,o){let a=0,s=0,c=1;if(o(e,t[r+i])<0){for(s=i+1;c<s&&o(e,t[r+i-c])<0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);const n=a;a=i-c,c=i-n}else{for(s=n-i;c<s&&o(e,t[r+i+c])>=0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}for(a++;a<c;){const n=a+(c-a>>>1);o(e,t[r+n])<0?c=n:a=n+1}return c}class Gd{constructor(e,t){this.array=e,this.compare=t;const{length:r}=e;this.length=r,this.minGallop=7,this.tmpStorageLength=r<512?r>>>1:256,this.tmp=new Array(this.tmpStorageLength),this.tmpIndex=new Array(this.tmpStorageLength),this.stackLength=r<120?5:r<1542?10:r<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}pushRun(e,t){this.runStart[this.stackSize]=e,this.runLength[this.stackSize]=t,this.stackSize+=1}mergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;if(e>=1&&this.runLength[e-1]<=this.runLength[e]+this.runLength[e+1]||e>=2&&this.runLength[e-2]<=this.runLength[e]+this.runLength[e-1])this.runLength[e-1]<this.runLength[e+1]&&e--;else if(this.runLength[e]>this.runLength[e+1])break;this.mergeAt(e)}}forceMergeRuns(){for(;this.stackSize>1;){let e=this.stackSize-2;e>0&&this.runLength[e-1]<this.runLength[e+1]&&e--,this.mergeAt(e)}}mergeAt(e){const{compare:t}=this,{array:r}=this;let n=this.runStart[e],i=this.runLength[e];const o=this.runStart[e+1];let a=this.runLength[e+1];this.runLength[e]=i+a,e===this.stackSize-3&&(this.runStart[e+1]=this.runStart[e+2],this.runLength[e+1]=this.runLength[e+2]),this.stackSize--;const s=Zd(r[o],r,n,i,0,t);n+=s,i-=s,0!==i&&(a=Wd(r[n+i-1],r,o,a,a-1,t),0!==a&&(i<=a?this.mergeLow(n,i,o,a):this.mergeHigh(n,i,o,a)))}mergeLow(e,t,r,n){const{compare:i}=this,{array:o}=this,{tmp:a}=this,{tmpIndex:s}=this;let c=0;for(c=0;c<t;c++)a[c]=o[e+c],s[c]=Ud[e+c];let l=0,u=r,d=e;if(o[d]=o[u],Ud[d]=Ud[u],d++,u++,0==--n){for(c=0;c<t;c++)o[d+c]=a[l+c],Ud[d+c]=s[l+c];return}if(1===t){for(c=0;c<n;c++)o[d+c]=o[u+c],Ud[d+c]=Ud[u+c];return o[d+n]=a[l],void(Ud[d+n]=s[l])}let{minGallop:p}=this;for(;;){let e=0,r=0,m=!1;do{if(i(o[u],a[l])<0){if(o[d]=o[u],Ud[d]=Ud[u],d++,u++,r++,e=0,0==--n){m=!0;break}}else if(o[d]=a[l],Ud[d]=s[l],d++,l++,e++,r=0,1==--t){m=!0;break}}while((e|r)<p);if(m)break;do{if(e=Zd(o[u],a,l,t,0,i),0!==e){for(c=0;c<e;c++)o[d+c]=a[l+c],Ud[d+c]=s[l+c];if(d+=e,l+=e,(t-=e)<=1){m=!0;break}}if(o[d]=o[u],Ud[d]=Ud[u],d++,u++,0==--n){m=!0;break}if(r=Wd(a[l],o,u,n,0,i),0!==r){for(c=0;c<r;c++)o[d+c]=o[u+c],Ud[d+c]=Ud[u+c];if(d+=r,u+=r,0===(n-=r)){m=!0;break}}if(o[d]=a[l],Ud[d]=s[l],d++,l++,1==--t){m=!0;break}p--}while(e>=7||r>=7);if(m)break;p<0&&(p=0),p+=2}if(this.minGallop=p,p<1&&(this.minGallop=1),1===t){for(c=0;c<n;c++)o[d+c]=o[u+c],Ud[d+c]=Ud[u+c];o[d+n]=a[l],Ud[d+n]=s[l]}else{if(0===t)throw new Error("mergeLow preconditions were not respected");for(c=0;c<t;c++)o[d+c]=a[l+c],Ud[d+c]=s[l+c]}}mergeHigh(e,t,r,n){const{compare:i}=this,{array:o}=this,{tmp:a}=this,{tmpIndex:s}=this;let c=0;for(c=0;c<n;c++)a[c]=o[r+c],s[c]=Ud[r+c];let l=e+t-1,u=n-1,d=r+n-1,p=0,m=0;if(o[d]=o[l],Ud[d]=Ud[l],d--,l--,0==--t){for(p=d-(n-1),c=0;c<n;c++)o[p+c]=a[c],Ud[p+c]=s[c];return}if(1===n){for(d-=t,l-=t,m=d+1,p=l+1,c=t-1;c>=0;c--)o[m+c]=o[p+c],Ud[m+c]=Ud[p+c];return o[d]=a[u],void(Ud[d]=s[u])}let{minGallop:h}=this;for(;;){let r=0,f=0,_=!1;do{if(i(a[u],o[l])<0){if(o[d]=o[l],Ud[d]=Ud[l],d--,l--,r++,f=0,0==--t){_=!0;break}}else if(o[d]=a[u],Ud[d]=s[u],d--,u--,f++,r=0,1==--n){_=!0;break}}while((r|f)<h);if(_)break;do{if(r=t-Zd(a[u],o,e,t,t-1,i),0!==r){for(d-=r,l-=r,t-=r,m=d+1,p=l+1,c=r-1;c>=0;c--)o[m+c]=o[p+c],Ud[m+c]=Ud[p+c];if(0===t){_=!0;break}}if(o[d]=a[u],Ud[d]=s[u],d--,u--,1==--n){_=!0;break}if(f=n-Wd(o[l],a,0,n,n-1,i),0!==f){for(d-=f,u-=f,n-=f,m=d+1,p=u+1,c=0;c<f;c++)o[m+c]=a[p+c],Ud[m+c]=s[p+c];if(n<=1){_=!0;break}}if(o[d]=o[l],Ud[d]=Ud[l],d--,l--,0==--t){_=!0;break}h--}while(r>=7||f>=7);if(_)break;h<0&&(h=0),h+=2}if(this.minGallop=h,h<1&&(this.minGallop=1),1===n){for(d-=t,l-=t,m=d+1,p=l+1,c=t-1;c>=0;c--)o[m+c]=o[p+c],Ud[m+c]=Ud[p+c];o[d]=a[u],Ud[d]=s[u]}else{if(0===n)throw new Error("mergeHigh preconditions were not respected");for(p=d-(n-1),c=0;c<n;c++)o[p+c]=a[c],Ud[p+c]=s[c]}}}var Kd={sort:function(e,t,r,n){if(!Array.isArray(e))throw new TypeError(`The "array" argument must be an array. Received ${e}`);Ud=[];const{length:i}=e;let o=0;for(;o<i;)Ud[o]=o++;t?"function"!=typeof t&&(n=r,r=t,t=Xd):t=Xd,r||(r=0),n||(n=i);let a=n-r;if(a<2)return Ud;let s=0;if(a<32)return s=Jd(e,r,n,t),Hd(e,r,n,r+s,t),Ud;const c=new Gd(e,t),l=function(e){let t=0;for(;e>=32;)t|=1&e,e>>=1;return e+t}(a);do{if(s=Jd(e,r,n,t),s<l){let n=a;n>l&&(n=l),Hd(e,r,r+n,r+s,t),s=n}c.pushRun(r,s),c.mergeRuns(),a-=s,r+=s}while(0!==a);return c.forceMergeRuns(),Ud}};const Yd=Object.prototype.hasOwnProperty;const Vd=(e,t)=>Yd.call(e,t),{isObject:Qd,isArray:ep}=Dd,tp="before",rp="before-all",np="after-all",ip=[tp,"after-prop","after-colon","after-value","after"],op=[tp,rp,np].map(Symbol.for),ap=(e,t)=>Symbol.for(e+":"+t),sp=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),cp=(e,t,r,n,i,o)=>{const a=ap(i,n);if(!Vd(t,a))return;const s=r===n?a:ap(i,r);sp(e,s,t[a]),o&&delete t[a]},lp=(e,t,r,n,i)=>{ip.forEach((o=>{cp(e,t,r,n,o,i)}))},up=(e,t)=>{op.forEach((r=>{const n=t[r];n&&sp(e,r,n)}))};var dp={SYMBOL_PREFIXES:ip,PREFIX_BEFORE:tp,PREFIX_AFTER_PROP:"after-prop",PREFIX_AFTER_COLON:"after-colon",PREFIX_AFTER_VALUE:"after-value",PREFIX_AFTER:"after",PREFIX_BEFORE_ALL:rp,PREFIX_AFTER_ALL:np,BRACKET_OPEN:"[",BRACKET_CLOSE:"]",CURLY_BRACKET_OPEN:"{",CURLY_BRACKET_CLOSE:"}",COLON:":",COMMA:",",MINUS:"-",EMPTY:"",UNDEFINED:undefined,symbol:ap,define:sp,copy_comments:lp,swap_comments:(e,t,r)=>{t!==r&&ip.forEach((n=>{const i=ap(n,r);if(!Vd(e,i))return void cp(e,e,r,t,n,!0);const o=e[i];delete e[i],cp(e,e,r,t,n,!0),sp(e,ap(n,t),o)}))},assign_non_prop_comments:up,assign(e,t,r){if(!Qd(e))throw new TypeError("Cannot convert undefined or null to object");if(!Qd(t))return e;if(undefined===r)r=Object.keys(t),up(e,t);else{if(!ep(r))throw new TypeError("keys must be array or undefined");0===r.length&&up(e,t)}return((e,t,r)=>(r.forEach((r=>{Vd(t,r)&&(e[r]=t[r],lp(e,t,r,r))})),e))(e,t,r)}};const{isArray:pp}=Dd,{sort:mp}=Kd,{SYMBOL_PREFIXES:hp,UNDEFINED:fp,symbol:_p,copy_comments:gp,swap_comments:bp}=dp,yp=(e,t,r,n,i)=>{gp(e,t,r+n,r,i)},vp=(e,t,r,n,i,o)=>{if(i>0){let a=n;for(;a-- >0;)yp(e,t,r+a,i,o);return}let a=0;for(;a<n;){const n=a++;yp(e,t,r+n,i,o)}},xp=(e,t)=>{hp.forEach((r=>{const n=_p(r,t);delete e[n]}))};class Np extends Array{splice(...e){const{length:t}=this,r=super.splice(...e);let[n,i,...o]=e;n<0&&(n+=t),i=1===arguments.length?t-n:Math.min(t-n,i);const{length:a}=o,s=n+i;return vp(this,this,s,t-s,a-i,!0),r}slice(...e){const{length:t}=this,r=super.slice(...e);if(!r.length)return new Np;let[n,i]=e;return i===fp?i=t:i<0&&(i+=t),n<0?n+=t:n===fp&&(n=0),vp(r,this,n,i-n,-n),r}unshift(...e){const{length:t}=this,r=super.unshift(...e),{length:n}=e;return n>0&&vp(this,this,0,t,n,!0),r}shift(){const e=super.shift(),{length:t}=this;return xp(this,0),vp(this,this,1,t,-1,!0),e}reverse(){return super.reverse(),(e=>{const{length:t}=e;let r=0;const n=t/2;for(;r<n;r++)bp(e,r,t-r-1)})(this),this}pop(){const e=super.pop();return xp(this,this.length),e}concat(...e){let{length:t}=this;const r=super.concat(...e);return e.length?(vp(r,this,0,this.length,0),e.forEach((e=>{const n=t;t+=pp(e)?e.length:1,e instanceof Np&&vp(r,e,0,e.length,n)})),r):r}sort(...e){const t=mp(this,...e.slice(0,1)),r=Object.create(null);return t.forEach(((e,t)=>{if(e===t)return;const n=((e,t)=>{let r=t;for(;r in e;)r=e[r];return r})(r,e);n!==t&&(r[t]=n,bp(this,t,n))})),this}}var wp={CommentArray:Np};const kp=Sd.exports,{CommentArray:Op}=wp,{PREFIX_BEFORE:Sp,PREFIX_AFTER_PROP:Dp,PREFIX_AFTER_COLON:Ap,PREFIX_AFTER_VALUE:Cp,PREFIX_AFTER:Ep,PREFIX_BEFORE_ALL:Fp,PREFIX_AFTER_ALL:Bp,BRACKET_OPEN:Mp,BRACKET_CLOSE:jp,CURLY_BRACKET_OPEN:Tp,CURLY_BRACKET_CLOSE:Ip,COLON:Pp,COMMA:Lp,MINUS:Rp,EMPTY:zp,UNDEFINED:Up,define:$p,assign_non_prop_comments:Xp}=dp,Jp=e=>kp.tokenize(e,{comment:!0,loc:!0}),qp=[];let Hp=null,Wp=null;const Zp=[];let Gp,Kp,Yp=!1,Vp=!1,Qp=null,em=null,tm=null,rm=null;const nm=()=>{Zp.length=qp.length=0,em=null,Gp=Up},im=e=>Symbol.for(Gp!==Up?e+Pp+Gp:e),om=(e,t)=>rm?rm(e,t):t,am=()=>{const e=new SyntaxError(`Unexpected token ${tm.value.slice(0,1)}`);throw Object.assign(e,tm.loc.start),e},sm=()=>{const e=new SyntaxError("Unexpected end of JSON input");throw Object.assign(e,em?em.loc.end:{line:1,column:0}),e},cm=()=>{const e=Qp[++Kp];Vp=tm&&e&&tm.loc.end.line===e.loc.start.line||!1,em=tm,tm=e},lm=()=>(tm||sm(),"Punctuator"===tm.type?tm.value:tm.type),um=e=>lm()===e,dm=e=>{um(e)||am()},pm=e=>{qp.push(Hp),Hp=e},mm=()=>{Hp=qp.pop()},hm=()=>{if(!Wp)return;const e=[];for(const r of Wp){if(!r.inline)break;e.push(r)}const{length:t}=e;t&&(t===Wp.length?Wp=null:Wp.splice(0,t),$p(Hp,im(Ep),e))},fm=e=>{Wp&&($p(Hp,im(e),Wp),Wp=null)},_m=e=>{const t=[];for(;tm&&(um("LineComment")||um("BlockComment"));){const e=c(s({},tm),{inline:Vp});t.push(e),cm()}Yp||t.length&&(e?$p(Hp,im(e),t):Wp=t)},gm=(e,t)=>{t&&Zp.push(Gp),Gp=e},bm=()=>{Gp=Zp.pop()};function ym(){let e=lm();if(e===Tp)return cm(),(()=>{const e={};pm(e),gm(Up,!0);let t,r=!1;for(_m();!(um(Ip)||r&&(fm(Cp),dm(Lp),cm(),_m(),hm(),um(Ip)));)r=!0,dm("String"),t=JSON.parse(tm.value),gm(t),fm(Sp),cm(),_m(Dp),dm(Pp),cm(),_m(Ap),e[t]=om(t,ym()),_m();return r&&fm(Ep),cm(),Gp=void 0,r||fm(Sp),mm(),bm(),e})();if(e===Mp)return cm(),(()=>{const e=new Op;pm(e),gm(Up,!0);let t=!1,r=0;for(_m();!(um(jp)||t&&(fm(Cp),dm(Lp),cm(),_m(),hm(),um(jp)));)t=!0,gm(r),fm(Sp),e[r]=om(r,ym()),r++,_m();return t&&fm(Ep),cm(),Gp=void 0,t||fm(Sp),mm(),bm(),e})();let t,r=zp;switch(e===Rp&&(cm(),e=lm(),r=Rp),e){case"String":case"Boolean":case"Null":case"Numeric":return t=tm.value,cm(),JSON.parse(r+t)}}var vm,xm={parse:(e,t,r)=>{nm(),Qp=Jp(e),rm=t,Yp=r,Qp.length||sm(),Kp=-1,cm(),pm({}),_m(Fp);let n=ym();var i;return _m(Bp),tm&&am(),r||null===n||(i=n,Object(i)!==i&&(n=new Object(n)),Xp(n,Hp)),mm(),n=om("",n),nm(),Qp.length=0,Wp=Hp=Qp=em=tm=rm=null,n},tokenize:Jp},Nm="",wm=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var r=e.length*t;if(vm!==e||void 0===vm)vm=e,Nm="";else if(Nm.length>=r)return Nm.substr(0,r);for(;r>Nm.length&&t>1;)1&t&&(Nm+=e),t>>=1,e+=e;return Nm=(Nm+=e).substr(0,r)};
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/const{isArray:km,isObject:Om,isFunction:Sm,isNumber:Dm,isString:Am}=Dd,Cm=wm,{PREFIX_BEFORE_ALL:Em,PREFIX_BEFORE:Fm,PREFIX_AFTER_PROP:Bm,PREFIX_AFTER_COLON:Mm,PREFIX_AFTER_VALUE:jm,PREFIX_AFTER:Tm,PREFIX_AFTER_ALL:Im,BRACKET_OPEN:Pm,BRACKET_CLOSE:Lm,CURLY_BRACKET_OPEN:Rm,CURLY_BRACKET_CLOSE:zm,COLON:Um,COMMA:$m,EMPTY:Xm,UNDEFINED:Jm}=dp,qm=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Hm=e=>`${Fm}:${e}`,Wm=e=>`${jm}:${e}`,Zm=e=>`${Tm}:${e}`,Gm={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},Km=e=>`"${(e=>(qm.lastIndex=0,qm.test(e)?e.replace(qm,(e=>{const t=Gm[e];return"string"==typeof t?t:e})):e))(e)}"`,Ym=(e,t,r,n)=>{const i=e[Symbol.for(t)];if(!i||!i.length)return Xm;let o=!1;const a=i.reduce(((e,{inline:t,type:n,value:i})=>(o="LineComment"===n,e+(t?" ":"\n"+r)+((e,t)=>t?`//${e}`:`/*${e}*/`)(i,o))),Xm);return n||o?a+"\n"+r:a};let Vm=null,Qm=Xm;const eh=(e,t,r)=>e?t?e+t.trim()+"\n"+r:e.trimRight()+"\n"+r:t?t.trimRight()+"\n"+r:Xm,th=(e,t,r)=>{const n=Ym(t,Fm,r+Qm,!0);return eh(n,e,r)},rh=(e,t)=>{if(!e)return"null";const r=t+Qm;let n=Xm,i=Xm,o=!0;return(km(Vm)?Vm:Object.keys(e)).forEach((t=>{const a=nh(t,e,r);if(a===Jm)return;o||(n+=$m),o=!1;const s=eh(i,Ym(e,Hm(t),r),r);n+=s||"\n"+r,n+=Km(t)+Ym(e,`${Bm}:${t}`,r)+Um+Ym(e,(e=>`${Mm}:${e}`)(t),r)+" "+a+Ym(e,Wm(t),r),i=Ym(e,Zm(t),r)})),n+=eh(i,Ym(e,Tm,r),r),Rm+th(n,e,t)+zm};function nh(e,t,r){let n=t[e];switch(Om(n)&&Sm(n.toJSON)&&(n=n.toJSON(e)),Sm(Vm)&&(n=Vm.call(t,e,n)),typeof n){case"string":return Km(n);case"number":return Number.isFinite(n)?String(n):"null";case"boolean":case"null":return String(n);case"object":return km(n)?((e,t)=>{const r=t+Qm,{length:n}=e;let i=Xm,o=Xm;for(let a=0;a<n;a++)0!==a&&(i+=$m),i+=eh(o,Ym(e,Hm(a),r),r)||"\n"+r,i+=nh(a,e,r)||"null",i+=Ym(e,Wm(a),r),o=Ym(e,Zm(a),r);return i+=eh(o,Ym(e,Tm,r),r),Pm+th(i,e,t)+Lm})(n,r):rh(n,r)}}const{toString:ih}=Object.prototype,oh=["[object Number]","[object String]","[object Boolean]"];const{parse:ah,tokenize:sh}=xm,ch=(e,t,r)=>{const n=(e=>Am(e)?e:Dm(e)?Cm(" ",e):Xm)(r);if(!n)return JSON.stringify(e,t);Sm(t)||km(t)||(t=null),Vm=t,Qm=n;const i=(e=>{if("object"!=typeof e)return!1;const t=ih.call(e);return oh.includes(t)})(e)?JSON.stringify(e):nh("",{"":e},Xm);return Vm=null,Qm=Xm,Om(e)?Ym(e,Em,Xm).trimLeft()+i+Ym(e,Im,Xm).trimRight():i},{CommentArray:lh}=wp,{assign:uh}=dp;var dh={parse:ah,stringify:ch,tokenize:sh,CommentArray:lh,assign:uh},ph={},mh={},hh={};function fh(e){return null==e}function _h(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}hh.isNothing=fh,hh.isObject=function(e){return"object"==typeof e&&null!==e},hh.toArray=function(e){return Array.isArray(e)?e:fh(e)?[]:[e]},hh.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},hh.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},hh.extend=function(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r<n;r+=1)e[i=o[r]]=t[i];return e},_h.prototype=Object.create(Error.prototype),_h.prototype.constructor=_h,_h.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t};var gh=_h,bh=hh;function yh(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}yh.prototype.getSnippet=function(e,t){var r,n,i,o,a;if(!this.buffer)return null;for(e=e||4,t=t||75,r="",n=this.position;n>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(n-1));)if(n-=1,this.position-n>t/2-1){r=" ... ",n+=5;break}for(i="",o=this.position;o<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o));)if((o+=1)-this.position>t/2-1){i=" ... ",o-=5;break}return a=this.buffer.slice(n,o),bh.repeat(" ",e)+r+a+i+"\n"+bh.repeat(" ",e+this.position-n+r.length)+"^"},yh.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r};var vh=yh,xh=gh,Nh=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],wh=["scalar","sequence","mapping"];var kh=function(e,t){var r,n;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Nh.indexOf(t))throw new xh('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(r=t.styleAliases||null,n={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){n[String(t)]=e}))})),n),-1===wh.indexOf(this.kind))throw new xh('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')},Oh=hh,Sh=gh,Dh=kh;function Ah(e,t,r){var n=[];return e.include.forEach((function(e){r=Ah(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&t.kind===e.kind&&n.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===n.indexOf(t)}))}function Ch(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new Sh("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=Ah(this,"implicit",[]),this.compiledExplicit=Ah(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}Ch.DEFAULT=null,Ch.create=function(){var e,t;switch(arguments.length){case 1:e=Ch.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new Sh("Wrong number of arguments for Schema.create function")}if(e=Oh.toArray(e),t=Oh.toArray(t),!e.every((function(e){return e instanceof Ch})))throw new Sh("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof Dh})))throw new Sh("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ch({include:e,explicit:t})};var Eh=Ch,Fh=new Eh({explicit:[new kh("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new kh("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new kh("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var Bh=new kh("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"});var Mh=new kh("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),jh=hh;function Th(e){return 48<=e&&e<=55}function Ih(e){return 48<=e&&e<=57}var Ph=new kh("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,i=0,o=!1;if(!n)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===n)return!0;if("b"===(t=e[++i])){for(i++;i<n;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(i++;i<n;i++)if("_"!==(t=e[i])){if(!(48<=(r=e.charCodeAt(i))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;o=!0}return o&&"_"!==t}for(;i<n;i++)if("_"!==(t=e[i])){if(!Th(e.charCodeAt(i)))return!1;o=!0}return o&&"_"!==t}if("_"===t)return!1;for(;i<n;i++)if("_"!==(t=e[i])){if(":"===t)break;if(!Ih(e.charCodeAt(i)))return!1;o=!0}return!(!o||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(i)))},construct:function(e){var t,r,n=e,i=1,o=[];return-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n?0:"0"===t?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach((function(e){o.unshift(parseInt(e,10))})),n=0,r=1,o.forEach((function(e){n+=e*r,r*=60})),i*n):i*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!jh.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Lh=hh,Rh=kh,zh=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Uh=/^[-+]?[0-9]+e/;var $h=new Eh({include:[Fh],implicit:[Bh,Mh,Ph,new Rh("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!zh.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((function(e){i.unshift(parseFloat(e,10))})),t=0,n=1,i.forEach((function(e){t+=e*n,n*=60})),r*t):r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||Lh.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Lh.isNegativeZero(e))return"-0.0";return r=e.toString(10),Uh.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})]}),Xh=new Eh({include:[$h]}),Jh=kh,qh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var Wh=new Jh("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==qh.exec(e)||null!==Hh.exec(e))},construct:function(e){var t,r,n,i,o,a,s,c,l=0,u=null;if(null===(t=qh.exec(e))&&(t=Hh.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,n,i,o,a,s,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var Zh,Gh=new kh("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}});try{var Kh=require;Zh=Kh("buffer").Buffer}catch(kb){}var Yh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Vh=new kh("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,i=e.length,o=Yh;for(r=0;r<i;r++)if(!((t=o.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Yh,a=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(n.charAt(t));return 0===(r=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===r?(s.push(a>>10&255),s.push(a>>2&255)):12===r&&s.push(a>>4&255),Zh?Zh.from?Zh.from(s):new Zh(s):s},predicate:function(e){return Zh&&Zh.isBuffer(e)},represent:function(e){var t,r,n="",i=0,o=e.length,a=Yh;for(t=0;t<o;t++)t%3==0&&t&&(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]),i=(i<<8)+e[t];return 0===(r=o%3)?(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]):2===r?(n+=a[i>>10&63],n+=a[i>>4&63],n+=a[i<<2&63],n+=a[64]):1===r&&(n+=a[i>>2&63],n+=a[i<<4&63],n+=a[64],n+=a[64]),n}}),Qh=kh,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.toString;var rf=new Qh("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,o,a=[],s=e;for(t=0,r=s.length;t<r;t+=1){if(n=s[t],o=!1,"[object Object]"!==tf.call(n))return!1;for(i in n)if(ef.call(n,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(i))return!1;a.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),nf=kh,of=Object.prototype.toString;var af=new nf("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],"[object Object]"!==of.call(n))return!1;if(1!==(i=Object.keys(n)).length)return!1;o[t]=[i[0],n[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}}),sf=kh,cf=Object.prototype.hasOwnProperty;var lf=new Eh({include:[Xh],implicit:[Wh,Gh],explicit:[Vh,rf,af,new sf("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(cf.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})]});var uf=new kh("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}});var df,pf=new kh("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1}return!0},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}});try{var mf=require;df=mf("esprima")}catch(Ob){"undefined"!=typeof window&&(df=window.esprima)}var hf=new kh("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",r=df.parse(t,{range:!0});return"Program"===r.type&&1===r.body.length&&"ExpressionStatement"===r.body[0].type&&("ArrowFunctionExpression"===r.body[0].expression.type||"FunctionExpression"===r.body[0].expression.type)}catch(n){return!1}},construct:function(e){var t,r="("+e+")",n=df.parse(r,{range:!0}),i=[];if("Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"ArrowFunctionExpression"!==n.body[0].expression.type&&"FunctionExpression"!==n.body[0].expression.type)throw new Error("Failed to resolve function");return n.body[0].expression.params.forEach((function(e){i.push(e.name)})),t=n.body[0].expression.body.range,"BlockStatement"===n.body[0].expression.body.type?new Function(i,r.slice(t[0]+1,t[1]-1)):new Function(i,"return "+r.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}}),ff=Eh,_f=ff.DEFAULT=new ff({include:[lf],explicit:[uf,pf,hf]}),gf=hh,bf=gh,yf=vh,vf=lf,xf=_f,Nf=Object.prototype.hasOwnProperty,wf=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kf=/[\x85\u2028\u2029]/,Of=/[,\[\]\{\}]/,Sf=/^(?:!|!!|![a-z\-]+!)$/i,Df=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Af(e){return Object.prototype.toString.call(e)}function Cf(e){return 10===e||13===e}function Ef(e){return 9===e||32===e}function Ff(e){return 9===e||32===e||10===e||13===e}function Bf(e){return 44===e||91===e||93===e||123===e||125===e}function Mf(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function jf(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Tf(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var If=new Array(256),Pf=new Array(256),Lf=0;Lf<256;Lf++)If[Lf]=jf(Lf)?1:0,Pf[Lf]=jf(Lf);function Rf(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||xf,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function zf(e,t){return new bf(t,new yf(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function Uf(e,t){throw zf(e,t)}function $f(e,t){e.onWarning&&e.onWarning.call(null,zf(e,t))}var Xf={YAML:function(e,t,r){var n,i,o;null!==e.version&&Uf(e,"duplication of %YAML directive"),1!==r.length&&Uf(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Uf(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&Uf(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&$f(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&Uf(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],Sf.test(n)||Uf(e,"ill-formed tag handle (first argument) of the TAG directive"),Nf.call(e.tagMap,n)&&Uf(e,'there is a previously declared suffix for "'+n+'" tag handle'),Df.test(i)||Uf(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function Jf(e,t,r,n){var i,o,a,s;if(t<r){if(s=e.input.slice(t,r),n)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||Uf(e,"expected valid JSON character");else wf.test(s)&&Uf(e,"the stream contains non-printable characters");e.result+=s}}function qf(e,t,r,n){var i,o,a,s;for(gf.isObject(r)||Uf(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(i=Object.keys(r)).length;a<s;a+=1)o=i[a],Nf.call(t,o)||(t[o]=r[o],n[o]=!0)}function Hf(e,t,r,n,i,o,a,s){var c,l;if(Array.isArray(i))for(c=0,l=(i=Array.prototype.slice.call(i)).length;c<l;c+=1)Array.isArray(i[c])&&Uf(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===Af(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===Af(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)qf(e,t,o[c],r);else qf(e,t,o,r);else e.json||Nf.call(r,i)||!Nf.call(t,i)||(e.line=a||e.line,e.position=s||e.position,Uf(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}function Wf(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Uf(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function Zf(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;Ef(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!Cf(i))break;for(Wf(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&$f(e,"deficient indentation"),n}function Gf(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Ff(t)))}function Kf(e,t){1===t?e.result+=" ":t>1&&(e.result+=gf.repeat("\n",t-1))}function Yf(e,t){var r,n,i=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&45===n&&Ff(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,Zf(e,!0,-1)&&e.lineIndent<=t)a.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,e_(e,t,3,!1,!0),a.push(e.result),Zf(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Uf(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function Vf(e){var t,r,n,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Uf(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):Uf(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!Ff(i);)33===i&&(a?Uf(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Sf.test(r)||Uf(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),Of.test(n)&&Uf(e,"tag suffix cannot contain flow indicator characters")}return n&&!Df.test(n)&&Uf(e,"tag name cannot contain such characters: "+n),o?e.tag=n:Nf.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Uf(e,'undeclared tag handle "'+r+'"'),!0}function Qf(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Uf(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Ff(r)&&!Bf(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Uf(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e_(e,t,r,n,i){var o,a,s,c,l,u,d,p,m=1,h=!1,f=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=4===r||3===r,n&&Zf(e,!0,-1)&&(h=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;Vf(e)||Qf(e);)Zf(e,!0,-1)?(h=!0,s=o,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):s=!1;if(s&&(s=h||i),1!==m&&4!==r||(d=1===r||2===r?t:t+1,p=e.position-e.lineStart,1===m?s&&(Yf(e,p)||function(e,t,r){var n,i,o,a,s,c=e.tag,l=e.anchor,u={},d={},p=null,m=null,h=null,f=!1,_=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=u),s=e.input.charCodeAt(e.position);0!==s;){if(n=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,63!==s&&58!==s||!Ff(n)){if(!e_(e,r,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);Ef(s);)s=e.input.charCodeAt(++e.position);if(58===s)Ff(s=e.input.charCodeAt(++e.position))||Uf(e,"a whitespace character is expected after the key-value separator within a block mapping"),f&&(Hf(e,u,d,p,m,null),p=m=h=null),_=!0,f=!1,i=!1,p=e.tag,m=e.result;else{if(!_)return e.tag=c,e.anchor=l,!0;Uf(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!_)return e.tag=c,e.anchor=l,!0;Uf(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(f&&(Hf(e,u,d,p,m,null),p=m=h=null),_=!0,f=!0,i=!0):f?(f=!1,i=!0):Uf(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=n;if((e.line===o||e.lineIndent>t)&&(e_(e,t,4,!0,i)&&(f?m=e.result:h=e.result),f||(Hf(e,u,d,p,m,h,o,a),p=m=h=null),Zf(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)Uf(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return f&&Hf(e,u,d,p,m,null),_&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=u),_}(e,p,d))||function(e,t){var r,n,i,o,a,s,c,l,u,d,p=!0,m=e.tag,h=e.anchor,f={};if(91===(d=e.input.charCodeAt(e.position)))i=93,s=!1,n=[];else{if(123!==d)return!1;i=125,s=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),d=e.input.charCodeAt(++e.position);0!==d;){if(Zf(e,!0,t),(d=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=m,e.anchor=h,e.kind=s?"mapping":"sequence",e.result=n,!0;p||Uf(e,"missed comma between flow collection entries"),u=null,o=a=!1,63===d&&Ff(e.input.charCodeAt(e.position+1))&&(o=a=!0,e.position++,Zf(e,!0,t)),r=e.line,e_(e,t,1,!1,!0),l=e.tag,c=e.result,Zf(e,!0,t),d=e.input.charCodeAt(e.position),!a&&e.line!==r||58!==d||(o=!0,d=e.input.charCodeAt(++e.position),Zf(e,!0,t),e_(e,t,1,!1,!0),u=e.result),s?Hf(e,n,f,l,c,u):o?n.push(Hf(e,null,f,l,c,u)):n.push(c),Zf(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(p=!0,d=e.input.charCodeAt(++e.position)):p=!1}Uf(e,"unexpected end of the stream within a flow collection")}(e,d)?f=!0:(a&&function(e,t){var r,n,i,o,a,s=1,c=!1,l=!1,u=t,d=0,p=!1;if(124===(o=e.input.charCodeAt(e.position)))n=!1;else{if(62!==o)return!1;n=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)1===s?s=43===o?3:2:Uf(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(a=o)&&a<=57?a-48:-1)>=0))break;0===i?Uf(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Uf(e,"repeat of an indentation width identifier"):(u=t+i-1,l=!0)}if(Ef(o)){do{o=e.input.charCodeAt(++e.position)}while(Ef(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!Cf(o)&&0!==o)}for(;0!==o;){for(Wf(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),Cf(o))d++;else{if(e.lineIndent<u){3===s?e.result+=gf.repeat("\n",c?1+d:d):1===s&&c&&(e.result+="\n");break}for(n?Ef(o)?(p=!0,e.result+=gf.repeat("\n",c?1+d:d)):p?(p=!1,e.result+=gf.repeat("\n",d+1)):0===d?c&&(e.result+=" "):e.result+=gf.repeat("\n",d):e.result+=gf.repeat("\n",c?1+d:d),c=!0,l=!0,d=0,r=e.position;!Cf(o)&&0!==o;)o=e.input.charCodeAt(++e.position);Jf(e,r,e.position,!1)}}return!0}(e,d)||function(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Jf(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else Cf(r)?(Jf(e,n,i,!0),Kf(e,Zf(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Gf(e)?Uf(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Uf(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var r,n,i,o,a,s,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return Jf(e,r,e.position,!0),e.position++,!0;if(92===s){if(Jf(e,r,e.position,!0),Cf(s=e.input.charCodeAt(++e.position)))Zf(e,!1,t);else if(s<256&&If[s])e.result+=Pf[s],e.position++;else if((a=120===(c=s)?2:117===c?4:85===c?8:0)>0){for(i=a,o=0;i>0;i--)(a=Mf(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:Uf(e,"expected hexadecimal character");e.result+=Tf(o),e.position++}else Uf(e,"unknown escape sequence");r=n=e.position}else Cf(s)?(Jf(e,r,n,!0),Kf(e,Zf(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Gf(e)?Uf(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Uf(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?f=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Ff(n)&&!Bf(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Uf(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Nf.call(e.anchorMap,r)||Uf(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Zf(e,!0,-1),!0}(e)?function(e,t,r){var n,i,o,a,s,c,l,u,d=e.kind,p=e.result;if(Ff(u=e.input.charCodeAt(e.position))||Bf(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Ff(n=e.input.charCodeAt(e.position+1))||r&&Bf(n)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==u;){if(58===u){if(Ff(n=e.input.charCodeAt(e.position+1))||r&&Bf(n))break}else if(35===u){if(Ff(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Gf(e)||r&&Bf(u))break;if(Cf(u)){if(s=e.line,c=e.lineStart,l=e.lineIndent,Zf(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(Jf(e,i,o,!1),Kf(e,e.line-s),i=o=e.position,a=!1),Ef(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return Jf(e,i,o,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,d,1===r)&&(f=!0,null===e.tag&&(e.tag="?")):(f=!0,null===e.tag&&null===e.anchor||Uf(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(f=s&&Yf(e,p))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Uf(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((u=e.implicitTypes[c]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else Nf.call(e.typeMap[e.kind||"fallback"],e.tag)?(u=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&u.kind!==e.kind&&Uf(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result)?(e.result=u.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Uf(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Uf(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||f}function t_(e){var t,r,n,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(Zf(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!Ff(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Uf(e,"directive name must not be less than one character in length");0!==i;){for(;Ef(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!Cf(i));break}if(Cf(i))break;for(t=e.position;0!==i&&!Ff(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&Wf(e),Nf.call(Xf,r)?Xf[r](e,r,n):$f(e,'unknown document directive "'+r+'"')}Zf(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Zf(e,!0,-1)):a&&Uf(e,"directives end mark is expected"),e_(e,e.lineIndent-1,4,!1,!0),Zf(e,!0,-1),e.checkLineBreaks&&kf.test(e.input.slice(o,e.position))&&$f(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Gf(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Zf(e,!0,-1)):e.position<e.length-1&&Uf(e,"end of the stream or a document separator is expected")}function r_(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new Rf(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Uf(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)t_(r);return r.documents}function n_(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=r_(e,r);if("function"!=typeof t)return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function i_(e,t){var r=r_(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new bf("expected a single document in the stream, but found more")}}mh.loadAll=n_,mh.load=i_,mh.safeLoadAll=function(e,t,r){return"object"==typeof t&&null!==t&&void 0===r&&(r=t,t=null),n_(e,t,gf.extend({schema:vf},r))},mh.safeLoad=function(e,t){return i_(e,gf.extend({schema:vf},t))};var o_={},a_=hh,s_=gh,c_=_f,l_=lf,u_=Object.prototype.toString,d_=Object.prototype.hasOwnProperty,p_={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},m_=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function h_(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new s_("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+a_.repeat("0",n-t.length)+t}function f_(e){this.schema=e.schema||c_,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=a_.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,i,o,a,s,c;if(null===t)return{};for(r={},i=0,o=(n=Object.keys(t)).length;i<o;i+=1)a=n[i],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&d_.call(c.styleAliases,s)&&(s=c.styleAliases[s]),r[a]=s;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function __(e,t){for(var r,n=a_.repeat(" ",t),i=0,o=-1,a="",s=e.length;i<s;)-1===(o=e.indexOf("\n",i))?(r=e.slice(i),i=s):(r=e.slice(i,o+1),i=o+1),r.length&&"\n"!==r&&(a+=n),a+=r;return a}function g_(e,t){return"\n"+a_.repeat(" ",e.indent*t)}function b_(e){return 32===e||9===e}function y_(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function v_(e,t){return y_(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return y_(e)&&!b_(e)&&65279!==e&&13!==e&&10!==e}(t))}function x_(e){return/^\n* /.test(e)}function N_(e,t,r,n,i){var o,a,s,c,l=!1,u=!1,d=-1!==n,p=-1,m=y_(c=e.charCodeAt(0))&&65279!==c&&!b_(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&!b_(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!y_(a=e.charCodeAt(o)))return 5;s=o>0?e.charCodeAt(o-1):null,m=m&&v_(a,s)}else{for(o=0;o<e.length;o++){if(10===(a=e.charCodeAt(o)))l=!0,d&&(u=u||o-p-1>n&&" "!==e[p+1],p=o);else if(!y_(a))return 5;s=o>0?e.charCodeAt(o-1):null,m=m&&v_(a,s)}u=u||d&&o-p-1>n&&" "!==e[p+1]}return l||u?r>9&&x_(e)?5:u?4:3:m&&!i(e)?1:2}function w_(e,t,r,n){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==m_.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(N_(t,a,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}))){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+k_(t,e.indent)+O_(__(t,i));case 4:return">"+k_(t,e.indent)+O_(__(function(e,t){var r,n,i=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,i.lastIndex=s,S_(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;n=i.exec(e);){var c=n[1],l=n[2];r=" "===l[0],o+=c+(a||r||""===l?"":"\n")+S_(l,t),a=r}return o}(t,o),i));case 5:return'"'+function(e){for(var t,r,n,i="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=h_(1024*(t-55296)+r-56320+65536),o++):i+=!(n=p_[t])&&y_(t)?e[o]:n||h_(t);return i}(t)+'"';default:throw new s_("impossible error: invalid scalar style")}}()}function k_(e,t){var r=x_(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function O_(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function S_(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,a=0,s=0,c="";r=i.exec(e);)(s=r.index)-o>t&&(n=a>o?a:s,c+="\n"+e.slice(o,n),o=n+1),a=s;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function D_(e,t,r){var n,i,o,a,s,c;for(o=0,a=(i=r?e.explicitTypes:e.implicitTypes).length;o<a;o+=1)if(((s=i[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(e.tag=r?s.tag:"?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===u_.call(s.represent))n=s.represent(t,c);else{if(!d_.call(s.represent,c))throw new s_("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');n=s.represent[c](t,c)}e.dump=n}return!0}return!1}function A_(e,t,r,n,i,o){e.tag=null,e.dump=r,D_(e,r,!1)||D_(e,r,!0);var a=u_.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var s,c,l="[object Object]"===a||"[object Array]"===a;if(l&&(c=-1!==(s=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(i=!1),c&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(l&&c&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===a)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var i,o,a,s,c,l,u="",d=e.tag,p=Object.keys(r);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new s_("sortKeys must be a boolean or a function");for(i=0,o=p.length;i<o;i+=1)l="",n&&0===i||(l+=g_(e,t)),s=r[a=p[i]],A_(e,t+1,a,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=g_(e,t)),A_(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,i),c&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,r){var n,i,o,a,s,c="",l=e.tag,u=Object.keys(r);for(n=0,i=u.length;n<i;n+=1)s="",0!==n&&(s+=", "),e.condenseFlow&&(s+='"'),a=r[o=u[n]],A_(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),A_(e,t,a,!1,!1)&&(c+=s+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===a){var u=e.noArrayIndent&&t>0?t-1:t;n&&0!==e.dump.length?(!function(e,t,r,n){var i,o,a="",s=e.tag;for(i=0,o=r.length;i<o;i+=1)A_(e,t+1,r[i],!0,!0)&&(n&&0===i||(a+=g_(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}(e,u,e.dump,i),c&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,r){var n,i,o="",a=e.tag;for(n=0,i=r.length;n<i;n+=1)A_(e,t,r[n],!1,!1)&&(0!==n&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,u,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump))}else{if("[object String]"!==a){if(e.skipInvalid)return!1;throw new s_("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&w_(e,e.dump,t,o)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function C_(e,t){var r,n,i=[],o=[];for(E_(e,i,o),r=0,n=o.length;r<n;r+=1)t.duplicates.push(i[o[r]]);t.usedDuplicates=new Array(n)}function E_(e,t,r){var n,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)E_(e[i],t,r);else for(i=0,o=(n=Object.keys(e)).length;i<o;i+=1)E_(e[n[i]],t,r)}function F_(e,t){var r=new f_(t=t||{});return r.noRefs||C_(e,r),A_(r,0,e,!0,!0)?r.dump+"\n":""}o_.dump=F_,o_.safeDump=function(e,t){return F_(e,a_.extend({schema:l_},t))};var B_=mh,M_=o_;function j_(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}ph.Type=kh,ph.Schema=Eh,ph.FAILSAFE_SCHEMA=Fh,ph.JSON_SCHEMA=$h,ph.CORE_SCHEMA=Xh,ph.DEFAULT_SAFE_SCHEMA=lf,ph.DEFAULT_FULL_SCHEMA=_f,ph.load=B_.load,ph.loadAll=B_.loadAll,ph.safeLoad=B_.safeLoad,ph.safeLoadAll=B_.safeLoadAll,ph.dump=M_.dump,ph.safeDump=M_.safeDump,ph.YAMLException=gh,ph.MINIMAL_SCHEMA=Fh,ph.SAFE_SCHEMA=lf,ph.DEFAULT_SCHEMA=_f,ph.scan=j_("scan"),ph.parse=j_("parse"),ph.compose=j_("compose"),ph.addConstructor=j_("addConstructor");var T_=ph;function I_(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function P_(e){this.props=e}function L_(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:I_(this.props,e)}function n(t){return this.shouldComponentUpdate=r,v(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(P_.prototype=new w).isPureReactComponent=!0,P_.prototype.shouldComponentUpdate=function(e,t){return I_(this.props,e)||I_(this.state,t)};var R_=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),R_&&R_(e)};var z_=d.__e;d.__e=function(e,t,r){if(e.then)for(var n,i=t;i=i.__;)if((n=i.__c)&&n.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t);z_(e,t,r)};var U_=d.unmount;function $_(){this.__u=0,this.t=null,this.__b=null}function X_(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function J_(){this.u=null,this.o=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),U_&&U_(e)},($_.prototype=new w).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=X_(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__e){var e=n.state.__e;n.__v.__k[0]=function e(t,r,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,r,n)})),t.__c&&t.__c.__P===r&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__e:n.__b=null});t=n.t.pop();)t.forceUpdate()}},c=!0===t.__h;n.__u++||c||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(a,a)},$_.prototype.componentWillUnmount=function(){this.t=[]},$_.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,r,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var r in t)e[r]=t[r];return e}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,r,n)}))),t}(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__e&&v(N,null,e.fallback);return i&&(i.__h=null),[v(N,null,t.__e?null:e.children),i]};var q_=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};(J_.prototype=new w).__e=function(e){var t=this,r=X_(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),q_(t,e,n)):i()};r?r(o):o()}},J_.prototype.render=function(e){this.u=null,this.o=new Map;var t=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},J_.prototype.componentDidUpdate=J_.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){q_(e,r,t)}))};var H_="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,W_=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Z_=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var G_=d.event;function K_(){}function Y_(){return this.cancelBubble}function V_(){return this.defaultPrevented}d.event=function(e){return G_&&(e=G_(e)),e.persist=K_,e.isPropagationStopped=Y_,e.isDefaultPrevented=V_,e.nativeEvent=e};var Q_={configurable:!0,get:function(){return this.class}},eg=d.vnode;d.vnode=function(e){var t=e.type,r=e.props,n=r;if("string"==typeof t){for(var i in n={},r){var o=r[i];"value"===i&&"defaultValue"in r&&null==o||("defaultValue"===i&&"value"in r&&null==r.value?i="value":"download"===i&&!0===o?o="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z_(r.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():W_.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),n[i]=o)}"select"==t&&n.multiple&&Array.isArray(n.value)&&(n.value=E(r.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==t&&null!=n.defaultValue&&(n.value=E(r.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),e.props=n}t&&r.class!=r.className&&(Q_.enumerable="className"in r,null!=r.className&&(n.class=r.className),Object.defineProperty(n,"className",Q_)),e.$$typeof=H_,eg&&eg(e)};var tg=d.__r;d.__r=function(e){tg&&tg(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var rg={};
/*!
* howler.js v2.2.3
* howlerjs.com
*
* (c) 2013-2020, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
*/!function(e){!function(){var t=function(){this.init()};t.prototype={init:function(){var e=this||r;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||r;if(e=parseFloat(e),t.ctx||u(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,r.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),o=0;o<i.length;o++){var a=t._howls[n]._soundById(i[o]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||r;t.ctx||u(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,r.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),o=0;o<i.length;o++){var a=t._howls[n]._soundById(i[o]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},stop:function(){for(var e=this||r,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||r,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,u()),e},codecs:function(e){return(this||r)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||r;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||r,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(u){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i=e._navigator?e._navigator.userAgent:"",o=i.match(/OPR\/([0-6].)/g),a=o&&parseInt(o[0].split("/")[1],10)<33,s=-1!==i.indexOf("Safari")&&-1===i.indexOf("Chrome"),c=i.match(/Version\/(.*?) /),l=s&&c&&parseInt(c[1],10)<15;return e._codecs={mp3:!(a||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(l||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(l||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||r;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(r){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var n=new Audio;n._unlocked=!0,e._releaseHtml5Audio(n)}catch(l){e.noAudio=!0;break}for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var o=e._howls[i]._getSoundIds(),a=0;a<o.length;a++){var s=e._howls[i]._soundById(o[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var c=e.ctx.createBufferSource();c.buffer=e._scratchBuffer,c.connect(e.ctx.destination),void 0===c.start?c.noteOn(0):c.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),c.onended=function(){c.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var r=0;r<e._howls.length;r++)e._howls[r]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||r;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||r;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&r.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&r.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var r=new t,n=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};n.prototype={init:function(e){var t=this;return r.ctx||u(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=r.usingWebAudio&&!t._html5,void 0!==r.ctx&&r.ctx&&r.autoUnlock&&r._unlockAudio(),r._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(r.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var n=0;n<e._src.length;n++){var o,s;if(e._format&&e._format[n])o=e._format[n];else{if("string"!=typeof(s=e._src[n])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(o=/^data:audio\/([^;,]+);/i.exec(s))||(o=/\.([^.]+)$/.exec(s.split("?",1)[0])),o&&(o=o[1].toLowerCase())}if(o||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),o&&r.codecs(o)){t=e._src[n];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new i(e),e._webAudio&&a(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var o=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(o++,i=n._sounds[a]._id);1===o?e=null:i=null}}var s=i?n._soundById(i):n._inactiveSound();if(!s)return null;if(i&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var c=s._id;return n._queue.push({event:"play",action:function(){n.play(c)}}),c}if(i&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&r._autoResume();var l=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),u=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-l),d=1e3*u/Math.abs(s._rate),p=n._sprite[e][0]/1e3,m=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var h=function(){s._paused=!1,s._seek=l,s._start=p,s._stop=m,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(l>=m)){var f=s._node;if(n._webAudio){var _=function(){n._playLock=!1,h(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;f.gain.setValueAtTime(e,r.ctx.currentTime),s._playStart=r.ctx.currentTime,void 0===f.bufferSource.start?s._loop?f.bufferSource.noteGrainOn(0,l,86400):f.bufferSource.noteGrainOn(0,l,u):s._loop?f.bufferSource.start(0,l,86400):f.bufferSource.start(0,l,u),d!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d)),t||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===r.state&&"interrupted"!==r.ctx.state?_():(n._playLock=!0,n.once("resume",_),n._clearTimer(s._id))}else{var g=function(){f.currentTime=l,f.muted=s._muted||n._muted||r._muted||f.muted,f.volume=s._volume*r.volume(),f.playbackRate=s._rate;try{var i=f.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(n._playLock=!0,h(),i.then((function(){n._playLock=!1,f._unlocked=!0,t?n._loadQueue():n._emit("play",s._id)})).catch((function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):t||(n._playLock=!1,h(),n._emit("play",s._id)),f.playbackRate=s._rate,f.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d):(n._endTimers[s._id]=function(){n._ended(s),f.removeEventListener("ended",n._endTimers[s._id],!1)},f.addEventListener("ended",n._endTimers[s._id],!1))}catch(o){n._emit("playerror",s._id,o)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===f.src&&(f.src=n._src,f.load());var b=window&&window.ejecta||!f.readyState&&r._navigator.isCocoonJS;if(f.readyState>=3||b)g();else{n._playLock=!0,n._state="loading";var y=function(){n._state="loaded",g(),f.removeEventListener(r._canPlayEvent,y,!1)};f.addEventListener(r._canPlayEvent,y,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var r=t._getSoundIds(e),n=0;n<r.length;n++){t._clearTimer(r[n]);var i=t._soundById(r[n]);if(i&&!i._paused&&(i._seek=t.seek(r[n]),i._rateSeek=0,i._paused=!0,t._stopFade(r[n]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"stop",action:function(){r.stop(e)}}),r;for(var n=r._getSoundIds(e),i=0;i<n.length;i++){r._clearTimer(n[i]);var o=r._soundById(n[i]);o&&(o._seek=o._start||0,o._rateSeek=0,o._paused=!0,o._ended=!0,r._stopFade(n[i]),o._node&&(r._webAudio?o._node.bufferSource&&(void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),r._cleanBuffer(o._node)):isNaN(o._node.duration)&&o._node.duration!==1/0||(o._node.currentTime=o._start||0,o._node.pause(),o._node.duration===1/0&&r._clearSound(o._node))),t||r._emit("stop",o._id))}return r},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var i=n._getSoundIds(t),o=0;o<i.length;o++){var a=n._soundById(i[o]);a&&(a._muted=e,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,r.ctx.currentTime):a._node&&(a._node.muted=!!r._muted||e),n._emit("mute",a._id))}return n},volume:function(){var e,t,n,i=this,o=arguments;if(0===o.length)return i._volume;if(1===o.length||2===o.length&&void 0===o[1]){var a=i._getSoundIds(),s=a.indexOf(o[0]);s>=0?t=parseInt(o[0],10):e=parseFloat(o[0])}else o.length>=2&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(n=t?i._soundById(t):i._sounds[0])?n._volume:0;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,o)}}),i;void 0===t&&(i._volume=e),t=i._getSoundIds(t);for(var c=0;c<t.length;c++)(n=i._soundById(t[c]))&&(n._volume=e,o[2]||i._stopFade(t[c]),i._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,r.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*r.volume()),i._emit("volume",n._id));return i},fade:function(e,t,n,i){var o=this;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"fade",action:function(){o.fade(e,t,n,i)}}),o;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),o.volume(e,i);for(var a=o._getSoundIds(i),s=0;s<a.length;s++){var c=o._soundById(a[s]);if(c){if(i||o._stopFade(a[s]),o._webAudio&&!c._muted){var l=r.ctx.currentTime,u=l+n/1e3;c._volume=e,c._node.gain.setValueAtTime(e,l),c._node.gain.linearRampToValueAtTime(t,u)}o._startFadeInterval(c,e,t,n,a[s],void 0===i)}}return o},_startFadeInterval:function(e,t,r,n,i,o){var a=this,s=t,c=r-t,l=Math.abs(c/.01),u=Math.max(4,l>0?n/l:n),d=Date.now();e._fadeTo=r,e._interval=setInterval((function(){var i=(Date.now()-d)/n;d=Date.now(),s+=c*i,s=Math.round(100*s)/100,s=c<0?Math.max(r,s):Math.min(r,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),o&&(a._volume=s),(r<t&&s<=r||r>t&&s>=r)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(r,e._id),a._emit("fade",e._id))}),u)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,r,n=this,i=arguments;if(0===i.length)return n._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(r=n._soundById(parseInt(i[0],10)))&&r._loop;e=i[0],n._loop=e}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var o=n._getSoundIds(t),a=0;a<o.length;a++)(r=n._soundById(o[a]))&&(r._loop=e,n._webAudio&&r._node&&r._node.bufferSource&&(r._node.bufferSource.loop=e,e&&(r._node.bufferSource.loopStart=r._start||0,r._node.bufferSource.loopEnd=r._stop,n.playing(o[a])&&(n.pause(o[a],!0),n.play(o[a],!0)))));return n},rate:function(){var e,t,n,i=this,o=arguments;if(0===o.length)t=i._sounds[0]._id;else if(1===o.length){var a=i._getSoundIds(),s=a.indexOf(o[0]);s>=0?t=parseInt(o[0],10):e=parseFloat(o[0])}else 2===o.length&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if("number"!=typeof e)return(n=i._soundById(t))?n._rate:i._rate;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,o)}}),i;void 0===t&&(i._rate=e),t=i._getSoundIds(t);for(var c=0;c<t.length;c++)if(n=i._soundById(t[c])){i.playing(t[c])&&(n._rateSeek=i.seek(t[c]),n._playStart=i._webAudio?r.ctx.currentTime:n._playStart),n._rate=e,i._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,r.ctx.currentTime):n._node&&(n._node.playbackRate=e);var l=i.seek(t[c]),u=(i._sprite[n._sprite][0]+i._sprite[n._sprite][1])/1e3-l,d=1e3*u/Math.abs(n._rate);!i._endTimers[t[c]]&&n._paused||(i._clearTimer(t[c]),i._endTimers[t[c]]=setTimeout(i._ended.bind(i,n),d)),i._emit("rate",n._id)}return i},seek:function(){var e,t,n=this,i=arguments;if(0===i.length)n._sounds.length&&(t=n._sounds[0]._id);else if(1===i.length){var o=n._getSoundIds(),a=o.indexOf(i[0]);a>=0?t=parseInt(i[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(i[0]))}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,i)}}),n;var s=n._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var c=n.playing(t)?r.ctx.currentTime-s._playStart:0,l=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(l+c*Math.abs(s._rate))}return s._node.currentTime}var u=n.playing(t);u&&n.pause(t,!0),s._seek=e,s._ended=!1,n._clearTimer(t),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var d=function(){u&&n.play(t,!0),n._emit("seek",t)};if(u&&!n._webAudio){var p=function(){n._playLock?setTimeout(p,0):d()};setTimeout(p,0)}else d()}return n},playing:function(e){var t=this;if("number"==typeof e){var r=t._soundById(e);return!!r&&!r._paused}for(var n=0;n<t._sounds.length;n++)if(!t._sounds[n]._paused)return!0;return!1},duration:function(e){var t=this,r=t._duration,n=t._soundById(e);return n&&(r=t._sprite[n._sprite][1]/1e3),r},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(r._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),r._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var i=r._howls.indexOf(e);i>=0&&r._howls.splice(i,1);var a=!0;for(n=0;n<r._howls.length;n++)if(r._howls[n]._src===e._src||e._src.indexOf(r._howls[n]._src)>=0){a=!1;break}return o&&a&&delete o[e._src],r.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,r,n){var i=this["_on"+e];return"function"==typeof t&&i.push(n?{id:r,fn:t,once:n}:{id:r,fn:t}),this},off:function(e,t,r){var n=this,i=n["_on"+e],o=0;if("number"==typeof t&&(r=t,t=null),t||r)for(o=0;o<i.length;o++){var a=r===i[o].id;if(t===i[o].fn&&a||!t&&a){i.splice(o,1);break}}else if(e)n["_on"+e]=[];else{var s=Object.keys(n);for(o=0;o<s.length;o++)0===s[o].indexOf("_on")&&Array.isArray(n[s[o]])&&(n[s[o]]=[])}return n},once:function(e,t,r){return this.on(e,t,r,1),this},_emit:function(e,t,r){for(var n=this,i=n["_on"+e],o=i.length-1;o>=0;o--)i[o].id&&i[o].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,r)}.bind(n,i[o].fn),0),i[o].once&&n.off(e,i[o].fn,i[o].id));return n._loadQueue(e),n},_loadQueue:function(e){var t=this;if(t._queue.length>0){var r=t._queue[0];r.event===e&&(t._queue.shift(),t._loadQueue()),e||r.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var i=!(!e._loop&&!t._sprite[n][2]);if(t._emit("end",e._id),!t._webAudio&&i&&t.stop(e._id,!0).play(e._id),t._webAudio&&i){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=r.ctx.currentTime;var o=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),o)}return t._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),r._autoSuspend()),t._webAudio||i||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var r=t._soundById(e);r&&r._node&&r._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,r=0;r<t._sounds.length;r++)if(e===t._sounds[r]._id)return t._sounds[r];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,r=0,n=0;if(!(e._sounds.length<t)){for(n=0;n<e._sounds.length;n++)e._sounds[n]._ended&&r++;for(n=e._sounds.length-1;n>=0;n--){if(r<=t)return;e._sounds[n]._ended&&(e._webAudio&&e._sounds[n]._node&&e._sounds[n]._node.disconnect(0),e._sounds.splice(n,1),r--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],r=0;r<this._sounds.length;r++)t.push(this._sounds[r]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=r.ctx.createBufferSource(),e._node.bufferSource.buffer=o[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,r.ctx.currentTime),this},_cleanBuffer:function(e){var t=r._navigator&&r._navigator.vendor.indexOf("Apple")>=0;if(r._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=r._scratchBuffer}catch(n){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++r._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=r._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===r.ctx.createGain?r.ctx.createGainNode():r.ctx.createGain(),e._node.gain.setValueAtTime(n,r.ctx.currentTime),e._node.paused=!0,e._node.connect(r.masterGain)):r.noAudio||(e._node=r._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(r._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=n*r.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++r._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(r._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var o={},a=function(e){var t=e._src;if(o[t])return e._duration=o[t].duration,void l(e);if(/^data:[^;]+;base64,/.test(t)){for(var r=atob(t.split(",")[1]),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);c(n.buffer,e)}else{var a=new XMLHttpRequest;a.open(e._xhr.method,t,!0),a.withCredentials=e._xhr.withCredentials,a.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){a.setRequestHeader(t,e._xhr.headers[t])})),a.onload=function(){var t=(a.status+"")[0];"0"===t||"2"===t||"3"===t?c(a.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+a.status+".")},a.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete o[t],e.load())},s(a)}},s=function(e){try{e.send()}catch(t){e.onerror()}},c=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},i=function(e){e&&t._sounds.length>0?(o[t._src]=e,l(t,e)):n()};"undefined"!=typeof Promise&&1===r.ctx.decodeAudioData.length?r.ctx.decodeAudioData(e).then(i).catch(n):r.ctx.decodeAudioData(e,i,n)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},u=function(){if(r.usingWebAudio){try{"undefined"!=typeof AudioContext?r.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?r.ctx=new webkitAudioContext:r.usingWebAudio=!1}catch(o){r.usingWebAudio=!1}r.ctx||(r.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(r._navigator&&r._navigator.platform),t=r._navigator&&r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var i=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());r._navigator&&!i&&(r.usingWebAudio=!1)}r.usingWebAudio&&(r.masterGain=void 0===r.ctx.createGain?r.ctx.createGainNode():r.ctx.createGain(),r.masterGain.gain.setValueAtTime(r._muted?0:r._volume,r.ctx.currentTime),r.masterGain.connect(r.ctx.destination)),r._setup()}};e.Howler=r,e.Howl=n,void 0!==Be?(Be.HowlerGlobal=t,Be.Howler=r,Be.Howl=n,Be.Sound=i):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=r,window.Howl=n,window.Sound=i)}(),
/*!
* Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
*
* howler.js v2.2.3
* howlerjs.com
*
* (c) 2013-2020, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
*/
function(){var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var r=t._howls.length-1;r>=0;r--)t._howls[r].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,r){var n=this;return n.ctx&&n.ctx.listener?(t="number"!=typeof t?n._pos[1]:t,r="number"!=typeof r?n._pos[2]:r,"number"!=typeof e?n._pos:(n._pos=[e,t,r],void 0!==n.ctx.listener.positionX?(n.ctx.listener.positionX.setTargetAtTime(n._pos[0],Howler.ctx.currentTime,.1),n.ctx.listener.positionY.setTargetAtTime(n._pos[1],Howler.ctx.currentTime,.1),n.ctx.listener.positionZ.setTargetAtTime(n._pos[2],Howler.ctx.currentTime,.1)):n.ctx.listener.setPosition(n._pos[0],n._pos[1],n._pos[2]),n)):n},HowlerGlobal.prototype.orientation=function(e,t,r,n,i,o){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return t="number"!=typeof t?s[1]:t,r="number"!=typeof r?s[2]:r,n="number"!=typeof n?s[3]:n,i="number"!=typeof i?s[4]:i,o="number"!=typeof o?s[5]:o,"number"!=typeof e?s:(a._orientation=[e,t,r,n,i,o],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,r,n,i,o),a)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var r=this;return r._orientation=t.orientation||[1,0,0],r._stereo=t.stereo||null,r._pos=t.pos||null,r._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},r._onstereo=t.onstereo?[{fn:t.onstereo}]:[],r._onpos=t.onpos?[{fn:t.onpos}]:[],r._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,r){var n=this;if(!n._webAudio)return n;if("loaded"!==n._state)return n._queue.push({event:"stereo",action:function(){n.stereo(e,r)}}),n;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===r){if("number"!=typeof e)return n._stereo;n._stereo=e,n._pos=[e,0,0]}for(var o=n._getSoundIds(r),a=0;a<o.length;a++){var s=n._soundById(o[a]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,i),"spatial"===i?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",s._id)}}return n},Howl.prototype.pos=function(e,r,n,i){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"pos",action:function(){o.pos(e,r,n,i)}}),o;if(r="number"!=typeof r?0:r,n="number"!=typeof n?-.5:n,void 0===i){if("number"!=typeof e)return o._pos;o._pos=[e,r,n]}for(var a=o._getSoundIds(i),s=0;s<a.length;s++){var c=o._soundById(a[s]);if(c){if("number"!=typeof e)return c._pos;c._pos=[e,r,n],c._node&&(c._panner&&!c._panner.pan||t(c,"spatial"),void 0!==c._panner.positionX?(c._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(r,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):c._panner.setPosition(e,r,n)),o._emit("pos",c._id)}}return o},Howl.prototype.orientation=function(e,r,n,i){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"orientation",action:function(){o.orientation(e,r,n,i)}}),o;if(r="number"!=typeof r?o._orientation[1]:r,n="number"!=typeof n?o._orientation[2]:n,void 0===i){if("number"!=typeof e)return o._orientation;o._orientation=[e,r,n]}for(var a=o._getSoundIds(i),s=0;s<a.length;s++){var c=o._soundById(a[s]);if(c){if("number"!=typeof e)return c._orientation;c._orientation=[e,r,n],c._node&&(c._panner||(c._pos||(c._pos=o._pos||[0,0,-.5]),t(c,"spatial")),void 0!==c._panner.orientationX?(c._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(r,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):c._panner.setOrientation(e,r,n)),o._emit("orientation",c._id)}}return o},Howl.prototype.pannerAttr=function(){var e,r,n,i=this,o=arguments;if(!i._webAudio)return i;if(0===o.length)return i._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return(n=i._soundById(parseInt(o[0],10)))?n._pannerAttr:i._pannerAttr;e=o[0],void 0===r&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),i._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:i._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:i._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:i._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:i._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:i._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:i._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:i._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:i._panningModel})}else 2===o.length&&(e=o[0],r=parseInt(o[1],10));for(var a=i._getSoundIds(r),s=0;s<a.length;s++)if(n=i._soundById(a[s])){var c=n._pannerAttr;c={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:c.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:c.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:c.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:c.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:c.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:c.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:c.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:c.panningModel};var l=n._panner;l?(l.coneInnerAngle=c.coneInnerAngle,l.coneOuterAngle=c.coneOuterAngle,l.coneOuterGain=c.coneOuterGain,l.distanceModel=c.distanceModel,l.maxDistance=c.maxDistance,l.refDistance=c.refDistance,l.rolloffFactor=c.rolloffFactor,l.panningModel=c.panningModel):(n._pos||(n._pos=i._pos||[0,0,-.5]),t(n,"spatial"))}return i},Sound.prototype.init=function(e){return function(){var t=this,r=t._parent;t._orientation=r._orientation,t._stereo=r._stereo,t._pos=r._pos,t._pannerAttr=r._pannerAttr,e.call(this),t._stereo?r.stereo(t._stereo):t._pos&&r.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,r=t._parent;return t._orientation=r._orientation,t._stereo=r._stereo,t._pos=r._pos,t._pannerAttr=r._pannerAttr,t._stereo?r.stereo(t._stereo):t._pos?r.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,r._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}(rg);var ng={exports:{}},ig={exports:{}};function og(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}ig.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:og,changeDefaults:function(e){ig.exports.defaults=e}};const ag=/[&<>"']/,sg=/[&<>"']/g,cg=/[<>"']|&(?!#?\w+;)/,lg=/[<>"']|&(?!#?\w+;)/g,ug={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},dg=e=>ug[e];const pg=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function mg(e){return e.replace(pg,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const hg=/(^|[^\[])\^/g;const fg=/[^\w:]/g,_g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const gg={},bg=/^[^:]+:\/*[^/]*$/,yg=/^([^:]+:)[\s\S]*$/,vg=/^([^:]+:\/*[^/]*)[\s\S]*$/;function xg(e,t){gg[" "+e]||(bg.test(e)?gg[" "+e]=e+"/":gg[" "+e]=Ng(e,"/",!0));const r=-1===(e=gg[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(yg,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(vg,"$1")+t:e+t}function Ng(e,t,r){const n=e.length;if(0===n)return"";let i=0;for(;i<n;){const o=e.charAt(n-i-1);if(o!==t||r){if(o===t||!r)break;i++}else i++}return e.substr(0,n-i)}var wg={escape:function(e,t){if(t){if(ag.test(e))return e.replace(sg,dg)}else if(cg.test(e))return e.replace(lg,dg);return e},unescape:mg,edit:function(e,t){e=e.source||e,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(hg,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r},cleanUrl:function(e,t,r){if(e){let e;try{e=decodeURIComponent(mg(r)).replace(fg,"").toLowerCase()}catch(n){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!_g.test(r)&&(r=xg(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(n){return null}return r},resolveUrl:xg,noopTest:{exec:function(){}},merge:function(e){let t,r,n=1;for(;n<arguments.length;n++)for(r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},splitCells:function(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r},rtrim:Ng,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,i=0;for(;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},repeatString:function(e,t){if(t<1)return"";let r="";for(;t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}};const{defaults:kg}=ig.exports,{rtrim:Og,splitCells:Sg,escape:Dg,findClosingBracket:Ag}=wg;function Cg(e,t,r,n){const i=t.href,o=t.title?Dg(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:i,title:o,text:a,tokens:n.inlineTokens(a,[])};return n.state.inLink=!1,e}return{type:"image",raw:r,href:i,title:o,text:Dg(a)}}var Eg=class{constructor(e){this.options=e||kg}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Og(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Og(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const r={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,i,o,a,s,c,l,u,d,p=t[1].trim();const m=p.length>1,h={type:"list",raw:"",ordered:m,start:m?+p.slice(0,-1):"",loose:!1,items:[]};p=m?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=m?p:"[*+-]");const f=new RegExp(`^( {0,3}${p})((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))`);for(;e&&!this.rules.block.hr.test(e)&&(t=f.exec(e));){u=t[2].split("\n"),this.options.pedantic?(o=2,d=u[0].trimLeft()):(o=t[2].search(/[^ ]/),o=t[1].length+(o>4?1:o),d=u[0].slice(o-t[1].length)),s=!1,r=t[0],!u[0]&&/^ *$/.test(u[1])&&(r=t[1]+u.slice(0,2).join("\n")+"\n",h.loose=!0,u=[]);const p=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(a=1;a<u.length;a++){if(l=u[a],this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),p.test(l)){r=t[1]+u.slice(0,a).join("\n")+"\n";break}if(s){if(!(l.search(/[^ ]/)>=o)&&l.trim()){r=t[1]+u.slice(0,a).join("\n")+"\n";break}d+="\n"+l.slice(o)}else l.trim()||(s=!0),l.search(/[^ ]/)>=o?d+="\n"+l.slice(o):d+="\n"+l}h.loose||(c?h.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(i="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:r,task:!!n,checked:i,loose:!1,text:d}),h.raw+=r,e=e.slice(r.length)}h.items[h.items.length-1].raw=r.trimRight(),h.items[h.items.length-1].text=d.trimRight(),h.raw=h.raw.trimRight();const _=h.items.length;for(a=0;a<_;a++)this.lexer.state.top=!1,h.items[a].tokens=this.lexer.blockTokens(h.items[a].text,[]),h.items[a].tokens.some((e=>"space"===e.type))&&(h.loose=!0,h.items[a].loose=!0);return h}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Dg(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Sg(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,i,o,a=e.align.length;for(r=0;r<a;r++)/^ *-+: *$/.test(e.align[r])?e.align[r]="right":/^ *:-+: *$/.test(e.align[r])?e.align[r]="center":/^ *:-+ *$/.test(e.align[r])?e.align[r]="left":e.align[r]=null;for(a=e.rows.length,r=0;r<a;r++)e.rows[r]=Sg(e.rows[r],e.header.length).map((e=>({text:e})));for(a=e.header.length,n=0;n<a;n++)e.header[n].tokens=[],this.lexer.inlineTokens(e.header[n].text,e.header[n].tokens);for(a=e.rows.length,n=0;n<a;n++)for(o=e.rows[n],i=0;i<o.length;i++)o[i].tokens=[],this.lexer.inlineTokens(o[i].text,o[i].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Dg(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Dg(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Og(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=Ag(t[2],"()");if(e>-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(e)?r.slice(1):r.slice(1,-1)),Cg(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Cg(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let i,o,a=r,s=0;const c="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=c.exec(t));){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(o=i.length,n[3]||n[4]){a+=o;continue}if((n[5]||n[6])&&r%3&&!((r+o)%3)){s+=o;continue}if(a-=o,a>0)continue;if(o=Math.min(o,o+a+s),Math.min(r,o)%2){const t=e.slice(1,r+n.index+o);return{type:"em",raw:e.slice(0,r+n.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,r+n.index+o-1);return{type:"strong",raw:e.slice(0,r+n.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=Dg(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=Dg(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=Dg(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=Dg(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=Dg(r[0]),n="www."===r[1]?"http://"+e:e}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Dg(r[0]):r[0]:Dg(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}};const{noopTest:Fg,edit:Bg,merge:Mg}=wg,jg={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:Fg,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};jg.def=Bg(jg.def).replace("label",jg._label).replace("title",jg._title).getRegex(),jg.bullet=/(?:[*+-]|\d{1,9}[.)])/,jg.listItemStart=Bg(/^( *)(bull) */).replace("bull",jg.bullet).getRegex(),jg.list=Bg(jg.list).replace(/bull/g,jg.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+jg.def.source+")").getRegex(),jg._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",jg._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,jg.html=Bg(jg.html,"i").replace("comment",jg._comment).replace("tag",jg._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jg.paragraph=Bg(jg._paragraph).replace("hr",jg.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jg._tag).getRegex(),jg.blockquote=Bg(jg.blockquote).replace("paragraph",jg.paragraph).getRegex(),jg.normal=Mg({},jg),jg.gfm=Mg({},jg.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),jg.gfm.table=Bg(jg.gfm.table).replace("hr",jg.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",jg._tag).getRegex(),jg.pedantic=Mg({},jg.normal,{html:Bg("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",jg._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Fg,paragraph:Bg(jg.normal._paragraph).replace("hr",jg.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",jg.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Tg={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Fg,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Fg,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};Tg.punctuation=Bg(Tg.punctuation).replace(/punctuation/g,Tg._punctuation).getRegex(),Tg.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Tg.escapedEmSt=/\\\*|\\_/g,Tg._comment=Bg(jg._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Tg.emStrong.lDelim=Bg(Tg.emStrong.lDelim).replace(/punct/g,Tg._punctuation).getRegex(),Tg.emStrong.rDelimAst=Bg(Tg.emStrong.rDelimAst,"g").replace(/punct/g,Tg._punctuation).getRegex(),Tg.emStrong.rDelimUnd=Bg(Tg.emStrong.rDelimUnd,"g").replace(/punct/g,Tg._punctuation).getRegex(),Tg._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Tg._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Tg._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Tg.autolink=Bg(Tg.autolink).replace("scheme",Tg._scheme).replace("email",Tg._email).getRegex(),Tg._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Tg.tag=Bg(Tg.tag).replace("comment",Tg._comment).replace("attribute",Tg._attribute).getRegex(),Tg._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Tg._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Tg._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Tg.link=Bg(Tg.link).replace("label",Tg._label).replace("href",Tg._href).replace("title",Tg._title).getRegex(),Tg.reflink=Bg(Tg.reflink).replace("label",Tg._label).getRegex(),Tg.reflinkSearch=Bg(Tg.reflinkSearch,"g").replace("reflink",Tg.reflink).replace("nolink",Tg.nolink).getRegex(),Tg.normal=Mg({},Tg),Tg.pedantic=Mg({},Tg.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Bg(/^!?\[(label)\]\((.*?)\)/).replace("label",Tg._label).getRegex(),reflink:Bg(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Tg._label).getRegex()}),Tg.gfm=Mg({},Tg.normal,{escape:Bg(Tg.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Tg.gfm.url=Bg(Tg.gfm.url,"i").replace("email",Tg.gfm._extended_email).getRegex(),Tg.breaks=Mg({},Tg.gfm,{br:Bg(Tg.br).replace("{2,}","*").getRegex(),text:Bg(Tg.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ig={block:jg,inline:Tg};const Pg=Eg,{defaults:Lg}=ig.exports,{block:Rg,inline:zg}=Ig,{repeatString:Ug}=wg;function $g(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Xg(e){let t,r,n="";const i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}var Jg=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Lg,this.options.tokenizer=this.options.tokenizer||new Pg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Rg.normal,inline:zg.normal};this.options.pedantic?(t.block=Rg.pedantic,t.inline=zg.pedantic):this.options.gfm&&(t.block=Rg.gfm,this.options.breaks?t.inline=zg.breaks:t.inline=zg.gfm),this.tokenizer.rules=t}static get rules(){return{block:Rg,inline:zg}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let r,n,i,o;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=i.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let r,n,i,o,a,s,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+Ug("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+Ug("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,c,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,Xg))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,Xg))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i,$g))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),a=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}};const{defaults:qg}=ig.exports,{cleanUrl:Hg,escape:Wg}=wg;var Zg=class{constructor(e){this.options=e||qg}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+Wg(n,!0)+'">'+(r?e:Wg(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:Wg(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,r){if(null===(e=Hg(this.options.sanitize,this.options.baseUrl,e)))return r;let n='<a href="'+Wg(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(null===(e=Hg(this.options.sanitize,this.options.baseUrl,e)))return r;let n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">",n}text(e){return e}},Gg=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}},Kg=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}};const Yg=Zg,Vg=Gg,Qg=Kg,{defaults:eb}=ig.exports,{unescape:tb}=wg;var rb=class e{constructor(e){this.options=e||eb,this.options.renderer=this.options.renderer||new Yg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Vg,this.slugger=new Qg}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){let r,n,i,o,a,s,c,l,u,d,p,m,h,f,_,g,b,y,v,x="";const N=e.length;for(r=0;r<N;r++)if(d=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(v=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==v||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))x+=v||"";else switch(d.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(d.tokens),d.depth,tb(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(l="",c="",o=d.header.length,n=0;n<o;n++)c+=this.renderer.tablecell(this.parseInline(d.header[n].tokens),{header:!0,align:d.align[n]});for(l+=this.renderer.tablerow(c),u="",o=d.rows.length,n=0;n<o;n++){for(s=d.rows[n],c="",a=s.length,i=0;i<a;i++)c+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:d.align[i]});u+=this.renderer.tablerow(c)}x+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(d.tokens),x+=this.renderer.blockquote(u);continue;case"list":for(p=d.ordered,m=d.start,h=d.loose,o=d.items.length,u="",n=0;n<o;n++)_=d.items[n],g=_.checked,b=_.task,f="",_.task&&(y=this.renderer.checkbox(g),h?_.tokens.length>0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=y+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=y+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(_.tokens,h),u+=this.renderer.listitem(f,b,g);x+=this.renderer.list(u,p,m);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;r+1<N&&"text"===e[r+1].type;)d=e[++r],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);x+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return x}parseInline(e,t){t=t||this.renderer;let r,n,i,o="";const a=e.length;for(r=0;r<a;r++)if(n=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(i=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))o+=i||"";else switch(n.type){case"escape":o+=t.text(n.text);break;case"html":o+=t.html(n.text);break;case"link":o+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":o+=t.image(n.href,n.title,n.text);break;case"strong":o+=t.strong(this.parseInline(n.tokens,t));break;case"em":o+=t.em(this.parseInline(n.tokens,t));break;case"codespan":o+=t.codespan(n.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(n.tokens,t));break;case"text":o+=t.text(n.text);break;default:{const e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}};const nb=Jg,ib=rb,ob=Eg,ab=Zg,sb=Gg,cb=Kg,{merge:lb,checkSanitizeDeprecation:ub,escape:db}=wg,{getDefaults:pb,changeDefaults:mb,defaults:hb}=ig.exports;function fb(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),t=lb({},fb.defaults,t||{}),ub(t),r){const i=t.highlight;let o;try{o=nb.lex(e,t)}catch(n){return r(n)}const a=function(e){let a;if(!e)try{t.walkTokens&&fb.walkTokens(o,t.walkTokens),a=ib.parse(o,t)}catch(n){e=n}return t.highlight=i,e?r(e):r(null,a)};if(!i||i.length<3)return a();if(delete t.highlight,!o.length)return a();let s=0;return fb.walkTokens(o,(function(e){"code"===e.type&&(s++,setTimeout((()=>{i(e.text,e.lang,(function(t,r){if(t)return a(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),s--,0===s&&a()}))}),0))})),void(0===s&&a())}try{const r=nb.lex(e,t);return t.walkTokens&&fb.walkTokens(r,t.walkTokens),ib.parse(r,t)}catch(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+db(n.message+"",!0)+"</pre>";throw n}}fb.options=fb.setOptions=function(e){return lb(fb.defaults,e),mb(fb.defaults),fb},fb.getDefaults=pb,fb.defaults=hb,fb.use=function(...e){const t=lb({},...e),r=fb.defaults.extensions||{renderers:{},childTokens:{}};let n;e.forEach((e=>{if(e.extensions&&(n=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=r.renderers?r.renderers[e.name]:null;r.renderers[e.name]=t?function(...r){let n=e.renderer.apply(this,r);return!1===n&&(n=t.apply(this,r)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");r[e.level]?r[e.level].unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}e.childTokens&&(r.childTokens[e.name]=e.childTokens)}))),e.renderer){const r=fb.defaults.renderer||new ab;for(const t in e.renderer){const n=r[t];r[t]=(...i)=>{let o=e.renderer[t].apply(r,i);return!1===o&&(o=n.apply(r,i)),o}}t.renderer=r}if(e.tokenizer){const r=fb.defaults.tokenizer||new ob;for(const t in e.tokenizer){const n=r[t];r[t]=(...i)=>{let o=e.tokenizer[t].apply(r,i);return!1===o&&(o=n.apply(r,i)),o}}t.tokenizer=r}if(e.walkTokens){const r=fb.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),r&&r.call(this,t)}}n&&(t.extensions=r),fb.setOptions(t)}))},fb.walkTokens=function(e,t){for(const r of e)switch(t.call(fb,r),r.type){case"table":for(const e of r.header)fb.walkTokens(e.tokens,t);for(const e of r.rows)for(const r of e)fb.walkTokens(r.tokens,t);break;case"list":fb.walkTokens(r.items,t);break;default:fb.defaults.extensions&&fb.defaults.extensions.childTokens&&fb.defaults.extensions.childTokens[r.type]?fb.defaults.extensions.childTokens[r.type].forEach((function(e){fb.walkTokens(r[e],t)})):r.tokens&&fb.walkTokens(r.tokens,t)}},fb.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=lb({},fb.defaults,t||{}),ub(t);try{const r=nb.lexInline(e,t);return t.walkTokens&&fb.walkTokens(r,t.walkTokens),ib.parseInline(r,t)}catch(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+db(r.message+"",!0)+"</pre>";throw r}},fb.Parser=ib,fb.parser=ib.parse,fb.Renderer=ab,fb.TextRenderer=sb,fb.Lexer=nb,fb.lexer=nb.lex,fb.Tokenizer=ob,fb.Slugger=cb,fb.parse=fb;const _b=fb,gb=Jg,bb=rb,yb=Eg,vb=Zg,xb=Gg,Nb=Kg;ng.exports=_b,ng.exports.parse=_b,ng.exports.Parser=bb,ng.exports.parser=bb.parse,ng.exports.Renderer=vb,ng.exports.TextRenderer=xb,ng.exports.Lexer=gb,ng.exports.lexer=gb.lex,ng.exports.Tokenizer=yb,ng.exports.Slugger=Nb;var wb=ng.exports;export{ke as A,rg as B,we as C,wb as D,mi as E,se as F,Xi as G,Ui as H,Pi as J,Wi as L,U as N,Hi as O,fi as R,Ei as T,v as a,Me as b,ee as c,Ws as d,Bl as e,Od as f,Q as g,mo as h,ho as i,ma as j,go as k,ve as l,_o as m,vo as n,ki as o,Yi as p,N as q,No as r,Ne as s,dh as t,T_ as u,L_ as v,xo as w,Oe as x,xe as y,ce as z};
//# sourceMappingURL=vendor.1d52f60f.js.map