Files
misode.github.io/assets/vendor.9404c8c7.js
2022-02-14 02:57:20 +00:00

39 lines
827 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,i=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,r,i)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,s=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&a(e,r,t[r]);if(i)for(var r of i(t))o.call(t,r)&&a(e,r,t[r]);return e},c=(e,i)=>t(e,r(i)),l=e=>"symbol"==typeof e?e:e+"";const d={};var u,p,m,_,h,f={},g=[],b=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function y(e,t){for(var r in t)e[r]=t[r];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function N(e,t,r){var i,n,o,a=arguments,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?n=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,i,n,null)}function x(e,t,r,i,n){var o={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==n?++u.__v:n};return null!=u.vnode&&u.vnode(o),o}function k(e){return e.children}function w(e,t){this.props=e,this.context=t}function O(e,t){if(null==t)return e.__?O(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?O(e):null}function S(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 S(e)}}function A(e){(!e.__d&&(e.__d=!0)&&p.push(e)&&!D.__r++||_!==u.debounceRendering)&&((_=u.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,i,n,o,a;e.__d&&(o=(n=(t=e).__v).__e,(a=t.__P)&&(r=[],(i=y({},n)).__v=n.__v+1,P(a,n,i,t.__n,void 0!==a.ownerSVGElement,null!=n.__h?[o]:null,r,null==o?O(n):o,n.__h),I(r,n),n.__e!=o&&S(n)))}))}function C(e,t,r,i,n,o,a,s,c,l){var d,u,p,m,_,h,b,y=i&&i.__k||g,v=y.length;for(r.__k=[],d=0;d<t.length;d++)if(null!=(m=r.__k[d]=null==(m=t[d])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?x(null,m,null,null,m):Array.isArray(m)?x(k,{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[d])||p&&m.key==p.key&&m.type===p.type)y[d]=void 0;else for(u=0;u<v;u++){if((p=y[u])&&m.key==p.key&&m.type===p.type){y[u]=void 0;break}p=null}P(e,m,p=p||f,n,o,a,s,c,l),_=m.__e,(u=m.ref)&&p.ref!=u&&(b||(b=[]),p.ref&&b.push(p.ref,null,m),b.push(u,m.__c||_,m)),null!=_?(null==h&&(h=_),"function"==typeof m.type&&null!=m.__k&&m.__k===p.__k?m.__d=c=E(m,c,e):c=j(e,m,p,y,_,c),l||"option"!==r.type?"function"==typeof r.type&&(r.__d=c):e.value=""):c&&p.__e==c&&c.parentNode!=e&&(c=O(p))}for(r.__e=h,d=v;d--;)null!=y[d]&&("function"==typeof r.type&&null!=y[d].__e&&y[d].__e==r.__d&&(r.__d=O(i,d+1)),z(y[d],y[d]));if(b)for(d=0;d<b.length;d++)R(b[d],b[++d],b[++d])}function E(e,t,r){var i,n;for(i=0;i<e.__k.length;i++)(n=e.__k[i])&&(n.__=e,t="function"==typeof n.type?E(n,t,r):j(r,n,n,e.__k,n.__e,t));return t}function F(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){F(e,t)})):t.push(e)),t}function j(e,t,r,i,n,o){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==r||n!=o||null==n.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(n),a=null;else{for(s=o,c=0;(s=s.nextSibling)&&c<i.length;c+=2)if(s==n)break e;e.insertBefore(n,o),a=o}return void 0!==a?a:n.nextSibling}function B(e,t,r){"-"===t[0]?e.setProperty(t,r):e[t]=null==r?"":"number"!=typeof r||b.test(t)?r:r+"px"}function M(e,t,r,i,n){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||B(e.style,t,"");if(r)for(t in r)i&&r[t]===i[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?i||e.addEventListener(t,o?L:T,o):e.removeEventListener(t,o?L:T,o);else if("dangerouslySetInnerHTML"!==t){if(n)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 T(e){this.l[e.type+!1](u.event?u.event(e):e)}function L(e){this.l[e.type+!0](u.event?u.event(e):e)}function P(e,t,r,i,n,o,a,s,c){var l,d,p,m,_,h,b,N,x,O,S,A=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=u.__b)&&l(t);try{e:if("function"==typeof A){if(N=t.props,x=(l=A.contextType)&&i[l.__c],O=l?x?x.props.value:l.__:i,r.__c?b=(d=t.__c=r.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(N,O):(t.__c=d=new w(N,O),d.constructor=A,d.render=U),x&&x.sub(d),d.props=N,d.state||(d.state={}),d.context=O,d.__n=i,p=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=y({},d.__s)),y(d.__s,A.getDerivedStateFromProps(N,d.__s))),m=d.props,_=d.state,p)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&N!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(N,O),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(N,d.__s,O)||t.__v===r.__v){d.props=N,d.state=d.__s,t.__v!==r.__v&&(d.__d=!1),d.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(N,d.__s,O),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,_,h)}))}d.context=O,d.props=N,d.state=d.__s,(l=u.__r)&&l(t),d.__d=!1,d.__v=t,d.__P=e,l=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=y(y({},i),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(m,_)),S=null!=l&&l.type===k&&null==l.key?l.props.children:l,C(e,Array.isArray(S)?S:[S],t,r,i,n,o,a,s,c),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),b&&(d.__E=d.__=null),d.__e=!1}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,i,n,o,a,s){var c,l,d,u,p=r.props,m=t.props,_=t.type,h=0;if("svg"===_&&(n=!0),null!=o)for(;h<o.length;h++)if((c=o[h])&&(c===e||(_?c.localName==_:3==c.nodeType))){e=c,o[h]=null;break}if(null==e){if(null===_)return document.createTextNode(m);e=n?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,m.is&&m),o=null,s=!1}if(null===_)p===m||s&&e.data===m||(e.data=m);else{if(o=o&&g.slice.call(e.childNodes),l=(p=r.props||f).dangerouslySetInnerHTML,d=m.dangerouslySetInnerHTML,!s){if(null!=o)for(p={},u=0;u<e.attributes.length;u++)p[e.attributes[u].name]=e.attributes[u].value;(d||l)&&(d&&(l&&d.__html==l.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,r,i,n){var o;for(o in r)"children"===o||"key"===o||o in t||M(e,o,null,r[o],i);for(o in t)n&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===t[o]||M(e,o,t[o],r[o],i)}(e,m,p,n,s),d)t.__k=[];else if(h=t.props.children,C(e,Array.isArray(h)?h:[h],t,r,i,n&&"foreignObject"!==_,o,a,e.firstChild,s),null!=o)for(h=o.length;h--;)null!=o[h]&&v(o[h]);s||("value"in m&&void 0!==(h=m.value)&&(h!==e.value||"progress"===_&&!h)&&M(e,"value",h,p.value,!1),"checked"in m&&void 0!==(h=m.checked)&&h!==e.checked&&M(e,"checked",h,p.checked,!1))}return e}(r.__e,t,r,i,n,o,a,c);(l=u.diffed)&&l(t)}catch(D){t.__v=null,(c||null!=o)&&(t.__e=s,t.__h=!!c,o[o.indexOf(s)]=null),u.__e(D,t,r)}}function I(e,t){u.__c&&u.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){u.__e(r,t.__v)}}))}function R(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(i){u.__e(i,r)}}function z(e,t,r){var i,n,o;if(u.unmount&&u.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||R(i,null,t)),r||"function"==typeof e.type||(r=null!=(n=e.__e)),e.__e=e.__d=void 0,null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){u.__e(a,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&z(i[o],t,r);null!=n&&v(n)}function U(e,t,r){return this.constructor(e,r)}function $(e,t,r){var i,n,o;u.__&&u.__(e,t),n=(i="function"==typeof r)?null:r&&r.__k||t.__k,o=[],P(t,e=(!i&&r||t).__k=N(k,null,[e]),n||f,f,void 0!==t.ownerSVGElement,!i&&r?[r]:n?null:t.firstChild?g.slice.call(t.childNodes):null,o,!i&&r?r:n?n.__e:t.firstChild,i),I(o,e)}function q(e,t){var r={__c:t="__cC"+h++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i;return this.getChildContext||(r=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(A)},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}u={__e:function(e,t){for(var r,i,n;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),n=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e),n=r.__d),n)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=y({},this.state),"function"==typeof e&&(e=e(y({},r),this.props)),e&&y(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),A(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},w.prototype.render=k,p=[],m="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,h=0;var X={};function J(e,t){for(var r in t)e[r]=t[r];return e}function H(e,t,r){var i,n=/(?:\?([^#]*))?(#.*)?$/,o=e.match(n),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=Z(e.replace(n,"")),t=Z(t||"");for(var d=Math.max(e.length,t.length),u=0;u<d;u++)if(t[u]&&":"===t[u].charAt(0)){var p=t[u].replace(/(^:|[+*?]+$)/g,""),m=(t[u].match(/[+*?]+$/)||X)[0]||"",_=~m.indexOf("+"),h=~m.indexOf("*"),f=e[u]||"";if(!f&&!h&&(m.indexOf("?")<0||_)){i=!1;break}if(a[p]=decodeURIComponent(f),_||h){a[p]=e.slice(u).map(decodeURIComponent).join("/");break}}else if(t[u]!==e[u]){i=!1;break}return(!0===r.default||!1!==i)&&a}function G(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function W(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,Z(t).map(Y).join(""));var t}(e),e.props}function Z(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function Y(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}var K=null,V=[],Q=[],ee={};function te(){var e;return""+((e=K&&K.location?K.location:K&&K.getCurrentLocation?K.getCurrentLocation():"undefined"!=typeof location?location:ee).pathname||"")+(e.search||"")}function re(e,t){return void 0===t&&(t=!1),"string"!=typeof e&&e.url&&(t=e.replace,e=e.url),function(e){for(var t=V.length;t--;)if(V[t].canRoute(e))return!0;return!1}(e)&&function(e,t){void 0===t&&(t="push"),K&&K[t]?K[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}(e,t?"replace":"push"),ie(e)}function ie(e){for(var t=!1,r=0;r<V.length;r++)!0===V[r].routeTo(e)&&(t=!0);for(var i=Q.length;i--;)Q[i](e);return t}function ne(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 re(t)}}function oe(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button))return ne(e.currentTarget||e.target||this),ae(e)}function ae(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault()),!1}function se(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(ne(t))return ae(e)}}while(t=t.parentNode)}}var ce=!1;var le=function(e){function t(t){e.call(this,t),t.history&&(K=t.history),this.state={url:t.url||te()},ce||("function"==typeof addEventListener&&(K||addEventListener("popstate",(function(){ie(te())})),addEventListener("click",se)),ce=!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=F(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(){V.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;K&&(this.unlisten=K.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),V.splice(V.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(W).sort(G).map((function(e){var i=H(t,e.props.path,e.props);if(i){if(!1!==r){var n={url:t,matches:i};return J(n,i),delete n.ref,delete n.key,function(e,t,r){var i,n,o,a=arguments,s=y({},e.props);for(o in t)"key"==o?i=t[o]:"ref"==o?n=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,i||e.key,n||e.ref,null)}(e,n)}return e}})).filter(Boolean)},t.prototype.render=function(e,t){var r=e.children,i=e.onChange,n=t.url,o=this.getMatchingChildren(F(r),n,!0),a=o[0]||null,s=this.previousUrl;return n!==s&&(this.previousUrl=n,"function"==typeof i&&i({router:this,url:n,previous:s,active:o,current:a})),a},t}(w),de=function(e){return N("a",J({onClick:oe},e))};le.subscribers=Q,le.getCurrentUrl=te,le.route=re,le.Router=le,le.Route=function(e){return N(e.component,e)},le.Link=de,le.exec=H;var ue,pe,me,_e=0,he=[],fe=u.__b,ge=u.__r,be=u.diffed,ye=u.__c,ve=u.unmount;function Ne(e,t){u.__h&&u.__h(pe,e,_e||t),_e=0;var r=pe.__H||(pe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function xe(e){return _e=1,function(e,t,r){var i=Ne(ue++,2);return i.t=e,i.__c||(i.__=[r?r(t):Me(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=pe),i.__}(Me,e)}function ke(e,t){var r=Ne(ue++,3);!u.__s&&Be(r.__H,t)&&(r.__=e,r.__H=t,pe.__H.__h.push(r))}function we(e){return _e=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var r=Ne(ue++,7);return Be(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Se(e,t){return _e=8,Oe((function(){return e}),t)}function Ae(e){var t=pe.context[e.__c],r=Ne(ue++,9);return r.__c=e,t?(null==r.__&&(r.__=!0,t.sub(pe)),t.props.value):e.__}function De(e){var t=Ne(ue++,10),r=xe();return t.__=e,pe.componentDidCatch||(pe.componentDidCatch=function(e){t.__&&t.__(e),r[1](e)}),[r[0],function(){r[1](void 0)}]}function Ce(){he.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Fe),e.__H.__h.forEach(je),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}})),he=[]}u.__b=function(e){pe=null,fe&&fe(e)},u.__r=function(e){ge&&ge(e),ue=0;var t=(pe=e.__c).__H;t&&(t.__h.forEach(Fe),t.__h.forEach(je),t.__h=[])},u.diffed=function(e){be&&be(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==he.push(t)&&me===u.requestAnimationFrame||((me=u.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(i),Ee&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(r,100);Ee&&(t=requestAnimationFrame(r))})(Ce)),pe=void 0},u.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Fe),e.__h=e.__h.filter((function(e){return!e.__||je(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],u.__e(r,e.__v)}})),ye&&ye(e,t)},u.unmount=function(e){ve&&ve(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Fe)}catch(r){u.__e(r,t.__v)}};var Ee="function"==typeof requestAnimationFrame;function Fe(e){var t=pe;"function"==typeof e.__c&&e.__c(),pe=t}function je(e){var t=pe;e.__c=e.__(),pe=t}function Be(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function Me(e,t){return"function"==typeof t?t(e):t}var Te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Le={},Pe={},Ie={};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.ModelPath=Ie.Path=Ie.relativePath=void 0,Ie.relativePath=function(e,t){return t.reduce(((e,t)=>"pop"===t?e.pop():e.push(t.push)),e)};class Re{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 Re(this.modelArr.slice(e,t),this.contextArr)}shift(){return new Re(this.modelArr.slice(1),this.contextArr)}pop(){return new Re(this.modelArr.slice(0,-1),this.contextArr)}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new Re([...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 Re([...this.modelArr],[...this.contextArr,t])}copy(){return new Re([...this.modelArr],[...this.contextArr])}getArray(){return this.modelArr}withModel(e){return new ze(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)}}Ie.Path=Re;class ze extends Re{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 ze(this.model,super.slice(e,t))}shift(){return new ze(this.model,super.shift())}pop(){return new ze(this.model,super.pop())}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new ze(this.model,super.modelPush(e))}contextPush(e){return new ze(this.model,super.contextPush(e))}copy(){return new ze(this.model,super.copy())}}Ie.ModelPath=ze;var Ue={};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.Errors=void 0;class $e{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}}Ue.Errors=$e;var qe={};function Xe(e){return e.replace(/(\\|")/g,"\\$1")}Object.defineProperty(qe,"__esModule",{value:!0}),qe.hexId=qe.quoteString=qe.escapeString=void 0,qe.escapeString=Xe,qe.quoteString=function(e){return`"${Xe(e)}"`};const Je=e=>("0"+e.toString(16)).substr(-2);qe.hexId=function(e=12){var t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,Je).join("")},Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.DataModel=void 0;const He=Ie,Ge=Ue,We=qe;class Ze{constructor(e,t){var r,i,n,o;this.historyMax=null!==(r=null==t?void 0:t.historyMax)&&void 0!==r?r:50,this.verbose=null!==(i=null==t?void 0:t.verbose)&&void 0!==i&&i,this.wrapLists=null!==(n=null==t?void 0:t.wrapLists)&&void 0!==n&&n,this.schema=e;const a=null!==(o=null==t?void 0:t.initialData)&&void 0!==o?o:e.default();this.data=this.wrapLists?Ze.wrapLists(a):a,this.listeners=[],this.errors=new Ge.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 i=this.data;e.pop().forEach((e=>{void 0!==i[e]&&"string"!=typeof i[e]&&"number"!=typeof i[e]||(this.wrapLists&&"number"==typeof e?i[e]={node:{},id:We.hexId()}:i[e]={}),i=this.wrapLists&&"number"==typeof e?i[e].node:i[e]})),null!==i&&(void 0===t||"number"==typeof t&&isNaN(t)?"number"==typeof e.last()?i.splice(e.last(),1):delete i[e.last()]:this.wrapLists&&"number"==typeof e.last()?i[e.last()]={node:t,id:We.hexId()}:i[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 He.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 i=new Ge.Errors;i.add(e,t,r),this.listeners.forEach((e=>{e.errors&&e.errors(i)}))}static wrapLists(e){if(Array.isArray(e)){const t=e.map((e=>({node:this.wrapLists(e),id:We.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}}Pe.DataModel=Ze;var Ye,Ke={};Ye=Ke,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.Keep=Ye.Opt=Ye.Has=Ye.Mod=Ye.Base=void 0,Ye.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:()=>[]},Ye.Mod=(e,t)=>s(s({},e),"function"==typeof t?t(e):t),Ye.Has=(e,t)=>Ye.Mod(t,{enabled:t=>void 0!==t.push(e).get()}),Ye.Opt=function(e){return c(s({},e),{optional:()=>!0})},Ye.Keep=function(e){return c(s({},e),{keep:()=>!0})};var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.BooleanNode=void 0;const Qe=Pe,et=Ke;Ve.BooleanNode=()=>c(s({},et.Base),{type:()=>"boolean",default:()=>!1,suggest:()=>["false","true"],validate(e,t,r,i){return i.loose&&"boolean"!=typeof t&&(t=i.wrapLists?Qe.DataModel.wrapLists(this.default()):this.default()),"boolean"==typeof t&&void 0!==t||r.add(e,"error.expected_boolean"),t},hook(e,t,...r){var i;return(null!==(i=e.boolean)&&void 0!==i?i:e.base).call(e,{node:this},t,...r)}});var tt={},rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.ListNode=void 0;const it=Pe,nt=Ke;rt.ListNode=(e,t)=>{var r,i;const n=null!==(r=null==t?void 0:t.minLength)&&void 0!==r?r:0,o=null!==(i=null==t?void 0:t.maxLength)&&void 0!==i?i:1/0,a=(null==t?void 0:t.minLength)&&(null==t?void 0:t.maxLength);return c(s({},nt.Base),{type:()=>"list",default:()=>(null==t?void 0:t.minLength)?[...Array(n)].map((t=>e.default())):[],navigate(t,r){const i=r+1;return t.getArray().length<=i?this:e.navigate(t,i)},pathPush:(e,t)=>e.push(parseInt(t.toString())).contextPush("entry"),validate(t,r,i,s){if(s.loose&&!Array.isArray(r)&&(r=s.wrapLists?it.DataModel.wrapLists(this.default()):this.default()),!Array.isArray(r))return i.add(t,"error.expected_list"),r;a&&(r.length<n||r.length>o)?n===o?i.add(t,"error.invalid_list_range.exact",r.length,n):i.add(t,"error.invalid_list_range.between",r.length,n,o):r.length<n?i.add(t,"error.invalid_list_range.smaller",r.length,n):r.length>o&&i.add(t,"error.invalid_list_range.larger",r.length,o);const c=r.map(((r,n)=>{const o=e.validate(t.push(n),s.wrapLists?r.node:r,i,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,i,...n){var o;return(null!==(o=r.list)&&void 0!==o?o:r.base).call(r,{node:this,children:e,config:null!=t?t:{}},i,...n)}})};var ot={};Object.defineProperty(ot,"__esModule",{value:!0}),ot.SwitchNode=void 0;const at=Ke;ot.SwitchNode=e=>c(s({},at.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 i=t+1;return null===(r=this.activeCase(e.slice(0,i)))||void 0===r?void 0:r.node.navigate(e,t)},pathPush(e,t){var r,i;return null!==(i=null===(r=this.activeCase(e))||void 0===r?void 0:r.node.pathPush(e,t))&&void 0!==i?i:e},suggest(t,r){var i,n;return null!==(n=null===(i=this.activeCase(t))||void 0===i?void 0:i.node.suggest(t,r))&&void 0!==n?n:e.filter((e=>e.match(t))).map((e=>e.node.suggest(t,r))).reduce(((e,t)=>e.concat(t)))},validate(e,t,r,i){let n=this.activeCase(e);return void 0===n?t:n.node.validate(e,t,r,i)},validationOption(e){var t;return null===(t=this.activeCase(e))||void 0===t?void 0:t.node.validationOption(e)},activeCase(t,r){const i=(e,t)=>{var r,i;return(null!==(r=t.priority)&&void 0!==r?r:0)-(null!==(i=e.priority)&&void 0!==i?i:0)},n=e.filter((e=>e.match(t))).sort(i);return r&&0===n.length?e.sort(i)[0]:n.length>0?n[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=rt,r=ot;e.ChoiceNode=(e,t)=>{const i=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({},i),{validate(e,t,r,n){let o=i.activeCase(e,!0);return o.node.optional()?t:o.node.validate(e,t,r,n)},hook(r,n,...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:i},n,...o)}})};const i=r=>(i,n)=>e.ChoiceNode([{type:r,node:i,change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:i.default()}},{type:"list",node:t.ListNode(i),change:e=>e?[e]:[]}],n);e.ObjectOrList=i("object"),e.StringOrList=i("string"),e.ObjectOrPreset=(t,r,i)=>e.ChoiceNode([{type:"string",priority:1,node:t,change:e=>Object.keys(i)[0]},{type:"object",node:r,change:e=>{var t;return null!==(t=i[e])&&void 0!==t?t:i[Object.keys(i)[0]]}}])}(tt);var st={};Object.defineProperty(st,"__esModule",{value:!0}),st.MapNode=void 0;const ct=Ke,lt=Pe;st.MapNode=(e,t,r)=>c(s({},ct.Base),{type:()=>"map",default:()=>({}),navigate(e,r){const i=r+1;return e.getArray().length<=i?this:t.navigate(e,i)},pathPush:(e,t)=>e.modelPush(t),suggest:t=>e.suggest(t,""),validate(r,i,n,o){if(o.loose&&"object"!=typeof i&&(i=o.wrapLists?lt.DataModel.wrapLists(this.default()):this.default()),null===i||"object"!=typeof i)return n.add(r,"error.expected_object"),i;const a={};Object.keys(i).forEach((s=>{e.validate(r,s,n,o),a[s]=t.validate(r.push(s),i[s],n,o)}));for(const e of Object.getOwnPropertySymbols(i))a[e]=i[e];return a},validationOption(t){var i;return null!==(i=null==r?void 0:r.validation)&&void 0!==i?i:e.validationOption(t.push(""))},hook(i,n,...o){var a;return(null!==(a=i.map)&&void 0!==a?a:i.base).call(i,{node:this,keys:e,children:t,config:null!=r?r:{}},n,...o)}});var dt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberEnum=e.NumberNode=void 0;const t=Le,r=Pe,i=Ke;e.NumberNode=e=>{var t,n,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!==(n=null==e?void 0:e.min)&&void 0!==n?n:-1/0,d=(null==e?void 0:e.color)?16777215:null!==(o=null==e?void 0:e.max)&&void 0!==o?o:1/0,u=void 0!==(null==e?void 0:e.min)&&void 0!==(null==e?void 0:e.max);return c(s({},i.Base),{type:()=>"number",default:()=>l>0?l:0,validate(e,t,i,n){return n.loose&&"number"!=typeof t&&(t=n.wrapLists?r.DataModel.wrapLists(this.default()):this.default()),"number"!=typeof t?i.add(e,"error.expected_number"):a&&!Number.isInteger(t)?i.add(e,"error.expected_integer"):u&&(t<l||t>d)?i.add(e,"error.invalid_number_range.between",t,l,d):t<l?i.add(e,"error.invalid_number_range.smaller",t,l):t>d&&i.add(e,"error.invalid_number_range.larger",t,d),t},hook(t,r,...i){var n;return(null!==(n=t.number)&&void 0!==n?n:t.base).call(t,{node:this,integer:a,min:l,max:d,between:u,config:null!=e?e:{}},r,...i)}})},e.NumberEnum=({integer:r,values:i})=>t.Mod(e.NumberNode({integer:r}),(e=>({validate:(t,r,n,o)=>(r=e.validate(t,r,n,o),i.includes(r)||n.add(t,"error.invalid_number_enum",i.join(", ")),r)})))}(dt);var ut={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=e.Case=e.Switch=void 0;const t=Ke,r=Ie,a=Ue,d=qe,u=Pe;e.Switch=Symbol("switch"),e.Case=Symbol("case"),e.ObjectNode=(p,m)=>{var _,h;const f=p,{[_=e.Switch]:g,[h=e.Case]:b}=f,y=((e,t)=>{var r={};for(var a in e)n.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&i)for(var a of i(e))t.indexOf(a)<0&&o.call(e,a)&&(r[a]=e[a]);return r})(f,[l(_),l(h)]),v=e=>{if(void 0===g)return y;const t=r.relativePath(e,g).get(),i=b[t];return s(s({},y),i)},N=(e,t)=>{var i;const n=g?r.relativePath(e,g).get():void 0,o=g&&null!==(i=b[n])&&void 0!==i?i:{},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)&&n&&a.includes(t)?s.contextPush(n):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,i=e.getArray();if(i.length<=r)return this;const n=v(e.slice(0,r))[i[r]];return null==n?void 0:n.navigate(e,r)},pathPush:(e,t)=>N(e,t.toString()),suggest(e,t){const r=v(e),i=Object.keys("object"==typeof t?t:{});return Object.keys(r).filter((t=>r[t].enabled(e))).filter((e=>!i.includes(e))).map(d.quoteString)},validate(e,t,i,n){if(n.loose&&"object"!=typeof t&&(t=n.wrapLists?u.DataModel.wrapLists(this.default()):this.default()),"object"!=typeof t||null===t)return i.add(e,"error.expected_object"),t;let o=y;if(g){const i=r.relativePath(e,g);let c=i.get();if(e.equals(i.pop())){const r=i.last();c=y[r].validate(e.push(r),t[r],new a.Errors,n)}o=s(s({},o),b[c])}const c=Object.keys(o),l=c.filter((e=>!o[e].optional())),d=new Set([...l,...Object.keys(t)]),p={};d.forEach((r=>{if(c.includes(r)){if(!o[r].enabled(e))return;const a=o[r].validate(e.push(r),t[r],i,n);!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 i;return(null!==(i=e.object)&&void 0!==i?i:e.base).call(e,{node:this,fields:y,config:null!=m?m:{},filter:g,cases:b,getActiveFields:v,getChildModelPath:N},t,...r)}})}}(ut);var pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.Reference=void 0,pt.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,i)=>e.get(t).transform(r,i),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,i){return e.get(t).navigate.bind(this)(r,i)},pathPush(r,i){return e.get(t).pathPush.bind(this)(r,i)},suggest(r,i){return e.get(t).suggest.bind(this)(r,i)},validate(r,i,n,o){return e.get(t).validate.bind(this)(r,i,n,o)},validationOption(r){return e.get(t).validationOption.bind(this)(r)},hook(r,i,...n){return e.get(t).hook.bind(this)(r,i,...n)},activeCase(r,i){return e.get(t).activeCase.bind(this)(r,i)},canUpdate(r,i){return e.get(t).canUpdate.bind(this)(r,i)},update(r,i){return e.get(t).update.bind(this)(r,i)}});var mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.StringNode=void 0;const _t=Ke,ht=qe,ft=Pe,gt=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.enum)},bt=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.validator)};mt.StringNode=(e,t)=>{const r=()=>{var r,i,n,o;if(gt(t))return"string"==typeof t.enum?null!==(r=null==e?void 0:e.get(t.enum))&&void 0!==r?r:[]:t.enum;if("resource"===(null==t?void 0:t.validator)){if("string"==typeof t.params.pool){if(t.params.requireTag)return null!==(i=null==e?void 0:e.get(`tag/${t.params.pool}`).map((e=>`#${e}`)))&&void 0!==i?i:[];const r=t.params.pool.replace(/^\$/,"");return[...t.params.allowTag&&null!==(n=null==e?void 0:e.get(`tag/${r}`).map((e=>`#${e}`)))&&void 0!==n?n:[],...null!==(o=null==e?void 0:e.get(r))&&void 0!==o?o:[]]}return t.params.pool}return[]};return c(s({},_t.Base),{type:()=>"string",default:()=>"",validate(e,i,n,o){if(o.loose&&"string"!=typeof i&&(i=(o.wrapLists?ft.DataModel.wrapLists(this.default()):this.default())||void 0),"string"!=typeof i)return n.add(e,"error.expected_string"),i;if(bt(t)){if("resource"===t.validator&&i.length>0&&!i.includes(":")&&(i=i.startsWith("#")?"#minecraft:"+i.slice(1):"minecraft:"+i),"resource"===t.validator&&"string"==typeof i){let r=i;if(i.startsWith("#")){if("string"==typeof t.params.pool&&t.params.pool.startsWith("$tag/"))return n.add(e,"error.disallowed_tag_prefix"),i;if(!t.params.allowTag&&!t.params.requireTag)return n.add(e,"error.disallowed_tag"),i;r=r.slice(1)}else if(t.params.requireTag)return n.add(e,"error.expected_tag"),i;if(!r.match(/^(?:[_\-a-z0-9.]*:)?[_\-a-z0-9/.]*$/g))return n.add(e,"error.invalid_resource_location"),i}if("resource"===t.validator&&("string"==typeof t.params.pool&&t.params.pool.startsWith("$")||(t.params.allowTag||t.params.requireTag)&&i.startsWith("#")||t.params.isDefinition||t.params.allowUnknown))return i}if(gt(t)&&t.additional)return i;const a=r();return a.length>0&&!a.includes(i)&&n.add(e,"error.invalid_enum_option",i),i},suggest:()=>r().map(ht.quoteString),validationOption:()=>bt(t)?t:void 0,hook(e,i,...n){var o;return(null!==(o=e.string)&&void 0!==o?o:e.base).call(e,{node:this,getValues:r,config:t},i,...n)}})};var yt={};Object.defineProperty(yt,"__esModule",{value:!0});var vt={};Object.defineProperty(vt,"__esModule",{value:!0}),vt.CollectionRegistry=vt.SchemaRegistry=void 0;vt.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}};vt.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 Nt={};Object.defineProperty(Nt,"__esModule",{value:!0}),function(e){var t=Te&&Te.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),r=Te&&Te.__exportStar||function(e,r){for(var i in e)"default"===i||r.hasOwnProperty(i)||t(r,e,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(Pe,e),r(Ie,e),r(Ue,e),r(Ke,e),r(Ve,e),r(tt,e),r(rt,e),r(st,e),r(dt,e),r(ut,e),r(pt,e),r(mt,e),r(ot,e),r(yt,e),r(vt,e),r(Nt,e)}(Le);var xt=function(e){return(e=e||{}).circles?function(e){var t=[],r=[];return e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return i(n,e);if(n instanceof Map)return new Map(i(Array.from(n),e));if(n instanceof Set)return new Set(i(Array.from(n),e));var o={};for(var a in t.push(n),r.push(o),n){var s=n[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(i(Array.from(s),e));else if(s instanceof Set)o[a]=new Set(i(Array.from(s),e));else if(ArrayBuffer.isView(s))o[a]=kt(s);else{var c=t.indexOf(s);o[a]=-1!==c?r[c]:e(s)}}return t.pop(),r.pop(),o}:function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return i(n,e);if(n instanceof Map)return new Map(i(Array.from(n),e));if(n instanceof Set)return new Set(i(Array.from(n),e));var o={};for(var a in t.push(n),r.push(o),n)if(!1!==Object.hasOwnProperty.call(n,a)){var s=n[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(i(Array.from(s),e));else if(s instanceof Set)o[a]=new Set(i(Array.from(s),e));else if(ArrayBuffer.isView(s))o[a]=kt(s);else{var c=t.indexOf(s);o[a]=-1!==c?r[c]:e(s)}}return t.pop(),r.pop(),o};function i(e,i){for(var n=Object.keys(e),o=new Array(n.length),a=0;a<n.length;a++){var s=n[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]=kt(c);else{var l=t.indexOf(c);o[s]=-1!==l?r[l]:i(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 i={};for(var n in r){var o=r[n];"object"!=typeof o||null===o?i[n]=o:o instanceof Date?i[n]=new Date(o):o instanceof Map?i[n]=new Map(t(Array.from(o),e)):o instanceof Set?i[n]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?i[n]=kt(o):i[n]=e(o)}return i}: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 i={};for(var n in r)if(!1!==Object.hasOwnProperty.call(r,n)){var o=r[n];"object"!=typeof o||null===o?i[n]=o:o instanceof Date?i[n]=new Date(o):o instanceof Map?i[n]=new Map(t(Array.from(o),e)):o instanceof Set?i[n]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?i[n]=kt(o):i[n]=e(o)}return i};function t(e,t){for(var r=Object.keys(e),i=new Array(r.length),n=0;n<r.length;n++){var o=r[n],a=e[o];"object"!=typeof a||null===a?i[o]=a:a instanceof Date?i[o]=new Date(a):ArrayBuffer.isView(a)?i[o]=kt(a):i[o]=t(a)}return i}};function kt(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}var wt={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.initCollections=void 0,Ot.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 St={},At={},Dt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.Range=e.ConditionCases=void 0;const t=Le;e.initCommonSchemas=function(r,i){const n=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:n({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(n(),n(),{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:n({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(n(),n()))},{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,i;return void 0===e?0:null!==(i=null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:e.n)&&void 0!==i?i: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:n({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:n({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:o("damage_source_predicate")},"minecraft:entity_properties":{entity:n({enum:"entity_source"}),predicate:o("entity_predicate")},"minecraft:entity_scores":{entity:n({enum:"entity_source"}),scores:t.MapNode(n({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:n({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:n({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())}}}}(Dt);var Ct={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initPredicatesSchemas=e.LocationFields=void 0;const t=Le,r=Dt;e.initPredicatesSchemas=function(i,n){const o=t.Reference.bind(void 0,i),a=t.StringNode.bind(void 0,n),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}]);i.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"})),i.register("enchantment_predicate",t.ObjectNode({enchantment:t.Opt(a({validator:"resource",params:{pool:"enchantment"}})),levels:t.Opt(r.Range())},{context:"enchantment"})),i.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"})),i.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"))},i.register("location_predicate",t.ObjectNode(e.LocationFields,{context:"location"})),i.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"}})}}})),i.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"})),i.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"})),i.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"})),i.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"})),i.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"})),i.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"}))}}(Ct),Object.defineProperty(At,"__esModule",{value:!0}),At.initAdvancementSchemas=void 0;const Et=Le,Ft=Dt,jt=Ct;At.initAdvancementSchemas=function(e,t){const r=Et.Reference.bind(void 0,e),i=Et.StringNode.bind(void 0,t);e.register("advancement",Et.Mod(Et.ObjectNode({display:Et.Opt(Et.Mod(Et.ObjectNode({icon:Et.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:Et.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:Et.Opt(i()),frame:Et.Opt(i({enum:["task","challenge","goal"]})),show_toast:Et.Opt(Et.BooleanNode()),announce_to_chat:Et.Opt(Et.BooleanNode()),hidden:Et.Opt(Et.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:Et.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:Et.MapNode(i(),r("advancement_criteria")),requirements:Et.Opt(Et.ListNode(Et.ListNode(i()))),rewards:Et.Opt(Et.ObjectNode({function:Et.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:Et.Opt(Et.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:Et.Opt(Et.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:Et.Opt(Et.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",Et.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:Et.Opt(Et.ObjectNode({[Et.Switch]:["pop",{push:"trigger"}],[Et.Case]:{"minecraft:bee_nest_destroyed":{block:Et.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:Et.Opt(Et.NumberNode({integer:!0})),item:Et.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:Et.Opt(r("entity_predicate")),partner:Et.Opt(r("entity_predicate")),child:Et.Opt(r("entity_predicate"))},"minecraft:brewed_potion":{potion:Et.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:Et.Opt(i({enum:"dimension"})),to:Et.Opt(i({enum:"dimension"}))},"minecraft:channeled_lightning":{victims:Et.Opt(Et.ListNode(Et.Opt(r("entity_predicate"))))},"minecraft:construct_beacon":{level:Et.Opt(Ft.Range())},"minecraft:consume_item":{item:Et.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:Et.Opt(r("entity_predicate")),zombie:Et.Opt(r("entity_predicate"))},"minecraft:effects_changed":{effects:Et.Opt(Et.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},"minecraft:enter_block":{block:Et.Opt(i({validator:"resource",params:{pool:"block"}})),state:Et.Opt(Et.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:Et.Opt(Ft.Range()),item:Et.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:Et.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:Et.Opt(r("entity_predicate")),killing_blow:Et.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:Et.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:Et.Opt(r("entity_predicate")),item:Et.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":jt.LocationFields,"minecraft:inventory_changed":{slots:Et.Opt(Et.ObjectNode({empty:Et.Opt(Ft.Range()),occupied:Et.Opt(Ft.Range()),full:Et.Opt(Ft.Range())})),items:Et.Opt(Et.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:Et.Opt(Ft.Range()),durability:Et.Opt(Ft.Range()),item:Et.Opt(r("item_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:Et.Opt(Ft.Range()),victims:Et.Opt(Et.ListNode(Et.Opt(r("entity_predicate"))))},"minecraft:levitation":{distance:Et.Opt(Ft.Range()),duration:Et.Opt(Ft.Range())},"minecraft:location":jt.LocationFields,"minecraft:nether_travel":{distance:Et.Opt(Ft.Range()),entered:Et.Opt(r("location_predicate")),exited:Et.Opt(r("location_predicate"))},"minecraft:placed_block":{block:Et.Opt(i({validator:"resource",params:{pool:"block"}})),state:Et.Opt(Et.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:Et.Opt(r("item_predicate")),location:Et.Opt(r("location_predicate"))},"minecraft:player_hurt_entity":{damage:Et.Opt(r("damage_predicate")),entity:Et.Opt(r("entity_predicate"))},"minecraft:player_killed_entity":{entity:Et.Opt(r("entity_predicate")),killing_blow:Et.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:safely_harvest_honey":{block:Et.Opt(Et.ObjectNode({block:Et.Opt(i({validator:"resource",params:{pool:"block"}})),tag:Et.Opt(i({validator:"resource",params:{pool:"$tag/block"}}))})),item:Et.Opt(r("item_predicate"))},"minecraft:slept_in_bed":jt.LocationFields,"minecraft:slide_down_block":{block:Et.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:Et.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:Et.Opt(r("entity_predicate"))},"minecraft:tame_animal":{entity:Et.Opt(r("entity_predicate"))},"minecraft:used_ender_eye":{distance:Et.Opt(Ft.Range())},"minecraft:used_totem":{item:Et.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:Et.Opt(r("entity_predicate")),item:Et.Opt(r("item_predicate"))},"minecraft:voluntary_exile":jt.LocationFields}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Bt={},Mt={};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.initModelSchemas=void 0;const Tt=Le;Mt.initModelSchemas=function(e,t){Tt.Reference.bind(void 0,e);const r=Tt.StringNode.bind(void 0,t),i=(e,t,r)=>Tt.ListNode(Tt.NumberNode({min:t,max:r}),{minLength:e,maxLength:e}),n=Tt.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",Tt.Mod(Tt.ObjectNode({parent:Tt.Opt(r({validator:"resource",params:{pool:"$model"}})),ambientocclusion:Tt.Opt(Tt.BooleanNode()),gui_light:Tt.Opt(r({enum:"gui_light"})),textures:Tt.Opt(Tt.MapNode(r(),n)),elements:Tt.Opt(Tt.ListNode(Tt.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:Tt.Opt(Tt.ObjectNode({origin:i(3),axis:r({enum:"axis"}),angle:Tt.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:Tt.Opt(Tt.BooleanNode())})),shade:Tt.Opt(Tt.BooleanNode()),faces:Tt.MapNode(r({enum:"direction"}),Tt.ObjectNode({texture:n,uv:Tt.Opt(i(4)),cullface:Tt.Opt(r({enum:"direction"})),rotation:Tt.Opt(Tt.NumberNode({integer:!0})),tintindex:Tt.Opt(Tt.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:Tt.Opt(Tt.MapNode(r({enum:"display_position"}),Tt.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:Tt.Opt(Tt.ListNode(Tt.ObjectNode({predicate:Tt.MapNode(r({enum:"item_model_predicates"}),Tt.NumberNode()),model:r({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.initBlockDefinitionSchemas=void 0;const Pt=Le;Lt.initBlockDefinitionSchemas=function(e,t){const r=Pt.Reference.bind(void 0,e),i=Pt.StringNode.bind(void 0,t);e.register("block_definition",Pt.Mod(Pt.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:Pt.ObjectNode({variants:Pt.MapNode(i(),r("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:Pt.ObjectNode({multipart:Pt.ListNode(Pt.ObjectNode({when:Pt.Opt(r("multipart_condition")),apply:r("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const n={model:i({validator:"resource",params:{pool:"$model"}}),x:Pt.Opt(Pt.NumberEnum({integer:!0,values:[0,90,180,270]})),y:Pt.Opt(Pt.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:Pt.Opt(Pt.BooleanNode())};e.register("model_variant",Pt.ChoiceNode([{type:"object",node:Pt.ObjectNode(n),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:Pt.ListNode(Pt.ObjectNode(c(s({},n),{weight:Pt.Opt(Pt.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",Pt.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:Pt.MapNode(i(),i()),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:Pt.ObjectNode({OR:Pt.ListNode(r("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.initAssetsSchemas=void 0;const It=Mt,Rt=Lt;Bt.initAssetsSchemas=function(e,t){Rt.initBlockDefinitionSchemas(e,t),It.initModelSchemas(e,t)};var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.initConditionSchemas=void 0;const Ut=Le,$t=Dt;zt.initConditionSchemas=function(e,t){const r=Ut.Reference.bind(void 0,e),i=Ut.StringNode.bind(void 0,t);e.register("predicate",Ut.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",Ut.Mod(Ut.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[Ut.Switch]:[{push:"condition"}],[Ut.Case]:$t.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var qt={},Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.LootFunctions=Xt.LootConditions=Xt.LootCopySources=Xt.LootEntitySources=Xt.LootTableTypes=void 0,Xt.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]}]]),Xt.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Xt.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Xt.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",[]]]),Xt.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(qt,"__esModule",{value:!0}),qt.initLootTableSchemas=void 0;const Jt=Le,Ht=Xt,Gt=Dt;qt.initLootTableSchemas=function(e,t){const r=Jt.Reference.bind(void 0,e),i=Jt.StringNode.bind(void 0,t),n={conditions:Jt.Opt(Jt.ListNode(r("loot_condition")))},o=s({functions:Jt.Opt(Jt.ListNode(r("loot_function")))},n);function a(e,r,i){const n=[],o=i=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Ht.LootTableTypes){const e=[...a,...s];n.push({match:e=>e.getModel().get(new Jt.Path(["type"]))===t,node:i(o(e))})}return n.push({match:e=>!0,node:i(r)}),Jt.SwitchNode(n)}const l=a(Ht.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),d=a(Ht.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),u=a(Ht.LootEntitySources,"entity_source",(e=>i({enum:e}))),p=a(Ht.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",Jt.Mod(Jt.ObjectNode({type:Jt.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Jt.Opt(Jt.ListNode(Jt.Mod(Jt.ObjectNode(s({rolls:Gt.Range({allowBinomial:!0,integer:!0}),bonus_rolls:Jt.Opt(Gt.Range({integer:!0})),entries:Jt.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Jt.Opt(Jt.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",Jt.Mod(Jt.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Jt.Opt(Jt.Mod(Jt.NumberNode({integer:!0,min:1}),m)),quality:Jt.Opt(Jt.Mod(Jt.NumberNode({integer:!0}),m)),[Jt.Switch]:[{push:"type"}],[Jt.Case]:{"minecraft:alternatives":s({children:Jt.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:Jt.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:i({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:i({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:Jt.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:Jt.Opt(Jt.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Jt.Mod(Jt.ObjectNode({function:d,[Jt.Switch]:[{push:"function"}],[Jt.Case]:(()=>{const e={"minecraft:apply_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),formula:i({validator:"resource",params:{pool:t.get("loot_table_apply_bonus_formula")}}),parameters:Jt.Mod(Jt.ObjectNode({bonusMultiplier:Jt.Mod(Jt.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:Jt.Mod(Jt.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:Jt.Mod(Jt.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:Jt.ListNode(Jt.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:Jt.ListNode(i({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:Jt.Opt(Jt.ListNode(i({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:Gt.Range({allowBinomial:!0}),treasure:Jt.Opt(Jt.BooleanNode())},"minecraft:exploration_map":{destination:Jt.Opt(i({enum:"structure_feature"})),decoration:Jt.Opt(i({enum:"map_decoration"})),zoom:Jt.Opt(Jt.NumberNode({integer:!0})),search_radius:Jt.Opt(Jt.NumberNode({integer:!0})),skip_existing_chunks:Jt.Opt(Jt.BooleanNode())},"minecraft:fill_player_head":{entity:u},"minecraft:limit_count":{limit:Gt.Range({bounds:!0})},"minecraft:looting_enchant":{count:Gt.Range({bounds:!0}),limit:Jt.Opt(Jt.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:Jt.ListNode(r("attribute_modifier"))},"minecraft:set_contents":{entries:Jt.ListNode(r("loot_entry"))},"minecraft:set_count":{count:Gt.Range({allowBinomial:!0})},"minecraft:set_damage":{damage:Gt.Range({forceRange:!0})},"minecraft:set_loot_table":{name:i({validator:"resource",params:{pool:"$loot_table"}}),seed:Jt.Opt(Jt.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:Jt.Opt(u),lore:Jt.ListNode(r("text_component")),replace:Jt.Opt(Jt.BooleanNode())},"minecraft:set_name":{entity:Jt.Opt(u),name:Jt.Opt(r("text_component"))},"minecraft:set_nbt":{tag:i({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:Jt.Opt(Jt.ListNode(Jt.ObjectNode({type:i({validator:"resource",params:{pool:"mob_effect"}}),duration:Gt.Range()})))}},o={};return t.get("loot_function_type").forEach((t=>{o[t]=s(s({},e[t]),n)})),o})()},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Jt.Mod(Jt.ObjectNode({condition:l,[Jt.Switch]:[{push:"condition"}],[Jt.Case]:c(s({},Gt.ConditionCases),{"minecraft:entity_properties":{entity:u,predicate:r("entity_predicate")},"minecraft:entity_scores":{entity:u,scores:Jt.MapNode(i({validator:"objective"}),Gt.Range({bounds:!0}))}})},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Jt.Mod(Jt.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:Gt.Range({bounds:!0}),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:Jt.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.initPackMcmetaSchemas=void 0;const Zt=Le;Wt.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",Zt.Mod(Zt.ObjectNode({pack:Zt.Mod(Zt.ObjectNode({pack_format:Zt.Mod(Zt.NumberNode({integer:!0,min:5,max:5}),{default:()=>5}),description:Zt.Reference(e,"text_component")}),{default:()=>({pack_format:5,description:""})})}),{default:()=>({pack:{pack_format:5,description:""}})}))};var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.initRecipeSchemas=void 0;const Kt=Le;Yt.initRecipeSchemas=function(e,t){const r=Kt.Reference.bind(void 0,e),i=Kt.StringNode.bind(void 0,t);e.register("recipe",Kt.Mod(Kt.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[Kt.Switch]:[{push:"type"}],[Kt.Case]:{"minecraft:crafting_shaped":{group:Kt.Opt(i({enum:"recipe_group",additional:!0})),pattern:Kt.ListNode(i()),key:Kt.MapNode(i(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Kt.Opt(i()),ingredients:Kt.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Kt.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Kt.Opt(Kt.NumberNode()),cookingtime:Kt.Opt(Kt.Mod(Kt.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Kt.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Kt.Opt(Kt.NumberNode()),cookingtime:Kt.Opt(Kt.Mod(Kt.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Kt.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Kt.Opt(Kt.NumberNode()),cookingtime:Kt.Opt(Kt.Mod(Kt.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Kt.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Kt.Opt(Kt.NumberNode()),cookingtime:Kt.Opt(Kt.Mod(Kt.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Kt.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:Kt.NumberNode({integer:!0})},"minecraft:smithing":{group:Kt.Opt(i()),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",Kt.Mod(Kt.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Kt.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Kt.Mod(Kt.ObjectNode({item:Kt.Opt(i({validator:"resource",params:{pool:"item"}})),tag:Kt.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Kt.Mod(Kt.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:Kt.Opt(Kt.Mod(Kt.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.initTagsSchemas=void 0;const Qt=Le;Vt.initTagsSchemas=function(e,t){const r=Qt.StringNode.bind(void 0,t),i=e=>Qt.Mod(Qt.ObjectNode({replace:Qt.Opt(Qt.BooleanNode()),values:Qt.ListNode(Qt.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Qt.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Qt.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",i("block")),e.register("entity_type_tag",i("entity_type")),e.register("fluid_tag",i("fluid")),e.register("function_tag",i("$function")),e.register("item_tag",i("item"))};var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.initTextComponentSchemas=void 0;const tr=Le;er.initTextComponentSchemas=function(e,t){const r=tr.Reference.bind(void 0,e),i=tr.StringNode.bind(void 0,t),n=e=>{var t;return e instanceof Array?n(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",tr.Mod(tr.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:n(e[0])}:"object"==typeof e?e:{text:n(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:n},{type:"number",node:tr.NumberNode(),change:e=>{const t=parseFloat(n(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:tr.BooleanNode(),change:e=>{const t=n(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={bold:tr.Opt(tr.BooleanNode()),italic:tr.Opt(tr.BooleanNode()),underlined:tr.Opt(tr.BooleanNode()),strikethrough:tr.Opt(tr.BooleanNode()),obfuscated:tr.Opt(tr.BooleanNode()),insertion:tr.Opt(i()),clickEvent:tr.Opt(tr.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[tr.Switch]:[{push:"action"}],[tr.Case]:{change_page:{value:i()},copy_to_clipboard:{value:i()},open_file:{value:i()},open_url:{value:i()},run_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:tr.Opt(tr.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[tr.Switch]:[{push:"action"}],[tr.Case]:{show_text:{value:tr.Opt(r("text_component"))},show_item:{value:tr.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}}))},show_entity:{value:tr.Opt(tr.ObjectNode({name:tr.Opt(i()),type:tr.Opt(i()),id:tr.Opt(i())}))}}})),extra:tr.Opt(r("text_component_list"))};e.register("text_component_object",tr.Mod(tr.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:tr.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:tr.ObjectNode(s({translate:i(),with:tr.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:tr.ObjectNode(s({score:tr.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:tr.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:tr.ObjectNode(s({selector:i({validator:"entity",params:{amount:"multiple",type:"entities"}})},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:tr.ObjectNode(s({keybind:i({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:tr.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:tr.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:tr.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:tr.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:tr.Opt(tr.BooleanNode())},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",tr.Mod(tr.ListNode(r("text_component")),{default:()=>[{text:""}]}))},Object.defineProperty(St,"__esModule",{value:!0}),St.initSchemas=void 0;const rr=At,ir=Bt,nr=Dt,or=zt,ar=qt,sr=Wt,cr=Ct,lr=Yt,dr=Vt,ur=er;St.initSchemas=function(e,t){nr.initCommonSchemas(e,t),cr.initPredicatesSchemas(e,t),rr.initAdvancementSchemas(e,t),ir.initAssetsSchemas(e,t),or.initConditionSchemas(e,t),ar.initLootTableSchemas(e,t),sr.initPackMcmetaSchemas(e,t),lr.initRecipeSchemas(e,t),dr.initTagsSchemas(e,t),ur.initTextComponentSchemas(e,t)};var pr=Te&&Te.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),mr=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_r=Te&&Te.__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)&&pr(t,e,r);return mr(t,e),t};Object.defineProperty(wt,"__esModule",{value:!0});var hr=wt.getSchemas=wt.getCollections=void 0;const fr=Le,gr=Ot,br=St;var yr=wt.lootContext=_r(Xt);var vr=wt.getCollections=function(){const e=new fr.CollectionRegistry;return gr.initCollections(e),e};hr=wt.getSchemas=function(e){const t=new fr.SchemaRegistry;return br.initSchemas(t,e),t};var Nr=Object.freeze(Object.assign(Object.create(null),wt,{[Symbol.toStringTag]:"Module",get getSchemas(){return hr},get getCollections(){return vr},lootContext:yr,default:wt})),xr={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.initCollections=void 0,kr.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 wr={},Or={},Sr={};!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=Le;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,i){const n=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:n({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(n(),n(),{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:n({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(n(),n()))},{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,i;return void 0===e?0:null!==(i=null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:e.n)&&void 0!==i?i: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:n({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:n({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(n(),n(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:o("damage_source_predicate")},"minecraft:entity_properties":{entity:n({enum:"entity_source"}),predicate:o("entity_predicate")},"minecraft:entity_scores":{entity:n({enum:"entity_source"}),scores:t.MapNode(n({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:n({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:n({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(n({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(n({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"}}}})}}(Sr),Object.defineProperty(Or,"__esModule",{value:!0}),Or.initAdvancementSchemas=void 0;const Ar=Le,Dr=Sr;Or.initAdvancementSchemas=function(e,t){const r=Ar.Reference.bind(void 0,e),i=Ar.StringNode.bind(void 0,t),n=Ar.ChoiceNode([{type:"object",node:Ar.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:Ar.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",Ar.Mod(Ar.ObjectNode({display:Ar.Opt(Ar.Mod(Ar.ObjectNode({icon:Ar.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:Ar.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:Ar.Opt(i()),frame:Ar.Opt(i({enum:["task","challenge","goal"]})),show_toast:Ar.Opt(Ar.BooleanNode()),announce_to_chat:Ar.Opt(Ar.BooleanNode()),hidden:Ar.Opt(Ar.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:Ar.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:Ar.MapNode(i(),r("advancement_criteria")),requirements:Ar.Opt(Ar.ListNode(Ar.ListNode(i()))),rewards:Ar.Opt(Ar.ObjectNode({function:Ar.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:Ar.Opt(Ar.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:Ar.Opt(Ar.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:Ar.Opt(Ar.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",Ar.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:Ar.Opt(Ar.ObjectNode({player:Ar.Mod(n,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[Ar.Switch]:["pop",{push:"trigger"}],[Ar.Case]:{"minecraft:bee_nest_destroyed":{block:Ar.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:Ar.Opt(Ar.NumberNode({integer:!0})),item:Ar.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:n,partner:n,child:n},"minecraft:brewed_potion":{potion:Ar.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:Ar.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:Ar.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:Ar.Opt(Ar.ListNode(n))},"minecraft:construct_beacon":{level:Ar.Opt(Dr.Range())},"minecraft:consume_item":{item:Ar.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:n,zombie:n},"minecraft:effects_changed":{effects:Ar.Opt(Ar.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},"minecraft:enter_block":{block:Ar.Opt(i({validator:"resource",params:{pool:"block"}})),state:Ar.Opt(Ar.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:Ar.Opt(Dr.Range()),item:Ar.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:Ar.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:n,killing_blow:Ar.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:Ar.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:n,item:Ar.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:Ar.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:Ar.Opt(Ar.ObjectNode({empty:Ar.Opt(Dr.Range()),occupied:Ar.Opt(Dr.Range()),full:Ar.Opt(Dr.Range())})),items:Ar.Opt(Ar.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:Ar.Opt(Dr.Range()),durability:Ar.Opt(Dr.Range()),item:Ar.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:Ar.Opt(r("item_predicate")),location:Ar.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:Ar.Opt(Dr.Range()),victims:Ar.Opt(Ar.ListNode(n))},"minecraft:levitation":{distance:Ar.Opt(Dr.Range()),duration:Ar.Opt(Dr.Range())},"minecraft:location":{location:Ar.Opt(r("location_predicate"))},"minecraft:nether_travel":{distance:Ar.Opt(Dr.Range()),entered:Ar.Opt(r("location_predicate")),exited:Ar.Opt(r("location_predicate"))},"minecraft:placed_block":{block:Ar.Opt(i({validator:"resource",params:{pool:"block"}})),state:Ar.Opt(Ar.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:Ar.Opt(r("item_predicate")),location:Ar.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:Ar.Opt(r("damage_predicate")),entity:n},"minecraft:player_interacted_with_entity":{item:Ar.Opt(r("item_predicate")),entity:n},"minecraft:player_killed_entity":{entity:n,killing_blow:Ar.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:Ar.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:Ar.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:Ar.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:n},"minecraft:tame_animal":{entity:n},"minecraft:target_hit":{projectile:n,shooter:n,signal_strength:Ar.Opt(Dr.Range({integer:!0}))},"minecraft:thrown_item_picked_up_by_entity":{entity:Ar.Opt(r("entity_predicate")),item:Ar.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:Ar.Opt(Dr.Range())},"minecraft:used_totem":{item:Ar.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:Ar.Opt(r("entity_predicate")),item:Ar.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:r("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Cr={},Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.initModelSchemas=void 0;const Fr=Le;Er.initModelSchemas=function(e,t){Fr.Reference.bind(void 0,e);const r=Fr.StringNode.bind(void 0,t),i=(e,t,r)=>Fr.ListNode(Fr.NumberNode({min:t,max:r}),{minLength:e,maxLength:e}),n=Fr.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",Fr.Mod(Fr.ObjectNode({parent:Fr.Opt(r({validator:"resource",params:{pool:"$model"}})),ambientocclusion:Fr.Opt(Fr.BooleanNode()),gui_light:Fr.Opt(r({enum:"gui_light"})),textures:Fr.Opt(Fr.MapNode(r(),n)),elements:Fr.Opt(Fr.ListNode(Fr.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:Fr.Opt(Fr.ObjectNode({origin:i(3),axis:r({enum:"axis"}),angle:Fr.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:Fr.Opt(Fr.BooleanNode())})),shade:Fr.Opt(Fr.BooleanNode()),faces:Fr.MapNode(r({enum:"direction"}),Fr.ObjectNode({texture:n,uv:Fr.Opt(i(4)),cullface:Fr.Opt(r({enum:"direction"})),rotation:Fr.Opt(Fr.NumberNode({integer:!0})),tintindex:Fr.Opt(Fr.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:Fr.Opt(Fr.MapNode(r({enum:"display_position"}),Fr.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:Fr.Opt(Fr.ListNode(Fr.ObjectNode({predicate:Fr.MapNode(r({enum:"item_model_predicates"}),Fr.NumberNode()),model:r({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var jr={};Object.defineProperty(jr,"__esModule",{value:!0}),jr.initBlockDefinitionSchemas=void 0;const Br=Le;jr.initBlockDefinitionSchemas=function(e,t){const r=Br.Reference.bind(void 0,e),i=Br.StringNode.bind(void 0,t);e.register("block_definition",Br.Mod(Br.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:Br.ObjectNode({variants:Br.MapNode(i(),r("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:Br.ObjectNode({multipart:Br.ListNode(Br.ObjectNode({when:Br.Opt(r("multipart_condition")),apply:r("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const n={model:i({validator:"resource",params:{pool:"$model"}}),x:Br.Opt(Br.NumberEnum({integer:!0,values:[0,90,180,270]})),y:Br.Opt(Br.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:Br.Opt(Br.BooleanNode())};e.register("model_variant",Br.ChoiceNode([{type:"object",node:Br.ObjectNode(n),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:Br.ListNode(Br.ObjectNode(c(s({},n),{weight:Br.Opt(Br.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",Br.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:Br.MapNode(i(),i()),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:Br.ObjectNode({OR:Br.ListNode(r("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.initAssetsSchemas=void 0;const Mr=Er,Tr=jr;Cr.initAssetsSchemas=function(e,t){Tr.initBlockDefinitionSchemas(e,t),Mr.initModelSchemas(e,t)};var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.initConditionSchemas=void 0;const Pr=Le,Ir=Sr;Lr.initConditionSchemas=function(e,t){const r=Pr.Reference.bind(void 0,e),i=Pr.StringNode.bind(void 0,t);e.register("predicate",Pr.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",Pr.Mod(Pr.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[Pr.Switch]:[{push:"condition"}],[Pr.Case]:Ir.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.initDimensionSchemas=void 0;const zr=Le,Ur=Sr;Rr.initDimensionSchemas=function(e,t){const r=zr.Reference.bind(void 0,e),i=zr.StringNode.bind(void 0,t),n=e=>zr.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",zr.Mod(zr.ObjectNode({type:Ur.DimensionTypePresets(r("dimension_type")),generator:zr.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[zr.Switch]:[{push:"type"}],[zr.Case]:{"minecraft:noise":{seed:zr.NumberNode({integer:!0}),settings:Ur.NoiseSettingsPresets(r("noise_settings")),biome_source:zr.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[zr.Switch]:[{push:"type"}],[zr.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:zr.NumberNode({integer:!0}),preset:zr.Opt(i({enum:["nether"]})),altitude_noise:n(r("generator_biome_noise")),temperature_noise:n(r("generator_biome_noise")),humidity_noise:n(r("generator_biome_noise")),weirdness_noise:n(r("generator_biome_noise")),biomes:n(zr.Mod(zr.ListNode(r("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:zr.Opt(zr.NumberNode({integer:!0,min:0,max:62})),biomes:zr.ListNode(i({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:zr.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:zr.NumberNode({integer:!0}),large_biomes:zr.Opt(zr.BooleanNode()),legacy_biome_init_layer:zr.Opt(zr.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:zr.ObjectNode({biome:zr.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:zr.Opt(zr.BooleanNode()),features:zr.Opt(zr.BooleanNode()),layers:zr.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",zr.Mod(zr.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:zr.ObjectNode({altitude:zr.NumberNode(),temperature:zr.NumberNode(),humidity:zr.NumberNode(),weirdness:zr.NumberNode(),offset:zr.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",zr.Mod(zr.ObjectNode({firstOctave:zr.NumberNode({integer:!0}),amplitudes:zr.ListNode(zr.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var $r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.initDimensionTypeSchemas=void 0;const qr=Le,Xr=Sr;$r.initDimensionTypeSchemas=function(e,t){const r=qr.StringNode.bind(void 0,t);e.register("dimension_type",qr.Mod(qr.ObjectNode({name:qr.Mod(r({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:qr.BooleanNode(),natural:qr.BooleanNode(),piglin_safe:qr.BooleanNode(),respawn_anchor_works:qr.BooleanNode(),bed_works:qr.BooleanNode(),has_raids:qr.BooleanNode(),has_skylight:qr.BooleanNode(),has_ceiling:qr.BooleanNode(),coordinate_scale:qr.NumberNode({min:1e-5,max:3e7}),ambient_light:qr.NumberNode(),fixed_time:qr.Opt(qr.NumberNode({integer:!0})),logical_height:qr.NumberNode({integer:!0,min:0,max:256}),effects:qr.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}})},{context:"dimension_type"}),{default:()=>Xr.DefaultDimensionType}))};var Jr={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.LootFunctions=Hr.LootConditions=Hr.LootCopySources=Hr.LootEntitySources=Hr.LootTableTypes=void 0,Hr.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]}]]),Hr.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Hr.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Hr.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",[]]]),Hr.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(Jr,"__esModule",{value:!0}),Jr.initLootTableSchemas=void 0;const Gr=Le,Wr=Hr,Zr=Sr;Jr.initLootTableSchemas=function(e,t){const r=Gr.Reference.bind(void 0,e),i=Gr.StringNode.bind(void 0,t),n={conditions:Gr.Opt(Gr.ListNode(r("loot_condition")))},o=s({functions:Gr.Opt(Gr.ListNode(r("loot_function")))},n);function a(e,r,i){const n=[],o=i=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Wr.LootTableTypes){const e=[...a,...s];n.push({match:e=>e.getModel().get(new Gr.Path(["type"]))===t,node:i(o(e))})}return n.push({match:e=>!0,node:i(r)}),Gr.SwitchNode(n)}const l=a(Wr.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),d=a(Wr.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),u=a(Wr.LootEntitySources,"entity_source",(e=>i({enum:e}))),p=a(Wr.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",Gr.Mod(Gr.ObjectNode({type:Gr.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Gr.Opt(Gr.ListNode(Gr.Mod(Gr.ObjectNode(s({rolls:Zr.Range({allowBinomial:!0,integer:!0}),bonus_rolls:Gr.Opt(Zr.Range({integer:!0})),entries:Gr.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Gr.Opt(Gr.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",Gr.Mod(Gr.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Gr.Opt(Gr.Mod(Gr.NumberNode({integer:!0,min:1}),m)),quality:Gr.Opt(Gr.Mod(Gr.NumberNode({integer:!0}),m)),[Gr.Switch]:[{push:"type"}],[Gr.Case]:{"minecraft:alternatives":s({children:Gr.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:Gr.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:i({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:i({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:Gr.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:Gr.Opt(Gr.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Gr.Mod(Gr.ObjectNode({function:d,[Gr.Switch]:[{push:"function"}],[Gr.Case]:(()=>{const e={"minecraft:apply_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),formula:i({validator:"resource",params:{pool:t.get("loot_table_apply_bonus_formula")}}),parameters:Gr.Mod(Gr.ObjectNode({bonusMultiplier:Gr.Mod(Gr.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:Gr.Mod(Gr.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:Gr.Mod(Gr.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:Gr.ListNode(Gr.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:Gr.ListNode(i({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:Gr.Opt(Gr.ListNode(i({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:Zr.Range({allowBinomial:!0}),treasure:Gr.Opt(Gr.BooleanNode())},"minecraft:exploration_map":{destination:Gr.Opt(i({enum:"map_feature"})),decoration:Gr.Opt(i({enum:"map_decoration"})),zoom:Gr.Opt(Gr.NumberNode({integer:!0})),search_radius:Gr.Opt(Gr.NumberNode({integer:!0})),skip_existing_chunks:Gr.Opt(Gr.BooleanNode())},"minecraft:fill_player_head":{entity:u},"minecraft:limit_count":{limit:Zr.Range({bounds:!0})},"minecraft:looting_enchant":{count:Zr.Range({bounds:!0}),limit:Gr.Opt(Gr.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:Gr.ListNode(r("attribute_modifier"))},"minecraft:set_contents":{entries:Gr.ListNode(r("loot_entry"))},"minecraft:set_count":{count:Zr.Range({allowBinomial:!0})},"minecraft:set_damage":{damage:Zr.Range({forceRange:!0})},"minecraft:set_loot_table":{name:i({validator:"resource",params:{pool:"$loot_table"}}),seed:Gr.Opt(Gr.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:Gr.Opt(u),lore:Gr.ListNode(r("text_component")),replace:Gr.Opt(Gr.BooleanNode())},"minecraft:set_name":{entity:Gr.Opt(u),name:Gr.Opt(r("text_component"))},"minecraft:set_nbt":{tag:i({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:Gr.Opt(Gr.ListNode(Gr.ObjectNode({type:i({validator:"resource",params:{pool:"mob_effect"}}),duration:Zr.Range()})))}},o={};return t.get("loot_function_type").forEach((t=>{o[t]=s(s({},e[t]),n)})),o})()},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Gr.Mod(Gr.ObjectNode({condition:l,[Gr.Switch]:[{push:"condition"}],[Gr.Case]:c(s({},Zr.ConditionCases),{"minecraft:entity_properties":{entity:u,predicate:r("entity_predicate")},"minecraft:entity_scores":{entity:u,scores:Gr.MapNode(i({validator:"objective"}),Zr.Range({bounds:!0}))}})},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Gr.Mod(Gr.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:Zr.Range({bounds:!0}),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:Gr.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.initPackMcmetaSchemas=void 0;const Kr=Le;Yr.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",Kr.Mod(Kr.ObjectNode({pack:Kr.Mod(Kr.ObjectNode({pack_format:Kr.Mod(Kr.NumberNode({integer:!0,min:6,max:6}),{default:()=>6}),description:Kr.Reference(e,"text_component")}),{default:()=>({pack_format:6,description:""})})}),{default:()=>({pack:{pack_format:6,description:""}})}))};var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.initPredicatesSchemas=void 0;const Qr=Le,ei=Sr;Vr.initPredicatesSchemas=function(e,t){const r=Qr.Reference.bind(void 0,e),i=Qr.StringNode.bind(void 0,t),n=Qr.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Qr.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Qr.ObjectNode({min:Qr.Opt(Qr.NumberNode({integer:!0})),max:Qr.Opt(Qr.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Qr.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Qr.ObjectNode({item:Qr.Opt(i({validator:"resource",params:{pool:"item"}})),tag:Qr.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:Qr.Opt(ei.Range()),durability:Qr.Opt(ei.Range()),potion:Qr.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:Qr.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Qr.Opt(Qr.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Qr.ObjectNode({enchantment:Qr.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:Qr.Opt(ei.Range())},{context:"enchantment"})),e.register("block_predicate",Qr.ObjectNode({block:Qr.Opt(i({validator:"resource",params:{pool:"block"}})),tag:Qr.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:Qr.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Qr.Opt(Qr.MapNode(i(),n,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Qr.ObjectNode({fluid:Qr.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:Qr.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:Qr.Opt(Qr.MapNode(i(),n))},{context:"fluid"})),e.register("location_predicate",Qr.ObjectNode({position:Qr.Opt(Qr.ObjectNode({x:Qr.Opt(ei.Range()),y:Qr.Opt(ei.Range()),z:Qr.Opt(ei.Range())})),biome:Qr.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Qr.Opt(i({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:Qr.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:Qr.Opt(Qr.ObjectNode({light:Qr.Opt(ei.Range({integer:!0,min:0,max:15}))})),smokey:Qr.Opt(Qr.BooleanNode()),block:Qr.Opt(r("block_predicate")),fluid:Qr.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Qr.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:ei.Range(),[Qr.Switch]:[{push:"type"}],[Qr.Case]:{"minecraft:mined":{stat:i({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:i({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",Qr.ObjectNode({gamemode:Qr.Opt(i({enum:"gamemode"})),level:Qr.Opt(ei.Range()),advancements:Qr.Opt(Qr.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),Qr.ChoiceNode([{type:"boolean",node:Qr.BooleanNode(),change:e=>!0},{type:"object",node:Qr.MapNode(i(),Qr.BooleanNode())}]))),recipes:Qr.Opt(Qr.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),Qr.BooleanNode())),stats:Qr.Opt(Qr.ListNode(r("statistic_predicate")))},{context:"player"})),e.register("status_effect_predicate",Qr.ObjectNode({amplifier:Qr.Opt(ei.Range()),duration:Qr.Opt(ei.Range()),ambient:Qr.Opt(Qr.BooleanNode()),visible:Qr.Opt(Qr.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Qr.ObjectNode({x:Qr.Opt(ei.Range()),y:Qr.Opt(ei.Range()),z:Qr.Opt(ei.Range()),absolute:Qr.Opt(ei.Range()),horizontal:Qr.Opt(ei.Range())},{context:"distance"})),e.register("entity_predicate",Qr.ObjectNode({type:Qr.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Qr.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Qr.Opt(i({validator:"team"})),location:Qr.Opt(r("location_predicate")),distance:Qr.Opt(r("distance_predicate")),flags:Qr.Opt(Qr.ObjectNode({is_on_fire:Qr.Opt(Qr.BooleanNode()),is_sneaking:Qr.Opt(Qr.BooleanNode()),is_sprinting:Qr.Opt(Qr.BooleanNode()),is_swimming:Qr.Opt(Qr.BooleanNode()),is_baby:Qr.Opt(Qr.BooleanNode())})),equipment:Qr.Opt(Qr.MapNode(i({enum:"slot"}),r("item_predicate"))),vehicle:Qr.Opt(r("entity_predicate")),targeted_entity:Qr.Opt(r("entity_predicate")),player:Qr.Opt(r("player_predicate")),fishing_hook:Qr.Opt(Qr.ObjectNode({in_open_water:Qr.Opt(Qr.BooleanNode())})),effects:Qr.Opt(Qr.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Qr.ObjectNode({is_explosion:Qr.Opt(Qr.BooleanNode()),is_fire:Qr.Opt(Qr.BooleanNode()),is_magic:Qr.Opt(Qr.BooleanNode()),is_projectile:Qr.Opt(Qr.BooleanNode()),is_lightning:Qr.Opt(Qr.BooleanNode()),bypasses_armor:Qr.Opt(Qr.BooleanNode()),bypasses_invulnerability:Qr.Opt(Qr.BooleanNode()),bypasses_magic:Qr.Opt(Qr.BooleanNode()),source_entity:Qr.Opt(r("entity_predicate")),direct_entity:Qr.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Qr.ObjectNode({dealt:Qr.Opt(ei.Range()),taken:Qr.Opt(ei.Range()),blocked:Qr.Opt(Qr.BooleanNode()),source_entity:Qr.Opt(r("entity_predicate")),type:Qr.Opt(r("damage_source_predicate"))},{context:"damage"}))};var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.initRecipeSchemas=void 0;const ri=Le;ti.initRecipeSchemas=function(e,t){const r=ri.Reference.bind(void 0,e),i=ri.StringNode.bind(void 0,t);e.register("recipe",ri.Mod(ri.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[ri.Switch]:[{push:"type"}],[ri.Case]:{"minecraft:crafting_shaped":{group:ri.Opt(i({enum:"recipe_group",additional:!0})),pattern:ri.ListNode(i()),key:ri.MapNode(i(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:ri.Opt(i()),ingredients:ri.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:ri.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ri.Opt(ri.NumberNode()),cookingtime:ri.Opt(ri.Mod(ri.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:ri.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ri.Opt(ri.NumberNode()),cookingtime:ri.Opt(ri.Mod(ri.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:ri.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ri.Opt(ri.NumberNode()),cookingtime:ri.Opt(ri.Mod(ri.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:ri.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:ri.Opt(ri.NumberNode()),cookingtime:ri.Opt(ri.Mod(ri.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:ri.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:ri.NumberNode({integer:!0})},"minecraft:smithing":{group:ri.Opt(i()),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",ri.Mod(ri.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:ri.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",ri.Mod(ri.ObjectNode({item:ri.Opt(i({validator:"resource",params:{pool:"item"}})),tag:ri.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",ri.Mod(ri.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:ri.Opt(ri.Mod(ri.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var ii={};Object.defineProperty(ii,"__esModule",{value:!0}),ii.initTagsSchemas=void 0;const ni=Le;ii.initTagsSchemas=function(e,t){const r=ni.StringNode.bind(void 0,t),i=e=>ni.Mod(ni.ObjectNode({replace:ni.Opt(ni.BooleanNode()),values:ni.ListNode(ni.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:ni.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:ni.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",i("block")),e.register("entity_type_tag",i("entity_type")),e.register("fluid_tag",i("fluid")),e.register("function_tag",i("$function")),e.register("item_tag",i("item"))};var oi={};Object.defineProperty(oi,"__esModule",{value:!0}),oi.initTextComponentSchemas=void 0;const ai=Le;oi.initTextComponentSchemas=function(e,t){const r=ai.Reference.bind(void 0,e),i=ai.StringNode.bind(void 0,t),n=e=>{var t;return e instanceof Array?n(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",ai.Mod(ai.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:n(e[0])}:"object"==typeof e?e:{text:n(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:n},{type:"number",node:ai.NumberNode(),change:e=>{const t=parseFloat(n(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:ai.BooleanNode(),change:e=>{const t=n(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:ai.Opt(i()),font:ai.Opt(i()),bold:ai.Opt(ai.BooleanNode()),italic:ai.Opt(ai.BooleanNode()),underlined:ai.Opt(ai.BooleanNode()),strikethrough:ai.Opt(ai.BooleanNode()),obfuscated:ai.Opt(ai.BooleanNode()),insertion:ai.Opt(i()),clickEvent:ai.Opt(ai.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[ai.Switch]:[{push:"action"}],[ai.Case]:{change_page:{value:i()},copy_to_clipboard:{value:i()},open_file:{value:i()},open_url:{value:i()},run_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:ai.Opt(ai.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[ai.Switch]:[{push:"action"}],[ai.Case]:{show_text:{value:ai.Opt(r("text_component")),contents:ai.Opt(r("text_component"))},show_item:{value:ai.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:ai.Opt(ai.ObjectNode({id:i({validator:"resource",params:{pool:"item"}}),count:ai.Opt(ai.NumberNode({integer:!0})),tag:ai.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:ai.Opt(ai.ObjectNode({name:ai.Opt(i()),type:ai.Opt(i()),id:ai.Opt(i())})),contents:ai.Opt(ai.Mod(ai.ObjectNode({name:ai.Opt(r("text_component")),type:i({validator:"resource",params:{pool:"entity_type"}}),id:i({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:ai.Opt(r("text_component_list"))};e.register("text_component_object",ai.Mod(ai.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:ai.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:ai.ObjectNode(s({translate:i(),with:ai.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:ai.ObjectNode(s({score:ai.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:ai.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:ai.ObjectNode(s({selector:i({validator:"entity",params:{amount:"multiple",type:"entities"}})},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:ai.ObjectNode(s({keybind:i({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:ai.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:ai.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:ai.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:ai.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:ai.Opt(ai.BooleanNode())},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",ai.Mod(ai.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var si={},ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.initBiomeSchemas=void 0;const li=Le;ci.initBiomeSchemas=function(e,t){const r=li.StringNode.bind(void 0,t);e.register("biome",li.Mod(li.ObjectNode({surface_builder:r({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:li.NumberNode(),scale:li.NumberNode(),temperature:li.NumberNode(),downfall:li.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:li.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),player_spawn_friendly:li.Opt(li.BooleanNode()),creature_spawn_probability:li.Opt(li.NumberNode({min:0,max:1})),effects:li.ObjectNode({sky_color:li.NumberNode({color:!0}),fog_color:li.NumberNode({color:!0}),water_color:li.NumberNode({color:!0}),water_fog_color:li.NumberNode({color:!0}),grass_color:li.Opt(li.NumberNode({color:!0})),foliage_color:li.Opt(li.NumberNode({color:!0})),grass_color_modifier:li.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:li.Opt(r()),mood_sound:li.Opt(li.ObjectNode({sound:r(),tick_delay:li.NumberNode({integer:!0}),block_search_extent:li.NumberNode({integer:!0}),offset:li.NumberNode()})),additions_sound:li.Opt(li.ObjectNode({sound:r(),tick_chance:li.NumberNode({min:0,max:1})})),music:li.Opt(li.ObjectNode({sound:r(),min_delay:li.NumberNode({integer:!0,min:0}),max_delay:li.NumberNode({integer:!0,min:0}),replace_current_music:li.BooleanNode()})),particle:li.Opt(li.ObjectNode({options:li.ObjectNode({type:r()}),probability:li.NumberNode({min:0,max:1})}))}),starts:li.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:li.MapNode(r({enum:["water_ambient","ambient","misc","water_creature","creature","monster"]}),li.Mod(li.ListNode(li.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:li.NumberNode({integer:!0}),minCount:li.NumberNode({integer:!0}),maxCount:li.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:li.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),li.Mod(li.ObjectNode({energy_budget:li.NumberNode(),charge:li.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:li.MapNode(r({enum:["air","liquid"]}),li.Mod(li.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:li.ListNode(li.Mod(li.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 di={};Object.defineProperty(di,"__esModule",{value:!0}),di.initCarverSchemas=void 0;const ui=Le;di.initCarverSchemas=function(e,t){const r=ui.StringNode.bind(void 0,t);e.register("configured_carver",ui.Mod(ui.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/carver"}}),config:ui.ObjectNode({probability:ui.NumberNode({min:0,max:1})})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var pi={};Object.defineProperty(pi,"__esModule",{value:!0}),pi.initDecoratorSchemas=void 0;const mi=Le,_i=Sr;pi.initDecoratorSchemas=function(e,t){const r=mi.Reference.bind(void 0,e),i=mi.StringNode.bind(void 0,t),n={maximum:mi.NumberNode({integer:!0}),bottom_offset:mi.NumberNode({integer:!0}),top_offset:mi.NumberNode({integer:!0})},o={chance:mi.NumberNode({integer:!0,min:0})},a={count:_i.UniformInt({min:-10,max:128,maxSpread:128})};e.register("configured_decorator",mi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/decorator"}}),config:mi.ObjectNode({[mi.Switch]:["pop",{push:"type"}],[mi.Case]:{"minecraft:carving_mask":{step:i({enum:"generation_step"}),probability:mi.NumberNode({min:0,max:1})},"minecraft:chance":o,"minecraft:count":a,"minecraft:count_extra":{count:mi.NumberNode({integer:!0}),extra_count:mi.NumberNode({integer:!0}),extra_chance:mi.NumberNode({min:0,max:1})},"minecraft:count_multilayer":a,"minecraft:count_noise":{noise_level:mi.NumberNode(),below_noise:mi.NumberNode({integer:!0}),above_noise:mi.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:mi.NumberNode({integer:!0}),noise_factor:mi.NumberNode(),noise_offset:mi.Opt(mi.NumberNode())},"minecraft:decorated":{outer:r("configured_decorator"),inner:r("configured_decorator")},"minecraft:depth_average":{baseline:mi.NumberNode({integer:!0}),spread:mi.NumberNode({integer:!0})},"minecraft:fire":a,"minecraft:glowstone":a,"minecraft:lava_lake":o,"minecraft:range":n,"minecraft:range_biased":n,"minecraft:range_very_biased":n,"minecraft:water_lake":o}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var hi={},fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.initProcessorListSchemas=void 0;const gi=Le;fi.initProcessorListSchemas=function(e,t){const r=gi.Reference.bind(void 0,e),i=gi.StringNode.bind(void 0,t);e.register("processor_list",gi.Mod(gi.ObjectNode({processors:gi.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",gi.Mod(gi.ObjectNode({processor_type:i({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[gi.Switch]:[{push:"processor_type"}],[gi.Case]:{"minecraft:block_age":{mossiness:gi.NumberNode()},"minecraft:block_ignore":{blocks:gi.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:gi.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:i({enum:"heightmap_type"}),offset:gi.NumberNode({integer:!0})},"minecraft:rule":{rules:gi.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",gi.Mod(gi.ObjectNode({position_predicate:gi.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:gi.Opt(i({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 n={min_dist:gi.NumberNode({min:0,max:255,integer:!0}),max_dist:gi.NumberNode({min:0,max:255,integer:!0}),min_chance:gi.NumberNode({min:0,max:1}),max_chance:gi.NumberNode({min:0,max:1})};e.register("pos_rule_test",gi.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[gi.Switch]:[{push:"predicate_type"}],[gi.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},n),"minecraft:linear_pos":n}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",gi.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[gi.Switch]:[{push:"predicate_type"}],[gi.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:i({validator:"resource",params:{pool:"block"}}),probability:gi.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:gi.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(hi,"__esModule",{value:!0}),hi.initFeatureSchemas=void 0;const bi=Le,yi=Sr;hi.initFeatureSchemas=function(e,t){const r=bi.Reference.bind(void 0,e),i=bi.StringNode.bind(void 0,t),n={can_replace:bi.BooleanNode(),project:bi.BooleanNode(),need_water:bi.BooleanNode(),xspread:bi.NumberNode({integer:!0}),yspread:bi.NumberNode({integer:!0}),zspread:bi.NumberNode({integer:!0}),tries:bi.NumberNode({integer:!0}),state_provider:r("block_state_provider"),block_placer:r("block_placer"),whitelist:bi.ListNode(r("block_state")),blacklist:bi.ListNode(r("block_state"))},o={state:r("block_state"),radius:yi.UniformInt({min:0,max:4,maxSpread:4}),half_height:bi.NumberNode({integer:!0,min:0,max:4}),targets:bi.ListNode(r("block_state"))},a={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:bi.Opt(bi.NumberNode({integer:!0}))},s={state:r("block_state"),size:bi.NumberNode({integer:!0,min:0,max:64}),target:r("rule_test")},c={count:yi.UniformInt({min:-10,max:128,maxSpread:128})},l=bi.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"});e.register("configured_feature",bi.Mod(bi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:bi.ObjectNode({[bi.Switch]:["pop",{push:"type"}],[bi.Case]:{"minecraft:bamboo":{probability:bi.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:yi.UniformInt({min:0,max:2,maxSpread:1}),height:yi.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:yi.UniformInt({min:0,max:8,maxSpread:8}),rim_size:yi.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:bi.BooleanNode(),exit:bi.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:bi.Opt(bi.BooleanNode()),crystal_beam_target:bi.Opt(r("block_pos")),spikes:bi.ListNode(bi.ObjectNode({centerX:bi.Opt(bi.NumberNode({integer:!0})),centerZ:bi.Opt(bi.NumberNode({integer:!0})),radius:bi.Opt(bi.NumberNode({integer:!0})),height:bi.Opt(bi.NumberNode({integer:!0})),guarded:bi.Opt(bi.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:bi.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":n,"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:bi.Opt(bi.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:yi.UniformInt()},"minecraft:no_bonemeal_flower":n,"minecraft:no_surface_ore":s,"minecraft:ore":s,"minecraft:random_patch":n,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:bi.ListNode(bi.ObjectNode({chance:bi.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:sea_pickle":c,"minecraft:seagrass":{probability:bi.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state"),place_on:bi.ListNode(r("block_state")),place_in:bi.ListNode(r("block_state")),place_under:bi.ListNode(r("block_state"))},"minecraft:simple_random_selector":{features:bi.ListNode(l)},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:bi.NumberNode({integer:!0}),hole_count:bi.NumberNode({integer:!0}),requires_block_below:bi.BooleanNode(),valid_blocks:bi.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{max_water_depth:bi.NumberNode({integer:!0}),ignore_vines:bi.BooleanNode(),heightmap:i({enum:"heightmap_type"}),minimum_size:r("feature_size"),trunk_provider:r("block_state_provider"),leaves_provider:r("block_state_provider"),trunk_placer:bi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:bi.NumberNode({integer:!0,min:0,max:32}),height_rand_a:bi.NumberNode({integer:!0,min:0,max:24}),height_rand_b:bi.NumberNode({integer:!0,min:0,max:24})},{context:"trunk_placer"}),foliage_placer:bi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:yi.UniformInt({min:0,max:8,maxSpread:8}),offset:yi.UniformInt({min:0,max:8,maxSpread:8}),[bi.Switch]:[{push:"type"}],[bi.Case]:{"minecraft:blob_foliage_placer":{height:bi.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:bi.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:bi.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:bi.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:yi.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:pine_foliage_placer":{height:yi.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:spruce_foliage_placer":{trunk_height:yi.UniformInt({min:0,max:16,maxSpread:8})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:bi.ListNode(bi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[bi.Switch]:[{push:"type"}],[bi.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:bi.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:bi.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",bi.Mod(bi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:bi.Opt(bi.NumberNode({min:0,max:80})),[bi.Switch]:[{push:"type"}],[bi.Case]:{"minecraft:two_layers_feature_size":{limit:bi.Opt(bi.NumberNode({integer:!0,min:0,max:81})),lower_size:bi.Opt(bi.NumberNode({integer:!0,min:0,max:16})),upper_size:bi.Opt(bi.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:bi.Opt(bi.NumberNode({integer:!0,min:0,max:80})),upper_limit:bi.Opt(bi.NumberNode({integer:!0,min:0,max:80})),lower_size:bi.Opt(bi.NumberNode({integer:!0,min:0,max:16})),middle_size:bi.Opt(bi.NumberNode({integer:!0,min:0,max:16})),upper_size:bi.Opt(bi.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",bi.Mod(bi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[bi.Switch]:[{push:"type"}],[bi.Case]:{"minecraft:rotated_block_provider":{state:r("block_state")},"minecraft:simple_state_provider":{state:r("block_state")},"minecraft:weighted_state_provider":{entries:bi.ListNode(bi.Mod(bi.ObjectNode({weight:bi.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",bi.Mod(bi.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[bi.Switch]:[{push:"type"}],[bi.Case]:{"minecraft:column_placer":{min_size:bi.NumberNode({integer:!0}),extra_size:bi.NumberNode({integer:!0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.initNoiseSettingsSchemas=void 0;const Ni=Le,xi=Sr;vi.initNoiseSettingsSchemas=function(e,t){const r=Ni.Reference.bind(void 0,e),i=Ni.StringNode.bind(void 0,t);e.register("noise_settings",Ni.Mod(Ni.ObjectNode({name:Ni.Mod(i({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:Ni.NumberNode({integer:!0}),bedrock_floor_position:Ni.NumberNode({integer:!0}),sea_level:Ni.NumberNode({integer:!0}),disable_mob_generation:Ni.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:Ni.ObjectNode({height:Ni.NumberNode({integer:!0}),density_factor:Ni.NumberNode(),density_offset:Ni.NumberNode(),size_horizontal:Ni.NumberNode({integer:!0}),size_vertical:Ni.NumberNode({integer:!0}),simplex_surface_noise:Ni.BooleanNode(),random_density_offset:Ni.Opt(Ni.BooleanNode()),island_noise_override:Ni.Opt(Ni.BooleanNode()),amplified:Ni.Opt(Ni.BooleanNode()),sampling:Ni.ObjectNode({xz_scale:Ni.NumberNode(),y_scale:Ni.NumberNode(),xz_factor:Ni.NumberNode(),y_factor:Ni.NumberNode()}),bottom_slide:Ni.ObjectNode({target:Ni.NumberNode({integer:!0}),size:Ni.NumberNode({integer:!0}),offset:Ni.NumberNode({integer:!0})}),top_slide:Ni.ObjectNode({target:Ni.NumberNode({integer:!0}),size:Ni.NumberNode({integer:!0}),offset:Ni.NumberNode({integer:!0})})}),structures:r("generator_structures")},{context:"noise_settings"}),{default:()=>xi.DefaultNoiseSettings})),e.register("generator_structures",Ni.ObjectNode({stronghold:Ni.Opt(Ni.ObjectNode({distance:Ni.NumberNode({integer:!0,min:0,max:1023}),spread:Ni.NumberNode({integer:!0,min:0,max:1023}),count:Ni.NumberNode({integer:!0,min:1,max:4095})})),structures:Ni.MapNode(i({validator:"resource",params:{pool:"worldgen/structure_feature"}}),Ni.Mod(Ni.ObjectNode({spacing:Ni.NumberNode({integer:!0,min:0,max:4096}),separation:Ni.Mod(Ni.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,i,n)=>(t.pop().push("spacing").get()<=r&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,r,i,n))}))),salt:Ni.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",Ni.Mod(Ni.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:Ni.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var ki={};Object.defineProperty(ki,"__esModule",{value:!0}),ki.initStructureFeatureSchemas=void 0;const wi=Le;ki.initStructureFeatureSchemas=function(e,t){const r=wi.StringNode.bind(void 0,t),i={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:wi.NumberNode({integer:!0})};e.register("configured_structure_feature",wi.Mod(wi.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:wi.ObjectNode({[wi.Switch]:["pop",{push:"type"}],[wi.Case]:{"minecraft:bastion_remnant":i,"minecraft:buried_treasure":{probability:wi.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:wi.NumberNode({min:0,max:1})},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:wi.NumberNode({min:0,max:1}),cluster_probability:wi.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:wi.Opt(wi.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 Oi={};Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.initSurfaceBuilderSchemas=void 0;const Si=Le;Oi.initSurfaceBuilderSchemas=function(e,t){const r=Si.StringNode.bind(void 0,t),i=Si.Reference.bind(void 0,e);e.register("configured_surface_builder",Si.Mod(Si.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:Si.ObjectNode({top_material:i("block_state"),under_material:i("block_state"),underwater_material:i("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 Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.initTemplatePoolSchemas=void 0;const Di=Le;Ai.initTemplatePoolSchemas=function(e,t){const r=Di.Reference.bind(void 0,e),i=Di.StringNode.bind(void 0,t),n=Di.ChoiceNode([{type:"string",node:i({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",Di.Mod(Di.ObjectNode({name:i(),fallback:i(),elements:Di.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",Di.Mod(Di.ObjectNode({weight:Di.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",Di.Mod(Di.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[Di.Switch]:[{push:"element_type"}],[Di.Case]:{"minecraft:feature_pool_element":{feature:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},"minecraft:legacy_single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:n},"minecraft:list_pool_element":{elements:Di.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:n}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(si,"__esModule",{value:!0}),si.initWorldgenSchemas=void 0;const Ci=ci,Ei=di,Fi=pi,ji=hi,Bi=vi,Mi=fi,Ti=ki,Li=Oi,Pi=Ai;si.initWorldgenSchemas=function(e,t){Ci.initBiomeSchemas(e,t),Ei.initCarverSchemas(e,t),Fi.initDecoratorSchemas(e,t),ji.initFeatureSchemas(e,t),Bi.initNoiseSettingsSchemas(e,t),Mi.initProcessorListSchemas(e,t),Ti.initStructureFeatureSchemas(e,t),Li.initSurfaceBuilderSchemas(e,t),Pi.initTemplatePoolSchemas(e,t)};var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.initWorldSettingsSchemas=void 0;const Ri=Le;Ii.initWorldSettingsSchemas=function(e,t){const r=Ri.Reference.bind(void 0,e),i=Ri.StringNode.bind(void 0,t);e.register("world_settings",Ri.Mod(Ri.ObjectNode({generate_features:Ri.BooleanNode(),bonus_chest:Ri.BooleanNode(),seed:Ri.NumberNode({integer:!0}),dimensions:Ri.MapNode(i({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(wr,"__esModule",{value:!0}),wr.initSchemas=void 0;const zi=Or,Ui=Cr,$i=Sr,qi=Lr,Xi=Rr,Ji=$r,Hi=Jr,Gi=Yr,Wi=Vr,Zi=ti,Yi=ii,Ki=oi,Vi=si,Qi=Ii;wr.initSchemas=function(e,t){$i.initCommonSchemas(e,t),zi.initAdvancementSchemas(e,t),Ui.initAssetsSchemas(e,t),qi.initConditionSchemas(e,t),Ji.initDimensionTypeSchemas(e,t),Xi.initDimensionSchemas(e,t),Hi.initLootTableSchemas(e,t),Gi.initPackMcmetaSchemas(e,t),Wi.initPredicatesSchemas(e,t),Zi.initRecipeSchemas(e,t),Yi.initTagsSchemas(e,t),Ki.initTextComponentSchemas(e,t),Vi.initWorldgenSchemas(e,t),Qi.initWorldSettingsSchemas(e,t)};var en=Te&&Te.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),tn=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rn=Te&&Te.__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)&&en(t,e,r);return tn(t,e),t};Object.defineProperty(xr,"__esModule",{value:!0});var nn=xr.getSchemas=xr.getCollections=void 0;const on=Le,an=kr,sn=wr;var cn=xr.lootContext=rn(Hr);var ln=xr.getCollections=function(){const e=new on.CollectionRegistry;return an.initCollections(e),e};nn=xr.getSchemas=function(e){const t=new on.SchemaRegistry;return sn.initSchemas(t,e),t};var dn=Object.freeze(Object.assign(Object.create(null),xr,{[Symbol.toStringTag]:"Module",get getSchemas(){return nn},get getCollections(){return ln},lootContext:cn,default:xr})),un={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.initCollections=void 0,pn.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 mn={},_n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.initAdvancementSchemas=void 0;const hn=Le;_n.initAdvancementSchemas=function(e,t){const r=hn.Reference.bind(void 0,e),i=hn.StringNode.bind(void 0,t),n=hn.ChoiceNode([{type:"object",node:hn.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:hn.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",hn.Mod(hn.ObjectNode({display:hn.Opt(hn.Mod(hn.ObjectNode({icon:hn.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:hn.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:hn.Opt(i()),frame:hn.Opt(i({enum:["task","challenge","goal"]})),show_toast:hn.Opt(hn.BooleanNode()),announce_to_chat:hn.Opt(hn.BooleanNode()),hidden:hn.Opt(hn.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:hn.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:hn.MapNode(i(),r("advancement_criteria")),requirements:hn.Opt(hn.ListNode(hn.ListNode(i()))),rewards:hn.Opt(hn.ObjectNode({function:hn.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:hn.Opt(hn.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:hn.Opt(hn.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:hn.Opt(hn.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",hn.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:hn.Opt(hn.ObjectNode({player:hn.Mod(n,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[hn.Switch]:["pop",{push:"trigger"}],[hn.Case]:{"minecraft:bee_nest_destroyed":{block:hn.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:hn.Opt(hn.NumberNode({integer:!0})),item:hn.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:n,partner:n,child:n},"minecraft:brewed_potion":{potion:hn.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:hn.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:hn.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:hn.Opt(hn.ListNode(n))},"minecraft:construct_beacon":{level:r("int_bounds")},"minecraft:consume_item":{item:hn.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:n,zombie:n},"minecraft:effects_changed":{effects:hn.Opt(hn.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),hn.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds")}))),source:hn.Opt(n)},"minecraft:enter_block":{block:hn.Opt(i({validator:"resource",params:{pool:"block"}})),state:hn.Opt(hn.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:r("int_bounds"),item:hn.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:hn.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:n,killing_blow:hn.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:hn.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:n,item:hn.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:hn.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:hn.Opt(hn.ObjectNode({empty:r("int_bounds"),occupied:r("int_bounds"),full:r("int_bounds")})),items:hn.Opt(hn.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:r("int_bounds"),durability:r("int_bounds"),item:hn.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:hn.Opt(r("item_predicate")),location:hn.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:r("int_bounds"),victims:hn.Opt(hn.ListNode(n))},"minecraft:levitation":{distance:r("distance_predicate"),duration:r("int_bounds")},"minecraft:lightning_strike":{lightning:n,bystander:n},"minecraft:location":{location:hn.Opt(r("location_predicate"))},"minecraft:nether_travel":{distance:r("distance_predicate"),entered:hn.Opt(r("location_predicate")),exited:hn.Opt(r("location_predicate"))},"minecraft:placed_block":{block:hn.Opt(i({validator:"resource",params:{pool:"block"}})),state:hn.Opt(hn.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:hn.Opt(r("item_predicate")),location:hn.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:hn.Opt(r("damage_predicate")),entity:n},"minecraft:player_interacted_with_entity":{item:hn.Opt(r("item_predicate")),entity:n},"minecraft:player_killed_entity":{entity:n,killing_blow:hn.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:hn.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:hn.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:hn.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:n},"minecraft:tame_animal":{entity:n},"minecraft:target_hit":{projectile:n,shooter:n,signal_strength:r("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:hn.Opt(r("entity_predicate")),item:hn.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:r("float_bounds")},"minecraft:used_totem":{item:hn.Opt(r("item_predicate"))},"minecraft:using_item":{item:hn.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:hn.Opt(r("entity_predicate")),item:hn.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:r("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var fn={},gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.initModelSchemas=void 0;const bn=Le;gn.initModelSchemas=function(e,t){bn.Reference.bind(void 0,e);const r=bn.StringNode.bind(void 0,t),i=(e,t,r)=>bn.ListNode(bn.NumberNode({min:t,max:r}),{minLength:e,maxLength:e}),n=bn.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",bn.Mod(bn.ObjectNode({parent:bn.Opt(r({validator:"resource",params:{pool:"$model"}})),ambientocclusion:bn.Opt(bn.BooleanNode()),gui_light:bn.Opt(r({enum:"gui_light"})),textures:bn.Opt(bn.MapNode(r(),n)),elements:bn.Opt(bn.ListNode(bn.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:bn.Opt(bn.ObjectNode({origin:i(3),axis:r({enum:"axis"}),angle:bn.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:bn.Opt(bn.BooleanNode())})),shade:bn.Opt(bn.BooleanNode()),faces:bn.MapNode(r({enum:"direction"}),bn.ObjectNode({texture:n,uv:bn.Opt(i(4)),cullface:bn.Opt(r({enum:"direction"})),rotation:bn.Opt(bn.NumberNode({integer:!0})),tintindex:bn.Opt(bn.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:bn.Opt(bn.MapNode(r({enum:"display_position"}),bn.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:bn.Opt(bn.ListNode(bn.ObjectNode({predicate:bn.MapNode(r({enum:"item_model_predicates"}),bn.NumberNode()),model:r({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var yn={};Object.defineProperty(yn,"__esModule",{value:!0}),yn.initBlockDefinitionSchemas=void 0;const vn=Le;yn.initBlockDefinitionSchemas=function(e,t){const r=vn.Reference.bind(void 0,e),i=vn.StringNode.bind(void 0,t);e.register("block_definition",vn.Mod(vn.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:vn.ObjectNode({variants:vn.MapNode(i(),r("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:vn.ObjectNode({multipart:vn.ListNode(vn.ObjectNode({when:vn.Opt(r("multipart_condition")),apply:r("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const n={model:i({validator:"resource",params:{pool:"$model"}}),x:vn.Opt(vn.NumberEnum({integer:!0,values:[0,90,180,270]})),y:vn.Opt(vn.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:vn.Opt(vn.BooleanNode())};e.register("model_variant",vn.ChoiceNode([{type:"object",node:vn.ObjectNode(n),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:vn.ListNode(vn.ObjectNode(c(s({},n),{weight:vn.Opt(vn.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",vn.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:vn.MapNode(i(),i()),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:vn.ObjectNode({OR:vn.ListNode(r("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(fn,"__esModule",{value:!0}),fn.initAssetsSchemas=void 0;const Nn=gn,xn=yn;fn.initAssetsSchemas=function(e,t){xn.initBlockDefinitionSchemas(e,t),Nn.initModelSchemas(e,t)};var kn={};!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=Le;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,i){const n=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:n({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(n(),n(),{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:n({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(n(),n()))},{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,i,o,a,c,l)=>{let d={};a&&Object.keys(l[a]).forEach((e=>{d[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const u=t.ObjectNode(s({type:t.Mod(t.Opt(n({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},d),{context:c,disableSwitchContext:!0}),p=[{type:r,node:l[o][i]}];return a&&p.push({type:"object",priority:-1,node:u}),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 i=t?Object.keys(t):[];return"object"==typeof t&&(0===(null==i?void 0:i.length)||1===(null==i?void 0:i.length)&&"type"===(null==i?void 0:i[0]))},node:u,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:n({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:n({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(n({enum:"entity_source"}),{default:()=>"this"})}})),r.register("nbt_provider",c("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:n({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(n({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,i,n;return{[e]:null!==(n=null!==(i=null!==(r=t.absolute)&&void 0!==r?r:t.above_bottom)&&void 0!==i?i:t.below_top)&&void 0!==n?n: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=n({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:n({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(n(),n(),{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(n({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:n({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:n({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=n({enum:"copy_source"}),a=n({enum:"entity_source"}))=>{const c={"minecraft:apply_bonus":{enchantment:n({validator:"resource",params:{pool:"enchantment"}}),formula:n({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:o("nbt_provider"),ops:t.ListNode(t.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:t.ListNode(n({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(n({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:o("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(n({enum:"map_feature"})),decoration:t.Opt(n({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:n({enum:"banner_pattern"}),color:n({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(n({validator:"resource",params:{pool:"enchantment"}}),o("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{name:n({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:n({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:n({validator:"resource",params:{pool:"mob_effect"}}),duration:o("number_provider")})))}},l={};return i.get("loot_function_type").forEach((t=>{l[t]=s(s({},c[t]),e)})),l},e.DimensionTypePresets=r=>t.ObjectOrPreset(n({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(n({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"}}}})}}(kn);var wn={};Object.defineProperty(wn,"__esModule",{value:!0}),wn.initConditionSchemas=void 0;const On=Le,Sn=kn;wn.initConditionSchemas=function(e,t){const r=On.Reference.bind(void 0,e),i=On.StringNode.bind(void 0,t);e.register("predicate",On.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",On.Mod(On.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[On.Switch]:[{push:"condition"}],[On.Case]:Sn.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var An={};Object.defineProperty(An,"__esModule",{value:!0}),An.initDimensionSchemas=void 0;const Dn=Le,Cn=kn;An.initDimensionSchemas=function(e,t){const r=Dn.Reference.bind(void 0,e),i=Dn.StringNode.bind(void 0,t),n=e=>Dn.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",Dn.Mod(Dn.ObjectNode({type:Cn.DimensionTypePresets(r("dimension_type")),generator:Dn.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Dn.Switch]:[{push:"type"}],[Dn.Case]:{"minecraft:noise":{seed:Dn.NumberNode({integer:!0}),settings:Cn.NoiseSettingsPresets(r("noise_settings")),biome_source:Dn.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Dn.Switch]:[{push:"type"}],[Dn.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:Dn.NumberNode({integer:!0}),preset:Dn.Opt(i({enum:["nether"]})),altitude_noise:n(r("generator_biome_noise")),temperature_noise:n(r("generator_biome_noise")),humidity_noise:n(r("generator_biome_noise")),weirdness_noise:n(r("generator_biome_noise")),biomes:n(Dn.Mod(Dn.ListNode(r("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:Dn.Opt(Dn.NumberNode({integer:!0,min:0,max:62})),biomes:Dn.ListNode(i({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Dn.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:Dn.NumberNode({integer:!0}),large_biomes:Dn.Opt(Dn.BooleanNode()),legacy_biome_init_layer:Dn.Opt(Dn.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Dn.ObjectNode({biome:Dn.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Dn.Opt(Dn.BooleanNode()),features:Dn.Opt(Dn.BooleanNode()),layers:Dn.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",Dn.Mod(Dn.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Dn.ObjectNode({altitude:Dn.NumberNode(),temperature:Dn.NumberNode(),humidity:Dn.NumberNode(),weirdness:Dn.NumberNode(),offset:Dn.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",Dn.Mod(Dn.ObjectNode({firstOctave:Dn.NumberNode({integer:!0}),amplitudes:Dn.ListNode(Dn.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var En={};Object.defineProperty(En,"__esModule",{value:!0}),En.initDimensionTypeSchemas=void 0;const Fn=Le,jn=kn;En.initDimensionTypeSchemas=function(e,t){const r=Fn.StringNode.bind(void 0,t);e.register("dimension_type",Fn.Mod(Fn.ObjectNode({name:Fn.Mod(r({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:Fn.BooleanNode(),natural:Fn.BooleanNode(),piglin_safe:Fn.BooleanNode(),respawn_anchor_works:Fn.BooleanNode(),bed_works:Fn.BooleanNode(),has_raids:Fn.BooleanNode(),has_skylight:Fn.BooleanNode(),has_ceiling:Fn.BooleanNode(),coordinate_scale:Fn.NumberNode({min:1e-5,max:3e7}),ambient_light:Fn.NumberNode(),fixed_time:Fn.Opt(Fn.NumberNode({integer:!0})),logical_height:Fn.NumberNode({integer:!0,min:0,max:4096}),effects:Fn.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}}),min_y:Fn.NumberNode({integer:!0,min:-2048,max:2047}),height:Fn.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>jn.DefaultDimensionType,validate:(t,r,i,n)=>((null==(r=e.validate(t,r,i,n))?void 0:r.min_y)+(null==r?void 0:r.height)>2047&&i.add(t.push("height"),"error.min_y_plus_height",2047),(null==r?void 0:r.logical_height)>(null==r?void 0:r.height)&&i.add(t.push("logical_height"),"error.logical_height"),(null==r?void 0:r.height)%16!=0&&i.add(t.push("height"),"error.height_multiple",16),(null==r?void 0:r.min_y)%16!=0&&i.add(t.push("min_y"),"error.min_y_multiple",16),r)}))))};var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.initItemModifierSchemas=void 0;const Mn=Le,Tn=kn;Bn.initItemModifierSchemas=function(e,t){const r=Mn.Reference.bind(void 0,e),i=Mn.StringNode.bind(void 0,t);e.register("item_modifier",Mn.ObjectOrList(r("function"),{choiceContext:"function"}));const n={conditions:Mn.Opt(Mn.ListNode(r("condition")))};e.register("function",Mn.Mod(Mn.ObjectNode({function:i({validator:"resource",params:{pool:"loot_function_type"}}),[Mn.Switch]:[{push:"function"}],[Mn.Case]:Tn.FunctionCases(n)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var Ln={},Pn={};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.LootFunctions=Pn.LootConditions=Pn.LootCopySources=Pn.LootEntitySources=Pn.LootTableTypes=void 0,Pn.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]}]]),Pn.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Pn.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),Pn.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",[]]]),Pn.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(Ln,"__esModule",{value:!0}),Ln.initLootTableSchemas=void 0;const In=Le,Rn=Pn,zn=kn;Ln.initLootTableSchemas=function(e,t){const r=In.Reference.bind(void 0,e),i=In.StringNode.bind(void 0,t),n={conditions:In.Opt(In.ListNode(r("loot_condition")))},o=s({functions:In.Opt(In.ListNode(r("loot_function")))},n);function a(e,r,i){const n=[],o=i=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Rn.LootTableTypes){const e=[...a,...s];n.push({match:e=>e.getModel().get(new In.Path(["type"]))===t,node:i(o(e))})}return n.push({match:e=>!0,node:i(r)}),In.SwitchNode(n)}const c=a(Rn.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(Rn.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),d=a(Rn.LootEntitySources,"entity_source",(e=>i({enum:e}))),u=a(Rn.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",In.Mod(In.ObjectNode({type:In.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:In.Opt(In.ListNode(In.Mod(In.ObjectNode(s({rolls:r("number_provider"),bonus_rolls:In.Opt(r("number_provider")),entries:In.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:In.Opt(In.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",In.Mod(In.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:In.Opt(In.Mod(In.NumberNode({integer:!0,min:1}),p)),quality:In.Opt(In.Mod(In.NumberNode({integer:!0}),p)),[In.Switch]:[{push:"type"}],[In.Case]:{"minecraft:alternatives":s({children:In.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:In.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:i({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:i({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:In.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:In.Opt(In.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",In.Mod(In.ObjectNode({function:l,[In.Switch]:[{push:"function"}],[In.Case]:zn.FunctionCases(n,u,d)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",In.Mod(In.ObjectNode({condition:c,[In.Switch]:[{push:"condition"}],[In.Case]:zn.ConditionCases(d)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",In.Mod(In.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:r("number_provider"),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:In.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Un={};Object.defineProperty(Un,"__esModule",{value:!0}),Un.initPackMcmetaSchemas=void 0;const $n=Le;Un.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",$n.Mod($n.ObjectNode({pack:$n.Mod($n.ObjectNode({pack_format:$n.Mod($n.NumberNode({integer:!0,min:7,max:7}),{default:()=>7,canUpdate:(e,t)=>7!==t,update:()=>[{name:"pack_format",params:[7],newValue:7}]}),description:$n.Reference(e,"text_component")}),{default:()=>({pack_format:7,description:""})})}),{default:()=>({pack:{pack_format:7,description:""}})}))};var qn={};Object.defineProperty(qn,"__esModule",{value:!0}),qn.initPredicatesSchemas=void 0;const Xn=Le;qn.initPredicatesSchemas=function(e,t){const r=Xn.Reference.bind(void 0,e),i=Xn.StringNode.bind(void 0,t),n=Xn.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Xn.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Xn.ObjectNode({min:Xn.Opt(Xn.NumberNode({integer:!0})),max:Xn.Opt(Xn.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Xn.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Xn.ObjectNode({items:Xn.Opt(Xn.ListNode(i({validator:"resource",params:{pool:"item"}}))),tag:Xn.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:r("int_bounds"),durability:r("int_bounds"),potion:Xn.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:Xn.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Xn.Opt(Xn.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Xn.ObjectNode({enchantment:Xn.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:r("int_bounds")},{context:"enchantment"})),e.register("block_predicate",Xn.ObjectNode({blocks:Xn.Opt(Xn.ListNode(i({validator:"resource",params:{pool:"block"}}))),tag:Xn.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:Xn.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Xn.Opt(Xn.MapNode(i(),n,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Xn.ObjectNode({fluid:Xn.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:Xn.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:Xn.Opt(Xn.MapNode(i(),n))},{context:"fluid"})),e.register("location_predicate",Xn.ObjectNode({position:Xn.Opt(Xn.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds")})),biome:Xn.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Xn.Opt(i({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:Xn.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:Xn.Opt(Xn.ObjectNode({light:r("int_bounds")})),smokey:Xn.Opt(Xn.BooleanNode()),block:Xn.Opt(r("block_predicate")),fluid:Xn.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Xn.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:r("int_bounds"),[Xn.Switch]:[{push:"type"}],[Xn.Case]:{"minecraft:mined":{stat:i({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:i({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",Xn.ObjectNode({gamemode:Xn.Opt(i({enum:"gamemode"})),level:r("int_bounds"),advancements:Xn.Opt(Xn.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),Xn.ChoiceNode([{type:"boolean",node:Xn.BooleanNode(),change:e=>!0},{type:"object",node:Xn.MapNode(i(),Xn.BooleanNode())}]))),recipes:Xn.Opt(Xn.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),Xn.BooleanNode())),stats:Xn.Opt(Xn.ListNode(r("statistic_predicate"))),looking_at:Xn.Opt(r("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",Xn.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds"),ambient:Xn.Opt(Xn.BooleanNode()),visible:Xn.Opt(Xn.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Xn.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",Xn.ObjectNode({type:Xn.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Xn.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Xn.Opt(i({validator:"team"})),location:Xn.Opt(r("location_predicate")),stepping_on:Xn.Opt(r("location_predicate")),distance:Xn.Opt(r("distance_predicate")),flags:Xn.Opt(Xn.ObjectNode({is_on_fire:Xn.Opt(Xn.BooleanNode()),is_sneaking:Xn.Opt(Xn.BooleanNode()),is_sprinting:Xn.Opt(Xn.BooleanNode()),is_swimming:Xn.Opt(Xn.BooleanNode()),is_baby:Xn.Opt(Xn.BooleanNode())})),equipment:Xn.Opt(Xn.MapNode(i({enum:"slot"}),r("item_predicate"))),player:Xn.Opt(r("player_predicate")),vehicle:Xn.Opt(r("entity_predicate")),passenger:Xn.Opt(r("entity_predicate")),targeted_entity:Xn.Opt(r("entity_predicate")),lightning_bolt:Xn.Opt(Xn.ObjectNode({blocks_set_on_fire:Xn.Opt(r("int_bounds")),entity_struck:Xn.Opt(r("entity_predicate"))})),fishing_hook:Xn.Opt(Xn.ObjectNode({in_open_water:Xn.Opt(Xn.BooleanNode())})),effects:Xn.Opt(Xn.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Xn.ObjectNode({is_explosion:Xn.Opt(Xn.BooleanNode()),is_fire:Xn.Opt(Xn.BooleanNode()),is_magic:Xn.Opt(Xn.BooleanNode()),is_projectile:Xn.Opt(Xn.BooleanNode()),is_lightning:Xn.Opt(Xn.BooleanNode()),bypasses_armor:Xn.Opt(Xn.BooleanNode()),bypasses_invulnerability:Xn.Opt(Xn.BooleanNode()),bypasses_magic:Xn.Opt(Xn.BooleanNode()),source_entity:Xn.Opt(r("entity_predicate")),direct_entity:Xn.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Xn.ObjectNode({dealt:r("float_bounds"),taken:r("float_bounds"),blocked:Xn.Opt(Xn.BooleanNode()),source_entity:Xn.Opt(r("entity_predicate")),type:Xn.Opt(r("damage_source_predicate"))},{context:"damage"}))};var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.initRecipeSchemas=void 0;const Hn=Le;Jn.initRecipeSchemas=function(e,t){const r=Hn.Reference.bind(void 0,e),i=Hn.StringNode.bind(void 0,t);e.register("recipe",Hn.Mod(Hn.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[Hn.Switch]:[{push:"type"}],[Hn.Case]:{"minecraft:crafting_shaped":{group:Hn.Opt(i({enum:"recipe_group",additional:!0})),pattern:Hn.ListNode(i()),key:Hn.MapNode(i(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Hn.Opt(i()),ingredients:Hn.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Hn.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Hn.Opt(Hn.NumberNode()),cookingtime:Hn.Opt(Hn.Mod(Hn.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Hn.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Hn.Opt(Hn.NumberNode()),cookingtime:Hn.Opt(Hn.Mod(Hn.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Hn.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Hn.Opt(Hn.NumberNode()),cookingtime:Hn.Opt(Hn.Mod(Hn.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Hn.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Hn.Opt(Hn.NumberNode()),cookingtime:Hn.Opt(Hn.Mod(Hn.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Hn.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:Hn.NumberNode({integer:!0})},"minecraft:smithing":{group:Hn.Opt(i()),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",Hn.Mod(Hn.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Hn.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Hn.Mod(Hn.ObjectNode({item:Hn.Opt(i({validator:"resource",params:{pool:"item"}})),tag:Hn.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Hn.Mod(Hn.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:Hn.Opt(Hn.Mod(Hn.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.initTagsSchemas=void 0;const Wn=Le;Gn.initTagsSchemas=function(e,t){const r=Wn.StringNode.bind(void 0,t),i=e=>Wn.Mod(Wn.ObjectNode({replace:Wn.Opt(Wn.BooleanNode()),values:Wn.ListNode(Wn.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Wn.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Wn.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",i("block")),e.register("entity_type_tag",i("entity_type")),e.register("fluid_tag",i("fluid")),e.register("function_tag",i("$function")),e.register("game_event_tag",i("game_event")),e.register("item_tag",i("item"))};var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.initTextComponentSchemas=void 0;const Yn=Le;Zn.initTextComponentSchemas=function(e,t){const r=Yn.Reference.bind(void 0,e),i=Yn.StringNode.bind(void 0,t),n=e=>{var t;return e instanceof Array?n(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",Yn.Mod(Yn.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:n(e[0])}:"object"==typeof e?e:{text:n(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:n},{type:"number",node:Yn.NumberNode(),change:e=>{const t=parseFloat(n(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:Yn.BooleanNode(),change:e=>{const t=n(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:Yn.Opt(i()),font:Yn.Opt(i()),bold:Yn.Opt(Yn.BooleanNode()),italic:Yn.Opt(Yn.BooleanNode()),underlined:Yn.Opt(Yn.BooleanNode()),strikethrough:Yn.Opt(Yn.BooleanNode()),obfuscated:Yn.Opt(Yn.BooleanNode()),insertion:Yn.Opt(i()),clickEvent:Yn.Opt(Yn.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[Yn.Switch]:[{push:"action"}],[Yn.Case]:{change_page:{value:i()},copy_to_clipboard:{value:i()},open_file:{value:i()},open_url:{value:i()},run_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:Yn.Opt(Yn.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[Yn.Switch]:[{push:"action"}],[Yn.Case]:{show_text:{value:Yn.Opt(r("text_component")),contents:Yn.Opt(r("text_component"))},show_item:{value:Yn.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:Yn.Opt(Yn.ObjectNode({id:i({validator:"resource",params:{pool:"item"}}),count:Yn.Opt(Yn.NumberNode({integer:!0})),tag:Yn.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:Yn.Opt(Yn.ObjectNode({name:Yn.Opt(i()),type:Yn.Opt(i()),id:Yn.Opt(i())})),contents:Yn.Opt(Yn.Mod(Yn.ObjectNode({name:Yn.Opt(r("text_component")),type:i({validator:"resource",params:{pool:"entity_type"}}),id:i({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:Yn.Opt(r("text_component_list"))};e.register("text_component_object",Yn.Mod(Yn.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:Yn.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:Yn.ObjectNode(s({translate:i(),with:Yn.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:Yn.ObjectNode(s({score:Yn.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:Yn.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:Yn.ObjectNode(s({selector:i({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:Yn.Opt(r("text_component"))},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:Yn.ObjectNode(s({keybind:i({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:Yn.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:Yn.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:Yn.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:Yn.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:Yn.Opt(Yn.BooleanNode()),separator:Yn.Opt(r("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",Yn.Mod(Yn.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var Kn={},Vn={};Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.initBiomeSchemas=void 0;const Qn=Le;Vn.initBiomeSchemas=function(e,t){const r=Qn.StringNode.bind(void 0,t);e.register("biome",Qn.Mod(Qn.ObjectNode({surface_builder:r({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:Qn.NumberNode(),scale:Qn.NumberNode(),temperature:Qn.NumberNode(),downfall:Qn.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:Qn.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),player_spawn_friendly:Qn.Opt(Qn.BooleanNode()),creature_spawn_probability:Qn.Opt(Qn.NumberNode({min:0,max:1})),effects:Qn.ObjectNode({sky_color:Qn.NumberNode({color:!0}),fog_color:Qn.NumberNode({color:!0}),water_color:Qn.NumberNode({color:!0}),water_fog_color:Qn.NumberNode({color:!0}),grass_color:Qn.Opt(Qn.NumberNode({color:!0})),foliage_color:Qn.Opt(Qn.NumberNode({color:!0})),grass_color_modifier:Qn.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:Qn.Opt(r()),mood_sound:Qn.Opt(Qn.ObjectNode({sound:r(),tick_delay:Qn.NumberNode({integer:!0}),block_search_extent:Qn.NumberNode({integer:!0}),offset:Qn.NumberNode()})),additions_sound:Qn.Opt(Qn.ObjectNode({sound:r(),tick_chance:Qn.NumberNode({min:0,max:1})})),music:Qn.Opt(Qn.ObjectNode({sound:r(),min_delay:Qn.NumberNode({integer:!0,min:0}),max_delay:Qn.NumberNode({integer:!0,min:0}),replace_current_music:Qn.BooleanNode()})),particle:Qn.Opt(Qn.ObjectNode({options:Qn.ObjectNode({type:r()}),probability:Qn.NumberNode({min:0,max:1})}))}),starts:Qn.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:Qn.MapNode(r({enum:["monster","creature","ambient","underground_water_creature","water_creature","water_ambient","misc"]}),Qn.Mod(Qn.ListNode(Qn.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:Qn.NumberNode({integer:!0}),minCount:Qn.NumberNode({integer:!0}),maxCount:Qn.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:Qn.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),Qn.Mod(Qn.ObjectNode({energy_budget:Qn.NumberNode(),charge:Qn.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:Qn.MapNode(r({enum:["air","liquid"]}),Qn.Mod(Qn.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:Qn.ListNode(Qn.Mod(Qn.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 eo={};Object.defineProperty(eo,"__esModule",{value:!0}),eo.initCarverSchemas=void 0;const to=Le,ro=kn;eo.initCarverSchemas=function(e,t){const r=to.Reference.bind(void 0,e),i=to.StringNode.bind(void 0,t),n={vertical_rotation:ro.FloatProvider(),shape:to.ObjectNode({distance_factor:ro.FloatProvider(),thickness:ro.FloatProvider(),width_smoothness:to.NumberNode({integer:!0,min:0}),horizontal_radius_factor:ro.FloatProvider(),vertical_radius_default_factor:to.NumberNode(),vertical_radius_center_factor:to.NumberNode()})},o={horizontal_radius_multiplier:ro.FloatProvider(),vertical_radius_multiplier:ro.FloatProvider(),floor_level:ro.FloatProvider({min:-1,max:1})};e.register("configured_carver",to.Mod(to.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/carver"}}),config:to.ObjectNode({probability:to.NumberNode({min:0,max:1}),y:r("height_provider"),yScale:ro.FloatProvider(),lava_level:r("vertical_anchor"),aquifers_enabled:to.BooleanNode(),debug_settings:to.Opt(to.ObjectNode({debug_mode:to.Opt(to.BooleanNode()),air_state:to.Opt(r("block_state")),water_state:to.Opt(r("block_state")),lava_state:to.Opt(r("block_state")),barrier_state:to.Opt(r("block_state"))})),[to.Switch]:["pop",{push:"type"}],[to.Case]:{"minecraft:canyon":n,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var io={};Object.defineProperty(io,"__esModule",{value:!0}),io.initDecoratorSchemas=void 0;const no=Le,oo=kn;io.initDecoratorSchemas=function(e,t){const r=no.Reference.bind(void 0,e),i=no.StringNode.bind(void 0,t),n={count:oo.IntProvider({min:0,max:256})};e.register("configured_decorator",no.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/decorator"}}),config:no.ObjectNode({[no.Switch]:["pop",{push:"type"}],[no.Case]:{"minecraft:carving_mask":{step:i({enum:"generation_step"})},"minecraft:cave_surface":{surface:i({enum:["floor","ceiling"]}),floor_to_ceiling_search_range:no.NumberNode({integer:!0})},"minecraft:chance":{chance:no.NumberNode({integer:!0,min:0})},"minecraft:count":n,"minecraft:count_extra":{count:no.NumberNode({integer:!0,min:0}),extra_count:no.NumberNode({integer:!0,min:0}),extra_chance:no.NumberNode({min:0,max:1})},"minecraft:count_multilayer":n,"minecraft:count_noise":{noise_level:no.NumberNode(),below_noise:no.NumberNode({integer:!0}),above_noise:no.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:no.NumberNode({integer:!0}),noise_factor:no.NumberNode(),noise_offset:no.Opt(no.NumberNode())},"minecraft:decorated":{outer:r("configured_decorator"),inner:r("configured_decorator")},"minecraft:heightmap":{heightmap:i({enum:"heightmap_type"})},"minecraft:heightmap_spread_double":{heightmap:i({enum:"heightmap_type"})},"minecraft:lava_lake":{chance:no.NumberNode({integer:!0,min:0})},"minecraft:range":{height:r("height_provider")},"minecraft:water_depth_threshold":{max_water_depth:no.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var ao={},so={};Object.defineProperty(so,"__esModule",{value:!0}),so.initProcessorListSchemas=so.Processors=void 0;const co=Le;so.initProcessorListSchemas=function(e,t){const r=co.Reference.bind(void 0,e),i=co.StringNode.bind(void 0,t);so.Processors=co.ChoiceNode([{type:"string",node:i({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",co.Mod(co.ObjectNode({processors:co.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",co.Mod(co.ObjectNode({processor_type:i({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[co.Switch]:[{push:"processor_type"}],[co.Case]:{"minecraft:block_age":{mossiness:co.NumberNode()},"minecraft:block_ignore":{blocks:co.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:co.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:i({enum:"heightmap_type"}),offset:co.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:i({validator:"resource",params:{pool:"$tag/block"}})},"minecraft:rule":{rules:co.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",co.Mod(co.ObjectNode({position_predicate:co.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:co.Opt(i({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 n={min_dist:co.Opt(co.NumberNode({min:0,max:255,integer:!0})),max_dist:co.Opt(co.NumberNode({min:0,max:255,integer:!0})),min_chance:co.Opt(co.NumberNode({min:0,max:1})),max_chance:co.Opt(co.NumberNode({min:0,max:1}))};e.register("pos_rule_test",co.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[co.Switch]:[{push:"predicate_type"}],[co.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},n),"minecraft:linear_pos":n}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",co.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[co.Switch]:[{push:"predicate_type"}],[co.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:i({validator:"resource",params:{pool:"block"}}),probability:co.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:co.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(ao,"__esModule",{value:!0}),ao.initFeatureSchemas=void 0;const lo=Le,uo=kn,po=so;ao.initFeatureSchemas=function(e,t){const r=lo.Reference.bind(void 0,e),i=lo.StringNode.bind(void 0,t),n={can_replace:lo.Opt(lo.BooleanNode()),project:lo.Opt(lo.BooleanNode()),need_water:lo.Opt(lo.BooleanNode()),xspread:lo.Opt(lo.NumberNode({integer:!0,min:0})),yspread:lo.Opt(lo.NumberNode({integer:!0,min:0})),zspread:lo.Opt(lo.NumberNode({integer:!0,min:0})),tries:lo.Opt(lo.NumberNode({integer:!0,min:1})),state_provider:r("block_state_provider"),block_placer:r("block_placer"),whitelist:lo.ListNode(r("block_state")),blacklist:lo.ListNode(r("block_state"))},o={state:r("block_state"),radius:uo.IntProvider({min:0,max:8}),half_height:lo.NumberNode({integer:!0,min:0,max:4}),targets:lo.ListNode(r("block_state"))},a={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:lo.Opt(lo.NumberNode({integer:!0}))},s=lo.ObjectNode({target:r("rule_test"),state:r("block_state")}),c={size:lo.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:lo.NumberNode({min:0,max:1}),targets:lo.ListNode(s)},l=lo.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"}),d={surface:i({enum:["floor","ceiling"]}),depth:uo.IntProvider({min:1,max:128}),vertical_range:lo.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:lo.NumberNode({min:0,max:1}),extra_edge_column_chance:lo.NumberNode({min:0,max:1}),vegetation_chance:lo.NumberNode({min:0,max:1}),xz_radius:uo.IntProvider(),replaceable:i({validator:"resource",params:{pool:"$tag/block"}}),ground_state:r("block_state_provider"),vegetation_feature:l};e.register("configured_feature",lo.Mod(lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:lo.ObjectNode({[lo.Switch]:["pop",{push:"type"}],[lo.Case]:{"minecraft:bamboo":{probability:lo.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:uo.IntProvider({min:0,max:3}),height:uo.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:uo.IntProvider({min:0,max:16}),rim_size:uo.IntProvider({min:0,max:16})},"minecraft:disk":o,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:lo.NumberNode({integer:!0,min:1,max:512}),height:uo.IntProvider({min:0,max:128}),radius:uo.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:lo.NumberNode({integer:!0,min:0,max:64}),height_deviation:lo.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:uo.IntProvider({min:0,max:128}),density:uo.FloatProvider({min:0,max:2}),wetness:uo.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:lo.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:lo.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:lo.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:lo.BooleanNode(),exit:lo.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:lo.Opt(lo.BooleanNode()),crystal_beam_target:lo.Opt(r("block_pos")),spikes:lo.ListNode(lo.ObjectNode({centerX:lo.Opt(lo.NumberNode({integer:!0})),centerZ:lo.Opt(lo.NumberNode({integer:!0})),radius:lo.Opt(lo.NumberNode({integer:!0})),height:lo.Opt(lo.NumberNode({integer:!0})),guarded:lo.Opt(lo.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:lo.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":n,"minecraft:forest_rock":{state:r("block_state")},"minecraft:fossil":{max_empty_corners_allowed:lo.NumberNode({integer:!0,min:0,max:7}),fossil_structures:lo.ListNode(i({validator:"resource",params:{pool:"$structure"}})),overlay_structures:lo.ListNode(i({validator:"resource",params:{pool:"$structure"}})),fossil_processors:po.Processors,overlay_processors:po.Processors},"minecraft:geode":{blocks:lo.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:lo.ListNode(r("block_state")),cannot_replace:i({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:i({validator:"resource",params:{pool:"$tag/block"}})}),layers:lo.ObjectNode({filling:lo.Opt(lo.NumberNode({min:.01,max:50})),inner_layer:lo.Opt(lo.NumberNode({min:.01,max:50})),middle_layer:lo.Opt(lo.NumberNode({min:.01,max:50})),outer_layer:lo.Opt(lo.NumberNode({min:.01,max:50}))}),crack:lo.ObjectNode({generate_crack_chance:lo.Opt(lo.NumberNode({min:0,max:1})),base_crack_size:lo.Opt(lo.NumberNode({min:0,max:5})),crack_point_offset:lo.Opt(lo.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:lo.Opt(lo.NumberNode({min:0,max:1})),use_potential_placements_chance:lo.Opt(lo.NumberNode({min:0,max:1})),use_alternate_layer0_chance:lo.Opt(lo.NumberNode({min:0,max:1})),placements_require_layer0_alternate:lo.Opt(lo.BooleanNode()),outer_wall_distance:lo.Opt(uo.IntProvider({min:1,max:20})),distribution_points:lo.Opt(uo.IntProvider({min:1,max:20})),point_offset:lo.Opt(uo.IntProvider({min:0,max:10})),min_gen_offset:lo.Opt(lo.NumberNode({integer:!0})),max_gen_offset:lo.Opt(lo.NumberNode({integer:!0})),invalid_blocks_threshold:lo.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:lo.Opt(lo.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:lo.Opt(lo.NumberNode({min:0,max:1})),can_place_on_floor:lo.Opt(lo.BooleanNode()),can_place_on_ceiling:lo.Opt(lo.BooleanNode()),can_place_on_wall:lo.Opt(lo.BooleanNode()),can_be_placed_on:lo.ListNode(r("block_state"))},"minecraft:growing_plant":{direction:i({enum:["up","down","north","east","south","west"]}),allow_water:lo.BooleanNode(),height_distribution:lo.ListNode(lo.ObjectNode({weight:lo.NumberNode({integer:!0}),data:uo.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:lo.Opt(lo.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:lo.Opt(lo.NumberNode({integer:!0,min:1,max:512})),column_radius:uo.IntProvider({min:0,max:60}),height_scale:uo.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:lo.NumberNode({min:0,max:1}),stalactite_bluntness:uo.FloatProvider({min:.1,max:10}),stalagmite_bluntness:uo.FloatProvider({min:.1,max:10}),wind_speed:uo.FloatProvider({min:0,max:2}),min_radius_for_wind:lo.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:lo.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:uo.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":n,"minecraft:ore":c,"minecraft:random_patch":n,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:lo.ListNode(lo.ObjectNode({chance:lo.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:replace_single_block":{targets:lo.ListNode(s)},"minecraft:root_system":{required_vertical_space_for_tree:lo.NumberNode({integer:!0,min:1,max:64}),root_radius:lo.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:lo.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:lo.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:lo.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:lo.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:lo.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:lo.NumberNode({integer:!0,min:1,max:64}),root_replaceable:i({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:uo.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:lo.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state_provider"),place_on:lo.Opt(lo.ListNode(r("block_state"))),place_in:lo.Opt(lo.ListNode(r("block_state"))),place_under:lo.Opt(lo.ListNode(r("block_state")))},"minecraft:simple_random_selector":{features:lo.ListNode(l)},"minecraft:small_dripstone":{max_placements:lo.Opt(lo.NumberNode({integer:!0,min:0,max:100})),empty_space_search_radius:lo.Opt(lo.NumberNode({integer:!0,min:0,max:20})),max_offset_from_origin:lo.Opt(lo.NumberNode({integer:!0,min:0,max:20})),chance_of_taller_dripstone:lo.Opt(lo.NumberNode({min:0,max:1}))},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:lo.NumberNode({integer:!0}),hole_count:lo.NumberNode({integer:!0}),requires_block_below:lo.BooleanNode(),valid_blocks:lo.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:lo.Opt(lo.BooleanNode()),force_dirt:lo.Opt(lo.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:lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:lo.NumberNode({integer:!0,min:0,max:32}),height_rand_a:lo.NumberNode({integer:!0,min:0,max:24}),height_rand_b:lo.NumberNode({integer:!0,min:0,max:24}),[lo.Switch]:[{push:"type"}],[lo.Case]:{"minecraft:bending_trunk_placer":{bend_length:uo.IntProvider({min:1,max:64}),min_height_for_leaves:lo.Opt(lo.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:uo.IntProvider({min:0,max:16}),offset:uo.IntProvider({min:0,max:16}),[lo.Switch]:[{push:"type"}],[lo.Case]:{"minecraft:blob_foliage_placer":{height:lo.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:lo.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:lo.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:lo.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:uo.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:uo.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:uo.IntProvider({min:1,max:512}),leaf_placement_attempts:lo.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:uo.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:lo.ListNode(lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[lo.Switch]:[{push:"type"}],[lo.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:lo.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:lo.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:underwater_magma":{floor_search_range:lo.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:lo.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:lo.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":d,"minecraft:waterlogged_vegetation_patch":d}},{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",lo.Mod(lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:lo.Opt(lo.NumberNode({min:0,max:80})),[lo.Switch]:[{push:"type"}],[lo.Case]:{"minecraft:two_layers_feature_size":{limit:lo.Opt(lo.NumberNode({integer:!0,min:0,max:81})),lower_size:lo.Opt(lo.NumberNode({integer:!0,min:0,max:16})),upper_size:lo.Opt(lo.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:lo.Opt(lo.NumberNode({integer:!0,min:0,max:80})),upper_limit:lo.Opt(lo.NumberNode({integer:!0,min:0,max:80})),lower_size:lo.Opt(lo.NumberNode({integer:!0,min:0,max:16})),middle_size:lo.Opt(lo.NumberNode({integer:!0,min:0,max:16})),upper_size:lo.Opt(lo.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",lo.Mod(lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[lo.Switch]:[{push:"type"}],[lo.Case]:{"minecraft:randomized_int_state_provider":{property:i(),values:uo.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:lo.ListNode(lo.Mod(lo.ObjectNode({weight:lo.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",lo.Mod(lo.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[lo.Switch]:[{push:"type"}],[lo.Case]:{"minecraft:column_placer":{size:uo.IntProvider({min:0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var mo={};Object.defineProperty(mo,"__esModule",{value:!0}),mo.initNoiseSettingsSchemas=void 0;const _o=Le,ho=kn;mo.initNoiseSettingsSchemas=function(e,t){const r=_o.Reference.bind(void 0,e),i=_o.StringNode.bind(void 0,t);e.register("noise_settings",_o.Mod(_o.ObjectNode({name:_o.Mod(i({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:_o.NumberNode({integer:!0}),bedrock_floor_position:_o.NumberNode({integer:!0}),sea_level:_o.NumberNode({integer:!0}),min_surface_level:_o.NumberNode({integer:!0}),disable_mob_generation:_o.BooleanNode(),noise_caves_enabled:_o.BooleanNode(),noodle_caves_enabled:_o.BooleanNode(),aquifers_enabled:_o.BooleanNode(),deepslate_enabled:_o.BooleanNode(),ore_veins_enabled:_o.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:_o.ObjectNode({min_y:_o.NumberNode({integer:!0,min:-2048,max:2047}),height:_o.NumberNode({integer:!0,min:0,max:4096}),density_factor:_o.NumberNode(),density_offset:_o.NumberNode(),size_horizontal:_o.NumberNode({integer:!0}),size_vertical:_o.NumberNode({integer:!0}),simplex_surface_noise:_o.BooleanNode(),random_density_offset:_o.Opt(_o.BooleanNode()),island_noise_override:_o.Opt(_o.BooleanNode()),amplified:_o.Opt(_o.BooleanNode()),sampling:_o.ObjectNode({xz_scale:_o.NumberNode(),y_scale:_o.NumberNode(),xz_factor:_o.NumberNode(),y_factor:_o.NumberNode()}),bottom_slide:_o.ObjectNode({target:_o.NumberNode({integer:!0}),size:_o.NumberNode({integer:!0,min:0}),offset:_o.NumberNode({integer:!0})}),top_slide:_o.ObjectNode({target:_o.NumberNode({integer:!0}),size:_o.NumberNode({integer:!0,min:0}),offset:_o.NumberNode({integer:!0})})}),structures:r("generator_structures")},{context:"noise_settings"}),(e=>({default:()=>ho.DefaultNoiseSettings,validate:(t,r,i,n)=>{var o,a,s,c;return(null===(o=null==(r=e.validate(t,r,i,n))?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&&i.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&&i.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&&i.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),r}})))),e.register("generator_structures",_o.ObjectNode({stronghold:_o.Opt(_o.ObjectNode({distance:_o.NumberNode({integer:!0,min:0,max:1023}),spread:_o.NumberNode({integer:!0,min:0,max:1023}),count:_o.NumberNode({integer:!0,min:1,max:4095})})),structures:_o.MapNode(i({validator:"resource",params:{pool:"worldgen/structure_feature"}}),_o.Mod(_o.ObjectNode({spacing:_o.NumberNode({integer:!0,min:0,max:4096}),separation:_o.Mod(_o.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,i,n)=>(t.pop().push("spacing").get()<=r&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,r,i,n))}))),salt:_o.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",_o.Mod(_o.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:_o.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var fo={};Object.defineProperty(fo,"__esModule",{value:!0}),fo.initStructureFeatureSchemas=void 0;const go=Le;fo.initStructureFeatureSchemas=function(e,t){const r=go.StringNode.bind(void 0,t),i=go.Reference.bind(void 0,e),n={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:go.NumberNode({integer:!0})};e.register("configured_structure_feature",go.Mod(go.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:go.ObjectNode({[go.Switch]:["pop",{push:"type"}],[go.Case]:{"minecraft:bastion_remnant":n,"minecraft:buried_treasure":{probability:go.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:go.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:i("height_provider")},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:go.NumberNode({min:0,max:1}),cluster_probability:go.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:go.Opt(go.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 bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.initSurfaceBuilderSchemas=void 0;const yo=Le;bo.initSurfaceBuilderSchemas=function(e,t){const r=yo.StringNode.bind(void 0,t),i=yo.Reference.bind(void 0,e);e.register("configured_surface_builder",yo.Mod(yo.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:yo.ObjectNode({top_material:i("block_state"),under_material:i("block_state"),underwater_material:i("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 vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.initTemplatePoolSchemas=void 0;const No=Le,xo=so;vo.initTemplatePoolSchemas=function(e,t){const r=No.Reference.bind(void 0,e),i=No.StringNode.bind(void 0,t);e.register("template_pool",No.Mod(No.ObjectNode({name:i(),fallback:i(),elements:No.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",No.Mod(No.ObjectNode({weight:No.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",No.Mod(No.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[No.Switch]:[{push:"element_type"}],[No.Case]:{"minecraft:feature_pool_element":{feature:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},"minecraft:legacy_single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:xo.Processors},"minecraft:list_pool_element":{elements:No.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:xo.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.initWorldgenSchemas=void 0;const ko=Vn,wo=eo,Oo=io,So=ao,Ao=mo,Do=so,Co=fo,Eo=bo,Fo=vo;Kn.initWorldgenSchemas=function(e,t){Do.initProcessorListSchemas(e,t),ko.initBiomeSchemas(e,t),wo.initCarverSchemas(e,t),Oo.initDecoratorSchemas(e,t),So.initFeatureSchemas(e,t),Ao.initNoiseSettingsSchemas(e,t),Co.initStructureFeatureSchemas(e,t),Eo.initSurfaceBuilderSchemas(e,t),Fo.initTemplatePoolSchemas(e,t)};var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.initWorldSettingsSchemas=void 0;const Bo=Le;jo.initWorldSettingsSchemas=function(e,t){const r=Bo.Reference.bind(void 0,e),i=Bo.StringNode.bind(void 0,t);e.register("world_settings",Bo.Mod(Bo.ObjectNode({generate_features:Bo.BooleanNode(),bonus_chest:Bo.BooleanNode(),seed:Bo.NumberNode({integer:!0}),dimensions:Bo.MapNode(i({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(mn,"__esModule",{value:!0}),mn.initSchemas=void 0;const Mo=_n,To=fn,Lo=kn,Po=wn,Io=An,Ro=En,zo=Bn,Uo=Ln,$o=Un,qo=qn,Xo=Jn,Jo=Gn,Ho=Zn,Go=Kn,Wo=jo;mn.initSchemas=function(e,t){Lo.initCommonSchemas(e,t),Mo.initAdvancementSchemas(e,t),To.initAssetsSchemas(e,t),Po.initConditionSchemas(e,t),Ro.initDimensionTypeSchemas(e,t),Io.initDimensionSchemas(e,t),zo.initItemModifierSchemas(e,t),Uo.initLootTableSchemas(e,t),$o.initPackMcmetaSchemas(e,t),qo.initPredicatesSchemas(e,t),Xo.initRecipeSchemas(e,t),Jo.initTagsSchemas(e,t),Ho.initTextComponentSchemas(e,t),Go.initWorldgenSchemas(e,t),Wo.initWorldSettingsSchemas(e,t)};var Zo=Te&&Te.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),Yo=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ko=Te&&Te.__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)&&Zo(t,e,r);return Yo(t,e),t};Object.defineProperty(un,"__esModule",{value:!0});var Vo=un.getSchemas=un.getCollections=void 0;const Qo=Le,ea=pn,ta=mn;var ra=un.lootContext=Ko(Pn);var ia=un.getCollections=function(){const e=new Qo.CollectionRegistry;return ea.initCollections(e),e};Vo=un.getSchemas=function(e){const t=new Qo.SchemaRegistry;return ta.initSchemas(t,e),t};var na=Object.freeze(Object.assign(Object.create(null),un,{[Symbol.toStringTag]:"Module",get getSchemas(){return Vo},get getCollections(){return ia},lootContext:ra,default:un})),oa={},aa={};Object.defineProperty(aa,"__esModule",{value:!0}),aa.initCollections=void 0,aa.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 sa={},ca={};Object.defineProperty(ca,"__esModule",{value:!0}),ca.initAdvancementSchemas=void 0;const la=Le;ca.initAdvancementSchemas=function(e,t){const r=la.Reference.bind(void 0,e),i=la.StringNode.bind(void 0,t),n=la.ChoiceNode([{type:"object",node:la.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:la.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",la.Mod(la.ObjectNode({display:la.Opt(la.Mod(la.ObjectNode({icon:la.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:la.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:la.Opt(i()),frame:la.Opt(i({enum:["task","challenge","goal"]})),show_toast:la.Opt(la.BooleanNode()),announce_to_chat:la.Opt(la.BooleanNode()),hidden:la.Opt(la.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:la.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:la.MapNode(i(),r("advancement_criteria")),requirements:la.Opt(la.ListNode(la.ListNode(i()))),rewards:la.Opt(la.ObjectNode({function:la.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:la.Opt(la.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:la.Opt(la.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:la.Opt(la.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",la.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:la.Opt(la.ObjectNode({player:la.Mod(n,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[la.Switch]:["pop",{push:"trigger"}],[la.Case]:{"minecraft:bee_nest_destroyed":{block:la.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:la.Opt(la.NumberNode({integer:!0})),item:la.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:n,partner:n,child:n},"minecraft:brewed_potion":{potion:la.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:la.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:la.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:la.Opt(la.ListNode(n))},"minecraft:construct_beacon":{level:r("int_bounds")},"minecraft:consume_item":{item:la.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:n,zombie:n},"minecraft:effects_changed":{effects:la.Opt(la.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),la.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds")}))),source:la.Opt(n)},"minecraft:enter_block":{block:la.Opt(i({validator:"resource",params:{pool:"block"}})),state:la.Opt(la.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:r("int_bounds"),item:la.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:la.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:n,killing_blow:la.Opt(r("damage_source_predicate"))},"minecraft:fall_from_height":{start_position:la.Opt(r("location_predicate")),distance:la.Opt(r("distance_predicate"))},"minecraft:filled_bucket":{item:la.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:n,item:la.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:la.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:la.Opt(la.ObjectNode({empty:r("int_bounds"),occupied:r("int_bounds"),full:r("int_bounds")})),items:la.Opt(la.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:r("int_bounds"),durability:r("int_bounds"),item:la.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:la.Opt(r("item_predicate")),location:la.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:r("int_bounds"),victims:la.Opt(la.ListNode(n))},"minecraft:levitation":{distance:la.Opt(r("distance_predicate")),duration:r("int_bounds")},"minecraft:lightning_strike":{lightning:n,bystander:n},"minecraft:location":{location:la.Opt(r("location_predicate"))},"minecraft:nether_travel":{start_position:la.Opt(r("location_predicate")),distance:la.Opt(r("distance_predicate"))},"minecraft:placed_block":{block:la.Opt(i({validator:"resource",params:{pool:"block"}})),state:la.Opt(la.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:la.Opt(r("item_predicate")),location:la.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:la.Opt(r("damage_predicate")),entity:n},"minecraft:player_interacted_with_entity":{item:la.Opt(r("item_predicate")),entity:n},"minecraft:player_killed_entity":{entity:n,killing_blow:la.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:ride_entity_in_lava":{start_position:la.Opt(r("location_predicate")),distance:la.Opt(r("distance_predicate"))},"minecraft:slept_in_bed":{location:la.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:la.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:la.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:n},"minecraft:tame_animal":{entity:n},"minecraft:target_hit":{projectile:n,shooter:n,signal_strength:r("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:la.Opt(r("entity_predicate")),item:la.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:la.Opt(r("float_bounds"))},"minecraft:used_totem":{item:la.Opt(r("item_predicate"))},"minecraft:using_item":{item:la.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:la.Opt(r("entity_predicate")),item:la.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:la.Opt(r("location_predicate"))}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var da={},ua={};Object.defineProperty(ua,"__esModule",{value:!0}),ua.initModelSchemas=void 0;const pa=Le;ua.initModelSchemas=function(e,t){pa.Reference.bind(void 0,e);const r=pa.StringNode.bind(void 0,t),i=(e,t,r)=>pa.ListNode(pa.NumberNode({min:t,max:r}),{minLength:e,maxLength:e}),n=pa.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",pa.Mod(pa.ObjectNode({parent:pa.Opt(r({validator:"resource",params:{pool:"$model"}})),ambientocclusion:pa.Opt(pa.BooleanNode()),gui_light:pa.Opt(r({enum:"gui_light"})),textures:pa.Opt(pa.MapNode(r(),n)),elements:pa.Opt(pa.ListNode(pa.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:pa.Opt(pa.ObjectNode({origin:i(3),axis:r({enum:"axis"}),angle:pa.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:pa.Opt(pa.BooleanNode())})),shade:pa.Opt(pa.BooleanNode()),faces:pa.MapNode(r({enum:"direction"}),pa.ObjectNode({texture:n,uv:pa.Opt(i(4)),cullface:pa.Opt(r({enum:"direction"})),rotation:pa.Opt(pa.NumberNode({integer:!0})),tintindex:pa.Opt(pa.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:pa.Opt(pa.MapNode(r({enum:"display_position"}),pa.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:pa.Opt(pa.ListNode(pa.ObjectNode({predicate:pa.MapNode(r({enum:"item_model_predicates"}),pa.NumberNode()),model:r({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var ma={};Object.defineProperty(ma,"__esModule",{value:!0}),ma.initBlockDefinitionSchemas=void 0;const _a=Le;ma.initBlockDefinitionSchemas=function(e,t){const r=_a.Reference.bind(void 0,e),i=_a.StringNode.bind(void 0,t);e.register("block_definition",_a.Mod(_a.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:_a.ObjectNode({variants:_a.MapNode(i(),r("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:_a.ObjectNode({multipart:_a.ListNode(_a.ObjectNode({when:_a.Opt(r("multipart_condition")),apply:r("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const n={model:i({validator:"resource",params:{pool:"$model"}}),x:_a.Opt(_a.NumberEnum({integer:!0,values:[0,90,180,270]})),y:_a.Opt(_a.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:_a.Opt(_a.BooleanNode())};e.register("model_variant",_a.ChoiceNode([{type:"object",node:_a.ObjectNode(n),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:_a.ListNode(_a.ObjectNode(c(s({},n),{weight:_a.Opt(_a.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",_a.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:_a.MapNode(i(),i()),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:_a.ObjectNode({OR:_a.ListNode(r("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(da,"__esModule",{value:!0}),da.initAssetsSchemas=void 0;const ha=ua,fa=ma;da.initAssetsSchemas=function(e,t){fa.initBlockDefinitionSchemas(e,t),ha.initModelSchemas(e,t)};var ga={};!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=Le;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(i,n){const o=t.StringNode.bind(void 0,n),a=t.Reference.bind(void 0,i);i.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"})})),i.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"}})})),i.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})}]));i.register("int_bounds",c(!0)),i.register("float_bounds",c()),i.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,i,n,a,c,l)=>{let d={};a&&Object.keys(l[a]).forEach((e=>{d[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const u=t.ObjectNode(s({type:t.Mod(t.Opt(o({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},d),{context:c,disableSwitchContext:!0}),p=[{type:r,node:l[n][i]}];return a&&p.push({type:"object",priority:-1,node:u}),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 i=t?Object.keys(t):[];return"object"==typeof t&&(0===(null==i?void 0:i.length)||1===(null==i?void 0:i.length)&&"type"===(null==i?void 0:i[0]))},node:u,change:t=>({type:e})})})),t.ChoiceNode(p,{context:c,choiceContext:`${c}.type`})};i.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())}})),i.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"})}})),i.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()})}}),i.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")}))}}),i.register("int_provider",e.IntProvider()),i.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,i,n;return{[e]:null!==(n=null!==(i=null!==(r=t.absolute)&&void 0!==r?r:t.above_bottom)&&void 0!==i?i:t.below_top)&&void 0!==n?n:0}},node:t.ObjectNode({[e]:t.NumberNode({integer:!0,min:-2048,max:2047})})}))),{context:"vertical_anchor"})),i.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"}),i.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"}),i=o({enum:"entity_source"}))=>{const c={"minecraft:apply_bonus":{enchantment:o({validator:"resource",params:{pool:"enchantment"}}),formula:o({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: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:i},"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(i),lore:t.ListNode(a("text_component")),replace:t.Opt(t.BooleanNode())},"minecraft:set_name":{entity:t.Opt(i),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 n.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=i=>t.ObjectOrPreset(o({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),i,{"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}}})}}(ga);var ba={};Object.defineProperty(ba,"__esModule",{value:!0}),ba.initConditionSchemas=void 0;const ya=Le,va=ga;ba.initConditionSchemas=function(e,t){const r=ya.Reference.bind(void 0,e),i=ya.StringNode.bind(void 0,t);e.register("predicate",ya.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",ya.Mod(ya.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[ya.Switch]:[{push:"condition"}],[ya.Case]:va.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Na={};Object.defineProperty(Na,"__esModule",{value:!0}),Na.initDimensionSchemas=void 0;const xa=Le,ka=ga;Na.initDimensionSchemas=function(e,t){const r=xa.Reference.bind(void 0,e),i=xa.StringNode.bind(void 0,t);e.register("dimension",xa.Mod(xa.ObjectNode({type:ka.DimensionTypePresets(r("dimension_type")),generator:xa.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[xa.Switch]:[{push:"type"}],[xa.Case]:{"minecraft:noise":{seed:xa.NumberNode({integer:!0}),settings:ka.NoiseSettingsPresets(r("noise_settings")),biome_source:xa.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[xa.Switch]:[{push:"type"}],[xa.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{preset:xa.Opt(i({validator:"resource",params:{pool:["minecraft:overworld","minecraft:nether"]}})),biomes:xa.Mod(xa.ListNode(r("generator_biome")),{enabled:e=>void 0===e.push("preset").get(),default:()=>[{biome:"minecraft:plains"}]})},"minecraft:checkerboard":{scale:xa.Opt(xa.NumberNode({integer:!0,min:0,max:62})),biomes:xa.ListNode(i({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:xa.NumberNode({integer:!0})}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:xa.ObjectNode({biome:xa.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:xa.Opt(xa.BooleanNode()),features:xa.Opt(xa.BooleanNode()),layers:xa.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 n=xa.ChoiceNode([{type:"number",node:xa.NumberNode({min:-2,max:2}),change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:0}},{type:"list",node:xa.ListNode(xa.NumberNode({min:-2,max:2}),{minLength:2,maxLength:2}),change:e=>[null!=e?e:0,null!=e?e:0]}]);e.register("generator_biome",xa.Mod(xa.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:xa.ObjectNode({temperature:n,humidity:n,continentalness:n,erosion:n,weirdness:n,depth:n,offset:xa.NumberNode({min:0,max:1})})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})}))};var wa={};Object.defineProperty(wa,"__esModule",{value:!0}),wa.initDimensionTypeSchemas=void 0;const Oa=Le,Sa=ga;wa.initDimensionTypeSchemas=function(e,t){const r=Oa.StringNode.bind(void 0,t);e.register("dimension_type",Oa.Mod(Oa.ObjectNode({ultrawarm:Oa.BooleanNode(),natural:Oa.BooleanNode(),piglin_safe:Oa.BooleanNode(),respawn_anchor_works:Oa.BooleanNode(),bed_works:Oa.BooleanNode(),has_raids:Oa.BooleanNode(),has_skylight:Oa.BooleanNode(),has_ceiling:Oa.BooleanNode(),coordinate_scale:Oa.NumberNode({min:1e-5,max:3e7}),ambient_light:Oa.NumberNode(),fixed_time:Oa.Opt(Oa.NumberNode({integer:!0})),logical_height:Oa.NumberNode({integer:!0,min:0,max:4096}),effects:Oa.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}}),min_y:Oa.NumberNode({integer:!0,min:-2048,max:2047}),height:Oa.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>Sa.DefaultDimensionType,validate:(t,r,i,n)=>((null==(r=e.validate(t,r,i,n))?void 0:r.min_y)+(null==r?void 0:r.height)>2047&&i.add(t.push("height"),"error.min_y_plus_height",2047),(null==r?void 0:r.logical_height)>(null==r?void 0:r.height)&&i.add(t.push("logical_height"),"error.logical_height"),(null==r?void 0:r.height)%16!=0&&i.add(t.push("height"),"error.height_multiple",16),(null==r?void 0:r.min_y)%16!=0&&i.add(t.push("min_y"),"error.min_y_multiple",16),r)}))))};var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.initItemModifierSchemas=void 0;const Da=Le,Ca=ga;Aa.initItemModifierSchemas=function(e,t){const r=Da.Reference.bind(void 0,e),i=Da.StringNode.bind(void 0,t);e.register("item_modifier",Da.ObjectOrList(r("function"),{choiceContext:"function"}));const n={conditions:Da.Opt(Da.ListNode(r("condition")))};e.register("function",Da.Mod(Da.ObjectNode({function:i({validator:"resource",params:{pool:"loot_function_type"}}),[Da.Switch]:[{push:"function"}],[Da.Case]:Ca.FunctionCases(n)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};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_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(Ea,"__esModule",{value:!0}),Ea.initLootTableSchemas=void 0;const ja=Le,Ba=Fa,Ma=ga;Ea.initLootTableSchemas=function(e,t){const r=ja.Reference.bind(void 0,e),i=ja.StringNode.bind(void 0,t),n={conditions:ja.Opt(ja.ListNode(r("loot_condition")))},o=s({functions:ja.Opt(ja.ListNode(r("loot_function")))},n);function a(e,r,i){const n=[],o=i=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Ba.LootTableTypes){const e=[...a,...s];n.push({match:e=>e.getModel().get(new ja.Path(["type"]))===t,node:i(o(e))})}return n.push({match:e=>!0,node:i(r)}),ja.SwitchNode(n)}const c=a(Ba.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(Ba.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),d=a(Ba.LootEntitySources,"entity_source",(e=>i({enum:e}))),u=a(Ba.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",ja.Mod(ja.ObjectNode({type:ja.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:ja.Opt(ja.ListNode(ja.Mod(ja.ObjectNode(s({rolls:r("number_provider"),bonus_rolls:ja.Opt(r("number_provider")),entries:ja.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:ja.Opt(ja.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",ja.Mod(ja.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:ja.Opt(ja.Mod(ja.NumberNode({integer:!0,min:1}),p)),quality:ja.Opt(ja.Mod(ja.NumberNode({integer:!0}),p)),[ja.Switch]:[{push:"type"}],[ja.Case]:{"minecraft:alternatives":s({children:ja.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:ja.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:i({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:i({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:ja.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:ja.Opt(ja.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",ja.Mod(ja.ObjectNode({function:l,[ja.Switch]:[{push:"function"}],[ja.Case]:Ma.FunctionCases(n,u,d)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",ja.Mod(ja.ObjectNode({condition:c,[ja.Switch]:[{push:"condition"}],[ja.Case]:Ma.ConditionCases(d)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",ja.Mod(ja.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:r("number_provider"),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:ja.StringOrList(i({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 La=Le;Ta.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",La.Mod(La.ObjectNode({pack:La.Mod(La.ObjectNode({pack_format:La.Mod(La.NumberNode({integer:!0,min:8,max:8}),{default:()=>8,canUpdate:(e,t)=>8!==t,update:()=>[{name:"pack_format",params:[8],newValue:8}]}),description:La.Reference(e,"text_component")}),{default:()=>({pack_format:8,description:""})})}),{default:()=>({pack:{pack_format:8,description:""}})}))};var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.initPredicatesSchemas=void 0;const Ia=Le;Pa.initPredicatesSchemas=function(e,t){const r=Ia.Reference.bind(void 0,e),i=Ia.StringNode.bind(void 0,t),n=Ia.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Ia.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Ia.ObjectNode({min:Ia.Opt(Ia.NumberNode({integer:!0})),max:Ia.Opt(Ia.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Ia.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Ia.ObjectNode({items:Ia.Opt(Ia.ListNode(i({validator:"resource",params:{pool:"item"}}))),tag:Ia.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:r("int_bounds"),durability:r("int_bounds"),potion:Ia.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:Ia.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Ia.Opt(Ia.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Ia.ObjectNode({enchantment:Ia.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:r("int_bounds")},{context:"enchantment"})),e.register("block_predicate",Ia.ObjectNode({blocks:Ia.Opt(Ia.ListNode(i({validator:"resource",params:{pool:"block"}}))),tag:Ia.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:Ia.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Ia.Opt(Ia.MapNode(i(),n,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Ia.ObjectNode({fluid:Ia.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:Ia.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:Ia.Opt(Ia.MapNode(i(),n))},{context:"fluid"})),e.register("location_predicate",Ia.ObjectNode({position:Ia.Opt(Ia.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds")})),biome:Ia.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Ia.Opt(i({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:Ia.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:Ia.Opt(Ia.ObjectNode({light:r("int_bounds")})),smokey:Ia.Opt(Ia.BooleanNode()),block:Ia.Opt(r("block_predicate")),fluid:Ia.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Ia.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:r("int_bounds"),[Ia.Switch]:[{push:"type"}],[Ia.Case]:{"minecraft:mined":{stat:i({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:i({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",Ia.ObjectNode({gamemode:Ia.Opt(i({enum:"gamemode"})),level:r("int_bounds"),advancements:Ia.Opt(Ia.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),Ia.ChoiceNode([{type:"boolean",node:Ia.BooleanNode(),change:e=>!0},{type:"object",node:Ia.MapNode(i(),Ia.BooleanNode())}]))),recipes:Ia.Opt(Ia.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),Ia.BooleanNode())),stats:Ia.Opt(Ia.ListNode(r("statistic_predicate"))),looking_at:Ia.Opt(r("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",Ia.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds"),ambient:Ia.Opt(Ia.BooleanNode()),visible:Ia.Opt(Ia.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Ia.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",Ia.ObjectNode({type:Ia.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Ia.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Ia.Opt(i({validator:"team"})),location:Ia.Opt(r("location_predicate")),stepping_on:Ia.Opt(r("location_predicate")),distance:Ia.Opt(r("distance_predicate")),flags:Ia.Opt(Ia.ObjectNode({is_on_fire:Ia.Opt(Ia.BooleanNode()),is_sneaking:Ia.Opt(Ia.BooleanNode()),is_sprinting:Ia.Opt(Ia.BooleanNode()),is_swimming:Ia.Opt(Ia.BooleanNode()),is_baby:Ia.Opt(Ia.BooleanNode())})),equipment:Ia.Opt(Ia.MapNode(i({enum:"slot"}),r("item_predicate"))),player:Ia.Opt(r("player_predicate")),vehicle:Ia.Opt(r("entity_predicate")),passenger:Ia.Opt(r("entity_predicate")),targeted_entity:Ia.Opt(r("entity_predicate")),lightning_bolt:Ia.Opt(Ia.ObjectNode({blocks_set_on_fire:Ia.Opt(r("int_bounds")),entity_struck:Ia.Opt(r("entity_predicate"))})),fishing_hook:Ia.Opt(Ia.ObjectNode({in_open_water:Ia.Opt(Ia.BooleanNode())})),effects:Ia.Opt(Ia.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Ia.ObjectNode({is_explosion:Ia.Opt(Ia.BooleanNode()),is_fire:Ia.Opt(Ia.BooleanNode()),is_magic:Ia.Opt(Ia.BooleanNode()),is_projectile:Ia.Opt(Ia.BooleanNode()),is_lightning:Ia.Opt(Ia.BooleanNode()),bypasses_armor:Ia.Opt(Ia.BooleanNode()),bypasses_invulnerability:Ia.Opt(Ia.BooleanNode()),bypasses_magic:Ia.Opt(Ia.BooleanNode()),source_entity:Ia.Opt(r("entity_predicate")),direct_entity:Ia.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Ia.ObjectNode({dealt:r("float_bounds"),taken:r("float_bounds"),blocked:Ia.Opt(Ia.BooleanNode()),source_entity:Ia.Opt(r("entity_predicate")),type:Ia.Opt(r("damage_source_predicate"))},{context:"damage"}))};var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.initRecipeSchemas=void 0;const za=Le;Ra.initRecipeSchemas=function(e,t){const r=za.Reference.bind(void 0,e),i=za.StringNode.bind(void 0,t);e.register("recipe",za.Mod(za.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[za.Switch]:[{push:"type"}],[za.Case]:{"minecraft:crafting_shaped":{group:za.Opt(i({enum:"recipe_group",additional:!0})),pattern:za.ListNode(i()),key:za.MapNode(i(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:za.Opt(i()),ingredients:za.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:za.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:za.Opt(za.NumberNode()),cookingtime:za.Opt(za.Mod(za.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:za.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:za.Opt(za.NumberNode()),cookingtime:za.Opt(za.Mod(za.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:za.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:za.Opt(za.NumberNode()),cookingtime:za.Opt(za.Mod(za.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:za.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:za.Opt(za.NumberNode()),cookingtime:za.Opt(za.Mod(za.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:za.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:za.NumberNode({integer:!0})},"minecraft:smithing":{group:za.Opt(i()),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",za.Mod(za.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:za.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",za.Mod(za.ObjectNode({item:za.Opt(i({validator:"resource",params:{pool:"item"}})),tag:za.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",za.Mod(za.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:za.Opt(za.Mod(za.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Ua={};Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.initTagsSchemas=void 0;const $a=Le;Ua.initTagsSchemas=function(e,t){const r=$a.StringNode.bind(void 0,t),i=e=>$a.Mod($a.ObjectNode({replace:$a.Opt($a.BooleanNode()),values:$a.ListNode($a.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:$a.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:$a.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",i("block")),e.register("entity_type_tag",i("entity_type")),e.register("fluid_tag",i("fluid")),e.register("function_tag",i("$function")),e.register("game_event_tag",i("game_event")),e.register("item_tag",i("item"))};var qa={};Object.defineProperty(qa,"__esModule",{value:!0}),qa.initTextComponentSchemas=void 0;const Xa=Le;qa.initTextComponentSchemas=function(e,t){const r=Xa.Reference.bind(void 0,e),i=Xa.StringNode.bind(void 0,t),n=e=>{var t;return e instanceof Array?n(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",Xa.Mod(Xa.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:n(e[0])}:"object"==typeof e?e:{text:n(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:n},{type:"number",node:Xa.NumberNode(),change:e=>{const t=parseFloat(n(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:Xa.BooleanNode(),change:e=>{const t=n(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:Xa.Opt(i()),font:Xa.Opt(i()),bold:Xa.Opt(Xa.BooleanNode()),italic:Xa.Opt(Xa.BooleanNode()),underlined:Xa.Opt(Xa.BooleanNode()),strikethrough:Xa.Opt(Xa.BooleanNode()),obfuscated:Xa.Opt(Xa.BooleanNode()),insertion:Xa.Opt(i()),clickEvent:Xa.Opt(Xa.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[Xa.Switch]:[{push:"action"}],[Xa.Case]:{change_page:{value:i()},copy_to_clipboard:{value:i()},open_file:{value:i()},open_url:{value:i()},run_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:Xa.Opt(Xa.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[Xa.Switch]:[{push:"action"}],[Xa.Case]:{show_text:{value:Xa.Opt(r("text_component")),contents:Xa.Opt(r("text_component"))},show_item:{value:Xa.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:Xa.Opt(Xa.ObjectNode({id:i({validator:"resource",params:{pool:"item"}}),count:Xa.Opt(Xa.NumberNode({integer:!0})),tag:Xa.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:Xa.Opt(Xa.ObjectNode({name:Xa.Opt(i()),type:Xa.Opt(i()),id:Xa.Opt(i())})),contents:Xa.Opt(Xa.Mod(Xa.ObjectNode({name:Xa.Opt(r("text_component")),type:i({validator:"resource",params:{pool:"entity_type"}}),id:i({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:Xa.Opt(r("text_component_list"))};e.register("text_component_object",Xa.Mod(Xa.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:Xa.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:Xa.ObjectNode(s({translate:i(),with:Xa.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:Xa.ObjectNode(s({score:Xa.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:Xa.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:Xa.ObjectNode(s({selector:i({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:Xa.Opt(r("text_component"))},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:Xa.ObjectNode(s({keybind:i({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:Xa.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:Xa.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:Xa.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:Xa.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:Xa.Opt(Xa.BooleanNode()),separator:Xa.Opt(r("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",Xa.Mod(Xa.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var Ja={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.initBiomeSchemas=void 0;const Ga=Le;Ha.initBiomeSchemas=function(e,t){const r=Ga.StringNode.bind(void 0,t);e.register("biome",Ga.Mod(Ga.ObjectNode({temperature:Ga.NumberNode(),downfall:Ga.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:Ga.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),creature_spawn_probability:Ga.Opt(Ga.NumberNode({min:0,max:1})),effects:Ga.ObjectNode({sky_color:Ga.NumberNode({color:!0}),fog_color:Ga.NumberNode({color:!0}),water_color:Ga.NumberNode({color:!0}),water_fog_color:Ga.NumberNode({color:!0}),grass_color:Ga.Opt(Ga.NumberNode({color:!0})),foliage_color:Ga.Opt(Ga.NumberNode({color:!0})),grass_color_modifier:Ga.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:Ga.Opt(r()),mood_sound:Ga.Opt(Ga.ObjectNode({sound:r(),tick_delay:Ga.NumberNode({integer:!0}),block_search_extent:Ga.NumberNode({integer:!0}),offset:Ga.NumberNode()})),additions_sound:Ga.Opt(Ga.ObjectNode({sound:r(),tick_chance:Ga.NumberNode({min:0,max:1})})),music:Ga.Opt(Ga.ObjectNode({sound:r(),min_delay:Ga.NumberNode({integer:!0,min:0}),max_delay:Ga.NumberNode({integer:!0,min:0}),replace_current_music:Ga.BooleanNode()})),particle:Ga.Opt(Ga.ObjectNode({options:Ga.ObjectNode({type:r()}),probability:Ga.NumberNode({min:0,max:1})}))}),spawners:Ga.MapNode(r({enum:["monster","creature","ambient","axolotls","underground_water_creature","water_creature","water_ambient","misc"]}),Ga.Mod(Ga.ListNode(Ga.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:Ga.NumberNode({integer:!0}),minCount:Ga.NumberNode({integer:!0}),maxCount:Ga.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:Ga.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),Ga.Mod(Ga.ObjectNode({energy_budget:Ga.NumberNode(),charge:Ga.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:Ga.MapNode(r({enum:["air","liquid"]}),Ga.Mod(Ga.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:Ga.ListNode(Ga.Mod(Ga.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 Wa={};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.initCarverSchemas=void 0;const Za=Le,Ya=ga;Wa.initCarverSchemas=function(e,t){const r=Za.Reference.bind(void 0,e),i=Za.StringNode.bind(void 0,t),n={vertical_rotation:Ya.FloatProvider(),shape:Za.ObjectNode({distance_factor:Ya.FloatProvider(),thickness:Ya.FloatProvider(),width_smoothness:Za.NumberNode({integer:!0,min:0}),horizontal_radius_factor:Ya.FloatProvider(),vertical_radius_default_factor:Za.NumberNode(),vertical_radius_center_factor:Za.NumberNode()})},o={horizontal_radius_multiplier:Ya.FloatProvider(),vertical_radius_multiplier:Ya.FloatProvider(),floor_level:Ya.FloatProvider({min:-1,max:1})};e.register("configured_carver",Za.Mod(Za.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/carver"}}),config:Za.ObjectNode({probability:Za.NumberNode({min:0,max:1}),y:r("height_provider"),yScale:Ya.FloatProvider(),lava_level:r("vertical_anchor"),debug_settings:Za.Opt(Za.ObjectNode({debug_mode:Za.Opt(Za.BooleanNode()),air_state:Za.Opt(r("block_state")),water_state:Za.Opt(r("block_state")),lava_state:Za.Opt(r("block_state")),barrier_state:Za.Opt(r("block_state"))})),[Za.Switch]:["pop",{push:"type"}],[Za.Case]:{"minecraft:canyon":n,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.initDecoratorSchemas=void 0;const Va=Le,Qa=ga;Ka.initDecoratorSchemas=function(e,t){const r=Va.Reference.bind(void 0,e),i=Va.StringNode.bind(void 0,t);e.register("decorator",Va.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/placement_modifier_type"}}),[Va.Switch]:[{push:"type"}],[Va.Case]:{"minecraft:block_predicate_filter":{predicate:r("block_predicate_worldgen")},"minecraft:carving_mask":{step:i({enum:"generation_step"})},"minecraft:rarity_filter":{chance:Va.NumberNode({integer:!0,min:0})},"minecraft:count":{count:Qa.IntProvider({min:0,max:256})},"minecraft:count_on_every_layer":{count:Qa.IntProvider({min:0,max:256})},"minecraft:noise_threshold_count":{noise_level:Va.NumberNode(),below_noise:Va.NumberNode({integer:!0}),above_noise:Va.NumberNode({integer:!0})},"minecraft:noise_based_count":{noise_to_count_ratio:Va.NumberNode({integer:!0}),noise_factor:Va.NumberNode(),noise_offset:Va.Opt(Va.NumberNode())},"minecraft:environment_scan":{direction_of_search:i({enum:["up","down"]}),max_steps:Va.NumberNode({integer:!0,min:1,max:32}),target_condition:r("block_predicate_worldgen"),allowed_search_condition:Va.Opt(r("block_predicate_worldgen"))},"minecraft:heightmap":{heightmap:i({enum:"heightmap_type"})},"minecraft:height_range":{height:r("height_provider")},"minecraft:random_offset":{xz_spread:Qa.IntProvider({min:-16,max:16}),y_spread:Qa.IntProvider({min:-16,max:16})},"minecraft:surface_relative_threshold_filter":{heightmap:i({enum:"heightmap_type"}),min_inclusive:Va.Opt(Va.NumberNode({integer:!0})),max_inclusive:Va.Opt(Va.NumberNode({integer:!0}))},"minecraft:surface_water_depth_filter":{max_water_depth:Va.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"}))};var es={},ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.initProcessorListSchemas=ts.Processors=void 0;const rs=Le;ts.initProcessorListSchemas=function(e,t){const r=rs.Reference.bind(void 0,e),i=rs.StringNode.bind(void 0,t);ts.Processors=rs.ChoiceNode([{type:"string",node:i({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",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:i({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:i({enum:"heightmap_type"}),offset:rs.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:i({validator:"resource",params:{pool:"$tag/block"}})},"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(i({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 n={min_dist:rs.Opt(rs.NumberNode({min:0,max:255,integer:!0})),max_dist:rs.Opt(rs.NumberNode({min:0,max:255,integer:!0})),min_chance:rs.Opt(rs.NumberNode({min:0,max:1})),max_chance:rs.Opt(rs.NumberNode({min:0,max:1}))};e.register("pos_rule_test",rs.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[rs.Switch]:[{push:"predicate_type"}],[rs.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},n),"minecraft:linear_pos":n}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",rs.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[rs.Switch]:[{push:"predicate_type"}],[rs.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:i({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:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(es,"__esModule",{value:!0}),es.initFeatureSchemas=void 0;const is=Le,ns=ga,os=ts;es.initFeatureSchemas=function(e,t){const r=is.Reference.bind(void 0,e),i=is.StringNode.bind(void 0,t),n=is.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"}),o=is.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},{type:"object",node:r("placed_feature")}],{choiceContext:"placed_feature"}),a={tries:is.Opt(is.NumberNode({integer:!0,min:1})),xz_spread:is.Opt(is.NumberNode({integer:!0,min:0})),y_spread:is.Opt(is.NumberNode({integer:!0,min:0})),feature:o},l={state:r("block_state"),radius:ns.IntProvider({min:0,max:8}),half_height:is.NumberNode({integer:!0,min:0,max:4}),targets:is.ListNode(r("block_state"))},d={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:is.Opt(is.NumberNode({integer:!0}))},u=is.ObjectNode({target:r("rule_test"),state:r("block_state")}),p={size:is.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:is.NumberNode({min:0,max:1}),targets:is.ListNode(u)},m={surface:i({enum:"cave_surface"}),depth:ns.IntProvider({min:1,max:128}),vertical_range:is.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:is.NumberNode({min:0,max:1}),extra_edge_column_chance:is.NumberNode({min:0,max:1}),vegetation_chance:is.NumberNode({min:0,max:1}),xz_radius:ns.IntProvider(),replaceable:i({validator:"resource",params:{pool:"$tag/block"}}),ground_state:r("block_state_provider"),vegetation_feature:o};e.register("configured_feature",is.Mod(is.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:is.ObjectNode({[is.Switch]:["pop",{push:"type"}],[is.Case]:{"minecraft:bamboo":{probability:is.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:ns.IntProvider({min:0,max:3}),height:ns.IntProvider({min:1,max:10})},"minecraft:block_column":{direction:i({enum:["up","down","north","east","south","west"]}),allowed_placement:r("block_predicate_worldgen"),prioritize_tip:is.BooleanNode(),layers:is.ListNode(is.ObjectNode({height:ns.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:ns.IntProvider({min:0,max:16}),rim_size:ns.IntProvider({min:0,max:16})},"minecraft:disk":l,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:is.NumberNode({integer:!0,min:1,max:512}),height:ns.IntProvider({min:0,max:128}),radius:ns.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:is.NumberNode({integer:!0,min:0,max:64}),height_deviation:is.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:ns.IntProvider({min:0,max:128}),density:ns.FloatProvider({min:0,max:2}),wetness:ns.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:is.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:is.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:is.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:is.BooleanNode(),exit:is.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:is.Opt(is.BooleanNode()),crystal_beam_target:is.Opt(r("block_pos")),spikes:is.ListNode(is.ObjectNode({centerX:is.Opt(is.NumberNode({integer:!0})),centerZ:is.Opt(is.NumberNode({integer:!0})),radius:is.Opt(is.NumberNode({integer:!0})),height:is.Opt(is.NumberNode({integer:!0})),guarded:is.Opt(is.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:is.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":a,"minecraft:forest_rock":{state:r("block_state")},"minecraft:fossil":{max_empty_corners_allowed:is.NumberNode({integer:!0,min:0,max:7}),fossil_structures:is.ListNode(i({validator:"resource",params:{pool:"$structure"}})),overlay_structures:is.ListNode(i({validator:"resource",params:{pool:"$structure"}})),fossil_processors:os.Processors,overlay_processors:os.Processors},"minecraft:geode":{blocks:is.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:is.ListNode(r("block_state")),cannot_replace:i({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:i({validator:"resource",params:{pool:"$tag/block"}})}),layers:is.ObjectNode({filling:is.Opt(is.NumberNode({min:.01,max:50})),inner_layer:is.Opt(is.NumberNode({min:.01,max:50})),middle_layer:is.Opt(is.NumberNode({min:.01,max:50})),outer_layer:is.Opt(is.NumberNode({min:.01,max:50}))}),crack:is.ObjectNode({generate_crack_chance:is.Opt(is.NumberNode({min:0,max:1})),base_crack_size:is.Opt(is.NumberNode({min:0,max:5})),crack_point_offset:is.Opt(is.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:is.Opt(is.NumberNode({min:0,max:1})),use_potential_placements_chance:is.Opt(is.NumberNode({min:0,max:1})),use_alternate_layer0_chance:is.Opt(is.NumberNode({min:0,max:1})),placements_require_layer0_alternate:is.Opt(is.BooleanNode()),outer_wall_distance:is.Opt(ns.IntProvider({min:1,max:20})),distribution_points:is.Opt(ns.IntProvider({min:1,max:20})),point_offset:is.Opt(ns.IntProvider({min:0,max:10})),min_gen_offset:is.Opt(is.NumberNode({integer:!0})),max_gen_offset:is.Opt(is.NumberNode({integer:!0})),invalid_blocks_threshold:is.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:is.Opt(is.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:is.Opt(is.NumberNode({min:0,max:1})),can_place_on_floor:is.Opt(is.BooleanNode()),can_place_on_ceiling:is.Opt(is.BooleanNode()),can_place_on_wall:is.Opt(is.BooleanNode()),can_be_placed_on:is.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:huge_brown_mushroom":d,"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:is.Opt(is.BooleanNode())},"minecraft:huge_red_mushroom":d,"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:is.Opt(is.NumberNode({integer:!0,min:1,max:512})),column_radius:ns.IntProvider({min:0,max:60}),height_scale:ns.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:is.NumberNode({min:0,max:1}),stalactite_bluntness:ns.FloatProvider({min:.1,max:10}),stalagmite_bluntness:ns.FloatProvider({min:.1,max:10}),wind_speed:ns.FloatProvider({min:0,max:2}),min_radius_for_wind:is.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:is.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider"),spread_width:is.NumberNode({integer:!0,min:1}),spread_height:is.NumberNode({integer:!0,min:1})},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:ns.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":a,"minecraft:ore":p,"minecraft:pointed_dripstone":{chance_of_taller_dripstone:is.Opt(is.NumberNode({min:0,max:1})),chance_of_directional_spread:is.Opt(is.NumberNode({min:0,max:1})),chance_of_spread_radius2:is.Opt(is.NumberNode({min:0,max:1})),chance_of_spread_radius3:is.Opt(is.NumberNode({min:0,max:1}))},"minecraft:random_patch":a,"minecraft:random_boolean_selector":{feature_false:o,feature_true:o},"minecraft:random_selector":{features:is.ListNode(is.ObjectNode({chance:is.NumberNode({min:0,max:1}),feature:o})),default:o},"minecraft:replace_single_block":{targets:is.ListNode(u)},"minecraft:root_system":{required_vertical_space_for_tree:is.NumberNode({integer:!0,min:1,max:64}),root_radius:is.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:is.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:is.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:is.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:is.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:is.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:is.NumberNode({integer:!0,min:1,max:64}),root_replaceable:i({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:ns.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:is.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state_provider")},"minecraft:simple_random_selector":{features:is.ListNode(o)},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:is.NumberNode({integer:!0}),hole_count:is.NumberNode({integer:!0}),requires_block_below:is.BooleanNode(),valid_blocks:is.ListNode(i({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:is.Opt(is.BooleanNode()),force_dirt:is.Opt(is.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:is.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:is.NumberNode({integer:!0,min:0,max:32}),height_rand_a:is.NumberNode({integer:!0,min:0,max:24}),height_rand_b:is.NumberNode({integer:!0,min:0,max:24}),[is.Switch]:[{push:"type"}],[is.Case]:{"minecraft:bending_trunk_placer":{bend_length:ns.IntProvider({min:1,max:64}),min_height_for_leaves:is.Opt(is.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:is.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:ns.IntProvider({min:0,max:16}),offset:ns.IntProvider({min:0,max:16}),[is.Switch]:[{push:"type"}],[is.Case]:{"minecraft:blob_foliage_placer":{height:is.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:is.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:is.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:is.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:ns.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:ns.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:ns.IntProvider({min:1,max:512}),leaf_placement_attempts:is.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:ns.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:is.ListNode(is.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[is.Switch]:[{push:"type"}],[is.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:is.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:is.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:twisting_vines":{spread_width:is.NumberNode({integer:!0,min:1}),spread_height:is.NumberNode({integer:!0,min:1}),max_height:is.NumberNode({integer:!0,min:1})},"minecraft:underwater_magma":{floor_search_range:is.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:is.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:is.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",is.Mod(is.ObjectNode({feature:n,placement:is.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",is.Mod(is.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:is.Opt(is.NumberNode({min:0,max:80})),[is.Switch]:[{push:"type"}],[is.Case]:{"minecraft:two_layers_feature_size":{limit:is.Opt(is.NumberNode({integer:!0,min:0,max:81})),lower_size:is.Opt(is.NumberNode({integer:!0,min:0,max:16})),upper_size:is.Opt(is.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:is.Opt(is.NumberNode({integer:!0,min:0,max:80})),upper_limit:is.Opt(is.NumberNode({integer:!0,min:0,max:80})),lower_size:is.Opt(is.NumberNode({integer:!0,min:0,max:16})),middle_size:is.Opt(is.NumberNode({integer:!0,min:0,max:16})),upper_size:is.Opt(is.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})}));const _={seed:is.NumberNode({integer:!0}),noise:r("noise_parameters"),scale:is.Mod(is.NumberNode({min:Number.MIN_VALUE}),{default:()=>1})};e.register("block_state_provider",is.Mod(is.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[is.Switch]:[{push:"type"}],[is.Case]:{"minecraft:dual_noise_provider":c(s({},_),{variety:ns.InclusiveRange({integer:!0,min:1,max:64}),slow_noise:r("noise_parameters"),slow_scale:is.Mod(is.NumberNode({min:Number.MIN_VALUE}),{default:()=>1}),states:is.ListNode(r("block_state"))}),"minecraft:noise_threshold_provider":c(s({},_),{threshold:is.NumberNode({min:-1,max:1}),high_chance:is.NumberNode({min:0,max:1}),default_state:r("block_state"),low_states:is.ListNode(r("block_state")),high_states:is.ListNode(r("block_state"))}),"minecraft:noise_provider":c(s({},_),{states:is.ListNode(r("block_state"))}),"minecraft:randomized_int_state_provider":{property:i(),values:ns.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:is.ListNode(is.Mod(is.ObjectNode({weight:is.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})}));const h={offset:is.Opt(is.ListNode(is.NumberNode({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))};e.register("block_predicate_worldgen",is.Mod(is.ObjectNode({type:i({validator:"resource",params:{pool:"block_predicate_type"}}),[is.Switch]:[{push:"type"}],[is.Case]:{"minecraft:all_of":{predicates:is.ListNode(r("block_predicate_worldgen"))},"minecraft:any_of":{predicates:is.ListNode(r("block_predicate_worldgen"))},"minecraft:has_sturdy_face":c(s({},h),{direction:i({enum:"direction"})}),"minecraft:inside_world_bounds":s({},h),"minecraft:matching_block_tag":c(s({},h),{tag:i({validator:"resource",params:{pool:"$tag/block"}})}),"minecraft:matching_blocks":c(s({},h),{blocks:is.ListNode(i({validator:"resource",params:{pool:"block"}}))}),"minecraft:matching_fluids":c(s({},h),{fluids:is.ListNode(i({validator:"resource",params:{pool:"fluid"}}))}),"minecraft:not":{predicate:r("block_predicate_worldgen")},"minecraft:would_survive":c(s({},h),{state:r("block_state")})}},{context:"block_predicate"}),{default:()=>({type:"minecraft:true"})}))};var as={};Object.defineProperty(as,"__esModule",{value:!0}),as.initNoiseSettingsSchemas=void 0;const ss=Le,cs=ga;as.initNoiseSettingsSchemas=function(e,t){const r=ss.Reference.bind(void 0,e),i=ss.StringNode.bind(void 0,t);e.register("noise_settings",ss.Mod(ss.ObjectNode({sea_level:ss.NumberNode({integer:!0}),disable_mob_generation:ss.BooleanNode(),noise_caves_enabled:ss.BooleanNode(),noodle_caves_enabled:ss.BooleanNode(),aquifers_enabled:ss.BooleanNode(),ore_veins_enabled:ss.BooleanNode(),legacy_random_source:ss.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:ss.ObjectNode({min_y:ss.NumberNode({integer:!0,min:-2048,max:2047}),height:ss.NumberNode({integer:!0,min:0,max:4096}),size_horizontal:ss.NumberNode({integer:!0}),size_vertical:ss.NumberNode({integer:!0}),island_noise_override:ss.Opt(ss.BooleanNode()),amplified:ss.Opt(ss.BooleanNode()),large_biomes:ss.Opt(ss.BooleanNode()),sampling:ss.ObjectNode({xz_scale:ss.NumberNode(),y_scale:ss.NumberNode(),xz_factor:ss.NumberNode(),y_factor:ss.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:()=>cs.DefaultNoiseSettings,validate:(t,r,i,n)=>{var o,a,s,c;return(null===(o=null==(r=e.validate(t,r,i,n))?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&&i.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&&i.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&&i.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),r}})))),e.register("noise_slider",ss.ObjectNode({target:ss.NumberNode(),size:ss.NumberNode({integer:!0,min:0}),offset:ss.NumberNode({integer:!0})})),e.register("generator_structures",ss.ObjectNode({stronghold:ss.Opt(ss.ObjectNode({distance:ss.NumberNode({integer:!0,min:0,max:1023}),spread:ss.NumberNode({integer:!0,min:0,max:1023}),count:ss.NumberNode({integer:!0,min:1,max:4095})})),structures:ss.MapNode(i({validator:"resource",params:{pool:"worldgen/structure_feature"}}),ss.Mod(ss.ObjectNode({spacing:ss.NumberNode({integer:!0,min:0,max:4096}),separation:ss.Mod(ss.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,i,n)=>(t.pop().push("spacing").get()<=r&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,r,i,n))}))),salt:ss.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",ss.Mod(ss.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:ss.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})})),e.register("terrain_shaper",ss.Mod(ss.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",ss.Mod(ss.ChoiceNode([{type:"number",node:ss.NumberNode()},{type:"object",node:ss.ObjectNode({coordinate:ss.Mod(i({enum:["continents","erosion","weirdness","ridges"]}),{default:()=>"continents"}),points:ss.ListNode(ss.ObjectNode({location:ss.NumberNode(),derivative:ss.NumberNode(),value:r("terrain_spline")}))},{category:"function"})}],{context:"terrain_spline",choiceContext:"terrain_spline"}),{default:()=>0}))};var ls={};Object.defineProperty(ls,"__esModule",{value:!0}),ls.initStructureFeatureSchemas=void 0;const ds=Le;ls.initStructureFeatureSchemas=function(e,t){const r=ds.StringNode.bind(void 0,t),i=ds.Reference.bind(void 0,e),n={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:ds.NumberNode({integer:!0})};e.register("configured_structure_feature",ds.Mod(ds.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:ds.ObjectNode({[ds.Switch]:["pop",{push:"type"}],[ds.Case]:{"minecraft:bastion_remnant":n,"minecraft:buried_treasure":{probability:ds.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:ds.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:i("height_provider")},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:ds.NumberNode({min:0,max:1}),cluster_probability:ds.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:ds.Opt(ds.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.initSurfaceRuleSchemas=void 0;const ps=Le;us.initSurfaceRuleSchemas=function(e,t){const r=ps.StringNode.bind(void 0,t),i=ps.Reference.bind(void 0,e);e.register("material_rule",ps.Mod(ps.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/material_rule"}}),[ps.Switch]:[{push:"type"}],[ps.Case]:{"minecraft:block":{result_state:i("block_state")},"minecraft:condition":{if_true:i("material_condition"),then_run:i("material_rule")},"minecraft:sequence":{sequence:ps.ListNode(i("material_rule"))}}},{context:"material_rule",category:"pool"}),{default:()=>({type:"minecraft:block",result_state:{Name:"minecraft:stone"}})})),e.register("material_condition",ps.Mod(ps.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/material_condition"}}),[ps.Switch]:[{push:"type"}],[ps.Case]:{"minecraft:biome":{biome_is:ps.ListNode(r({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:noise_threshold":{noise:r({validator:"resource",params:{pool:"$worldgen/noise"}}),min_threshold:ps.NumberNode(),max_threshold:ps.NumberNode()},"minecraft:not":{invert:i("material_condition")},"minecraft:stone_depth":{offset:ps.NumberNode({integer:!0}),surface_type:r({enum:"cave_surface"}),add_surface_depth:ps.BooleanNode(),add_surface_secondary_depth:ps.BooleanNode()},"minecraft:vertical_gradient":{random_name:r(),true_at_and_below:i("vertical_anchor"),false_at_and_above:i("vertical_anchor")},"minecraft:water":{offset:ps.NumberNode({integer:!0}),surface_depth_multiplier:ps.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:ps.BooleanNode()},"minecraft:y_above":{anchor:i("vertical_anchor"),surface_depth_multiplier:ps.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:ps.BooleanNode()}}},{context:"material_condition"}),{default:()=>({type:"minecraft:biome",is_biome:"minecraft:plains"})}))};var ms={};Object.defineProperty(ms,"__esModule",{value:!0}),ms.initTemplatePoolSchemas=void 0;const _s=Le,hs=ts;ms.initTemplatePoolSchemas=function(e,t){const r=_s.Reference.bind(void 0,e),i=_s.StringNode.bind(void 0,t);e.register("template_pool",_s.Mod(_s.ObjectNode({fallback:i(),elements:_s.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",_s.Mod(_s.ObjectNode({weight:_s.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",_s.Mod(_s.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[_s.Switch]:[{push:"element_type"}],[_s.Case]:{"minecraft:feature_pool_element":{feature:i({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},"minecraft:legacy_single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:hs.Processors},"minecraft:list_pool_element":{elements:_s.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:hs.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.initWorldgenSchemas=void 0;const fs=Ha,gs=Wa,bs=Ka,ys=es,vs=as,Ns=ts,xs=ls,ks=us,ws=ms;Ja.initWorldgenSchemas=function(e,t){Ns.initProcessorListSchemas(e,t),fs.initBiomeSchemas(e,t),gs.initCarverSchemas(e,t),bs.initDecoratorSchemas(e,t),ys.initFeatureSchemas(e,t),vs.initNoiseSettingsSchemas(e,t),xs.initStructureFeatureSchemas(e,t),ks.initSurfaceRuleSchemas(e,t),ws.initTemplatePoolSchemas(e,t)};var Os={};Object.defineProperty(Os,"__esModule",{value:!0}),Os.initWorldSettingsSchemas=void 0;const Ss=Le;Os.initWorldSettingsSchemas=function(e,t){const r=Ss.Reference.bind(void 0,e),i=Ss.StringNode.bind(void 0,t);e.register("world_settings",Ss.Mod(Ss.ObjectNode({generate_features:Ss.BooleanNode(),bonus_chest:Ss.BooleanNode(),seed:Ss.NumberNode({integer:!0}),dimensions:Ss.MapNode(i({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:multi_noise",preset:"minecraft:overworld"},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",preset:"minecraft:nether"},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(sa,"__esModule",{value:!0}),sa.initSchemas=void 0;const As=ca,Ds=da,Cs=ga,Es=ba,Fs=Na,js=wa,Bs=Aa,Ms=Ea,Ts=Ta,Ls=Pa,Ps=Ra,Is=Ua,Rs=qa,zs=Ja,Us=Os;sa.initSchemas=function(e,t){Cs.initCommonSchemas(e,t),As.initAdvancementSchemas(e,t),Ds.initAssetsSchemas(e,t),Es.initConditionSchemas(e,t),js.initDimensionTypeSchemas(e,t),Fs.initDimensionSchemas(e,t),Bs.initItemModifierSchemas(e,t),Ms.initLootTableSchemas(e,t),Ts.initPackMcmetaSchemas(e,t),Ls.initPredicatesSchemas(e,t),Ps.initRecipeSchemas(e,t),Is.initTagsSchemas(e,t),Rs.initTextComponentSchemas(e,t),zs.initWorldgenSchemas(e,t),Us.initWorldSettingsSchemas(e,t)};var $s=Te&&Te.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),qs=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Xs=Te&&Te.__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)&&$s(t,e,r);return qs(t,e),t};Object.defineProperty(oa,"__esModule",{value:!0});var Js=oa.getSchemas=oa.getCollections=void 0;const Hs=Le,Gs=aa,Ws=sa;var Zs=oa.lootContext=Xs(Fa);var Ys=oa.getCollections=function(){const e=new Hs.CollectionRegistry;return Gs.initCollections(e),e};Js=oa.getSchemas=function(e){const t=new Hs.SchemaRegistry;return Ws.initSchemas(t,e),t};var Ks=Object.freeze(Object.assign(Object.create(null),oa,{[Symbol.toStringTag]:"Module",get getSchemas(){return Js},get getCollections(){return Ys},lootContext:Zs,default:oa})),Vs={},Qs={};Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.initCollections=void 0,Qs.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 ec={},tc={};Object.defineProperty(tc,"__esModule",{value:!0}),tc.initAdvancementSchemas=void 0;const rc=Le;tc.initAdvancementSchemas=function(e,t){const r=rc.Reference.bind(void 0,e),i=rc.StringNode.bind(void 0,t),n=rc.ChoiceNode([{type:"object",node:rc.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:rc.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",rc.Mod(rc.ObjectNode({display:rc.Opt(rc.Mod(rc.ObjectNode({icon:rc.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),nbt:rc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:rc.Opt(i()),frame:rc.Opt(i({enum:["task","challenge","goal"]})),show_toast:rc.Opt(rc.BooleanNode()),announce_to_chat:rc.Opt(rc.BooleanNode()),hidden:rc.Opt(rc.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:rc.Opt(i({validator:"resource",params:{pool:"$advancement"}})),criteria:rc.MapNode(i(),r("advancement_criteria")),requirements:rc.Opt(rc.ListNode(rc.ListNode(i()))),rewards:rc.Opt(rc.ObjectNode({function:rc.Opt(i({validator:"resource",params:{pool:"$function"}})),loot:rc.Opt(rc.ListNode(i({validator:"resource",params:{pool:"$loot_table"}}))),recipes:rc.Opt(rc.ListNode(i({validator:"resource",params:{pool:"$recipe"}}))),experience:rc.Opt(rc.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",rc.ObjectNode({trigger:i({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:rc.Opt(rc.ObjectNode({player:rc.Mod(n,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[rc.Switch]:["pop",{push:"trigger"}],[rc.Case]:{"minecraft:bee_nest_destroyed":{block:rc.Opt(i({validator:"resource",params:{pool:"block"}})),num_bees_inside:rc.Opt(rc.NumberNode({integer:!0})),item:rc.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:n,partner:n,child:n},"minecraft:brewed_potion":{potion:rc.Opt(i({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:rc.Opt(i({validator:"resource",params:{pool:"$dimension"}})),to:rc.Opt(i({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:rc.Opt(rc.ListNode(n))},"minecraft:construct_beacon":{level:r("int_bounds")},"minecraft:consume_item":{item:rc.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:n,zombie:n},"minecraft:effects_changed":{effects:rc.Opt(rc.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),rc.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds")}))),source:rc.Opt(n)},"minecraft:enter_block":{block:rc.Opt(i({validator:"resource",params:{pool:"block"}})),state:rc.Opt(rc.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:r("int_bounds"),item:rc.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:rc.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:n,killing_blow:rc.Opt(r("damage_source_predicate"))},"minecraft:fall_from_height":{start_position:rc.Opt(r("location_predicate")),distance:rc.Opt(r("distance_predicate"))},"minecraft:filled_bucket":{item:rc.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:n,item:rc.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:rc.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:rc.Opt(rc.ObjectNode({empty:r("int_bounds"),occupied:r("int_bounds"),full:r("int_bounds")})),items:rc.Opt(rc.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:r("int_bounds"),durability:r("int_bounds"),item:rc.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:rc.Opt(r("item_predicate")),location:rc.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:r("int_bounds"),victims:rc.Opt(rc.ListNode(n))},"minecraft:levitation":{distance:rc.Opt(r("distance_predicate")),duration:r("int_bounds")},"minecraft:lightning_strike":{lightning:n,bystander:n},"minecraft:location":{location:rc.Opt(r("location_predicate"))},"minecraft:nether_travel":{start_position:rc.Opt(r("location_predicate")),distance:rc.Opt(r("distance_predicate"))},"minecraft:placed_block":{block:rc.Opt(i({validator:"resource",params:{pool:"block"}})),state:rc.Opt(rc.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:rc.Opt(r("item_predicate")),location:rc.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:i({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:rc.Opt(r("damage_predicate")),entity:n},"minecraft:player_interacted_with_entity":{item:rc.Opt(r("item_predicate")),entity:n},"minecraft:player_killed_entity":{entity:n,killing_blow:rc.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:i({validator:"resource",params:{pool:"$recipe"}})},"minecraft:ride_entity_in_lava":{start_position:rc.Opt(r("location_predicate")),distance:rc.Opt(r("distance_predicate"))},"minecraft:slept_in_bed":{location:rc.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:rc.Opt(i({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:rc.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:n},"minecraft:tame_animal":{entity:n},"minecraft:target_hit":{projectile:n,shooter:n,signal_strength:r("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:rc.Opt(r("entity_predicate")),item:rc.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:rc.Opt(r("float_bounds"))},"minecraft:used_totem":{item:rc.Opt(r("item_predicate"))},"minecraft:using_item":{item:rc.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:rc.Opt(r("entity_predicate")),item:rc.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:rc.Opt(r("location_predicate"))}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var ic={},nc={};Object.defineProperty(nc,"__esModule",{value:!0}),nc.initModelSchemas=void 0;const oc=Le;nc.initModelSchemas=function(e,t){oc.Reference.bind(void 0,e);const r=oc.StringNode.bind(void 0,t),i=(e,t,r)=>oc.ListNode(oc.NumberNode({min:t,max:r}),{minLength:e,maxLength:e}),n=oc.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",oc.Mod(oc.ObjectNode({parent:oc.Opt(r({validator:"resource",params:{pool:"$model"}})),ambientocclusion:oc.Opt(oc.BooleanNode()),gui_light:oc.Opt(r({enum:"gui_light"})),textures:oc.Opt(oc.MapNode(r(),n)),elements:oc.Opt(oc.ListNode(oc.ObjectNode({from:i(3,-16,32),to:i(3,-16,32),rotation:oc.Opt(oc.ObjectNode({origin:i(3),axis:r({enum:"axis"}),angle:oc.NumberEnum({values:[-45,-22.5,0,22.5,45]}),rescale:oc.Opt(oc.BooleanNode())})),shade:oc.Opt(oc.BooleanNode()),faces:oc.MapNode(r({enum:"direction"}),oc.ObjectNode({texture:n,uv:oc.Opt(i(4)),cullface:oc.Opt(r({enum:"direction"})),rotation:oc.Opt(oc.NumberNode({integer:!0})),tintindex:oc.Opt(oc.NumberNode({integer:!0}))}))},{context:"model_element"}))),display:oc.Opt(oc.MapNode(r({enum:"display_position"}),oc.ObjectNode({rotation:i(3),translation:i(3,-80,80),scale:i(3,-4,4)},{context:"item_transform"}))),overrides:oc.Opt(oc.ListNode(oc.ObjectNode({predicate:oc.MapNode(r({enum:"item_model_predicates"}),oc.NumberNode()),model:r({validator:"resource",params:{pool:"$model"}})},{context:"model_override"})))},{context:"model"}),{default:()=>({parent:"minecraft:item/generated",textures:{layer0:"minecraft:item/diamond"}})}))};var ac={};Object.defineProperty(ac,"__esModule",{value:!0}),ac.initBlockDefinitionSchemas=void 0;const sc=Le;ac.initBlockDefinitionSchemas=function(e,t){const r=sc.Reference.bind(void 0,e),i=sc.StringNode.bind(void 0,t);e.register("block_definition",sc.Mod(sc.ChoiceNode([{type:"variants",match:e=>void 0!==e.variants,node:sc.ObjectNode({variants:sc.MapNode(i(),r("model_variant"))}),change:e=>({variants:{"":{}}})},{type:"multipart",match:e=>void 0!==e.multipart,node:sc.ObjectNode({multipart:sc.ListNode(sc.ObjectNode({when:sc.Opt(r("multipart_condition")),apply:r("model_variant")}))}),change:e=>({multipart:{when:{},apply:{}}})}],{context:"block_definition"}),{default:()=>({variants:{"":{model:"minecraft:block/stone"}}})}));const n={model:i({validator:"resource",params:{pool:"$model"}}),x:sc.Opt(sc.NumberEnum({integer:!0,values:[0,90,180,270]})),y:sc.Opt(sc.NumberEnum({integer:!0,values:[0,90,180,270]})),uvlock:sc.Opt(sc.BooleanNode())};e.register("model_variant",sc.ChoiceNode([{type:"object",node:sc.ObjectNode(n),change:e=>Array.isArray(e)&&e.length>0?e[0]:{}},{type:"list",node:sc.ListNode(sc.ObjectNode(c(s({},n),{weight:sc.Opt(sc.NumberNode({integer:!0,min:1}))}),{context:"model_variant"})),change:e=>[s({weight:1},e)]}],{context:"model_variant"})),e.register("multipart_condition",sc.ChoiceNode([{type:"object",priority:-1,match:()=>!0,node:sc.MapNode(i(),i()),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:sc.ObjectNode({OR:sc.ListNode(r("multipart_condition"))}),change:e=>({OR:[null!=e?e:{}]})}],{context:"multipart_condition"}))},Object.defineProperty(ic,"__esModule",{value:!0}),ic.initAssetsSchemas=void 0;const cc=nc,lc=ac;ic.initAssetsSchemas=function(e,t){lc.initBlockDefinitionSchemas(e,t),cc.initModelSchemas(e,t)};var dc={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.Tag=e.InclusiveRange=e.IntProvider=e.FloatProvider=e.NoiseSettingsPresets=e.DefaultNoiseSettings=e.DimensionTypePresets=e.DefaultDimensionType=e.FunctionCases=e.ConditionCases=void 0;const t=Le;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={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:{}},e.initCommonSchemas=function(r,i){const n=t.StringNode.bind(void 0,i),o=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:n({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(n(),n(),{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:n({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(n(),n()))},{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,i,o,a,c,l)=>{let d={};a&&Object.keys(l[a]).forEach((e=>{d[e]=t.Mod(l[a][e],{enabled:e=>void 0===e.push("type").get()})}));const u=t.ObjectNode(s({type:t.Mod(t.Opt(n({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:l},d),{context:c,disableSwitchContext:!0}),p=[{type:r,node:l[o][i]}];return a&&p.push({type:"object",priority:-1,node:u}),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 i=t?Object.keys(t):[];return"object"==typeof t&&(0===(null==i?void 0:i.length)||1===(null==i?void 0:i.length)&&"type"===(null==i?void 0:i[0]))},node:u,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:n({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:n({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(n({enum:"entity_source"}),{default:()=>"this"})}})),r.register("nbt_provider",c("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:n({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(n({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")})},"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: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,i,n;return{[e]:null!==(n=null!==(i=null!==(r=t.absolute)&&void 0!==r?r:t.above_bottom)&&void 0!==i?i:t.below_top)&&void 0!==n?n: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.InclusiveRange=e=>t.ObjectNode({min_inclusive:t.NumberNode(e),max_inclusive:t.NumberNode(e)},{context:"range"}),r.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.Tag=e=>t.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:e.resource,allowTag:!0}}),change:e=>{if(Array.isArray(e)&&"string"==typeof e[0]&&!e[0].startsWith("#"))return e[0]}},{type:"list",node:t.ListNode(e.inlineSchema?t.ChoiceNode([{type:"string",node:n({validator:"resource",params:{pool:e.resource}})},{type:"object",node:o(e.inlineSchema)}],{choiceContext:"tag.list"}):n({validator:"resource",params:{pool:e.resource}})),change:e=>"string"!=typeof e||e.startsWith("#")?[]:[e]}],{choiceContext:"tag"}),e.ConditionCases=(e=n({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(o("condition"))},"minecraft:block_state_property":{block:n({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(n(),n(),{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(n({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:n({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:n({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=n({enum:"copy_source"}),a=n({enum:"entity_source"}))=>{const c={"minecraft:apply_bonus":{enchantment:n({validator:"resource",params:{pool:"enchantment"}}),formula:n({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:o("nbt_provider"),ops:t.ListNode(t.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:t.ListNode(n({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(n({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:o("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(n({enum:"map_feature"})),decoration:t.Opt(n({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:n({enum:"banner_pattern"}),color:n({enum:"dye_color"})})),append:t.Opt(t.BooleanNode())},"minecraft:set_contents":{type:n({validator:"resource",params:{pool:"block_entity_type"}}),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(n({validator:"resource",params:{pool:"enchantment"}}),o("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{type:n({validator:"resource",params:{pool:"block_entity_type"}}),name:n({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:n({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_potion":{id:n({validator:"resource",params:{pool:"potion"}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:n({validator:"resource",params:{pool:"mob_effect"}}),duration:o("number_provider")})))}},l={};return i.get("loot_function_type").forEach((t=>{l[t]=s(s({},c[t]),e)})),l},e.DimensionTypePresets=r=>t.ObjectOrPreset(n({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(n({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),r,{"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:{}},"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:{}},"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:{}},"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:{}},"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:{}}})}}(dc);var uc={};Object.defineProperty(uc,"__esModule",{value:!0}),uc.initConditionSchemas=void 0;const pc=Le,mc=dc;uc.initConditionSchemas=function(e,t){const r=pc.Reference.bind(void 0,e),i=pc.StringNode.bind(void 0,t);e.register("predicate",pc.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",pc.Mod(pc.ObjectNode({condition:i({validator:"resource",params:{pool:"loot_condition_type"}}),[pc.Switch]:[{push:"condition"}],[pc.Case]:mc.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var _c={};Object.defineProperty(_c,"__esModule",{value:!0}),_c.initDimensionSchemas=void 0;const hc=Le,fc=dc;_c.initDimensionSchemas=function(e,t){const r=hc.Reference.bind(void 0,e),i=hc.StringNode.bind(void 0,t);e.register("dimension",hc.Mod(hc.ObjectNode({type:fc.DimensionTypePresets(r("dimension_type")),generator:hc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[hc.Switch]:[{push:"type"}],[hc.Case]:{"minecraft:noise":{seed:hc.NumberNode({integer:!0}),settings:fc.NoiseSettingsPresets(r("noise_settings")),biome_source:hc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/biome_source"}}),[hc.Switch]:[{push:"type"}],[hc.Case]:{"minecraft:fixed":{biome:i({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{preset:hc.Opt(i({validator:"resource",params:{pool:["minecraft:overworld","minecraft:nether"]}})),biomes:hc.Mod(hc.ListNode(r("generator_biome")),{enabled:e=>void 0===e.push("preset").get(),default:()=>[{biome:"minecraft:plains"}]})},"minecraft:checkerboard":{scale:hc.Opt(hc.NumberNode({integer:!0,min:0,max:62})),biomes:fc.Tag({resource:"$worldgen/biome"})},"minecraft:the_end":{seed:hc.NumberNode({integer:!0})}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:hc.ObjectNode({biome:hc.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:hc.Opt(hc.BooleanNode()),features:hc.Opt(hc.BooleanNode()),layers:hc.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 n=hc.ChoiceNode([{type:"number",node:hc.NumberNode({min:-2,max:2}),change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:0}},{type:"list",node:hc.ListNode(hc.NumberNode({min:-2,max:2}),{minLength:2,maxLength:2}),change:e=>[null!=e?e:0,null!=e?e:0]}]);e.register("generator_biome",hc.Mod(hc.ObjectNode({biome:i({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:hc.ObjectNode({temperature:n,humidity:n,continentalness:n,erosion:n,weirdness:n,depth:n,offset:hc.NumberNode({min:0,max:1})})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})}))};var gc={};Object.defineProperty(gc,"__esModule",{value:!0}),gc.initDimensionTypeSchemas=void 0;const bc=Le,yc=dc;gc.initDimensionTypeSchemas=function(e,t){const r=bc.StringNode.bind(void 0,t);e.register("dimension_type",bc.Mod(bc.ObjectNode({ultrawarm:bc.BooleanNode(),natural:bc.BooleanNode(),piglin_safe:bc.BooleanNode(),respawn_anchor_works:bc.BooleanNode(),bed_works:bc.BooleanNode(),has_raids:bc.BooleanNode(),has_skylight:bc.BooleanNode(),has_ceiling:bc.BooleanNode(),coordinate_scale:bc.NumberNode({min:1e-5,max:3e7}),ambient_light:bc.NumberNode(),fixed_time:bc.Opt(bc.NumberNode({integer:!0})),logical_height:bc.NumberNode({integer:!0,min:0,max:4096}),effects:bc.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"block",requireTag:!0}}),min_y:bc.NumberNode({integer:!0,min:-2048,max:2047}),height:bc.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>yc.DefaultDimensionType,validate:(t,r,i,n)=>((null==(r=e.validate(t,r,i,n))?void 0:r.min_y)+(null==r?void 0:r.height)>2047&&i.add(t.push("height"),"error.min_y_plus_height",2047),(null==r?void 0:r.logical_height)>(null==r?void 0:r.height)&&i.add(t.push("logical_height"),"error.logical_height"),(null==r?void 0:r.height)%16!=0&&i.add(t.push("height"),"error.height_multiple",16),(null==r?void 0:r.min_y)%16!=0&&i.add(t.push("min_y"),"error.min_y_multiple",16),r)}))))};var vc={};Object.defineProperty(vc,"__esModule",{value:!0}),vc.initItemModifierSchemas=void 0;const Nc=Le,xc=dc;vc.initItemModifierSchemas=function(e,t){const r=Nc.Reference.bind(void 0,e),i=Nc.StringNode.bind(void 0,t);e.register("item_modifier",Nc.ObjectOrList(r("function"),{choiceContext:"function"}));const n={conditions:Nc.Opt(Nc.ListNode(r("condition")))};e.register("function",Nc.Mod(Nc.ObjectNode({function:i({validator:"resource",params:{pool:"loot_function_type"}}),[Nc.Switch]:[{push:"function"}],[Nc.Case]:xc.FunctionCases(n)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var kc={},wc={};Object.defineProperty(wc,"__esModule",{value:!0}),wc.LootFunctions=wc.LootConditions=wc.LootCopySources=wc.LootEntitySources=wc.LootTableTypes=void 0,wc.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]}]]),wc.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),wc.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),wc.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",[]]]),wc.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(kc,"__esModule",{value:!0}),kc.initLootTableSchemas=void 0;const Oc=Le,Sc=wc,Ac=dc;kc.initLootTableSchemas=function(e,t){const r=Oc.Reference.bind(void 0,e),i=Oc.StringNode.bind(void 0,t),n={conditions:Oc.Opt(Oc.ListNode(r("loot_condition")))},o=s({functions:Oc.Opt(Oc.ListNode(r("loot_function")))},n);function a(e,r,i){const n=[],o=i=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>i.includes(e)))}));for(const[t,{allows:a,requires:s}]of Sc.LootTableTypes){const e=[...a,...s];n.push({match:e=>e.getModel().get(new Oc.Path(["type"]))===t,node:i(o(e))})}return n.push({match:e=>!0,node:i(r)}),Oc.SwitchNode(n)}const c=a(Sc.LootConditions,"loot_condition_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),l=a(Sc.LootFunctions,"loot_function_type",(e=>i({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),d=a(Sc.LootEntitySources,"entity_source",(e=>i({enum:e}))),u=a(Sc.LootCopySources,"copy_source",(e=>i({enum:e})));e.register("loot_table",Oc.Mod(Oc.ObjectNode({type:Oc.Opt(i({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Oc.Opt(Oc.ListNode(Oc.Mod(Oc.ObjectNode(s({rolls:r("number_provider"),bonus_rolls:Oc.Opt(r("number_provider")),entries:Oc.ListNode(r("loot_entry"))},o),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Oc.Opt(Oc.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",Oc.Mod(Oc.ObjectNode({type:i({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Oc.Opt(Oc.Mod(Oc.NumberNode({integer:!0,min:1}),p)),quality:Oc.Opt(Oc.Mod(Oc.NumberNode({integer:!0}),p)),[Oc.Switch]:[{push:"type"}],[Oc.Case]:{"minecraft:alternatives":s({children:Oc.ListNode(r("loot_entry"))},o),"minecraft:dynamic":s({name:i()},o),"minecraft:group":s({children:Oc.ListNode(r("loot_entry"))},o),"minecraft:item":s({name:i({validator:"resource",params:{pool:"item"}})},o),"minecraft:loot_table":s({name:i({validator:"resource",params:{pool:"$loot_table"}})},o),"minecraft:sequence":s({children:Oc.ListNode(r("loot_entry"))},o),"minecraft:tag":s({name:i({validator:"resource",params:{pool:"$tag/item"}}),expand:Oc.Opt(Oc.BooleanNode())},o)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Oc.Mod(Oc.ObjectNode({function:l,[Oc.Switch]:[{push:"function"}],[Oc.Case]:Ac.FunctionCases(n,u,d)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Oc.Mod(Oc.ObjectNode({condition:c,[Oc.Switch]:[{push:"condition"}],[Oc.Case]:Ac.ConditionCases(d)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Oc.Mod(Oc.ObjectNode({attribute:i({validator:"resource",params:{pool:"attribute"}}),name:i(),amount:r("number_provider"),operation:i({enum:["addition","multiply_base","multiply_total"]}),slot:Oc.StringOrList(i({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.initPackMcmetaSchemas=void 0;const Cc=Le;Dc.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",Cc.Mod(Cc.ObjectNode({pack:Cc.Mod(Cc.ObjectNode({pack_format:Cc.Mod(Cc.NumberNode({integer:!0,min:8,max:8}),{default:()=>8,canUpdate:(e,t)=>8!==t,update:()=>[{name:"pack_format",params:[8],newValue:8}]}),description:Cc.Reference(e,"text_component")}),{default:()=>({pack_format:8,description:""})})}),{default:()=>({pack:{pack_format:8,description:""}})}))};var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.initPredicatesSchemas=void 0;const Fc=Le;Ec.initPredicatesSchemas=function(e,t){const r=Fc.Reference.bind(void 0,e),i=Fc.StringNode.bind(void 0,t),n=Fc.ChoiceNode([{type:"string",node:i(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Fc.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Fc.ObjectNode({min:Fc.Opt(Fc.NumberNode({integer:!0})),max:Fc.Opt(Fc.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Fc.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Fc.ObjectNode({items:Fc.Opt(Fc.ListNode(i({validator:"resource",params:{pool:"item"}}))),tag:Fc.Opt(i({validator:"resource",params:{pool:"$tag/item"}})),count:r("int_bounds"),durability:r("int_bounds"),potion:Fc.Opt(i({validator:"resource",params:{pool:"potion"}})),nbt:Fc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Fc.Opt(Fc.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Fc.ObjectNode({enchantment:Fc.Opt(i({validator:"resource",params:{pool:"enchantment"}})),levels:r("int_bounds")},{context:"enchantment"})),e.register("block_predicate",Fc.ObjectNode({blocks:Fc.Opt(Fc.ListNode(i({validator:"resource",params:{pool:"block"}}))),tag:Fc.Opt(i({validator:"resource",params:{pool:"$tag/block"}})),nbt:Fc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Fc.Opt(Fc.MapNode(i(),n,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Fc.ObjectNode({fluid:Fc.Opt(i({validator:"resource",params:{pool:"fluid"}})),tag:Fc.Opt(i({validator:"resource",params:{pool:"$tag/fluid"}})),state:Fc.Opt(Fc.MapNode(i(),n))},{context:"fluid"})),e.register("location_predicate",Fc.ObjectNode({position:Fc.Opt(Fc.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds")})),biome:Fc.Opt(i({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Fc.Opt(i({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:Fc.Opt(i({validator:"resource",params:{pool:"$dimension"}})),light:Fc.Opt(Fc.ObjectNode({light:r("int_bounds")})),smokey:Fc.Opt(Fc.BooleanNode()),block:Fc.Opt(r("block_predicate")),fluid:Fc.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Fc.ObjectNode({type:i({validator:"resource",params:{pool:"stat_type"}}),stat:i(),value:r("int_bounds"),[Fc.Switch]:[{push:"type"}],[Fc.Case]:{"minecraft:mined":{stat:i({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:i({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:i({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:i({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",Fc.ObjectNode({gamemode:Fc.Opt(i({enum:"gamemode"})),level:r("int_bounds"),advancements:Fc.Opt(Fc.MapNode(i({validator:"resource",params:{pool:"$advancement"}}),Fc.ChoiceNode([{type:"boolean",node:Fc.BooleanNode(),change:e=>!0},{type:"object",node:Fc.MapNode(i(),Fc.BooleanNode())}]))),recipes:Fc.Opt(Fc.MapNode(i({validator:"resource",params:{pool:"$recipe"}}),Fc.BooleanNode())),stats:Fc.Opt(Fc.ListNode(r("statistic_predicate"))),looking_at:Fc.Opt(r("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",Fc.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds"),ambient:Fc.Opt(Fc.BooleanNode()),visible:Fc.Opt(Fc.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Fc.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",Fc.ObjectNode({type:Fc.Opt(i({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Fc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Fc.Opt(i({validator:"team"})),location:Fc.Opt(r("location_predicate")),stepping_on:Fc.Opt(r("location_predicate")),distance:Fc.Opt(r("distance_predicate")),flags:Fc.Opt(Fc.ObjectNode({is_on_fire:Fc.Opt(Fc.BooleanNode()),is_sneaking:Fc.Opt(Fc.BooleanNode()),is_sprinting:Fc.Opt(Fc.BooleanNode()),is_swimming:Fc.Opt(Fc.BooleanNode()),is_baby:Fc.Opt(Fc.BooleanNode())})),equipment:Fc.Opt(Fc.MapNode(i({enum:"slot"}),r("item_predicate"))),player:Fc.Opt(r("player_predicate")),vehicle:Fc.Opt(r("entity_predicate")),passenger:Fc.Opt(r("entity_predicate")),targeted_entity:Fc.Opt(r("entity_predicate")),lightning_bolt:Fc.Opt(Fc.ObjectNode({blocks_set_on_fire:Fc.Opt(r("int_bounds")),entity_struck:Fc.Opt(r("entity_predicate"))})),fishing_hook:Fc.Opt(Fc.ObjectNode({in_open_water:Fc.Opt(Fc.BooleanNode())})),effects:Fc.Opt(Fc.MapNode(i({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Fc.ObjectNode({is_explosion:Fc.Opt(Fc.BooleanNode()),is_fire:Fc.Opt(Fc.BooleanNode()),is_magic:Fc.Opt(Fc.BooleanNode()),is_projectile:Fc.Opt(Fc.BooleanNode()),is_lightning:Fc.Opt(Fc.BooleanNode()),bypasses_armor:Fc.Opt(Fc.BooleanNode()),bypasses_invulnerability:Fc.Opt(Fc.BooleanNode()),bypasses_magic:Fc.Opt(Fc.BooleanNode()),source_entity:Fc.Opt(r("entity_predicate")),direct_entity:Fc.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Fc.ObjectNode({dealt:r("float_bounds"),taken:r("float_bounds"),blocked:Fc.Opt(Fc.BooleanNode()),source_entity:Fc.Opt(r("entity_predicate")),type:Fc.Opt(r("damage_source_predicate"))},{context:"damage"}))};var jc={};Object.defineProperty(jc,"__esModule",{value:!0}),jc.initRecipeSchemas=void 0;const Bc=Le;jc.initRecipeSchemas=function(e,t){const r=Bc.Reference.bind(void 0,e),i=Bc.StringNode.bind(void 0,t);e.register("recipe",Bc.Mod(Bc.ObjectNode({type:i({validator:"resource",params:{pool:"recipe_serializer"}}),[Bc.Switch]:[{push:"type"}],[Bc.Case]:{"minecraft:crafting_shaped":{group:Bc.Opt(i({enum:"recipe_group",additional:!0})),pattern:Bc.ListNode(i()),key:Bc.MapNode(i(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Bc.Opt(i()),ingredients:Bc.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Bc.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Bc.Opt(Bc.NumberNode()),cookingtime:Bc.Opt(Bc.Mod(Bc.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Bc.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Bc.Opt(Bc.NumberNode()),cookingtime:Bc.Opt(Bc.Mod(Bc.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Bc.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Bc.Opt(Bc.NumberNode()),cookingtime:Bc.Opt(Bc.Mod(Bc.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Bc.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),experience:Bc.Opt(Bc.NumberNode()),cookingtime:Bc.Opt(Bc.Mod(Bc.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Bc.Opt(i()),ingredient:r("recipe_ingredient"),result:i({validator:"resource",params:{pool:"item"}}),count:Bc.NumberNode({integer:!0})},"minecraft:smithing":{group:Bc.Opt(i()),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",Bc.Mod(Bc.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Bc.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Bc.Mod(Bc.ObjectNode({item:Bc.Opt(i({validator:"resource",params:{pool:"item"}})),tag:Bc.Opt(i({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Bc.Mod(Bc.ObjectNode({item:i({validator:"resource",params:{pool:"item"}}),count:Bc.Opt(Bc.Mod(Bc.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.initTagsSchemas=void 0;const Tc=Le;Mc.initTagsSchemas=function(e,t){const r=Tc.StringNode.bind(void 0,t),i=e=>Tc.Mod(Tc.ObjectNode({replace:Tc.Opt(Tc.BooleanNode()),values:Tc.ListNode(Tc.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Tc.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Tc.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",i("block")),e.register("entity_type_tag",i("entity_type")),e.register("fluid_tag",i("fluid")),e.register("function_tag",i("$function")),e.register("game_event_tag",i("game_event")),e.register("item_tag",i("item"))};var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.initTextComponentSchemas=void 0;const Pc=Le;Lc.initTextComponentSchemas=function(e,t){const r=Pc.Reference.bind(void 0,e),i=Pc.StringNode.bind(void 0,t),n=e=>{var t;return e instanceof Array?n(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",Pc.Mod(Pc.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:n(e[0])}:"object"==typeof e?e:{text:n(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:i(),change:n},{type:"number",node:Pc.NumberNode(),change:e=>{const t=parseFloat(n(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:Pc.BooleanNode(),change:e=>{const t=n(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const o={color:Pc.Opt(i()),font:Pc.Opt(i()),bold:Pc.Opt(Pc.BooleanNode()),italic:Pc.Opt(Pc.BooleanNode()),underlined:Pc.Opt(Pc.BooleanNode()),strikethrough:Pc.Opt(Pc.BooleanNode()),obfuscated:Pc.Opt(Pc.BooleanNode()),insertion:Pc.Opt(i()),clickEvent:Pc.Opt(Pc.ObjectNode({action:i({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[Pc.Switch]:[{push:"action"}],[Pc.Case]:{change_page:{value:i()},copy_to_clipboard:{value:i()},open_file:{value:i()},open_url:{value:i()},run_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:i({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:Pc.Opt(Pc.ObjectNode({action:i({enum:["show_text","show_item","show_entity"]}),[Pc.Switch]:[{push:"action"}],[Pc.Case]:{show_text:{value:Pc.Opt(r("text_component")),contents:Pc.Opt(r("text_component"))},show_item:{value:Pc.Opt(i({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:Pc.Opt(Pc.ObjectNode({id:i({validator:"resource",params:{pool:"item"}}),count:Pc.Opt(Pc.NumberNode({integer:!0})),tag:Pc.Opt(i({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:Pc.Opt(Pc.ObjectNode({name:Pc.Opt(i()),type:Pc.Opt(i()),id:Pc.Opt(i())})),contents:Pc.Opt(Pc.Mod(Pc.ObjectNode({name:Pc.Opt(r("text_component")),type:i({validator:"resource",params:{pool:"entity_type"}}),id:i({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:Pc.Opt(r("text_component_list"))};e.register("text_component_object",Pc.Mod(Pc.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:Pc.ObjectNode(s({text:i()},o))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:Pc.ObjectNode(s({translate:i(),with:Pc.Opt(r("text_component_list"))},o))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:Pc.ObjectNode(s({score:Pc.ObjectNode({name:i({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:i({validator:"objective"}),value:Pc.Opt(i())})},o))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:Pc.ObjectNode(s({selector:i({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:Pc.Opt(r("text_component"))},o))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:Pc.ObjectNode(s({keybind:i({enum:"keybind",additional:!0})},o))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:Pc.ObjectNode(s({nbt:i({validator:"nbt_path"}),block:Pc.Opt(i({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:Pc.Opt(i({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:Pc.Opt(i({validator:"resource",params:{pool:"$storage"}})),interpret:Pc.Opt(Pc.BooleanNode()),separator:Pc.Opt(r("text_component"))},o))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",Pc.Mod(Pc.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var Ic={},Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.initBiomeSchemas=void 0;const zc=Le,Uc=dc;Rc.initBiomeSchemas=function(e,t){const r=zc.StringNode.bind(void 0,t);e.register("biome",zc.Mod(zc.ObjectNode({temperature:zc.NumberNode(),downfall:zc.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:zc.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),creature_spawn_probability:zc.Opt(zc.NumberNode({min:0,max:1})),effects:zc.ObjectNode({sky_color:zc.NumberNode({color:!0}),fog_color:zc.NumberNode({color:!0}),water_color:zc.NumberNode({color:!0}),water_fog_color:zc.NumberNode({color:!0}),grass_color:zc.Opt(zc.NumberNode({color:!0})),foliage_color:zc.Opt(zc.NumberNode({color:!0})),grass_color_modifier:zc.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:zc.Opt(r()),mood_sound:zc.Opt(zc.ObjectNode({sound:r(),tick_delay:zc.NumberNode({integer:!0}),block_search_extent:zc.NumberNode({integer:!0}),offset:zc.NumberNode()})),additions_sound:zc.Opt(zc.ObjectNode({sound:r(),tick_chance:zc.NumberNode({min:0,max:1})})),music:zc.Opt(zc.ObjectNode({sound:r(),min_delay:zc.NumberNode({integer:!0,min:0}),max_delay:zc.NumberNode({integer:!0,min:0}),replace_current_music:zc.BooleanNode()})),particle:zc.Opt(zc.ObjectNode({options:zc.ObjectNode({type:r()}),probability:zc.NumberNode({min:0,max:1})}))}),spawners:zc.MapNode(r({enum:["monster","creature","ambient","axolotls","underground_water_creature","water_creature","water_ambient","misc"]}),zc.Mod(zc.ListNode(zc.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:zc.NumberNode({integer:!0}),minCount:zc.NumberNode({integer:!0}),maxCount:zc.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:zc.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),zc.Mod(zc.ObjectNode({energy_budget:zc.NumberNode(),charge:zc.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:zc.MapNode(r({enum:["air","liquid"]}),zc.Mod(Uc.Tag({resource:"$worldgen/configured_carver",inlineSchema:"configured_carver"}),{default:()=>["minecraft:cave"]})),features:zc.ListNode(zc.Mod(Uc.Tag({resource:"$worldgen/placed_feature",inlineSchema:"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 $c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.initCarverSchemas=void 0;const qc=Le,Xc=dc;$c.initCarverSchemas=function(e,t){const r=qc.Reference.bind(void 0,e),i=qc.StringNode.bind(void 0,t),n={vertical_rotation:Xc.FloatProvider(),shape:qc.ObjectNode({distance_factor:Xc.FloatProvider(),thickness:Xc.FloatProvider(),width_smoothness:qc.NumberNode({integer:!0,min:0}),horizontal_radius_factor:Xc.FloatProvider(),vertical_radius_default_factor:qc.NumberNode(),vertical_radius_center_factor:qc.NumberNode()})},o={horizontal_radius_multiplier:Xc.FloatProvider(),vertical_radius_multiplier:Xc.FloatProvider(),floor_level:Xc.FloatProvider({min:-1,max:1})};e.register("configured_carver",qc.Mod(qc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/carver"}}),config:qc.ObjectNode({probability:qc.NumberNode({min:0,max:1}),y:r("height_provider"),yScale:Xc.FloatProvider(),lava_level:r("vertical_anchor"),debug_settings:qc.Opt(qc.ObjectNode({debug_mode:qc.Opt(qc.BooleanNode()),air_state:qc.Opt(r("block_state")),water_state:qc.Opt(r("block_state")),lava_state:qc.Opt(r("block_state")),barrier_state:qc.Opt(r("block_state"))})),[qc.Switch]:["pop",{push:"type"}],[qc.Case]:{"minecraft:canyon":n,"minecraft:cave":o,"minecraft:nether_cave":o}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.initDecoratorSchemas=void 0;const Hc=Le,Gc=dc;Jc.initDecoratorSchemas=function(e,t){const r=Hc.Reference.bind(void 0,e),i=Hc.StringNode.bind(void 0,t);e.register("decorator",Hc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/placement_modifier_type"}}),[Hc.Switch]:[{push:"type"}],[Hc.Case]:{"minecraft:block_predicate_filter":{predicate:r("block_predicate_worldgen")},"minecraft:carving_mask":{step:i({enum:"generation_step"})},"minecraft:rarity_filter":{chance:Hc.NumberNode({integer:!0,min:0})},"minecraft:count":{count:Gc.IntProvider({min:0,max:256})},"minecraft:count_on_every_layer":{count:Gc.IntProvider({min:0,max:256})},"minecraft:noise_threshold_count":{noise_level:Hc.NumberNode(),below_noise:Hc.NumberNode({integer:!0}),above_noise:Hc.NumberNode({integer:!0})},"minecraft:noise_based_count":{noise_to_count_ratio:Hc.NumberNode({integer:!0}),noise_factor:Hc.NumberNode(),noise_offset:Hc.Opt(Hc.NumberNode())},"minecraft:environment_scan":{direction_of_search:i({enum:["up","down"]}),max_steps:Hc.NumberNode({integer:!0,min:1,max:32}),target_condition:r("block_predicate_worldgen"),allowed_search_condition:Hc.Opt(r("block_predicate_worldgen"))},"minecraft:heightmap":{heightmap:i({enum:"heightmap_type"})},"minecraft:height_range":{height:r("height_provider")},"minecraft:random_offset":{xz_spread:Gc.IntProvider({min:-16,max:16}),y_spread:Gc.IntProvider({min:-16,max:16})},"minecraft:surface_relative_threshold_filter":{heightmap:i({enum:"heightmap_type"}),min_inclusive:Hc.Opt(Hc.NumberNode({integer:!0})),max_inclusive:Hc.Opt(Hc.NumberNode({integer:!0}))},"minecraft:surface_water_depth_filter":{max_water_depth:Hc.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"}))};var Wc={},Zc={};Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.initProcessorListSchemas=Zc.Processors=void 0;const Yc=Le;Zc.initProcessorListSchemas=function(e,t){const r=Yc.Reference.bind(void 0,e),i=Yc.StringNode.bind(void 0,t);Zc.Processors=Yc.ChoiceNode([{type:"string",node:i({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",Yc.Mod(Yc.ObjectNode({processors:Yc.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",Yc.Mod(Yc.ObjectNode({processor_type:i({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[Yc.Switch]:[{push:"processor_type"}],[Yc.Case]:{"minecraft:block_age":{mossiness:Yc.NumberNode()},"minecraft:block_ignore":{blocks:Yc.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:Yc.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:i({enum:"heightmap_type"}),offset:Yc.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:i({validator:"resource",params:{pool:"block",requireTag:!0}})},"minecraft:rule":{rules:Yc.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",Yc.Mod(Yc.ObjectNode({position_predicate:Yc.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:Yc.Opt(i({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 n={min_dist:Yc.Opt(Yc.NumberNode({min:0,max:255,integer:!0})),max_dist:Yc.Opt(Yc.NumberNode({min:0,max:255,integer:!0})),min_chance:Yc.Opt(Yc.NumberNode({min:0,max:1})),max_chance:Yc.Opt(Yc.NumberNode({min:0,max:1}))};e.register("pos_rule_test",Yc.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"pos_rule_test"}}),[Yc.Switch]:[{push:"predicate_type"}],[Yc.Case]:{"minecraft:axis_aligned_linear_pos":s({axis:i({enum:["x","y","z"]})},n),"minecraft:linear_pos":n}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",Yc.ObjectNode({predicate_type:i({validator:"resource",params:{pool:"rule_test"}}),[Yc.Switch]:[{push:"predicate_type"}],[Yc.Case]:{"minecraft:block_match":{block:i({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:i({validator:"resource",params:{pool:"block"}}),probability:Yc.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:Yc.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:i({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.initFeatureSchemas=void 0;const Kc=Le,Vc=dc,Qc=Zc;Wc.initFeatureSchemas=function(e,t){const r=Kc.Reference.bind(void 0,e),i=Kc.StringNode.bind(void 0,t),n=Kc.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"}),o=Kc.ChoiceNode([{type:"string",node:i({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},{type:"object",node:r("placed_feature")}],{choiceContext:"placed_feature"}),a={tries:Kc.Opt(Kc.NumberNode({integer:!0,min:1})),xz_spread:Kc.Opt(Kc.NumberNode({integer:!0,min:0})),y_spread:Kc.Opt(Kc.NumberNode({integer:!0,min:0})),feature:o},l={state:r("block_state"),radius:Vc.IntProvider({min:0,max:8}),half_height:Kc.NumberNode({integer:!0,min:0,max:4}),targets:Kc.ListNode(r("block_state"))},d={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:Kc.Opt(Kc.NumberNode({integer:!0}))},u=Kc.ObjectNode({target:r("rule_test"),state:r("block_state")}),p={size:Kc.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:Kc.NumberNode({min:0,max:1}),targets:Kc.ListNode(u)},m={surface:i({enum:"cave_surface"}),depth:Vc.IntProvider({min:1,max:128}),vertical_range:Kc.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:Kc.NumberNode({min:0,max:1}),extra_edge_column_chance:Kc.NumberNode({min:0,max:1}),vegetation_chance:Kc.NumberNode({min:0,max:1}),xz_radius:Vc.IntProvider(),replaceable:i({validator:"resource",params:{pool:"block",requireTag:!0}}),ground_state:r("block_state_provider"),vegetation_feature:o};e.register("configured_feature",Kc.Mod(Kc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature"}}),config:Kc.ObjectNode({[Kc.Switch]:["pop",{push:"type"}],[Kc.Case]:{"minecraft:bamboo":{probability:Kc.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:Vc.IntProvider({min:0,max:3}),height:Vc.IntProvider({min:1,max:10})},"minecraft:block_column":{direction:i({enum:["up","down","north","east","south","west"]}),allowed_placement:r("block_predicate_worldgen"),prioritize_tip:Kc.BooleanNode(),layers:Kc.ListNode(Kc.ObjectNode({height:Vc.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:Vc.IntProvider({min:0,max:16}),rim_size:Vc.IntProvider({min:0,max:16})},"minecraft:disk":l,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:Kc.NumberNode({integer:!0,min:1,max:512}),height:Vc.IntProvider({min:0,max:128}),radius:Vc.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:Kc.NumberNode({integer:!0,min:0,max:64}),height_deviation:Kc.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:Vc.IntProvider({min:0,max:128}),density:Vc.FloatProvider({min:0,max:2}),wetness:Vc.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:Kc.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:Kc.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:Kc.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:Kc.BooleanNode(),exit:Kc.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:Kc.Opt(Kc.BooleanNode()),crystal_beam_target:Kc.Opt(r("block_pos")),spikes:Kc.ListNode(Kc.ObjectNode({centerX:Kc.Opt(Kc.NumberNode({integer:!0})),centerZ:Kc.Opt(Kc.NumberNode({integer:!0})),radius:Kc.Opt(Kc.NumberNode({integer:!0})),height:Kc.Opt(Kc.NumberNode({integer:!0})),guarded:Kc.Opt(Kc.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:Kc.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":a,"minecraft:forest_rock":{state:r("block_state")},"minecraft:fossil":{max_empty_corners_allowed:Kc.NumberNode({integer:!0,min:0,max:7}),fossil_structures:Kc.ListNode(i({validator:"resource",params:{pool:"$structure"}})),overlay_structures:Kc.ListNode(i({validator:"resource",params:{pool:"$structure"}})),fossil_processors:Qc.Processors,overlay_processors:Qc.Processors},"minecraft:geode":{blocks:Kc.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:Kc.ListNode(r("block_state")),cannot_replace:i({validator:"resource",params:{pool:"block",requireTag:!0}}),invalid_blocks:i({validator:"resource",params:{pool:"block",requireTag:!0}})}),layers:Kc.ObjectNode({filling:Kc.Opt(Kc.NumberNode({min:.01,max:50})),inner_layer:Kc.Opt(Kc.NumberNode({min:.01,max:50})),middle_layer:Kc.Opt(Kc.NumberNode({min:.01,max:50})),outer_layer:Kc.Opt(Kc.NumberNode({min:.01,max:50}))}),crack:Kc.ObjectNode({generate_crack_chance:Kc.Opt(Kc.NumberNode({min:0,max:1})),base_crack_size:Kc.Opt(Kc.NumberNode({min:0,max:5})),crack_point_offset:Kc.Opt(Kc.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:Kc.Opt(Kc.NumberNode({min:0,max:1})),use_potential_placements_chance:Kc.Opt(Kc.NumberNode({min:0,max:1})),use_alternate_layer0_chance:Kc.Opt(Kc.NumberNode({min:0,max:1})),placements_require_layer0_alternate:Kc.Opt(Kc.BooleanNode()),outer_wall_distance:Kc.Opt(Vc.IntProvider({min:1,max:20})),distribution_points:Kc.Opt(Vc.IntProvider({min:1,max:20})),point_offset:Kc.Opt(Vc.IntProvider({min:0,max:10})),min_gen_offset:Kc.Opt(Kc.NumberNode({integer:!0})),max_gen_offset:Kc.Opt(Kc.NumberNode({integer:!0})),invalid_blocks_threshold:Kc.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:Kc.Opt(Kc.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:Kc.Opt(Kc.NumberNode({min:0,max:1})),can_place_on_floor:Kc.Opt(Kc.BooleanNode()),can_place_on_ceiling:Kc.Opt(Kc.BooleanNode()),can_place_on_wall:Kc.Opt(Kc.BooleanNode()),can_be_placed_on:Vc.Tag({resource:"block"})},"minecraft:huge_brown_mushroom":d,"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:Kc.Opt(Kc.BooleanNode())},"minecraft:huge_red_mushroom":d,"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:Kc.Opt(Kc.NumberNode({integer:!0,min:1,max:512})),column_radius:Vc.IntProvider({min:0,max:60}),height_scale:Vc.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:Kc.NumberNode({min:0,max:1}),stalactite_bluntness:Vc.FloatProvider({min:.1,max:10}),stalagmite_bluntness:Vc.FloatProvider({min:.1,max:10}),wind_speed:Vc.FloatProvider({min:0,max:2}),min_radius_for_wind:Kc.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:Kc.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider"),spread_width:Kc.NumberNode({integer:!0,min:1}),spread_height:Kc.NumberNode({integer:!0,min:1})},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:Vc.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":a,"minecraft:ore":p,"minecraft:pointed_dripstone":{chance_of_taller_dripstone:Kc.Opt(Kc.NumberNode({min:0,max:1})),chance_of_directional_spread:Kc.Opt(Kc.NumberNode({min:0,max:1})),chance_of_spread_radius2:Kc.Opt(Kc.NumberNode({min:0,max:1})),chance_of_spread_radius3:Kc.Opt(Kc.NumberNode({min:0,max:1}))},"minecraft:random_patch":a,"minecraft:random_boolean_selector":{feature_false:o,feature_true:o},"minecraft:random_selector":{features:Kc.ListNode(Kc.ObjectNode({chance:Kc.NumberNode({min:0,max:1}),feature:o})),default:o},"minecraft:replace_single_block":{targets:Kc.ListNode(u)},"minecraft:root_system":{required_vertical_space_for_tree:Kc.NumberNode({integer:!0,min:1,max:64}),root_radius:Kc.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:Kc.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:Kc.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:Kc.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:Kc.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:Kc.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:Kc.NumberNode({integer:!0,min:1,max:64}),root_replaceable:i({validator:"resource",params:{pool:"block",requireTag:!0}}),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:Vc.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:Kc.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state_provider")},"minecraft:simple_random_selector":{features:Vc.Tag({resource:"$worldgen/placed_feature",inlineSchema:"placed_feature"})},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:Kc.NumberNode({integer:!0}),hole_count:Kc.NumberNode({integer:!0}),requires_block_below:Kc.BooleanNode(),valid_blocks:Vc.Tag({resource:"block"})},"minecraft:tree":{ignore_vines:Kc.Opt(Kc.BooleanNode()),force_dirt:Kc.Opt(Kc.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:Kc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:Kc.NumberNode({integer:!0,min:0,max:32}),height_rand_a:Kc.NumberNode({integer:!0,min:0,max:24}),height_rand_b:Kc.NumberNode({integer:!0,min:0,max:24}),[Kc.Switch]:[{push:"type"}],[Kc.Case]:{"minecraft:bending_trunk_placer":{bend_length:Vc.IntProvider({min:1,max:64}),min_height_for_leaves:Kc.Opt(Kc.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:Kc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:Vc.IntProvider({min:0,max:16}),offset:Vc.IntProvider({min:0,max:16}),[Kc.Switch]:[{push:"type"}],[Kc.Case]:{"minecraft:blob_foliage_placer":{height:Kc.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:Kc.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:Kc.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:Kc.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:Vc.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:Vc.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:Vc.IntProvider({min:1,max:512}),leaf_placement_attempts:Kc.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:Vc.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:Kc.ListNode(Kc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[Kc.Switch]:[{push:"type"}],[Kc.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:Kc.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:Kc.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:twisting_vines":{spread_width:Kc.NumberNode({integer:!0,min:1}),spread_height:Kc.NumberNode({integer:!0,min:1}),max_height:Kc.NumberNode({integer:!0,min:1})},"minecraft:underwater_magma":{floor_search_range:Kc.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:Kc.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:Kc.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",Kc.Mod(Kc.ObjectNode({feature:n,placement:Kc.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",Kc.Mod(Kc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:Kc.Opt(Kc.NumberNode({min:0,max:80})),[Kc.Switch]:[{push:"type"}],[Kc.Case]:{"minecraft:two_layers_feature_size":{limit:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:81})),lower_size:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:16})),upper_size:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:80})),upper_limit:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:80})),lower_size:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:16})),middle_size:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:16})),upper_size:Kc.Opt(Kc.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})}));const _={seed:Kc.NumberNode({integer:!0}),noise:r("noise_parameters"),scale:Kc.Mod(Kc.NumberNode({min:Number.MIN_VALUE}),{default:()=>1})};e.register("block_state_provider",Kc.Mod(Kc.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[Kc.Switch]:[{push:"type"}],[Kc.Case]:{"minecraft:dual_noise_provider":c(s({},_),{variety:Vc.InclusiveRange({integer:!0,min:1,max:64}),slow_noise:r("noise_parameters"),slow_scale:Kc.Mod(Kc.NumberNode({min:Number.MIN_VALUE}),{default:()=>1}),states:Kc.ListNode(r("block_state"))}),"minecraft:noise_threshold_provider":c(s({},_),{threshold:Kc.NumberNode({min:-1,max:1}),high_chance:Kc.NumberNode({min:0,max:1}),default_state:r("block_state"),low_states:Kc.ListNode(r("block_state")),high_states:Kc.ListNode(r("block_state"))}),"minecraft:noise_provider":c(s({},_),{states:Kc.ListNode(r("block_state"))}),"minecraft:randomized_int_state_provider":{property:i(),values:Vc.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:Kc.ListNode(Kc.Mod(Kc.ObjectNode({weight:Kc.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})}));const h={offset:Kc.Opt(Kc.ListNode(Kc.NumberNode({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))};e.register("block_predicate_worldgen",Kc.Mod(Kc.ObjectNode({type:i({validator:"resource",params:{pool:"block_predicate_type"}}),[Kc.Switch]:[{push:"type"}],[Kc.Case]:{"minecraft:all_of":{predicates:Kc.ListNode(r("block_predicate_worldgen"))},"minecraft:any_of":{predicates:Kc.ListNode(r("block_predicate_worldgen"))},"minecraft:has_sturdy_face":c(s({},h),{direction:i({enum:"direction"})}),"minecraft:inside_world_bounds":s({},h),"minecraft:matching_block_tag":c(s({},h),{tag:i({validator:"resource",params:{pool:"$tag/block"}})}),"minecraft:matching_blocks":c(s({},h),{blocks:Vc.Tag({resource:"block"})}),"minecraft:matching_fluids":c(s({},h),{fluids:Vc.Tag({resource:"fluid"})}),"minecraft:not":{predicate:r("block_predicate_worldgen")},"minecraft:would_survive":c(s({},h),{state:r("block_state")})}},{context:"block_predicate"}),{default:()=>({type:"minecraft:true"})}))};var el={};Object.defineProperty(el,"__esModule",{value:!0}),el.initNoiseSettingsSchemas=void 0;const tl=Le,rl=dc;el.initNoiseSettingsSchemas=function(e,t){const r=tl.Reference.bind(void 0,e),i=tl.StringNode.bind(void 0,t);e.register("noise_settings",tl.Mod(tl.ObjectNode({sea_level:tl.NumberNode({integer:!0}),disable_mob_generation:tl.BooleanNode(),noise_caves_enabled:tl.BooleanNode(),noodle_caves_enabled:tl.BooleanNode(),aquifers_enabled:tl.BooleanNode(),ore_veins_enabled:tl.BooleanNode(),legacy_random_source:tl.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:tl.ObjectNode({min_y:tl.NumberNode({integer:!0,min:-2048,max:2047}),height:tl.NumberNode({integer:!0,min:0,max:4096}),size_horizontal:tl.NumberNode({integer:!0}),size_vertical:tl.NumberNode({integer:!0}),island_noise_override:tl.Opt(tl.BooleanNode()),amplified:tl.Opt(tl.BooleanNode()),large_biomes:tl.Opt(tl.BooleanNode()),sampling:tl.ObjectNode({xz_scale:tl.NumberNode(),y_scale:tl.NumberNode(),xz_factor:tl.NumberNode(),y_factor:tl.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:()=>rl.DefaultNoiseSettings,validate:(t,r,i,n)=>{var o,a,s,c;return(null===(o=null==(r=e.validate(t,r,i,n))?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&&i.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&&i.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&&i.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),r}})))),e.register("noise_slider",tl.ObjectNode({target:tl.NumberNode(),size:tl.NumberNode({integer:!0,min:0}),offset:tl.NumberNode({integer:!0})})),e.register("generator_structures",tl.MapNode(i({validator:"resource",params:{pool:"worldgen/structure_feature"}}),tl.Mod(tl.ObjectNode({type:i({validator:"resource",params:{pool:"worldgen/structure_placement"}}),[tl.Switch]:[{push:"type"}],[tl.Case]:{"minecraft:concentric_rings":{distance:tl.NumberNode({integer:!0,min:0,max:1023}),spread:tl.NumberNode({integer:!0,min:0,max:1023}),count:tl.NumberNode({integer:!0,min:1,max:4095})},"minecraft:random_spread":{spread_type:tl.Opt(i({enum:["linear","triangular"]})),spacing:tl.NumberNode({integer:!0,min:0,max:4096}),separation:tl.Mod(tl.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,i,n)=>(t.pop().push("spacing").get()<=r&&i.add(t,"error.separation_smaller_spacing"),e.validate(t,r,i,n))}))),salt:tl.NumberNode({integer:!0,min:0}),locate_offset:tl.Opt(tl.ListNode(tl.NumberNode({integer:!0,min:-16,max:16}),{minLength:3,maxLength:3}))}}},{context:"generator_structure"}),{default:()=>({type:"minecraft:random_spread",spacing:10,separation:5,salt:0})}))),e.register("generator_layer",tl.Mod(tl.ObjectNode({block:i({validator:"resource",params:{pool:"block"}}),height:tl.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})})),e.register("terrain_shaper",tl.Mod(tl.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",tl.Mod(tl.ChoiceNode([{type:"number",node:tl.NumberNode()},{type:"object",node:tl.ObjectNode({coordinate:tl.Mod(i({enum:["continents","erosion","weirdness","ridges"]}),{default:()=>"continents"}),points:tl.ListNode(tl.ObjectNode({location:tl.NumberNode(),derivative:tl.NumberNode(),value:r("terrain_spline")}))},{category:"function"})}],{context:"terrain_spline",choiceContext:"terrain_spline"}),{default:()=>0}))};var il={};Object.defineProperty(il,"__esModule",{value:!0}),il.initStructureFeatureSchemas=void 0;const nl=Le;il.initStructureFeatureSchemas=function(e,t){const r=nl.StringNode.bind(void 0,t),i=nl.Reference.bind(void 0,e),n={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:nl.NumberNode({integer:!0})};e.register("configured_structure_feature",nl.Mod(nl.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:nl.ObjectNode({[nl.Switch]:["pop",{push:"type"}],[nl.Case]:{"minecraft:bastion_remnant":n,"minecraft:buried_treasure":{probability:nl.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:nl.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:i("height_provider")},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:nl.NumberNode({min:0,max:1}),cluster_probability:nl.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:nl.Opt(nl.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 ol={};Object.defineProperty(ol,"__esModule",{value:!0}),ol.initSurfaceRuleSchemas=void 0;const al=Le;ol.initSurfaceRuleSchemas=function(e,t){const r=al.StringNode.bind(void 0,t),i=al.Reference.bind(void 0,e);e.register("material_rule",al.Mod(al.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/material_rule"}}),[al.Switch]:[{push:"type"}],[al.Case]:{"minecraft:block":{result_state:i("block_state")},"minecraft:condition":{if_true:i("material_condition"),then_run:i("material_rule")},"minecraft:sequence":{sequence:al.ListNode(i("material_rule"))}}},{context:"material_rule",category:"pool"}),{default:()=>({type:"minecraft:block",result_state:{Name:"minecraft:stone"}})})),e.register("material_condition",al.Mod(al.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/material_condition"}}),[al.Switch]:[{push:"type"}],[al.Case]:{"minecraft:biome":{biome_is:al.ListNode(r({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:noise_threshold":{noise:r({validator:"resource",params:{pool:"$worldgen/noise"}}),min_threshold:al.NumberNode(),max_threshold:al.NumberNode()},"minecraft:not":{invert:i("material_condition")},"minecraft:stone_depth":{offset:al.NumberNode({integer:!0}),surface_type:r({enum:"cave_surface"}),add_surface_depth:al.BooleanNode(),secondary_depth_range:al.NumberNode({integer:!0})},"minecraft:vertical_gradient":{random_name:r(),true_at_and_below:i("vertical_anchor"),false_at_and_above:i("vertical_anchor")},"minecraft:water":{offset:al.NumberNode({integer:!0}),surface_depth_multiplier:al.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:al.BooleanNode()},"minecraft:y_above":{anchor:i("vertical_anchor"),surface_depth_multiplier:al.NumberNode({integer:!0,min:-20,max:20}),add_stone_depth:al.BooleanNode()}}},{context:"material_condition"}),{default:()=>({type:"minecraft:biome",is_biome:"minecraft:plains"})}))};var sl={};Object.defineProperty(sl,"__esModule",{value:!0}),sl.initTemplatePoolSchemas=void 0;const cl=Le,ll=Zc;sl.initTemplatePoolSchemas=function(e,t){const r=cl.Reference.bind(void 0,e),i=cl.StringNode.bind(void 0,t);e.register("template_pool",cl.Mod(cl.ObjectNode({fallback:i(),elements:cl.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",cl.Mod(cl.ObjectNode({weight:cl.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",cl.Mod(cl.ObjectNode({element_type:i({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:i({enum:["rigid","terrain_matching"]}),[cl.Switch]:[{push:"element_type"}],[cl.Case]:{"minecraft:feature_pool_element":{feature:i({validator:"resource",params:{pool:"$worldgen/placed_feature"}})},"minecraft:legacy_single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:ll.Processors},"minecraft:list_pool_element":{elements:cl.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:i({validator:"resource",params:{pool:"$structure"}}),processors:ll.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.initWorldgenSchemas=void 0;const dl=Rc,ul=$c,pl=Jc,ml=Wc,_l=el,hl=Zc,fl=il,gl=ol,bl=sl;Ic.initWorldgenSchemas=function(e,t){hl.initProcessorListSchemas(e,t),dl.initBiomeSchemas(e,t),ul.initCarverSchemas(e,t),pl.initDecoratorSchemas(e,t),ml.initFeatureSchemas(e,t),_l.initNoiseSettingsSchemas(e,t),fl.initStructureFeatureSchemas(e,t),gl.initSurfaceRuleSchemas(e,t),bl.initTemplatePoolSchemas(e,t)};var yl={};Object.defineProperty(yl,"__esModule",{value:!0}),yl.initWorldSettingsSchemas=void 0;const vl=Le;yl.initWorldSettingsSchemas=function(e,t){const r=vl.Reference.bind(void 0,e),i=vl.StringNode.bind(void 0,t);e.register("world_settings",vl.Mod(vl.ObjectNode({generate_features:vl.BooleanNode(),bonus_chest:vl.BooleanNode(),seed:vl.NumberNode({integer:!0}),dimensions:vl.MapNode(i({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:multi_noise",preset:"minecraft:overworld"},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",preset:"minecraft:nether"},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(ec,"__esModule",{value:!0}),ec.initSchemas=void 0;const Nl=tc,xl=ic,kl=dc,wl=uc,Ol=_c,Sl=gc,Al=vc,Dl=kc,Cl=Dc,El=Ec,Fl=jc,jl=Mc,Bl=Lc,Ml=Ic,Tl=yl;ec.initSchemas=function(e,t){kl.initCommonSchemas(e,t),Nl.initAdvancementSchemas(e,t),xl.initAssetsSchemas(e,t),wl.initConditionSchemas(e,t),Sl.initDimensionTypeSchemas(e,t),Ol.initDimensionSchemas(e,t),Al.initItemModifierSchemas(e,t),Dl.initLootTableSchemas(e,t),Cl.initPackMcmetaSchemas(e,t),El.initPredicatesSchemas(e,t),Fl.initRecipeSchemas(e,t),jl.initTagsSchemas(e,t),Bl.initTextComponentSchemas(e,t),Ml.initWorldgenSchemas(e,t),Tl.initWorldSettingsSchemas(e,t)};var Ll=Te&&Te.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),Pl=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Il=Te&&Te.__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)&&Ll(t,e,r);return Pl(t,e),t};Object.defineProperty(Vs,"__esModule",{value:!0});var Rl=Vs.getSchemas=Vs.getCollections=void 0;const zl=Le,Ul=Qs,$l=ec;var ql=Vs.lootContext=Il(wc);var Xl=Vs.getCollections=function(){const e=new zl.CollectionRegistry;return Ul.initCollections(e),e};Rl=Vs.getSchemas=function(e){const t=new zl.SchemaRegistry;return $l.initSchemas(t,e),t};var Jl=Object.freeze(Object.assign(Object.create(null),Vs,{[Symbol.toStringTag]:"Module",get getSchemas(){return Rl},get getCollections(){return Xl},lootContext:ql,default:Vs}));
/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */function Hl(e){let t=e.length;for(;--t>=0;)e[t]=0}const Gl=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]),Wl=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]),Zl=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Yl=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Kl=new Array(576);Hl(Kl);const Vl=new Array(60);Hl(Vl);const Ql=new Array(512);Hl(Ql);const ed=new Array(256);Hl(ed);const td=new Array(29);Hl(td);const rd=new Array(30);function id(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}let nd,od,ad;function sd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}Hl(rd);const cd=e=>e<256?Ql[e]:Ql[256+(e>>>7)],ld=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},dd=(e,t,r)=>{e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,ld(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)},ud=(e,t,r)=>{dd(e,r[2*t],r[2*t+1])},pd=(e,t)=>{let r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1},md=(e,t,r)=>{const i=new Array(16);let n,o,a=0;for(n=1;n<=15;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=pd(i[t]++,t))}},_d=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},hd=e=>{e.bi_valid>8?ld(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},fd=(e,t,r,i)=>{const n=2*t,o=2*r;return e[n]<e[o]||e[n]===e[o]&&i[t]<=i[r]},gd=(e,t,r)=>{const i=e.heap[r];let n=r<<1;for(;n<=e.heap_len&&(n<e.heap_len&&fd(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!fd(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i},bd=(e,t,r)=>{let i,n,o,a,s=0;if(0!==e.last_lit)do{i=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],n=e.pending_buf[e.l_buf+s],s++,0===i?ud(e,n,t):(o=ed[n],ud(e,o+256+1,t),a=Gl[o],0!==a&&(n-=td[o],dd(e,n,a)),i--,o=cd(i),ud(e,o,r),a=Wl[o],0!==a&&(i-=rd[o],dd(e,i,a)))}while(s<e.last_lit);ud(e,256,t)},yd=(e,t)=>{const r=t.dyn_tree,i=t.stat_desc.static_tree,n=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--,n&&(e.static_len-=i[2*c+1]);for(t.max_code=l,a=e.heap_len>>1;a>=1;a--)gd(e,r,a);c=o;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gd(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++,gd(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const r=t.dyn_tree,i=t.max_code,n=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,d,u,p,m,_,h=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++)d=e.heap[l],p=r[2*r[2*d+1]+1]+1,p>c&&(p=c,h++),r[2*d+1]=p,d>i||(e.bl_count[p]++,m=0,d>=s&&(m=a[d-s]),_=r[2*d],e.opt_len+=_*(p+m),o&&(e.static_len+=_*(n[2*d+1]+m)));if(0!==h){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]--,h-=2}while(h>0);for(p=c;0!==p;p--)for(d=e.bl_count[p];0!==d;)u=e.heap[--l],u>i||(r[2*u+1]!==p&&(e.opt_len+=(p-r[2*u+1])*r[2*u],r[2*u+1]=p),d--)}})(e,t),md(r,l,e.bl_count)},vd=(e,t,r)=>{let i,n,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)n=a,a=t[2*(i+1)+1],++s<c&&n===a||(s<l?e.bl_tree[2*n]+=s:0!==n?(n!==o&&e.bl_tree[2*n]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=n,0===a?(c=138,l=3):n===a?(c=6,l=3):(c=7,l=4))},Nd=(e,t,r)=>{let i,n,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),i=0;i<=r;i++)if(n=a,a=t[2*(i+1)+1],!(++s<c&&n===a)){if(s<l)do{ud(e,n,e.bl_tree)}while(0!=--s);else 0!==n?(n!==o&&(ud(e,n,e.bl_tree),s--),ud(e,16,e.bl_tree),dd(e,s-3,2)):s<=10?(ud(e,17,e.bl_tree),dd(e,s-3,3)):(ud(e,18,e.bl_tree),dd(e,s-11,7));s=0,o=n,0===a?(c=138,l=3):n===a?(c=6,l=3):(c=7,l=4)}};let xd=!1;const kd=(e,t,r,i)=>{dd(e,0+(i?1:0),3),((e,t,r,i)=>{hd(e),i&&(ld(e,r),ld(e,~r)),e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r})(e,t,r,!0)};var wd={_tr_init:e=>{xd||((()=>{let e,t,r,i,n;const o=new Array(16);for(r=0,i=0;i<28;i++)for(td[i]=r,e=0;e<1<<Gl[i];e++)ed[r++]=i;for(ed[r-1]=i,n=0,i=0;i<16;i++)for(rd[i]=n,e=0;e<1<<Wl[i];e++)Ql[n++]=i;for(n>>=7;i<30;i++)for(rd[i]=n<<7,e=0;e<1<<Wl[i]-7;e++)Ql[256+n++]=i;for(t=0;t<=15;t++)o[t]=0;for(e=0;e<=143;)Kl[2*e+1]=8,e++,o[8]++;for(;e<=255;)Kl[2*e+1]=9,e++,o[9]++;for(;e<=279;)Kl[2*e+1]=7,e++,o[7]++;for(;e<=287;)Kl[2*e+1]=8,e++,o[8]++;for(md(Kl,287,o),e=0;e<30;e++)Vl[2*e+1]=5,Vl[2*e]=pd(e,5);nd=new id(Kl,Gl,257,286,15),od=new id(Vl,Wl,0,30,15),ad=new id(new Array(0),Zl,0,19,7)})(),xd=!0),e.l_desc=new sd(e.dyn_ltree,nd),e.d_desc=new sd(e.dyn_dtree,od),e.bl_desc=new sd(e.bl_tree,ad),e.bi_buf=0,e.bi_valid=0,_d(e)},_tr_stored_block:kd,_tr_flush_block:(e,t,r,i)=>{let n,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)),yd(e,e.l_desc),yd(e,e.d_desc),a=(e=>{let t;for(vd(e,e.dyn_ltree,e.l_desc.max_code),vd(e,e.dyn_dtree,e.d_desc.max_code),yd(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Yl[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),n=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=n&&(n=o)):n=o=r+5,r+4<=n&&-1!==t?kd(e,t,r,i):4===e.strategy||o===n?(dd(e,2+(i?1:0),3),bd(e,Kl,Vl)):(dd(e,4+(i?1:0),3),((e,t,r,i)=>{let n;for(dd(e,t-257,5),dd(e,r-1,5),dd(e,i-4,4),n=0;n<i;n++)dd(e,e.bl_tree[2*Yl[n]+1],3);Nd(e,e.dyn_ltree,t-1),Nd(e,e.dyn_dtree,r-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),bd(e,e.dyn_ltree,e.dyn_dtree)),_d(e),i&&hd(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*(ed[r]+256+1)]++,e.dyn_dtree[2*cd(t)]++),e.last_lit===e.lit_bufsize-1),_tr_align:e=>{dd(e,2,3),ud(e,256,Kl),(e=>{16===e.bi_valid?(ld(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 Od=(e,t,r,i)=>{let n=65535&e|0,o=e>>>16&65535|0,a=0;for(;0!==r;){a=r>2e3?2e3:r,r-=a;do{n=n+t[i++]|0,o=o+n|0}while(--a);n%=65521,o%=65521}return n|o<<16|0};const Sd=new Uint32Array((()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t})());var Ad=(e,t,r,i)=>{const n=Sd,o=i+r;e^=-1;for(let a=i;a<o;a++)e=e>>>8^n[255&(e^t[a])];return-1^e},Dd={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"},Cd={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:Ed,_tr_stored_block:Fd,_tr_flush_block:jd,_tr_tally:Bd,_tr_align:Md}=wd,{Z_NO_FLUSH:Td,Z_PARTIAL_FLUSH:Ld,Z_FULL_FLUSH:Pd,Z_FINISH:Id,Z_BLOCK:Rd,Z_OK:zd,Z_STREAM_END:Ud,Z_STREAM_ERROR:$d,Z_DATA_ERROR:qd,Z_BUF_ERROR:Xd,Z_DEFAULT_COMPRESSION:Jd,Z_FILTERED:Hd,Z_HUFFMAN_ONLY:Gd,Z_RLE:Wd,Z_FIXED:Zd,Z_DEFAULT_STRATEGY:Yd,Z_UNKNOWN:Kd,Z_DEFLATED:Vd}=Cd,Qd=(e,t)=>(e.msg=Dd[t],t),eu=e=>(e<<1)-(e>4?9:0),tu=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let ru=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask;const iu=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))},nu=(e,t)=>{jd(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,iu(e.strm)},ou=(e,t)=>{e.pending_buf[e.pending++]=t},au=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},su=(e,t,r,i)=>{let n=e.avail_in;return n>i&&(n=i),0===n?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),r),1===e.state.wrap?e.adler=Od(e.adler,t,n,r):2===e.state.wrap&&(e.adler=Ad(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)},cu=(e,t)=>{let r,i,n=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,d=e.w_mask,u=e.prev,p=e.strstart+258;let m=l[o+a-1],_=l[o+a];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,l[r+a]===_&&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(i=258-(p-o),o=p-258,i>a){if(e.match_start=t,a=i,i>=s)break;m=l[o+a-1],_=l[o+a]}}}while((t=u[t&d])>c&&0!=--n);return a<=e.lookahead?a:e.lookahead},lu=e=>{const t=e.w_size;let r,i,n,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,i=e.hash_size,r=i;do{n=e.head[--r],e.head[r]=n>=t?n-t:0}while(--i);i=t,r=i;do{n=e.prev[--r],e.prev[r]=n>=t?n-t:0}while(--i);o+=t}if(0===e.strm.avail_in)break;if(i=su(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=ru(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=ru(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)},du=(e,t)=>{let r,i;for(;;){if(e.lookahead<262){if(lu(e),e.lookahead<262&&t===Td)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=ru(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=cu(e,r)),e.match_length>=3)if(i=Bd(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=ru(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=ru(e,e.ins_h,e.window[e.strstart+1]);else i=Bd(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(nu(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Id?(nu(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(nu(e,!1),0===e.strm.avail_out)?1:2},uu=(e,t)=>{let r,i,n;for(;;){if(e.lookahead<262){if(lu(e),e.lookahead<262&&t===Td)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=ru(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=cu(e,r),e.match_length<=5&&(e.strategy===Hd||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-3,i=Bd(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=n&&(e.ins_h=ru(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++,i&&(nu(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(i=Bd(e,0,e.window[e.strstart-1]),i&&nu(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&&(i=Bd(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Id?(nu(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(nu(e,!1),0===e.strm.avail_out)?1:2};function pu(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}const mu=[new pu(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(lu(e),0===e.lookahead&&t===Td)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const i=e.block_start+r;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,nu(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(nu(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Id?(nu(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(nu(e,!1),e.strm.avail_out),1)})),new pu(4,4,8,4,du),new pu(4,5,16,8,du),new pu(4,6,32,32,du),new pu(4,4,16,16,uu),new pu(8,16,32,32,uu),new pu(8,16,128,128,uu),new pu(8,32,128,256,uu),new pu(32,128,258,1024,uu),new pu(32,258,258,4096,uu)];function _u(){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=Vd,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),tu(this.dyn_ltree),tu(this.dyn_dtree),tu(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),tu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),tu(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 hu=e=>{if(!e||!e.state)return Qd(e,$d);e.total_in=e.total_out=0,e.data_type=Kd;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=Td,Ed(t),zd},fu=e=>{const t=hu(e);var r;return t===zd&&((r=e.state).window_size=2*r.w_size,tu(r.head),r.max_lazy_match=mu[r.level].max_lazy,r.good_match=mu[r.level].good_length,r.nice_match=mu[r.level].nice_length,r.max_chain_length=mu[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},gu=(e,t,r,i,n,o)=>{if(!e)return $d;let a=1;if(t===Jd&&(t=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),n<1||n>9||r!==Vd||i<8||i>15||t<0||t>9||o<0||o>Zd)return Qd(e,$d);8===i&&(i=9);const s=new _u;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+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<<n+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,fu(e)};var bu={deflateInit:(e,t)=>gu(e,t,Vd,15,8,Yd),deflateInit2:gu,deflateReset:fu,deflateResetKeep:hu,deflateSetHeader:(e,t)=>e&&e.state?2!==e.state.wrap?$d:(e.state.gzhead=t,zd):$d,deflate:(e,t)=>{let r,i;if(!e||!e.state||t>Rd||t<0)return e?Qd(e,$d):$d;const n=e.state;if(!e.output||!e.input&&0!==e.avail_in||666===n.status&&t!==Id)return Qd(e,0===e.avail_out?Xd:$d);n.strm=e;const o=n.last_flush;if(n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,ou(n,31),ou(n,139),ou(n,8),n.gzhead?(ou(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),ou(n,255&n.gzhead.time),ou(n,n.gzhead.time>>8&255),ou(n,n.gzhead.time>>16&255),ou(n,n.gzhead.time>>24&255),ou(n,9===n.level?2:n.strategy>=Gd||n.level<2?4:0),ou(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(ou(n,255&n.gzhead.extra.length),ou(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Ad(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(ou(n,0),ou(n,0),ou(n,0),ou(n,0),ou(n,0),ou(n,9===n.level?2:n.strategy>=Gd||n.level<2?4:0),ou(n,3),n.status=113);else{let t=Vd+(n.w_bits-8<<4)<<8,r=-1;r=n.strategy>=Gd||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,n.status=113,au(n,t),0!==n.strstart&&(au(n,e.adler>>>16),au(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(r=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>r&&(e.adler=Ad(e.adler,n.pending_buf,n.pending-r,r)),iu(e),r=n.pending,n.pending!==n.pending_buf_size));)ou(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>r&&(e.adler=Ad(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(e.adler=Ad(e.adler,n.pending_buf,n.pending-r,r)),iu(e),r=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,ou(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>r&&(e.adler=Ad(e.adler,n.pending_buf,n.pending-r,r)),0===i&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(e.adler=Ad(e.adler,n.pending_buf,n.pending-r,r)),iu(e),r=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,ou(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>r&&(e.adler=Ad(e.adler,n.pending_buf,n.pending-r,r)),0===i&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&iu(e),n.pending+2<=n.pending_buf_size&&(ou(n,255&e.adler),ou(n,e.adler>>8&255),e.adler=0,n.status=113)):n.status=113),0!==n.pending){if(iu(e),0===e.avail_out)return n.last_flush=-1,zd}else if(0===e.avail_in&&eu(t)<=eu(o)&&t!==Id)return Qd(e,Xd);if(666===n.status&&0!==e.avail_in)return Qd(e,Xd);if(0!==e.avail_in||0!==n.lookahead||t!==Td&&666!==n.status){let r=n.strategy===Gd?((e,t)=>{let r;for(;;){if(0===e.lookahead&&(lu(e),0===e.lookahead)){if(t===Td)return 1;break}if(e.match_length=0,r=Bd(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(nu(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Id?(nu(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(nu(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===Wd?((e,t)=>{let r,i,n,o;const a=e.window;for(;;){if(e.lookahead<=258){if(lu(e),e.lookahead<=258&&t===Td)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=e.strstart-1,i=a[n],i===a[++n]&&i===a[++n]&&i===a[++n])){o=e.strstart+258;do{}while(i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&n<o);e.match_length=258-(o-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=Bd(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Bd(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(nu(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Id?(nu(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(nu(e,!1),0===e.strm.avail_out)?1:2})(n,t):mu[n.level].func(n,t);if(3!==r&&4!==r||(n.status=666),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),zd;if(2===r&&(t===Ld?Md(n):t!==Rd&&(Fd(n,0,0,!1),t===Pd&&(tu(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),iu(e),0===e.avail_out))return n.last_flush=-1,zd}return t!==Id?zd:n.wrap<=0?Ud:(2===n.wrap?(ou(n,255&e.adler),ou(n,e.adler>>8&255),ou(n,e.adler>>16&255),ou(n,e.adler>>24&255),ou(n,255&e.total_in),ou(n,e.total_in>>8&255),ou(n,e.total_in>>16&255),ou(n,e.total_in>>24&255)):(au(n,e.adler>>>16),au(n,65535&e.adler)),iu(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?zd:Ud)},deflateEnd:e=>{if(!e||!e.state)return $d;const t=e.state.status;return 42!==t&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?Qd(e,$d):(e.state=null,113===t?Qd(e,qd):zd)},deflateSetDictionary:(e,t)=>{let r=t.length;if(!e||!e.state)return $d;const i=e.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return $d;if(1===n&&(e.adler=Od(e.adler,t,r,0)),i.wrap=0,r>=i.w_size){0===n&&(tu(i.head),i.strstart=0,i.block_start=0,i.insert=0);let e=new Uint8Array(i.w_size);e.set(t.subarray(r-i.w_size,r),0),t=e,r=i.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,lu(i);i.lookahead>=3;){let e=i.strstart,t=i.lookahead-2;do{i.ins_h=ru(i,i.ins_h,i.window[e+3-1]),i.prev[e&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=e,e++}while(--t);i.strstart=e,i.lookahead=2,lu(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,i.wrap=n,zd},deflateInfo:"pako deflate (from Nodeca project)"};const yu=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var vu=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)yu(r,t)&&(e[t]=r[t])}}return e},Nu=e=>{let t=0;for(let i=0,n=e.length;i<n;i++)t+=e[i].length;const r=new Uint8Array(t);for(let i=0,n=0,o=e.length;i<o;i++){let t=e[i];r.set(t,n),n+=t.length}return r};let xu=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(xv){xu=!1}const ku=new Uint8Array(256);for(let wv=0;wv<256;wv++)ku[wv]=wv>=252?6:wv>=248?5:wv>=240?4:wv>=224?3:wv>=192?2:1;ku[254]=ku[254]=1;var wu=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,r,i,n,o,a=e.length,s=0;for(n=0;n<a;n++)r=e.charCodeAt(n),55296==(64512&r)&&n+1<a&&(i=e.charCodeAt(n+1),56320==(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),n++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),o=0,n=0;o<s;n++)r=e.charCodeAt(n),55296==(64512&r)&&n+1<a&&(i=e.charCodeAt(n+1),56320==(64512&i)&&(r=65536+(r-55296<<10)+(i-56320),n++)),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},Ou=(e,t)=>{const r=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let i,n;const o=new Array(2*r);for(n=0,i=0;i<r;){let t=e[i++];if(t<128){o[n++]=t;continue}let a=ku[t];if(a>4)o[n++]=65533,i+=a-1;else{for(t&=2===a?31:3===a?15:7;a>1&&i<r;)t=t<<6|63&e[i++],a--;a>1?o[n++]=65533:t<65536?o[n++]=t:(t-=65536,o[n++]=55296|t>>10&1023,o[n++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&xu)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r})(o,n)},Su=(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+ku[e[r]]>t?r:t};var Au=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 Du=Object.prototype.toString,{Z_NO_FLUSH:Cu,Z_SYNC_FLUSH:Eu,Z_FULL_FLUSH:Fu,Z_FINISH:ju,Z_OK:Bu,Z_STREAM_END:Mu,Z_DEFAULT_COMPRESSION:Tu,Z_DEFAULT_STRATEGY:Lu,Z_DEFLATED:Pu}=Cd;function Iu(e){this.options=vu({level:Tu,method:Pu,chunkSize:16384,windowBits:15,memLevel:8,strategy:Lu},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 Au,this.strm.avail_out=0;let r=bu.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Bu)throw new Error(Dd[r]);if(t.header&&bu.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?wu(t.dictionary):"[object ArrayBuffer]"===Du.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=bu.deflateSetDictionary(this.strm,e),r!==Bu)throw new Error(Dd[r]);this._dict_set=!0}}Iu.prototype.push=function(e,t){const r=this.strm,i=this.options.chunkSize;let n,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?ju:Cu,"string"==typeof e?r.input=wu(e):"[object ArrayBuffer]"===Du.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(i),r.next_out=0,r.avail_out=i),(o===Eu||o===Fu)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(n=bu.deflate(r,o),n===Mu)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),n=bu.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Bu;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},Iu.prototype.onData=function(e){this.chunks.push(e)},Iu.prototype.onEnd=function(e){e===Bu&&(this.result=Nu(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Ru=function(e,t){let r,i,n,o,a,s,c,l,d,u,p,m,_,h,f,g,b,y,v,N,x,k,w,O;const S=e.state;r=e.next_in,w=e.input,i=r+(e.avail_in-5),n=e.next_out,O=e.output,o=n-(t-e.avail_out),a=n+(e.avail_out-257),s=S.dmax,c=S.wsize,l=S.whave,d=S.wnext,u=S.window,p=S.hold,m=S.bits,_=S.lencode,h=S.distcode,f=(1<<S.lenbits)-1,g=(1<<S.distbits)-1;e:do{m<15&&(p+=w[r++]<<m,m+=8,p+=w[r++]<<m,m+=8),b=_[p&f];t:for(;;){if(y=b>>>24,p>>>=y,m-=y,y=b>>>16&255,0===y)O[n++]=65535&b;else{if(!(16&y)){if(0==(64&y)){b=_[(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+=w[r++]<<m,m+=8),v+=p&(1<<y)-1,p>>>=y,m-=y),m<15&&(p+=w[r++]<<m,m+=8,p+=w[r++]<<m,m+=8),b=h[p&g];r:for(;;){if(y=b>>>24,p>>>=y,m-=y,y=b>>>16&255,!(16&y)){if(0==(64&y)){b=h[(65535&b)+(p&(1<<y)-1)];continue r}e.msg="invalid distance code",S.mode=30;break e}if(N=65535&b,y&=15,m<y&&(p+=w[r++]<<m,m+=8,m<y&&(p+=w[r++]<<m,m+=8)),N+=p&(1<<y)-1,N>s){e.msg="invalid distance too far back",S.mode=30;break e}if(p>>>=y,m-=y,y=n-o,N>y){if(y=N-y,y>l&&S.sane){e.msg="invalid distance too far back",S.mode=30;break e}if(x=0,k=u,0===d){if(x+=c-y,y<v){v-=y;do{O[n++]=u[x++]}while(--y);x=n-N,k=O}}else if(d<y){if(x+=c+d-y,y-=d,y<v){v-=y;do{O[n++]=u[x++]}while(--y);if(x=0,d<v){y=d,v-=y;do{O[n++]=u[x++]}while(--y);x=n-N,k=O}}}else if(x+=d-y,y<v){v-=y;do{O[n++]=u[x++]}while(--y);x=n-N,k=O}for(;v>2;)O[n++]=k[x++],O[n++]=k[x++],O[n++]=k[x++],v-=3;v&&(O[n++]=k[x++],v>1&&(O[n++]=k[x++]))}else{x=n-N;do{O[n++]=O[x++],O[n++]=O[x++],O[n++]=O[x++],v-=3}while(v>2);v&&(O[n++]=O[x++],v>1&&(O[n++]=O[x++]))}break}}break}}while(r<i&&n<a);v=m>>3,r-=v,m-=v<<3,p&=(1<<m)-1,e.next_in=r,e.next_out=n,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=n<a?a-n+257:257-(n-a),S.hold=p,S.bits=m};const zu=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]),Uu=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]),$u=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]),qu=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 Xu=(e,t,r,i,n,o,a,s)=>{const c=s.bits;let l,d,u,p,m,_,h=0,f=0,g=0,b=0,y=0,v=0,N=0,x=0,k=0,w=0,O=null,S=0;const A=new Uint16Array(16),D=new Uint16Array(16);let C,E,F,j=null,B=0;for(h=0;h<=15;h++)A[h]=0;for(f=0;f<i;f++)A[t[r+f]]++;for(y=c,b=15;b>=1&&0===A[b];b--);if(y>b&&(y=b),0===b)return n[o++]=20971520,n[o++]=20971520,s.bits=1,0;for(g=1;g<b&&0===A[g];g++);for(y<g&&(y=g),x=1,h=1;h<=15;h++)if(x<<=1,x-=A[h],x<0)return-1;if(x>0&&(0===e||1!==b))return-1;for(D[1]=0,h=1;h<15;h++)D[h+1]=D[h]+A[h];for(f=0;f<i;f++)0!==t[r+f]&&(a[D[t[r+f]]++]=f);if(0===e?(O=j=a,_=19):1===e?(O=zu,S-=257,j=Uu,B-=257,_=256):(O=$u,j=qu,_=-1),w=0,f=0,h=g,m=o,v=y,N=0,u=-1,k=1<<y,p=k-1,1===e&&k>852||2===e&&k>592)return 1;for(;;){C=h-N,a[f]<_?(E=0,F=a[f]):a[f]>_?(E=j[B+a[f]],F=O[S+a[f]]):(E=96,F=0),l=1<<h-N,d=1<<v,g=d;do{d-=l,n[m+(w>>N)+d]=C<<24|E<<16|F|0}while(0!==d);for(l=1<<h-1;w&l;)l>>=1;if(0!==l?(w&=l-1,w+=l):w=0,f++,0==--A[h]){if(h===b)break;h=t[r+a[f]]}if(h>y&&(w&p)!==u){for(0===N&&(N=y),m+=g,v=h-N,x=1<<v;v+N<b&&(x-=A[v+N],!(x<=0));)v++,x<<=1;if(k+=1<<v,1===e&&k>852||2===e&&k>592)return 1;u=w&p,n[u]=y<<24|v<<16|m-o|0}}return 0!==w&&(n[m+w]=h-N<<24|64<<16|0),s.bits=y,0};const{Z_FINISH:Ju,Z_BLOCK:Hu,Z_TREES:Gu,Z_OK:Wu,Z_STREAM_END:Zu,Z_NEED_DICT:Yu,Z_STREAM_ERROR:Ku,Z_DATA_ERROR:Vu,Z_MEM_ERROR:Qu,Z_BUF_ERROR:ep,Z_DEFLATED:tp}=Cd,rp=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function ip(){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 np=e=>{if(!e||!e.state)return Ku;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,Wu},op=e=>{if(!e||!e.state)return Ku;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,np(e)},ap=(e,t)=>{let r;if(!e||!e.state)return Ku;const i=e.state;return t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Ku:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,op(e))},sp=(e,t)=>{if(!e)return Ku;const r=new ip;e.state=r,r.window=null;const i=ap(e,t);return i!==Wu&&(e.state=null),i};let cp,lp,dp=!0;const up=e=>{if(dp){cp=new Int32Array(512),lp=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(Xu(1,e.lens,0,288,cp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Xu(2,e.lens,0,32,lp,0,e.work,{bits:5}),dp=!1}e.lencode=cp,e.lenbits=9,e.distcode=lp,e.distbits=5},pp=(e,t,r,i)=>{let n;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)),i>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(n=o.wsize-o.wnext,n>i&&(n=i),o.window.set(t.subarray(r-i,r-i+n),o.wnext),(i-=n)?(o.window.set(t.subarray(r-i,r),0),o.wnext=i,o.whave=o.wsize):(o.wnext+=n,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=n))),0};var mp={inflateReset:op,inflateReset2:ap,inflateResetKeep:np,inflateInit:e=>sp(e,15),inflateInit2:sp,inflate:(e,t)=>{let r,i,n,o,a,s,c,l,d,u,p,m,_,h,f,g,b,y,v,N,x,k,w=0;const O=new Uint8Array(4);let S,A;const D=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 Ku;r=e.state,12===r.mode&&(r.mode=13),a=e.next_out,n=e.output,c=e.avail_out,o=e.next_in,i=e.input,s=e.avail_in,l=r.hold,d=r.bits,u=s,p=c,k=Wu;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;d<16;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(2&r.wrap&&35615===l){r.check=0,O[0]=255&l,O[1]=l>>>8&255,r.check=Ad(r.check,O,2,0),l=0,d=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)!==tp){e.msg="unknown compression method",r.mode=30;break}if(l>>>=4,d-=4,x=8+(15&l),0===r.wbits)r.wbits=x;else if(x>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,d=0;break;case 2:for(;d<16;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(r.flags=l,(255&r.flags)!==tp){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=Ad(r.check,O,2,0)),l=0,d=0,r.mode=3;case 3:for(;d<32;){if(0===s)break e;s--,l+=i[o++]<<d,d+=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=Ad(r.check,O,4,0)),l=0,d=0,r.mode=4;case 4:for(;d<16;){if(0===s)break e;s--,l+=i[o++]<<d,d+=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=Ad(r.check,O,2,0)),l=0,d=0,r.mode=5;case 5:if(1024&r.flags){for(;d<16;){if(0===s)break e;s--,l+=i[o++]<<d,d+=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=Ad(r.check,O,2,0)),l=0,d=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&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(i.subarray(o,o+m),x)),512&r.flags&&(r.check=Ad(r.check,i,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{x=i[o+m++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&m<s);if(512&r.flags&&(r.check=Ad(r.check,i,m,o)),s-=m,o+=m,x)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{x=i[o+m++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&m<s);if(512&r.flags&&(r.check=Ad(r.check,i,m,o)),s-=m,o+=m,x)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;d<16;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(l!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}l=0,d=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(;d<32;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}e.adler=r.check=rp(l),l=0,d=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=d,Yu;e.adler=r.check=1,r.mode=12;case 12:if(t===Hu||t===Gu)break e;case 13:if(r.last){l>>>=7&d,d-=7&d,r.mode=27;break}for(;d<3;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}switch(r.last=1&l,l>>>=1,d-=1,3&l){case 0:r.mode=14;break;case 1:if(up(r),r.mode=20,t===Gu){l>>>=2,d-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}l>>>=2,d-=2;break;case 14:for(l>>>=7&d,d-=7&d;d<32;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,d=0,r.mode=15,t===Gu)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;n.set(i.subarray(o,o+m),a),s-=m,o+=m,c-=m,a+=m,r.length-=m;break}r.mode=12;break;case 17:for(;d<14;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(r.nlen=257+(31&l),l>>>=5,d-=5,r.ndist=1+(31&l),l>>>=5,d-=5,r.ncode=4+(15&l),l>>>=4,d-=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(;d<3;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}r.lens[D[r.have++]]=7&l,l>>>=3,d-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},k=Xu(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,k){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(;w=r.lencode[l&(1<<r.lenbits)-1],f=w>>>24,g=w>>>16&255,b=65535&w,!(f<=d);){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(b<16)l>>>=f,d-=f,r.lens[r.have++]=b;else{if(16===b){for(A=f+2;d<A;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(l>>>=f,d-=f,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}x=r.lens[r.have-1],m=3+(3&l),l>>>=2,d-=2}else if(17===b){for(A=f+3;d<A;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}l>>>=f,d-=f,x=0,m=3+(7&l),l>>>=3,d-=3}else{for(A=f+7;d<A;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}l>>>=f,d-=f,x=0,m=11+(127&l),l>>>=7,d-=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++]=x}}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},k=Xu(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,k){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},k=Xu(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,k){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,t===Gu)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=d,Ru(e,p),a=e.next_out,n=e.output,c=e.avail_out,o=e.next_in,i=e.input,s=e.avail_in,l=r.hold,d=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;w=r.lencode[l&(1<<r.lenbits)-1],f=w>>>24,g=w>>>16&255,b=65535&w,!(f<=d);){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(g&&0==(240&g)){for(y=f,v=g,N=b;w=r.lencode[N+((l&(1<<y+v)-1)>>y)],f=w>>>24,g=w>>>16&255,b=65535&w,!(y+f<=d);){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}l>>>=y,d-=y,r.back+=y}if(l>>>=f,d-=f,r.back+=f,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(A=r.extra;d<A;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;w=r.distcode[l&(1<<r.distbits)-1],f=w>>>24,g=w>>>16&255,b=65535&w,!(f<=d);){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(0==(240&g)){for(y=f,v=g,N=b;w=r.distcode[N+((l&(1<<y+v)-1)>>y)],f=w>>>24,g=w>>>16&255,b=65535&w,!(y+f<=d);){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}l>>>=y,d-=y,r.back+=y}if(l>>>=f,d-=f,r.back+=f,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(A=r.extra;d<A;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,d-=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,_=r.wsize-m):_=r.wnext-m,m>r.length&&(m=r.length),h=r.window}else h=n,_=a-r.offset,m=r.length;m>c&&(m=c),c-=m,r.length-=m;do{n[a++]=h[_++]}while(--m);0===r.length&&(r.mode=21);break;case 26:if(0===c)break e;n[a++]=r.length,c--,r.mode=21;break;case 27:if(r.wrap){for(;d<32;){if(0===s)break e;s--,l|=i[o++]<<d,d+=8}if(p-=c,e.total_out+=p,r.total+=p,p&&(e.adler=r.check=r.flags?Ad(r.check,n,p,a-p):Od(r.check,n,p,a-p)),p=c,(r.flags?l:rp(l))!==r.check){e.msg="incorrect data check",r.mode=30;break}l=0,d=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;d<32;){if(0===s)break e;s--,l+=i[o++]<<d,d+=8}if(l!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}l=0,d=0}r.mode=29;case 29:k=Zu;break e;case 30:k=Vu;break e;case 31:return Qu;case 32:default:return Ku}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=d,(r.wsize||p!==e.avail_out&&r.mode<30&&(r.mode<27||t!==Ju))&&pp(e,e.output,e.next_out,p-e.avail_out),u-=e.avail_in,p-=e.avail_out,e.total_in+=u,e.total_out+=p,r.total+=p,r.wrap&&p&&(e.adler=r.check=r.flags?Ad(r.check,n,p,e.next_out-p):Od(r.check,n,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===u&&0===p||t===Ju)&&k===Wu&&(k=ep),k},inflateEnd:e=>{if(!e||!e.state)return Ku;let t=e.state;return t.window&&(t.window=null),e.state=null,Wu},inflateGetHeader:(e,t)=>{if(!e||!e.state)return Ku;const r=e.state;return 0==(2&r.wrap)?Ku:(r.head=t,t.done=!1,Wu)},inflateSetDictionary:(e,t)=>{const r=t.length;let i,n,o;return e&&e.state?(i=e.state,0!==i.wrap&&11!==i.mode?Ku:11===i.mode&&(n=1,n=Od(n,t,r,0),n!==i.check)?Vu:(o=pp(e,t,r,r),o?(i.mode=31,Qu):(i.havedict=1,Wu))):Ku},inflateInfo:"pako inflate (from Nodeca project)"};var _p=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 hp=Object.prototype.toString,{Z_NO_FLUSH:fp,Z_FINISH:gp,Z_OK:bp,Z_STREAM_END:yp,Z_NEED_DICT:vp,Z_STREAM_ERROR:Np,Z_DATA_ERROR:xp,Z_MEM_ERROR:kp}=Cd;function wp(e){this.options=vu({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 Au,this.strm.avail_out=0;let r=mp.inflateInit2(this.strm,t.windowBits);if(r!==bp)throw new Error(Dd[r]);if(this.header=new _p,mp.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=wu(t.dictionary):"[object ArrayBuffer]"===hp.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=mp.inflateSetDictionary(this.strm,t.dictionary),r!==bp)))throw new Error(Dd[r])}wp.prototype.push=function(e,t){const r=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=t===~~t?t:!0===t?gp:fp,"[object ArrayBuffer]"===hp.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(i),r.next_out=0,r.avail_out=i),o=mp.inflate(r,a),o===vp&&n&&(o=mp.inflateSetDictionary(r,n),o===bp?o=mp.inflate(r,a):o===xp&&(o=vp));r.avail_in>0&&o===yp&&r.state.wrap>0&&0!==e[r.next_in];)mp.inflateReset(r),o=mp.inflate(r,a);switch(o){case Np:case xp:case vp:case kp:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||o===yp))if("string"===this.options.to){let e=Su(r.output,r.next_out),t=r.next_out-e,n=Ou(r.output,e);r.next_out=t,r.avail_out=i-t,t&&r.output.set(r.output.subarray(e,e+t),0),this.onData(n)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(o!==bp||0!==s){if(o===yp)return o=mp.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},wp.prototype.onData=function(e){this.chunks.push(e)},wp.prototype.onEnd=function(e){e===bp&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Nu(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Op,Sp,Ap={exports:{}},Dp={exports:{}};Op="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sp={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&Sp.rotl(e,8)|4278255360&Sp.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=Sp.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,i=0;r<e.length;r++,i+=8)t[i>>>5]|=e[r]<<24-i%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 i=e[r]<<16|e[r+1]<<8|e[r+2],n=0;n<4;n++)8*r+6*n<=8*e.length?t.push(Op.charAt(i>>>6*(3-n)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&t.push((Op.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|Op.indexOf(e.charAt(r))>>>6-2*i);return t}},Dp.exports=Sp;var Cp={utf8:{stringToBytes:function(e){return Cp.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Cp.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("")}}},Ep=Cp,Fp=function(e){return null!=e&&(jp(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&jp(e.slice(0,0))}(e)||!!e._isBuffer)};function jp(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}!function(){var e=Dp.exports,t=Ep.utf8,r=Fp,i=Ep.bin,n=function(o,a){o.constructor==String?o=a&&"binary"===a.encoding?i.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,d=-271733879,u=-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 _=n._ff,h=n._gg,f=n._hh,g=n._ii;for(m=0;m<s.length;m+=16){var b=l,y=d,v=u,N=p;l=_(l,d,u,p,s[m+0],7,-680876936),p=_(p,l,d,u,s[m+1],12,-389564586),u=_(u,p,l,d,s[m+2],17,606105819),d=_(d,u,p,l,s[m+3],22,-1044525330),l=_(l,d,u,p,s[m+4],7,-176418897),p=_(p,l,d,u,s[m+5],12,1200080426),u=_(u,p,l,d,s[m+6],17,-1473231341),d=_(d,u,p,l,s[m+7],22,-45705983),l=_(l,d,u,p,s[m+8],7,1770035416),p=_(p,l,d,u,s[m+9],12,-1958414417),u=_(u,p,l,d,s[m+10],17,-42063),d=_(d,u,p,l,s[m+11],22,-1990404162),l=_(l,d,u,p,s[m+12],7,1804603682),p=_(p,l,d,u,s[m+13],12,-40341101),u=_(u,p,l,d,s[m+14],17,-1502002290),l=h(l,d=_(d,u,p,l,s[m+15],22,1236535329),u,p,s[m+1],5,-165796510),p=h(p,l,d,u,s[m+6],9,-1069501632),u=h(u,p,l,d,s[m+11],14,643717713),d=h(d,u,p,l,s[m+0],20,-373897302),l=h(l,d,u,p,s[m+5],5,-701558691),p=h(p,l,d,u,s[m+10],9,38016083),u=h(u,p,l,d,s[m+15],14,-660478335),d=h(d,u,p,l,s[m+4],20,-405537848),l=h(l,d,u,p,s[m+9],5,568446438),p=h(p,l,d,u,s[m+14],9,-1019803690),u=h(u,p,l,d,s[m+3],14,-187363961),d=h(d,u,p,l,s[m+8],20,1163531501),l=h(l,d,u,p,s[m+13],5,-1444681467),p=h(p,l,d,u,s[m+2],9,-51403784),u=h(u,p,l,d,s[m+7],14,1735328473),l=f(l,d=h(d,u,p,l,s[m+12],20,-1926607734),u,p,s[m+5],4,-378558),p=f(p,l,d,u,s[m+8],11,-2022574463),u=f(u,p,l,d,s[m+11],16,1839030562),d=f(d,u,p,l,s[m+14],23,-35309556),l=f(l,d,u,p,s[m+1],4,-1530992060),p=f(p,l,d,u,s[m+4],11,1272893353),u=f(u,p,l,d,s[m+7],16,-155497632),d=f(d,u,p,l,s[m+10],23,-1094730640),l=f(l,d,u,p,s[m+13],4,681279174),p=f(p,l,d,u,s[m+0],11,-358537222),u=f(u,p,l,d,s[m+3],16,-722521979),d=f(d,u,p,l,s[m+6],23,76029189),l=f(l,d,u,p,s[m+9],4,-640364487),p=f(p,l,d,u,s[m+12],11,-421815835),u=f(u,p,l,d,s[m+15],16,530742520),l=g(l,d=f(d,u,p,l,s[m+2],23,-995338651),u,p,s[m+0],6,-198630844),p=g(p,l,d,u,s[m+7],10,1126891415),u=g(u,p,l,d,s[m+14],15,-1416354905),d=g(d,u,p,l,s[m+5],21,-57434055),l=g(l,d,u,p,s[m+12],6,1700485571),p=g(p,l,d,u,s[m+3],10,-1894986606),u=g(u,p,l,d,s[m+10],15,-1051523),d=g(d,u,p,l,s[m+1],21,-2054922799),l=g(l,d,u,p,s[m+8],6,1873313359),p=g(p,l,d,u,s[m+15],10,-30611744),u=g(u,p,l,d,s[m+6],15,-1560198380),d=g(d,u,p,l,s[m+13],21,1309151649),l=g(l,d,u,p,s[m+4],6,-145523070),p=g(p,l,d,u,s[m+11],10,-1120210379),u=g(u,p,l,d,s[m+2],15,718787259),d=g(d,u,p,l,s[m+9],21,-343485551),l=l+b>>>0,d=d+y>>>0,u=u+v>>>0,p=p+N>>>0}return e.endian([l,d,u,p])};n._ff=function(e,t,r,i,n,o,a){var s=e+(t&r|~t&i)+(n>>>0)+a;return(s<<o|s>>>32-o)+t},n._gg=function(e,t,r,i,n,o,a){var s=e+(t&i|r&~i)+(n>>>0)+a;return(s<<o|s>>>32-o)+t},n._hh=function(e,t,r,i,n,o,a){var s=e+(t^r^i)+(n>>>0)+a;return(s<<o|s>>>32-o)+t},n._ii=function(e,t,r,i,n,o,a){var s=e+(r^(t|~i))+(n>>>0)+a;return(s<<o|s>>>32-o)+t},n._blocksize=16,n._digestsize=16,Ap.exports=function(t,r){if(null==t)throw new Error("Illegal argument "+t);var o=e.wordsToBytes(n(t,r));return r&&r.asBytes?o:r&&r.asString?i.bytesToString(o):e.bytesToHex(o)}}();var Bp,Mp,Tp=Ap.exports;(Mp=Bp||(Bp={})).UP="up",Mp.DOWN="down",Mp.NORTH="north",Mp.EAST="east",Mp.SOUTH="south",Mp.WEST="west";const Lp={[Bp.UP]:[0,1,0],[Bp.DOWN]:[0,-1,0],[Bp.NORTH]:[0,0,-1],[Bp.EAST]:[1,0,0],[Bp.SOUTH]:[0,0,1],[Bp.WEST]:[-1,0,0]};var Pp,Ip,Rp,zp,Up,$p,qp,Xp,Jp,Hp,Gp,Wp,Zp,Yp,Kp,Vp,Qp,em,tm,rm;function im(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 Lp[e]}}(Bp||(Bp={})),function(e){e.create=function(e,t,r){return[e,t,r]},e.offset=function(e,t,r,i){return[e[0]+t,e[1]+r,e[2]+i]},e.towards=function(t,r){return e.offset(t,...Bp.normal(r))}}(Pp||(Pp={})),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 i;const n=null!==(i=t(e))&&void 0!==i?i:{};return Object.fromEntries(Object.entries(n).map((([e,t])=>[e,r(t)])))},e.compose=function(e,t,r){const i=t(e);return i?r(i):void 0}}(Ip||(Ip={}));class nm{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=im(e.value,"Name","string"),r=function(e,t){try{return e()}catch(r){return t}}((()=>im(e.value,"Properties","compound")),{}),i=Object.keys(r).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:im(r,t,"string")})),{});return new nm(t,i)}static fromJson(e){var t,r;const i=null!==(t=Ip.readObject(e))&&void 0!==t?t:{},n=null!==(r=Ip.readString(i.Name))&&void 0!==r?r:"minecraft:stone",o=Ip.readMap(i.Properties,(e=>{var t;return null!==(t=Ip.readString(e))&&void 0!==t?t:""}));return new nm(n,o)}}nm.AIR=new nm("minecraft:air");class om{constructor(e){this.minY=e,this.storage=Array(om.SIZE),this.palette=[nm.AIR]}get minBlockY(){return this.minY<<4}index(e,t,r){return(e<<8)+(t<<4)+r}getBlockState(e,t,r){var i;const n=this.storage[this.index(e,t,r)];return null!==(i=this.palette[n])&&void 0!==i?i:nm.AIR}setBlockState(e,t,r,i){let n=this.palette.findIndex((e=>e.equals(i)));-1===n&&(n=this.palette.length,this.palette.push(i)),this.storage[this.index(e,t,r)]=n}}om.WIDTH=16,om.SIZE=om.WIDTH*om.WIDTH*om.WIDTH;class am{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,i,n]=e,o=this.sections[this.getSectionIndex(i)];return null!==(t=null==o?void 0:o.getBlockState(15&r,15&i,15&n))&&void 0!==t?t:nm.AIR}setBlockState(e,t){const[r,i,n]=e,o=this.getSectionIndex(i);let a=this.sections[o];if(null===a){if(t.equals(nm.AIR))return;a=this.getOrCreateSection(o)}a.setBlockState(15&r,15&i,15&n,t)}getOrCreateSection(e){return null==this.sections[e]&&(this.sections[e]=new om(this.minSection+e)),this.sections[e]}}function sm(e){let t=null;return()=>(null==t&&(t=e()),t)}function cm(e,t,r){const i=e.get(t);if(i)return i;const n=r(t);return e.set(t,n),n}function lm(e){return e*e}function dm(e,t,r){return Math.max(t,Math.min(r,e))}function um(e,t,r){return t+e*(r-t)}function pm(e,t,r,i,n,o){return um(t,um(e,r,i),um(e,n,o))}function mm(e,t,r){return r<0?e:r>1?t:um(r,e,t)}function _m(e,t,r){return(e-t)/(r-t)}function hm(e){return e*e*e*(e*(6*e-15)+10)}function fm(e,t,r,i,n){return um(_m(e,t,r),i,n)}function gm(e,t,r){let i=BigInt(3129871*e)^BigInt(r)*BigInt(116129781)^BigInt(t);return i=i*i*BigInt(42317861)+i*BigInt(11),i>>BigInt(16)}function bm(e,t,r,i,n,o,a,s){return BigInt(e)<<BigInt(56)|BigInt(t)<<BigInt(48)|BigInt(r)<<BigInt(40)|BigInt(i)<<BigInt(32)|BigInt(n)<<BigInt(24)|BigInt(o)<<BigInt(16)|BigInt(a)<<BigInt(8)|BigInt(s)}!function(e){function t(e,t){return BigInt(4294967295&e)|BigInt(4294967295&t)<<BigInt(32)}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.toLong=function(e){return t(e[0],e[1])},e.asLong=t,e.minBlockX=function(e){return e[0]<<4},e.minBlockZ=function(e){return e[1]<<4},e.maxBlockX=function(e){return 15+(e[0]<<4)},e.maxBlockZ=function(e){return 15+(e[1]<<4)}}(Rp||(Rp={}));class ym{constructor(e){this.seed=BigInt(0),this.setSeed(e)}fork(){return new ym(this.nextLong())}forkPositional(){return new vm(this.seed)}setSeed(e){this.seed=e^ym.MULTIPLIER&ym.MODULUS_MASK}advance(){this.seed=this.seed*ym.MULTIPLIER+ym.INCREMENT&ym.MODULUS_MASK}consume(e){for(let t=0;t<e;t+=1)this.advance()}next(e){this.advance();const t=Number(this.seed>>BigInt(ym.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)*ym.FLOAT_MULTIPLIER}nextDouble(){const e=this.next(30);return this.advance(),e*ym.DOUBLE_MULTIPLIER}}ym.MODULUS_BITS=48,ym.MODULUS_MASK=BigInt("281474976710655"),ym.MULTIPLIER=BigInt("25214903917"),ym.INCREMENT=BigInt("11"),ym.FLOAT_MULTIPLIER=1/Math.pow(2,24),ym.DOUBLE_MULTIPLIER=1/Math.pow(2,30);class vm{constructor(e){this.seed=e}at(e,t,r){const i=gm(e,t,r);return new ym(i^this.seed)}fromHashOf(e){const t=Tp(e,{asBytes:!0}),r=bm(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]);return new ym(r^this.seed)}}class Nm{constructor(e){this.seed=[BigInt(0),BigInt(0)],this.seed=e}static create(e){return new Nm(Nm.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^Nm.SILVER_RATIO_64,r=t+Nm.GOLDEN_RATIO_64&BigInt("0xFFFFFFFFFFFFFFFF");return[Nm.mixStafford13(t),Nm.mixStafford13(r)]}static rotateLeft(e,t){return e<<t&BigInt("0xFFFFFFFFFFFFFFFF")|e>>BigInt(64)-t}setSeed(e){this.seed=Nm.upgradeSeedTo128bit(e)}fork(){return new Nm([this.next(),this.next()])}forkPositional(){return new xm(this.next(),this.next())}next(){const e=this.seed[0];let t=this.seed[1];const r=Nm.rotateLeft(e+t&BigInt("0xFFFFFFFFFFFFFFFF"),BigInt(17))+e&BigInt("0xFFFFFFFFFFFFFFFF");return t^=e,this.seed=[Nm.rotateLeft(e,BigInt(49))^t^t<<BigInt(21)&BigInt("0xFFFFFFFFFFFFFFFF"),Nm.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 i=0;i<e;i+=1)r^=t,t=Nm.rotateLeft(t,BigInt(49))^r^r<<BigInt(21),r=Nm.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 i=t*r,n=i&BigInt(4294967295);if(n<r){const e=((~r&BigInt(4294967295))+BigInt(1))%r;for(;n<e;)t=this.next()&BigInt(4294967295),i=t*r,n=i&BigInt(4294967295)}const o=i>>BigInt(32);return Number(o)}{let e=Number(t);return e>=2147483648&&(e-=4294967296),e}}nextFloat(){return Number(this.nextBits(24))*Nm.FLOAT_MULTIPLIER}nextDouble(){return Number(this.nextBits(53))*Nm.DOUBLE_MULTIPLIER}parityConfigString(){return"seedLo: "+this.seed[0]+", seedHi: "+this.seed[1]}}Nm.SILVER_RATIO_64=BigInt("7640891576956012809"),Nm.GOLDEN_RATIO_64=BigInt("-7046029254386353131"),Nm.FLOAT_MULTIPLIER=1/Math.pow(2,24),Nm.DOUBLE_MULTIPLIER=11102230246251565e-32;class xm{constructor(e,t){this.seedLo=e,this.seedHi=t}at(e,t,r){const i=gm(e,t,r)^this.seedLo;return new Nm([i,this.seedHi])}fromHashOf(e){const t=Tp(e,{asBytes:!0}),r=bm(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),i=bm(t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]);return new Nm([r^this.seedLo,i^this.seedHi])}}class km{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),i=this.p[t];this.p[t]=this.p[t+r],this.p[t+r]=i}}sample2D(e,t){let r,i,n;const o=(e+t)*km.F2,a=Math.floor(e+o),s=e-(a-(r=(a+(i=Math.floor(t+o)))*km.G2));let c,l;s>(n=t-(i-r))?(c=1,l=0):(c=0,l=1);const d=s-c+km.G2,u=n-l+km.G2,p=s-1+2*km.G2,m=n-1+2*km.G2,_=255&a,h=255&i,f=this.P(_+this.P(h))%12,g=this.P(_+c+this.P(h+l))%12,b=this.P(_+1+this.P(h+1))%12;return 70*(this.getCornerNoise3D(f,s,n,0,.5)+this.getCornerNoise3D(g,d,u,0,.5)+this.getCornerNoise3D(b,p,m,0,.5))}sample(e,t,r){const i=.3333333333333333*(e+t+r),n=Math.floor(e+i),o=Math.floor(t+i),a=Math.floor(r+i),s=.16666666666666666*(n+o+a),c=e-(n-s),l=t-(o-s),d=r-(a-s);let u,p,m,_,h,f;c>=l?l>=d?(u=1,p=0,m=0,_=1,h=1,f=0):c>=d?(u=1,p=0,m=0,_=1,h=0,f=1):(u=0,p=0,m=1,_=1,h=0,f=1):l<d?(u=0,p=0,m=1,_=0,h=1,f=1):c<d?(u=0,p=1,m=0,_=0,h=1,f=1):(u=0,p=1,m=0,_=1,h=1,f=0);const g=c-u+.16666666666666666,b=l-p+.16666666666666666,y=d-m+.16666666666666666,v=c-_+.3333333333333333,N=l-h+.3333333333333333,x=d-f+.3333333333333333,k=c-.5,w=l-.5,O=d-.5,S=255&n,A=255&o,D=255&a,C=this.P(S+this.P(A+this.P(D)))%12,E=this.P(S+u+this.P(A+p+this.P(D+m)))%12,F=this.P(S+_+this.P(A+h+this.P(D+f)))%12,j=this.P(S+1+this.P(A+1+this.P(D+1)))%12;return 32*(this.getCornerNoise3D(C,c,l,d,.6)+this.getCornerNoise3D(E,g,b,y,.6)+this.getCornerNoise3D(F,v,N,x,.6)+this.getCornerNoise3D(j,k,w,O,.6))}P(e){return this.p[255&e]}getCornerNoise3D(e,t,r,i,n){let o,a=n-t*t-r*r-i*i;return a<0?o=0:(a*=a,o=a*a*km.gradDot(e,t,r,i)),o}static gradDot(e,t,r,i){const n=km.GRADIENT[15&e];return n[0]*t+n[1]*r+n[2]*i}}km.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]],km.F2=.5*(Math.sqrt(3)-1),km.G2=(3-Math.sqrt(3))/6;class wm{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),i=this.p[t];this.p[t]=this.p[t+r],this.p[t+r]=i}}sample(e,t,r,i=0,n=0){const o=e+this.xo,a=t+this.yo,s=r+this.zo,c=Math.floor(o),l=Math.floor(a),d=Math.floor(s),u=o-c,p=a-l,m=s-d;let _=0;if(0!==i){const e=n>=0&&n<p?n:p;_=Math.floor(e/i+1e-7)*i}return this.sampleAndLerp(c,l,d,u,p-_,m,p)}sampleAndLerp(e,t,r,i,n,o,a){const s=this.P(e),c=this.P(e+1),l=this.P(s+t),d=this.P(s+t+1),u=this.P(c+t),p=this.P(c+t+1),m=km.gradDot(this.P(l+r),i,n,o),_=km.gradDot(this.P(u+r),i-1,n,o),h=km.gradDot(this.P(d+r),i,n-1,o),f=km.gradDot(this.P(p+r),i-1,n-1,o),g=km.gradDot(this.P(l+r+1),i,n,o-1),b=km.gradDot(this.P(u+r+1),i-1,n,o-1),y=km.gradDot(this.P(d+r+1),i,n-1,o-1),v=km.gradDot(this.P(p+r+1),i-1,n-1,o-1);return function(e,t,r,i,n,o,a,s,c,l,d){return um(r,pm(e,t,i,n,o,a),pm(e,t,s,c,l,d))}(hm(i),hm(a),hm(o),m,_,h,f,g,b,y,v)}P(e){return 255&this.p[255&e]}}class Om{constructor(e,t,r){if(e instanceof Nm){const i=e.forkPositional();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 wm(i.fromHashOf("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 i=-t;i>=0;i-=1)i<r.length&&0!==r[i]?this.noiseLevels[i]=new wm(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,i=0,n=0,o=!1){let a=0,s=this.lowestFreqInputFactor,c=this.lowestFreqValueFactor;for(let l=0;l<this.noiseLevels.length;l+=1){const d=this.noiseLevels[l];d&&(a+=this.amplitudes[l]*c*d.sample(Om.wrap(e*s),o?-d.yo:Om.wrap(t*s),Om.wrap(r*s),i*s,n*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 Sm{constructor(e,t,r,i){this.cellWidth=r,this.cellHeight=i,this.minLimitNoise=new Om(e,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.maxLimitNoise=new Om(e,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.mainNoise=new Om(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 i;e=Math.floor(e/this.cellWidth),t=Math.floor(t/this.cellHeight),r=Math.floor(r/this.cellWidth);let n=0,o=1;for(let c=0;c<8;c+=1){if(i=this.mainNoise.getOctaveNoise(c),i){const a=this.xzMainScale*o,s=this.yMainScale*o,c=Om.wrap(e*a),l=Om.wrap(t*s),d=Om.wrap(r*a);n+=i.sample(c,l,d,s,t*s)/o}o/=2}n=(n/10+1)/2,o=1;let a=0,s=0;for(let c=0;c<16;c+=1){const l=this.xzScale*o,d=this.yScale*o,u=Om.wrap(e*l),p=Om.wrap(t*d),m=Om.wrap(r*l);n<1&&(i=this.minLimitNoise.getOctaveNoise(c))&&(a+=i.sample(u,p,m,d,t*d)/o),n>0&&(i=this.maxLimitNoise.getOctaveNoise(c))&&(s+=i.sample(u,p,m,d,t*d)/o),o/=2}return mm(a/512,s/512,n)/128}}(zp||(zp={})).fromJson=function(e){var t,r,i,n,o;const a=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return{xzScale:null!==(r=Ip.readNumber(a.xz_scale))&&void 0!==r?r:1,yScale:null!==(i=Ip.readNumber(a.y_scale))&&void 0!==i?i:1,xzFactor:null!==(n=Ip.readNumber(a.xz_factor))&&void 0!==n?n:80,yFactor:null!==(o=Ip.readNumber(a.y_factor))&&void 0!==o?o:80}};class Am{constructor(e,{firstOctave:t,amplitudes:r}){this.first=new Om(e,t,r),this.second=new Om(e,t,r);let i=1/0,n=-1/0;for(let a=0;a<r.length;a+=1)0!==r[a]&&(i=Math.min(i,a),n=Math.max(n,a));const o=.1*(1+1/(n-i+1));this.valueFactor=1/6/o}sample(e,t,r){const i=e*Am.INPUT_FACTOR,n=t*Am.INPUT_FACTOR,o=r*Am.INPUT_FACTOR;return(this.first.sample(e,t,r)+this.second.sample(i,n,o))*this.valueFactor}}Am.INPUT_FACTOR=1.0181268882175227,function(e){e.create=function(e,t){return{firstOctave:e,amplitudes:t}},e.fromJson=function(e){var t,r,i;const n=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return{firstOctave:null!==(r=Ip.readInt(n.firstOctave))&&void 0!==r?r:0,amplitudes:null!==(i=Ip.readArray(n.amplitudes,(e=>{var t;return null!==(t=Ip.readNumber(e))&&void 0!==t?t:0})))&&void 0!==i?i:[]}}}(Up||(Up={})),function(e){e.fromJson=function(t,r){var i,n,o,a;if("number"==typeof t)return new Dm(t);const s=null!==(i=Ip.readObject(t))&&void 0!==i?i:{},c=new Cm(r(s.coordinate)),l=null!==(n=Ip.readArray(s.points,(e=>{var t;return null!==(t=Ip.readObject(e))&&void 0!==t?t:{}})))&&void 0!==n?n:[];if(0===l.length)return new Dm(0);for(const d of l){const t=null!==(o=Ip.readNumber(d.location))&&void 0!==o?o:0,i=e.fromJson(d.value,r),n=null!==(a=Ip.readNumber(d.derivative))&&void 0!==a?a:0;c.addPoint(t,i,n)}return c}}($p||($p={}));class Dm{constructor(e){this.value=e}apply(){return this.value}toJson(){return this.value}}class Cm{constructor(e,t=[],r=[],i=[]){this.coordinate=e,this.locations=t,this.values=r,this.derivatives=i}apply(e){const t=this.coordinate.apply(e),r=function(e,t,r){let i=t-e;for(;i>0;){const t=Math.floor(i/2),n=e+t;r(n)?i=t:(e=n+1,i-=t+1)}return e}(0,this.locations.length,(e=>t<this.locations[e]))-1,i=this.locations.length-1;if(r<0)return this.values[0].apply(e)+this.derivatives[0]*(t-this.locations[0]);if(r===i)return this.values[i].apply(e)+this.derivatives[i]*(t-this.locations[i]);const n=this.locations[r],o=this.locations[r+1],a=this.derivatives[r],s=this.derivatives[r+1],c=(t-n)/(o-n),l=this.values[r].apply(e),d=this.values[r+1].apply(e),u=a*(o-n)-(d-l),p=-s*(o-n)+(d-l);return um(c,l,d)+c*(1-c)*um(c,u,p)}addPoint(e,t,r=0){return this.locations.push(e),this.values.push("number"==typeof t?new Dm(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]})))}}}(qp||(qp={})).rotate=function(e,t,r){let{up:i,down:n,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:[i,o,n,s]=[o,n,s,i];break;case 180:[i,o,n,s]=[n,s,i,o];break;case 270:[i,o,n,s]=[s,i,o,n]}return{up:i,down:n,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,i,o,a){return new n(e,t,r,i,o,a)},e.parameters=function(e,r,n,o,a,s,c){return new i(t(e),t(r),t(n),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[i,n]=null!==(t=Ip.readArray(e,(e=>Ip.readNumber(e))))&&void 0!==t?t:[];return new r(null!=i?i:0,null!=n?n:0)}}e.Param=r;class i{constructor(e,t,r,i,n,o,a){this.temperature=e,this.humidity=t,this.continentalness=r,this.erosion=i,this.depth=n,this.weirdness=o,this.offset=a}fittness(e){return lm(this.temperature.distance(e.temperature))+lm(this.humidity.distance(e.humidity))+lm(this.continentalness.distance(e.continentalness))+lm(this.erosion.distance(e.erosion))+lm(this.depth.distance(e.depth))+lm(this.weirdness.distance(e.weirdness))+lm(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,n;const o=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return new i(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!==(n=Ip.readInt(o.offset))&&void 0!==n?n:0)}}e.ParamPoint=i;class n{constructor(e,t,r,i,n,o){this.temperature=e,this.humidity=t,this.continentalness=r,this.erosion=i,this.depth=n,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=n,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 i=e.space[r];t+=Math.abs((i.min+i.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,i=[];for(let n=0;n<7;++n){e=o.sort(e,n,!1),i=o.bucketize(e);let a=0;for(const e of i)a+=o.area(e.space);t>a&&(t=a,r=n)}return e=o.sort(e,r,!1),i=o.bucketize(e),i=o.sort(i,r,!0),new s(i.map((e=>o.build(e.children))))}static sort(e,t,r){return e.map((e=>{const i=e.space[t],n=(i.min+i.max)/2;return{key:r?Math.abs(n):n,node:e}})).sort(((e,t)=>e.key-t.key)).map((({node:e})=>e))}static bucketize(e){const t=[];let r=[];const i=Math.pow(10,Math.floor(Math.log(e.length-.01)/Math.log(10)));for(const n of e)r.push(n),r.length<i||(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+=lm(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,i)=>t[i].union(r.space[i])));return t}search(e,t){let r=1/0,i=null;for(const n of this.children){const o=t(n,e);if(r<=o)continue;const a=n.search(e,t),s=n==a?o:t(a,e);r<=s||(r=s,i=a)}return i}}e.RSubTree=s;class c extends a{constructor(e,t){super(e.space()),this.thing=t}search(){return this}}e.RLeaf=c}(Xp||(Xp={}));class Em{constructor(e){this.biome=e}getBiome(){return this.biome}static fromJson(e){var t,r;const i=null!==(t=Ip.readObject(e))&&void 0!==t?t:{},n=null!==(r=Ip.readString(i.biome))&&void 0!==r?r:"minecraft:the_void";return new Em(n)}}class Fm{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=Ip.readObject(e))&&void 0!==t?t:{};return new Fm($p.fromJson(r.offset,this.EXTRACTOR),$p.fromJson(r.factor,this.EXTRACTOR),$p.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)+Fm.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),i=this.buildErosionOffsetSpline(.3,.03,.1,1,.01,.01,!0,!0),n=new Cm(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,i),o=new Cm(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 Cm(this.CONTINENTS).addPoint(.11,0).addPoint(.03,this.buildErosionJaggednessSpline(1,.5,0,0)).addPoint(.65,this.buildErosionJaggednessSpline(1,1,1,0));return new Fm(n,o,a)}static getErosionFactor(e,t){const r=new Cm(this.WEIRDNESS).addPoint(-.2,6.3).addPoint(.2,e),i=new Cm(this.EROSION).addPoint(-.6,r).addPoint(-.5,new Cm(this.WEIRDNESS).addPoint(-.05,6.3).addPoint(.05,2.67)).addPoint(-.35,r).addPoint(-.25,r).addPoint(-.1,new Cm(this.WEIRDNESS).addPoint(-.05,2.67).addPoint(.05,6.3)).addPoint(.03,r);if(t){const t=new Cm(this.WEIRDNESS).addPoint(0,e).addPoint(.1,.625),r=new Cm(this.RIDGES).addPoint(-.9,e).addPoint(-.69,t);i.addPoint(.35,e).addPoint(.45,r).addPoint(.55,r).addPoint(.62,e)}else{const t=new Cm(this.RIDGES).addPoint(-.7,r).addPoint(-.15,1.37),n=new Cm(this.RIDGES).addPoint(.45,r).addPoint(.7,1.56);i.addPoint(.05,n).addPoint(.4,n).addPoint(.45,t).addPoint(.55,t).addPoint(.58,e)}return i}static buildErosionOffsetSpline(e,t,r,i,n,o,a,s){const c=this.buildMountainRidgeSplineWithPoints(um(i,.6,1.5),s),l=this.buildMountainRidgeSplineWithPoints(um(i,.6,1),s),d=this.buildMountainRidgeSplineWithPoints(i,s),u=this.ridgeSpline(e-.15,.5*i,um(.5,.5,.5)*i,.5*i,.6*i,.5),p=this.ridgeSpline(e,n*i,t*i,.5*i,.6*i,.5),m=this.ridgeSpline(e,n,n,t,r,.5),_=this.ridgeSpline(e,n,n,t,r,.5),h=new Cm(this.RIDGES).addPoint(-1,e).addPoint(-.4,m).addPoint(0,r+.07),f=this.ridgeSpline(-.02,o,o,t,r,0),g=new Cm(this.EROSION).addPoint(-.85,c).addPoint(-.7,l).addPoint(-.4,d).addPoint(-.35,u).addPoint(-.1,p).addPoint(.2,m);return a&&g.addPoint(.4,_).addPoint(.45,h).addPoint(.55,h).addPoint(.58,_),g.addPoint(.7,f),g}static buildMountainRidgeSplineWithPoints(e,t){const r=new Cm(this.RIDGES),i=this.mountainContinentalness(-1,e,-.7),n=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(i,a,-1,-.75);r.addPoint(-1,i,s),r.addPoint(-.75,a),r.addPoint(-.65,t);const c=this.mountainContinentalness(o,e,-.7),l=this.calculateSlope(c,n,o,1);r.addPoint(o-.01,c),r.addPoint(o,c,l),r.addPoint(1,n,l)}else{const e=this.calculateSlope(i,n,-1,1);t?(r.addPoint(-1,Math.max(.2,i)),r.addPoint(0,um(.5,i,n),e)):r.addPoint(-1,i,e),r.addPoint(1,n,e)}return r}static mountainContinentalness(e,t,r){const i=.46082947*(e+1.17)*(1-.5*(1-t))-.5*(1-t);return e<r?Math.max(i,-.2222):Math.max(i,0)}static calculateMountainRidgeZeroContinentalnessPoint(e){return.5*(1-e)/(.46082947*(1-.5*(1-e)))-1.17}static calculateSlope(e,t,r,i){return(t-e)/(i-r)}static ridgeSpline(e,t,r,i,n,o){const a=Math.max(.5*(t-e),o),s=5*(r-t);return new Cm(this.RIDGES).addPoint(-1,e,a).addPoint(-.4,t,Math.min(a,s)).addPoint(0,r,s).addPoint(.4,i,2*(i-r)).addPoint(1,n,.7*(n-i))}static buildErosionJaggednessSpline(e,t,r,i){const n=this.buildRidgeJaggednessSpline(e,r),o=this.buildRidgeJaggednessSpline(t,i);return new Cm(this.EROSION).addPoint(-1,n).addPoint(-.78,o).addPoint(-.5775,o).addPoint(-.375,0)}static buildRidgeJaggednessSpline(e,t){const r=Fm.peaksAndValleys(.4),i=(r+Fm.peaksAndValleys(.56666666))/2;return new Cm(this.RIDGES).addPoint(r,0).addPoint(i,t>0?this.buildWeirdnessJaggednessSpline(t):0).addPoint(1,e>0?this.buildWeirdnessJaggednessSpline(e):0)}static buildWeirdnessJaggednessSpline(e){return new Cm(Fm.WEIRDNESS).addPoint(-.01,.63*e).addPoint(.01,.3*e)}}Fm.GLOBAL_OFFSET=-.50375,Fm.EXTRACTOR=e=>{var t;const r=null!==(t=Ip.readString(e))&&void 0!==t?t:"continents";return Fm.extractor(r)},Fm.CONTINENTS=Fm.extractor("continents"),Fm.EROSION=Fm.extractor("erosion"),Fm.WEIRDNESS=Fm.extractor("weirdness"),Fm.RIDGES=Fm.extractor("ridges"),(Jp||(Jp={})).fromList=function(e){return(t,r,i,n)=>{for(const o of e){const e=o(t,r,i,n);if(e)return e}return null}},function(e){function t(e){return e.ySize<<2}e.fromJson=function(e){var t,r,i,n,o,a,s,c;const l=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return{minY:null!==(r=Ip.readInt(l.min_y))&&void 0!==r?r:0,height:null!==(i=Ip.readInt(l.height))&&void 0!==i?i:256,xzSize:null!==(n=Ip.readInt(l.size_horizontal))&&void 0!==n?n:1,ySize:null!==(o=Ip.readInt(l.size_vertical))&&void 0!==o?o:1,sampling:zp.fromJson(l.sampling),topSlide:Gp.fromJson(l.top_slide),bottomSlide:Gp.fromJson(l.bottom_slide),terrainShaper:Fm.fromJson(l.terrain_shaper),islandNoiseOverride:null!==(a=Ip.readBoolean(l.island_noise_override))&&void 0!==a&&a,isAmplified:null!==(s=Ip.readBoolean(l.amplified))&&void 0!==s&&s,hasLargeBiomes:null!==(c=Ip.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))}}(Hp||(Hp={})),function(e){e.fromJson=function(e){var t,r,i,n;const o=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return{target:null!==(r=Ip.readNumber(o.target))&&void 0!==r?r:0,size:null!==(i=Ip.readInt(o.size))&&void 0!==i?i:0,offset:null!==(n=Ip.readInt(o.offset))&&void 0!==n?n:0}},e.apply=function(e,t,r){if(e.size<=0)return t;const i=(r-e.offset)/e.size;return mm(e.target,t,i)}}(Gp||(Gp={}));class jm{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=jm.allocateSlice(e.cellCountY,e.cellCountXZ),this.slice1=jm.allocateSlice(e.cellCountY,e.cellCountXZ)}static allocateSlice(e,t){const r=Array(t+1);for(let i=0;i<t+1;i+=1)r[i]=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=Hp.cellWidth(this.chunk.settings.noise),i=Hp.cellHeight(this.chunk.settings.noise),n=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)*i;e[o][r]=this.filler(n,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=um(e,this.noise000,this.noise010),this.valueXZ10=um(e,this.noise100,this.noise110),this.valueXZ01=um(e,this.noise001,this.noise011),this.valueXZ11=um(e,this.noise101,this.noise111)}updateForX(e){this.valueZ0=um(e,this.valueXZ00,this.valueXZ10),this.valueZ1=um(e,this.valueXZ01,this.valueXZ11)}updateForZ(e){this.value=um(e,this.valueZ0,this.valueZ1)}sample(){return this.value}swapSlices(){[this.slice0,this.slice1]=[this.slice1,this.slice0]}}class Bm{constructor(e,t,r,i,n,o,a,s){this.cellCountXZ=e,this.cellCountY=t,this.cellCountNoiseMinY=r,this.sampler=i,this.settings=s;const c=Hp.cellWidth(s.noise);this.firstCellX=Math.floor(n/c),this.firstCellZ=Math.floor(o/c),this.firstNoiseX=n>>2,this.firstNoiseZ=o>>2,this.interpolators=[];const l=e*c>>2;this.noiseData=Array(l+1);for(let d=0;d<=l;d+=1){const e=this.firstNoiseX+d;this.noiseData[d]=Array(l+1);for(let t=0;t<=l;t+=1){const r=this.firstNoiseZ+t;this.noiseData[d][t]=i.noiseData(e,r)}}this.preliminarySurfaceLevel=new Map,this.baseNoise=i.makeBaseNoiseFiller(this,a,s.noodleCavesEnabled)}getNoiseData(e,t){return this.noiseData[e-this.firstNoiseX][t-this.firstNoiseZ]}getPreliminarySurfaceLevel(e,t){return cm(this.preliminarySurfaceLevel,Rp.asLong(e,t),(()=>{const r=e-this.firstNoiseX,i=t-this.firstNoiseZ,n=this.noiseData.length,o=r>=0&&i>=0&&r<n&&i<n?this.noiseData[r][i].terrainInfo:this.sampler.noiseData(e,t).terrainInfo;return this.sampler.getPreliminarySurfaceLevel(e<<2,t<<2,o)}))}createNoiseInterpolator(e){const t=new jm(this,e);return this.interpolators.push(t),t.sample.bind(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)}}(Wp||(Wp={})).create=function(e,t,r){return{offset:e,factor:t,jaggedness:r}},function(e){const t=new Map;function r(e,r,i){const n=Object.assign({name:`minecraft:${e}`},Up.create(r,i));return t.set(e,n),n}e.TEMPERATURE=r("temperature",-10,[1.5,0,1,0,0,0]),e.VEGETATION=r("vegetation",-8,[1,1,0,0,0,0]),e.CONTINENTALNESS=r("continentalness",-9,[1,1,2,2,2,1,1,1,1]),e.EROSION=r("erosion",-9,[1,1,0,1,1]),e.TEMPERATURE_LARGE=r("temperature_large",-12,[1.5,0,1,0,0,0]),e.VEGETATION_LARGE=r("vegetation_large",-10,[1,1,0,0,0,0]),e.CONTINENTALNESS_LARGE=r("continentalness_large",-11,[1,1,2,2,2,1,1,1,1]),e.EROSION_LARGE=r("erosion_large",-11,[1,1,0,1,1]),e.RIDGE=r("ridge",-7,[1,2,1,0,0,0]),e.SHIFT=r("offset",-3,[1,1,1,0]),e.PILLAR=r("pillar",-7,[1,1]),e.PILLAR_RARENESS=r("pillar_rareness",-8,[1]),e.PILLAR_THICKNESS=r("pillar_thickness",-8,[1]),e.SPAGHETTI_2D=r("spaghetti_2d",-8,[1]),e.SPAGHETTI_2D_ELEVATION=r("spaghetti_2d_elevation",-8,[1]),e.SPAGHETTI_2D_MODULATOR=r("spaghetti_2d_modulator",-8,[1]),e.SPAGHETTI_2D_THICKNESS=r("spaghetti_2d_thickness",-8,[1]),e.SPAGHETTI_3D_1=r("spaghetti_3d_1",-8,[1]),e.SPAGHETTI_3D_2=r("spaghetti_3d_2",-8,[1]),e.SPAGHETTI_3D_RARITY=r("spaghetti_3d_rarity",-8,[1]),e.SPAGHETTI_3D_THICKNESS=r("spaghetti_3d_thickness",-8,[1]),e.SPAGHETTI_ROUGHNESS=r("spaghetti_roughness",-8,[1]),e.SPAGHETTI_ROUGHNESS_MODULATOR=r("spaghetti_roughness_modulator",-8,[1]),e.CAVE_ENTRANCE=r("cave_entrance",-7,[.4,.5,1]),e.CAVE_LAYER=r("cave_layer",-8,[1]),e.CAVE_CHEESE=r("cave_cheese",-8,[.5,1,2,1,2,1,0,2,0]),e.NOODLE=r("noodle",-8,[1]),e.NOODLE_THICKNESS=r("noodle_thickness",-8,[1]),e.NOODLE_RIDGE_A=r("noodle_ridge_a",-7,[1]),e.NOODLE_RIDGE_B=r("noodle_ridge_b",-7,[1]),e.JAGGED=r("jagged",-16,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),e.SURFACE=r("surface",-6,[1,1,1]),e.SURFACE_SECONDARY=r("surface_secondary",-6,[1,1,0,1]),e.instantiate=function(e,t){return new Am(e.fromHashOf(t.name),t)}}(Zp||(Zp={}));class Mm{constructor(e,t,r,i=!1){this.settings=e,this.isNoiseCavesEnabled=t;const n=e.hasLargeBiomes,o=(i?new ym(r):Nm.create(r)).forkPositional();i?(this.blendedNoise=new Sm(new ym(r),e.sampling,Hp.cellWidth(e),Hp.cellHeight(e)),this.temperatureNoise=new Am(new ym(r),Up.create(-7,[1,1])),this.humidityNoise=new Am(new ym(r+BigInt(1)),Up.create(-7,[1,1])),this.offsetNoise=new Am(new ym(r+BigInt(5)),Up.create(0,[0]))):(this.blendedNoise=new Sm(o.fromHashOf("minecraft:terrain"),e.sampling,Hp.cellWidth(e),Hp.cellHeight(e)),this.temperatureNoise=Zp.instantiate(o,n?Zp.TEMPERATURE_LARGE:Zp.TEMPERATURE),this.humidityNoise=Zp.instantiate(o,n?Zp.VEGETATION_LARGE:Zp.VEGETATION),this.offsetNoise=Zp.instantiate(o,Zp.SHIFT)),this.continentalnessNoise=Zp.instantiate(o,n?Zp.CONTINENTALNESS_LARGE:Zp.CONTINENTALNESS),this.erosionNoise=Zp.instantiate(o,n?Zp.EROSION_LARGE:Zp.EROSION),this.weirdnessNoise=Zp.instantiate(o,Zp.RIDGE),this.pillarNoise=Zp.instantiate(o,Zp.PILLAR),this.pillarRarenessModulator=Zp.instantiate(o,Zp.PILLAR_RARENESS),this.pillarThicknessModulator=Zp.instantiate(o,Zp.PILLAR_THICKNESS),this.spaghetti2DNoise=Zp.instantiate(o,Zp.SPAGHETTI_2D),this.spaghetti2DElevationModulator=Zp.instantiate(o,Zp.SPAGHETTI_2D_ELEVATION),this.spaghetti2DRarityModulator=Zp.instantiate(o,Zp.SPAGHETTI_2D_MODULATOR),this.spaghetti2DThicknessModulator=Zp.instantiate(o,Zp.SPAGHETTI_2D_THICKNESS),this.spaghetti3DNoise1=Zp.instantiate(o,Zp.SPAGHETTI_3D_1),this.spaghetti3DNoise2=Zp.instantiate(o,Zp.SPAGHETTI_3D_2),this.spaghetti3DRarityModulator=Zp.instantiate(o,Zp.SPAGHETTI_3D_RARITY),this.spaghetti3DThicknessModulator=Zp.instantiate(o,Zp.SPAGHETTI_3D_THICKNESS),this.spaghettiRoughnessNoise=Zp.instantiate(o,Zp.SPAGHETTI_ROUGHNESS),this.spaghettiRoughnessModulator=Zp.instantiate(o,Zp.SPAGHETTI_ROUGHNESS_MODULATOR),this.bigEntranceNoise=Zp.instantiate(o,Zp.CAVE_ENTRANCE),this.layerNoise=Zp.instantiate(o,Zp.CAVE_LAYER),this.cheeseNoise=Zp.instantiate(o,Zp.CAVE_CHEESE);const a=e.minY+4,s=a+e.height;this.noodleToggleNoise=this.yLimitedInterpolatable(Zp.instantiate(o,Zp.NOODLE),a,s,-1,1),this.noodleThicknessNoise=this.yLimitedInterpolatable(Zp.instantiate(o,Zp.NOODLE_THICKNESS),a,s,0,1),this.noodleRidgeANoise=this.yLimitedInterpolatable(Zp.instantiate(o,Zp.NOODLE_RIDGE_A),a,s,0,8/3),this.noodleRidgeBNoise=this.yLimitedInterpolatable(Zp.instantiate(o,Zp.NOODLE_RIDGE_B),a,s,0,8/3),this.jaggedNoise=Zp.instantiate(o,Zp.JAGGED),this.shaper=e.terrainShaper,this.baseNoise=e=>e.createNoiseInterpolator(((t,r,i)=>this.calculateBlendedBaseNoise(t,r,i,e.getNoiseData(t>>2,i>>2).terrainInfo)))}yLimitedInterpolatable(e,t,r,i,n){const o=(o,a,s)=>a>r||a<t?i:e.sample(o*n,a*n,s*n);return e=>e.createNoiseInterpolator(o)}noiseData(e,t){const r=e+this.getOffset(e,0,t),i=t+this.getOffset(t,e,0),n=this.getContinentalness(r,i),o=this.getErosion(r,i),a=this.getWeirdness(r,i),s=this.terrainInfo(n,o,a);return Yp.create(r,i,n,o,a,s)}sample(e,t,r){return this.target(e,t,r,this.noiseData(e,r))}target(e,t,r,i){const n=i.shiftedX,o=t+this.getOffset(t,r,e),a=i.shiftedZ,s=this.getTemperature(n,o,a),c=this.getHumidity(n,o,a),l=this.computeDimensionDensity(t<<2,i.terrainInfo);return Xp.target(s,c,i.continentalness,i.erosion,l,i.weirdness)}terrainInfo(e,t,r){const i=Fm.point(e,t,r),n=this.shaper.offset(i),o=this.shaper.factor(i),a=this.shaper.jaggedness(i);return Wp.create(n,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,r){const i=this.baseNoise(e),n=r?this.noodleToggleNoise(e):()=>-1,o=r?this.noodleThicknessNoise(e):()=>0,a=r?this.noodleRidgeANoise(e):()=>0,s=r?this.noodleRidgeBNoise(e):()=>0;return(e,r,c)=>{let l=i();if(l=dm(.64*l,-1,1),l=l/2-l*l*l/24,n()>=0){const e=function(e,t,r,i,n){return mm(i,n,_m(e,t,r))}(o(),-1,1,.05,.1),t=Math.abs(1.5*a())-e,r=Math.abs(1.5*s())-e;l=Math.min(l,Math.max(t,r))}return l+=t(e,r,c),l>0?null:nm.AIR}}calculateBlendedBaseNoise(e,t,r,i){const n=this.blendedNoise.sample(e,t,r);return this.calculateBaseNoise(e,t,r,i,n,!this.isNoiseCavesEnabled,!0)}calculateBaseNoise(e,t,r,i,n,o,a){if(!this.settings.islandNoiseOverride){const o=a?this.sampleJaggedNoise(i.jaggedness,e,r):0,s=this.computeDimensionDensity(t,i),c=i.factor*(o+s);n+=c>0?4*c:c}let s=-64,c=64;if(!o&&n>=-64){const i=n-1.5625,o=this.getBigEntrances(e,t,r),a=this.getSpaghettiRoughness(e,t,r),l=this.getSpaghetti3D(e,t,r),d=Math.min(o,l+a);if(i<0)c=d;else{const o=this.getLayerizedCaverns(e,t,r);n=o>64?64:this.getCheese(e,t,r)+o+mm(.5,0,1.28*i);const l=this.getSpaghetti2D(e,t,r);s=this.getPillars(e,t,r),c=Math.min(d,l+a)}}return n=dm(n,s,c),dm(n=this.applySlide(n,t/Hp.cellHeight(this.settings)),-64,64)}sampleJaggedNoise(e,t,r){if(0===e)return 0;const i=this.jaggedNoise.sample(1500*t,0,1500*r);return i>0?e*i:e/2*i}computeDimensionDensity(e,t){return 1-e/128+t.offset}getBigEntrances(e,t,r){return this.bigEntranceNoise.sample(.75*e,.5*t,.75*r)+.37+mm(.3,0,(t+10)/40)}getSpaghettiRoughness(e,t,r){const i=this.spaghettiRoughnessNoise.sample(e,t,r),n=fm(this.spaghettiRoughnessModulator.sample(e,t,r),-1,1,0,1);return(.4-Math.abs(i))*n}getSpaghetti2D(e,t,r){const i=this.quantizeSpaghettiRarity2D(this.spaghetti2DRarityModulator.sample(2*e,t,2*r)),n=fm(this.spaghetti2DThicknessModulator.sample(2*e,t,2*r),-1,1,.6,1.3),o=this.sampleWithRarity(this.spaghetti2DNoise,e,t,r,i),a=Math.abs(i*o)-.083*n,s=Hp.minCellY(this.settings),c=fm(this.spaghetti2DElevationModulator.sample(e,0,r),-1,1,s,8),l=Math.abs(c-t/8)-1*n;return dm(Math.max(l,a),-1,1)}getSpaghetti3D(e,t,r){const i=this.quantizeSpaghettiRarity3D(this.spaghetti3DRarityModulator.sample(2*e,t,2*r)),n=fm(this.spaghetti3DThicknessModulator.sample(e,t,r),-1,1,.065,.088),o=this.sampleWithRarity(this.spaghetti3DNoise1,e,t,r,i),a=Math.abs(i*o)-n,s=this.sampleWithRarity(this.spaghetti3DNoise2,e,t,r,i),c=Math.abs(i*s)-n;return dm(Math.max(a,c),-1,1)}quantizeSpaghettiRarity2D(e){return e<-.75?.5:e<-.5?.75:e<.5?1:e<.75?2:3}quantizeSpaghettiRarity3D(e){return e<-.5?.75:e<0?1:e<.5?1.5:2}sampleWithRarity(e,t,r,i,n){return e.sample(t/n,r/n,i/n)}getLayerizedCaverns(e,t,r){return 4*lm(this.layerNoise.sample(e,8*t,r))}getCheese(e,t,r){return dm(this.cheeseNoise.sample(e,t/1.5,r)+.27,-1,1)}getPillars(e,t,r){const i=fm(this.pillarRarenessModulator.sample(e,t,r),-1,1,0,2),n=fm(this.pillarThicknessModulator.sample(e,t,r),-1,1,0,1.1),o=this.pillarNoise.sample(25*e,.3*t,25*r),a=Math.pow(n,3)*(2*o-i);return a<=.03?Number.MIN_SAFE_INTEGER:a}applySlide(e,t){const r=t-Hp.minCellY(this.settings);return e=Gp.apply(this.settings.topSlide,e,Hp.cellCountY(this.settings)-r),Gp.apply(this.settings.bottomSlide,e,r)}getPreliminarySurfaceLevel(e,t,r){const i=Hp.minCellY(this.settings)+Hp.cellCountY(this.settings),n=Hp.minCellY(this.settings),o=Hp.cellHeight(this.settings);for(let a=i;a>=n;a-=1){const i=a*o;if(this.calculateBaseNoise(e,i,t,r,-.703125,!0,!1)>=.390625)return i}return Number.MAX_SAFE_INTEGER}}(Yp||(Yp={})).create=function(e,t,r,i,n,o){return{shiftedX:e,shiftedZ:t,continentalness:r,weirdness:i,erosion:n,terrainInfo:o}},(Kp||(Kp={})).fromJson=function(e){var t,r,i,n;const o=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return void 0!==o.absolute?(s=null!==(r=Ip.readNumber(o.absolute))&&void 0!==r?r:0,()=>s):void 0!==o.above_bottom?(a=null!==(i=Ip.readNumber(o.above_bottom))&&void 0!==i?i:0,e=>e.minY+a):void 0!==o.below_top?function(e){return t=>t.maxY-e}(null!==(n=Ip.readNumber(o.below_top))&&void 0!==n?n:0):()=>0;var a,s},(Vp||(Vp={})).create=function(e,t){return{minY:e,height:t,maxY:e+t-1}};class Tm{constructor(e,t,r){this.rule=e,this.defaultBlock=t,this.random=Nm.create(r).forkPositional(),this.surfaceNoise=Zp.instantiate(this.random,Zp.SURFACE),this.surfaceSecondaryNoise=Zp.instantiate(this.random,Zp.SURFACE_SECONDARY),this.positionalRandoms=new Map}buildSurface(e,t,r,i){const n=Rp.minBlockX(e.pos),o=Rp.minBlockZ(e.pos),a=new Lm(this,e,t,r,i),s=this.rule(a);for(let c=0;c<16;c+=1){const t=n+c;for(let r=0;r<1;r+=1){const i=o+r;a.updateXZ(t,i);let n=0,c=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER;for(let r=e.maxY;r>=e.minY;r-=1){const o=Pp.create(t,r,i),d=e.getBlockState(o);if(d.equals(nm.AIR)){n=0,c=Number.MIN_SAFE_INTEGER;continue}if(d.isFluid()){c===Number.MIN_SAFE_INTEGER&&(c=r+1);continue}if(l>=r){l=Number.MIN_SAFE_INTEGER;for(let n=r-1;n>=e.minY;n-=1){const r=e.getBlockState(Pp.create(t,n,i));if(r.equals(nm.AIR)||r.isFluid()){l=n+1;break}}}n+=1;const u=r-l+1;if(!d.equals(this.defaultBlock))continue;a.updateY(n,u,c,r);const p=s(t,r,i);p&&e.setBlockState(o,p)}}}}getSurfaceDepth(e,t){return 2.75*this.surfaceNoise.sample(e,0,t)+3+.25*this.random.at(e,0,t).nextDouble()}getSurfaceSecondary(e,t){return this.surfaceSecondaryNoise.sample(e,0,t)}getRandom(e){return cm(this.positionalRandoms,e,(()=>this.random.fromHashOf(e)))}}class Lm{constructor(e,t,r,i,n){this.system=e,this.chunk=t,this.noiseChunk=r,this.context=i,this.getBiome=n,this.blockX=0,this.blockY=0,this.blockZ=0,this.stoneDepthAbove=0,this.stoneDepthBelow=0,this.surfaceDepth=0,this.waterHeight=0,this.biome=()=>"",this.surfaceSecondary=()=>0,this.minSurfaceLevel=()=>0}updateXZ(e,t){this.blockX=e,this.blockZ=t,this.surfaceDepth=this.system.getSurfaceDepth(e,t),this.surfaceSecondary=sm((()=>this.system.getSurfaceSecondary(e,t))),this.minSurfaceLevel=sm((()=>this.calculateMinSurfaceLevel(e,t)))}updateY(e,t,r,i){this.blockY=i,this.stoneDepthAbove=e,this.stoneDepthBelow=t,this.waterHeight=r,this.biome=sm((()=>this.getBiome(Pp.create(this.blockX,this.blockY,this.blockZ))))}calculateMinSurfaceLevel(e,t){const r=e>>4,i=t>>4,n=this.noiseChunk.getPreliminarySurfaceLevel(r<<4,i<<4),o=this.noiseChunk.getPreliminarySurfaceLevel(r+1<<4,i<<4),a=this.noiseChunk.getPreliminarySurfaceLevel(r<<4,i+1<<4),s=this.noiseChunk.getPreliminarySurfaceLevel(r+1<<4,i+1<<4);return Math.floor(pm((15&e)/16,(15&t)/16,n,o,a,s))+this.surfaceDepth-8}}!function(e){function t(e){return()=>()=>e}function r(e){return t=>{const r=e.map((e=>e(t)));return(e,t,i)=>{for(const n of r){const r=n(e,t,i);if(r)return r}}}}function i(e,t){return r=>(i,n,o)=>{if(e(r))return t(r)(i,n,o)}}e.NOOP=()=>()=>{},e.fromJson=function(n){var o,a,s;const c=null!==(o=Ip.readObject(n))&&void 0!==o?o:{};switch(null===(a=Ip.readString(c.type))||void 0===a?void 0:a.replace(/^minecraft:/,"")){case"block":return t(nm.fromJson(c.result_state));case"sequence":return r(null!==(s=Ip.readArray(c.sequence,e.fromJson))&&void 0!==s?s:[]);case"condition":return i(em.fromJson(c.if_true),e.fromJson(c.then_run))}return e.NOOP},e.block=t,e.sequence=r,e.condition=i}(Qp||(Qp={})),function(e){function t(e){const t=new Set(e);return e=>t.has(e.biome())}function r(e){return t=>!e(t)}function i(e,t,r,i){return n=>{const o=i?n.stoneDepthBelow:n.stoneDepthAbove,a=t?n.surfaceDepth:0,s=0===r?0:fm(n.surfaceSecondary(),-1,1,0,r);return o<=1+e+a+s}}function n(e,t,r){return i=>{const n=t(i.context),o=r(i.context);if(i.blockY<=n)return!0;if(i.blockY>=o)return!1;const a=i.system.getRandom(e),s=fm(i.blockY,n,o,1,0);return a.nextFloat()<s}}function o(e,t,r){return i=>{if(i.waterHeight===Number.MIN_SAFE_INTEGER)return!0;const n=r?i.stoneDepthAbove:0;return i.blockY+n>=i.waterHeight+e+i.surfaceDepth*t}}function a(e,t,r){return i=>{const n=r?i.stoneDepthAbove:0;return i.blockY+n>=e(i.context)+i.surfaceDepth*t}}e.FALSE=()=>!1,e.TRUE=()=>!0,e.fromJson=function(s){var c,l,d,u,p,m,_,h,f,g,b,y;const v=null!==(c=Ip.readObject(s))&&void 0!==c?c:{};switch(null===(l=Ip.readString(v.type))||void 0===l?void 0:l.replace(/^minecraft:/,"")){case"above_preliminary_surface":return e=>e.blockY>=e.minSurfaceLevel();case"biome":return t(null!==(d=Ip.readArray(v.biome_is,(e=>{var t;return null!==(t=Ip.readString(e))&&void 0!==t?t:""})))&&void 0!==d?d:[]);case"not":return r(e.fromJson(v.invert));case"stone_depth":return i(null!==(u=Ip.readInt(v.offset))&&void 0!==u?u:0,null!==(p=Ip.readBoolean(v.add_surface_depth))&&void 0!==p&&p,null!==(m=Ip.readInt(v.secondary_depth_range))&&void 0!==m?m:0,"ceiling"===Ip.readString(v.surface_type));case"vertical_gradient":return n(null!==(_=Ip.readString(v.random_name))&&void 0!==_?_:"",Kp.fromJson(v.true_at_and_below),Kp.fromJson(v.false_at_and_above));case"water":return o(null!==(h=Ip.readInt(v.offset))&&void 0!==h?h:0,null!==(f=Ip.readInt(v.surface_depth_multiplier))&&void 0!==f?f:0,null!==(g=Ip.readBoolean(v.add_surface_depth))&&void 0!==g&&g);case"y_above":return a(Kp.fromJson(v.anchor),null!==(b=Ip.readInt(v.surface_depth_multiplier))&&void 0!==b?b:0,null!==(y=Ip.readBoolean(v.add_surface_depth))&&void 0!==y&&y)}return e.FALSE},e.abovePreliminarySurface=function(){return e=>e.blockY>=e.minSurfaceLevel()},e.biome=t,e.not=r,e.stoneDepth=i,e.verticalGradient=n,e.water=o,e.yAbove=a}(em||(em={}));class Pm{constructor(e,t,r){this.biomeSource=t,this.settings=r,this.sampler=new Mm(r.noise,r.noiseCavesEnabled,e,r.legacyRandomSource),this.noiseChunkCache=new Map,this.materialRule=Jp.fromList([(e,t,r,i)=>e.updateNoiseAndGenerateBaseState(t,r,i)]),this.surfaceSystem=new Tm(r.surfaceRule,r.defaultBlock,e)}fill(e){var t;const r=Math.max(e.minY,this.settings.noise.minY),i=Math.min(e.maxY,this.settings.noise.minY+this.settings.noise.height),n=Hp.cellWidth(this.settings.noise),o=Hp.cellHeight(this.settings.noise),a=Math.floor(16/n),s=Math.floor(r/o),c=Math.floor((i-r)/o),l=Rp.minBlockX(e.pos),d=Rp.minBlockZ(e.pos),u=this.getNoiseChunk(e);u.initializeForFirstCellX();for(let p=0;p<a;p+=1){u.advanceCellX(p);for(let r=0;r<a;r+=1){let i=e.getOrCreateSection(e.sectionsCount-1);for(let a=c-1;a>=0;a-=1){u.selectCellYZ(a,r);for(let c=o-1;c>=0;c-=1){const m=(s+a)*o+c,_=15&m,h=e.getSectionIndex(m);e.getSectionIndex(i.minBlockY)!==h&&(i=e.getOrCreateSection(h));const f=c/o;u.updateForY(f);for(let e=0;e<n;e+=1){const o=l+p*n+e,a=15&o,s=e/n;u.updateForX(s);for(let e=0;e<n;e+=1){const s=d+r*n+e,c=15&s,l=e/n;u.updateForZ(l);let p=null!==(t=this.materialRule(u,o,m,s))&&void 0!==t?t:this.settings.defaultBlock;if(p.equals(nm.AIR)){if(!(m<this.settings.seaLevel))continue;p=this.settings.defaultFluid}i.setBlockState(a,_,c,p)}}}}}u.swapSlices()}}buildSurface(e,t="minecraft:plains"){const r=this.getNoiseChunk(e),i=Vp.create(this.settings.noise.minY,this.settings.noise.height);this.surfaceSystem.buildSurface(e,r,i,(()=>t))}getNoiseChunk(e){return cm(this.noiseChunkCache,Rp.toLong(e.pos),(()=>{const t=Math.max(e.minY,this.settings.noise.minY),r=Math.min(e.maxY,this.settings.noise.minY+this.settings.noise.height),i=Hp.cellWidth(this.settings.noise),n=Hp.cellHeight(this.settings.noise),o=Math.floor(16/i),a=Math.floor(t/n),s=Math.floor((r-t)/n),c=Rp.minBlockX(e.pos),l=Rp.minBlockZ(e.pos);return new Bm(o,s,a,this.sampler,c,l,(()=>0),this.settings)}))}}let Im;(tm||(tm={})).fromJson=function(e){var t,r,i,n,o,a,s,c,l,d,u;const p=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return{structures:rm.fromJson(p.structures),surfaceRule:Qp.fromJson(p.surface_rule),noise:Hp.fromJson(p.noise),defaultBlock:nm.fromJson(p.default_block),defaultFluid:nm.fromJson(p.default_fluid),bedrockRoofPosition:null!==(r=Ip.readInt(p.bedrock_roof_position))&&void 0!==r?r:0,bedrockFloorPosition:null!==(i=Ip.readInt(p.bedrock_floor_position))&&void 0!==i?i:0,seaLevel:null!==(n=Ip.readInt(p.sea_level))&&void 0!==n?n:0,disableMobGeneration:null!==(o=Ip.readBoolean(p.disable_mob_generation))&&void 0!==o&&o,aquifersEnabled:null!==(a=Ip.readBoolean(p.aquifers_enabled))&&void 0!==a&&a,noiseCavesEnabled:null!==(s=Ip.readBoolean(p.noise_caves_enabled))&&void 0!==s&&s,deepslateEnabled:null!==(c=Ip.readBoolean(p.deepslate_enabled))&&void 0!==c&&c,oreVeinsEnabled:null!==(l=Ip.readBoolean(p.ore_veins_enabled))&&void 0!==l&&l,noodleCavesEnabled:null!==(d=Ip.readBoolean(p.noodle_caves_enabled))&&void 0!==d&&d,legacyRandomSource:null!==(u=Ip.readBoolean(p.legacy_random_source))&&void 0!==u&&u}},(rm||(rm={})).fromJson=function(e){var t;const r=null!==(t=Ip.readObject(e))&&void 0!==t?t:{};return{stronghold:Ip.compose(r.stronghold,Ip.readObject,(e=>{var t,r,i;return{distance:null!==(t=Ip.readInt(e.distance))&&void 0!==t?t:0,spread:null!==(r=Ip.readInt(e.spread))&&void 0!==r?r:0,count:null!==(i=Ip.readInt(e.count))&&void 0!==i?i:0}})),structures:Ip.readMap(r.structures,(e=>{var t,r,i,n,o;return r=null!==(t=Ip.readObject(e))&&void 0!==t?t:{},{spacing:null!==(i=Ip.readInt(r.spacing))&&void 0!==i?i:0,separation:null!==(n=Ip.readInt(r.separation))&&void 0!==n?n:0,salt:null!==(o=Ip.readInt(r.salt))&&void 0!==o?o:0}}))}};let Rm=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Rm.decode();let zm=null;function Um(e,t){return Rm.decode((null!==zm&&zm.buffer===Im.memory.buffer||(zm=new Uint8Array(Im.memory.buffer)),zm).subarray(e,e+t))}const $m=new Uint32Array(2),qm=new BigInt64Array($m.buffer);let Xm=null;function Jm(){return null!==Xm&&Xm.buffer===Im.memory.buffer||(Xm=new Int32Array(Im.memory.buffer)),Xm}let Hm=null;function Gm(){return null!==Hm&&Hm.buffer===Im.memory.buffer||(Hm=new Float64Array(Im.memory.buffer)),Hm}let Wm=0;function Zm(e,t){const r=t(8*e.length);return Gm().set(e,r/8),Wm=e.length,r}let Ym=null;function Km(e,t){const r=t(4*e.length);return(null!==Ym&&Ym.buffer===Im.memory.buffer||(Ym=new Uint32Array(Im.memory.buffer)),Ym).set(e,r/4),Wm=e.length,r}function Vm(e,t,r,i,n,o,a,s,c,l,d,u,p,m){var _=Zm(e,Im.__wbindgen_malloc),h=Wm,f=Zm(t,Im.__wbindgen_malloc),g=Wm,b=Zm(r,Im.__wbindgen_malloc),y=Wm,v=Zm(i,Im.__wbindgen_malloc),N=Wm,x=Zm(n,Im.__wbindgen_malloc),k=Wm,w=Zm(o,Im.__wbindgen_malloc),O=Wm,S=Zm(a,Im.__wbindgen_malloc),A=Wm,D=Zm(s,Im.__wbindgen_malloc),C=Wm,E=Zm(c,Im.__wbindgen_malloc),F=Wm,j=Zm(l,Im.__wbindgen_malloc),B=Wm,M=Zm(d,Im.__wbindgen_malloc),T=Wm,L=Zm(u,Im.__wbindgen_malloc),P=Wm,I=Zm(p,Im.__wbindgen_malloc),R=Wm,z=Km(m,Im.__wbindgen_malloc),U=Wm,$=Im.biome_parameters(_,h,f,g,b,y,v,N,x,k,w,O,S,A,D,C,E,F,j,B,M,T,L,P,I,R,z,U);return i_.__wrap($)}function Qm(e,t,r,i,n,o,a,s,c,l,d,u,p){qm[0]=e;const m=$m[0],_=$m[1];var h=Zm(r,Im.__wbindgen_malloc),f=Wm,g=Zm(n,Im.__wbindgen_malloc),b=Wm,y=Zm(a,Im.__wbindgen_malloc),v=Wm,N=Zm(c,Im.__wbindgen_malloc),x=Wm,k=Zm(d,Im.__wbindgen_malloc),w=Wm,O=Zm(p,Im.__wbindgen_malloc),S=Wm,A=Im.climate_sampler(m,_,t,h,f,i,g,b,o,y,v,s,N,x,l,k,w,u,O,S);return n_.__wrap(A)}function e_(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}function t_(e,t,r,i,n,o,a,s,c,l,d){try{const _=Im.__wbindgen_add_to_stack_pointer(-16);e_(e,i_),e_(t,n_),Im.multi_noise(_,e.ptr,t.ptr,r,i,n,o,a,s,c,l,d);var u=Jm()[_/4+0],p=Jm()[_/4+1],m=function(e,t){return Jm().subarray(e/4,e/4+t)}(u,p).slice();return Im.__wbindgen_free(u,4*p),m}finally{Im.__wbindgen_add_to_stack_pointer(16)}}function r_(e,t,r,i,n,o,a,s,c,l){try{const m=Im.__wbindgen_add_to_stack_pointer(-16);e_(e,n_),Im.climate_noise(m,e.ptr,t,r,i,n,o,a,s,c,l);var d=Jm()[m/4+0],u=Jm()[m/4+1],p=function(e,t){return Gm().subarray(e/8,e/8+t)}(d,u).slice();return Im.__wbindgen_free(d,8*u),p}finally{Im.__wbindgen_add_to_stack_pointer(16)}}class i_{static __wrap(e){const t=Object.create(i_.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();Im.__wbg_parameterlist_free(e)}}class n_{static __wrap(e){const t=Object.create(n_.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();Im.__wbg_sampler_free(e)}}async function o_(e){void 0===e&&(e=new URL("deepslate_rs_bg.wasm",d.url));const t={wbg:{}};t.wbg.__wbindgen_throw=function(e,t){throw new Error(Um(e,t))},("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:i}=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 i=await e.arrayBuffer();return await WebAssembly.instantiate(i,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}(await e,t);return Im=r.exports,o_.__wbindgen_wasm_module=i,Im}var a_="/assets/deepslate_rs_bg.4990c219.wasm",s_={exports:{}};s_.exports=function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),n=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 d="boolean"==typeof t.attachComment&&t.attachComment;(l||d)&&((a=new i.CommentHandler).attach=d,t.comment=!0,c=s)}var u,p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),u=t&&"boolean"==typeof t.jsx&&t.jsx?new n.JSXParser(e,t,c):new o.Parser(e,t,c);var m=p?u.parseModule():u.parseScript();return l&&a&&(m.comments=a.comments),u.config.tokens&&(m.tokens=u.tokens),u.config.tolerant&&(m.errors=u.errorHandler.errors),m}t.parse=s,t.parseModule=function(e,t,r){var i=t||{};return i.sourceType="module",s(e,i,r)},t.parseScript=function(e,t,r){var i=t||{};return i.sourceType="script",s(e,i,r)},t.tokenize=function(e,t,r){var i,n=new a.Tokenizer(e,t);i=[];try{for(;;){var o=n.getNextToken();if(!o)break;r&&(o=r(o)),i.push(o)}}catch(s){n.errorHandler.tolerate(s)}return n.errorHandler.tolerant&&(i.errors=n.errors()),i};var c=r(2);t.Syntax=c.Syntax,t.version="4.0.1"},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===i.Syntax.BlockStatement&&0===e.body.length){for(var r=[],n=this.leading.length-1;n>=0;--n){var o=this.leading[n];t.end.offset>=o.start&&(r.unshift(o.comment),this.leading.splice(n,1),this.trailing.splice(n,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 i=this.trailing[r];i.start>=e.end.offset&&t.unshift(i.comment)}return this.trailing.length=0,t}var n=this.stack[this.stack.length-1];if(n&&n.node.trailingComments){var o=n.node.trailingComments[0];o&&o.range[0]>=e.end.offset&&(t=n.node.trailingComments,delete n.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 i=(t.leadingComments?t.leadingComments.length:0)-1;i>=0;--i){var n=t.leadingComments[i];n.range[1]<=e.start.offset&&(r.unshift(n),t.leadingComments.splice(i,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,r}for(i=this.leading.length-1;i>=0;--i){var o;(o=this.leading[i]).start<=e.start.offset&&(r.unshift(o.comment),this.leading.splice(i,1))}return r},e.prototype.visitNode=function(e,t){if(!(e.type===i.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var r=this.findTrailingComments(t),n=this.findLeadingComments(t);n.length>0&&(e.leadingComments=n),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",i={type:r,value:e.value};if(e.range&&(i.range=e.range),e.loc&&(i.loc=e.loc),this.comments.push(i),this.attach){var n={comment:{type:r,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(n.comment.loc=e.loc),e.type=r,this.leading.push(n),this.trailing.push(n)}},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=n},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 i,n=this&&this.__extends||(i=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}i(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),d=r(13),u=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 i=e;t=p(i.object)+"."+p(i.property)}return t}d.TokenName[100]="JSXIdentifier",d.TokenName[101]="JSXText";var m=function(e){function t(t,r,i){return e.call(this,t,r,i)||this}return n(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,i=!1,n=!1,a=!1;!this.scanner.eof()&&r&&!i;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(i=";"===s,t+=s,++this.scanner.index,!i)switch(t.length){case 2:n="#"===s;break;case 3:n&&(r=(a="x"===s)||o.Character.isDecimalDigit(s.charCodeAt(0)),n=n&&!a);break;default:r=(r=r&&!(n&&!o.Character.isDecimalDigit(s.charCodeAt(0))))&&!(a&&!o.Character.isHexDigit(s.charCodeAt(0)))}}if(r&&i&&t.length>2){var c=t.substr(1,t.length-2);n&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):a&&c.length>2?t=String.fromCharCode(parseInt("0"+c.substr(1),16)):n||a||!u.XHTMLEntities[c]||(t=u.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++],i="";!this.scanner.eof()&&(c=this.scanner.source[this.scanner.index++])!==r;)i+="&"===c?this.scanXHTMLEntity(r):c;return{type:8,value:i,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var n=this.scanner.source.charCodeAt(this.scanner.index+1),a=this.scanner.source.charCodeAt(this.scanner.index+2),s=46===n&&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 i={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(i)),i},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 i=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(r,i))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var n=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(n,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var i=r;this.expectJSX(":");var n=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(i,n))}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(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,i,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(),i=this.parseJSXAttributes(),n=this.matchJSX("/");return n&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(r,n,i))},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 i=this.getTokenRaw(r),n=this.finalize(t,new a.JSXText(r.value,i));e.push(n)}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(),i=this.parseJSXBoundaryElement();if(i.type===s.JSXSyntax.JSXOpeningElement){var n=i;if(n.selfClosing){var o=this.finalize(r,new a.JSXElement(n,[],null));e.children.push(o)}else t.push(e),e={node:r,opening:n,closing:null,children:[]}}if(i.type===s.JSXSyntax.JSXClosingElement){e.closing=i;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=[],i=null;if(!t.selfClosing){var n=this.parseComplexJSXElement({node:e,opening:t,closing:i,children:r});r=n.children,i=n.closing}return this.finalize(e,new a.JSXElement(t,r,i))},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 i=r(6),n=function(e){this.type=i.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=n;var o=function(e,t,r){this.type=i.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=r};t.JSXElement=o;var a=function(){this.type=i.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=a;var s=function(e){this.type=i.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=s;var c=function(e){this.type=i.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=c;var l=function(e,t){this.type=i.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=l;var d=function(e,t){this.type=i.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=d;var u=function(e,t){this.type=i.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=u;var p=function(e,t,r){this.type=i.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=r};t.JSXOpeningElement=p;var m=function(e){this.type=i.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=m;var _=function(e,t){this.type=i.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=_},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 i=r(2),n=function(e){this.type=i.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=n;var o=function(e){this.type=i.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=o;var a=function(e,t,r){this.type=i.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=i.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=r};t.AssignmentExpression=s;var c=function(e,t){this.type=i.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=c;var l=function(e,t,r){this.type=i.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!0};t.AsyncArrowFunctionExpression=l;var d=function(e,t,r){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=d;var u=function(e,t,r){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=u;var p=function(e){this.type=i.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var m=function(e,t,r){var n="||"===e||"&&"===e;this.type=n?i.Syntax.LogicalExpression:i.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=r};t.BinaryExpression=m;var _=function(e){this.type=i.Syntax.BlockStatement,this.body=e};t.BlockStatement=_;var h=function(e){this.type=i.Syntax.BreakStatement,this.label=e};t.BreakStatement=h;var f=function(e,t){this.type=i.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=f;var g=function(e,t){this.type=i.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=g;var b=function(e){this.type=i.Syntax.ClassBody,this.body=e};t.ClassBody=b;var y=function(e,t,r){this.type=i.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=r};t.ClassDeclaration=y;var v=function(e,t,r){this.type=i.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=r};t.ClassExpression=v;var N=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=N;var x=function(e,t,r){this.type=i.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=r};t.ConditionalExpression=x;var k=function(e){this.type=i.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=k;var w=function(){this.type=i.Syntax.DebuggerStatement};t.DebuggerStatement=w;var O=function(e,t){this.type=i.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=O;var S=function(e,t){this.type=i.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=S;var A=function(){this.type=i.Syntax.EmptyStatement};t.EmptyStatement=A;var D=function(e){this.type=i.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=D;var C=function(e){this.type=i.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=C;var E=function(e,t,r){this.type=i.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=r};t.ExportNamedDeclaration=E;var F=function(e,t){this.type=i.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=F;var j=function(e){this.type=i.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=j;var B=function(e,t,r){this.type=i.Syntax.ForInStatement,this.left=e,this.right=t,this.body=r,this.each=!1};t.ForInStatement=B;var M=function(e,t,r){this.type=i.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=r};t.ForOfStatement=M;var T=function(e,t,r,n){this.type=i.Syntax.ForStatement,this.init=e,this.test=t,this.update=r,this.body=n};t.ForStatement=T;var L=function(e,t,r,n){this.type=i.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=n,this.expression=!1,this.async=!1};t.FunctionDeclaration=L;var P=function(e,t,r,n){this.type=i.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=n,this.expression=!1,this.async=!1};t.FunctionExpression=P;var I=function(e){this.type=i.Syntax.Identifier,this.name=e};t.Identifier=I;var R=function(e,t,r){this.type=i.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=r};t.IfStatement=R;var z=function(e,t){this.type=i.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=z;var U=function(e){this.type=i.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var $=function(e){this.type=i.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=$;var q=function(e,t){this.type=i.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=q;var X=function(e,t){this.type=i.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=X;var J=function(e,t){this.type=i.Syntax.Literal,this.value=e,this.raw=t};t.Literal=J;var H=function(e,t){this.type=i.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=H;var G=function(e,t,r,n,o){this.type=i.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=r,this.kind=n,this.static=o};t.MethodDefinition=G;var W=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=W;var Z=function(e,t){this.type=i.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=Z;var Y=function(e){this.type=i.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=Y;var K=function(e){this.type=i.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=K;var V=function(e,t,r,n,o,a){this.type=i.Syntax.Property,this.key=t,this.computed=r,this.value=n,this.kind=e,this.method=o,this.shorthand=a};t.Property=V;var Q=function(e,t,r,n){this.type=i.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:r,flags:n}};t.RegexLiteral=Q;var ee=function(e){this.type=i.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=i.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var re=function(e){this.type=i.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=re;var ie=function(e){this.type=i.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=ie;var ne=function(e){this.type=i.Syntax.SpreadElement,this.argument=e};t.SpreadElement=ne;var oe=function(e,t){this.type=i.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=oe;var ae=function(){this.type=i.Syntax.Super};t.Super=ae;var se=function(e,t){this.type=i.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=se;var ce=function(e,t){this.type=i.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=ce;var le=function(e,t){this.type=i.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=le;var de=function(e,t){this.type=i.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=de;var ue=function(e,t){this.type=i.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=ue;var pe=function(){this.type=i.Syntax.ThisExpression};t.ThisExpression=pe;var me=function(e){this.type=i.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=me;var _e=function(e,t,r){this.type=i.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=r};t.TryStatement=_e;var he=function(e,t){this.type=i.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=he;var fe=function(e,t,r){this.type=i.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=r};t.UpdateExpression=fe;var ge=function(e,t){this.type=i.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ge;var be=function(e,t){this.type=i.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=be;var ye=function(e,t){this.type=i.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=ye;var ve=function(e,t){this.type=i.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=ve;var Ne=function(e,t){this.type=i.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=Ne},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=r(9),n=r(10),o=r(11),a=r(7),s=r(12),c=r(2),l=r(13),d="ArrowParameterPlaceHolder",u=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 n.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 n=Array.prototype.slice.call(arguments,1),o=e.replace(/%(\d)/g,(function(e,t){return i.assert(t<n.length,"Message reference must be in range"),n[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 n=Array.prototype.slice.call(arguments,1),o=e.replace(/%(\d)/g,(function(e,t){return i.assert(t<n.length,"Message reference must be in range"),n[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,i=t||o.Messages.UnexpectedToken;if(e?(t||(i=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)?i=o.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(i=o.Messages.StrictReservedWord))),r=e.value):r="ILLEGAL",i=i.replace("%0",r),e&&"number"==typeof e.lineNumber){var n=e.start,a=e.lineNumber,s=this.lastMarker.index-this.lastMarker.column,c=e.start-s+1;return this.errorHandler.createError(n,a,c,i)}return n=this.lastMarker.index,a=this.lastMarker.line,c=this.lastMarker.column+1,this.errorHandler.createError(n,a,c,i)},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],i=void 0;i={type:r.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(r.slice[0],r.slice[1])},this.config.range&&(i.range=r.range),this.config.loc&&(i.loc=r.loc);var n={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(i,n)}}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,i=e.flags;t.regex={pattern:r,flags:i}}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,i=e.lineNumber;return r<0&&(r+=t,i--),{index:e.start,line:i,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,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=r,this.context.firstCoverInitializedNameError=i,n},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,i=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var n=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&r,this.context.firstCoverInitializedNameError=i||this.context.firstCoverInitializedNameError,n},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,i=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(i,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(i,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(i,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(i,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(i,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(i,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(i,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 i=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,i},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,i,!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 i=this.parseFormalParameters(),n=this.parsePropertyMethod(i);return this.context.allowYield=t,this.context.await=r,this.finalize(e,new a.AsyncFunctionExpression(null,i.params,n))},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 i=this.getTokenRaw(r);e=this.finalize(t,new a.Literal(r.value,i));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(),i=this.lookahead,n=null,s=null,c=!1,l=!1,d=!1,u=!1;if(3===i.type){var p=i.value;this.nextToken(),c=this.match("["),n=(u=!(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("["),n=this.parseObjectPropertyKey());var m=this.qualifiedPropertyName(this.lookahead);if(3===i.type&&!u&&"get"===i.value&&m)t="get",c=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(3===i.type&&!u&&"set"===i.value&&m)t="set",c=this.match("["),n=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(7===i.type&&"*"===i.value&&m)t="init",c=this.match("["),n=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0;else if(n||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!u)!c&&this.isPropertyKey(n,"__proto__")&&(e.value&&this.tolerateError(o.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))s=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(3===i.type)if(p=this.finalize(r,new a.Identifier(i.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),d=!0;var _=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(r,new a.AssignmentPattern(p,_))}else d=!0,s=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(r,new a.Property(t,n,c,s,l,d))},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(){i.assert(this.lookahead.head,"Template literal must start with a template head");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.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();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.parseTemplateLiteral=function(){var e=this.createNode(),t=[],r=[],i=this.parseTemplateHead();for(r.push(i);!i.tail;)t.push(this.parseExpression()),i=this.parseTemplateElement(),r.push(i);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:d,params:[],async:!1};else{var t=this.lookahead,r=[];if(this.match("..."))e=this.parseRestElement(r),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:d,params:[e],async:!1};else{var i=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var n=[];for(this.context.isAssignmentTarget=!1,n.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var o=0;o<n.length;o++)this.reinterpretExpressionAsPattern(n[o]);i=!0,e={type:d,params:n,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),n.push(this.parseRestElement(r)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,o=0;o<n.length;o++)this.reinterpretExpressionAsPattern(n[o]);i=!0,e={type:d,params:n,async:!1}}else n.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(i)break}i||(e=this.finalize(this.startNode(t),new a.SequenceExpression(n)))}if(!i){if(this.expect(")"),this.match("=>")&&(e.type===c.Syntax.Identifier&&"yield"===e.name&&(i=!0,e={type:d,params:[e],async:!1}),!i)){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:d,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(i.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 n=this.parseIdentifierName();e=new a.MetaProperty(r,n)}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"),i=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 n=this.parseIdentifierName();e=this.finalize(this.startNode(t),new a.StaticMemberExpression(e,n))}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:d,params:s,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),n=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),e=this.finalize(this.startNode(t),new a.ComputedMemberExpression(e,n));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=i,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(){i.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 n=this.parseTemplateLiteral();t=this.finalize(e,new a.TaggedTemplateExpression(t,n))}return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var r=this.startNode(t),i=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 n=!0;e=this.finalize(r,new a.UpdateExpression(i.value,e,n)),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;n=!1,e=this.finalize(this.startNode(t),new a.UpdateExpression(s,e,n))}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,i=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new a.BinaryExpression("**",r,i))}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,i=this.binaryPrecedence(r);if(i>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var n=[e,this.lookahead],o=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),c=[o,r.value,s],l=[i];!((i=this.binaryPrecedence(this.lookahead))<=0);){for(;c.length>2&&i<=l[l.length-1];){s=c.pop();var d=c.pop();l.pop(),o=c.pop(),n.pop();var u=this.startNode(n[n.length-1]);c.push(this.finalize(u,new a.BinaryExpression(d,o,s)))}c.push(this.nextToken().value),l.push(i),n.push(this.lookahead),c.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=c.length-1;t=c[p];for(var m=n.pop();p>1;){var _=n.pop(),h=m&&m.lineStart;u=this.startNode(_,h),d=c[p-1],t=this.finalize(u,new a.BinaryExpression(d,c[p-2],t)),p-=2,m=_}}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 i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=r,this.expect(":");var n=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new a.ConditionalExpression(t,i,n)),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],i=!1;switch(e.type){case c.Syntax.Identifier:break;case d:r=e.params,i=e.async;break;default:return null}t={simple:!0,paramSet:{}};for(var n=0;n<r.length;++n)(a=r[n]).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):i&&a.type===c.Syntax.Identifier&&"await"===a.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(t,a),r[n]=a;if(this.context.strict||!this.context.allowYield)for(n=0;n<r.length;++n){var a;(a=r[n]).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 i=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(i),e={type:d,params:[i],async:!0}}if(e.type===d||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,u=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var p=this.context.allowYield,m=this.context.await;this.context.allowYield=!0,this.context.await=n;var _=this.startNode(t);this.expect("=>");var h=void 0;if(this.match("{")){var f=this.context.allowIn;this.context.allowIn=!0,h=this.parseFunctionSourceElements(),this.context.allowIn=f}else h=this.isolateCoverGrammar(this.parseAssignmentExpression);var g=h.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=n?this.finalize(_,new a.AsyncArrowFunctionExpression(s.params,h,g)):this.finalize(_,new a.ArrowFunctionExpression(s.params,h,g)),this.context.strict=l,this.context.allowStrictDirective=u,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(),i=this.parsePattern([],e);this.context.strict&&i.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(o.Messages.StrictVarName);var n=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(o.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&i.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),n=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(r,new a.VariableDeclarator(i,n))},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;i.assert("let"===r||"const"===r,"Lexical declaration must be either let or const");var n=this.parseBindingList(r,e);return this.consumeSemicolon(),this.finalize(t,new a.VariableDeclaration(n,r))},e.prototype.parseBindingRestElement=function(e,t){var r=this.createNode();this.expect("...");var i=this.parsePattern(e,t);return this.finalize(r,new a.RestElement(i))},e.prototype.parseArrayPattern=function(e,t){var r=this.createNode();this.expect("[");for(var i=[];!this.match("]");)if(this.match(","))this.nextToken(),i.push(null);else{if(this.match("...")){i.push(this.parseBindingRestElement(e,t));break}i.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(r,new a.ArrayPattern(i))},e.prototype.parsePropertyPattern=function(e,t){var r,i,n=this.createNode(),o=!1,s=!1;if(3===this.lookahead.type){var c=this.lookahead;r=this.parseVariableIdentifier();var l=this.finalize(n,new a.Identifier(c.value));if(this.match("=")){e.push(c),s=!0,this.nextToken();var d=this.parseAssignmentExpression();i=this.finalize(this.startNode(c),new a.AssignmentPattern(l,d))}else this.match(":")?(this.expect(":"),i=this.parsePatternWithDefault(e,t)):(e.push(c),s=!0,i=l)}else o=this.match("["),r=this.parseObjectPropertyKey(),this.expect(":"),i=this.parsePatternWithDefault(e,t);return this.finalize(n,new a.Property("init",r,o,i,!1,s))},e.prototype.parseObjectPattern=function(e,t){var r=this.createNode(),i=[];for(this.expect("{");!this.match("}");)i.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(r,new a.ObjectPattern(i))},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,i=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var n=this.context.allowYield;this.context.allowYield=!0;var o=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=n,i=this.finalize(this.startNode(r),new a.AssignmentPattern(i,o))}return i},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 i=null;return this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type===c.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new a.VariableDeclarator(r,i))},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 i=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(i,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 i=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,i))},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 i=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=i}return this.finalize(t,new a.WhileStatement(r,e))},e.prototype.parseForStatement=function(){var e,t,r,i=null,n=null,s=null,l=!0,d=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){i=this.createNode(),this.nextToken();var u=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=u,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"),i=this.finalize(i,new a.VariableDeclaration(p,"var")),this.nextToken(),e=i,t=this.parseExpression(),i=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new a.VariableDeclaration(p,"var")),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,l=!1):(i=this.finalize(i,new a.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){i=this.createNode();var _=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(u=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(_,{inFor:!0}),this.context.allowIn=u,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(i=this.finalize(i,new a.VariableDeclaration(p,_)),this.nextToken(),e=i,t=this.parseExpression(),i=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(i=this.finalize(i,new a.VariableDeclaration(p,_)),this.nextToken(),e=i,t=this.parseAssignmentExpression(),i=null,l=!1):(this.consumeSemicolon(),i=this.finalize(i,new a.VariableDeclaration(p,_)))):(i=this.finalize(i,new a.Identifier(_)),this.nextToken(),e=i,t=this.parseExpression(),i=null)}else{var h=this.lookahead;if(u=this.context.allowIn,this.context.allowIn=!1,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=u,this.matchKeyword("in"))this.context.isAssignmentTarget&&i.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseExpression(),i=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&i.type!==c.Syntax.AssignmentExpression||this.tolerateError(o.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(i),e=i,t=this.parseAssignmentExpression(),i=null,l=!1;else{if(this.match(",")){for(var f=[i];this.match(",");)this.nextToken(),f.push(this.isolateCoverGrammar(this.parseAssignmentExpression));i=this.finalize(this.startNode(h),new a.SequenceExpression(f))}this.expect(";")}}if(void 0===e&&(this.match(";")||(n=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(d,new a.ForStatement(i,n,s,r)):l?this.finalize(d,new a.ForInStatement(e,t,r)):this.finalize(d,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 i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||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(),i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)||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 i=[],n=!1;for(this.expect("{");!this.match("}");){var s=this.parseSwitchCase();null===s.test&&(n&&this.throwError(o.Messages.MultipleDefaultsInSwitch),n=!0),i.push(s)}return this.expect("}"),this.context.inSwitch=r,this.finalize(e,new a.SwitchStatement(t,i))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),r=this.parseExpression();if(r.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var i=r,n="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)&&this.throwError(o.Messages.Redeclaration,"Label",i.name),this.context.labelSet[n]=!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,d=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,o.Messages.StrictFunction):d.generator&&this.tolerateUnexpectedToken(l,o.Messages.GeneratorInLegacyContext),s=d}else s=this.parseStatement();delete this.context.labelSet[n],e=new a.LabeledStatement(i,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),i={},n=0;n<t.length;n++){var s="$"+t[n].value;Object.prototype.hasOwnProperty.call(i,s)&&this.tolerateError(o.Messages.DuplicateBinding,t[n].value),i[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,i=this.matchKeyword("finally")?this.parseFinallyClause():null;return r||i||this.throwError(o.Messages.NoCatchOrFinally),this.finalize(e,new a.TryStatement(t,r,i))},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,i=this.context.inIteration,n=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=i,this.context.inSwitch=n,this.context.inFunctionBody=o,this.finalize(e,new a.BlockStatement(t))},e.prototype.validateParam=function(e,t,r){var i="$"+r;this.context.strict?(this.scanner.isRestrictedWord(r)&&(e.stricted=t,e.message=o.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,i)&&(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,i)&&(e.stricted=t,e.message=o.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(e.paramSet,i,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[i]=!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),i=0;i<t.length;i++)this.validateParam(e,t[i],t[i].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 i,n=!r&&this.match("*");n&&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,i=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(c=l,i=o.Messages.StrictReservedWord)}var d=this.context.await,u=this.context.allowYield;this.context.await=r,this.context.allowYield=!n;var p=this.parseFormalParameters(c),m=p.params,_=p.stricted;c=p.firstRestricted,p.message&&(i=p.message);var h=this.context.strict,f=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&c&&this.throwUnexpectedToken(c,i),this.context.strict&&_&&this.tolerateUnexpectedToken(_,i),this.context.strict=h,this.context.allowStrictDirective=f,this.context.await=d,this.context.allowYield=u,r?this.finalize(t,new a.AsyncFunctionDeclaration(s,m,g)):this.finalize(t,new a.FunctionDeclaration(s,m,g,n))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var r,i=!t&&this.match("*");i&&this.nextToken();var n,s=null,c=this.context.await,l=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!i,!this.match("(")){var d=this.lookahead;s=this.context.strict||i||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(d.value)&&this.tolerateUnexpectedToken(d,o.Messages.StrictFunctionName):this.scanner.isRestrictedWord(d.value)?(n=d,r=o.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(d.value)&&(n=d,r=o.Messages.StrictReservedWord)}var u=this.parseFormalParameters(n),p=u.params,m=u.stricted;n=u.firstRestricted,u.message&&(r=u.message);var _=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=u.simple;var f=this.parseFunctionSourceElements();return this.context.strict&&n&&this.throwUnexpectedToken(n,r),this.context.strict&&m&&this.tolerateUnexpectedToken(m,r),this.context.strict=_,this.context.allowStrictDirective=h,this.context.await=c,this.context.allowYield=l,t?this.finalize(e,new a.AsyncFunctionExpression(s,p,f)):this.finalize(e,new a.FunctionExpression(s,p,f,i))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),r=this.parseExpression(),i=r.type===c.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,i?new a.Directive(r,i):new a.ExpressionStatement(r))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var r=this.lookahead;if(8!==r.type)break;var i=this.parseDirective();t.push(i);var n=i.directive;if("string"!=typeof n)break;"use strict"===n?(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 i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,i,!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 i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,i,!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 i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new a.FunctionExpression(null,r.params,i,!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 i=this.context.allowYield;this.context.allowYield=!1,(r=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=i}return this.finalize(e,new a.YieldExpression(t,r))},e.prototype.parseClassElement=function(e){var t=this.lookahead,r=this.createNode(),i="",n=null,s=null,c=!1,l=!1,d=!1,u=!1;if(this.match("*"))this.nextToken();else if(c=this.match("["),"static"===(n=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,d=!0,c=this.match("["),this.match("*")?this.nextToken():n=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(u=!0,t=this.lookahead,n=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?(i="get",c=this.match("["),n=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):"set"===t.value&&m&&(i="set",c=this.match("["),n=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):7===t.type&&"*"===t.value&&m&&(i="init",c=this.match("["),n=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),l=!0),!i&&n&&this.match("(")&&(i="init",s=u?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),i||this.throwUnexpectedToken(this.lookahead),"init"===i&&(i="method"),c||(d&&this.isPropertyKey(n,"prototype")&&this.throwUnexpectedToken(t,o.Messages.StaticPrototype),!d&&this.isPropertyKey(n,"constructor")&&(("method"!==i||!l||s&&s.generator)&&this.throwUnexpectedToken(t,o.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,o.Messages.DuplicateConstructor):e.value=!0,i="constructor")),this.finalize(r,new a.MethodDefinition(n,c,s,i,d))},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 i=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var o=this.parseClassBody();return this.context.strict=r,this.finalize(t,new a.ClassDeclaration(i,n,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,i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var n=this.parseClassBody();return this.context.strict=t,this.finalize(e,new a.ClassExpression(r,i,n))},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 i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,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 i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause;this.throwError(i,this.lookahead.value)}this.nextToken();var n=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new a.ExportAllDeclaration(n))}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?(i=this.lookahead.value?o.Messages.UnexpectedToken:o.Messages.MissingFromClause,this.throwError(i,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new a.ExportNamedDeclaration(null,s,c))}return e},e}();t.Parser=u},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(i){Object.create&&Object.defineProperty&&(r=Object.create(i),Object.defineProperty(r,"column",{value:t}))}return r},e.prototype.createError=function(e,t,r,i){var n="Line "+t+": "+i,o=this.constructError(n,r);return o.index=e,o.lineNumber=t,o.description=i,o},e.prototype.throwError=function(e,t,r,i){throw this.createError(e,t,r,i)},e.prototype.tolerateError=function(e,t,r,i){var n=this.createError(e,t,r,i);if(!this.tolerant)throw n;this.recordError(n)},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 i=r(9),n=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,i=[];for(this.trackComment&&(i=[],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,n.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};i.push(a)}return 13===o&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,i}}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},i.push(a)),i},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 i=this.source.charCodeAt(this.index);if(n.Character.isLineTerminator(i))13===i&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===i){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(n.Character.isWhiteSpace(r))++this.index;else if(n.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 i=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(i)),t=!0}else{if(42!==r)break;this.index+=2,i=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(i))}else if(t&&45===r){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,i=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(i))}else{if(60!==r||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,i=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(i))}}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,i=0;i<t;++i){if(this.eof()||!n.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++],n.Character.isHexDigit(e.charCodeAt(0)));)t=16*t+a(e);return(t>1114111||"}"!==e)&&this.throwUnexpectedToken(),n.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(!n.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=n.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&&n.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),r=e);!this.eof()&&(t=this.codePointAt(this.index),n.Character.isIdentifierPart(t));)r+=e=n.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&&n.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()&&n.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,r=8*r+s(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&n.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 i=this.index;this.index=t,this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),this.index=i}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()&&n.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),n.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),(n.Character.isIdentifierStart(t)||n.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="",i=!1;for(n.Character.isOctalDigit(e.charCodeAt(0))?(i=!0,r="0"+this.source[this.index++]):++this.index;!this.eof()&&n.Character.isOctalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];return i||0!==r.length||this.throwUnexpectedToken(),(n.Character.isIdentifierStart(this.source.charCodeAt(this.index))||n.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(r,8),octal:i,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(!n.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];i.assert(n.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&&n.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;n.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++];n.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++]),n.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;n.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];else this.throwUnexpectedToken();return n.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];i.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++])&&n.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&&n.Character.isOctalDigit(s.charCodeAt(0))){var d=this.octalToDecimal(s);r=d.octal||r,a+=String.fromCharCode(d.code)}else a+=s}else{if(n.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,i="`"===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++],n.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,d=this.scanHexEscape(c);null!==d?e+=d:(this.index=l,e+=c)}break;case"x":var u=this.scanHexEscape(c);null===u&&this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence),e+=u;break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:"0"===c?(n.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),e+="\0"):n.Character.isOctalDigit(c.charCodeAt(0))?this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral):e+=c}else n.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(),i||this.curlyStack.pop(),{type:10,value:this.source.slice(r+1,this.index-s),cooked:e,head:i,tail:a,lineNumber:this.lineNumber,lineStart:this.lineStart,start:r,end:this.index}},e.prototype.testRegExp=function(e,t){var r=e,i=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 n=parseInt(t||r,16);return n>1114111&&i.throwUnexpectedToken(o.Messages.InvalidRegExp),n<=65535?String.fromCharCode(n):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(r)}catch(n){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];i.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++],n.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),t+=e;else if(n.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(!n.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,i=this.scanHexEscape("u");if(null!==i)for(e+=i;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 n.Character.isIdentifierStart(e)?this.scanIdentifier():40===e||41===e||59===e?this.scanPunctuator():39===e||34===e?this.scanStringLiteral():46===e?n.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():n.Character.isDecimalDigit(e)?this.scanNumericLiteral():96===e||125===e&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():e>=55296&&e<57343&&n.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 i=r(10),n=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=!!(i=this.values[this.curly-4])&&!this.beforeFunctionExpression(i);else if("function"===this.values[this.curly-4]){var i;t=!(i=this.values[this.curly-5])||!this.beforeFunctionExpression(i)}}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 i.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new n.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],i=this.scanner.source.slice(r.slice[0],r.slice[1]),n={type:r.multiLine?"BlockComment":"LineComment",value:i};this.trackRange&&(n.range=r.range),this.trackLoc&&(n.loc=r.loc),this.buffer.push(n)}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,d=s.flags;c.regex={pattern:l,flags:d}}this.buffer.push(c)}}return this.buffer.shift()},e}();t.Tokenizer=s}]);for(var c_={},l_={},d_={byteLength:function(e){var t=g_(e),r=t[0],i=t[1];return 3*(r+i)/4-i},toByteArray:function(e){var t,r,i=g_(e),n=i[0],o=i[1],a=new m_(function(e,t,r){return 3*(t+r)/4-r}(0,n,o)),s=0,c=o>0?n-4:n;for(r=0;r<c;r+=4)t=p_[e.charCodeAt(r)]<<18|p_[e.charCodeAt(r+1)]<<12|p_[e.charCodeAt(r+2)]<<6|p_[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=p_[e.charCodeAt(r)]<<2|p_[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=p_[e.charCodeAt(r)]<<10|p_[e.charCodeAt(r+1)]<<4|p_[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,i=r%3,n=[],o=16383,a=0,s=r-i;a<s;a+=o)n.push(b_(e,a,a+o>s?s:a+o));1===i?(t=e[r-1],n.push(u_[t>>2]+u_[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],n.push(u_[t>>10]+u_[t>>4&63]+u_[t<<2&63]+"="));return n.join("")}},u_=[],p_=[],m_="undefined"!=typeof Uint8Array?Uint8Array:Array,__="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h_=0,f_=__.length;h_<f_;++h_)u_[h_]=__[h_],p_[__.charCodeAt(h_)]=h_;function g_(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 b_(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(u_[(n=i)>>18&63]+u_[n>>12&63]+u_[n>>6&63]+u_[63&n]);return o.join("")}p_["-".charCodeAt(0)]=62,p_["_".charCodeAt(0)]=63;var y_={};
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function v_(e){return Object.prototype.toString.call(e)}y_.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,c=(1<<s)-1,l=c>>1,d=-7,u=r?n-1:0,p=r?-1:1,m=e[t+u];for(u+=p,o=m&(1<<-d)-1,m>>=-d,d+=s;d>0;o=256*o+e[t+u],u+=p,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=i;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,i),o-=l}return(m?-1:1)*a*Math.pow(2,o-i)},y_.write=function(e,t,r,i,n,o){var a,s,c,l=8*o-n-1,d=(1<<l)-1,u=d>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,m=i?0:o-1,_=i?1:-1,h=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=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+u>=1?p/c:p*Math.pow(2,1-u))*c>=2&&(a++,c/=2),a+u>=d?(s=0,a=d):a+u>=1?(s=(t*c-1)*Math.pow(2,n),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,n),a=0));n>=8;e[r+m]=255&s,m+=_,s/=256,n-=8);for(a=a<<n|s,l+=n;l>0;e[r+m]=255&a,m+=_,a/=256,l-=8);e[r+m-_]|=128*h},
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
function(e){const t=d_,r=y_,i="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 n=2147483647;function o(e){if(e>n)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 i=o(r);const n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){const t=new Uint8Array(e);return u(t.buffer,t.byteOffset,t.byteLength)}return d(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(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return u(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return u(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return a.from(i,t,r);const n=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||W(e.length)?o(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(n)return n;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 d(e){const t=e.length<0?0:0|p(e.length),r=o(t);for(let i=0;i<t;i+=1)r[i]=255&e[i];return r}function u(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 i;return i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(i,a.prototype),i}function p(e){if(e>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function m(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(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,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(n)return i?-1:X(e).length;t=(""+t).toLowerCase(),n=!0}}function _(e,t,r){let i=!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 D(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function h(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function f(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),W(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){let o,a=1,s=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){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(n){let i=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===i?0:o-i)){if(-1===i&&(i=o),o-i+1===c)return i*a}else-1!==i&&(o-=o-i),i=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let i=0;i<c;i++)if(l(e,o+i)!==l(t,i)){r=!1;break}if(r)return o}return-1}function b(e,t,r,i){r=Number(r)||0;const n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;const o=t.length;let a;for(i>o/2&&(i=o/2),a=0;a<i;++a){const i=parseInt(t.substr(2*a,2),16);if(W(i))return a;e[r+a]=i}return a}function y(e,t,r,i){return H(X(t,e.length-r),e,r,i)}function v(e,t,r,i){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,i)}function N(e,t,r,i){return H(J(t),e,r,i)}function x(e,t,r,i){return H(function(e,t){let r,i,n;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function k(e,r,i){return 0===r&&i===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,i))}function w(e,t,r){r=Math.min(e.length,r);const i=[];let n=t;for(;n<r;){const t=e[n];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=r){let r,i,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[n+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[n+1],i=e[n+2],128==(192&r)&&128==(192&i)&&(c=(15&t)<<12|(63&r)<<6|63&i,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[n+1],i=e[n+2],s=e[n+3],128==(192&r)&&128==(192&i)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),n+=a}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=O));return r}(i)}e.kMaxLength=n,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(G(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),G(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,i=t.length;for(let n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<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 i=a.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(G(t,Uint8Array))n+t.length>i.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,n)}n+=t.length}return i},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)h(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)h(this,t,t+3),h(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)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?w(this,0,e):_.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+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,r,i,n){if(G(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===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(t>>>=0);const c=Math.min(o,s),l=this.slice(i,n),d=e.slice(t,r);for(let a=0;a<c;++a)if(l[a]!==d[a]){o=l[a],s=d[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 f(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return f(this,e,t,r,!1)},a.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=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===i&&(i="utf8")):(i=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){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 N(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).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 i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function A(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function D(e,t,r){const i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let o=t;o<r;++o)n+=Z[e[o]];return n}function C(e,t,r){const i=e.slice(t,r);let n="";for(let o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}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,i,n,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function j(e,t,r,i,n){z(t,i,n,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 B(e,t,r,i,n){z(t,i,n,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 M(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(e,t,i,n,o){return t=+t,i>>>=0,o||M(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function L(e,t,i,n,o){return t=+t,i>>>=0,o||M(e,0,i,8),r.write(e,t,i,n,52,8),i+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 i=this.subarray(e,t);return Object.setPrototypeOf(i,a.prototype),i},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let i=this[e],n=1,o=0;for(;++o<t&&(n*=256);)i+=this[e+o]*n;return i},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},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=Y((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 i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(i)+(BigInt(n)<<BigInt(32))})),a.prototype.readBigUInt64BE=Y((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 i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<<BigInt(32))+BigInt(n)})),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let i=this[e],n=1,o=0;for(;++o<t&&(n*=256);)i+=this[e+o]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let i=t,n=1,o=this[e+--i];for(;i>0&&(n*=256);)o+=this[e+--i]*n;return n*=128,o>=n&&(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=Y((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 i=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),a.prototype.readBigInt64BE=Y((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 i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<<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,i){if(e=+e,t>>>=0,r>>>=0,!i){F(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){F(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=r-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=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=Y((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=Y((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}let n=0,o=1,a=0;for(this[t]=255&e;++n<r&&(o*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/o>>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}let n=r-1,o=1,a=0;for(this[t+n]=255&e;--n>=0&&(o*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(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=Y((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=Y((function(e,t=0){return B(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 L(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,i){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);const n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},a.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){const t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(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 n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const o=a.isBuffer(e)?e:a.from(e,i),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};const P={};function I(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 i="-"===e[0]?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,i,n,o){if(e>r||e<t){const i="bigint"==typeof t?"n":"";let n;throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new P.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||$(t,e.length-(r+1))}(i,n,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)}I("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),I("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),I("ERR_OUT_OF_RANGE",(function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=R(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=R(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function X(e,t){let r;t=t||1/0;const i=e.length;let n=null;const o=[];for(let a=0;a<i;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=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 J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function Y(e){return"undefined"==typeof BigInt?K:e}function K(){throw new Error("BigInt not supported")}}(l_),c_.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===v_(e)},c_.isBoolean=function(e){return"boolean"==typeof e},c_.isNull=function(e){return null===e},c_.isNullOrUndefined=function(e){return null==e},c_.isNumber=function(e){return"number"==typeof e},c_.isString=function(e){return"string"==typeof e},c_.isSymbol=function(e){return"symbol"==typeof e},c_.isUndefined=function(e){return void 0===e},c_.isRegExp=function(e){return"[object RegExp]"===v_(e)},c_.isObject=function(e){return"object"==typeof e&&null!==e},c_.isDate=function(e){return"[object Date]"===v_(e)},c_.isError=function(e){return"[object Error]"===v_(e)||e instanceof Error},c_.isFunction=function(e){return"function"==typeof e},c_.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},c_.isBuffer=l_.Buffer.isBuffer;const N_=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];let x_;const k_=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 w_(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=k_(e),i=k_(t);let n=0;return r<i?(e*=N_[i-r-1],t/=10,n=-1):r>i&&(t*=N_[r-i-1],e/=10,n=1),e===t?n:e<t?-1:1}const r=String(e),i=String(t);return r===i?0:r<i?-1:1}function O_(e,t,r,i){let n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;S_(e,t,n),S_(x_,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function S_(e,t,r){for(r--;t<r;){const i=e[t];e[t++]=e[r],e[r--]=i}}function A_(e,t,r,i,n){for(i===t&&i++;i<r;i++){const r=e[i],o=x_[i];let a=t,s=i;for(;a<s;){const t=a+s>>>1;n(r,e[t])<0?s=t:a=t+1}let c=i-a;switch(c){case 3:e[a+3]=e[a+2],x_[a+3]=x_[a+2];case 2:e[a+2]=e[a+1],x_[a+2]=x_[a+1];case 1:e[a+1]=e[a],x_[a+1]=x_[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],x_[a+c]=x_[a+c-1],c--}e[a]=r,x_[a]=o}}function D_(e,t,r,i,n,o){let a=0,s=0,c=1;if(o(e,t[r+n])>0){for(s=i-n;c<s&&o(e,t[r+n+c])>0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=n,c+=n}else{for(s=n+1;c<s&&o(e,t[r+n-c])<=0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);const i=a;a=n-c,c=n-i}for(a++;a<c;){const i=a+(c-a>>>1);o(e,t[r+i])>0?a=i+1:c=i}return c}function C_(e,t,r,i,n,o){let a=0,s=0,c=1;if(o(e,t[r+n])<0){for(s=n+1;c<s&&o(e,t[r+n-c])<0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);const i=a;a=n-c,c=n-i}else{for(s=i-n;c<s&&o(e,t[r+n+c])>=0;)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=n,c+=n}for(a++;a<c;){const i=a+(c-a>>>1);o(e,t[r+i])<0?c=i:a=i+1}return c}class E_{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 i=this.runStart[e],n=this.runLength[e];const o=this.runStart[e+1];let a=this.runLength[e+1];this.runLength[e]=n+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=C_(r[o],r,i,n,0,t);i+=s,n-=s,0!==n&&(a=D_(r[i+n-1],r,o,a,a-1,t),0!==a&&(n<=a?this.mergeLow(i,n,o,a):this.mergeHigh(i,n,o,a)))}mergeLow(e,t,r,i){const{compare:n}=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]=x_[e+c];let l=0,d=r,u=e;if(o[u]=o[d],x_[u]=x_[d],u++,d++,0==--i){for(c=0;c<t;c++)o[u+c]=a[l+c],x_[u+c]=s[l+c];return}if(1===t){for(c=0;c<i;c++)o[u+c]=o[d+c],x_[u+c]=x_[d+c];return o[u+i]=a[l],void(x_[u+i]=s[l])}let{minGallop:p}=this;for(;;){let e=0,r=0,m=!1;do{if(n(o[d],a[l])<0){if(o[u]=o[d],x_[u]=x_[d],u++,d++,r++,e=0,0==--i){m=!0;break}}else if(o[u]=a[l],x_[u]=s[l],u++,l++,e++,r=0,1==--t){m=!0;break}}while((e|r)<p);if(m)break;do{if(e=C_(o[d],a,l,t,0,n),0!==e){for(c=0;c<e;c++)o[u+c]=a[l+c],x_[u+c]=s[l+c];if(u+=e,l+=e,(t-=e)<=1){m=!0;break}}if(o[u]=o[d],x_[u]=x_[d],u++,d++,0==--i){m=!0;break}if(r=D_(a[l],o,d,i,0,n),0!==r){for(c=0;c<r;c++)o[u+c]=o[d+c],x_[u+c]=x_[d+c];if(u+=r,d+=r,0===(i-=r)){m=!0;break}}if(o[u]=a[l],x_[u]=s[l],u++,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<i;c++)o[u+c]=o[d+c],x_[u+c]=x_[d+c];o[u+i]=a[l],x_[u+i]=s[l]}else{if(0===t)throw new Error("mergeLow preconditions were not respected");for(c=0;c<t;c++)o[u+c]=a[l+c],x_[u+c]=s[l+c]}}mergeHigh(e,t,r,i){const{compare:n}=this,{array:o}=this,{tmp:a}=this,{tmpIndex:s}=this;let c=0;for(c=0;c<i;c++)a[c]=o[r+c],s[c]=x_[r+c];let l=e+t-1,d=i-1,u=r+i-1,p=0,m=0;if(o[u]=o[l],x_[u]=x_[l],u--,l--,0==--t){for(p=u-(i-1),c=0;c<i;c++)o[p+c]=a[c],x_[p+c]=s[c];return}if(1===i){for(u-=t,l-=t,m=u+1,p=l+1,c=t-1;c>=0;c--)o[m+c]=o[p+c],x_[m+c]=x_[p+c];return o[u]=a[d],void(x_[u]=s[d])}let{minGallop:_}=this;for(;;){let r=0,h=0,f=!1;do{if(n(a[d],o[l])<0){if(o[u]=o[l],x_[u]=x_[l],u--,l--,r++,h=0,0==--t){f=!0;break}}else if(o[u]=a[d],x_[u]=s[d],u--,d--,h++,r=0,1==--i){f=!0;break}}while((r|h)<_);if(f)break;do{if(r=t-C_(a[d],o,e,t,t-1,n),0!==r){for(u-=r,l-=r,t-=r,m=u+1,p=l+1,c=r-1;c>=0;c--)o[m+c]=o[p+c],x_[m+c]=x_[p+c];if(0===t){f=!0;break}}if(o[u]=a[d],x_[u]=s[d],u--,d--,1==--i){f=!0;break}if(h=i-D_(o[l],a,0,i,i-1,n),0!==h){for(u-=h,d-=h,i-=h,m=u+1,p=d+1,c=0;c<h;c++)o[m+c]=a[p+c],x_[m+c]=s[p+c];if(i<=1){f=!0;break}}if(o[u]=o[l],x_[u]=x_[l],u--,l--,0==--t){f=!0;break}_--}while(r>=7||h>=7);if(f)break;_<0&&(_=0),_+=2}if(this.minGallop=_,_<1&&(this.minGallop=1),1===i){for(u-=t,l-=t,m=u+1,p=l+1,c=t-1;c>=0;c--)o[m+c]=o[p+c],x_[m+c]=x_[p+c];o[u]=a[d],x_[u]=s[d]}else{if(0===i)throw new Error("mergeHigh preconditions were not respected");for(p=u-(i-1),c=0;c<i;c++)o[p+c]=a[c],x_[p+c]=s[c]}}}var F_={sort:function(e,t,r,i){if(!Array.isArray(e))throw new TypeError(`The "array" argument must be an array. Received ${e}`);x_=[];const{length:n}=e;let o=0;for(;o<n;)x_[o]=o++;t?"function"!=typeof t&&(i=r,r=t,t=w_):t=w_,r||(r=0),i||(i=n);let a=i-r;if(a<2)return x_;let s=0;if(a<32)return s=O_(e,r,i,t),A_(e,r,i,r+s,t),x_;const c=new E_(e,t),l=function(e){let t=0;for(;e>=32;)t|=1&e,e>>=1;return e+t}(a);do{if(s=O_(e,r,i,t),s<l){let i=a;i>l&&(i=l),A_(e,r,r+i,r+s,t),s=i}c.pushRun(r,s),c.mergeRuns(),a-=s,r+=s}while(0!==a);return c.forceMergeRuns(),x_}};const j_=Object.prototype.hasOwnProperty;const B_=(e,t)=>j_.call(e,t),{isObject:M_,isArray:T_}=c_,L_="before",P_="before-all",I_="after-all",R_=[L_,"after-prop","after-colon","after-value","after"],z_=[L_,P_,I_].map(Symbol.for),U_=(e,t)=>Symbol.for(e+":"+t),$_=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),q_=(e,t,r,i,n,o)=>{const a=U_(n,i);if(!B_(t,a))return;const s=r===i?a:U_(n,r);$_(e,s,t[a]),o&&delete t[a]},X_=(e,t,r,i,n)=>{R_.forEach((o=>{q_(e,t,r,i,o,n)}))},J_=(e,t)=>{z_.forEach((r=>{const i=t[r];i&&$_(e,r,i)}))};var H_={SYMBOL_PREFIXES:R_,PREFIX_BEFORE:L_,PREFIX_AFTER_PROP:"after-prop",PREFIX_AFTER_COLON:"after-colon",PREFIX_AFTER_VALUE:"after-value",PREFIX_AFTER:"after",PREFIX_BEFORE_ALL:P_,PREFIX_AFTER_ALL:I_,BRACKET_OPEN:"[",BRACKET_CLOSE:"]",CURLY_BRACKET_OPEN:"{",CURLY_BRACKET_CLOSE:"}",COLON:":",COMMA:",",MINUS:"-",EMPTY:"",UNDEFINED:undefined,symbol:U_,define:$_,copy_comments:X_,swap_comments:(e,t,r)=>{t!==r&&R_.forEach((i=>{const n=U_(i,r);if(!B_(e,n))return void q_(e,e,r,t,i,!0);const o=e[n];delete e[n],q_(e,e,r,t,i,!0),$_(e,U_(i,t),o)}))},assign_non_prop_comments:J_,assign(e,t,r){if(!M_(e))throw new TypeError("Cannot convert undefined or null to object");if(!M_(t))return e;if(undefined===r)r=Object.keys(t),J_(e,t);else{if(!T_(r))throw new TypeError("keys must be array or undefined");0===r.length&&J_(e,t)}return((e,t,r)=>(r.forEach((r=>{B_(t,r)&&(e[r]=t[r],X_(e,t,r,r))})),e))(e,t,r)}};const{isArray:G_}=c_,{sort:W_}=F_,{SYMBOL_PREFIXES:Z_,UNDEFINED:Y_,symbol:K_,copy_comments:V_,swap_comments:Q_}=H_,eh=(e,t,r,i,n)=>{V_(e,t,r+i,r,n)},th=(e,t,r,i,n,o)=>{if(n>0){let a=i;for(;a-- >0;)eh(e,t,r+a,n,o);return}let a=0;for(;a<i;){const i=a++;eh(e,t,r+i,n,o)}},rh=(e,t)=>{Z_.forEach((r=>{const i=K_(r,t);delete e[i]}))};class ih extends Array{splice(...e){const{length:t}=this,r=super.splice(...e);let[i,n,...o]=e;i<0&&(i+=t),n=1===arguments.length?t-i:Math.min(t-i,n);const{length:a}=o,s=i+n;return th(this,this,s,t-s,a-n,!0),r}slice(...e){const{length:t}=this,r=super.slice(...e);if(!r.length)return new ih;let[i,n]=e;return n===Y_?n=t:n<0&&(n+=t),i<0?i+=t:i===Y_&&(i=0),th(r,this,i,n-i,-i),r}unshift(...e){const{length:t}=this,r=super.unshift(...e),{length:i}=e;return i>0&&th(this,this,0,t,i,!0),r}shift(){const e=super.shift(),{length:t}=this;return rh(this,0),th(this,this,1,t,-1,!0),e}reverse(){return super.reverse(),(e=>{const{length:t}=e;let r=0;const i=t/2;for(;r<i;r++)Q_(e,r,t-r-1)})(this),this}pop(){const e=super.pop();return rh(this,this.length),e}concat(...e){let{length:t}=this;const r=super.concat(...e);return e.length?(th(r,this,0,this.length,0),e.forEach((e=>{const i=t;t+=G_(e)?e.length:1,e instanceof ih&&th(r,e,0,e.length,i)})),r):r}sort(...e){const t=W_(this,...e.slice(0,1)),r=Object.create(null);return t.forEach(((e,t)=>{if(e===t)return;const i=((e,t)=>{let r=t;for(;r in e;)r=e[r];return r})(r,e);i!==t&&(r[t]=i,Q_(this,t,i))})),this}}var nh={CommentArray:ih};const oh=s_.exports,{CommentArray:ah}=nh,{PREFIX_BEFORE:sh,PREFIX_AFTER_PROP:ch,PREFIX_AFTER_COLON:lh,PREFIX_AFTER_VALUE:dh,PREFIX_AFTER:uh,PREFIX_BEFORE_ALL:ph,PREFIX_AFTER_ALL:mh,BRACKET_OPEN:_h,BRACKET_CLOSE:hh,CURLY_BRACKET_OPEN:fh,CURLY_BRACKET_CLOSE:gh,COLON:bh,COMMA:yh,MINUS:vh,EMPTY:Nh,UNDEFINED:xh,define:kh,assign_non_prop_comments:wh}=H_,Oh=e=>oh.tokenize(e,{comment:!0,loc:!0}),Sh=[];let Ah=null,Dh=null;const Ch=[];let Eh,Fh,jh=!1,Bh=!1,Mh=null,Th=null,Lh=null,Ph=null;const Ih=()=>{Ch.length=Sh.length=0,Th=null,Eh=xh},Rh=e=>Symbol.for(Eh!==xh?e+bh+Eh:e),zh=(e,t)=>Ph?Ph(e,t):t,Uh=()=>{const e=new SyntaxError(`Unexpected token ${Lh.value.slice(0,1)}`);throw Object.assign(e,Lh.loc.start),e},$h=()=>{const e=new SyntaxError("Unexpected end of JSON input");throw Object.assign(e,Th?Th.loc.end:{line:1,column:0}),e},qh=()=>{const e=Mh[++Fh];Bh=Lh&&e&&Lh.loc.end.line===e.loc.start.line||!1,Th=Lh,Lh=e},Xh=()=>(Lh||$h(),"Punctuator"===Lh.type?Lh.value:Lh.type),Jh=e=>Xh()===e,Hh=e=>{Jh(e)||Uh()},Gh=e=>{Sh.push(Ah),Ah=e},Wh=()=>{Ah=Sh.pop()},Zh=()=>{if(!Dh)return;const e=[];for(const r of Dh){if(!r.inline)break;e.push(r)}const{length:t}=e;t&&(t===Dh.length?Dh=null:Dh.splice(0,t),kh(Ah,Rh(uh),e))},Yh=e=>{Dh&&(kh(Ah,Rh(e),Dh),Dh=null)},Kh=e=>{const t=[];for(;Lh&&(Jh("LineComment")||Jh("BlockComment"));){const e=c(s({},Lh),{inline:Bh});t.push(e),qh()}jh||t.length&&(e?kh(Ah,Rh(e),t):Dh=t)},Vh=(e,t)=>{t&&Ch.push(Eh),Eh=e},Qh=()=>{Eh=Ch.pop()};function ef(){let e=Xh();if(e===fh)return qh(),(()=>{const e={};Gh(e),Vh(xh,!0);let t,r=!1;for(Kh();!(Jh(gh)||r&&(Yh(dh),Hh(yh),qh(),Kh(),Zh(),Jh(gh)));)r=!0,Hh("String"),t=JSON.parse(Lh.value),Vh(t),Yh(sh),qh(),Kh(ch),Hh(bh),qh(),Kh(lh),e[t]=zh(t,ef()),Kh();return r&&Yh(uh),qh(),Eh=void 0,r||Yh(sh),Wh(),Qh(),e})();if(e===_h)return qh(),(()=>{const e=new ah;Gh(e),Vh(xh,!0);let t=!1,r=0;for(Kh();!(Jh(hh)||t&&(Yh(dh),Hh(yh),qh(),Kh(),Zh(),Jh(hh)));)t=!0,Vh(r),Yh(sh),e[r]=zh(r,ef()),r++,Kh();return t&&Yh(uh),qh(),Eh=void 0,t||Yh(sh),Wh(),Qh(),e})();let t,r=Nh;switch(e===vh&&(qh(),e=Xh(),r=vh),e){case"String":case"Boolean":case"Null":case"Numeric":return t=Lh.value,qh(),JSON.parse(r+t)}}var tf,rf={parse:(e,t,r)=>{Ih(),Mh=Oh(e),Ph=t,jh=r,Mh.length||$h(),Fh=-1,qh(),Gh({}),Kh(ph);let i=ef();var n;return Kh(mh),Lh&&Uh(),r||null===i||(n=i,Object(n)!==n&&(i=new Object(i)),wh(i,Ah)),Wh(),i=zh("",i),Ih(),Mh.length=0,Dh=Ah=Mh=Th=Lh=Ph=null,i},tokenize:Oh},nf="",of=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(tf!==e||void 0===tf)tf=e,nf="";else if(nf.length>=r)return nf.substr(0,r);for(;r>nf.length&&t>1;)1&t&&(nf+=e),t>>=1,e+=e;return nf=(nf+=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:af,isObject:sf,isFunction:cf,isNumber:lf,isString:df}=c_,uf=of,{PREFIX_BEFORE_ALL:pf,PREFIX_BEFORE:mf,PREFIX_AFTER_PROP:_f,PREFIX_AFTER_COLON:hf,PREFIX_AFTER_VALUE:ff,PREFIX_AFTER:gf,PREFIX_AFTER_ALL:bf,BRACKET_OPEN:yf,BRACKET_CLOSE:vf,CURLY_BRACKET_OPEN:Nf,CURLY_BRACKET_CLOSE:xf,COLON:kf,COMMA:wf,EMPTY:Of,UNDEFINED:Sf}=H_,Af=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Df=e=>`${mf}:${e}`,Cf=e=>`${ff}:${e}`,Ef=e=>`${gf}:${e}`,Ff={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},jf=e=>`"${(e=>(Af.lastIndex=0,Af.test(e)?e.replace(Af,(e=>{const t=Ff[e];return"string"==typeof t?t:e})):e))(e)}"`,Bf=(e,t,r,i)=>{const n=e[Symbol.for(t)];if(!n||!n.length)return Of;let o=!1;const a=n.reduce(((e,{inline:t,type:i,value:n})=>(o="LineComment"===i,e+(t?" ":"\n"+r)+((e,t)=>t?`//${e}`:`/*${e}*/`)(n,o))),Of);return i||o?a+"\n"+r:a};let Mf=null,Tf=Of;const Lf=(e,t,r)=>e?t?e+t.trim()+"\n"+r:e.trimRight()+"\n"+r:t?t.trimRight()+"\n"+r:Of,Pf=(e,t,r)=>{const i=Bf(t,mf,r+Tf,!0);return Lf(i,e,r)},If=(e,t)=>{if(!e)return"null";const r=t+Tf;let i=Of,n=Of,o=!0;return(af(Mf)?Mf:Object.keys(e)).forEach((t=>{const a=Rf(t,e,r);if(a===Sf)return;o||(i+=wf),o=!1;const s=Lf(n,Bf(e,Df(t),r),r);i+=s||"\n"+r,i+=jf(t)+Bf(e,`${_f}:${t}`,r)+kf+Bf(e,(e=>`${hf}:${e}`)(t),r)+" "+a+Bf(e,Cf(t),r),n=Bf(e,Ef(t),r)})),i+=Lf(n,Bf(e,gf,r),r),Nf+Pf(i,e,t)+xf};function Rf(e,t,r){let i=t[e];switch(sf(i)&&cf(i.toJSON)&&(i=i.toJSON(e)),cf(Mf)&&(i=Mf.call(t,e,i)),typeof i){case"string":return jf(i);case"number":return Number.isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":return af(i)?((e,t)=>{const r=t+Tf,{length:i}=e;let n=Of,o=Of;for(let a=0;a<i;a++)0!==a&&(n+=wf),n+=Lf(o,Bf(e,Df(a),r),r)||"\n"+r,n+=Rf(a,e,r)||"null",n+=Bf(e,Cf(a),r),o=Bf(e,Ef(a),r);return n+=Lf(o,Bf(e,gf,r),r),yf+Pf(n,e,t)+vf})(i,r):If(i,r)}}const{toString:zf}=Object.prototype,Uf=["[object Number]","[object String]","[object Boolean]"];const{parse:$f,tokenize:qf}=rf,Xf=(e,t,r)=>{const i=(e=>df(e)?e:lf(e)?uf(" ",e):Of)(r);if(!i)return JSON.stringify(e,t);cf(t)||af(t)||(t=null),Mf=t,Tf=i;const n=(e=>{if("object"!=typeof e)return!1;const t=zf.call(e);return Uf.includes(t)})(e)?JSON.stringify(e):Rf("",{"":e},Of);return Mf=null,Tf=Of,sf(e)?Bf(e,pf,Of).trimLeft()+n+Bf(e,bf,Of).trimRight():n},{CommentArray:Jf}=nh,{assign:Hf}=H_;var Gf={parse:$f,stringify:Xf,tokenize:qf,CommentArray:Jf,assign:Hf},Wf={},Zf={},Yf={};function Kf(e){return null==e}function Vf(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||""}Yf.isNothing=Kf,Yf.isObject=function(e){return"object"==typeof e&&null!==e},Yf.toArray=function(e){return Array.isArray(e)?e:Kf(e)?[]:[e]},Yf.repeat=function(e,t){var r,i="";for(r=0;r<t;r+=1)i+=e;return i},Yf.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},Yf.extend=function(e,t){var r,i,n,o;if(t)for(r=0,i=(o=Object.keys(t)).length;r<i;r+=1)e[n=o[r]]=t[n];return e},Vf.prototype=Object.create(Error.prototype),Vf.prototype.constructor=Vf,Vf.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t};var Qf=Vf,eg=Yf;function tg(e,t,r,i,n){this.name=e,this.buffer=t,this.position=r,this.line=i,this.column=n}tg.prototype.getSnippet=function(e,t){var r,i,n,o,a;if(!this.buffer)return null;for(e=e||4,t=t||75,r="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){r=" ... ",i+=5;break}for(n="",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){n=" ... ",o-=5;break}return a=this.buffer.slice(i,o),eg.repeat(" ",e)+r+a+n+"\n"+eg.repeat(" ",e+this.position-i+r.length)+"^"},tg.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 rg=tg,ig=Qf,ng=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],og=["scalar","sequence","mapping"];var ag=function(e,t){var r,i;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===ng.indexOf(t))throw new ig('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,i={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){i[String(t)]=e}))})),i),-1===og.indexOf(this.kind))throw new ig('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')},sg=Yf,cg=Qf,lg=ag;function dg(e,t,r){var i=[];return e.include.forEach((function(e){r=dg(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&t.kind===e.kind&&i.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===i.indexOf(t)}))}function ug(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 cg("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=dg(this,"implicit",[]),this.compiledExplicit=dg(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function i(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(i);return r}(this.compiledImplicit,this.compiledExplicit)}ug.DEFAULT=null,ug.create=function(){var e,t;switch(arguments.length){case 1:e=ug.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new cg("Wrong number of arguments for Schema.create function")}if(e=sg.toArray(e),t=sg.toArray(t),!e.every((function(e){return e instanceof ug})))throw new cg("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof lg})))throw new cg("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ug({include:e,explicit:t})};var pg=ug,mg=new pg({explicit:[new ag("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new ag("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new ag("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var _g=new ag("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 hg=new ag("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"}),fg=Yf;function gg(e){return 48<=e&&e<=55}function bg(e){return 48<=e&&e<=57}var yg=new ag("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,i=e.length,n=0,o=!1;if(!i)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===i)return!0;if("b"===(t=e[++n])){for(n++;n<i;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(n++;n<i;n++)if("_"!==(t=e[n])){if(!(48<=(r=e.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;o=!0}return o&&"_"!==t}for(;n<i;n++)if("_"!==(t=e[n])){if(!gg(e.charCodeAt(n)))return!1;o=!0}return o&&"_"!==t}if("_"===t)return!1;for(;n<i;n++)if("_"!==(t=e[n])){if(":"===t)break;if(!bg(e.charCodeAt(n)))return!1;o=!0}return!(!o||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(n)))},construct:function(e){var t,r,i=e,n=1,o=[];return-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),"-"!==(t=i[0])&&"+"!==t||("-"===t&&(n=-1),t=(i=i.slice(1))[0]),"0"===i?0:"0"===t?"b"===i[1]?n*parseInt(i.slice(2),2):"x"===i[1]?n*parseInt(i,16):n*parseInt(i,8):-1!==i.indexOf(":")?(i.split(":").forEach((function(e){o.unshift(parseInt(e,10))})),i=0,r=1,o.forEach((function(e){i+=e*r,r*=60})),n*i):n*parseInt(i,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!fg.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"]}}),vg=Yf,Ng=ag,xg=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 kg=/^[-+]?[0-9]+e/;var wg=new pg({include:[mg],implicit:[_g,hg,yg,new Ng("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!xg.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r,i,n;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,n=[],"+-".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){n.unshift(parseFloat(e,10))})),t=0,i=1,n.forEach((function(e){t+=e*i,i*=60})),r*t):r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||vg.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(vg.isNegativeZero(e))return"-0.0";return r=e.toString(10),kg.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})]}),Og=new pg({include:[wg]}),Sg=ag,Ag=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Dg=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 Cg=new Sg("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==Ag.exec(e)||null!==Dg.exec(e))},construct:function(e){var t,r,i,n,o,a,s,c,l=0,d=null;if(null===(t=Ag.exec(e))&&(t=Dg.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));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]&&(d=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(d=-d)),c=new Date(Date.UTC(r,i,n,o,a,s,l)),d&&c.setTime(c.getTime()-d),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var Eg,Fg=new ag("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}});try{var jg=require;Eg=jg("buffer").Buffer}catch(xv){}var Bg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Mg=new ag("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,i=0,n=e.length,o=Bg;for(r=0;r<n;r++)if(!((t=o.indexOf(e.charAt(r)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,o=Bg,a=0,s=[];for(t=0;t<n;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(r=n%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),Eg?Eg.from?Eg.from(s):new Eg(s):s},predicate:function(e){return Eg&&Eg.isBuffer(e)},represent:function(e){var t,r,i="",n=0,o=e.length,a=Bg;for(t=0;t<o;t++)t%3==0&&t&&(i+=a[n>>18&63],i+=a[n>>12&63],i+=a[n>>6&63],i+=a[63&n]),n=(n<<8)+e[t];return 0===(r=o%3)?(i+=a[n>>18&63],i+=a[n>>12&63],i+=a[n>>6&63],i+=a[63&n]):2===r?(i+=a[n>>10&63],i+=a[n>>4&63],i+=a[n<<2&63],i+=a[64]):1===r&&(i+=a[n>>2&63],i+=a[n<<4&63],i+=a[64],i+=a[64]),i}}),Tg=ag,Lg=Object.prototype.hasOwnProperty,Pg=Object.prototype.toString;var Ig=new Tg("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,i,n,o,a=[],s=e;for(t=0,r=s.length;t<r;t+=1){if(i=s[t],o=!1,"[object Object]"!==Pg.call(i))return!1;for(n in i)if(Lg.call(i,n)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(n))return!1;a.push(n)}return!0},construct:function(e){return null!==e?e:[]}}),Rg=ag,zg=Object.prototype.toString;var Ug=new Rg("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,i,n,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(i=a[t],"[object Object]"!==zg.call(i))return!1;if(1!==(n=Object.keys(i)).length)return!1;o[t]=[n[0],i[n[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,i,n,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)i=a[t],n=Object.keys(i),o[t]=[n[0],i[n[0]]];return o}}),$g=ag,qg=Object.prototype.hasOwnProperty;var Xg=new pg({include:[Og],implicit:[Cg,Fg],explicit:[Mg,Ig,Ug,new $g("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(qg.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})]});var Jg=new ag("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 Hg,Gg=new ag("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),i="";if("/"===t[0]){if(r&&(i=r[1]),i.length>3)return!1;if("/"!==t[t.length-i.length-1])return!1}return!0},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),i="";return"/"===t[0]&&(r&&(i=r[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)},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 Wg=require;Hg=Wg("esprima")}catch(kv){"undefined"!=typeof window&&(Hg=window.esprima)}var Zg=new ag("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",r=Hg.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(i){return!1}},construct:function(e){var t,r="("+e+")",i=Hg.parse(r,{range:!0}),n=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach((function(e){n.push(e.name)})),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(n,r.slice(t[0]+1,t[1]-1)):new Function(n,"return "+r.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}}),Yg=pg,Kg=Yg.DEFAULT=new Yg({include:[Xg],explicit:[Jg,Gg,Zg]}),Vg=Yf,Qg=Qf,eb=rg,tb=Xg,rb=Kg,ib=Object.prototype.hasOwnProperty,nb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ob=/[\x85\u2028\u2029]/,ab=/[,\[\]\{\}]/,sb=/^(?:!|!!|![a-z\-]+!)$/i,cb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function lb(e){return Object.prototype.toString.call(e)}function db(e){return 10===e||13===e}function ub(e){return 9===e||32===e}function pb(e){return 9===e||32===e||10===e||13===e}function mb(e){return 44===e||91===e||93===e||123===e||125===e}function _b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function hb(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 fb(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var gb=new Array(256),bb=new Array(256),yb=0;yb<256;yb++)gb[yb]=hb(yb)?1:0,bb[yb]=hb(yb);function vb(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||rb,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 Nb(e,t){return new Qg(t,new eb(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function xb(e,t){throw Nb(e,t)}function kb(e,t){e.onWarning&&e.onWarning.call(null,Nb(e,t))}var wb={YAML:function(e,t,r){var i,n,o;null!==e.version&&xb(e,"duplication of %YAML directive"),1!==r.length&&xb(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&xb(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),o=parseInt(i[2],10),1!==n&&xb(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&kb(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var i,n;2!==r.length&&xb(e,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],sb.test(i)||xb(e,"ill-formed tag handle (first argument) of the TAG directive"),ib.call(e.tagMap,i)&&xb(e,'there is a previously declared suffix for "'+i+'" tag handle'),cb.test(n)||xb(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=n}};function Ob(e,t,r,i){var n,o,a,s;if(t<r){if(s=e.input.slice(t,r),i)for(n=0,o=s.length;n<o;n+=1)9===(a=s.charCodeAt(n))||32<=a&&a<=1114111||xb(e,"expected valid JSON character");else nb.test(s)&&xb(e,"the stream contains non-printable characters");e.result+=s}}function Sb(e,t,r,i){var n,o,a,s;for(Vg.isObject(r)||xb(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(n=Object.keys(r)).length;a<s;a+=1)o=n[a],ib.call(t,o)||(t[o]=r[o],i[o]=!0)}function Ab(e,t,r,i,n,o,a,s){var c,l;if(Array.isArray(n))for(c=0,l=(n=Array.prototype.slice.call(n)).length;c<l;c+=1)Array.isArray(n[c])&&xb(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===lb(n[c])&&(n[c]="[object Object]");if("object"==typeof n&&"[object Object]"===lb(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)Sb(e,t,o[c],r);else Sb(e,t,o,r);else e.json||ib.call(r,n)||!ib.call(t,n)||(e.line=a||e.line,e.position=s||e.position,xb(e,"duplicated mapping key")),t[n]=o,delete r[n];return t}function Db(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):xb(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function Cb(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);0!==n;){for(;ub(n);)n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!db(n))break;for(Db(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==i&&e.lineIndent<r&&kb(e,"deficient indentation"),i}function Eb(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))&&!pb(t)))}function Fb(e,t){1===t?e.result+=" ":t>1&&(e.result+=Vg.repeat("\n",t-1))}function jb(e,t){var r,i,n=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&45===i&&pb(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,Cb(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(r=e.line,Tb(e,t,3,!1,!0),a.push(e.result),Cb(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==i)xb(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=n,e.anchor=o,e.kind="sequence",e.result=a,!0)}function Bb(e){var t,r,i,n,o=!1,a=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&xb(e,"duplication of a tag property"),60===(n=e.input.charCodeAt(++e.position))?(o=!0,n=e.input.charCodeAt(++e.position)):33===n?(a=!0,r="!!",n=e.input.charCodeAt(++e.position)):r="!",t=e.position,o){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&62!==n);e.position<e.length?(i=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):xb(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!pb(n);)33===n&&(a?xb(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),sb.test(r)||xb(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),ab.test(i)&&xb(e,"tag suffix cannot contain flow indicator characters")}return i&&!cb.test(i)&&xb(e,"tag name cannot contain such characters: "+i),o?e.tag=i:ib.call(e.tagMap,r)?e.tag=e.tagMap[r]+i:"!"===r?e.tag="!"+i:"!!"===r?e.tag="tag:yaml.org,2002:"+i:xb(e,'undeclared tag handle "'+r+'"'),!0}function Mb(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&xb(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!pb(r)&&!mb(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&xb(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Tb(e,t,r,i,n){var o,a,s,c,l,d,u,p,m=1,_=!1,h=!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,i&&Cb(e,!0,-1)&&(_=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;Bb(e)||Mb(e);)Cb(e,!0,-1)?(_=!0,s=o,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):s=!1;if(s&&(s=_||n),1!==m&&4!==r||(u=1===r||2===r?t:t+1,p=e.position-e.lineStart,1===m?s&&(jb(e,p)||function(e,t,r){var i,n,o,a,s,c=e.tag,l=e.anchor,d={},u={},p=null,m=null,_=null,h=!1,f=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),s=e.input.charCodeAt(e.position);0!==s;){if(i=e.input.charCodeAt(e.position+1),o=e.line,a=e.position,63!==s&&58!==s||!pb(i)){if(!Tb(e,r,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);ub(s);)s=e.input.charCodeAt(++e.position);if(58===s)pb(s=e.input.charCodeAt(++e.position))||xb(e,"a whitespace character is expected after the key-value separator within a block mapping"),h&&(Ab(e,d,u,p,m,null),p=m=_=null),f=!0,h=!1,n=!1,p=e.tag,m=e.result;else{if(!f)return e.tag=c,e.anchor=l,!0;xb(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!f)return e.tag=c,e.anchor=l,!0;xb(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(h&&(Ab(e,d,u,p,m,null),p=m=_=null),f=!0,h=!0,n=!0):h?(h=!1,n=!0):xb(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=i;if((e.line===o||e.lineIndent>t)&&(Tb(e,t,4,!0,n)&&(h?m=e.result:_=e.result),h||(Ab(e,d,u,p,m,_,o,a),p=m=_=null),Cb(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)xb(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return h&&Ab(e,d,u,p,m,null),f&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=d),f}(e,p,u))||function(e,t){var r,i,n,o,a,s,c,l,d,u,p=!0,m=e.tag,_=e.anchor,h={};if(91===(u=e.input.charCodeAt(e.position)))n=93,s=!1,i=[];else{if(123!==u)return!1;n=125,s=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),u=e.input.charCodeAt(++e.position);0!==u;){if(Cb(e,!0,t),(u=e.input.charCodeAt(e.position))===n)return e.position++,e.tag=m,e.anchor=_,e.kind=s?"mapping":"sequence",e.result=i,!0;p||xb(e,"missed comma between flow collection entries"),d=null,o=a=!1,63===u&&pb(e.input.charCodeAt(e.position+1))&&(o=a=!0,e.position++,Cb(e,!0,t)),r=e.line,Tb(e,t,1,!1,!0),l=e.tag,c=e.result,Cb(e,!0,t),u=e.input.charCodeAt(e.position),!a&&e.line!==r||58!==u||(o=!0,u=e.input.charCodeAt(++e.position),Cb(e,!0,t),Tb(e,t,1,!1,!0),d=e.result),s?Ab(e,i,h,l,c,d):o?i.push(Ab(e,null,h,l,c,d)):i.push(c),Cb(e,!0,t),44===(u=e.input.charCodeAt(e.position))?(p=!0,u=e.input.charCodeAt(++e.position)):p=!1}xb(e,"unexpected end of the stream within a flow collection")}(e,u)?h=!0:(a&&function(e,t){var r,i,n,o,a,s=1,c=!1,l=!1,d=t,u=0,p=!1;if(124===(o=e.input.charCodeAt(e.position)))i=!1;else{if(62!==o)return!1;i=!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:xb(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(a=o)&&a<=57?a-48:-1)>=0))break;0===n?xb(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?xb(e,"repeat of an indentation width identifier"):(d=t+n-1,l=!0)}if(ub(o)){do{o=e.input.charCodeAt(++e.position)}while(ub(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!db(o)&&0!==o)}for(;0!==o;){for(Db(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!l||e.lineIndent<d)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>d&&(d=e.lineIndent),db(o))u++;else{if(e.lineIndent<d){3===s?e.result+=Vg.repeat("\n",c?1+u:u):1===s&&c&&(e.result+="\n");break}for(i?ub(o)?(p=!0,e.result+=Vg.repeat("\n",c?1+u:u)):p?(p=!1,e.result+=Vg.repeat("\n",u+1)):0===u?c&&(e.result+=" "):e.result+=Vg.repeat("\n",u):e.result+=Vg.repeat("\n",c?1+u:u),c=!0,l=!0,u=0,r=e.position;!db(o)&&0!==o;)o=e.input.charCodeAt(++e.position);Ob(e,r,e.position,!1)}}return!0}(e,u)||function(e,t){var r,i,n;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Ob(e,i,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,n=e.position}else db(r)?(Ob(e,i,n,!0),Fb(e,Cb(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Eb(e)?xb(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);xb(e,"unexpected end of the stream within a single quoted scalar")}(e,u)||function(e,t){var r,i,n,o,a,s,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return Ob(e,r,e.position,!0),e.position++,!0;if(92===s){if(Ob(e,r,e.position,!0),db(s=e.input.charCodeAt(++e.position)))Cb(e,!1,t);else if(s<256&&gb[s])e.result+=bb[s],e.position++;else if((a=120===(c=s)?2:117===c?4:85===c?8:0)>0){for(n=a,o=0;n>0;n--)(a=_b(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:xb(e,"expected hexadecimal character");e.result+=fb(o),e.position++}else xb(e,"unknown escape sequence");r=i=e.position}else db(s)?(Ob(e,r,i,!0),Fb(e,Cb(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Eb(e)?xb(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}xb(e,"unexpected end of the stream within a double quoted scalar")}(e,u)?h=!0:!function(e){var t,r,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!pb(i)&&!mb(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&xb(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ib.call(e.anchorMap,r)||xb(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Cb(e,!0,-1),!0}(e)?function(e,t,r){var i,n,o,a,s,c,l,d,u=e.kind,p=e.result;if(pb(d=e.input.charCodeAt(e.position))||mb(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if((63===d||45===d)&&(pb(i=e.input.charCodeAt(e.position+1))||r&&mb(i)))return!1;for(e.kind="scalar",e.result="",n=o=e.position,a=!1;0!==d;){if(58===d){if(pb(i=e.input.charCodeAt(e.position+1))||r&&mb(i))break}else if(35===d){if(pb(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Eb(e)||r&&mb(d))break;if(db(d)){if(s=e.line,c=e.lineStart,l=e.lineIndent,Cb(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(Ob(e,n,o,!1),Fb(e,e.line-s),n=o=e.position,a=!1),ub(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ob(e,n,o,!1),!!e.result||(e.kind=u,e.result=p,!1)}(e,u,1===r)&&(h=!0,null===e.tag&&(e.tag="?")):(h=!0,null===e.tag&&null===e.anchor||xb(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(h=s&&jb(e,p))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&xb(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((d=e.implicitTypes[c]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else ib.call(e.typeMap[e.kind||"fallback"],e.tag)?(d=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&d.kind!==e.kind&&xb(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):xb(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):xb(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||h}function Lb(e){var t,r,i,n,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(n=e.input.charCodeAt(e.position))&&(Cb(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(a=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!pb(n);)n=e.input.charCodeAt(++e.position);for(i=[],(r=e.input.slice(t,e.position)).length<1&&xb(e,"directive name must not be less than one character in length");0!==n;){for(;ub(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!db(n));break}if(db(n))break;for(t=e.position;0!==n&&!pb(n);)n=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==n&&Db(e),ib.call(wb,r)?wb[r](e,r,i):kb(e,'unknown document directive "'+r+'"')}Cb(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,Cb(e,!0,-1)):a&&xb(e,"directives end mark is expected"),Tb(e,e.lineIndent-1,4,!1,!0),Cb(e,!0,-1),e.checkLineBreaks&&ob.test(e.input.slice(o,e.position))&&kb(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Eb(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Cb(e,!0,-1)):e.position<e.length-1&&xb(e,"end of the stream or a document separator is expected")}function Pb(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 vb(e,t),i=e.indexOf("\0");for(-1!==i&&(r.position=i,xb(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;)Lb(r);return r.documents}function Ib(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var i=Pb(e,r);if("function"!=typeof t)return i;for(var n=0,o=i.length;n<o;n+=1)t(i[n])}function Rb(e,t){var r=Pb(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new Qg("expected a single document in the stream, but found more")}}Zf.loadAll=Ib,Zf.load=Rb,Zf.safeLoadAll=function(e,t,r){return"object"==typeof t&&null!==t&&void 0===r&&(r=t,t=null),Ib(e,t,Vg.extend({schema:tb},r))},Zf.safeLoad=function(e,t){return Rb(e,Vg.extend({schema:tb},t))};var zb={},Ub=Yf,$b=Qf,qb=Kg,Xb=Xg,Jb=Object.prototype.toString,Hb=Object.prototype.hasOwnProperty,Gb={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"},Wb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Zb(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else{if(!(e<=4294967295))throw new $b("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+Ub.repeat("0",i-t.length)+t}function Yb(e){this.schema=e.schema||qb,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ub.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,i,n,o,a,s,c;if(null===t)return{};for(r={},n=0,o=(i=Object.keys(t)).length;n<o;n+=1)a=i[n],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&Hb.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 Kb(e,t){for(var r,i=Ub.repeat(" ",t),n=0,o=-1,a="",s=e.length;n<s;)-1===(o=e.indexOf("\n",n))?(r=e.slice(n),n=s):(r=e.slice(n,o+1),n=o+1),r.length&&"\n"!==r&&(a+=i),a+=r;return a}function Vb(e,t){return"\n"+Ub.repeat(" ",e.indent*t)}function Qb(e){return 32===e||9===e}function ey(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 ty(e,t){return ey(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&function(e){return ey(e)&&!Qb(e)&&65279!==e&&13!==e&&10!==e}(t))}function ry(e){return/^\n* /.test(e)}function iy(e,t,r,i,n){var o,a,s,c,l=!1,d=!1,u=-1!==i,p=-1,m=ey(c=e.charCodeAt(0))&&65279!==c&&!Qb(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&&!Qb(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(!ey(a=e.charCodeAt(o)))return 5;s=o>0?e.charCodeAt(o-1):null,m=m&&ty(a,s)}else{for(o=0;o<e.length;o++){if(10===(a=e.charCodeAt(o)))l=!0,u&&(d=d||o-p-1>i&&" "!==e[p+1],p=o);else if(!ey(a))return 5;s=o>0?e.charCodeAt(o-1):null,m=m&&ty(a,s)}d=d||u&&o-p-1>i&&" "!==e[p+1]}return l||d?r>9&&ry(e)?5:d?4:3:m&&!n(e)?1:2}function ny(e,t,r,i){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==Wb.indexOf(t))return"'"+t+"'";var n=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n),a=i||e.flowLevel>-1&&r>=e.flowLevel;switch(iy(t,a,e.indent,o,(function(t){return function(e,t){var r,i;for(r=0,i=e.implicitTypes.length;r<i;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"|"+oy(t,e.indent)+ay(Kb(t,n));case 4:return">"+oy(t,e.indent)+ay(Kb(function(e,t){var r,i,n=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,n.lastIndex=s,sy(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;i=n.exec(e);){var c=i[1],l=i[2];r=" "===l[0],o+=c+(a||r||""===l?"":"\n")+sy(l,t),a=r}return o}(t,o),n));case 5:return'"'+function(e){for(var t,r,i,n="",o=0;o<e.length;o++)(t=e.charCodeAt(o))>=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(n+=Zb(1024*(t-55296)+r-56320+65536),o++):n+=!(i=Gb[t])&&ey(t)?e[o]:i||Zb(t);return n}(t)+'"';default:throw new $b("impossible error: invalid scalar style")}}()}function oy(e,t){var r=ry(e)?String(t):"",i="\n"===e[e.length-1];return r+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function ay(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function sy(e,t){if(""===e||" "===e[0])return e;for(var r,i,n=/ [^ ]/g,o=0,a=0,s=0,c="";r=n.exec(e);)(s=r.index)-o>t&&(i=a>o?a:s,c+="\n"+e.slice(o,i),o=i+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 cy(e,t,r){var i,n,o,a,s,c;for(o=0,a=(n=r?e.explicitTypes:e.implicitTypes).length;o<a;o+=1)if(((s=n[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]"===Jb.call(s.represent))i=s.represent(t,c);else{if(!Hb.call(s.represent,c))throw new $b("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');i=s.represent[c](t,c)}e.dump=i}return!0}return!1}function ly(e,t,r,i,n,o){e.tag=null,e.dump=r,cy(e,r,!1)||cy(e,r,!0);var a=Jb.call(e.dump);i&&(i=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)&&(n=!1),c&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(l&&c&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===a)i&&0!==Object.keys(e.dump).length?(!function(e,t,r,i){var n,o,a,s,c,l,d="",u=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 $b("sortKeys must be a boolean or a function");for(n=0,o=p.length;n<o;n+=1)l="",i&&0===n||(l+=Vb(e,t)),s=r[a=p[n]],ly(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+=Vb(e,t)),ly(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",d+=l+=e.dump));e.tag=u,e.dump=d||"{}"}(e,t,e.dump,n),c&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,r){var i,n,o,a,s,c="",l=e.tag,d=Object.keys(r);for(i=0,n=d.length;i<n;i+=1)s="",0!==i&&(s+=", "),e.condenseFlow&&(s+='"'),a=r[o=d[i]],ly(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ly(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 d=e.noArrayIndent&&t>0?t-1:t;i&&0!==e.dump.length?(!function(e,t,r,i){var n,o,a="",s=e.tag;for(n=0,o=r.length;n<o;n+=1)ly(e,t+1,r[n],!0,!0)&&(i&&0===n||(a+=Vb(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}(e,d,e.dump,n),c&&(e.dump="&ref_"+s+e.dump)):(!function(e,t,r){var i,n,o="",a=e.tag;for(i=0,n=r.length;i<n;i+=1)ly(e,t,r[i],!1,!1)&&(0!==i&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,d,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump))}else{if("[object String]"!==a){if(e.skipInvalid)return!1;throw new $b("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&ny(e,e.dump,t,o)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function dy(e,t){var r,i,n=[],o=[];for(uy(e,n,o),r=0,i=o.length;r<i;r+=1)t.duplicates.push(n[o[r]]);t.usedDuplicates=new Array(i)}function uy(e,t,r){var i,n,o;if(null!==e&&"object"==typeof e)if(-1!==(n=t.indexOf(e)))-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,o=e.length;n<o;n+=1)uy(e[n],t,r);else for(n=0,o=(i=Object.keys(e)).length;n<o;n+=1)uy(e[i[n]],t,r)}function py(e,t){var r=new Yb(t=t||{});return r.noRefs||dy(e,r),ly(r,0,e,!0,!0)?r.dump+"\n":""}zb.dump=py,zb.safeDump=function(e,t){return py(e,Ub.extend({schema:Xb},t))};var my=Zf,_y=zb;function hy(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Wf.Type=ag,Wf.Schema=pg,Wf.FAILSAFE_SCHEMA=mg,Wf.JSON_SCHEMA=wg,Wf.CORE_SCHEMA=Og,Wf.DEFAULT_SAFE_SCHEMA=Xg,Wf.DEFAULT_FULL_SCHEMA=Kg,Wf.load=my.load,Wf.loadAll=my.loadAll,Wf.safeLoad=my.safeLoad,Wf.safeLoadAll=my.safeLoadAll,Wf.dump=_y.dump,Wf.safeDump=_y.safeDump,Wf.YAMLException=Qf,Wf.MINIMAL_SCHEMA=mg,Wf.SAFE_SCHEMA=Xg,Wf.DEFAULT_SCHEMA=Kg,Wf.scan=hy("scan"),Wf.parse=hy("parse"),Wf.compose=hy("compose"),Wf.addConstructor=hy("addConstructor");var fy=Wf;function gy(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function by(e){this.props=e}function yy(e,t){function r(e){var r=this.props.ref,i=r==e.ref;return!i&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!i:gy(this.props,e)}function i(t){return this.shouldComponentUpdate=r,N(e,t)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(by.prototype=new w).isPureReactComponent=!0,by.prototype.shouldComponentUpdate=function(e,t){return gy(this.props,e)||gy(this.state,t)};var vy=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vy&&vy(e)};var Ny=u.__e;u.__e=function(e,t,r){if(e.then)for(var i,n=t;n=n.__;)if((i=n.__c)&&i.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t);Ny(e,t,r)};var xy=u.unmount;function ky(){this.__u=0,this.t=null,this.__b=null}function wy(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Oy(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),xy&&xy(e)},(ky.prototype=new w).__c=function(e,t){var r=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(r);var n=wy(i.__v),o=!1,a=function(){o||(o=!0,r.__R=null,n?n(s):s())};r.__R=a;var s=function(){if(!--i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,r,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,r,i)})),t.__c&&t.__c.__P===r&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},c=!0===t.__h;i.__u++||c||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(a,a)},ky.prototype.componentWillUnmount=function(){this.t=[]},ky.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,r,i){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===i&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,r,i)}))),t}(this.__b,r,i.__O=i.__P)}this.__b=null}var n=t.__e&&N(k,null,e.fallback);return n&&(n.__h=null),[N(k,null,t.__e?null:e.children),n]};var Sy=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]}};(Oy.prototype=new w).__e=function(e){var t=this,r=wy(t.__v),i=t.o.get(e);return i[0]++,function(n){var o=function(){t.props.revealOrder?(i.push(n),Sy(t,e,i)):n()};r?r(o):o()}},Oy.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(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},Oy.prototype.componentDidUpdate=Oy.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){Sy(e,r,t)}))};var Ay="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Dy=/^(?: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]/,Cy=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 Ey=u.event;function Fy(){}function jy(){return this.cancelBubble}function By(){return this.defaultPrevented}u.event=function(e){return Ey&&(e=Ey(e)),e.persist=Fy,e.isPropagationStopped=jy,e.isDefaultPrevented=By,e.nativeEvent=e};var My={configurable:!0,get:function(){return this.class}},Ty=u.vnode;u.vnode=function(e){var t=e.type,r=e.props,i=r;if("string"==typeof t){for(var n in i={},r){var o=r[n];"value"===n&&"defaultValue"in r&&null==o||("defaultValue"===n&&"value"in r&&null==r.value?n="value":"download"===n&&!0===o?o="":/ondoubleclick/i.test(n)?n="ondblclick":/^onchange(textarea|input)/i.test(n+t)&&!Cy(r.type)?n="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(n)?n=n.toLowerCase():Dy.test(n)?n=n.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[n]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=F(r.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=F(r.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i}t&&r.class!=r.className&&(My.enumerable="className"in r,null!=r.className&&(i.class=r.className),Object.defineProperty(i,"className",My)),e.$$typeof=Ay,Ty&&Ty(e)};var Ly=u.__r;u.__r=function(e){Ly&&Ly(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var Py={};
/*!
* howler.js v2.2.3
* howlerjs.com
*
* (c) 2013-2020, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
*/function Iy(){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}}!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||d(),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 i=0;i<t._howls.length;i++)if(!t._howls[i]._webAudio)for(var n=t._howls[i]._getSoundIds(),o=0;o<n.length;o++){var a=t._howls[i]._soundById(n[o]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||r;t.ctx||d(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,r.ctx.currentTime);for(var i=0;i<t._howls.length;i++)if(!t._howls[i]._webAudio)for(var n=t._howls[i]._getSoundIds(),o=0;o<n.length;o++){var a=t._howls[i]._soundById(n[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,d()),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(d){return e}if(!t||"function"!=typeof t.canPlayType)return e;var i=t.canPlayType("audio/mpeg;").replace(/^no$/,""),n=e._navigator?e._navigator.userAgent:"",o=n.match(/OPR\/([0-6].)/g),a=o&&parseInt(o[0].split("/")[1],10)<33,s=-1!==n.indexOf("Safari")&&-1===n.indexOf("Chrome"),c=n.match(/Version\/(.*?) /),l=s&&c&&parseInt(c[1],10)<15;return e._codecs={mp3:!(a||!i&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!i,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 i=new Audio;i._unlocked=!0,e._releaseHtml5Audio(i)}catch(l){e.noAudio=!0;break}for(var n=0;n<e._howls.length;n++)if(!e._howls[n]._webAudio)for(var o=e._howls[n]._getSoundIds(),a=0;a<o.length;a++){var s=e._howls[n]._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 i=0;i<e._howls[t]._sounds.length;i++)if(!e._howls[t]._sounds[i]._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,i=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.")};i.prototype={init:function(e){var t=this;return r.ctx||d(),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 i=0;i<e._src.length;i++){var o,s;if(e._format&&e._format[i])o=e._format[i];else{if("string"!=typeof(s=e._src[i])){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[i];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 n(e),e._webAudio&&a(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var i=this,n=null;if("number"==typeof e)n=e,e=null;else{if("string"==typeof e&&"loaded"===i._state&&!i._sprite[e])return null;if(void 0===e&&(e="__default",!i._playLock)){for(var o=0,a=0;a<i._sounds.length;a++)i._sounds[a]._paused&&!i._sounds[a]._ended&&(o++,n=i._sounds[a]._id);1===o?e=null:n=null}}var s=n?i._soundById(n):i._inactiveSound();if(!s)return null;if(n&&!e&&(e=s._sprite||"__default"),"loaded"!==i._state){s._sprite=e,s._ended=!1;var c=s._id;return i._queue.push({event:"play",action:function(){i.play(c)}}),c}if(n&&!s._paused)return t||i._loadQueue("play"),s._id;i._webAudio&&r._autoResume();var l=Math.max(0,s._seek>0?s._seek:i._sprite[e][0]/1e3),d=Math.max(0,(i._sprite[e][0]+i._sprite[e][1])/1e3-l),u=1e3*d/Math.abs(s._rate),p=i._sprite[e][0]/1e3,m=(i._sprite[e][0]+i._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var _=function(){s._paused=!1,s._seek=l,s._start=p,s._stop=m,s._loop=!(!s._loop&&!i._sprite[e][2])};if(!(l>=m)){var h=s._node;if(i._webAudio){var f=function(){i._playLock=!1,_(),i._refreshBuffer(s);var e=s._muted||i._muted?0:s._volume;h.gain.setValueAtTime(e,r.ctx.currentTime),s._playStart=r.ctx.currentTime,void 0===h.bufferSource.start?s._loop?h.bufferSource.noteGrainOn(0,l,86400):h.bufferSource.noteGrainOn(0,l,d):s._loop?h.bufferSource.start(0,l,86400):h.bufferSource.start(0,l,d),u!==1/0&&(i._endTimers[s._id]=setTimeout(i._ended.bind(i,s),u)),t||setTimeout((function(){i._emit("play",s._id),i._loadQueue()}),0)};"running"===r.state&&"interrupted"!==r.ctx.state?f():(i._playLock=!0,i.once("resume",f),i._clearTimer(s._id))}else{var g=function(){h.currentTime=l,h.muted=s._muted||i._muted||r._muted||h.muted,h.volume=s._volume*r.volume(),h.playbackRate=s._rate;try{var n=h.play();if(n&&"undefined"!=typeof Promise&&(n instanceof Promise||"function"==typeof n.then)?(i._playLock=!0,_(),n.then((function(){i._playLock=!1,h._unlocked=!0,t?i._loadQueue():i._emit("play",s._id)})).catch((function(){i._playLock=!1,i._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||(i._playLock=!1,_(),i._emit("play",s._id)),h.playbackRate=s._rate,h.paused)return void i._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?i._endTimers[s._id]=setTimeout(i._ended.bind(i,s),u):(i._endTimers[s._id]=function(){i._ended(s),h.removeEventListener("ended",i._endTimers[s._id],!1)},h.addEventListener("ended",i._endTimers[s._id],!1))}catch(o){i._emit("playerror",s._id,o)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===h.src&&(h.src=i._src,h.load());var b=window&&window.ejecta||!h.readyState&&r._navigator.isCocoonJS;if(h.readyState>=3||b)g();else{i._playLock=!0,i._state="loading";var y=function(){i._state="loaded",g(),h.removeEventListener(r._canPlayEvent,y,!1)};h.addEventListener(r._canPlayEvent,y,!1),i._clearTimer(s._id)}}return s._id}i._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),i=0;i<r.length;i++){t._clearTimer(r[i]);var n=t._soundById(r[i]);if(n&&!n._paused&&(n._seek=t.seek(r[i]),n._rateSeek=0,n._paused=!0,t._stopFade(r[i]),n._node))if(t._webAudio){if(!n._node.bufferSource)continue;void 0===n._node.bufferSource.stop?n._node.bufferSource.noteOff(0):n._node.bufferSource.stop(0),t._cleanBuffer(n._node)}else isNaN(n._node.duration)&&n._node.duration!==1/0||n._node.pause();arguments[1]||t._emit("pause",n?n._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 i=r._getSoundIds(e),n=0;n<i.length;n++){r._clearTimer(i[n]);var o=r._soundById(i[n]);o&&(o._seek=o._start||0,o._rateSeek=0,o._paused=!0,o._ended=!0,r._stopFade(i[n]),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 i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"mute",action:function(){i.mute(e,t)}}),i;if(void 0===t){if("boolean"!=typeof e)return i._muted;i._muted=e}for(var n=i._getSoundIds(t),o=0;o<n.length;o++){var a=i._soundById(n[o]);a&&(a._muted=e,a._interval&&i._stopFade(a._id),i._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,r.ctx.currentTime):a._node&&(a._node.muted=!!r._muted||e),i._emit("mute",a._id))}return i},volume:function(){var e,t,i,n=this,o=arguments;if(0===o.length)return n._volume;if(1===o.length||2===o.length&&void 0===o[1]){var a=n._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(i=t?n._soundById(t):n._sounds[0])?i._volume:0;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"volume",action:function(){n.volume.apply(n,o)}}),n;void 0===t&&(n._volume=e),t=n._getSoundIds(t);for(var c=0;c<t.length;c++)(i=n._soundById(t[c]))&&(i._volume=e,o[2]||n._stopFade(t[c]),n._webAudio&&i._node&&!i._muted?i._node.gain.setValueAtTime(e,r.ctx.currentTime):i._node&&!i._muted&&(i._node.volume=e*r.volume()),n._emit("volume",i._id));return n},fade:function(e,t,i,n){var o=this;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"fade",action:function(){o.fade(e,t,i,n)}}),o;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),i=parseFloat(i),o.volume(e,n);for(var a=o._getSoundIds(n),s=0;s<a.length;s++){var c=o._soundById(a[s]);if(c){if(n||o._stopFade(a[s]),o._webAudio&&!c._muted){var l=r.ctx.currentTime,d=l+i/1e3;c._volume=e,c._node.gain.setValueAtTime(e,l),c._node.gain.linearRampToValueAtTime(t,d)}o._startFadeInterval(c,e,t,i,a[s],void 0===n)}}return o},_startFadeInterval:function(e,t,r,i,n,o){var a=this,s=t,c=r-t,l=Math.abs(c/.01),d=Math.max(4,l>0?i/l:i),u=Date.now();e._fadeTo=r,e._interval=setInterval((function(){var n=(Date.now()-u)/i;u=Date.now(),s+=c*n,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))}),d)},_stopFade:function(e){var t=this,i=t._soundById(e);return i&&i._interval&&(t._webAudio&&i._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(i._interval),i._interval=null,t.volume(i._fadeTo,e),i._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,r,i=this,n=arguments;if(0===n.length)return i._loop;if(1===n.length){if("boolean"!=typeof n[0])return!!(r=i._soundById(parseInt(n[0],10)))&&r._loop;e=n[0],i._loop=e}else 2===n.length&&(e=n[0],t=parseInt(n[1],10));for(var o=i._getSoundIds(t),a=0;a<o.length;a++)(r=i._soundById(o[a]))&&(r._loop=e,i._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,i.playing(o[a])&&(i.pause(o[a],!0),i.play(o[a],!0)))));return i},rate:function(){var e,t,i,n=this,o=arguments;if(0===o.length)t=n._sounds[0]._id;else if(1===o.length){var a=n._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(i=n._soundById(t))?i._rate:n._rate;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"rate",action:function(){n.rate.apply(n,o)}}),n;void 0===t&&(n._rate=e),t=n._getSoundIds(t);for(var c=0;c<t.length;c++)if(i=n._soundById(t[c])){n.playing(t[c])&&(i._rateSeek=n.seek(t[c]),i._playStart=n._webAudio?r.ctx.currentTime:i._playStart),i._rate=e,n._webAudio&&i._node&&i._node.bufferSource?i._node.bufferSource.playbackRate.setValueAtTime(e,r.ctx.currentTime):i._node&&(i._node.playbackRate=e);var l=n.seek(t[c]),d=(n._sprite[i._sprite][0]+n._sprite[i._sprite][1])/1e3-l,u=1e3*d/Math.abs(i._rate);!n._endTimers[t[c]]&&i._paused||(n._clearTimer(t[c]),n._endTimers[t[c]]=setTimeout(n._ended.bind(n,i),u)),n._emit("rate",i._id)}return n},seek:function(){var e,t,i=this,n=arguments;if(0===n.length)i._sounds.length&&(t=i._sounds[0]._id);else if(1===n.length){var o=i._getSoundIds(),a=o.indexOf(n[0]);a>=0?t=parseInt(n[0],10):i._sounds.length&&(t=i._sounds[0]._id,e=parseFloat(n[0]))}else 2===n.length&&(e=parseFloat(n[0]),t=parseInt(n[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==i._state||i._playLock))return i._queue.push({event:"seek",action:function(){i.seek.apply(i,n)}}),i;var s=i._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(i._webAudio){var c=i.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 d=i.playing(t);d&&i.pause(t,!0),s._seek=e,s._ended=!1,i._clearTimer(t),i._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var u=function(){d&&i.play(t,!0),i._emit("seek",t)};if(d&&!i._webAudio){var p=function(){i._playLock?setTimeout(p,0):u()};setTimeout(p,0)}else u()}return i},playing:function(e){var t=this;if("number"==typeof e){var r=t._soundById(e);return!!r&&!r._paused}for(var i=0;i<t._sounds.length;i++)if(!t._sounds[i]._paused)return!0;return!1},duration:function(e){var t=this,r=t._duration,i=t._soundById(e);return i&&(r=t._sprite[i._sprite][1]/1e3),r},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,i=0;i<t.length;i++)t[i]._paused||e.stop(t[i]._id),e._webAudio||(e._clearSound(t[i]._node),t[i]._node.removeEventListener("error",t[i]._errorFn,!1),t[i]._node.removeEventListener(r._canPlayEvent,t[i]._loadFn,!1),t[i]._node.removeEventListener("ended",t[i]._endFn,!1),r._releaseHtml5Audio(t[i]._node)),delete t[i]._node,e._clearTimer(t[i]._id);var n=r._howls.indexOf(e);n>=0&&r._howls.splice(n,1);var a=!0;for(i=0;i<r._howls.length;i++)if(r._howls[i]._src===e._src||e._src.indexOf(r._howls[i]._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,i){var n=this["_on"+e];return"function"==typeof t&&n.push(i?{id:r,fn:t,once:i}:{id:r,fn:t}),this},off:function(e,t,r){var i=this,n=i["_on"+e],o=0;if("number"==typeof t&&(r=t,t=null),t||r)for(o=0;o<n.length;o++){var a=r===n[o].id;if(t===n[o].fn&&a||!t&&a){n.splice(o,1);break}}else if(e)i["_on"+e]=[];else{var s=Object.keys(i);for(o=0;o<s.length;o++)0===s[o].indexOf("_on")&&Array.isArray(i[s[o]])&&(i[s[o]]=[])}return i},once:function(e,t,r){return this.on(e,t,r,1),this},_emit:function(e,t,r){for(var i=this,n=i["_on"+e],o=n.length-1;o>=0;o--)n[o].id&&n[o].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,r)}.bind(i,n[o].fn),0),n[o].once&&i.off(e,n[o].fn,n[o].id));return i._loadQueue(e),i},_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,i=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 n=!(!e._loop&&!t._sprite[i][2]);if(t._emit("end",e._id),!t._webAudio&&n&&t.stop(e._id,!0).play(e._id),t._webAudio&&n){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&&!n&&(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||n||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 n(e)},_drain:function(){var e=this,t=e._pool,r=0,i=0;if(!(e._sounds.length<t)){for(i=0;i<e._sounds.length;i++)e._sounds[i]._ended&&r++;for(i=e._sounds.length-1;i>=0;i--){if(r<=t)return;e._sounds[i]._ended&&(e._webAudio&&e._sounds[i]._node&&e._sounds[i]._node.disconnect(0),e._sounds.splice(i,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(i){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(e){this._parent=e,this.init()};n.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,i=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(i,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=i*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]),i=new Uint8Array(r.length),n=0;n<r.length;++n)i[n]=r.charCodeAt(n);c(i.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 i=function(){t._emit("loaderror",null,"Decoding audio data failed.")},n=function(e){e&&t._sounds.length>0?(o[t._src]=e,l(t,e)):i()};"undefined"!=typeof Promise&&1===r.ctx.decodeAudioData.length?r.ctx.decodeAudioData(e).then(n).catch(i):r.ctx.decodeAudioData(e,n,i)},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())},d=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+)?/),i=t?parseInt(t[1],10):null;if(e&&i&&i<9){var n=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());r._navigator&&!n&&(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=i,void 0!==Te?(Te.HowlerGlobal=t,Te.Howler=r,Te.Howl=i,Te.Sound=n):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=r,window.Howl=i,window.Sound=n)}(),
/*!
* 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 i=this;return i.ctx&&i.ctx.listener?(t="number"!=typeof t?i._pos[1]:t,r="number"!=typeof r?i._pos[2]:r,"number"!=typeof e?i._pos:(i._pos=[e,t,r],void 0!==i.ctx.listener.positionX?(i.ctx.listener.positionX.setTargetAtTime(i._pos[0],Howler.ctx.currentTime,.1),i.ctx.listener.positionY.setTargetAtTime(i._pos[1],Howler.ctx.currentTime,.1),i.ctx.listener.positionZ.setTargetAtTime(i._pos[2],Howler.ctx.currentTime,.1)):i.ctx.listener.setPosition(i._pos[0],i._pos[1],i._pos[2]),i)):i},HowlerGlobal.prototype.orientation=function(e,t,r,i,n,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,i="number"!=typeof i?s[3]:i,n="number"!=typeof n?s[4]:n,o="number"!=typeof o?s[5]:o,"number"!=typeof e?s:(a._orientation=[e,t,r,i,n,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(i,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,r,i,n,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 i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"stereo",action:function(){i.stereo(e,r)}}),i;var n=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===r){if("number"!=typeof e)return i._stereo;i._stereo=e,i._pos=[e,0,0]}for(var o=i._getSoundIds(r),a=0;a<o.length;a++){var s=i._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,n),"spatial"===n?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)),i._emit("stereo",s._id)}}return i},Howl.prototype.pos=function(e,r,i,n){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"pos",action:function(){o.pos(e,r,i,n)}}),o;if(r="number"!=typeof r?0:r,i="number"!=typeof i?-.5:i,void 0===n){if("number"!=typeof e)return o._pos;o._pos=[e,r,i]}for(var a=o._getSoundIds(n),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,i],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(i,Howler.ctx.currentTime)):c._panner.setPosition(e,r,i)),o._emit("pos",c._id)}}return o},Howl.prototype.orientation=function(e,r,i,n){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"orientation",action:function(){o.orientation(e,r,i,n)}}),o;if(r="number"!=typeof r?o._orientation[1]:r,i="number"!=typeof i?o._orientation[2]:i,void 0===n){if("number"!=typeof e)return o._orientation;o._orientation=[e,r,i]}for(var a=o._getSoundIds(n),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,i],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(i,Howler.ctx.currentTime)):c._panner.setOrientation(e,r,i)),o._emit("orientation",c._id)}}return o},Howl.prototype.pannerAttr=function(){var e,r,i,n=this,o=arguments;if(!n._webAudio)return n;if(0===o.length)return n._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return(i=n._soundById(parseInt(o[0],10)))?i._pannerAttr:n._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}),n._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:n._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:n._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:n._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:n._panningModel})}else 2===o.length&&(e=o[0],r=parseInt(o[1],10));for(var a=n._getSoundIds(r),s=0;s<a.length;s++)if(i=n._soundById(a[s])){var c=i._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=i._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):(i._pos||(i._pos=n._pos||[0,0,-.5]),t(i,"spatial"))}return n},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)}}()}(Py);let Ry={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};const zy=/[&<>"']/,Uy=/[&<>"']/g,$y=/[<>"']|&(?!#?\w+;)/,qy=/[<>"']|&(?!#?\w+;)/g,Xy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jy=e=>Xy[e];function Hy(e,t){if(t){if(zy.test(e))return e.replace(Uy,Jy)}else if($y.test(e))return e.replace(qy,Jy);return e}const Gy=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Wy(e){return e.replace(Gy,((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 Zy=/(^|[^\[])\^/g;function Yy(e,t){e=e.source||e,t=t||"";const r={replace:(t,i)=>(i=(i=i.source||i).replace(Zy,"$1"),e=e.replace(t,i),r),getRegex:()=>new RegExp(e,t)};return r}const Ky=/[^\w:]/g,Vy=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Qy(e,t,r){if(e){let e;try{e=decodeURIComponent(Wy(r)).replace(Ky,"").toLowerCase()}catch(i){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Vy.test(r)&&(r=function(e,t){ev[" "+e]||(tv.test(e)?ev[" "+e]=e+"/":ev[" "+e]=sv(e,"/",!0));const r=-1===(e=ev[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(rv,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(iv,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(i){return null}return r}const ev={},tv=/^[^:]+:\/*[^/]*$/,rv=/^([^:]+:)[\s\S]*$/,iv=/^([^:]+:\/*[^/]*)[\s\S]*$/;const nv={exec:function(){}};function ov(e){let t,r,i=1;for(;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function av(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let i=!1,n=t;for(;--n>=0&&"\\"===r[n];)i=!i;return i?"|":" |"})).split(/ \|/);let i=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(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function sv(e,t,r){const i=e.length;if(0===i)return"";let n=0;for(;n<i;){const o=e.charAt(i-n-1);if(o!==t||r){if(o===t||!r)break;n++}else n++}return e.substr(0,i-n)}function cv(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")}function lv(e,t){if(t<1)return"";let r="";for(;t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function dv(e,t,r,i){const n=t.href,o=t.title?Hy(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;const e={type:"link",raw:r,href:n,title:o,text:a,tokens:i.inlineTokens(a,[])};return i.state.inLink=!1,e}return{type:"image",raw:r,href:n,title:o,text:Hy(a)}}class uv{constructor(e){this.options=e||Ry}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}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:sv(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 i=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=i.length?e.slice(i.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=sv(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,i,n,o,a,s,c,l,d,u,p,m,_=t[1].trim();const h=_.length>1,f={type:"list",raw:"",ordered:h,start:h?+_.slice(0,-1):"",loose:!1,items:[]};_=h?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=h?_:"[*+-]");const g=new RegExp(`^( {0,3}${_})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(m=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),l=t[2].split("\n",1)[0],d=e.split("\n",1)[0],this.options.pedantic?(o=2,p=l.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,p=l.slice(o),o+=t[1].length),s=!1,!l&&/^ *$/.test(d)&&(r+=d+"\n",e=e.substring(d.length+1),m=!0),!m){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(u=e.split("\n",1)[0],l=u,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(l));){if(l.search(/[^ ]/)>=o||!l.trim())p+="\n"+l.slice(o);else{if(s)break;p+="\n"+l}s||l.trim()||(s=!0),r+=u+"\n",e=e.substring(u.length+1)}}f.loose||(c?f.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(p),i&&(n="[ ] "!==i[0],p=p.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:r,task:!!i,checked:n,loose:!1,text:p}),f.raw+=r}f.items[f.items.length-1].raw=r.trimRight(),f.items[f.items.length-1].text=p.trimRight(),f.raw=f.raw.trimRight();const b=f.items.length;for(a=0;a<b;a++){this.lexer.state.top=!1,f.items[a].tokens=this.lexer.blockTokens(f.items[a].text,[]);const e=f.items[a].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let r=0;for(const i of t)if("\n"===i&&(r+=1),r>1)return!0;return!1}));!f.loose&&e.length&&t&&(f.loose=!0,f.items[a].loose=!0)}return f}}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]):Hy(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:av(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,i,n,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]=av(e.rows[r],e.header.length).map((e=>({text:e})));for(a=e.header.length,i=0;i<a;i++)e.header[i].tokens=[],this.lexer.inlineTokens(e.header[i].text,e.header[i].tokens);for(a=e.rows.length,i=0;i<a;i++)for(o=e.rows[i],n=0;n<o.length;n++)o[n].tokens=[],this.lexer.inlineTokens(o[n].text,o[n].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:Hy(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]):Hy(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=sv(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let i=0,n=0;for(;n<r;n++)if("\\"===e[n])n++;else if(e[n]===t[0])i++;else if(e[n]===t[1]&&(i--,i<0))return n;return-1}(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],i="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],i=e[3])}else i=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)),dv(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:i?i.replace(this.rules.inline._escapes,"$1"):i},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 dv(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i)return;if(i[3]&&r.match(/[\p{L}\p{N}]/u))return;const n=i[1]||i[2]||"";if(!n||n&&(""===r||this.rules.inline.punctuation.exec(r))){const r=i[0].length-1;let n,o,a=r,s=0;const c="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+r);null!=(i=c.exec(t));){if(n=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!n)continue;if(o=n.length,i[3]||i[4]){a+=o;continue}if((i[5]||i[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+i.index+o);return{type:"em",raw:e.slice(0,r+i.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,r+i.index+o-1);return{type:"strong",raw:e.slice(0,r+i.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),i=/^ /.test(e)&&/ $/.test(e);return r&&i&&(e=e.substring(1,e.length-1)),e=Hy(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,i;return"@"===r[2]?(e=Hy(this.options.mangle?t(r[1]):r[1]),i="mailto:"+e):(e=Hy(r[1]),i=e),{type:"link",raw:r[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,i;if("@"===r[2])e=Hy(this.options.mangle?t(r[0]):r[0]),i="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=Hy(r[0]),i="www."===r[1]?"http://"+e:e}return{type:"link",raw:r[0],text:e,href:i,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]):Hy(r[0]):r[0]:Hy(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const pv={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:nv,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};pv.def=Yy(pv.def).replace("label",pv._label).replace("title",pv._title).getRegex(),pv.bullet=/(?:[*+-]|\d{1,9}[.)])/,pv.listItemStart=Yy(/^( *)(bull) */).replace("bull",pv.bullet).getRegex(),pv.list=Yy(pv.list).replace(/bull/g,pv.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+pv.def.source+")").getRegex(),pv._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",pv._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,pv.html=Yy(pv.html,"i").replace("comment",pv._comment).replace("tag",pv._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pv.paragraph=Yy(pv._paragraph).replace("hr",pv.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").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",pv._tag).getRegex(),pv.blockquote=Yy(pv.blockquote).replace("paragraph",pv.paragraph).getRegex(),pv.normal=ov({},pv),pv.gfm=ov({},pv.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),pv.gfm.table=Yy(pv.gfm.table).replace("hr",pv.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",pv._tag).getRegex(),pv.gfm.paragraph=Yy(pv._paragraph).replace("hr",pv.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",pv.gfm.table).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",pv._tag).getRegex(),pv.pedantic=ov({},pv.normal,{html:Yy("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",pv._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:nv,paragraph:Yy(pv.normal._paragraph).replace("hr",pv.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",pv.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const mv={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nv,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)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,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:nv,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function _v(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 hv(e){let t,r,i="";const n=e.length;for(t=0;t<n;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),i+="&#"+r+";";return i}mv._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",mv.punctuation=Yy(mv.punctuation).replace(/punctuation/g,mv._punctuation).getRegex(),mv.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,mv.escapedEmSt=/\\\*|\\_/g,mv._comment=Yy(pv._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),mv.emStrong.lDelim=Yy(mv.emStrong.lDelim).replace(/punct/g,mv._punctuation).getRegex(),mv.emStrong.rDelimAst=Yy(mv.emStrong.rDelimAst,"g").replace(/punct/g,mv._punctuation).getRegex(),mv.emStrong.rDelimUnd=Yy(mv.emStrong.rDelimUnd,"g").replace(/punct/g,mv._punctuation).getRegex(),mv._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,mv._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,mv._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])?)+(?![-_])/,mv.autolink=Yy(mv.autolink).replace("scheme",mv._scheme).replace("email",mv._email).getRegex(),mv._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,mv.tag=Yy(mv.tag).replace("comment",mv._comment).replace("attribute",mv._attribute).getRegex(),mv._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,mv._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,mv._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,mv.link=Yy(mv.link).replace("label",mv._label).replace("href",mv._href).replace("title",mv._title).getRegex(),mv.reflink=Yy(mv.reflink).replace("label",mv._label).replace("ref",pv._label).getRegex(),mv.nolink=Yy(mv.nolink).replace("ref",pv._label).getRegex(),mv.reflinkSearch=Yy(mv.reflinkSearch,"g").replace("reflink",mv.reflink).replace("nolink",mv.nolink).getRegex(),mv.normal=ov({},mv),mv.pedantic=ov({},mv.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:Yy(/^!?\[(label)\]\((.*?)\)/).replace("label",mv._label).getRegex(),reflink:Yy(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mv._label).getRegex()}),mv.gfm=ov({},mv.normal,{escape:Yy(mv.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),mv.gfm.url=Yy(mv.gfm.url,"i").replace("email",mv.gfm._extended_email).getRegex(),mv.breaks=ov({},mv.gfm,{br:Yy(mv.br).replace("{2,}","*").getRegex(),text:Yy(mv.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class fv{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ry,this.options.tokenizer=this.options.tokenizer||new uv,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:pv.normal,inline:mv.normal};this.options.pedantic?(t.block=pv.pedantic,t.inline=mv.pedantic):this.options.gfm&&(t.block=pv.gfm,this.options.breaks?t.inline=mv.breaks:t.inline=mv.gfm),this.tokenizer.rules=t}static get rules(){return{block:pv,inline:mv}}static lex(e,t){return new fv(t).lex(e)}static lexInline(e,t){return new fv(t).inlineTokens(e)}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,i,n,o;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(r=i.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),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(r):(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.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),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(i.raw+="\n"+r.raw,i.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.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(n=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let i;this.options.extensions.startBlock.forEach((function(e){i=e.call({lexer:this},r),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(n)))i=t[t.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),o=n.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.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,i,n,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)+"["+lv("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)+"["+lv("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((i=>!!(r=i.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),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.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),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.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,hv))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,hv))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let i;this.options.extensions.startInline.forEach((function(e){i=e.call({lexer:this},r),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(n,_v))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),a=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=r.raw,i.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}}class gv{constructor(e){this.options=e||Ry}code(e,t,r){const i=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,i);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+Hy(i,!0)+'">'+(r?e:Hy(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:Hy(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,r,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.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 i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+i+">\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=Qy(this.options.sanitize,this.options.baseUrl,e)))return r;let i='<a href="'+Hy(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+r+"</a>",i}image(e,t,r){if(null===(e=Qy(this.options.sanitize,this.options.baseUrl,e)))return r;let i='<img src="'+e+'" alt="'+r+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">",i}text(e){return e}}class bv{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""}}class yv{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,i=0;if(this.seen.hasOwnProperty(r)){i=this.seen[e];do{i++,r=e+"-"+i}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=i,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class vv{constructor(e){this.options=e||Ry,this.options.renderer=this.options.renderer||new gv,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new bv,this.slugger=new yv}static parse(e,t){return new vv(t).parse(e)}static parseInline(e,t){return new vv(t).parseInline(e)}parse(e,t=!0){let r,i,n,o,a,s,c,l,d,u,p,m,_,h,f,g,b,y,v,N="";const x=e.length;for(r=0;r<x;r++)if(u=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(v=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==v||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))N+=v||"";else switch(u.type){case"space":continue;case"hr":N+=this.renderer.hr();continue;case"heading":N+=this.renderer.heading(this.parseInline(u.tokens),u.depth,Wy(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":N+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(l="",c="",o=u.header.length,i=0;i<o;i++)c+=this.renderer.tablecell(this.parseInline(u.header[i].tokens),{header:!0,align:u.align[i]});for(l+=this.renderer.tablerow(c),d="",o=u.rows.length,i=0;i<o;i++){for(s=u.rows[i],c="",a=s.length,n=0;n<a;n++)c+=this.renderer.tablecell(this.parseInline(s[n].tokens),{header:!1,align:u.align[n]});d+=this.renderer.tablerow(c)}N+=this.renderer.table(l,d);continue;case"blockquote":d=this.parse(u.tokens),N+=this.renderer.blockquote(d);continue;case"list":for(p=u.ordered,m=u.start,_=u.loose,o=u.items.length,d="",i=0;i<o;i++)f=u.items[i],g=f.checked,b=f.task,h="",f.task&&(y=this.renderer.checkbox(g),_?f.tokens.length>0&&"paragraph"===f.tokens[0].type?(f.tokens[0].text=y+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=y+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:y}):h+=y),h+=this.parse(f.tokens,_),d+=this.renderer.listitem(h,b,g);N+=this.renderer.list(d,p,m);continue;case"html":N+=this.renderer.html(u.text);continue;case"paragraph":N+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(d=u.tokens?this.parseInline(u.tokens):u.text;r+1<x&&"text"===e[r+1].type;)u=e[++r],d+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);N+=t?this.renderer.paragraph(d):d;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return N}parseInline(e,t){t=t||this.renderer;let r,i,n,o="";const a=e.length;for(r=0;r<a;r++)if(i=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(n=this.options.extensions.renderers[i.type].call({parser:this},i),!1!==n||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)))o+=n||"";else switch(i.type){case"escape":o+=t.text(i.text);break;case"html":o+=t.html(i.text);break;case"link":o+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":o+=t.image(i.href,i.title,i.text);break;case"strong":o+=t.strong(this.parseInline(i.tokens,t));break;case"em":o+=t.em(this.parseInline(i.tokens,t));break;case"codespan":o+=t.codespan(i.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(i.tokens,t));break;case"text":o+=t.text(i.text);break;default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}function Nv(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),cv(t=ov({},Nv.defaults,t||{})),r){const n=t.highlight;let o;try{o=fv.lex(e,t)}catch(i){return r(i)}const a=function(e){let a;if(!e)try{t.walkTokens&&Nv.walkTokens(o,t.walkTokens),a=vv.parse(o,t)}catch(i){e=i}return t.highlight=n,e?r(e):r(null,a)};if(!n||n.length<3)return a();if(delete t.highlight,!o.length)return a();let s=0;return Nv.walkTokens(o,(function(e){"code"===e.type&&(s++,setTimeout((()=>{n(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=fv.lex(e,t);return t.walkTokens&&Nv.walkTokens(r,t.walkTokens),vv.parse(r,t)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Hy(i.message+"",!0)+"</pre>";throw i}}Nv.options=Nv.setOptions=function(e){var t;return ov(Nv.defaults,e),t=Nv.defaults,Ry=t,Nv},Nv.getDefaults=Iy,Nv.defaults=Ry,Nv.use=function(...e){const t=ov({},...e),r=Nv.defaults.extensions||{renderers:{},childTokens:{}};let i;e.forEach((e=>{if(e.extensions&&(i=!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 i=e.renderer.apply(this,r);return!1===i&&(i=t.apply(this,r)),i}: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=Nv.defaults.renderer||new gv;for(const t in e.renderer){const i=r[t];r[t]=(...n)=>{let o=e.renderer[t].apply(r,n);return!1===o&&(o=i.apply(r,n)),o}}t.renderer=r}if(e.tokenizer){const r=Nv.defaults.tokenizer||new uv;for(const t in e.tokenizer){const i=r[t];r[t]=(...n)=>{let o=e.tokenizer[t].apply(r,n);return!1===o&&(o=i.apply(r,n)),o}}t.tokenizer=r}if(e.walkTokens){const r=Nv.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),r&&r.call(this,t)}}i&&(t.extensions=r),Nv.setOptions(t)}))},Nv.walkTokens=function(e,t){for(const r of e)switch(t.call(Nv,r),r.type){case"table":for(const e of r.header)Nv.walkTokens(e.tokens,t);for(const e of r.rows)for(const r of e)Nv.walkTokens(r.tokens,t);break;case"list":Nv.walkTokens(r.items,t);break;default:Nv.defaults.extensions&&Nv.defaults.extensions.childTokens&&Nv.defaults.extensions.childTokens[r.type]?Nv.defaults.extensions.childTokens[r.type].forEach((function(e){Nv.walkTokens(r[e],t)})):r.tokens&&Nv.walkTokens(r.tokens,t)}},Nv.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");cv(t=ov({},Nv.defaults,t||{}));try{const r=fv.lexInline(e,t);return t.walkTokens&&Nv.walkTokens(r,t.walkTokens),vv.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>"+Hy(r.message+"",!0)+"</pre>";throw r}},Nv.Parser=vv,Nv.parser=vv.parse,Nv.Renderer=gv,Nv.TextRenderer=bv,Nv.Lexer=fv,Nv.lexer=fv.lex,Nv.Tokenizer=uv,Nv.Slugger=yv,Nv.parse=Nv,vv.parse,fv.lex;export{Se as A,Rp as B,Pp as C,Pm as D,am as E,Ae as F,Gf as G,fy as H,yy as I,tm as J,De as K,de as L,Py as M,Nv as N,le as O,$ as P,Up as R,Em as Z,N as a,re as b,xe as c,Oe as d,k as e,dn as f,te as g,na as h,Ks as i,Nr as j,Jl as k,Le as l,Vm as m,Qm as n,t_ as o,r_ as p,q,xt as r,we as s,Fm as t,Am as u,ym as v,o_ as w,a_ as x,ke as y,Om as z};
//# sourceMappingURL=vendor.9404c8c7.js.map